Skip to content

Commit 3b2db85

Browse files
committed
Merge tag 'amlogic-arm64-dt-for-v6.20' of https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux into soc/dt
Amlogic ARM64 DT for v6.20: - Cleanups: - Use lowercase hex - Use hyphen in node names - move CPU OPP table and clock assignment to SoC.dtsi - drop useless assigned-clock-parents - MMC clock fixup across multiple families - Add type-c controller on Radxa Zero 2 and enable NPU - New board: - Khadas VIM1s based on Amlogic S4 * tag 'amlogic-arm64-dt-for-v6.20' of https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux: arm64: dts: amlogic: meson-s4-s905y4-khadas-vim1s: enable SDIO interface arm64: dts: amlogic: add the type-c controller on Radxa Zero 2 arm64: dts: amlogic: meson-sm1-odroid: Eliminate Odroid HC4 power glitches during boot. arm64: dts: amlogic: meson-s4-s905y4-khadas-vim1s: enable eMMC storage arm64: dts: meson-s4-s905y4-khadas-vim1s: add initial device tree arm64: dts: meson-s4-aq222: update compatible string with s805x2 dt-bindings: arm: amlogic: introduce specific compatibles for S4 family arm64: dts: amlogic: Enable the npu node on Radxa Zero 2 arm64: dts: amlogic: g12: assign the MMC A signal clock arm64: dts: amlogic: g12: assign the MMC B and C signal clocks arm64: dts: amlogic: gx: assign the MMC signal clocks arm64: dts: amlogic: axg: assign the MMC signal clocks arm64: dts: amlogic: a1: align the mmc clock setup arm64: dts: amlogic: c3: assign the MMC signal clocks arm64: dts: amlogic: s4: fix mmc clock assignment arm64: dts: amlogic: s4: assign mmc b clock to 24MHz arm64: dts: amlogic: drop useless assigned-clock-parents arm64: dts: amlogic: move CPU OPP table and clock assignment to SoC.dtsi arm64: dts: amlogic: Use lowercase hex arm64: dts: amlogic: Use hyphen in node names Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents 332a1ff + 854583f commit 3b2db85

79 files changed

Lines changed: 442 additions & 247 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Documentation/devicetree/bindings/arm/amlogic.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,14 @@ properties:
245245
items:
246246
- enum:
247247
- amlogic,aq222
248+
- const: amlogic,s805x2
249+
- const: amlogic,s4
250+
251+
- description: Boards with the Amlogic Meson S4 S905Y4 SoC
252+
items:
253+
- enum:
254+
- khadas,vim1s
255+
- const: amlogic,s905y4
248256
- const: amlogic,s4
249257

250258
- description: Boards with the Amlogic S6 S905X5 SoC

arch/arm64/boot/dts/amlogic/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ dtb-$(CONFIG_ARCH_MESON) += meson-gxm-ugoos-am3.dtb
8585
dtb-$(CONFIG_ARCH_MESON) += meson-gxm-vega-s96.dtb
8686
dtb-$(CONFIG_ARCH_MESON) += meson-gxm-wetek-core2.dtb
8787
dtb-$(CONFIG_ARCH_MESON) += meson-s4-s805x2-aq222.dtb
88+
dtb-$(CONFIG_ARCH_MESON) += meson-s4-s905y4-khadas-vim1s.dtb
8889
dtb-$(CONFIG_ARCH_MESON) += meson-sm1-a95xf3-air-gbit.dtb
8990
dtb-$(CONFIG_ARCH_MESON) += meson-sm1-a95xf3-air.dtb
9091
dtb-$(CONFIG_ARCH_MESON) += meson-sm1-bananapi-m2-pro.dtb

arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
firmware {
109109
scmi: scmi {
110110
compatible = "arm,scmi-smc";
111-
arm,smc-id = <0x820000C1>;
111+
arm,smc-id = <0x820000c1>;
112112
shmem = <&scmi_shmem>;
113113
#address-cells = <1>;
114114
#size-cells = <0>;
@@ -780,7 +780,7 @@
780780
#address-cells = <1>;
781781
#size-cells = <0>;
782782

783-
internal_ephy: ethernet_phy@8 {
783+
internal_ephy: ethernet-phy@8 {
784784
compatible = "ethernet-phy-id0180.3301",
785785
"ethernet-phy-ieee802.3-c22";
786786
interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
@@ -969,6 +969,10 @@
969969
no-sd;
970970
resets = <&reset RESET_SD_EMMC_A>;
971971
status = "disabled";
972+
973+
assigned-clocks = <&clkc_periphs CLKID_SD_EMMC_A>;
974+
assigned-clock-rates = <24000000>;
975+
972976
};
973977

974978
sd: mmc@8a000 {
@@ -984,12 +988,15 @@
984988
no-sdio;
985989
resets = <&reset RESET_SD_EMMC_B>;
986990
status = "disabled";
991+
992+
assigned-clocks = <&clkc_periphs CLKID_SD_EMMC_B>;
993+
assigned-clock-rates = <24000000>;
987994
};
988995

989996
nand: nand-controller@8d000 {
990997
compatible = "amlogic,meson-axg-nfc";
991998
reg = <0x0 0x8d000 0x0 0x200>,
992-
<0x0 0x8C000 0x0 0x4>;
999+
<0x0 0x8c000 0x0 0x4>;
9931000
reg-names = "nfc", "emmc";
9941001
interrupts = <GIC_SPI 87 IRQ_TYPE_EDGE_RISING>;
9951002
clocks = <&clkc_periphs CLKID_SYS_SD_EMMC_C>,

arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-an400.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
memory@0 {
2222
device_type = "memory";
23-
reg = <0x00000000 0x00000000 0x00000000 0xE0000000
23+
reg = <0x00000000 0x00000000 0x00000000 0xe0000000
2424
0x00000001 0x00000000 0x00000000 0x20000000>;
2525
};
2626

arch/arm64/boot/dts/amlogic/meson-a1.dtsi

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -674,11 +674,12 @@
674674
clock-names = "core",
675675
"clkin0",
676676
"clkin1";
677-
assigned-clocks = <&clkc_periphs CLKID_SD_EMMC_SEL2>;
678-
assigned-clock-parents = <&xtal>;
679677
resets = <&reset RESET_SD_EMMC_A>;
680678
power-domains = <&pwrc PWRC_SD_EMMC_ID>;
681679
status = "disabled";
680+
681+
assigned-clocks = <&clkc_periphs CLKID_SD_EMMC>;
682+
assigned-clock-rates = <24000000>;
682683
};
683684
};
684685

arch/arm64/boot/dts/amlogic/meson-axg-s400.dts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,6 @@
275275
assigned-clocks = <&clkc CLKID_HIFI_PLL>,
276276
<&clkc CLKID_MPLL0>,
277277
<&clkc CLKID_MPLL1>;
278-
assigned-clock-parents = <0>, <0>, <0>;
279278
assigned-clock-rates = <589824000>,
280279
<270950400>,
281280
<393216000>;

arch/arm64/boot/dts/amlogic/meson-axg.dtsi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1960,6 +1960,9 @@
19601960
<&clkc CLKID_FCLK_DIV2>;
19611961
clock-names = "core", "clkin0", "clkin1";
19621962
resets = <&reset RESET_SD_EMMC_B>;
1963+
1964+
assigned-clocks = <&clkc CLKID_SD_EMMC_B_CLK0>;
1965+
assigned-clock-rates = <24000000>;
19631966
};
19641967

19651968
sd_emmc_c: mmc@7000 {
@@ -1972,6 +1975,9 @@
19721975
<&clkc CLKID_FCLK_DIV2>;
19731976
clock-names = "core", "clkin0", "clkin1";
19741977
resets = <&reset RESET_SD_EMMC_C>;
1978+
1979+
assigned-clocks = <&clkc CLKID_SD_EMMC_C_CLK0>;
1980+
assigned-clock-rates = <24000000>;
19751981
};
19761982

19771983
nfc: nand-controller@7800 {

arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2431,6 +2431,9 @@
24312431
<&clkc CLKID_FCLK_DIV2>;
24322432
clock-names = "core", "clkin0", "clkin1";
24332433
resets = <&reset RESET_SD_EMMC_A>;
2434+
2435+
assigned-clocks = <&clkc CLKID_SD_EMMC_A_CLK0>;
2436+
assigned-clock-rates = <24000000>;
24342437
};
24352438

24362439
sd_emmc_b: mmc@ffe05000 {
@@ -2443,6 +2446,9 @@
24432446
<&clkc CLKID_FCLK_DIV2>;
24442447
clock-names = "core", "clkin0", "clkin1";
24452448
resets = <&reset RESET_SD_EMMC_B>;
2449+
2450+
assigned-clocks = <&clkc CLKID_SD_EMMC_B_CLK0>;
2451+
assigned-clock-rates = <24000000>;
24462452
};
24472453

24482454
sd_emmc_c: mmc@ffe07000 {
@@ -2455,6 +2461,9 @@
24552461
<&clkc CLKID_FCLK_DIV2>;
24562462
clock-names = "core", "clkin0", "clkin1";
24572463
resets = <&reset RESET_SD_EMMC_C>;
2464+
2465+
assigned-clocks = <&clkc CLKID_SD_EMMC_C_CLK0>;
2466+
assigned-clock-rates = <24000000>;
24582467
};
24592468

24602469
usb: usb@ffe09000 {

arch/arm64/boot/dts/amlogic/meson-g12a-fbx8am.dts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@
183183
assigned-clocks = <&clkc CLKID_MPLL2>,
184184
<&clkc CLKID_MPLL0>,
185185
<&clkc CLKID_MPLL1>;
186-
assigned-clock-parents = <0>, <0>, <0>;
187186
assigned-clock-rates = <294912000>,
188187
<270950400>,
189188
<393216000>;
@@ -265,26 +264,18 @@
265264

266265
&cpu0 {
267266
cpu-supply = <&vddcpu>;
268-
operating-points-v2 = <&cpu_opp_table>;
269-
clocks = <&clkc CLKID_CPU_CLK>;
270267
};
271268

272269
&cpu1 {
273270
cpu-supply = <&vddcpu>;
274-
operating-points-v2 = <&cpu_opp_table>;
275-
clocks = <&clkc CLKID_CPU_CLK>;
276271
};
277272

278273
&cpu2 {
279274
cpu-supply = <&vddcpu>;
280-
operating-points-v2 = <&cpu_opp_table>;
281-
clocks = <&clkc CLKID_CPU_CLK>;
282275
};
283276

284277
&cpu3 {
285278
cpu-supply = <&vddcpu>;
286-
operating-points-v2 = <&cpu_opp_table>;
287-
clocks = <&clkc CLKID_CPU_CLK>;
288279
};
289280

290281
&ethmac {

arch/arm64/boot/dts/amlogic/meson-g12a-radxa-zero.dts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@
145145
assigned-clocks = <&clkc CLKID_MPLL2>,
146146
<&clkc CLKID_MPLL0>,
147147
<&clkc CLKID_MPLL1>;
148-
assigned-clock-parents = <0>, <0>, <0>;
149148
assigned-clock-rates = <294912000>,
150149
<270950400>,
151150
<393216000>;
@@ -218,26 +217,18 @@
218217

219218
&cpu0 {
220219
cpu-supply = <&vddcpu>;
221-
operating-points-v2 = <&cpu_opp_table>;
222-
clocks = <&clkc CLKID_CPU_CLK>;
223220
};
224221

225222
&cpu1 {
226223
cpu-supply = <&vddcpu>;
227-
operating-points-v2 = <&cpu_opp_table>;
228-
clocks = <&clkc CLKID_CPU_CLK>;
229224
};
230225

231226
&cpu2 {
232227
cpu-supply = <&vddcpu>;
233-
operating-points-v2 = <&cpu_opp_table>;
234-
clocks = <&clkc CLKID_CPU_CLK>;
235228
};
236229

237230
&cpu3 {
238231
cpu-supply = <&vddcpu>;
239-
operating-points-v2 = <&cpu_opp_table>;
240-
clocks = <&clkc CLKID_CPU_CLK>;
241232
};
242233

243234
&cvbs_vdac_port {

0 commit comments

Comments
 (0)