ARM: gemini: add two more board
cover ARM: gemini: add two more board
I have two boards with a SL3516 SoC. Both are NAS box.
Corentin Labbe (5):
ARM: dts: gemini: add labels for USB, IDE, flash and ethernet
dt-bindings: add vendor prefix for edimax
dt-bindings: add vendor prefix for ssi
ARM: gemini: add device tree for edimax NS2502
ARM: gemini: add device tree for ssi1328
.../devicetree/bindings/vendor-prefixes.yaml | 4 + arch/arm/boot/dts/Makefile | 2 + arch/arm/boot/dts/gemini-ns2502.dts | 141 +++++++++++++++ arch/arm/boot/dts/gemini-ssi1328.dts | 162 ++++++++++++++++++ arch/arm/boot/dts/gemini.dtsi | 12 +- 5 files changed, 315 insertions(+), 6 deletions(-) create mode 100644 arch/arm/boot/dts/gemini-ns2502.dts create mode 100644 arch/arm/boot/dts/gemini-ssi1328.dts
Signature · 1 line
2.26.3
PATCH 1/5 ARM: dts: gemini: add labels for USB, IDE, flash and ethernet
Adding label will help simplify boards's dts.
--- arch/arm/boot/dts/gemini.dtsi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
arch/arm/boot/dts/gemini.dtsi +6 -6
@@ -16,7 +16,7 @@ soc { compatible = "simple-bus"; interrupt-parent = <&intcon>; - flash@30000000 { + flash: flash@30000000 { compatible = "cortina,gemini-flash", "cfi-flash"; syscon = <&syscon>; pinctrl-names = "default";
@@ -321,7 +321,7 @@ pci_intc: interrupt-controller { }; }; - ethernet@60000000 { + ethernet: ethernet@60000000 { compatible = "cortina,gemini-ethernet"; reg = <0x60000000 0x4000>, /* Global registers, queue */ <0x60004000 0x2000>, /* V-bit */
@@ -356,7 +356,7 @@ gmac1: ethernet-port@1 { }; }; - ide@63000000 { + ide0: ide@63000000 { compatible = "cortina,gemini-pata", "faraday,ftide010"; reg = <0x63000000 0x1000>; interrupts = <4 IRQ_TYPE_EDGE_RISING>;
@@ -369,7 +369,7 @@ ide@63000000 { #size-cells = <0>; }; - ide@63400000 { + ide1: ide@63400000 { compatible = "cortina,gemini-pata", "faraday,ftide010"; reg = <0x63400000 0x1000>; interrupts = <5 IRQ_TYPE_EDGE_RISING>;
@@ -414,7 +414,7 @@ display-controller@6a000000 { status = "disabled"; }; - usb@68000000 { + usb0: usb@68000000 { compatible = "cortina,gemini-usb", "faraday,fotg210"; reg = <0x68000000 0x1000>; interrupts = <10 IRQ_TYPE_LEVEL_HIGH>;
@@ -435,7 +435,7 @@ usb@68000000 { status = "disabled"; }; - usb@69000000 { + usb1: usb@69000000 { compatible = "cortina,gemini-usb", "faraday,fotg210"; reg = <0x69000000 0x1000>; interrupts = <11 IRQ_TYPE_LEVEL_HIGH>;
Signature · 1 line
2.26.3
PATCH 2/5 dt-bindings: add vendor prefix for edimax
In reply to Corentin LabbeAdd vendor prefix for EDIMAX Technology Co., Ltd (https://www.edimax.com/)
--- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
@@ -329,6 +329,8 @@ patternProperties: description: EBV Elektronik "^eckelmann,.*": description: Eckelmann AG + "^edimax,.*": + description: EDIMAX Technology Co., Ltd "^edt,.*": description: Emerging Display Technologies "^eeti,.*":
Signature · 1 line
2.26.3
Re: [PATCH 2/5] dt-bindings: add vendor prefix for edimax
Quoted 7 lines · Corentin Labbe
Add vendor prefix for EDIMAX Technology Co., Ltd (https://www.edimax.com/)
Signed-off-by Corentin Labbe <[email protected]>--- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)
PATCH 3/5 dt-bindings: add vendor prefix for ssi
In reply to Corentin LabbeAdd vendor prefix for SSI Computer Corp (https://www.ssi.com.tw/)
--- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
@@ -1084,6 +1084,8 @@ patternProperties: description: Spansion Inc. "^sprd,.*": description: Spreadtrum Communications Inc. + "^ssi,.*": + description: SSI Computer Corp "^sst,.*": description: Silicon Storage Technology, Inc. "^sstar,.*":
Signature · 1 line
2.26.3
Re: [PATCH 3/5] dt-bindings: add vendor prefix for ssi
Quoted 7 lines · Corentin Labbe
Add vendor prefix for SSI Computer Corp (https://www.ssi.com.tw/)
Signed-off-by Corentin Labbe <[email protected]>--- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)
PATCH 4/5 ARM: gemini: add device tree for edimax NS2502
In reply to Corentin LabbeThe edimax NS2502 is a NAS box running a SL3516 SoC.
--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/gemini-ns2502.dts | 141 ++++++++++++++++++++++++++++ 2 files changed, 142 insertions(+) create mode 100644 arch/arm/boot/dts/gemini-ns2502.dts
arch/arm/boot/dts/Makefile +1 -0
@@ -216,6 +216,7 @@ dtb-$(CONFIG_ARCH_GEMINI) += \ gemini-dlink-dir-685.dtb \ gemini-dlink-dns-313.dtb \ gemini-nas4220b.dtb \ + gemini-ns2502.dtb \ gemini-rut1xx.dtb \ gemini-sl93512r.dtb \ gemini-sq201.dtb \
arch/arm/boot/dts/gemini-ns2502.dts new file +141 -0
141 lines not on this page · raw message
Signature · 1 line
2.26.3
Re: [PATCH 4/5] ARM: gemini: add device tree for edimax NS2502
Hi Corentin,
this is looking nice! Just one thing:
arch/arm/boot/dts/gemini-ns2502.dts line 61
Quoted 8 lines · Corentin Labbe
The edimax NS2502 is a NAS box running a SL3516 SoC.
Signed-off-by Corentin Labbe <[email protected]>+&flash {
arch/arm/boot/dts/gemini-ns2502.dts new file +3
-0+ status = "okay"; + /* 8MB of flash */ + reg = <0x30000000 0x00800000>;
No pin control setting? I guess it may work but this doesn't hurt (I think):
pinctrl-names = "enabled", "disabled";
pinctrl-0 = <&pflash_default_pins>;
pinctrl-1 = <&pflash_disabled_pins>;Quoted 21 lines
arch/arm/boot/dts/gemini-ns2502.dts new file +21
-0+ partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "RedBoot"; + reg = <0x00000000 0x00020000>; + read-only; + }; + partition@20000 { + label = "kernel"; + reg = <0x00020000 0x00700000>; + }; + partition@720000 { + label = "VCTL"; + reg = <0x00720000 0x00020000>; + read-only; + }; + partition@740000 { + label = "CurConf";
arch/arm/boot/dts/gemini-ns2502.dts line 93
Quoted 10 lines
arch/arm/boot/dts/gemini-ns2502.dts new file +10
-0+ reg = <0x00740000 0x000a0000>; + read-only; + }; + partition@7e0000 { + label = "FIS"; + reg = <0x007e0000 0x00010000>; + read-only; + }; + }; +};
Is the FIS broken since you hardcode the partitions?
Doesn't this work:
partitions {
compatible = "redboot-fis";
/* Eraseblock at 0x7e0000 */
fis-index-block = <0xfc>;
};(Needs CONFIG_MTD_REDBOOT_PARTS)
Yours,
Linus Walleij
Re: [PATCH 4/5] ARM: gemini: add device tree for edimax NS2502
Quoted 15 lines · Linus Walleij
Hi Corentin,
this is looking nice! Just one thing:
arch/arm/boot/dts/gemini-ns2502.dts line 61
Quoted 8 lines · Corentin Labbe
The edimax NS2502 is a NAS box running a SL3516 SoC.
Signed-off-by Corentin Labbe <[email protected]>+&flash {
arch/arm/boot/dts/gemini-ns2502.dts new file +3
-0+ status = "okay"; + /* 8MB of flash */ + reg = <0x30000000 0x00800000>;
Quoted 7 lines
No pin control setting? I guess it may work but this doesn't hurt (I think):
pinctrl-names = "enabled", "disabled"; pinctrl-0 = <&pflash_default_pins>; pinctrl-1 = <&pflash_disabled_pins>;
I have added, without any change in behavour.
Quoted 36 lines
Quoted 21 lines
arch/arm/boot/dts/gemini-ns2502.dts new file +21
-0+ partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "RedBoot"; + reg = <0x00000000 0x00020000>; + read-only; + }; + partition@20000 { + label = "kernel"; + reg = <0x00020000 0x00700000>; + }; + partition@720000 { + label = "VCTL"; + reg = <0x00720000 0x00020000>; + read-only; + }; + partition@740000 { + label = "CurConf";arch/arm/boot/dts/gemini-ns2502.dts line 93
Quoted 10 lines
arch/arm/boot/dts/gemini-ns2502.dts new file +10
-0+ reg = <0x00740000 0x000a0000>; + read-only; + }; + partition@7e0000 { + label = "FIS"; + reg = <0x007e0000 0x00010000>; + read-only; + }; + }; +};Is the FIS broken since you hardcode the partitions?
Doesn't this work:
Quoted 7 lines
partitions { compatible = "redboot-fis"; /* Eraseblock at 0x7e0000 */ fis-index-block = <0xfc>; };(Needs
CONFIG_MTD_REDBOOT_PARTS)
No it does not.
physmap-flash 30000000.flash: no enabled pin control state
physmap-flash 30000000.flash: no disabled pin control state
physmap-flash 30000000.flash: initialized Gemini-specific physmap control physmap-flash 30000000.flash: physmap platform flash device: [mem 0x30000000-0x331fffff] 30000000.flash: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000001 Chip ID 0x002201 number of CFI chips: 1
Searching for RedBoot partition table in 30000000.flash at offset 0x1fe0000
No RedBoot partition table detected in 30000000.flash
Searching for RedBoot partition table in 30000000.flash at offset 0x1fe0000
No RedBoot partition table detected in 30000000.flash
Re: [PATCH 4/5] ARM: gemini: add device tree for edimax NS2502
Quoted 16 lines · LABBE Corentin
Quoted 11 lines · Linus Walleij
Is the FIS broken since you hardcode the partitions?
Doesn't this work:
partitions { compatible = "redboot-fis"; /* Eraseblock at 0x7e0000 */ fis-index-block = <0xfc>; };(Needs
CONFIG_MTD_REDBOOT_PARTS)No it does not.
Quoted 10 lines
physmap-flash 30000000.flash: no enabled pin control state
physmap-flash 30000000.flash: no disabled pin control state
physmap-flash 30000000.flash: initialized Gemini-specific physmap control physmap-flash 30000000.flash: physmap platform flash device: [mem 0x30000000-0x331fffff] 30000000.flash: Found 1 x16 devices at0x0in 16-bit bank. Manufacturer ID0x000001Chip ID0x002201number of CFI chips: 1
Searching for RedBoot partition table in 30000000.flash at offset0x1fe0000
No RedBoot partition table detected in 30000000.flash
Searching for RedBoot partition table in 30000000.flash at offset0x1fe0000
No RedBoot partition table detected in 30000000.flash
Hm since it searches at 0x1fe0000 that's where it thinks the last eraseblock is so the erase blocks are 0x20000 (128KB).
FIS at 0x7e0000 should be erase block
0x7e0000/0x20000 = 0x3f
Can you test fis-index-block = <0x3f> and see what happens?
Yours,
Linus Walleij
Re: [PATCH 4/5] ARM: gemini: add device tree for edimax NS2502
Quoted 28 lines · Linus Walleij
Quoted 16 lines · LABBE Corentin
Quoted 11 lines · Linus Walleij
Is the FIS broken since you hardcode the partitions?
Doesn't this work:
partitions { compatible = "redboot-fis"; /* Eraseblock at 0x7e0000 */ fis-index-block = <0xfc>; };(Needs
CONFIG_MTD_REDBOOT_PARTS)No it does not.
Quoted 10 lines
physmap-flash 30000000.flash: no enabled pin control state
physmap-flash 30000000.flash: no disabled pin control state
physmap-flash 30000000.flash: initialized Gemini-specific physmap control physmap-flash 30000000.flash: physmap platform flash device: [mem 0x30000000-0x331fffff] 30000000.flash: Found 1 x16 devices at0x0in 16-bit bank. Manufacturer ID0x000001Chip ID0x002201number of CFI chips: 1
Searching for RedBoot partition table in 30000000.flash at offset0x1fe0000
No RedBoot partition table detected in 30000000.flash
Searching for RedBoot partition table in 30000000.flash at offset0x1fe0000
No RedBoot partition table detected in 30000000.flash
Quoted 8 lines
Hm since it searches at
0x1fe0000that's where it thinks the last eraseblock is so the erase blocks are0x20000(128KB).FIS at
0x7e0000should be erase block
0x7e0000/0x20000 =0x3fCan you test fis-index-block = <
0x3f> and see what happens?
With 0x7F it works.
When testing, I found that fis-index-block was ignored. I just sent a patch fixing this.
Regards
PATCH 5/5 ARM: gemini: add device tree for ssi1328
In reply to Corentin LabbeThe SSI 1328 is a NAS box running a SL3516 SoC.
--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/gemini-ssi1328.dts | 162 +++++++++++++++++++++++++++ 2 files changed, 163 insertions(+) create mode 100644 arch/arm/boot/dts/gemini-ssi1328.dts
arch/arm/boot/dts/Makefile +1 -0
@@ -220,6 +220,7 @@ dtb-$(CONFIG_ARCH_GEMINI) += \ gemini-rut1xx.dtb \ gemini-sl93512r.dtb \ gemini-sq201.dtb \ + gemini-ssi1328.dtb \ gemini-wbd111.dtb \ gemini-wbd222.dtb dtb-$(CONFIG_ARCH_HI3xxx) += \
arch/arm/boot/dts/gemini-ssi1328.dts new file +162 -0
162 lines not on this page · raw message
Signature · 1 line
2.26.3
Re: [PATCH 5/5] ARM: gemini: add device tree for ssi1328
Hi Corentin,
Quoted 4 lines · Corentin Labbe
The SSI 1328 is a NAS box running a SL3516 SoC.
Signed-off-by Corentin Labbe <[email protected]>
Same question with redboot FIS and the pin control for the flash here, otherwise it looks good!
Yours,
Linus Walleij