riscv: dts: Add #address-cells and #size-cells in nor node
authorRick Chen <rick@andestech.com>
Thu, 14 Nov 2019 05:52:29 +0000 (13:52 +0800)
committerAndes <uboot@andestech.com>
Tue, 10 Dec 2019 00:23:10 +0000 (08:23 +0800)
Those are required for cfi-flash driver to get correct address information.
Also modify size description correctly.

Signed-off-by: Rick Chen <rick@andestech.com>
Cc: KC Lin <kclin@andestech.com>
Cc: Alan Kao <alankao@andestech.com>
arch/riscv/dts/ae350_32.dts
arch/riscv/dts/ae350_64.dts

index c6c2040d31582440225ff757915cedfb2a6de470..3f8525fe56a91fe792a3a09fc6c67ff4a4942ec2 100644 (file)
        };
 
        nor@0,0 {
+               #address-cells = <1>;
+               #size-cells = <1>;
                compatible = "cfi-flash";
-               reg = <0x88000000 0x1000>;
+               reg = <0x88000000 0x4000000>;
                bank-width = <2>;
                device-width = <1>;
        };
index c57efe3f2d6c03529cf8ed9b95602be77eba98a8..482c70750300574f7bb24ddb2517a40ceaa0724b 100644 (file)
        };
 
        nor@0,0 {
+               #address-cells = <2>;
+               #size-cells = <2>;
                compatible = "cfi-flash";
-               reg = <0x0 0x88000000 0x0 0x1000>;
+               reg = <0x0 0x88000000 0x0 0x4000000>;
                bank-width = <2>;
                device-width = <1>;
        };