arm64: dts: Add IOT2050 M.2 board, describe QSPI layout
Subsystems (2)
cover arm64: dts: Add IOT2050 M.2 board, describe QSPI layout
This adds the devices tree for a new variant of the IOT2050 which comes with two M.2 slots and is otherwise almost equivalent to the existing Advanced PG2 variant (USB3 is available via M.2 now).
Furthermore, the device tree of the whole device series is extended to also hold the QSPI layout.
Jan
Jan Kiszka (2):
arm64: dts: ti: iot2050: Add layout of OSPI flash
dt-bindings: arm: ti: Add binding for Siemens IOT2050 M.2 variant
chao zeng (1):
arm64: dts: ti: iot2050: Add support for M.2 variant
.../devicetree/bindings/arm/ti/k3.yaml | 1 + arch/arm64/boot/dts/ti/Makefile | 3 + .../boot/dts/ti/k3-am65-iot2050-common.dtsi | 46 +++++++ .../dts/ti/k3-am6548-iot2050-advanced-m2.dts | 122 ++++++++++++++++++ 4 files changed, 172 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-am6548-iot2050-advanced-m2.dts
Signature · 7 lines
2.35.3 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 1/3 arm64: dts: ti: iot2050: Add layout of OSPI flash
From: Jan Kiszka <[email protected]>
Describe the layout of the OSPI flash as the latest firmware uses it. Specifically the location of the U-Boot envs is important for userspace in order to access it.
--- .../boot/dts/ti/k3-am65-iot2050-common.dtsi | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+)
arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi +46 -0
@@ -609,6 +609,52 @@ flash@0 { cdns,tchsh-ns = <60>; cdns,tslch-ns = <60>; cdns,read-delay = <2>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + seboot@0 { + label = "seboot"; + reg = <0x0 0x180000>; /* 1.5M */ + }; + + tispl@180000 { + label = "tispl"; + reg = <0x180000 0x200000>; /* 2M */ + }; + + u-boot@380000 { + label = "u-boot"; + reg = <0x380000 0x300000>; /* 3M */ + }; + + env@680000 { + label = "env"; + reg = <0x680000 0x20000>; /* 128K */ + }; + + env-backup@6a0000 { + label = "env.backup"; + reg = <0x6a0000 0x20000>; /* 128K */ + }; + + otpcmd@6c0000 { + label = "otpcmd"; + reg = <0x6c0000 0x10000>; /* 64K */ + }; + + unused@6d0000 { + label = "unused"; + reg = <0x6d0000 0x7b0000>; /* 7872K */ + }; + + seboot-backup@e80000 { + label = "seboot.backup"; + reg = <0xe80000 0x180000>; /* 1.5M */ + }; + }; }; };
Signature · 7 lines
2.35.3 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 2/3 dt-bindings: arm: ti: Add binding for Siemens IOT2050 M.2 variant
In reply to Jan KiszkaFrom: Jan Kiszka <[email protected]>
This new variant is derived from the Advanced PG2 board, replacing the MiniPCI slot with B and E-keyed M.2 slots.
--- Documentation/devicetree/bindings/arm/ti/k3.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/ti/k3.yaml +1 -0
@@ -43,6 +43,7 @@ properties: - enum: - siemens,iot2050-advanced - siemens,iot2050-advanced-pg2 + - siemens,iot2050-advanced-m2 - siemens,iot2050-basic - siemens,iot2050-basic-pg2 - ti,am654-evm
Signature · 7 lines
2.35.3 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Re: [PATCH 2/3] dt-bindings: arm: ti: Add binding for Siemens IOT2050 M.2 variant
Quoted 7 lines · Jan Kiszka
From: Jan Kiszka <[email protected]>
This new variant is derived from the Advanced PG2 board, replacing the MiniPCI slot with B and E-keyed M.2 slots.
Signed-off-by Jan Kiszka <[email protected]>---
Best regards,
Krzysztof
Raghavendra, Vignesh
maintainerRe: [PATCH 2/3] dt-bindings: arm: ti: Add binding for Siemens IOT2050 M.2 variant
In reply to Jan KiszkaHi Jan,
Quoted 15 lines · Jan Kiszka
From: Jan Kiszka <[email protected]>
This new variant is derived from the Advanced PG2 board, replacing the MiniPCI slot with B and E-keyed M.2 slots.
Signed-off-by Jan Kiszka <[email protected]>--- Documentation/devicetree/bindings/arm/ti/k3.yaml | 1 + 1 file changed, 1 insertion(+)Documentation/devicetree/bindings/arm/ti/k3.yaml +0
-0
Documentation/devicetree/bindings/arm/ti/k3.yaml properties: · line 46
Quoted 4 lines
Documentation/devicetree/bindings/arm/ti/k3.yaml +1
-0@@ -43,6 +43,7 @@ properties: - enum: - siemens,iot2050-advanced - siemens,iot2050-advanced-pg2 + - siemens,iot2050-advanced-m2
Could you re arrange alphabetically?
Documentation/devicetree/bindings/arm/ti/k3.yaml properties: · line 49
Quoted 3 lines
Documentation/devicetree/bindings/arm/ti/k3.yaml +0
-0- siemens,iot2050-basic - siemens,iot2050-basic-pg2 - ti,am654-evm
Regards
Vignesh
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Re: [PATCH 2/3] dt-bindings: arm: ti: Add binding for Siemens IOT2050 M.2 variant
Quoted 13 lines · Vignesh
Hi Jan,
Quoted 10 lines · Jan Kiszka
From: Jan Kiszka <[email protected]>
This new variant is derived from the Advanced PG2 board, replacing the MiniPCI slot with B and E-keyed M.2 slots.
Signed-off-by Jan Kiszka <[email protected]>--- Documentation/devicetree/bindings/arm/ti/k3.yaml | 1 + 1 file changed, 1 insertion(+)
Quoted 11 lines
Documentation/devicetree/bindings/arm/ti/k3.yaml properties: · line 46
Quoted 9 lines
Documentation/devicetree/bindings/arm/ti/k3.yaml +1
-0@@ -43,6 +43,7 @@ properties: - enum: - siemens,iot2050-advanced - siemens,iot2050-advanced-pg2 + - siemens,iot2050-advanced-m2Could you re arrange alphabetically?
Time of release ordering, but I can reorder as well.
Jan
Quoted 8 lines
Documentation/devicetree/bindings/arm/ti/k3.yaml properties: · line 49
Quoted 4 lines
Documentation/devicetree/bindings/arm/ti/k3.yaml +0
-0- siemens,iot2050-basic - siemens,iot2050-basic-pg2 - ti,am654-evmRegards
Vignesh
Signature · 2 lines
Siemens AG, Technology Competence Center Embedded Linux
Re: [PATCH 2/3] dt-bindings: arm: ti: Add binding for Siemens IOT2050 M.2 variant
Quoted 26 lines · Jan Kiszka
Quoted 13 lines · Vignesh
Hi Jan,
Quoted 10 lines · Jan Kiszka
From: Jan Kiszka <[email protected]>
This new variant is derived from the Advanced PG2 board, replacing the MiniPCI slot with B and E-keyed M.2 slots.
Signed-off-by Jan Kiszka <[email protected]>--- Documentation/devicetree/bindings/arm/ti/k3.yaml | 1 + 1 file changed, 1 insertion(+)Quoted 11 lines
Documentation/devicetree/bindings/arm/ti/k3.yaml properties: · line 46
Quoted 9 lines
Documentation/devicetree/bindings/arm/ti/k3.yaml +1
-0@@ -43,6 +43,7 @@ properties: - enum: - siemens,iot2050-advanced - siemens,iot2050-advanced-pg2 + - siemens,iot2050-advanced-m2Could you re arrange alphabetically?
Quoted 1 line
Time of release ordering, but I can reorder as well.
The entries look ordered alphabetically, not by time of release. BTW, I assume time of release != time of adding to Linux, which would be just dropping stuff to the end...
Best regards,
Krzysztof
PATCH 3/3 arm64: dts: ti: iot2050: Add support for M.2 variant
In reply to Jan KiszkaFrom: chao zeng <[email protected]>
The M.2 variant comes with 2 slots, one B-keyed and another one E-keyed. They are configured by the firmware during startup. Also the device tree will be adjusted according to the detect or manually configured interface mode by the firmware. The kernel only carries a single configuration as base device tree. It has to be built with a symbols node so that the firmware can apply overlays for the connector modes.
--- arch/arm64/boot/dts/ti/Makefile | 3 + .../dts/ti/k3-am6548-iot2050-advanced-m2.dts | 122 ++++++++++++++++++ 2 files changed, 125 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-am6548-iot2050-advanced-m2.dts
arch/arm64/boot/dts/ti/Makefile +3 -0
@@ -11,6 +11,9 @@ dtb-$(CONFIG_ARCH_K3) += k3-am6528-iot2050-basic.dtb dtb-$(CONFIG_ARCH_K3) += k3-am6528-iot2050-basic-pg2.dtb dtb-$(CONFIG_ARCH_K3) += k3-am6548-iot2050-advanced.dtb dtb-$(CONFIG_ARCH_K3) += k3-am6548-iot2050-advanced-pg2.dtb +dtb-$(CONFIG_ARCH_K3) += k3-am6548-iot2050-advanced-m2.dtb + +DTC_FLAGS_k3-am6548-iot2050-advanced-m2 += -@ dtb-$(CONFIG_ARCH_K3) += k3-j721e-beagleboneai64.dtb dtb-$(CONFIG_ARCH_K3) += k3-j721e-common-proc-board.dtb
arch/arm64/boot/dts/ti/k3-am6548-iot2050-advanced-m2.dts new file +122 -0
122 lines not on this page · raw message
Signature · 7 lines
2.35.3 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Re: [PATCH 3/3] arm64: dts: ti: iot2050: Add support for M.2 variant
Quoted 23 lines · Jan Kiszka
From: chao zeng <[email protected]>
The M.2 variant comes with 2 slots, one B-keyed and another one E-keyed. They are configured by the firmware during startup. Also the device tree will be adjusted according to the detect or manually configured interface mode by the firmware. The kernel only carries a single configuration as base device tree. It has to be built with a symbols node so that the firmware can apply overlays for the connector modes.
Signed-off-by chao zeng <[email protected]>[Jan: refactored to a single DT]Signed-off-by Jan Kiszka <[email protected]>--- arch/arm64/boot/dts/ti/Makefile | 3 + .../dts/ti/k3-am6548-iot2050-advanced-m2.dts | 122 ++++++++++++++++++ 2 files changed, 125 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-am6548-iot2050-advanced-m2.dtsarch/arm64/boot/dts/ti/Makefile +0
-0
arch/arm64/boot/dts/ti/Makefile dtb-$(CONFIG_ARCH_K3) += k3-am6528-iot2050-basic.dtb · line 14
Quoted 4 lines
arch/arm64/boot/dts/ti/Makefile +1
-0@@ -11,6 +11,9 @@ dtb-$(CONFIG_ARCH_K3) += k3-am6528-iot2050-basic.dtb dtb-$(CONFIG_ARCH_K3) += k3-am6528-iot2050-basic-pg2.dtb dtb-$(CONFIG_ARCH_K3) += k3-am6548-iot2050-advanced.dtb dtb-$(CONFIG_ARCH_K3) += k3-am6548-iot2050-advanced-pg2.dtb +dtb-$(CONFIG_ARCH_K3) += k3-am6548-iot2050-advanced-m2.dtb
This does not look like proper order.
arch/arm64/boot/dts/ti/Makefile dtb-$(CONFIG_ARCH_K3) += k3-am6528-iot2050-basic.dtb · line 17
Quoted 3 lines
arch/arm64/boot/dts/ti/Makefile +2
-0+ +DTC_FLAGS_k3-am6548-iot2050-advanced-m2 += -@
Best regards,
Krzysztof
Re: [PATCH 3/3] arm64: dts: ti: iot2050: Add support for M.2 variant
Quoted 19 lines · Krzysztof Kozlowski
Quoted 18 lines · Jan Kiszka
From: chao zeng <[email protected]>
The M.2 variant comes with 2 slots, one B-keyed and another one E-keyed. They are configured by the firmware during startup. Also the device tree will be adjusted according to the detect or manually configured interface mode by the firmware. The kernel only carries a single configuration as base device tree. It has to be built with a symbols node so that the firmware can apply overlays for the connector modes.
Signed-off-by chao zeng <[email protected]>[Jan: refactored to a single DT]Signed-off-by Jan Kiszka <[email protected]>--- arch/arm64/boot/dts/ti/Makefile | 3 + .../dts/ti/k3-am6548-iot2050-advanced-m2.dts | 122 ++++++++++++++++++ 2 files changed, 125 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-am6548-iot2050-advanced-m2.dts
Quoted 12 lines
arch/arm64/boot/dts/ti/Makefile dtb-$(CONFIG_ARCH_K3) += k3-am6528-iot2050-basic.dtb · line 14
Quoted 9 lines
arch/arm64/boot/dts/ti/Makefile +1
-0@@ -11,6 +11,9 @@ dtb-$(CONFIG_ARCH_K3) += k3-am6528-iot2050-basic.dtb dtb-$(CONFIG_ARCH_K3) += k3-am6528-iot2050-basic-pg2.dtb dtb-$(CONFIG_ARCH_K3) += k3-am6548-iot2050-advanced.dtb dtb-$(CONFIG_ARCH_K3) += k3-am6548-iot2050-advanced-pg2.dtb +dtb-$(CONFIG_ARCH_K3) += k3-am6548-iot2050-advanced-m2.dtbThis does not look like proper order.
It's ordered according to their time of release, not simply alphabetically. But if the latter is a must, I can reorder.
Jan
Signature · 2 lines
Siemens AG, Technology Competence Center Embedded Linux