From nobody Wed Nov 13 02:19:07 2024 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 B3FBEC25B47 for ; Wed, 25 Oct 2023 09:38:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234547AbjJYJil (ORCPT ); Wed, 25 Oct 2023 05:38:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233761AbjJYJie (ORCPT ); Wed, 25 Oct 2023 05:38:34 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F359DC; Wed, 25 Oct 2023 02:38:32 -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 F02E9660733F; Wed, 25 Oct 2023 10:38:29 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1698226710; bh=RX13zCeq0rAi6EIt1Pj3PIA5q2WQl2rhgl7T3G71//A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YBeZa6JT1VekJ34tVjmGUivmWPsQEJKNpJI+ktANAPJG78sZ6hBOiS+rINC1+48wx tnxWEH749fl8lqtGmkLgO2hH1CgrW63MZc+5apqYkwxuhfqMIWtybNFD7Vbth8/lR7 DgBgZvWVziIQv+77K9zDsxsk/5/S1d017NETFdDoNgnRgC+RNxx7eO3xnNeY7/Ovse 9xD0XYdxKbIjgEtWYTQ/TlqWI+rNLRjBRqkGa1bf5x1FiOGksXqu9R5bwFBKPFc7/Y nlB2nBCteJ9iUsKilWxi86pOJEzMoM4/8iwQy8YktIMlnkACJeM7cHM6RZXD6oQEOW 6MGiJ4tVkTtiw== 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 1/8] arm64: dts: mediatek: mt8183: Use interrupts-extended where possible Date: Wed, 25 Oct 2023 11:38:09 +0200 Message-ID: <20231025093816.44327-2-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 MT8183 DTs to both simplify and reduce code size. Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt8183-kukui-audio-da7219.dtsi | 3 +-- .../boot/dts/mediatek/mt8183-kukui-audio-ts3a227e.dtsi | 3 +-- arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-damu.dts | 3 +-- .../boot/dts/mediatek/mt8183-kukui-jacuzzi-fennel-sku1.dts | 3 +-- .../boot/dts/mediatek/mt8183-kukui-jacuzzi-fennel-sku6.dts | 3 +-- .../boot/dts/mediatek/mt8183-kukui-jacuzzi-fennel-sku7.dts | 3 +-- arch/arm64/boot/dts/mediatek/mt8183-kukui-kakadu.dtsi | 3 +-- arch/arm64/boot/dts/mediatek/mt8183-kukui-kodama.dtsi | 3 +-- arch/arm64/boot/dts/mediatek/mt8183-kukui-krane.dtsi | 3 +-- arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 6 ++---- 10 files changed, 11 insertions(+), 22 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui-audio-da7219.dtsi b/= arch/arm64/boot/dts/mediatek/mt8183-kukui-audio-da7219.dtsi index 2c69e7658dba..8b57706ac814 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui-audio-da7219.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui-audio-da7219.dtsi @@ -11,8 +11,7 @@ da7219: da7219@1a { pinctrl-0 =3D <&da7219_pins>; compatible =3D "dlg,da7219"; reg =3D <0x1a>; - interrupt-parent =3D <&pio>; - interrupts =3D <165 IRQ_TYPE_LEVEL_LOW 165 0>; + interrupts-extended =3D <&pio 165 IRQ_TYPE_LEVEL_LOW>; =20 dlg,micbias-lvl =3D <2600>; dlg,mic-amp-in-sel =3D "diff"; diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui-audio-ts3a227e.dtsi = b/arch/arm64/boot/dts/mediatek/mt8183-kukui-audio-ts3a227e.dtsi index 0799c48ade19..548e22c194a2 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui-audio-ts3a227e.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui-audio-ts3a227e.dtsi @@ -11,8 +11,7 @@ ts3a227e: ts3a227e@3b { pinctrl-0 =3D <&ts3a227e_pins>; compatible =3D "ti,ts3a227e"; reg =3D <0x3b>; - interrupt-parent =3D <&pio>; - interrupts =3D <157 IRQ_TYPE_LEVEL_LOW>; + interrupts-extended =3D <&pio 157 IRQ_TYPE_LEVEL_LOW>; status =3D "okay"; }; }; diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-damu.dts b/a= rch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-damu.dts index 552bfc726999..0b45aee2e299 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-damu.dts +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-damu.dts @@ -18,8 +18,7 @@ &touchscreen { =20 compatible =3D "hid-over-i2c"; reg =3D <0x10>; - interrupt-parent =3D <&pio>; - interrupts =3D <155 IRQ_TYPE_LEVEL_LOW>; + interrupts-extended =3D <&pio 155 IRQ_TYPE_LEVEL_LOW>; pinctrl-names =3D "default"; pinctrl-0 =3D <&touchscreen_pins>; =20 diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-fennel-sku1.= dts b/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-fennel-sku1.dts index 77b96ddf648e..b595622e7bee 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-fennel-sku1.dts +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-fennel-sku1.dts @@ -30,8 +30,7 @@ &touchscreen { =20 compatible =3D "hid-over-i2c"; reg =3D <0x10>; - interrupt-parent =3D <&pio>; - interrupts =3D <155 IRQ_TYPE_LEVEL_LOW>; + interrupts-extended =3D <&pio 155 IRQ_TYPE_LEVEL_LOW>; pinctrl-names =3D "default"; pinctrl-0 =3D <&touchscreen_pins>; =20 diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-fennel-sku6.= dts b/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-fennel-sku6.dts index 37e6e58f63b7..5a1c39318a6c 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-fennel-sku6.dts +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-fennel-sku6.dts @@ -17,8 +17,7 @@ &touchscreen { =20 compatible =3D "hid-over-i2c"; reg =3D <0x10>; - interrupt-parent =3D <&pio>; - interrupts =3D <155 IRQ_TYPE_LEVEL_LOW>; + interrupts-extended =3D <&pio 155 IRQ_TYPE_LEVEL_LOW>; pinctrl-names =3D "default"; pinctrl-0 =3D <&touchscreen_pins>; =20 diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-fennel-sku7.= dts b/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-fennel-sku7.dts index 0e09604004d5..3ea4fdb40118 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-fennel-sku7.dts +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-fennel-sku7.dts @@ -17,8 +17,7 @@ &touchscreen { =20 compatible =3D "hid-over-i2c"; reg =3D <0x10>; - interrupt-parent =3D <&pio>; - interrupts =3D <155 IRQ_TYPE_LEVEL_LOW>; + interrupts-extended =3D <&pio 155 IRQ_TYPE_LEVEL_LOW>; pinctrl-names =3D "default"; pinctrl-0 =3D <&touchscreen_pins>; =20 diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui-kakadu.dtsi b/arch/a= rm64/boot/dts/mediatek/mt8183-kukui-kakadu.dtsi index a11adeb29b1f..a23543d7a11e 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui-kakadu.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui-kakadu.dtsi @@ -70,8 +70,7 @@ touchscreen: touchscreen@10 { pinctrl-names =3D "default"; pinctrl-0 =3D <&open_touch>; =20 - interrupt-parent =3D <&pio>; - interrupts =3D <155 IRQ_TYPE_EDGE_FALLING>; + interrupts-extended =3D <&pio 155 IRQ_TYPE_EDGE_FALLING>; =20 post-power-on-delay-ms =3D <10>; hid-descr-addr =3D <0x0001>; diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui-kodama.dtsi b/arch/a= rm64/boot/dts/mediatek/mt8183-kukui-kodama.dtsi index 4864c39e53a4..306c95166f3f 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui-kodama.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui-kodama.dtsi @@ -48,8 +48,7 @@ &i2c0 { touchscreen: touchscreen@10 { compatible =3D "hid-over-i2c"; reg =3D <0x10>; - interrupt-parent =3D <&pio>; - interrupts =3D <155 IRQ_TYPE_LEVEL_LOW>; + interrupts-extended =3D <&pio 155 IRQ_TYPE_LEVEL_LOW>; pinctrl-names =3D "default"; pinctrl-0 =3D <&touch_default>; =20 diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui-krane.dtsi b/arch/ar= m64/boot/dts/mediatek/mt8183-kukui-krane.dtsi index d5f41c6c9881..382e4c6d7191 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui-krane.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui-krane.dtsi @@ -54,8 +54,7 @@ touchscreen4: touchscreen@5d { pinctrl-names =3D "default"; pinctrl-0 =3D <&open_touch>; =20 - interrupt-parent =3D <&pio>; - interrupts =3D <155 IRQ_TYPE_EDGE_FALLING>; + interrupts-extended =3D <&pio 155 IRQ_TYPE_EDGE_FALLING>; =20 post-power-on-delay-ms =3D <10>; hid-descr-addr =3D <0x0001>; diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi b/arch/arm64/bo= ot/dts/mediatek/mt8183-kukui.dtsi index bf7de35ffcbc..adadfc653f39 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi @@ -890,8 +890,7 @@ cr50@0 { spi-max-frequency =3D <1000000>; pinctrl-names =3D "default"; pinctrl-0 =3D <&h1_int_od_l>; - interrupt-parent =3D <&pio>; - interrupts =3D <153 IRQ_TYPE_EDGE_RISING>; + interrupts-extended =3D <&pio 153 IRQ_TYPE_EDGE_RISING>; }; }; =20 @@ -918,8 +917,7 @@ cros_ec: cros-ec@0 { compatible =3D "google,cros-ec-spi"; reg =3D <0>; spi-max-frequency =3D <3000000>; - interrupt-parent =3D <&pio>; - interrupts =3D <151 IRQ_TYPE_LEVEL_LOW>; + interrupts-extended =3D <&pio 151 IRQ_TYPE_LEVEL_LOW>; pinctrl-names =3D "default"; pinctrl-0 =3D <&ec_ap_int_odl>; =20 --=20 2.42.0 From nobody Wed Nov 13 02:19:07 2024 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 From nobody Wed Nov 13 02:19:07 2024 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 06878C0032E for ; Wed, 25 Oct 2023 09:38:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234551AbjJYJin (ORCPT ); Wed, 25 Oct 2023 05:38:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234241AbjJYJig (ORCPT ); Wed, 25 Oct 2023 05:38:36 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6758EA6; Wed, 25 Oct 2023 02:38:34 -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 487A96607349; Wed, 25 Oct 2023 10:38:32 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1698226713; bh=kLtT+q9T1ffNmCgLw5PyOqriOe6qk0elUlRHKVB6dJQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Fu1V73mEIpMdvzkMSD4g0um0+cC+D1UoT+v9rfMiC9Z9lj/GaTStsI0RC43oZGUrE YxspPWCajQGMacpwygaYHJeuvJiVup1Wn4j0+3BuvUm3/KZiUO3Qn6+6Y9UkbmRD/p ummNrMiQVEs7J2ImCBpYLstTFhEA6Idlh7OhCjfQWaY6JyIewKVAQ3asb1LK5pnvGy LgzNCM+tEUKmYMLwyREe1uR1YyD0HSIfMxMd/ZTFEmqkuplwaCnwRN/RkTM9x99U7R WaS8FIaAODKoP08OeiJt/K+7UXna9Dv3CycuhZb+Lt8ti1Us027jte3fKQlyXZFCT1 Vk0NTa3vjywwg== 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 3/8] arm64: dts: mediatek: Use interrupts-extended where possible Date: Wed, 25 Oct 2023 11:38:11 +0200 Message-ID: <20231025093816.44327-4-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" 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 --- arch/arm64/boot/dts/mediatek/mt6358.dtsi | 3 +-- arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts | 3 +-- arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts | 3 +-- arch/arm64/boot/dts/mediatek/mt8395-genio-1200-evk.dts | 6 ++---- 4 files changed, 5 insertions(+), 10 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt6358.dtsi b/arch/arm64/boot/dts= /mediatek/mt6358.dtsi index b605313bed99..6f01ddf1acc7 100644 --- a/arch/arm64/boot/dts/mediatek/mt6358.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt6358.dtsi @@ -8,8 +8,7 @@ &pwrap { pmic: pmic { compatible =3D "mediatek,mt6358"; interrupt-controller; - interrupt-parent =3D <&pio>; - interrupts =3D <182 IRQ_TYPE_LEVEL_HIGH>; + interrupts-extended =3D <&pio 182 IRQ_TYPE_LEVEL_HIGH>; #interrupt-cells =3D <2>; =20 mt6358codec: mt6358codec { diff --git a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts b/arc= h/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts index 3b7a176b7904..2e5b326b0c6f 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts +++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts @@ -153,8 +153,7 @@ switch@0 { reg =3D <0>; interrupt-controller; #interrupt-cells =3D <1>; - interrupt-parent =3D <&pio>; - interrupts =3D <53 IRQ_TYPE_LEVEL_HIGH>; + interrupts-extended =3D <&pio 53 IRQ_TYPE_LEVEL_HIGH>; reset-gpios =3D <&pio 54 0>; =20 ports { diff --git a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts b/arc= h/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts index af4a4309bda4..a44df2e33552 100644 --- a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts +++ b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts @@ -203,8 +203,7 @@ switch: switch@31 { reg =3D <31>; interrupt-controller; #interrupt-cells =3D <1>; - interrupt-parent =3D <&pio>; - interrupts =3D <66 IRQ_TYPE_LEVEL_HIGH>; + interrupts-extended =3D <&pio 66 IRQ_TYPE_LEVEL_HIGH>; reset-gpios =3D <&pio 5 GPIO_ACTIVE_HIGH>; }; }; diff --git a/arch/arm64/boot/dts/mediatek/mt8395-genio-1200-evk.dts b/arch/= arm64/boot/dts/mediatek/mt8395-genio-1200-evk.dts index 70b465f7c6a7..f54f90a907e7 100644 --- a/arch/arm64/boot/dts/mediatek/mt8395-genio-1200-evk.dts +++ b/arch/arm64/boot/dts/mediatek/mt8395-genio-1200-evk.dts @@ -210,8 +210,7 @@ &i2c1 { touchscreen@5d { compatible =3D "goodix,gt9271"; reg =3D <0x5d>; - interrupt-parent =3D <&pio>; - interrupts =3D <132 IRQ_TYPE_EDGE_RISING>; + interrupts-extended =3D <&pio 132 IRQ_TYPE_EDGE_RISING>; irq-gpios =3D <&pio 132 GPIO_ACTIVE_HIGH>; reset-gpios =3D <&pio 133 GPIO_ACTIVE_HIGH>; AVDD28-supply =3D <&mt6360_ldo1>; @@ -773,8 +772,7 @@ pins { }; =20 &pmic { - interrupt-parent =3D <&pio>; - interrupts =3D <222 IRQ_TYPE_LEVEL_HIGH>; + interrupts-extended =3D <&pio 222 IRQ_TYPE_LEVEL_HIGH>; }; =20 &scp { --=20 2.42.0 From nobody Wed Nov 13 02:19:07 2024 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 EF0B2C25B47 for ; Wed, 25 Oct 2023 09:38:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234557AbjJYJis (ORCPT ); Wed, 25 Oct 2023 05:38:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234523AbjJYJii (ORCPT ); Wed, 25 Oct 2023 05:38:38 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CADE7A1; Wed, 25 Oct 2023 02:38:35 -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 675BA660734A; Wed, 25 Oct 2023 10:38:33 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1698226714; bh=efDJQrKjAe7kgKeNlCXYP3DvHJae+s5csugVhpTz98s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bkh6ZynZVWdd84IVwPJs+fMMRyRQyTYRbNddFux4rCSuSeV6Uc6v8sFqxzheYP9E7 vvzUXW/bVY2VojPei5A1c7bE23uUjtR1UYdLBA6023hRBGhuiE2n4beyZVHwm9mV4T nBUkuMj0hXoVmK8WyVU/da4pST3uQywH8zyeDARkG0M20L/kV/kdfyX08N8cl5fC8z gKyI2+0xvQ7xxgQBGC+un30XJrP0rk/4XTLbRuwi2f6cnqe7kcl5Rdg41Yadk/mynm eVoAs/3mojMsmSjx1//Hi/dBma8E0RBNgMYp139TbxeMd+7zPnjwjyjwhz95Yxb4UJ eb/kyu2XasOvQ== 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 4/8] arm64: dts: mediatek: Move MT6358 PMIC interrupts to MT8183 boards Date: Wed, 25 Oct 2023 11:38:12 +0200 Message-ID: <20231025093816.44327-5-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" MT6358 is a PMIC that is typically used on MT8183 boards, and it has its own dtsi file, declaring interrupts-extended on its node. The interrupt pin of that PMIC is connected to a SoC GPIO and that is therefore not only SoC-specific, but board-specific: this means that the interrupt-extended property does not belong to the PMIC dtsi file, but to board files using that PMIC. For correctness, transfer the interrupts-extended property from the PMIC-specific mt6358.dtsi to board files. Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt6358.dtsi | 1 - arch/arm64/boot/dts/mediatek/mt8183-evb.dts | 4 ++++ arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 4 ++++ arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts | 4 ++++ 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt6358.dtsi b/arch/arm64/boot/dts= /mediatek/mt6358.dtsi index 6f01ddf1acc7..61a655356663 100644 --- a/arch/arm64/boot/dts/mediatek/mt6358.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt6358.dtsi @@ -8,7 +8,6 @@ &pwrap { pmic: pmic { compatible =3D "mediatek,mt6358"; interrupt-controller; - interrupts-extended =3D <&pio 182 IRQ_TYPE_LEVEL_HIGH>; #interrupt-cells =3D <2>; =20 mt6358codec: mt6358codec { diff --git a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts b/arch/arm64/boot/= dts/mediatek/mt8183-evb.dts index ce336a48c897..f8c1f8df85d0 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts +++ b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts @@ -381,6 +381,10 @@ pins_pwm { }; }; =20 +&pmic { + interrupts-extended =3D <&pio 182 IRQ_TYPE_LEVEL_HIGH>; +}; + &mfg { domain-supply =3D <&mt6358_vgpu_reg>; }; diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi b/arch/arm64/bo= ot/dts/mediatek/mt8183-kukui.dtsi index adadfc653f39..c81407e44eca 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi @@ -846,6 +846,10 @@ pins_wifi_wakeup { }; }; =20 +&pmic { + interrupts-extended =3D <&pio 182 IRQ_TYPE_LEVEL_HIGH>; +}; + &pwm0 { status =3D "okay"; pinctrl-names =3D "default"; diff --git a/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts b/arch/arm64/b= oot/dts/mediatek/mt8183-pumpkin.dts index b5784a60c315..76449b4cf236 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts +++ b/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts @@ -370,6 +370,10 @@ pins_clk { }; }; =20 +&pmic { + interrupts-extended =3D <&pio 182 IRQ_TYPE_LEVEL_HIGH>; +}; + &mfg { domain-supply =3D <&mt6358_vgpu_reg>; }; --=20 2.42.0 From nobody Wed Nov 13 02:19:07 2024 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 0355CC0032E for ; Wed, 25 Oct 2023 09:38:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234611AbjJYJiu (ORCPT ); Wed, 25 Oct 2023 05:38:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234521AbjJYJii (ORCPT ); Wed, 25 Oct 2023 05:38:38 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8EB2DC; Wed, 25 Oct 2023 02:38:36 -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 8C3D7660734D; Wed, 25 Oct 2023 10:38:34 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1698226715; bh=EDKsDLQxS9/ZtjnnbKTtME2Dw+H53IZ5rGtiKIDEb0k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YTNgLc1/9ilQc1o+ymqXdVcTpiz1mSpgJnKsogjvKbF5SACTZGQJWX9t6Vn7OvzAX IfcS01czf9E6KlvOltFmebALWuwO0AhnuOtIoti9QZ/EQYqtcFIdFffh1cxu8KykQn BGMHFQ3qMOwHNu/lv/cyMtmbNmbb59tA4wCjkL/NOsUgWvcZ+Mjf7EDf/p/r0L6+hY P8Xr26Y1fIGbx4+FEmN6hEMz/xd6JyXCCTiWS7HY1dGWsDMZoe66+m4EBTRSSoQO6E aAhhGWjWn6q1XAeDL3wSXqV9taFMn1s+rqsIg0JdbnPRCAq1K/1QzDPLWoRIqGJ/AI ccARlegoxi+YQ== 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 5/8] arm64: dts: mediatek: mt8183: Fix unit address for scp reserved memory Date: Wed, 25 Oct 2023 11:38:13 +0200 Message-ID: <20231025093816.44327-6-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" The reserved memory for scp had node name "scp_mem_region" and also without unit-address: change the name to "memory@(address)". This fixes a unit_address_vs_reg warning. Fixes: 1652dbf7363a ("arm64: dts: mt8183: add scp node") Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt8183-evb.dts | 2 +- arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts b/arch/arm64/boot/= dts/mediatek/mt8183-evb.dts index f8c1f8df85d0..bae9b6763862 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts +++ b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts @@ -31,7 +31,7 @@ reserved-memory { #address-cells =3D <2>; #size-cells =3D <2>; ranges; - scp_mem_reserved: scp_mem_region { + scp_mem_reserved: memory@50000000 { compatible =3D "shared-dma-pool"; reg =3D <0 0x50000000 0 0x2900000>; no-map; diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi b/arch/arm64/bo= ot/dts/mediatek/mt8183-kukui.dtsi index c81407e44eca..e909cfadb6d7 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi @@ -116,7 +116,7 @@ reserved_memory: reserved-memory { #size-cells =3D <2>; ranges; =20 - scp_mem_reserved: scp_mem_region { + scp_mem_reserved: memory@50000000 { compatible =3D "shared-dma-pool"; reg =3D <0 0x50000000 0 0x2900000>; no-map; --=20 2.42.0 From nobody Wed Nov 13 02:19:07 2024 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 B9242C25B6B for ; Wed, 25 Oct 2023 09:39:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234653AbjJYJix (ORCPT ); Wed, 25 Oct 2023 05:38:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234531AbjJYJij (ORCPT ); Wed, 25 Oct 2023 05:38:39 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB2C6A6; Wed, 25 Oct 2023 02:38:37 -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 B0C646607355; Wed, 25 Oct 2023 10:38:35 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1698226716; bh=NsQGaQMdwBTZeaq0SwfWzI3tFI6jtmckhrCFUwqRGeo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UHMYIB46Ftw7EJBpfdNM8p0aXqcOWBSOPwZp3eNDsWMglGAqfEuxGxWtFIcUYQx7q G+SDggzWZa5cFCOjXIjOzyWsQFwjBqt/tGjbkJZUlN+3Pt78LeH6Oz3EUye03K5p7X lc9zxSZsa6gMeFY6quoUFIQo53aUVMk9tmCzndZ3TIGMjKQXQRvAlq1QuqjHInK8am Q2G6w1Nh3fR/F3JVXrGVuPYB3b2cqfpd0us/XctlrfdZYk43NDQDUHB9Wh6jzcQDXf cR12xaG+hZvdcADRz1obG95zI5pSFNKJt7nbUAgcIZVOBEr/dU8SgHqTtcY3wvKuqO ChDtp1dvlkZmQ== 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 6/8] arm64: dts: mediatek: mt8183-evb: Fix unit_address_vs_reg warning on ntc Date: Wed, 25 Oct 2023 11:38:14 +0200 Message-ID: <20231025093816.44327-7-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" The NTC is defined as ntc@0 but it doesn't need any address at all. Fix the unit_address_vs_reg warning by dropping the unit address: since the node name has to be generic also fully rename it from ntc@0 to thermal-sensor. Fixes: ff9ea5c62279 ("arm64: dts: mediatek: mt8183-evb: Add node for thermi= stor") Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt8183-evb.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts b/arch/arm64/boot/= dts/mediatek/mt8183-evb.dts index bae9b6763862..681deddffc2a 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts +++ b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts @@ -38,7 +38,7 @@ scp_mem_reserved: memory@50000000 { }; }; =20 - ntc@0 { + thermal-sensor { compatible =3D "murata,ncp03wf104"; pullup-uv =3D <1800000>; pullup-ohm =3D <390000>; --=20 2.42.0 From nobody Wed Nov 13 02:19:07 2024 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 65E28C25B47 for ; Wed, 25 Oct 2023 09:39:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234736AbjJYJi5 (ORCPT ); Wed, 25 Oct 2023 05:38:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234538AbjJYJik (ORCPT ); Wed, 25 Oct 2023 05:38:40 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDFAA10A; Wed, 25 Oct 2023 02:38:38 -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 D389A660734F; Wed, 25 Oct 2023 10:38:36 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1698226717; bh=Nrg4W3/4J917pILWnR2UswnN4M0Do4Gs1SY6J/UF33k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jH5lBZHRgcrQysxfV79kKfFefA1PsQ78A0mZRi/sr0+H11XjcLiyM6Cz8C5sK36b6 SFcUDjm1rFRXQeNyxraGrEEbdltYAqFvIgHVW0CT9wdHyLSRwLBMwhMFLJKSk83Fhj e6ovtmB2V7WEVisSZ56xfKjw9OLkWxoHQn0eMwWHZWs/Jc8JWXpypM9vbD4sc5eQK5 PxRdm6q60UmxaTVaQmxBv60ey8jKJFtImvEosHR0eguTTfULprdY4S+FOcL7vqom+R SJiOul3NCLTKf4HQzC+Q0U2KkwBeZurWRncMeIioRh73kUZiwVmb+J6/Dc7rRxHT9L LLbgy0sKwqUoQ== 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 7/8] arm64: dts: mediatek: mt8173-evb: Fix regulator-fixed node names Date: Wed, 25 Oct 2023 11:38:15 +0200 Message-ID: <20231025093816.44327-8-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" Fix a unit_address_vs_reg warning for the USB VBUS fixed regulators by renaming the regulator nodes from regulator@{0,1} to regulator-usb-p0 and regulator-usb-p1. Fixes: c0891284a74a ("arm64: dts: mediatek: add USB3 DRD driver") Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts b/arch/arm64/boot/= dts/mediatek/mt8173-evb.dts index 692e8173c9eb..0e5c628d1ec3 100644 --- a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts +++ b/arch/arm64/boot/dts/mediatek/mt8173-evb.dts @@ -44,7 +44,7 @@ extcon_usb: extcon_iddig { id-gpio =3D <&pio 16 GPIO_ACTIVE_HIGH>; }; =20 - usb_p1_vbus: regulator@0 { + usb_p1_vbus: regulator-usb-p1 { compatible =3D "regulator-fixed"; regulator-name =3D "usb_vbus"; regulator-min-microvolt =3D <5000000>; @@ -53,7 +53,7 @@ usb_p1_vbus: regulator@0 { enable-active-high; }; =20 - usb_p0_vbus: regulator@1 { + usb_p0_vbus: regulator-usb-p0 { compatible =3D "regulator-fixed"; regulator-name =3D "vbus"; regulator-min-microvolt =3D <5000000>; --=20 2.42.0 From nobody Wed Nov 13 02:19:07 2024 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 A3185C0032E for ; Wed, 25 Oct 2023 09:39:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234808AbjJYJjB (ORCPT ); Wed, 25 Oct 2023 05:39:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234561AbjJYJim (ORCPT ); Wed, 25 Oct 2023 05:38:42 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59C76DC; Wed, 25 Oct 2023 02:38:40 -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 057996607352; Wed, 25 Oct 2023 10:38:37 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1698226719; bh=J7xboHYN7HDtc0HAbTcQagqCVN2JYka3vCOT9PGWQZE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A0bqLgaeVnaZKE9gmupysWUHq5O8gXxPmzBWgcDRMUMdwui/b4/buO/WsjGwHG+xt 5WiZOaSh7pO9iZ1yveZ7SaXIEd+iBG76DuQlLfx1t/9YMb0nTD6/XQMPxLU7TBsjZY ILCrbW5EMWJN+7PeDMiN4k+TYWJPAR2WuwYBkvbaqwvvsk1iJxnMkU03cAv2xH/Mdf zLGz++ddJJV+MyIAwKahEFVY1oBB5bwcotN+FM/aH5bao5iraiIpgHp6pCUphkt/x5 smmUPRv/Snh0UKDZj65w34fjRX8BPo2gaxeX59SG0i2xHCxwfUf03CeNg8bqoXQTxz s3K5jojJhuxdQ== 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 8/8] arm64: dts: mediatek: mt8183: Move thermal-zones to the root node Date: Wed, 25 Oct 2023 11:38:16 +0200 Message-ID: <20231025093816.44327-9-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" The thermal zones are not a soc bus device: move it to the root node to solve simple_bus_reg warnings. Fixes: b325ce39785b ("arm64: dts: mt8183: add thermal zone node") Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 242 +++++++++++------------ 1 file changed, 121 insertions(+), 121 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts= /mediatek/mt8183.dtsi index 5169779d01df..976dc968b3ca 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi @@ -1210,127 +1210,6 @@ thermal: thermal@1100b000 { nvmem-cell-names =3D "calibration-data"; }; =20 - thermal_zones: thermal-zones { - cpu_thermal: cpu-thermal { - polling-delay-passive =3D <100>; - polling-delay =3D <500>; - thermal-sensors =3D <&thermal 0>; - sustainable-power =3D <5000>; - - trips { - threshold: trip-point0 { - temperature =3D <68000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - target: trip-point1 { - temperature =3D <80000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - cpu_crit: cpu-crit { - temperature =3D <115000>; - hysteresis =3D <2000>; - type =3D "critical"; - }; - }; - - cooling-maps { - map0 { - trip =3D <&target>; - cooling-device =3D <&cpu0 - THERMAL_NO_LIMIT - THERMAL_NO_LIMIT>, - <&cpu1 - THERMAL_NO_LIMIT - THERMAL_NO_LIMIT>, - <&cpu2 - THERMAL_NO_LIMIT - THERMAL_NO_LIMIT>, - <&cpu3 - THERMAL_NO_LIMIT - THERMAL_NO_LIMIT>; - contribution =3D <3072>; - }; - map1 { - trip =3D <&target>; - cooling-device =3D <&cpu4 - THERMAL_NO_LIMIT - THERMAL_NO_LIMIT>, - <&cpu5 - THERMAL_NO_LIMIT - THERMAL_NO_LIMIT>, - <&cpu6 - THERMAL_NO_LIMIT - THERMAL_NO_LIMIT>, - <&cpu7 - THERMAL_NO_LIMIT - THERMAL_NO_LIMIT>; - contribution =3D <1024>; - }; - }; - }; - - /* The tzts1 ~ tzts6 don't need to polling */ - /* The tzts1 ~ tzts6 don't need to thermal throttle */ - - tzts1: tzts1 { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&thermal 1>; - sustainable-power =3D <5000>; - trips {}; - cooling-maps {}; - }; - - tzts2: tzts2 { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&thermal 2>; - sustainable-power =3D <5000>; - trips {}; - cooling-maps {}; - }; - - tzts3: tzts3 { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&thermal 3>; - sustainable-power =3D <5000>; - trips {}; - cooling-maps {}; - }; - - tzts4: tzts4 { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&thermal 4>; - sustainable-power =3D <5000>; - trips {}; - cooling-maps {}; - }; - - tzts5: tzts5 { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&thermal 5>; - sustainable-power =3D <5000>; - trips {}; - cooling-maps {}; - }; - - tztsABB: tztsABB { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&thermal 6>; - sustainable-power =3D <5000>; - trips {}; - cooling-maps {}; - }; - }; - pwm0: pwm@1100e000 { compatible =3D "mediatek,mt8183-disp-pwm"; reg =3D <0 0x1100e000 0 0x1000>; @@ -2105,4 +1984,125 @@ larb3: larb@1a002000 { power-domains =3D <&spm MT8183_POWER_DOMAIN_CAM>; }; }; + + thermal_zones: thermal-zones { + cpu_thermal: cpu-thermal { + polling-delay-passive =3D <100>; + polling-delay =3D <500>; + thermal-sensors =3D <&thermal 0>; + sustainable-power =3D <5000>; + + trips { + threshold: trip-point0 { + temperature =3D <68000>; + hysteresis =3D <2000>; + type =3D "passive"; + }; + + target: trip-point1 { + temperature =3D <80000>; + hysteresis =3D <2000>; + type =3D "passive"; + }; + + cpu_crit: cpu-crit { + temperature =3D <115000>; + hysteresis =3D <2000>; + type =3D "critical"; + }; + }; + + cooling-maps { + map0 { + trip =3D <&target>; + cooling-device =3D <&cpu0 + THERMAL_NO_LIMIT + THERMAL_NO_LIMIT>, + <&cpu1 + THERMAL_NO_LIMIT + THERMAL_NO_LIMIT>, + <&cpu2 + THERMAL_NO_LIMIT + THERMAL_NO_LIMIT>, + <&cpu3 + THERMAL_NO_LIMIT + THERMAL_NO_LIMIT>; + contribution =3D <3072>; + }; + map1 { + trip =3D <&target>; + cooling-device =3D <&cpu4 + THERMAL_NO_LIMIT + THERMAL_NO_LIMIT>, + <&cpu5 + THERMAL_NO_LIMIT + THERMAL_NO_LIMIT>, + <&cpu6 + THERMAL_NO_LIMIT + THERMAL_NO_LIMIT>, + <&cpu7 + THERMAL_NO_LIMIT + THERMAL_NO_LIMIT>; + contribution =3D <1024>; + }; + }; + }; + + /* The tzts1 ~ tzts6 don't need to polling */ + /* The tzts1 ~ tzts6 don't need to thermal throttle */ + + tzts1: tzts1 { + polling-delay-passive =3D <0>; + polling-delay =3D <0>; + thermal-sensors =3D <&thermal 1>; + sustainable-power =3D <5000>; + trips {}; + cooling-maps {}; + }; + + tzts2: tzts2 { + polling-delay-passive =3D <0>; + polling-delay =3D <0>; + thermal-sensors =3D <&thermal 2>; + sustainable-power =3D <5000>; + trips {}; + cooling-maps {}; + }; + + tzts3: tzts3 { + polling-delay-passive =3D <0>; + polling-delay =3D <0>; + thermal-sensors =3D <&thermal 3>; + sustainable-power =3D <5000>; + trips {}; + cooling-maps {}; + }; + + tzts4: tzts4 { + polling-delay-passive =3D <0>; + polling-delay =3D <0>; + thermal-sensors =3D <&thermal 4>; + sustainable-power =3D <5000>; + trips {}; + cooling-maps {}; + }; + + tzts5: tzts5 { + polling-delay-passive =3D <0>; + polling-delay =3D <0>; + thermal-sensors =3D <&thermal 5>; + sustainable-power =3D <5000>; + trips {}; + cooling-maps {}; + }; + + tztsABB: tztsABB { + polling-delay-passive =3D <0>; + polling-delay =3D <0>; + thermal-sensors =3D <&thermal 6>; + sustainable-power =3D <5000>; + trips {}; + cooling-maps {}; + }; + }; }; --=20 2.42.0