Re: [PATCH v2] arm64: dts: allwinner: Add disable-wp for boards with micro SD card

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dne 19. 09. 24 v 22:21 Andre Przywara napsal(a):
On Thu, 19 Sep 2024 20:35:39 +0200
Kryštof Černý <cleverline1mc@xxxxxxxxx> wrote:

Adding disable-wp property for micro SD nodes of Allwinner arm64 devices.
Boards were verified from online pictures/tables
that they have micro SD slots.

The changes itself look good to me, and I checked that the boards in
question have a microSD card slot, so do not feature a write-protect
switch.
You seem to be missing the mmc0 node in
sun50i-h616-bigtreetech-cb1.dtsi though, can you please add this file,
to fix the two boards using this file as well?


I wondered about that one, as it's just a compute module without the
actual slot, I thought it was not right to put it there, as
someone could wire it to full SD or eMMC in their own board.
Maybe put it to sun-50i-h616-bigtreetech-cb1-manta.dts and
sun-50i-h616-bigtreetech-pi.dts instead? The dtsi has broken-cd
property already, but as it seems it is wired to the connector.
I was not sure about this, what are your thoughts?

With that added:

Signed-off-by: Kryštof Černý <cleverline1mc@xxxxxxxxx>

Reviewed-by: Andre Przywara <andre.przywara@xxxxxxx>

There are some boards which have their base .dtsi in the arch/arm
directory, but we can tackle those separately.

I missed them, if I add the property to sunxi-libretech-all-h3-cc.dtsi
and sunxi-bananapi-m2-plus.dtsi, could tag you as a reviewer?
There is also a module called Emlid Neutis, the compute module itself
has not a slot, but the board that uses it does, unfortunately they are
not separate files, so I do not see a clear solution here, as above.

Best regards
Kryštof Černý


Cheers,
Andre

---
Sorry that my last messages were not in mailing list,
one was wrongly sent and second was rejected, as the bot claimed it
contained html. ---
Changes in v2:
- NEW: Added the property to all Sunxi arm64 boards, as discussed in
mailing list
- Link to v1:
https://lore.kernel.org/r/20240914-b4-nanopineoplus2-fix-mmc0-wp-v1-1-12f54f0d6620@xxxxxxxxx
--- arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo-plus2.dts    |
1 + arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts         |
1 + arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-r1s-h5.dts       |
1 + arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts        |
1 + arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dts      |
1 + arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus.dts  |
1 + arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts |
1 + arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts         |
1 + arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts          |
1 + arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi           |
1 + arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts            |
1 + arch/arm64/boot/dts/allwinner/sun50i-h6-tanix.dtsi              |
1 + arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero.dtsi    |
1 + arch/arm64/boot/dts/allwinner/sun50i-h616-x96-mate.dts          |
1 + arch/arm64/boot/dts/allwinner/sun50i-h618-longanpi-3h.dts       |
1 + arch/arm64/boot/dts/allwinner/sun50i-h618-transpeed-8k618-t.dts |
1 + 16 files changed, 16 insertions(+)

diff --git
a/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo-plus2.dts
b/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo-plus2.dts index
526443bb736c..18fa541795a6 100644 ---
a/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo-plus2.dts +++
b/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo-plus2.dts @@
-136,6 +136,7 @@ &mmc0 { vmmc-supply = <&reg_vcc3v3>; bus-width = <4>;
  	cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
+	disable-wp;
  	status = "okay";
  };
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts
b/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts index
05486cccee1c..128295f5a5d6 100644 ---
a/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts +++
b/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts @@ -88,6
+88,7 @@ ext_rgmii_phy: ethernet-phy@7 {
  &mmc0 {
  	vmmc-supply = <&reg_vcc3v3>;
+	disable-wp;
  	bus-width = <4>;
  	cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
  	status = "okay";
diff --git
a/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-r1s-h5.dts
b/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-r1s-h5.dts index
3a7ee44708a2..44fdc8b3f79d 100644 ---
a/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-r1s-h5.dts +++
b/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-r1s-h5.dts @@ -157,6
+157,7 @@ eth_mac1: mac-address@fa { &mmc0 {
  	vmmc-supply = <&reg_vcc3v3>;
+	disable-wp;
  	bus-width = <4>;
  	cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
  	status = "okay";
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts
b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts index
ce3ae19e72db..0f29da7d51e6 100644 ---
a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts +++
b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts @@ -153,6
+153,7 @@ &ir {
  &mmc0 {
  	vmmc-supply = <&reg_vcc3v3>;
+	disable-wp;
  	bus-width = <4>;
  	cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
  	status = "okay";
diff --git
a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dts
b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dts index
b699bb900e13..d4fc4e60e4e7 100644 ---
a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dts +++
b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dts @@
-153,6 +153,7 @@ &ir { &mmc0 {
  	vmmc-supply = <&reg_vcc3v3>;
+	disable-wp;
  	bus-width = <4>;
  	cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
  	status = "okay";
diff --git
a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus.dts
b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus.dts
index ae85131aac9c..3322cc4d9aa4 100644 ---
a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus.dts +++
b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus.dts @@
-82,6 +82,7 @@ ext_rgmii_phy: ethernet-phy@1 { &mmc0 {
  	vmmc-supply = <&reg_vcc3v3>;
+	disable-wp;
  	bus-width = <4>;
  	cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
  	status = "okay";
diff --git
a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts
b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts
index 734481e998b8..3eb986c354a9 100644 ---
a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts +++
b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts @@
-79,6 +79,7 @@ hdmi_out_con: endpoint { &mmc0 {
  	vmmc-supply = <&reg_vcc3v3>;
+	disable-wp;
  	bus-width = <4>;
  	cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
  	status = "okay";
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts
b/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts index
3be1e8c2fdb9..13a0e63afeaf 100644 ---
a/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts +++
b/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts @@ -129,6
+129,7 @@ ext_rgmii_phy: ethernet-phy@1 { &mmc0 {
  	vmmc-supply = <&reg_cldo1>;
  	cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
+	disable-wp;
  	bus-width = <4>;
  	status = "okay";
  };
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts
b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts index
6c3bfe3d09d9..ab87c3447cd7 100644 ---
a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts +++
b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts @@ -131,6
+131,7 @@ hdmi_out_con: endpoint { &mmc0 {
  	vmmc-supply = <&reg_cldo1>;
  	cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
+	disable-wp;
  	bus-width = <4>;
  	status = "okay";
  };
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi index
13b07141c334..d05dc5d6e6b9 100644 ---
a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi +++
b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi @@ -94,6
+94,7 @@ hdmi_out_con: endpoint { &mmc0 {
  	vmmc-supply = <&reg_cldo1>;
  	cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
+	disable-wp;
  	bus-width = <4>;
  	status = "okay";
  };
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts
b/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts index
c8b275552872..fa7a765ee828 100644 ---
a/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts +++
b/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts @@ -133,6
+133,7 @@ ext_rgmii_phy: ethernet-phy@1 { &mmc0 {
  	vmmc-supply = <&reg_cldo1>;
  	cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
+	disable-wp;
  	bus-width = <4>;
  	status = "okay";
  };
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix.dtsi
b/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix.dtsi index
855b7d43bc50..bb7de37c0d58 100644 ---
a/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix.dtsi +++
b/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix.dtsi @@ -124,6 +124,7
@@ &mmc0 { pinctrl-0 = <&mmc0_pins>;
  	vmmc-supply = <&reg_vcc3v3>;
  	cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
+	disable-wp;
  	bus-width = <4>;
  	status = "okay";
  };
diff --git
a/arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero.dtsi
b/arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero.dtsi index
fc7315b94406..a3fe39f8e2ca 100644 ---
a/arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero.dtsi +++
b/arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero.dtsi @@
-81,6 +81,7 @@ ext_rgmii_phy: ethernet-phy@1 { &mmc0 {
  	cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;	/* PF6 */
+	disable-wp;
  	bus-width = <4>;
  	status = "okay";
  };
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616-x96-mate.dts
b/arch/arm64/boot/dts/allwinner/sun50i-h616-x96-mate.dts index
26d25b5b59e0..dd3bd9cca710 100644 ---
a/arch/arm64/boot/dts/allwinner/sun50i-h616-x96-mate.dts +++
b/arch/arm64/boot/dts/allwinner/sun50i-h616-x96-mate.dts @@ -52,6
+52,7 @@ &ir { &mmc0 {
  	vmmc-supply = <&reg_dcdce>;
  	cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;	/* PF6 */
+	disable-wp;
  	bus-width = <4>;
  	status = "okay";
  };
diff --git
a/arch/arm64/boot/dts/allwinner/sun50i-h618-longanpi-3h.dts
b/arch/arm64/boot/dts/allwinner/sun50i-h618-longanpi-3h.dts index
18b29c6b867f..16c68177ff69 100644 ---
a/arch/arm64/boot/dts/allwinner/sun50i-h618-longanpi-3h.dts +++
b/arch/arm64/boot/dts/allwinner/sun50i-h618-longanpi-3h.dts @@ -111,6
+111,7 @@ ext_rgmii_phy: ethernet-phy@1 { };
  &mmc0 {
+	disable-wp;
  	bus-width = <4>;
  	cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>;	/* PF6 */
  	vmmc-supply = <&reg_vcc3v3>;
diff --git
a/arch/arm64/boot/dts/allwinner/sun50i-h618-transpeed-8k618-t.dts
b/arch/arm64/boot/dts/allwinner/sun50i-h618-transpeed-8k618-t.dts
index d6631bfe629f..024377b333c1 100644 ---
a/arch/arm64/boot/dts/allwinner/sun50i-h618-transpeed-8k618-t.dts +++
b/arch/arm64/boot/dts/allwinner/sun50i-h618-transpeed-8k618-t.dts @@
-71,6 +71,7 @@ &ir { &mmc0 { vmmc-supply = <&reg_dldo1>;
  	cd-gpios = <&pio 8 16 GPIO_ACTIVE_LOW>;	/* PI16 */
+	disable-wp;
  	bus-width = <4>;
  	status = "okay";
  };

---
base-commit: 57f962b956f1d116cd64d5c406776c4975de549d
change-id: 20240914-b4-nanopineoplus2-fix-mmc0-wp-9d77fb9e6513

Best regards,






[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux