arm64: dts: ti: k3-j721s2-common-proc-board: Add QSPI flash partition details
Subsystems (2)
PATCH 1/1 arm64: dts: ti: k3-j721s2-common-proc-board: Add QSPI flash partition details
J721S2 EVM has MT25QU512AB 64 MiB Quad SPI NOR flash connected to OSPI1. Add the partition information as per bootloader.
---
Test logs: https://gist.github.com/anuragdutta731/b65f63f22c69317d714b65a201438cbc
.../dts/ti/k3-j721s2-common-proc-board.dts | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+)
arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts +41 -0
@@ -530,6 +530,47 @@ flash@0 { cdns,tchsh-ns = <60>; cdns,tslch-ns = <60>; cdns,read-delay = <2>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "qspi.tiboot3"; + reg = <0x0 0x80000>; + }; + + partition@80000 { + label = "qspi.tispl"; + reg = <0x80000 0x200000>; + }; + + partition@280000 { + label = "qspi.u-boot"; + reg = <0x280000 0x400000>; + }; + + partition@680000 { + label = "qspi.env"; + reg = <0x680000 0x40000>; + }; + + partition@6c0000 { + label = "qspi.env.backup"; + reg = <0x6c0000 0x40000>; + }; + + partition@800000 { + label = "qspi.rootfs"; + reg = <0x800000 0x37c0000>; + }; + + partition@3fc0000 { + label = "qspi.phypattern"; + reg = <0x3fc0000 0x40000>; + }; + }; }; };
Signature · 1 line
2.34.1
Quoted 6 lines · Anurag Dutta
J721S2 EVM has MT25QU512AB 64 MiB Quad SPI NOR flash connected to OSPI1. Add the partition information as per bootloader.
Signed-off-by Anurag Dutta <[email protected]>---
Test logs: https://gist.github.com/anuragdutta731/b65f63f22c69317d714b65a201438cbc
Thanks for logs, but these are for boot-loader and I don't think u-boot consumes partition details.
could you share logs for kernel as well.
Quoted 56 lines
.../dts/ti/k3-j721s2-common-proc-board.dts | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+)arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts +41
-0@@ -530,6 +530,47 @@ flash@0 { cdns,tchsh-ns = <60>; cdns,tslch-ns = <60>; cdns,read-delay = <2>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "qspi.tiboot3"; + reg = <0x0 0x80000>; + }; + + partition@80000 { + label = "qspi.tispl"; + reg = <0x80000 0x200000>; + }; + + partition@280000 { + label = "qspi.u-boot"; + reg = <0x280000 0x400000>; + }; + + partition@680000 { + label = "qspi.env"; + reg = <0x680000 0x40000>; + }; + + partition@6c0000 { + label = "qspi.env.backup"; + reg = <0x6c0000 0x40000>; + }; + + partition@800000 { + label = "qspi.rootfs"; + reg = <0x800000 0x37c0000>; + }; + + partition@3fc0000 { + label = "qspi.phypattern"; + reg = <0x3fc0000 0x40000>; + }; + }; }; };
Quoted 5 lines · Udit
Quoted 3 lines · Anurag Dutta
J721S2 EVM has MT25QU512AB 64 MiB Quad SPI NOR flash connected to OSPI1. Add the partition information as per bootloader.
Quoted 9 lines
Quoted 3 lines
Signed-off-by Anurag Dutta <[email protected]>---
Test logs: https://gist.github.com/anuragdutta731/b65f63f22c69317d714b65a201438cbcThanks for logs, but these are for boot-loader and I don't think u-boot consumes partition details.
could you share logs for kernel as well.
Hi Udit
Here are kernel logs : https://gist.github.com/anuragdutta731/d4ee38df3ed8889f44bf28ab163b1baf
Quoted 57 lines
Quoted 57 lines
.../dts/ti/k3-j721s2-common-proc-board.dts | 41 +++++++++++++++++++
1 file changed, 41 insertions(+)arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts +41
-0@@ -530,6 +530,47 @@ flash@0 { cdns,tchsh-ns = <60>; cdns,tslch-ns = <60>; cdns,read-delay = <2>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "qspi.tiboot3"; + reg = <0x0 0x80000>; + }; + + partition@80000 { + label = "qspi.tispl"; + reg = <0x80000 0x200000>; + }; + + partition@280000 { + label = "qspi.u-boot"; + reg = <0x280000 0x400000>; + }; + + partition@680000 { + label = "qspi.env"; + reg = <0x680000 0x40000>; + }; + + partition@6c0000 { + label = "qspi.env.backup"; + reg = <0x6c0000 0x40000>; + }; + + partition@800000 { + label = "qspi.rootfs"; + reg = <0x800000 0x37c0000>; + }; + + partition@3fc0000 { + label = "qspi.phypattern"; + reg = <0x3fc0000 0x40000>; + }; + }; }; };
Quoted 12 lines · Anurag
Quoted 10 lines · Udit
Quoted 6 lines · Anurag Dutta
J721S2 EVM has MT25QU512AB 64 MiB Quad SPI NOR flash connected to OSPI1. Add the partition information as per bootloader.
Signed-off-by Anurag Dutta <[email protected]>---
Test logs: https://gist.github.com/anuragdutta731/b65f63f22c69317d714b65a201438cbc
Quoted 6 lines
Quoted 4 lines
Thanks for logs, but these are for boot-loader and I don't think u-boot consumes partition details.
could you share logs for kernel as well.
Hi Udit
Here are kernel logs : https://gist.github.com/anuragdutta731/d4ee38df3ed8889f44bf28ab163b1baf
Thanks Anurag,
I think, you need qspi.phypattern under bootph-all, as I see u-boot stage will/may do phy-tuning.
While at this, same thing needs to be cascaded to ospi flash as well.
Quoted 58 lines
Quoted 58 lines
Quoted 58 lines
.../dts/ti/k3-j721s2-common-proc-board.dts | 41
+++++++++++++++++++1 file changed, 41 insertions(+)arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts +41
-0@@ -530,6 +530,47 @@ flash@0 { cdns,tchsh-ns = <60>; cdns,tslch-ns = <60>; cdns,read-delay = <2>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "qspi.tiboot3"; + reg = <0x0 0x80000>; + }; + + partition@80000 { + label = "qspi.tispl"; + reg = <0x80000 0x200000>; + }; + + partition@280000 { + label = "qspi.u-boot"; + reg = <0x280000 0x400000>; + }; + + partition@680000 { + label = "qspi.env"; + reg = <0x680000 0x40000>; + }; + + partition@6c0000 { + label = "qspi.env.backup"; + reg = <0x6c0000 0x40000>; + }; + + partition@800000 { + label = "qspi.rootfs"; + reg = <0x800000 0x37c0000>; + }; + + partition@3fc0000 { + label = "qspi.phypattern"; + reg = <0x3fc0000 0x40000>; + }; + }; }; };