mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] ARM: dts: advantech-rom-7421: fix sd-card cd pin
@ 2020-03-09 18:50 Christoph Fritz
  2020-03-09 18:52 ` [PATCH 2/2] ARM: dts: advantech-rom-7421: Add ocotp node to provide mac address Christoph Fritz
  2020-03-11 15:05 ` [PATCH 1/2] ARM: dts: advantech-rom-7421: fix sd-card cd pin Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Christoph Fritz @ 2020-03-09 18:50 UTC (permalink / raw)
  To: barebox

Enable possibility to auto detect sd-card insertion on Advantech
ROM-7421, this patch sets a necessary gpio to active-low.

Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com>
---
 arch/arm/dts/imx6dl-advantech-rom-7421.dts | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm/dts/imx6dl-advantech-rom-7421.dts b/arch/arm/dts/imx6dl-advantech-rom-7421.dts
index cdf378114a..22ce744307 100755
--- a/arch/arm/dts/imx6dl-advantech-rom-7421.dts
+++ b/arch/arm/dts/imx6dl-advantech-rom-7421.dts
@@ -100,7 +100,7 @@
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_usdhc2>;
 	bus-width = <8>;
-	cd-gpios = <&gpio2 0 0>;
+	cd-gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
 	status = "okay";
 
 	#address-cells = <1>;
@@ -121,9 +121,9 @@
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_usdhc3>;
 	bus-width = <4>;
-	cd-gpios = <&gpio2 1 0>;
-	en-gpios = <&gpio2 2 0>;
-	wp-gpios = <&gpio2 3 0>;
+	cd-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
+	en-gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
+	wp-gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
 	status = "okay";
 };
 
-- 
2.20.1



_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* [PATCH 2/2] ARM: dts: advantech-rom-7421: Add ocotp node to provide mac address
  2020-03-09 18:50 [PATCH 1/2] ARM: dts: advantech-rom-7421: fix sd-card cd pin Christoph Fritz
@ 2020-03-09 18:52 ` Christoph Fritz
  2020-03-11 15:05 ` [PATCH 1/2] ARM: dts: advantech-rom-7421: fix sd-card cd pin Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Christoph Fritz @ 2020-03-09 18:52 UTC (permalink / raw)
  To: barebox

This patch adds an ocotp node to provide barebox with a mac address
for Advantech ROM-7421.

Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com>
---
 arch/arm/dts/imx6dl-advantech-rom-7421.dts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/dts/imx6dl-advantech-rom-7421.dts b/arch/arm/dts/imx6dl-advantech-rom-7421.dts
index 22ce744307..f0e3f4aa1f 100755
--- a/arch/arm/dts/imx6dl-advantech-rom-7421.dts
+++ b/arch/arm/dts/imx6dl-advantech-rom-7421.dts
@@ -86,6 +86,10 @@
 	status = "okay";
 };
 
+&ocotp {
+	barebox,provide-mac-address = <&fec 0x620>;
+};
+
 &uart1 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_uart1>;
-- 
2.20.1



_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: [PATCH 1/2] ARM: dts: advantech-rom-7421: fix sd-card cd pin
  2020-03-09 18:50 [PATCH 1/2] ARM: dts: advantech-rom-7421: fix sd-card cd pin Christoph Fritz
  2020-03-09 18:52 ` [PATCH 2/2] ARM: dts: advantech-rom-7421: Add ocotp node to provide mac address Christoph Fritz
@ 2020-03-11 15:05 ` Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2020-03-11 15:05 UTC (permalink / raw)
  To: Christoph Fritz; +Cc: barebox

On Mon, Mar 09, 2020 at 07:50:12PM +0100, Christoph Fritz wrote:
> Enable possibility to auto detect sd-card insertion on Advantech
> ROM-7421, this patch sets a necessary gpio to active-low.
> 
> Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com>
> ---
>  arch/arm/dts/imx6dl-advantech-rom-7421.dts | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)

Applied, thanks

Sascha

> 
> diff --git a/arch/arm/dts/imx6dl-advantech-rom-7421.dts b/arch/arm/dts/imx6dl-advantech-rom-7421.dts
> index cdf378114a..22ce744307 100755
> --- a/arch/arm/dts/imx6dl-advantech-rom-7421.dts
> +++ b/arch/arm/dts/imx6dl-advantech-rom-7421.dts
> @@ -100,7 +100,7 @@
>  	pinctrl-names = "default";
>  	pinctrl-0 = <&pinctrl_usdhc2>;
>  	bus-width = <8>;
> -	cd-gpios = <&gpio2 0 0>;
> +	cd-gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
>  	status = "okay";
>  
>  	#address-cells = <1>;
> @@ -121,9 +121,9 @@
>  	pinctrl-names = "default";
>  	pinctrl-0 = <&pinctrl_usdhc3>;
>  	bus-width = <4>;
> -	cd-gpios = <&gpio2 1 0>;
> -	en-gpios = <&gpio2 2 0>;
> -	wp-gpios = <&gpio2 3 0>;
> +	cd-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
> +	en-gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
> +	wp-gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
>  	status = "okay";
>  };
>  
> -- 
> 2.20.1
> 
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2020-03-11 15:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-09 18:50 [PATCH 1/2] ARM: dts: advantech-rom-7421: fix sd-card cd pin Christoph Fritz
2020-03-09 18:52 ` [PATCH 2/2] ARM: dts: advantech-rom-7421: Add ocotp node to provide mac address Christoph Fritz
2020-03-11 15:05 ` [PATCH 1/2] ARM: dts: advantech-rom-7421: fix sd-card cd pin Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox