aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-10-30 09:11:46 -0400
committerArnd Bergmann <arnd@arndb.de>2017-10-30 09:11:46 -0400
commit9f4fb2081ba9bb61757531bed48d98d15f26aac3 (patch)
tree90370f1ead7451712a1fe19d2e3aa4cfd8ba66d6
parentb3a87044464d2c6ecdca07c24b844a3b522ad8a1 (diff)
parent2cb51a8ddd69dbd9e6b3d19dfdacd4ebfdd166a8 (diff)
Merge tag 'amlogic-dt-2' of git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-amlogic into next/dt
Pull "Amlogic 32-bit DT updates for v4.15, round 2" from Kevin Hilman: - enable new GPIO IRQ controller - add efuse node * tag 'amlogic-dt-2' of git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-amlogic: ARM: dts: meson: add the efuse node ARM: dts: meson8b: enable gpio interrupt controller ARM: dts: meson8b: add support for booting the secondary CPU cores ARM: dts: meson8: add support for booting the secondary CPU cores
-rw-r--r--arch/arm/boot/dts/meson.dtsi24
-rw-r--r--arch/arm/boot/dts/meson6.dtsi3
-rw-r--r--arch/arm/boot/dts/meson8.dtsi27
-rw-r--r--arch/arm/boot/dts/meson8b.dtsi34
4 files changed, 88 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/meson.dtsi b/arch/arm/boot/dts/meson.dtsi
index 290a183e87c5..4926133077b3 100644
--- a/arch/arm/boot/dts/meson.dtsi
+++ b/arch/arm/boot/dts/meson.dtsi
@@ -85,6 +85,15 @@
85 reg = <0x7c00 0x200>; 85 reg = <0x7c00 0x200>;
86 }; 86 };
87 87
88 gpio_intc: interrupt-controller@9880 {
89 compatible = "amlogic,meson-gpio-intc";
90 reg = <0xc1109880 0x10>;
91 interrupt-controller;
92 #interrupt-cells = <2>;
93 amlogic,channel-interrupts = <64 65 66 67 68 69 70 71>;
94 status = "disabled";
95 };
96
88 hwrng: rng@8100 { 97 hwrng: rng@8100 {
89 compatible = "amlogic,meson-rng"; 98 compatible = "amlogic,meson-rng";
90 reg = <0x8100 0x8>; 99 reg = <0x8100 0x8>;
@@ -271,5 +280,20 @@
271 compatible = "amlogic,meson-mx-bootrom", "syscon"; 280 compatible = "amlogic,meson-mx-bootrom", "syscon";
272 reg = <0xd9040000 0x10000>; 281 reg = <0xd9040000 0x10000>;
273 }; 282 };
283
284 secbus: secbus@da000000 {
285 compatible = "simple-bus";
286 reg = <0xda000000 0x6000>;
287 #address-cells = <1>;
288 #size-cells = <1>;
289 ranges = <0x0 0xda000000 0x6000>;
290
291 efuse: nvmem@0 {
292 compatible = "amlogic,meson6-efuse";
293 reg = <0x0 0x2000>;
294 #address-cells = <1>;
295 #size-cells = <1>;
296 };
297 };
274 }; 298 };
275}; /* end of / */ 299}; /* end of / */
diff --git a/arch/arm/boot/dts/meson6.dtsi b/arch/arm/boot/dts/meson6.dtsi
index ef281d290052..9b463211339f 100644
--- a/arch/arm/boot/dts/meson6.dtsi
+++ b/arch/arm/boot/dts/meson6.dtsi
@@ -84,6 +84,9 @@
84 }; 84 };
85}; /* end of / */ 85}; /* end of / */
86 86
87&efuse {
88 status = "disabled";
89};
87 90
88&uart_AO { 91&uart_AO {
89 clocks = <&xtal>, <&clk81>, <&clk81>; 92 clocks = <&xtal>, <&clk81>, <&clk81>;
diff --git a/arch/arm/boot/dts/meson8.dtsi b/arch/arm/boot/dts/meson8.dtsi
index e6abcc7a1084..661287806ead 100644
--- a/arch/arm/boot/dts/meson8.dtsi
+++ b/arch/arm/boot/dts/meson8.dtsi
@@ -45,6 +45,7 @@
45 45
46#include <dt-bindings/clock/meson8b-clkc.h> 46#include <dt-bindings/clock/meson8b-clkc.h>
47#include <dt-bindings/gpio/meson8-gpio.h> 47#include <dt-bindings/gpio/meson8-gpio.h>
48#include <dt-bindings/reset/amlogic,meson8b-clkc-reset.h>
48#include "meson.dtsi" 49#include "meson.dtsi"
49 50
50/ { 51/ {
@@ -60,6 +61,8 @@
60 compatible = "arm,cortex-a9"; 61 compatible = "arm,cortex-a9";
61 next-level-cache = <&L2>; 62 next-level-cache = <&L2>;
62 reg = <0x200>; 63 reg = <0x200>;
64 enable-method = "amlogic,meson8-smp";
65 resets = <&clkc CLKC_RESET_CPU0_SOFT_RESET>;
63 }; 66 };
64 67
65 cpu@201 { 68 cpu@201 {
@@ -67,6 +70,8 @@
67 compatible = "arm,cortex-a9"; 70 compatible = "arm,cortex-a9";
68 next-level-cache = <&L2>; 71 next-level-cache = <&L2>;
69 reg = <0x201>; 72 reg = <0x201>;
73 enable-method = "amlogic,meson8-smp";
74 resets = <&clkc CLKC_RESET_CPU1_SOFT_RESET>;
70 }; 75 };
71 76
72 cpu@202 { 77 cpu@202 {
@@ -74,6 +79,8 @@
74 compatible = "arm,cortex-a9"; 79 compatible = "arm,cortex-a9";
75 next-level-cache = <&L2>; 80 next-level-cache = <&L2>;
76 reg = <0x202>; 81 reg = <0x202>;
82 enable-method = "amlogic,meson8-smp";
83 resets = <&clkc CLKC_RESET_CPU2_SOFT_RESET>;
77 }; 84 };
78 85
79 cpu@203 { 86 cpu@203 {
@@ -81,6 +88,8 @@
81 compatible = "arm,cortex-a9"; 88 compatible = "arm,cortex-a9";
82 next-level-cache = <&L2>; 89 next-level-cache = <&L2>;
83 reg = <0x203>; 90 reg = <0x203>;
91 enable-method = "amlogic,meson8-smp";
92 resets = <&clkc CLKC_RESET_CPU3_SOFT_RESET>;
84 }; 93 };
85 }; 94 };
86 95
@@ -118,6 +127,11 @@
118}; /* end of / */ 127}; /* end of / */
119 128
120&aobus { 129&aobus {
130 pmu: pmu@e0 {
131 compatible = "amlogic,meson8-pmu", "syscon";
132 reg = <0xe0 0x8>;
133 };
134
121 pinctrl_aobus: pinctrl@84 { 135 pinctrl_aobus: pinctrl@84 {
122 compatible = "amlogic,meson8-aobus-pinctrl"; 136 compatible = "amlogic,meson8-aobus-pinctrl";
123 reg = <0x84 0xc>; 137 reg = <0x84 0xc>;
@@ -254,6 +268,19 @@
254 }; 268 };
255}; 269};
256 270
271&ahb_sram {
272 smp-sram@1ff80 {
273 compatible = "amlogic,meson8-smp-sram";
274 reg = <0x1ff80 0x8>;
275 };
276};
277
278&efuse {
279 compatible = "amlogic,meson8-efuse";
280 clocks = <&clkc CLKID_EFUSE>;
281 clock-names = "core";
282};
283
257&ethmac { 284&ethmac {
258 clocks = <&clkc CLKID_ETH>; 285 clocks = <&clkc CLKID_ETH>;
259 clock-names = "stmmaceth"; 286 clock-names = "stmmaceth";
diff --git a/arch/arm/boot/dts/meson8b.dtsi b/arch/arm/boot/dts/meson8b.dtsi
index 283c68c6b1f4..7ecce8890d21 100644
--- a/arch/arm/boot/dts/meson8b.dtsi
+++ b/arch/arm/boot/dts/meson8b.dtsi
@@ -47,6 +47,7 @@
47#include <dt-bindings/clock/meson8b-clkc.h> 47#include <dt-bindings/clock/meson8b-clkc.h>
48#include <dt-bindings/gpio/meson8b-gpio.h> 48#include <dt-bindings/gpio/meson8b-gpio.h>
49#include <dt-bindings/reset/amlogic,meson8b-reset.h> 49#include <dt-bindings/reset/amlogic,meson8b-reset.h>
50#include <dt-bindings/reset/amlogic,meson8b-clkc-reset.h>
50#include "meson.dtsi" 51#include "meson.dtsi"
51 52
52/ { 53/ {
@@ -59,6 +60,8 @@
59 compatible = "arm,cortex-a5"; 60 compatible = "arm,cortex-a5";
60 next-level-cache = <&L2>; 61 next-level-cache = <&L2>;
61 reg = <0x200>; 62 reg = <0x200>;
63 enable-method = "amlogic,meson8b-smp";
64 resets = <&clkc CLKC_RESET_CPU0_SOFT_RESET>;
62 }; 65 };
63 66
64 cpu@201 { 67 cpu@201 {
@@ -66,6 +69,8 @@
66 compatible = "arm,cortex-a5"; 69 compatible = "arm,cortex-a5";
67 next-level-cache = <&L2>; 70 next-level-cache = <&L2>;
68 reg = <0x201>; 71 reg = <0x201>;
72 enable-method = "amlogic,meson8b-smp";
73 resets = <&clkc CLKC_RESET_CPU1_SOFT_RESET>;
69 }; 74 };
70 75
71 cpu@202 { 76 cpu@202 {
@@ -73,6 +78,8 @@
73 compatible = "arm,cortex-a5"; 78 compatible = "arm,cortex-a5";
74 next-level-cache = <&L2>; 79 next-level-cache = <&L2>;
75 reg = <0x202>; 80 reg = <0x202>;
81 enable-method = "amlogic,meson8b-smp";
82 resets = <&clkc CLKC_RESET_CPU2_SOFT_RESET>;
76 }; 83 };
77 84
78 cpu@203 { 85 cpu@203 {
@@ -80,6 +87,8 @@
80 compatible = "arm,cortex-a5"; 87 compatible = "arm,cortex-a5";
81 next-level-cache = <&L2>; 88 next-level-cache = <&L2>;
82 reg = <0x203>; 89 reg = <0x203>;
90 enable-method = "amlogic,meson8b-smp";
91 resets = <&clkc CLKC_RESET_CPU3_SOFT_RESET>;
83 }; 92 };
84 }; 93 };
85 94
@@ -102,6 +111,11 @@
102}; /* end of / */ 111}; /* end of / */
103 112
104&aobus { 113&aobus {
114 pmu: pmu@e0 {
115 compatible = "amlogic,meson8b-pmu", "syscon";
116 reg = <0xe0 0x18>;
117 };
118
105 pinctrl_aobus: pinctrl@84 { 119 pinctrl_aobus: pinctrl@84 {
106 compatible = "amlogic,meson8b-aobus-pinctrl"; 120 compatible = "amlogic,meson8b-aobus-pinctrl";
107 reg = <0x84 0xc>; 121 reg = <0x84 0xc>;
@@ -174,11 +188,31 @@
174 }; 188 };
175}; 189};
176 190
191&ahb_sram {
192 smp-sram@1ff80 {
193 compatible = "amlogic,meson8b-smp-sram";
194 reg = <0x1ff80 0x8>;
195 };
196};
197
198
199&efuse {
200 compatible = "amlogic,meson8b-efuse";
201 clocks = <&clkc CLKID_EFUSE>;
202 clock-names = "core";
203};
204
177&ethmac { 205&ethmac {
178 clocks = <&clkc CLKID_ETH>; 206 clocks = <&clkc CLKID_ETH>;
179 clock-names = "stmmaceth"; 207 clock-names = "stmmaceth";
180}; 208};
181 209
210&gpio_intc {
211 compatible = "amlogic,meson-gpio-intc",
212 "amlogic,meson8b-gpio-intc";
213 status = "okay";
214};
215
182&hwrng { 216&hwrng {
183 compatible = "amlogic,meson8b-rng", "amlogic,meson-rng"; 217 compatible = "amlogic,meson8b-rng", "amlogic,meson-rng";
184 clocks = <&clkc CLKID_RNG0>; 218 clocks = <&clkc CLKID_RNG0>;