arm64: dts: mediatek: mt8173: Use interrupts-extended where possible
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Wed, 25 Oct 2023 09:38:10 +0000 (11:38 +0200)
committerAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Mon, 11 Dec 2023 10:12:55 +0000 (11:12 +0100)
Change all instances of interrupt-parent + interrupts to one line
as interrupts-extended where possible across all MT8173 DTs to both
simplify and reduce code size.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
arch/arm64/boot/dts/mediatek/mt8173-elm-hana.dtsi
arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi
arch/arm64/boot/dts/mediatek/mt8173-evb.dts

index bdcd35c..90cbbc1 100644 (file)
@@ -13,8 +13,7 @@
        touchscreen2: touchscreen@34 {
                compatible = "melfas,mip4_ts";
                reg = <0x34>;
-               interrupt-parent = <&pio>;
-               interrupts = <88 IRQ_TYPE_LEVEL_LOW>;
+               interrupts-extended = <&pio 88 IRQ_TYPE_LEVEL_LOW>;
        };
 
        /*
@@ -26,8 +25,7 @@
                compatible = "hid-over-i2c";
                reg = <0x20>;
                hid-descr-addr = <0x0020>;
-               interrupt-parent = <&pio>;
-               interrupts = <88 IRQ_TYPE_LEVEL_LOW>;
+               interrupts-extended = <&pio 88 IRQ_TYPE_LEVEL_LOW>;
        };
 };
 
@@ -39,8 +37,7 @@
         */
        trackpad2: trackpad@2c {
                compatible = "hid-over-i2c";
-               interrupt-parent = <&pio>;
-               interrupts = <117 IRQ_TYPE_LEVEL_LOW>;
+               interrupts-extended = <&pio 117 IRQ_TYPE_LEVEL_LOW>;
                reg = <0x2c>;
                hid-descr-addr = <0x0020>;
                wakeup-source;
index 1114956..8d614ac 100644 (file)
                reg = <0x1a>;
                avdd-supply = <&mt6397_vgp1_reg>;
                cpvdd-supply = <&mt6397_vcama_reg>;
-               interrupt-parent = <&pio>;
-               interrupts = <3 IRQ_TYPE_EDGE_BOTH>;
+               interrupts-extended = <&pio 3 IRQ_TYPE_EDGE_BOTH>;
                pinctrl-names = "default";
                pinctrl-0 = <&rt5650_irq>;
                #sound-dai-cells = <1>;
        da9211: da9211@68 {
                compatible = "dlg,da9211";
                reg = <0x68>;
-               interrupt-parent = <&pio>;
-               interrupts = <15 IRQ_TYPE_LEVEL_LOW>;
+               interrupts-extended = <&pio 15 IRQ_TYPE_LEVEL_LOW>;
 
                regulators {
                        da9211_vcpu_reg: BUCKA {
        touchscreen: touchscreen@10 {
                compatible = "elan,ekth3500";
                reg = <0x10>;
-               interrupt-parent = <&pio>;
-               interrupts = <88 IRQ_TYPE_LEVEL_LOW>;
+               interrupts-extended = <&pio 88 IRQ_TYPE_LEVEL_LOW>;
        };
 };
 
 
        trackpad: trackpad@15 {
                compatible = "elan,ekth3000";
-               interrupt-parent = <&pio>;
-               interrupts = <117 IRQ_TYPE_LEVEL_LOW>;
+               interrupts-extended = <&pio 117 IRQ_TYPE_LEVEL_LOW>;
                reg = <0x15>;
                vcc-supply = <&mt6397_vgp6_reg>;
                wakeup-source;
        btmrvl: btmrvl@2 {
                compatible = "marvell,sd8897-bt";
                reg = <2>;
-               interrupt-parent = <&pio>;
-               interrupts = <119 IRQ_TYPE_LEVEL_LOW>;
+               interrupts-extended = <&pio 119 IRQ_TYPE_LEVEL_LOW>;
                marvell,wakeup-pin = /bits/ 16 <0x0d>;
                marvell,wakeup-gap-ms = /bits/ 16 <0x64>;
        };
        mwifiex: mwifiex@1 {
                compatible = "marvell,sd8897";
                reg = <1>;
-               interrupt-parent = <&pio>;
-               interrupts = <38 IRQ_TYPE_LEVEL_LOW>;
+               interrupts-extended = <&pio 38 IRQ_TYPE_LEVEL_LOW>;
                marvell,wakeup-pin = <3>;
        };
 };
                compatible = "mediatek,mt6397";
                #address-cells = <1>;
                #size-cells = <1>;
-               interrupt-parent = <&pio>;
-               interrupts = <11 IRQ_TYPE_LEVEL_HIGH>;
+               interrupts-extended = <&pio 11 IRQ_TYPE_LEVEL_HIGH>;
                interrupt-controller;
                #interrupt-cells = <2>;
 
                compatible = "google,cros-ec-spi";
                reg = <0x0>;
                spi-max-frequency = <12000000>;
-               interrupt-parent = <&pio>;
-               interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
+               interrupts-extended = <&pio 0 IRQ_TYPE_LEVEL_LOW>;
                google,cros-ec-spi-msg-delay = <500>;
 
                i2c_tunnel: i2c-tunnel0 {
index 5122963..692e817 100644 (file)
 
        pmic: pmic {
                compatible = "mediatek,mt6397";
-               interrupt-parent = <&pio>;
-               interrupts = <11 IRQ_TYPE_LEVEL_HIGH>;
+               interrupts-extended = <&pio 11 IRQ_TYPE_LEVEL_HIGH>;
                interrupt-controller;
                #interrupt-cells = <2>;