[PATCH 4/5] ARM: gemini: add device tree for edimax NS2502
Linus Walleij
linus.walleij at linaro.org
Mon May 17 16:46:20 PDT 2021
Hi Corentin,
this is looking nice! Just one thing:
On Mon, May 17, 2021 at 9:32 PM Corentin Labbe <clabbe at baylibre.com> wrote:
> The edimax NS2502 is a NAS box running a SL3516 SoC.
>
> Signed-off-by: Corentin Labbe <clabbe at baylibre.com>
> +&flash {
> + 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>;
> + partitions {
> + compatible = "fixed-partitions";
> + #address-cells = <1>;
> + #size-cells = <1>;
> +
> + partition at 0 {
> + label = "RedBoot";
> + reg = <0x00000000 0x00020000>;
> + read-only;
> + };
> + partition at 20000 {
> + label = "kernel";
> + reg = <0x00020000 0x00700000>;
> + };
> + partition at 720000 {
> + label = "VCTL";
> + reg = <0x00720000 0x00020000>;
> + read-only;
> + };
> + partition at 740000 {
> + label = "CurConf";
> + reg = <0x00740000 0x000a0000>;
> + read-only;
> + };
> + partition at 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
More information about the linux-arm-kernel
mailing list