Skip to contentSkip to conversation

ARM: dts: advantech-rom-7421: fix sd-card cd pin

PATCH Applied Christoph Fritz 2 participants 3 messages Mar 9, 2020 – Mar 11, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ARM: dts: advantech-rom-7421: fix sd-card cd pin

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

---
 arch/arm/dts/imx6dl-advantech-rom-7421.dts | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
arch/arm/dts/imx6dl-advantech-rom-7421.dts +4 -4
index cdf378114a..22ce744307 100755
@@ -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";
 };
 
Signature · 8 lines
2.20.1



_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw

PATCH 2/2 ARM: dts: advantech-rom-7421: Add ocotp node to provide mac address

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

---
 arch/arm/dts/imx6dl-advantech-rom-7421.dts | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/dts/imx6dl-advantech-rom-7421.dts +4 -0
index 22ce744307..f0e3f4aa1f 100755
@@ -86,6 +86,10 @@
 	status = "okay";
 };
 
+&ocotp {
+	barebox,provide-mac-address = <&fec 0x620>;
+};
+
 &uart1 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_uart1>;
Signature · 8 lines
2.20.1



_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
maintainer Applied
#2 lore raw
In reply to Christoph Fritz
Quoted 7 lines · Christoph Fritz

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

---
 arch/arm/dts/imx6dl-advantech-rom-7421.dts | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Applied, thanks

Sascha

Quoted 37 lines
arch/arm/dts/imx6dl-advantech-rom-7421.dts +4 -4
index cdf378114a..22ce744307 100755
@@ -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";
 };
 
Signature · 8 lines
2.20.1



_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox