arm64: dts: mediatek: Use interrupts-extended where possible
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Wed, 25 Oct 2023 09:38:11 +0000 (11:38 +0200)
committerAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Mon, 11 Dec 2023 10:12:56 +0000 (11:12 +0100)
As already done for MT8173 and MT8183 devicetrees, change all instances
of interrupt-parent + interrupts to one line as interrupts-extended
where possible across all remaining device trees to both simplify and
reduce code size.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
arch/arm64/boot/dts/mediatek/mt6358.dtsi
arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts
arch/arm64/boot/dts/mediatek/mt8395-genio-1200-evk.dts

index b605313bed99d155da37712d549dc29841cdd275..6f01ddf1acc79101ed6bf69de2aed611c19e1439 100644 (file)
@@ -8,8 +8,7 @@
        pmic: pmic {
                compatible = "mediatek,mt6358";
                interrupt-controller;
-               interrupt-parent = <&pio>;
-               interrupts = <182 IRQ_TYPE_LEVEL_HIGH>;
+               interrupts-extended = <&pio 182 IRQ_TYPE_LEVEL_HIGH>;
                #interrupt-cells = <2>;
 
                mt6358codec: mt6358codec {
index 3b7a176b79047d489b91f632357e6a0b57db7a25..2e5b326b0c6ff6a4367793d329a668d49134951d 100644 (file)
                        reg = <0>;
                        interrupt-controller;
                        #interrupt-cells = <1>;
-                       interrupt-parent = <&pio>;
-                       interrupts = <53 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupts-extended = <&pio 53 IRQ_TYPE_LEVEL_HIGH>;
                        reset-gpios = <&pio 54 0>;
 
                        ports {
index af4a4309bda4b93191601f6e38fc6044211278a9..a44df2e3355296e3d981f3db49ea37a171d4d914 100644 (file)
                reg = <31>;
                interrupt-controller;
                #interrupt-cells = <1>;
-               interrupt-parent = <&pio>;
-               interrupts = <66 IRQ_TYPE_LEVEL_HIGH>;
+               interrupts-extended = <&pio 66 IRQ_TYPE_LEVEL_HIGH>;
                reset-gpios = <&pio 5 GPIO_ACTIVE_HIGH>;
        };
 };
index 70b465f7c6a7fbf7ae5c7c35de2035e5686d0236..f54f90a907e75b513a1bbe971c6c350c18f7f3e7 100644 (file)
        touchscreen@5d {
                compatible = "goodix,gt9271";
                reg = <0x5d>;
-               interrupt-parent = <&pio>;
-               interrupts = <132 IRQ_TYPE_EDGE_RISING>;
+               interrupts-extended = <&pio 132 IRQ_TYPE_EDGE_RISING>;
                irq-gpios = <&pio 132 GPIO_ACTIVE_HIGH>;
                reset-gpios = <&pio 133 GPIO_ACTIVE_HIGH>;
                AVDD28-supply = <&mt6360_ldo1>;
 };
 
 &pmic {
-       interrupt-parent = <&pio>;
-       interrupts = <222 IRQ_TYPE_LEVEL_HIGH>;
+       interrupts-extended = <&pio 222 IRQ_TYPE_LEVEL_HIGH>;
 };
 
 &scp {