linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: vf610-zii-scu4-aib: Add HI8435 support
@ 2018-11-29 15:10 Fabio Estevam
  2018-12-02 19:22 ` Chris Healy
  2018-12-05  3:40 ` Shawn Guo
  0 siblings, 2 replies; 3+ messages in thread
From: Fabio Estevam @ 2018-11-29 15:10 UTC (permalink / raw)
  To: shawnguo; +Cc: Fabio Estevam, linux-arm-kernel, cphealy

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>
---
 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..a1fd49e 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 @@
 	};
 };
 
+&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";
-- 
2.7.4


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] ARM: dts: vf610-zii-scu4-aib: Add HI8435 support
  2018-11-29 15:10 [PATCH] ARM: dts: vf610-zii-scu4-aib: Add HI8435 support Fabio Estevam
@ 2018-12-02 19:22 ` Chris Healy
  2018-12-05  3:40 ` Shawn Guo
  1 sibling, 0 replies; 3+ messages in thread
From: Chris Healy @ 2018-12-02 19:22 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: Shawn Guo, linux ARM, Lucas Stach

> 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>
> ---
>  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..a1fd49e 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 @@
>         };
>  };
>
> +&dspi0 {
> +       pinctrl-0 = <&pinctrl_dspi0>;

Reviewed-by: Chris Healy <cphealy@gmail.com>

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ARM: dts: vf610-zii-scu4-aib: Add HI8435 support
  2018-11-29 15:10 [PATCH] ARM: dts: vf610-zii-scu4-aib: Add HI8435 support Fabio Estevam
  2018-12-02 19:22 ` Chris Healy
@ 2018-12-05  3:40 ` Shawn Guo
  1 sibling, 0 replies; 3+ messages in thread
From: Shawn Guo @ 2018-12-05  3:40 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: linux-arm-kernel, cphealy

On Thu, Nov 29, 2018 at 01:10:20PM -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 <festevam@gmail.com>
> ---
>  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..a1fd49e 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 @@
>  	};
>  };
>  
> +&dspi0 {
> +	pinctrl-0 = <&pinctrl_dspi0>;
> +	pinctrl-names = "default";
> +	status = "okay";
> +	bus-num = <0>;

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

> +
> +	hi8435@5 {

Can we have a generic name for the device?

Shawn

> +		compatible = "holt,hi8435";
> +		reg = <5>;
> +		gpios = <&gpio5 3 GPIO_ACTIVE_HIGH>;
> +		spi-max-frequency = <1000000>;
> +	};
> +};
> +
>  &dspi1 {
>  	bus-num = <1>;
>  	pinctrl-names = "default";
> -- 
> 2.7.4
> 

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-12-05  3:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-29 15:10 [PATCH] ARM: dts: vf610-zii-scu4-aib: Add HI8435 support Fabio Estevam
2018-12-02 19:22 ` Chris Healy
2018-12-05  3:40 ` Shawn Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).