aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Le Goater <clg@kaod.org>2017-03-01 09:26:42 -0500
committerJoel Stanley <joel@jms.id.au>2017-03-05 18:08:26 -0500
commit74dc3cd32e062b664e78c2e61331b4e0caac7822 (patch)
treecddf7661d73ae05ddfa98dad00d8c633b3fa7962
parentc1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201 (diff)
ARM: dts: aspeed: add SPI controller bindings
Let's define the SPI controllers in the Aspeed SoCs AST2500 and AST2400 and also enable these, as well as the chips, on the associated platforms. Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Joel Stanley <joel@jms.id.au>
-rw-r--r--arch/arm/boot/dts/aspeed-ast2500-evb.dts20
-rw-r--r--arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts16
-rw-r--r--arch/arm/boot/dts/aspeed-g4.dtsi29
-rw-r--r--arch/arm/boot/dts/aspeed-g5.dtsi63
4 files changed, 128 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/aspeed-ast2500-evb.dts b/arch/arm/boot/dts/aspeed-ast2500-evb.dts
index d967603dade8..8f82e8ab1875 100644
--- a/arch/arm/boot/dts/aspeed-ast2500-evb.dts
+++ b/arch/arm/boot/dts/aspeed-ast2500-evb.dts
@@ -20,6 +20,26 @@
20 }; 20 };
21}; 21};
22 22
23&fmc {
24 status = "okay";
25 flash@0 {
26 status = "okay";
27 label = "bmc";
28 };
29};
30
31&spi1 {
32 status = "okay";
33 flash@0 {
34 status = "okay";
35 label = "pnor";
36 };
37};
38
39&spi2 {
40 status = "okay";
41};
42
23&uart5 { 43&uart5 {
24 status = "okay"; 44 status = "okay";
25}; 45};
diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts b/arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts
index 1d2fc1e1dc29..aab1889f702f 100644
--- a/arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts
@@ -31,6 +31,22 @@
31 }; 31 };
32}; 32};
33 33
34&fmc {
35 status = "okay";
36 flash@0 {
37 status = "okay";
38 label = "bmc";
39 };
40};
41
42&spi {
43 status = "okay";
44 flash@0 {
45 status = "okay";
46 label = "pnor";
47 };
48};
49
34&uart5 { 50&uart5 {
35 status = "okay"; 51 status = "okay";
36}; 52};
diff --git a/arch/arm/boot/dts/aspeed-g4.dtsi b/arch/arm/boot/dts/aspeed-g4.dtsi
index 0b4932cc02a8..7ef6442d0ade 100644
--- a/arch/arm/boot/dts/aspeed-g4.dtsi
+++ b/arch/arm/boot/dts/aspeed-g4.dtsi
@@ -33,6 +33,35 @@
33 #size-cells = <1>; 33 #size-cells = <1>;
34 ranges; 34 ranges;
35 35
36 fmc: flash-controller@1e620000 {
37 reg = < 0x1e620000 0x94
38 0x20000000 0x02000000 >;
39 #address-cells = <1>;
40 #size-cells = <0>;
41 compatible = "aspeed,ast2400-fmc";
42 status = "disabled";
43 interrupts = <19>;
44 flash@0 {
45 reg = < 0 >;
46 compatible = "jedec,spi-nor";
47 status = "disabled";
48 };
49 };
50
51 spi: flash-controller@1e630000 {
52 reg = < 0x1e630000 0x18
53 0x30000000 0x02000000 >;
54 #address-cells = <1>;
55 #size-cells = <0>;
56 compatible = "aspeed,ast2400-spi";
57 status = "disabled";
58 flash@0 {
59 reg = < 0 >;
60 compatible = "jedec,spi-nor";
61 status = "disabled";
62 };
63 };
64
36 vic: interrupt-controller@1e6c0080 { 65 vic: interrupt-controller@1e6c0080 {
37 compatible = "aspeed,ast2400-vic"; 66 compatible = "aspeed,ast2400-vic";
38 interrupt-controller; 67 interrupt-controller;
diff --git a/arch/arm/boot/dts/aspeed-g5.dtsi b/arch/arm/boot/dts/aspeed-g5.dtsi
index b664fe380936..8970f3cb8e2b 100644
--- a/arch/arm/boot/dts/aspeed-g5.dtsi
+++ b/arch/arm/boot/dts/aspeed-g5.dtsi
@@ -24,6 +24,69 @@
24 #size-cells = <1>; 24 #size-cells = <1>;
25 ranges; 25 ranges;
26 26
27 fmc: flash-controller@1e620000 {
28 reg = < 0x1e620000 0xc4
29 0x20000000 0x10000000 >;
30 #address-cells = <1>;
31 #size-cells = <0>;
32 compatible = "aspeed,ast2500-fmc";
33 status = "disabled";
34 interrupts = <19>;
35 flash@0 {
36 reg = < 0 >;
37 compatible = "jedec,spi-nor";
38 status = "disabled";
39 };
40 flash@1 {
41 reg = < 1 >;
42 compatible = "jedec,spi-nor";
43 status = "disabled";
44 };
45 flash@2 {
46 reg = < 2 >;
47 compatible = "jedec,spi-nor";
48 status = "disabled";
49 };
50 };
51
52 spi1: flash-controller@1e630000 {
53 reg = < 0x1e630000 0xc4
54 0x30000000 0x08000000 >;
55 #address-cells = <1>;
56 #size-cells = <0>;
57 compatible = "aspeed,ast2500-spi";
58 status = "disabled";
59 flash@0 {
60 reg = < 0 >;
61 compatible = "jedec,spi-nor";
62 status = "disabled";
63 };
64 flash@1 {
65 reg = < 1 >;
66 compatible = "jedec,spi-nor";
67 status = "disabled";
68 };
69 };
70
71 spi2: flash-controller@1e631000 {
72 reg = < 0x1e631000 0xc4
73 0x38000000 0x08000000 >;
74 #address-cells = <1>;
75 #size-cells = <0>;
76 compatible = "aspeed,ast2500-spi";
77 status = "disabled";
78 flash@0 {
79 reg = < 0 >;
80 compatible = "jedec,spi-nor";
81 status = "disabled";
82 };
83 flash@1 {
84 reg = < 1 >;
85 compatible = "jedec,spi-nor";
86 status = "disabled";
87 };
88 };
89
27 vic: interrupt-controller@1e6c0080 { 90 vic: interrupt-controller@1e6c0080 {
28 compatible = "aspeed,ast2400-vic"; 91 compatible = "aspeed,ast2400-vic";
29 interrupt-controller; 92 interrupt-controller;