ARM: dts: vf610-zii-scu4-aib: Add HI8435 support
authorFabio Estevam <festevam@gmail.com>
Wed, 5 Dec 2018 11:19:35 +0000 (09:19 -0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 10 Dec 2018 02:03:06 +0000 (10:03 +0800)
On the vf610-zii-scu4-aib board there is a hi8435 (32-channel
discrete-to-digital SPI sensor device) in the DSPI0 bus.

Add support for it.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Chris Healy <cphealy@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/vf610-zii-scu4-aib.dts

index 52bac14..de6dfa5 100644 (file)
        };
 };
 
+&dspi0 {
+       pinctrl-0 = <&pinctrl_dspi0>;
+       pinctrl-names = "default";
+       bus-num = <0>;
+       status = "okay";
+
+       adc@5 {
+               compatible = "holt,hi8435";
+               reg = <5>;
+               gpios = <&gpio5 3 GPIO_ACTIVE_HIGH>;
+               spi-max-frequency = <1000000>;
+       };
+};
+
 &dspi1 {
        bus-num = <1>;
        pinctrl-names = "default";