Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: exynos: Add ADC node to Exynos5410 and Odroid XU

Move the ADC from exynos5420.dtsi to a shared file between Exynos5410 and
Exynos542x: exynos54xx.dtsi. Enable the ADC on Odroid XU board.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>

+26 -12
+5
arch/arm/boot/dts/exynos5410-odroidxu.dts
··· 85 85 }; 86 86 }; 87 87 88 + &adc { 89 + vdd-supply = <&ldo10_reg>; 90 + status = "okay"; 91 + }; 92 + 88 93 &audi2s0 { 89 94 status = "okay"; 90 95 };
+6
arch/arm/boot/dts/exynos5410.dtsi
··· 260 260 }; 261 261 }; 262 262 263 + &adc { 264 + clocks = <&clock CLK_TSADC>; 265 + clock-names = "adc"; 266 + samsung,syscon-phandle = <&pmu_system_controller>; 267 + }; 268 + 263 269 &arm_a15_pmu { 264 270 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>; 265 271 status = "okay";
+6 -12
arch/arm/boot/dts/exynos5420.dtsi
··· 550 550 status = "disabled"; 551 551 }; 552 552 553 - adc: adc@12d10000 { 554 - compatible = "samsung,exynos-adc-v2"; 555 - reg = <0x12D10000 0x100>; 556 - interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>; 557 - clocks = <&clock CLK_TSADC>; 558 - clock-names = "adc"; 559 - #io-channel-cells = <1>; 560 - io-channel-ranges; 561 - samsung,syscon-phandle = <&pmu_system_controller>; 562 - status = "disabled"; 563 - }; 564 - 565 553 hsi2c_8: i2c@12e00000 { 566 554 compatible = "samsung,exynos5250-hsi2c"; 567 555 reg = <0x12E00000 0x1000>; ··· 1351 1363 #include "exynos5420-trip-points.dtsi" 1352 1364 }; 1353 1365 }; 1366 + }; 1367 + 1368 + &adc { 1369 + clocks = <&clock CLK_TSADC>; 1370 + clock-names = "adc"; 1371 + samsung,syscon-phandle = <&pmu_system_controller>; 1354 1372 }; 1355 1373 1356 1374 &dp {
+9
arch/arm/boot/dts/exynos54xx.dtsi
··· 96 96 interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>; 97 97 }; 98 98 99 + adc: adc@12d10000 { 100 + compatible = "samsung,exynos-adc-v2"; 101 + reg = <0x12d10000 0x100>; 102 + interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>; 103 + #io-channel-cells = <1>; 104 + io-channel-ranges; 105 + status = "disabled"; 106 + }; 107 + 99 108 /* i2c_0-3 are defined in exynos5.dtsi */ 100 109 hsi2c_4: i2c@12ca0000 { 101 110 compatible = "samsung,exynos5250-hsi2c";