Skip to content

Commit

Permalink
ARM: dts: meson8m2-m8s: enable the NAND flash - WiP
Browse files Browse the repository at this point in the history
  • Loading branch information
xdarklight committed Sep 26, 2018
1 parent 581ae78 commit 02d441f
Showing 1 changed file with 79 additions and 0 deletions.
79 changes: 79 additions & 0 deletions arch/arm/boot/dts/meson8m2-m8s.dts
Expand Up @@ -129,6 +129,85 @@
pinctrl-names = "default";
};

&nand {
status = "okay";

pinctrl-0 = <&nand_pins>;
pinctrl-names = "default";

nand@0 {
reg = <0>;

// nand-on-flash-bbt;
nand-ecc-mode = "hw";
nand-ecc-strength = <40>;
nand-ecc-step-size = <1024>;

nand-user-mode = <2>;
nand-ran-mode = <1>;

partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

partition@2 {
label = "2GiB";
reg = <0x0 0xffffffff>;
read-only;
};

partition@0 {
label = "nand_page0_cfg";
reg = <0x0 0x4000>;
read-only;
};

partition@4000 {
label = "u-boot";
reg = <0x4000 0x60000>;
read-only;
};

partition@400000 {
label = "u-boot-env";
reg = <0x400000 0x10000>;
read-only;
};

partition@1000000 {
label = "boot";
reg = <0x1000000 0x400000>;
read-only;
};

partition@1400000 {
label = "uboot_p1";
reg = <0x1400000 0x8000000>;
read-only;
};

partition@d000000 {
label = "cache";
reg = <0xd000000 0x19000000>;
read-only;
};

partition@33000000 {
label = "system";
reg = <0x33000000 0x1f000000>;
read-only;
};

partition@85000000 {
label = "data";
reg = <0x85000000 0xf6000000>;
read-only;
};
};
};
};

&pwm_ef {
status = "disabled"; /* TODO: causes lockups */
pinctrl-0 = <&pwm_f_ao_pins>;
Expand Down

0 comments on commit 02d441f

Please sign in to comment.