From nobody Tue Feb 10 16:26:57 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 170BBC0032E for ; Wed, 25 Oct 2023 09:38:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234241AbjJYJiq (ORCPT ); Wed, 25 Oct 2023 05:38:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232584AbjJYJig (ORCPT ); Wed, 25 Oct 2023 05:38:36 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAB6FDD; Wed, 25 Oct 2023 02:38:33 -0700 (PDT) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 233C36607343; Wed, 25 Oct 2023 10:38:31 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1698226712; bh=AFlEOUVjbOzAnHyui64UF1ujgtQlWC3TJ1hlamraKoA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hNT9Y9kuwhXIGmrEymlSH/2fhjhdokV6gsZXipbzAPcb4ieCXyW1cdP3PzCdF4/ib XzJO8ZV0UNeI467iyy4ZfTVDW+esaQM/FHrq/yx6jdn0lxPyuiyWS0Y46KowCLQe5S 9m9C5R1gXlCIXAZYue+thNVJqBQZcfr5Qz2jTraSLN8iTe9ImnCikFk5EjBMBZCZ3G BYquAIN4IfqtE4r4nvQqi1/gV83P2gccKIUc1P2793707iPS6pMLOO25fewgxOhopp sPhpVJu1n/jf9awmWFLp4+4q22OReZ28kZnHQDec7oZGN6h5IEDDSIHi8be/Xvhn2b 674KlWjagUcvg== From: AngeloGioacchino Del Regno To: matthias.bgg@gmail.com Cc: hsinyi@chromium.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, angelogioacchino.delregno@collabora.com, erin.lo@mediatek.com, eddie.huang@mediatek.com, pihsun@chromium.org, fparent@baylibre.com, chunfeng.yun@mediatek.com, gregkh@linuxfoundation.org, michael.kao@mediatek.com, mka@chromium.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 2/8] arm64: dts: mediatek: mt8173: Use interrupts-extended where possible Date: Wed, 25 Oct 2023 11:38:10 +0200 Message-ID: <20231025093816.44327-3-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231025093816.44327-1-angelogioacchino.delregno@collabora.com> References: <20231025093816.44327-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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 --- .../boot/dts/mediatek/mt8173-elm-hana.dtsi | 9 +++---- arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi | 24 +++++++------------ arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 3 +-- 3 files changed, 12 insertions(+), 24 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8173-elm-hana.dtsi b/arch/arm64= /boot/dts/mediatek/mt8173-elm-hana.dtsi index bdcd35cecad9..90cbbc18a483 100644 --- a/arch/arm64/boot/dts/mediatek/mt8173-elm-hana.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8173-elm-hana.dtsi @@ -13,8 +13,7 @@ &i2c3 { touchscreen2: touchscreen@34 { compatible =3D "melfas,mip4_ts"; reg =3D <0x34>; - interrupt-parent =3D <&pio>; - interrupts =3D <88 IRQ_TYPE_LEVEL_LOW>; + interrupts-extended =3D <&pio 88 IRQ_TYPE_LEVEL_LOW>; }; =20 /* @@ -26,8 +25,7 @@ touchscreen3: touchscreen@20 { compatible =3D "hid-over-i2c"; reg =3D <0x20>; hid-descr-addr =3D <0x0020>; - interrupt-parent =3D <&pio>; - interrupts =3D <88 IRQ_TYPE_LEVEL_LOW>; + interrupts-extended =3D <&pio 88 IRQ_TYPE_LEVEL_LOW>; }; }; =20 @@ -39,8 +37,7 @@ &i2c4 { */ trackpad2: trackpad@2c { compatible =3D "hid-over-i2c"; - interrupt-parent =3D <&pio>; - interrupts =3D <117 IRQ_TYPE_LEVEL_LOW>; + interrupts-extended =3D <&pio 117 IRQ_TYPE_LEVEL_LOW>; reg =3D <0x2c>; hid-descr-addr =3D <0x0020>; wakeup-source; diff --git a/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi b/arch/arm64/boot= /dts/mediatek/mt8173-elm.dtsi index 111495622cac..8d614ac2c58e 100644 --- a/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi @@ -245,8 +245,7 @@ rt5650: audio-codec@1a { reg =3D <0x1a>; avdd-supply =3D <&mt6397_vgp1_reg>; cpvdd-supply =3D <&mt6397_vcama_reg>; - interrupt-parent =3D <&pio>; - interrupts =3D <3 IRQ_TYPE_EDGE_BOTH>; + interrupts-extended =3D <&pio 3 IRQ_TYPE_EDGE_BOTH>; pinctrl-names =3D "default"; pinctrl-0 =3D <&rt5650_irq>; #sound-dai-cells =3D <1>; @@ -308,8 +307,7 @@ &i2c1 { da9211: da9211@68 { compatible =3D "dlg,da9211"; reg =3D <0x68>; - interrupt-parent =3D <&pio>; - interrupts =3D <15 IRQ_TYPE_LEVEL_LOW>; + interrupts-extended =3D <&pio 15 IRQ_TYPE_LEVEL_LOW>; =20 regulators { da9211_vcpu_reg: BUCKA { @@ -353,8 +351,7 @@ &i2c3 { touchscreen: touchscreen@10 { compatible =3D "elan,ekth3500"; reg =3D <0x10>; - interrupt-parent =3D <&pio>; - interrupts =3D <88 IRQ_TYPE_LEVEL_LOW>; + interrupts-extended =3D <&pio 88 IRQ_TYPE_LEVEL_LOW>; }; }; =20 @@ -366,8 +363,7 @@ &i2c4 { =20 trackpad: trackpad@15 { compatible =3D "elan,ekth3000"; - interrupt-parent =3D <&pio>; - interrupts =3D <117 IRQ_TYPE_LEVEL_LOW>; + interrupts-extended =3D <&pio 117 IRQ_TYPE_LEVEL_LOW>; reg =3D <0x15>; vcc-supply =3D <&mt6397_vgp6_reg>; wakeup-source; @@ -439,8 +435,7 @@ &mmc3 { btmrvl: btmrvl@2 { compatible =3D "marvell,sd8897-bt"; reg =3D <2>; - interrupt-parent =3D <&pio>; - interrupts =3D <119 IRQ_TYPE_LEVEL_LOW>; + interrupts-extended =3D <&pio 119 IRQ_TYPE_LEVEL_LOW>; marvell,wakeup-pin =3D /bits/ 16 <0x0d>; marvell,wakeup-gap-ms =3D /bits/ 16 <0x64>; }; @@ -448,8 +443,7 @@ btmrvl: btmrvl@2 { mwifiex: mwifiex@1 { compatible =3D "marvell,sd8897"; reg =3D <1>; - interrupt-parent =3D <&pio>; - interrupts =3D <38 IRQ_TYPE_LEVEL_LOW>; + interrupts-extended =3D <&pio 38 IRQ_TYPE_LEVEL_LOW>; marvell,wakeup-pin =3D <3>; }; }; @@ -933,8 +927,7 @@ pmic: pmic { compatible =3D "mediatek,mt6397"; #address-cells =3D <1>; #size-cells =3D <1>; - interrupt-parent =3D <&pio>; - interrupts =3D <11 IRQ_TYPE_LEVEL_HIGH>; + interrupts-extended =3D <&pio 11 IRQ_TYPE_LEVEL_HIGH>; interrupt-controller; #interrupt-cells =3D <2>; =20 @@ -1160,8 +1153,7 @@ cros_ec: ec@0 { compatible =3D "google,cros-ec-spi"; reg =3D <0x0>; spi-max-frequency =3D <12000000>; - interrupt-parent =3D <&pio>; - interrupts =3D <0 IRQ_TYPE_LEVEL_LOW>; + interrupts-extended =3D <&pio 0 IRQ_TYPE_LEVEL_LOW>; google,cros-ec-spi-msg-delay =3D <500>; =20 i2c_tunnel: i2c-tunnel0 { diff --git a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts b/arch/arm64/boot/= dts/mediatek/mt8173-evb.dts index 5122963d8743..692e8173c9eb 100644 --- a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts +++ b/arch/arm64/boot/dts/mediatek/mt8173-evb.dts @@ -303,8 +303,7 @@ &pwrap { =20 pmic: pmic { compatible =3D "mediatek,mt6397"; - interrupt-parent =3D <&pio>; - interrupts =3D <11 IRQ_TYPE_LEVEL_HIGH>; + interrupts-extended =3D <&pio 11 IRQ_TYPE_LEVEL_HIGH>; interrupt-controller; #interrupt-cells =3D <2>; =20 --=20 2.42.0