Skip to contentSkip to conversation

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

PATCH Superseded Fabio Estevam 3 participants 3 messages Nov 29, 2018 – Dec 5, 2018 Device tree bindings

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 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.

---
 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..a1fd49e 100644
@@ -397,6 +397,20 @@
 	};
 };
 
+&dspi0 {
+	pinctrl-0 = <&pinctrl_dspi0>;
+	pinctrl-names = "default";
+	status = "okay";
+	bus-num = <0>;
+
+	hi8435@5 {
+		compatible = "holt,hi8435";
+		reg = <5>;
+		gpios = <&gpio5 3 GPIO_ACTIVE_HIGH>;
+		spi-max-frequency = <1000000>;
+	};
+};
+
 &dspi1 {
 	bus-num = <1>;
 	pinctrl-names = "default";
Signature · 7 lines
2.7.4


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 15 lines

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.

---
 arch/arm/boot/dts/vf610-zii-scu4-aib.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm/boot/dts/vf610-zii-scu4-aib.dts +0 -0
index 52bac14..a1fd49e 100644

arch/arm/boot/dts/vf610-zii-scu4-aib.dts line 401

Quoted 5 lines
arch/arm/boot/dts/vf610-zii-scu4-aib.dts +2 -0
@@ -397,6 +397,20 @@
        };
 };
 
+&dspi0 {
+       pinctrl-0 = <&pinctrl_dspi0>;

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#2 lore raw
In reply to Fabio Estevam
Quoted 15 lines · Fabio Estevam

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.

---
 arch/arm/boot/dts/vf610-zii-scu4-aib.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm/boot/dts/vf610-zii-scu4-aib.dts +0 -0
index 52bac14..a1fd49e 100644

arch/arm/boot/dts/vf610-zii-scu4-aib.dts line 404

Quoted 8 lines
arch/arm/boot/dts/vf610-zii-scu4-aib.dts +5 -0
@@ -397,6 +397,20 @@
 	};
 };
 
+&dspi0 {
+	pinctrl-0 = <&pinctrl_dspi0>;
+	pinctrl-names = "default";
+	status = "okay";
+	bus-num = <0>;

We usually put 'status' at the bottom of property list.

arch/arm/boot/dts/vf610-zii-scu4-aib.dts line 406

Quoted 2 lines
arch/arm/boot/dts/vf610-zii-scu4-aib.dts +2 -0
+
+	hi8435@5 {

Can we have a generic name for the device?

Shawn

Quoted 13 lines
arch/arm/boot/dts/vf610-zii-scu4-aib.dts +7 -0
+		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

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel