Re: [PATCH v2] ARM: dts: vf610-zii-scu4-aib: Add HI8435 support

2018-12-05 Thread Shawn Guo
On Wed, Dec 05, 2018 at 09:19:35AM -0200, Fabio Estevam wrote:
> 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 
> Reviewed-by: Chris Healy 

Applied, thanks.


Re: [PATCH v2] ARM: dts: vf610-zii-scu4-aib: Add HI8435 support

2018-12-05 Thread Shawn Guo
On Wed, Dec 05, 2018 at 09:19:35AM -0200, Fabio Estevam wrote:
> 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 
> Reviewed-by: Chris Healy 

Applied, thanks.


[PATCH v2] ARM: dts: vf610-zii-scu4-aib: Add HI8435 support

2018-12-05 Thread 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.

Signed-off-by: Fabio Estevam 
Reviewed-by: Chris Healy 
---
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(+)

diff --git a/arch/arm/boot/dts/vf610-zii-scu4-aib.dts 
b/arch/arm/boot/dts/vf610-zii-scu4-aib.dts
index 52bac14..de6dfa5 100644
--- a/arch/arm/boot/dts/vf610-zii-scu4-aib.dts
+++ b/arch/arm/boot/dts/vf610-zii-scu4-aib.dts
@@ -397,6 +397,20 @@
};
 };
 
+ {
+   pinctrl-0 = <_dspi0>;
+   pinctrl-names = "default";
+   bus-num = <0>;
+   status = "okay";
+
+   adc@5 {
+   compatible = "holt,hi8435";
+   reg = <5>;
+   gpios = < 3 GPIO_ACTIVE_HIGH>;
+   spi-max-frequency = <100>;
+   };
+};
+
  {
bus-num = <1>;
pinctrl-names = "default";
-- 
2.7.4



[PATCH v2] ARM: dts: vf610-zii-scu4-aib: Add HI8435 support

2018-12-05 Thread 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.

Signed-off-by: Fabio Estevam 
Reviewed-by: Chris Healy 
---
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(+)

diff --git a/arch/arm/boot/dts/vf610-zii-scu4-aib.dts 
b/arch/arm/boot/dts/vf610-zii-scu4-aib.dts
index 52bac14..de6dfa5 100644
--- a/arch/arm/boot/dts/vf610-zii-scu4-aib.dts
+++ b/arch/arm/boot/dts/vf610-zii-scu4-aib.dts
@@ -397,6 +397,20 @@
};
 };
 
+ {
+   pinctrl-0 = <_dspi0>;
+   pinctrl-names = "default";
+   bus-num = <0>;
+   status = "okay";
+
+   adc@5 {
+   compatible = "holt,hi8435";
+   reg = <5>;
+   gpios = < 3 GPIO_ACTIVE_HIGH>;
+   spi-max-frequency = <100>;
+   };
+};
+
  {
bus-num = <1>;
pinctrl-names = "default";
-- 
2.7.4