Commit b626c8f0 authored by Naveen Krishna Chatradhi's avatar Naveen Krishna Chatradhi Committed by Jonathan Cameron

Documentation: dt-bindings: update exynos-adc.txt with syscon handle

This patch updates the DT bindings for ADC in exynos-adc.txt with the
syscon phandle to the ADC nodes.
Signed-off-by: default avatarNaveen Krishna Chatradhi <ch.naveen@samsung.com>
To: devicetree@vger.kernel.org
Acked-by: default avatarKukjin Kim <kgene.kim@samsung.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent fafb37cf
...@@ -43,13 +43,16 @@ Required properties: ...@@ -43,13 +43,16 @@ Required properties:
compatible ADC block) compatible ADC block)
- vdd-supply VDD input supply. - vdd-supply VDD input supply.
- samsung,syscon-phandle Contains the PMU system controller node
(To access the ADC_PHY register on Exynos5250/5420/5800/3250)
Note: child nodes can be added for auto probing from device tree. Note: child nodes can be added for auto probing from device tree.
Example: adding device info in dtsi file Example: adding device info in dtsi file
adc: adc@12D10000 { adc: adc@12D10000 {
compatible = "samsung,exynos-adc-v1"; compatible = "samsung,exynos-adc-v1";
reg = <0x12D10000 0x100>, <0x10040718 0x4>; reg = <0x12D10000 0x100>;
interrupts = <0 106 0>; interrupts = <0 106 0>;
#io-channel-cells = <1>; #io-channel-cells = <1>;
io-channel-ranges; io-channel-ranges;
...@@ -58,13 +61,14 @@ adc: adc@12D10000 { ...@@ -58,13 +61,14 @@ adc: adc@12D10000 {
clock-names = "adc"; clock-names = "adc";
vdd-supply = <&buck5_reg>; vdd-supply = <&buck5_reg>;
samsung,syscon-phandle = <&pmu_system_controller>;
}; };
Example: adding device info in dtsi file for Exynos3250 with additional sclk Example: adding device info in dtsi file for Exynos3250 with additional sclk
adc: adc@126C0000 { adc: adc@126C0000 {
compatible = "samsung,exynos3250-adc", "samsung,exynos-adc-v2; compatible = "samsung,exynos3250-adc", "samsung,exynos-adc-v2;
reg = <0x126C0000 0x100>, <0x10020718 0x4>; reg = <0x126C0000 0x100>;
interrupts = <0 137 0>; interrupts = <0 137 0>;
#io-channel-cells = <1>; #io-channel-cells = <1>;
io-channel-ranges; io-channel-ranges;
...@@ -73,6 +77,7 @@ adc: adc@126C0000 { ...@@ -73,6 +77,7 @@ adc: adc@126C0000 {
clock-names = "adc", "sclk"; clock-names = "adc", "sclk";
vdd-supply = <&buck5_reg>; vdd-supply = <&buck5_reg>;
samsung,syscon-phandle = <&pmu_system_controller>;
}; };
Example: Adding child nodes in dts file Example: Adding child nodes in dts file
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment