Skip to contentSkip to conversation

arm64: dts: fsl: use a generic node name for m25p80 flashes

PATCH Superseded Alexandre Belloni 3 participants 9 messages Sep 3, 2018 – Sep 10, 2018

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

PATCH v2 1/5 arm64: dts: fsl: use a generic node name for m25p80 flashes

Use a generic node name for the m25p80 flashes on ls1043 and ls1046 boards.

---
 arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dts | 2 +-
 arch/arm64/boot/dts/freescale/fsl-ls1046a-qds.dts | 2 +-
 arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dts +1 -1
index c7b8d2c009cd..af972e91d6bc 100644
@@ -136,7 +136,7 @@
 	bus-num = <0>;
 	status = "okay";
 
-	qflash0: s25fl128s at 0 {
+	qflash0: flash at 0 {
 		compatible = "spansion,m25p80";
 		#address-cells = <1>;
 		#size-cells = <1>;
arch/arm64/boot/dts/freescale/fsl-ls1046a-qds.dts +1 -1
index e69306e6b0b1..219068220b84 100644
@@ -165,7 +165,7 @@
 	bus-num = <0>;
 	status = "okay";
 
-	qflash0: s25fl128s at 0 {
+	qflash0: flash at 0 {
 		compatible = "spansion,m25p80";
 		#address-cells = <1>;
 		#size-cells = <1>;
arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts +2 -2
index 440e111651d5..df676b30357b 100644
@@ -103,7 +103,7 @@
 	bus-num = <0>;
 	status = "okay";
 
-	qflash0: s25fs512s at 0 {
+	qflash0: flash at 0 {
 		compatible = "spansion,m25p80";
 		#address-cells = <1>;
 		#size-cells = <1>;
@@ -111,7 +111,7 @@
 		reg = <0>;
 	};
 
-	qflash1: s25fs512s at 1 {
+	qflash1: flash at 1 {
 		compatible = "spansion,m25p80";
 		#address-cells = <1>;
 		#size-cells = <1>;
Signature · 1 line
2.19.0.rc1
#1 lore raw

PATCH v2 2/5 arm64: dts: fsl: ls1046a: disable the flash controller by default

Set the Integrated Flash Controller status to disabled so each board has the option to enable it. All the existing users have status = "okay" so there is no functional change.

---
 arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi +1 -0
index ef83786b8b90..2d8122019cd8 100644
@@ -200,6 +200,7 @@
 			reg = <0x0 0x1530000 0x0 0x10000>;
 			big-endian;
 			interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
+			status = "disabled";
 		};
 
 		qspi: quadspi at 1550000 {
Signature · 1 line
2.19.0.rc1
#2 lore raw

PATCH v2 3/5 arm64: dts: fsl: ls1046a: disable uarts by default

In reply to Alexandre Belloni

Disable the UARTs by defaultto avoid registering unused UARTs. This effectively change the number of registered UARTS for the RDB and QDS from 4 to 2 but this seems the right thing to do.

It is especially useful when connecting other 8250 uart on PCIe for example as the default maximum number of 8250 UARTs that can be registered is 4.

---
 arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi +4 -0
index 2d8122019cd8..62ae3ee19d6f 100644
@@ -423,6 +423,7 @@
 			reg = <0x00 0x21c0500 0x0 0x100>;
 			interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
 			clocks = <&clockgen 4 1>;
+			status = "disabled";
 		};
 
 		duart1: serial at 21c0600 {
@@ -430,6 +431,7 @@
 			reg = <0x00 0x21c0600 0x0 0x100>;
 			interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
 			clocks = <&clockgen 4 1>;
+			status = "disabled";
 		};
 
 		duart2: serial at 21d0500 {
@@ -437,6 +439,7 @@
 			reg = <0x0 0x21d0500 0x0 0x100>;
 			interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
 			clocks = <&clockgen 4 1>;
+			status = "disabled";
 		};
 
 		duart3: serial at 21d0600 {
@@ -444,6 +447,7 @@
 			reg = <0x0 0x21d0600 0x0 0x100>;
 			interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
 			clocks = <&clockgen 4 1>;
+			status = "disabled";
 		};
 
 		gpio0: gpio at 2300000 {
Signature · 1 line
2.19.0.rc1
#3 lore raw

PATCH v2 4/5 dt-bindings: Add vendor prefix for Microsys

In reply to Alexandre Belloni

Add vendor prefix for MicroSys Electronics GmbH

---
 Documentation/devicetree/bindings/vendor-prefixes.txt | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/vendor-prefixes.txt +1 -0
index 2c3fc512e746..10155a44b783 100644
@@ -235,6 +235,7 @@ micrel	Micrel Inc.
 microchip	Microchip Technology Inc.
 microcrystal	Micro Crystal AG
 micron	Micron Technology Inc.
+microsys	MicroSys Electronics GmbH
 minix	MINIX Technology Ltd.
 miramems	MiraMEMS Sensing Technology Co., Ltd.
 mitsubishi	Mitsubishi Electric Corporation
Signature · 1 line
2.19.0.rc1
#6 lore raw

PATCH v2 5/5 arm64: dts: add Microsys MPX-LS1046A SoM and SBC-LS1046A SBC

In reply to Alexandre Belloni

Microsys designs a SoM based on the LS1046A named miriac MPX-LS1046A
https://microsys.de/products/system-on-modules/qoriqr-armr-architecture/miriactm-mpx-ls1046a/

It also provides an SBC accepting this SoM, the miriac SBC-LS1046
https://microsys.de/en/products/single-board-computer/miriactm-sbcs/miriactm-sbc-ls1046a/

This adds a dtsi for the SoM and a dts for the SBC.

---

Changes in v2:
- Addressed Shawn's comments

 arch/arm64/boot/dts/freescale/Makefile        |   1 +
 .../fsl-ls1046a-miriac-mpxls1046.dtsi         |  62 ++++++++++
 .../freescale/fsl-ls1046a-miriac-sbc1046.dts  | 116 ++++++++++++++++++
 3 files changed, 179 insertions(+)
 create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1046a-miriac-mpxls1046.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1046a-miriac-sbc1046.dts
arch/arm64/boot/dts/freescale/Makefile +1 -0
index 86e18adb695a..b0b81ca887e8 100644
@@ -4,6 +4,7 @@ dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1012a-qds.dtb
 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1012a-rdb.dtb
 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-qds.dtb
 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-rdb.dtb
+dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1046a-miriac-sbc1046.dtb
 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1046a-qds.dtb
 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1046a-rdb.dtb
 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1088a-qds.dtb
arch/arm64/boot/dts/freescale/fsl-ls1046a-miriac-mpxls1046.dtsi new file +62 -0

62 lines not on this page · raw message

arch/arm64/boot/dts/freescale/fsl-ls1046a-miriac-sbc1046.dts new file +116 -0

116 lines not on this page · raw message

Signature · 1 line
2.19.0.rc1
#4 lore raw

Re: [PATCH v2 4/5] dt-bindings: Add vendor prefix for Microsys

In reply to Alexandre Belloni

+Rob

@Rob, Are you okay with this? The patch should really be sent to you from the beginning.

Shawn

Quoted 22 lines · Alexandre Belloni

Add vendor prefix for MicroSys Electronics GmbH

---
 Documentation/devicetree/bindings/vendor-prefixes.txt | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/vendor-prefixes.txt +1 -0
index 2c3fc512e746..10155a44b783 100644
@@ -235,6 +235,7 @@ micrel	Micrel Inc.
 microchip	Microchip Technology Inc.
 microcrystal	Micro Crystal AG
 micron	Micron Technology Inc.
+microsys	MicroSys Electronics GmbH
 minix	MINIX Technology Ltd.
 miramems	MiraMEMS Sensing Technology Co., Ltd.
 mitsubishi	Mitsubishi Electric Corporation
Signature · 1 line
2.19.0.rc1
#7 lore raw
In reply to Alexandre Belloni

The series looks good to me. @Leo, what about you?

Shawn

Quoted 60 lines · Alexandre Belloni

Use a generic node name for the m25p80 flashes on ls1043 and ls1046 boards.

---
 arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dts | 2 +-
 arch/arm64/boot/dts/freescale/fsl-ls1046a-qds.dts | 2 +-
 arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dts +1 -1
index c7b8d2c009cd..af972e91d6bc 100644
@@ -136,7 +136,7 @@
 	bus-num = <0>;
 	status = "okay";
 
-	qflash0: s25fl128s at 0 {
+	qflash0: flash at 0 {
 		compatible = "spansion,m25p80";
 		#address-cells = <1>;
 		#size-cells = <1>;
arch/arm64/boot/dts/freescale/fsl-ls1046a-qds.dts +1 -1
index e69306e6b0b1..219068220b84 100644
@@ -165,7 +165,7 @@
 	bus-num = <0>;
 	status = "okay";
 
-	qflash0: s25fl128s at 0 {
+	qflash0: flash at 0 {
 		compatible = "spansion,m25p80";
 		#address-cells = <1>;
 		#size-cells = <1>;
arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts +2 -2
index 440e111651d5..df676b30357b 100644
@@ -103,7 +103,7 @@
 	bus-num = <0>;
 	status = "okay";
 
-	qflash0: s25fs512s at 0 {
+	qflash0: flash at 0 {
 		compatible = "spansion,m25p80";
 		#address-cells = <1>;
 		#size-cells = <1>;
@@ -111,7 +111,7 @@
 		reg = <0>;
 	};
 
-	qflash1: s25fs512s at 1 {
+	qflash1: flash at 1 {
 		compatible = "spansion,m25p80";
 		#address-cells = <1>;
 		#size-cells = <1>;
Signature · 1 line
2.19.0.rc1
Acked-by
#8 lore raw
Quoted 2 lines · Shawn Guo

The series looks good to me. @Leo, what about you?

Looks fine to me too.

Quoted 64 lines

Shawn

Quoted 60 lines · Alexandre Belloni

Use a generic node name for the m25p80 flashes on ls1043 and ls1046 boards.

---
 arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dts | 2 +-
 arch/arm64/boot/dts/freescale/fsl-ls1046a-qds.dts | 2 +-
 arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dts +1 -1
index c7b8d2c009cd..af972e91d6bc 100644
@@ -136,7 +136,7 @@
      bus-num = <0>;
      status = "okay";
 
-     qflash0: s25fl128s at 0 {
+     qflash0: flash at 0 {
              compatible = "spansion,m25p80";
              #address-cells = <1>;
              #size-cells = <1>;
arch/arm64/boot/dts/freescale/fsl-ls1046a-qds.dts +1 -1
index e69306e6b0b1..219068220b84 100644
@@ -165,7 +165,7 @@
      bus-num = <0>;
      status = "okay";
 
-     qflash0: s25fl128s at 0 {
+     qflash0: flash at 0 {
              compatible = "spansion,m25p80";
              #address-cells = <1>;
              #size-cells = <1>;
arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts +2 -3
index 440e111651d5..df676b30357b 100644
@@ -103,7 +103,7 @@
      bus-num = <0>;
      status = "okay";
 
-     qflash0: s25fs512s at 0 {
+     qflash0: flash at 0 {
              compatible = "spansion,m25p80";
              #address-cells = <1>;
              #size-cells = <1>;
@@ -111,7 +111,7 @@
              reg = <0>;
      };
 
-     qflash1: s25fs512s at 1 {
+     qflash1: flash at 1 {
              compatible = "spansion,m25p80";
              #address-cells = <1>;
              #size-cells = <1>;
--

2.19.0.rc1

#5 lore raw

Re: [PATCH v2 4/5] dt-bindings: Add vendor prefix for Microsys

In reply to Shawn Guo
Quoted 5 lines · Shawn Guo

+Rob

@Rob, Are you okay with this? The patch should really be sent to you from the beginning.

Ah right, Rob was cced on v1 and I forgot to do that in v2.

Quoted 25 lines

Shawn

Quoted 22 lines · Alexandre Belloni

Add vendor prefix for MicroSys Electronics GmbH

---
 Documentation/devicetree/bindings/vendor-prefixes.txt | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/vendor-prefixes.txt +1 -0
index 2c3fc512e746..10155a44b783 100644
@@ -235,6 +235,7 @@ micrel	Micrel Inc.
 microchip	Microchip Technology Inc.
 microcrystal	Micro Crystal AG
 micron	Micron Technology Inc.
+microsys	MicroSys Electronics GmbH
 minix	MINIX Technology Ltd.
 miramems	MiraMEMS Sensing Technology Co., Ltd.
 mitsubishi	Mitsubishi Electric Corporation
Signature · 1 line
2.19.0.rc1
Signature · 3 lines
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com