Skip to contentSkip to conversation

mmc: meson: add MMC nodes to Meson GXBB DT

PATCH New Heiner Kallweit 2 participants 3 messages Jan 25, 2017 – Jan 27, 2017

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

PATCH v2 1/4 mmc: meson: add MMC nodes to Meson GXBB DT

Copied from amlogic/meson-gx.dtsi on Linux with the interrupt definition removed.

---
v2:
- no changes

---
 arch/arm/dts/meson-gxbb.dtsi | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
arch/arm/dts/meson-gxbb.dtsi +18 -0
index e502c24..3f357b4 100644
@@ -329,6 +329,24 @@
 			#address-cells = <2>;
 			#size-cells = <2>;
 			ranges = <0x0 0x0 0x0 0xd0000000 0x0 0x200000>;
+
+			sd_emmc_a: mmc at 70000 {
+				compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
+				reg = <0x0 0x70000 0x0 0x2000>;
+				status = "disabled";
+			};
+
+			sd_emmc_b: mmc at 72000 {
+				compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
+				reg = <0x0 0x72000 0x0 0x2000>;
+				status = "disabled";
+			};
+
+			sd_emmc_c: mmc at 74000 {
+				compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
+				reg = <0x0 0x74000 0x0 0x2000>;
+				status = "disabled";
+			};
 		};
 
 		ethmac: ethernet at c9410000 {
Signature · 1 line
2.11.0
#1 lore raw

PATCH v2 1/4 mmc: meson: add MMC nodes to Meson GXBB DT

Hi,

Am 25.01.2017 um 20:52 schrieb Heiner Kallweit:

Quoted 2 lines

Copied from amlogic/meson-gx.dtsi on Linux with the interrupt definition removed.

Is there any reason to not sync the full .dtsi file and its dependent headers from Linux like I did in my recent forward-port of Carlo's series?

If there is a reason to remove the interrupt definitions, you should explain that here please.

Regards,
Andreas

Quoted 39 lines

---
v2:
- no changes

---
 arch/arm/dts/meson-gxbb.dtsi | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
arch/arm/dts/meson-gxbb.dtsi +18 -0
index e502c24..3f357b4 100644
@@ -329,6 +329,24 @@
 			#address-cells = <2>;
 			#size-cells = <2>;
 			ranges = <0x0 0x0 0x0 0xd0000000 0x0 0x200000>;
+
+			sd_emmc_a: mmc at 70000 {
+				compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
+				reg = <0x0 0x70000 0x0 0x2000>;
+				status = "disabled";
+			};
+
+			sd_emmc_b: mmc at 72000 {
+				compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
+				reg = <0x0 0x72000 0x0 0x2000>;
+				status = "disabled";
+			};
+
+			sd_emmc_c: mmc at 74000 {
+				compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
+				reg = <0x0 0x74000 0x0 0x2000>;
+				status = "disabled";
+			};
 		};
 
 		ethmac: ethernet at c9410000 {
Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany
GF: Felix Imend?rffer, Jane Smithard, Graham Norton
HRB 21284 (AG N?rnberg)
#2 lore raw

PATCH v2 1/4 mmc: meson: add MMC nodes to Meson GXBB DT

Am 26.01.2017 um 23:52 schrieb Andreas F?rber:

Quoted 9 lines

Hi,

Am 25.01.2017 um 20:52 schrieb Heiner Kallweit:

Quoted 2 lines

Copied from amlogic/meson-gx.dtsi on Linux with the interrupt definition removed.

Is there any reason to not sync the full .dtsi file and its dependent headers from Linux like I did in my recent forward-port of Carlo's series?

AFAICS there is no support for members of the Meson GX family other than GXBB in mainline uboot yet. So I chose to extend what is available now.

IMHO this dts tree structure can be added once support for other GX chips will be added. I tried to avoid adding unnecessary complexity to the driver patches.

Quoted 3 lines

If there is a reason to remove the interrupt definitions, you should explain that here please.

The driver in uboot uses polling, so there's no need for irq definitions.

Quoted 44 lines

Regards,
Andreas

Quoted 39 lines

---
v2:
- no changes

---
 arch/arm/dts/meson-gxbb.dtsi | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
arch/arm/dts/meson-gxbb.dtsi +18 -0
index e502c24..3f357b4 100644
@@ -329,6 +329,24 @@
 			#address-cells = <2>;
 			#size-cells = <2>;
 			ranges = <0x0 0x0 0x0 0xd0000000 0x0 0x200000>;
+
+			sd_emmc_a: mmc at 70000 {
+				compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
+				reg = <0x0 0x70000 0x0 0x2000>;
+				status = "disabled";
+			};
+
+			sd_emmc_b: mmc at 72000 {
+				compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
+				reg = <0x0 0x72000 0x0 0x2000>;
+				status = "disabled";
+			};
+
+			sd_emmc_c: mmc at 74000 {
+				compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
+				reg = <0x0 0x74000 0x0 0x2000>;
+				status = "disabled";
+			};
 		};
 
 		ethmac: ethernet at c9410000 {