Skip to contentSkip to conversation

ARM: dts: vf610-zii-scu4-aib: Add HI8435 support

PATCH Applied Fabio Estevam 2 participants 2 messages Dec 5, 2018 – Dec 6, 2018 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ARM: dts: vf610-zii-scu4-aib: Add HI8435 support

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.

---
Changes since v1:
- Put status as the last propert
- Use a generic node name

 arch/arm/boot/dts/vf610-zii-scu4-aib.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm/boot/dts/vf610-zii-scu4-aib.dts +14 -0
index 52bac14..de6dfa5 100644
@@ -397,6 +397,20 @@
 	};
 };
 
+&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";
Signature · 1 line
2.7.4