aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKefeng Wang <wangkefeng.wang@huawei.com>2016-04-08 03:31:51 -0400
committerWei Xu <xuwei5@hisilicon.com>2016-04-27 10:39:56 -0400
commit162d23bfd18cec10bd5940ff264debf3c6121f34 (patch)
treeffc52affc7c2ea794d8bf85b564b03c7d9d20ac4
parent70896650732afd64c410f85c819281dbce8a0974 (diff)
arm64: dts: hip05: Add nor flash support
This patch is to add support nor-flash. Notice, the pre-defined partitions may not be used. Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
-rw-r--r--arch/arm64/boot/dts/hisilicon/hip05-d02.dts34
-rw-r--r--arch/arm64/boot/dts/hisilicon/hip05.dtsi6
2 files changed, 40 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/hisilicon/hip05-d02.dts b/arch/arm64/boot/dts/hisilicon/hip05-d02.dts
index e9436c0d81f7..abba750b87f8 100644
--- a/arch/arm64/boot/dts/hisilicon/hip05-d02.dts
+++ b/arch/arm64/boot/dts/hisilicon/hip05-d02.dts
@@ -52,3 +52,37 @@
52&peri_gpio0 { 52&peri_gpio0 {
53 status = "ok"; 53 status = "ok";
54}; 54};
55
56&lbc {
57 status = "ok";
58 #address-cells = <2>;
59 #size-cells = <1>;
60 ranges = <0 0 0x0 0x90000000 0x08000000>,
61 <1 0 0x0 0x98000000 0x08000000>;
62
63 nor-flash@0,0 {
64 #address-cells = <1>;
65 #size-cells = <1>;
66 compatible = "numonyx,js28f00a", "cfi-flash";
67 reg = <0 0x0 0x08000000>;
68 bank-width = <2>;
69 /* The three parts may not used */
70 partition@0 {
71 label = "BIOS";
72 reg = <0x0 0x300000>;
73 };
74 partition@300000 {
75 label = "Linux";
76 reg = <0x300000 0xa00000>;
77 };
78 partition@1000000 {
79 label = "Rootfs";
80 reg = <0x01000000 0x02000000>;
81 };
82 };
83
84 cpld@1,0 {
85 compatible = "hisilicon,hip05-cpld";
86 reg = <1 0x0 0x100>;
87 };
88};
diff --git a/arch/arm64/boot/dts/hisilicon/hip05.dtsi b/arch/arm64/boot/dts/hisilicon/hip05.dtsi
index 52d06ab816db..bf322ed038b8 100644
--- a/arch/arm64/boot/dts/hisilicon/hip05.dtsi
+++ b/arch/arm64/boot/dts/hisilicon/hip05.dtsi
@@ -327,6 +327,12 @@
327 status = "disabled"; 327 status = "disabled";
328 }; 328 };
329 329
330 lbc: localbus@80380000 {
331 compatible = "hisilicon,hisi-localbus", "simple-bus";
332 reg = <0x0 0x80380000 0x0 0x10000>;
333 status = "disabled";
334 };
335
330 peri_gpio0: gpio@802e0000 { 336 peri_gpio0: gpio@802e0000 {
331 #address-cells = <1>; 337 #address-cells = <1>;
332 #size-cells = <0>; 338 #size-cells = <0>;