ARM: dts: socfpga: add ltc2497 on arria10 devkit
authorAlan Tull <atull@kernel.org>
Wed, 24 Apr 2019 15:39:15 +0000 (10:39 -0500)
committerDinh Nguyen <dinguyen@kernel.org>
Mon, 10 Jun 2019 14:47:01 +0000 (09:47 -0500)
Add the two ltc2497 devices that are on the SoCFPGA Arria10
Socdk board at addresses 0x14 and 0x16.

Signed-off-by: Alan Tull <atull@kernel.org>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
arch/arm/boot/dts/socfpga_arria10_socdk.dtsi

index 360dae5..0efbecc 100644 (file)
                };
        };
 
+       ref_033v: 033-v-ref {
+               compatible = "regulator-fixed";
+               regulator-name = "0.33V";
+               regulator-min-microvolt = <330000>;
+               regulator-max-microvolt = <330000>;
+       };
+
        soc {
                clkmgr@ffd04000 {
                        clocks {
        i2c-sda-falling-time-ns = <6000>;
        i2c-scl-falling-time-ns = <6000>;
 
+       adc@14 {
+               compatible = "lltc,ltc2497";
+               reg = <0x14>;
+               vref-supply = <&ref_033v>;
+       };
+
+       adc@16 {
+               compatible = "lltc,ltc2497";
+               reg = <0x16>;
+               vref-supply = <&ref_033v>;
+       };
+
        eeprom@51 {
                compatible = "atmel,24c32";
                reg = <0x51>;