Skip to content

Commit 632445e

Browse files
committed
ARM: dts: sun8i: r40: add soc_ver, soc_id and soc_bin for sunxi-sid
1 parent db2bbc8 commit 632445e

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

arch/arm/boot/dts/sun8i-r40.dtsi

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,33 @@
192192

193193
syscon: system-control@1c00000 {
194194
compatible = "allwinner,sun8i-r40-system-control",
195-
"allwinner,sun4i-a10-system-control";
195+
"allwinner,sun4i-a10-system-control",
196+
"allwinner,sunxi-system-control";
196197
reg = <0x01c00000 0x30>;
197198
#address-cells = <1>;
198199
#size-cells = <1>;
199200
ranges;
200201

202+
soc_ver {
203+
offset = <0x88>;
204+
mask = <0x1>;
205+
shift = <0>;
206+
ver_a = <0x17010000>;
207+
ver_b = <0x17010001>;
208+
ver_d = <0x17010101>;
209+
ver_f = <0x17010003>;
210+
};
211+
212+
soc_id {
213+
in_ce = <0x1>;
214+
};
215+
216+
soc_bin {
217+
offset = <0x4>;
218+
mask = <0x7>;
219+
shift = <22>;
220+
};
221+
201222
sram_c: sram@1d00000 {
202223
compatible = "mmio-sram";
203224
reg = <0x01d00000 0xd0000>;
@@ -384,7 +405,8 @@
384405
};
385406

386407
crypto: crypto@1c15000 {
387-
compatible = "allwinner,sun8i-r40-crypto";
408+
compatible = "allwinner,sun8i-r40-crypto",
409+
"allwinner,sunxi-ce";
388410
reg = <0x01c15000 0x1000>;
389411
interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
390412
clocks = <&ccu CLK_BUS_CE>, <&ccu CLK_CE>;
@@ -475,7 +497,8 @@
475497
};
476498

477499
ccu: clock@1c20000 {
478-
compatible = "allwinner,sun8i-r40-ccu";
500+
compatible = "allwinner,sun8i-r40-ccu",
501+
"allwinner,sunxi-clk-init";
479502
reg = <0x01c20000 0x400>;
480503
clocks = <&osc24M>, <&rtc 0>;
481504
clock-names = "hosc", "losc";

0 commit comments

Comments
 (0)