devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: TS-4800: Add gpio driver
@ 2016-02-19 20:59 Julien Grossholtz
  2016-02-28  8:12 ` Shawn Guo
  0 siblings, 1 reply; 2+ messages in thread
From: Julien Grossholtz @ 2016-02-19 20:59 UTC (permalink / raw)
  To: shawnguo-DgEjT+Ai2ygdnm+yROfE0A
  Cc: kernel-bIcnvbaLZ9MEGnE8C9+IrQ, robh+dt-DgEjT+Ai2ygdnm+yROfE0A,
	pawel.moll-5wv7dgnIgG8, mark.rutland-5wv7dgnIgG8,
	ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg,
	galak-sgV2jX0FEOL9JmXXK+q4OQ, linux-lFZ/pmaqli7XmaaqVzeoHQ,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	kernel-4ysUXcep3aM1wj+D4I0NRVaTQe2KTcn/, Julien Grossholtz

Add dts nodes for TS-4800 FPGA gpio chips.

Signed-off-by: Julien Grossholtz <julien.grossholtz-4ysUXcep3aM1wj+D4I0NRVaTQe2KTcn/@public.gmane.org>
---
 arch/arm/boot/dts/imx51-ts4800.dts | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/arch/arm/boot/dts/imx51-ts4800.dts b/arch/arm/boot/dts/imx51-ts4800.dts
index 0ff76a1..c72c944 100644
--- a/arch/arm/boot/dts/imx51-ts4800.dts
+++ b/arch/arm/boot/dts/imx51-ts4800.dts
@@ -165,6 +165,35 @@
 			reg = <0x12000 0x1000>;
 			syscon = <&syscon 0x10 6>;
 		};
+
+		fpga_gpio0: fpga_gpio0@b0010020 {
+			compatible = "technologic,ts4800-gpio";
+			reg = <0x10020 0x6>;
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+
+		fpga_gpio1: fpga_gpio1@b0010028 {
+			compatible = "technologic,ts4800-gpio";
+			reg = <0x10028 0x6>;
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+
+		fpga_gpio2: fpga_gpio2@b0010030 {
+			compatible = "technologic,ts4800-gpio";
+			reg = <0x10030 0x6>;
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+
+		fpga_gpio3: fpga_gpio3@b0010038 {
+			compatible = "technologic,ts4800-gpio";
+			reg = <0x10038 0x6>;
+			gpio-controller;
+			ngpios = <8>;
+			#gpio-cells = <2>;
+		};
 	};
 };
 
-- 
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] ARM: dts: TS-4800: Add gpio driver
  2016-02-19 20:59 [PATCH] ARM: dts: TS-4800: Add gpio driver Julien Grossholtz
@ 2016-02-28  8:12 ` Shawn Guo
  0 siblings, 0 replies; 2+ messages in thread
From: Shawn Guo @ 2016-02-28  8:12 UTC (permalink / raw)
  To: Julien Grossholtz
  Cc: mark.rutland, devicetree, linux, pawel.moll, ijc+devicetree,
	linux-kernel, robh+dt, kernel, kernel, galak, linux-arm-kernel

On Fri, Feb 19, 2016 at 03:59:02PM -0500, Julien Grossholtz wrote:
> Add dts nodes for TS-4800 FPGA gpio chips.
> 
> Signed-off-by: Julien Grossholtz <julien.grossholtz@savoirfairelinux.com>
> ---
>  arch/arm/boot/dts/imx51-ts4800.dts | 29 +++++++++++++++++++++++++++++
>  1 file changed, 29 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/imx51-ts4800.dts b/arch/arm/boot/dts/imx51-ts4800.dts
> index 0ff76a1..c72c944 100644
> --- a/arch/arm/boot/dts/imx51-ts4800.dts
> +++ b/arch/arm/boot/dts/imx51-ts4800.dts
> @@ -165,6 +165,35 @@
>  			reg = <0x12000 0x1000>;
>  			syscon = <&syscon 0x10 6>;
>  		};
> +
> +		fpga_gpio0: fpga_gpio0@b0010020 {
> +			compatible = "technologic,ts4800-gpio";

I do not understand how this works, considering this compatible is not
supported by kernel.

Shawn

> +			reg = <0x10020 0x6>;
> +			gpio-controller;
> +			#gpio-cells = <2>;
> +		};
> +
> +		fpga_gpio1: fpga_gpio1@b0010028 {
> +			compatible = "technologic,ts4800-gpio";
> +			reg = <0x10028 0x6>;
> +			gpio-controller;
> +			#gpio-cells = <2>;
> +		};
> +
> +		fpga_gpio2: fpga_gpio2@b0010030 {
> +			compatible = "technologic,ts4800-gpio";
> +			reg = <0x10030 0x6>;
> +			gpio-controller;
> +			#gpio-cells = <2>;
> +		};
> +
> +		fpga_gpio3: fpga_gpio3@b0010038 {
> +			compatible = "technologic,ts4800-gpio";
> +			reg = <0x10038 0x6>;
> +			gpio-controller;
> +			ngpios = <8>;
> +			#gpio-cells = <2>;
> +		};
>  	};
>  };
>  
> -- 
> 2.5.0
> 
> 
> _______________________________________________
> 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] 2+ messages in thread

end of thread, other threads:[~2016-02-28  8:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-19 20:59 [PATCH] ARM: dts: TS-4800: Add gpio driver Julien Grossholtz
2016-02-28  8:12 ` 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).