devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: ebaz4205: add pinctrl entries for switches
@ 2021-02-01 13:30 Michael Walle
  2021-02-03  6:58 ` Michal Simek
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Walle @ 2021-02-01 13:30 UTC (permalink / raw)
  To: devicetree, linux-arm-kernel, linux-kernel
  Cc: Rob Herring, Michal Simek, Michael Walle

Add the pinctrl entries for the GPIOs which are connected to the
push buttons on this board.

Signed-off-by: Michael Walle <michael@walle.cc>
---
 arch/arm/boot/dts/zynq-ebaz4205.dts | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/arch/arm/boot/dts/zynq-ebaz4205.dts b/arch/arm/boot/dts/zynq-ebaz4205.dts
index e802d4ae8804..b0b836aedd76 100644
--- a/arch/arm/boot/dts/zynq-ebaz4205.dts
+++ b/arch/arm/boot/dts/zynq-ebaz4205.dts
@@ -43,7 +43,30 @@
 	};
 };
 
+&gpio0 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_gpio0_default>;
+};
+
 &pinctrl0 {
+	pinctrl_gpio0_default: gpio0-default {
+		mux {
+			groups = "gpio0_20_grp", "gpio0_32_grp";
+			function = "gpio0";
+		};
+
+		conf {
+			groups = "gpio0_20_grp", "gpio0_32_grp";
+			io-standard = <3>;
+			slew-rate = <0>;
+		};
+
+		conf-pull-up {
+			pins = "MIO20", "MIO32";
+			bias-disable;
+		};
+	};
+
 	pinctrl_sdhci0_default: sdhci0-default {
 		mux {
 			groups = "sdio0_2_grp";
-- 
2.20.1


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

* Re: [PATCH] ARM: dts: ebaz4205: add pinctrl entries for switches
  2021-02-01 13:30 [PATCH] ARM: dts: ebaz4205: add pinctrl entries for switches Michael Walle
@ 2021-02-03  6:58 ` Michal Simek
  0 siblings, 0 replies; 2+ messages in thread
From: Michal Simek @ 2021-02-03  6:58 UTC (permalink / raw)
  To: Michael Walle, devicetree, linux-arm-kernel, linux-kernel
  Cc: Rob Herring, Michal Simek



On 2/1/21 2:30 PM, Michael Walle wrote:
> Add the pinctrl entries for the GPIOs which are connected to the
> push buttons on this board.
> 
> Signed-off-by: Michael Walle <michael@walle.cc>
> ---
>  arch/arm/boot/dts/zynq-ebaz4205.dts | 23 +++++++++++++++++++++++
>  1 file changed, 23 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/zynq-ebaz4205.dts b/arch/arm/boot/dts/zynq-ebaz4205.dts
> index e802d4ae8804..b0b836aedd76 100644
> --- a/arch/arm/boot/dts/zynq-ebaz4205.dts
> +++ b/arch/arm/boot/dts/zynq-ebaz4205.dts
> @@ -43,7 +43,30 @@
>  	};
>  };
>  
> +&gpio0 {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&pinctrl_gpio0_default>;
> +};
> +
>  &pinctrl0 {
> +	pinctrl_gpio0_default: gpio0-default {
> +		mux {
> +			groups = "gpio0_20_grp", "gpio0_32_grp";
> +			function = "gpio0";
> +		};
> +
> +		conf {
> +			groups = "gpio0_20_grp", "gpio0_32_grp";
> +			io-standard = <3>;
> +			slew-rate = <0>;
> +		};
> +
> +		conf-pull-up {
> +			pins = "MIO20", "MIO32";
> +			bias-disable;
> +		};
> +	};
> +
>  	pinctrl_sdhci0_default: sdhci0-default {
>  		mux {
>  			groups = "sdio0_2_grp";
> 

Applied.
M

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

end of thread, other threads:[~2021-02-03  7:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-01 13:30 [PATCH] ARM: dts: ebaz4205: add pinctrl entries for switches Michael Walle
2021-02-03  6:58 ` Michal Simek

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