Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'amlogic-dt64-2-redo' of https://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-amlogic into next/dt

arm64: dts: Amlogic updates for v4.21, round2

Highlights:
- fix IRQ trigger type
- AXG: enable GPIO IRQs, PHY IRQ, watchdog

* tag 'amlogic-dt64-2-redo' of https://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-amlogic:
arm64: dts: meson: Fix IRQ trigger type for macirq
arm64: dts: meson-axg: Enable GPIO interrupt controller
arm64: dts: meson-axg: s400: Enable PHY interrupt
arm64: dts: meson: add clock controller clock inputs
dt-bindings: clk: meson: add main controller clock input
dt-bindings: clk: meson: add ao controller clock inputs
arm64: dts: meson-axg: remove alternate xtal
arm64: dts: meson-axg: Enable watchdog on Meson AXG SoCs

Signed-off-by: Olof Johansson <olof@lixom.net>

+38 -14
+9 -1
Documentation/devicetree/bindings/clock/amlogic,gxbb-aoclkc.txt
··· 11 11 - GXM (S912) : "amlogic,meson-gxm-aoclkc" 12 12 - AXG (A113D, A113X) : "amlogic,meson-axg-aoclkc" 13 13 followed by the common "amlogic,meson-gx-aoclkc" 14 + - clocks: list of clock phandle, one for each entry clock-names. 15 + - clock-names: should contain the following: 16 + * "xtal" : the platform xtal 17 + * "mpeg-clk" : the main clock controller mother clock (aka clk81) 18 + * "ext-32k-0" : external 32kHz reference #0 if any (optional) 19 + * "ext-32k-1" : external 32kHz reference #1 if any (optional - gx only) 20 + * "ext-32k-2" : external 32kHz reference #2 if any (optional - gx only) 14 21 15 22 - #clock-cells: should be 1. 16 23 ··· 47 40 compatible = "amlogic,meson-gxbb-aoclkc", "amlogic,meson-gx-aoclkc"; 48 41 #clock-cells = <1>; 49 42 #reset-cells = <1>; 43 + clocks = <&xtal>, <&clkc CLKID_CLK81>; 44 + clock-names = "xtal", "mpeg-clk"; 50 45 }; 51 - }; 52 46 53 47 Example: UART controller node that consumes the clock and reset generated 54 48 by the clock controller:
+5
Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt
··· 9 9 "amlogic,gxbb-clkc" for GXBB SoC, 10 10 "amlogic,gxl-clkc" for GXL and GXM SoC, 11 11 "amlogic,axg-clkc" for AXG SoC. 12 + - clocks : list of clock phandle, one for each entry clock-names. 13 + - clock-names : should contain the following: 14 + * "xtal": the platform xtal 12 15 13 16 - #clock-cells: should be 1. 14 17 ··· 34 31 clkc: clock-controller { 35 32 #clock-cells = <1>; 36 33 compatible = "amlogic,gxbb-clkc"; 34 + clocks = <&xtal>; 35 + clock-names = "xtal"; 37 36 }; 38 37 }; 39 38
+2
arch/arm64/boot/dts/amlogic/meson-axg-s400.dts
··· 357 357 eth_phy0: ethernet-phy@0 { 358 358 /* Realtek RTL8211F (0x001cc916) */ 359 359 reg = <0>; 360 + interrupt-parent = <&gpio_intc>; 361 + interrupts = <98 IRQ_TYPE_LEVEL_LOW>; 360 362 eee-broken-1000t; 361 363 }; 362 364 };
+13 -10
arch/arm64/boot/dts/amlogic/meson-axg.dtsi
··· 53 53 status = "disabled"; 54 54 }; 55 55 56 - ao_alt_xtal: ao_alt_xtal-clk { 57 - compatible = "fixed-clock"; 58 - clock-frequency = <32000000>; 59 - clock-output-names = "ao_alt_xtal"; 60 - #clock-cells = <0>; 61 - }; 62 - 63 56 arm-pmu { 64 57 compatible = "arm,cortex-a53-pmu"; 65 58 interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>, ··· 166 173 compatible = "amlogic,meson-axg-dwmac", "snps,dwmac"; 167 174 reg = <0x0 0xff3f0000 0x0 0x10000 168 175 0x0 0xff634540 0x0 0x8>; 169 - interrupts = <GIC_SPI 8 IRQ_TYPE_EDGE_RISING>; 176 + interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; 170 177 interrupt-names = "macirq"; 171 178 clocks = <&clkc CLKID_ETH>, 172 179 <&clkc CLKID_FCLK_DIV2>, ··· 1082 1089 clkc: clock-controller { 1083 1090 compatible = "amlogic,axg-clkc"; 1084 1091 #clock-cells = <1>; 1092 + clocks = <&xtal>; 1093 + clock-names = "xtal"; 1085 1094 }; 1086 1095 }; 1087 1096 }; ··· 1329 1334 compatible = "amlogic,meson-axg-aoclkc"; 1330 1335 #clock-cells = <1>; 1331 1336 #reset-cells = <1>; 1337 + clocks = <&xtal>, <&clkc CLKID_CLK81>; 1338 + clock-names = "xtal", "mpeg-clk"; 1332 1339 }; 1333 1340 }; 1334 1341 ··· 1540 1543 }; 1541 1544 1542 1545 gpio_intc: interrupt-controller@f080 { 1543 - compatible = "amlogic,meson-gpio-intc"; 1546 + compatible = "amlogic,meson-axg-gpio-intc", 1547 + "amlogic,meson-gpio-intc"; 1544 1548 reg = <0x0 0xf080 0x0 0x10>; 1545 1549 interrupt-controller; 1546 1550 #interrupt-cells = <2>; 1547 1551 amlogic,channel-interrupts = <64 65 66 67 68 69 70 71>; 1548 - status = "disabled"; 1552 + }; 1553 + 1554 + watchdog@f0d0 { 1555 + compatible = "amlogic,meson-gxbb-wdt"; 1556 + reg = <0x0 0xf0d0 0x0 0x10>; 1557 + clocks = <&xtal>; 1549 1558 }; 1550 1559 1551 1560 pwm_ab: pwm@1b000 {
+1 -1
arch/arm64/boot/dts/amlogic/meson-gx.dtsi
··· 467 467 compatible = "amlogic,meson-gx-dwmac", "amlogic,meson-gxbb-dwmac", "snps,dwmac"; 468 468 reg = <0x0 0xc9410000 0x0 0x10000 469 469 0x0 0xc8834540 0x0 0x4>; 470 - interrupts = <GIC_SPI 8 IRQ_TYPE_EDGE_RISING>; 470 + interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; 471 471 interrupt-names = "macirq"; 472 472 status = "disabled"; 473 473 };
-1
arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts
··· 143 143 interrupt-parent = <&gpio_intc>; 144 144 /* MAC_INTR on GPIOZ_15 */ 145 145 interrupts = <29 IRQ_TYPE_LEVEL_LOW>; 146 - eee-broken-1000t; 147 146 }; 148 147 }; 149 148 };
-1
arch/arm64/boot/dts/amlogic/meson-gxbb-wetek.dtsi
··· 142 142 eth_phy0: ethernet-phy@0 { 143 143 /* Realtek RTL8211F (0x001cc916) */ 144 144 reg = <0>; 145 - eee-broken-1000t; 146 145 }; 147 146 }; 148 147 };
+4
arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi
··· 299 299 300 300 &clkc_AO { 301 301 compatible = "amlogic,meson-gxbb-aoclkc", "amlogic,meson-gx-aoclkc"; 302 + clocks = <&xtal>, <&clkc CLKID_CLK81>; 303 + clock-names = "xtal", "mpeg-clk"; 302 304 }; 303 305 304 306 &efuse { ··· 336 334 clkc: clock-controller { 337 335 compatible = "amlogic,gxbb-clkc"; 338 336 #clock-cells = <1>; 337 + clocks = <&xtal>; 338 + clock-names = "xtal"; 339 339 }; 340 340 }; 341 341
+4
arch/arm64/boot/dts/amlogic/meson-gxl.dtsi
··· 260 260 261 261 &clkc_AO { 262 262 compatible = "amlogic,meson-gxl-aoclkc", "amlogic,meson-gx-aoclkc"; 263 + clocks = <&xtal>, <&clkc CLKID_CLK81>; 264 + clock-names = "xtal", "mpeg-clk"; 263 265 }; 264 266 265 267 &gpio_intc { ··· 286 284 clkc: clock-controller { 287 285 compatible = "amlogic,gxl-clkc"; 288 286 #clock-cells = <1>; 287 + clocks = <&xtal>; 288 + clock-names = "xtal"; 289 289 }; 290 290 }; 291 291