From patchwork Mon Apr 24 11:25:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 13222055 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3794CC77B61 for ; Mon, 24 Apr 2023 11:26:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=YxQdTW23D1sLWbtGSb3xEgxJp5M1HzNuyO1n2/Zb0YI=; b=3JZOeMdtShiYyK BjuicEH03dWPmzfG950JL0rRf/nPDlMx5OFjFbOdpZbSGYdXb9rWTCh0AwM2xCxmAEXhR5+MJ2bac aIsNyNMOWXytoIczkrdrOJM9TQKsyoYsZkPayE27ozgmLiy+HedAny3wTKnzKAVIldkmrb66rH3Sd yxghoCqt9XM8oOki5wrnPx3tZmFUUFrktVid3Z8H+zzg+cw7tq6/Ad1AJVaI0raEI+FEe4RVePxWW nHn2W/NOpc5O2W2Pt5Lkr40h9zPInmddhLST/EkZMjvVRHUn0K7Qq8fKefYVHtaClBRtD0XTzBOaV CpinAyGIUDvmdFjxhnuw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pquK5-00GBaY-24; Mon, 24 Apr 2023 11:25:33 +0000 Received: from madras.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e5ab]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pquK3-00GBZq-0q; Mon, 24 Apr 2023 11:25:32 +0000 Received: from IcarusMOD.eternityproject.eu (unknown [IPv6:2001:b07:2ed:14ed:c5f8:7372:f042:90a2]) (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 04141660324D; Mon, 24 Apr 2023 12:25:28 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1682335529; bh=D8ECh98ZW5Kp7rjGcRUYfmB3ikfORMr6hVs/EvaqyaA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CMSJiDYplbt6V/NtGqCKbsjzj3AIscEoQ3/m3uKqfWxyGQDDQdvwTb4XEcgR91l0a 4Ydp7xkJEWC7jO70TBhX7ZDSEzrAC7OMYzoGKUt7N3daMCxUpGtqU4sJdIpjnMxtll dPm8sBASqqjqcjp9H9CWTI+n4CfDA9oI6SjSE6ggA8FUuPNVUPScGRUUBd46+XsWbE EI1Kht2/031xfkxXwnK34CxtbRF9PCkW/uSlP/Qewo604FXRTk0U/xgW5bnMjXBX+V 9NCkzTw21tByLmT/oTiZnRmZPOEcHY4bcjjfjAue3qGa4wcRXUlSjo0wFoR0MbibLW pR6XEkQ5oe1eA== From: AngeloGioacchino Del Regno To: matthias.bgg@gmail.com Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, kernel@collabora.com, AngeloGioacchino Del Regno , Chen-Yu Tsai Subject: [PATCH v2 1/4] arm64: dts: mediatek: cherry: Add platform thermal configuration Date: Mon, 24 Apr 2023 13:25:20 +0200 Message-Id: <20230424112523.1436926-2-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230424112523.1436926-1-angelogioacchino.delregno@collabora.com> References: <20230424112523.1436926-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230424_042531_513128_FE9195E8 X-CRM114-Status: GOOD ( 10.73 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This platform has three auxiliary NTC thermistors, connected to the SoC's ADC pins. Enable the auxadc in order to be able to read the ADC values, add a generic-adc-thermal LUT for each and finally assign them to the SoC's thermal zones. Signed-off-by: AngeloGioacchino Del Regno Tested-by: Chen-Yu Tsai Reviewed-by: Chen-Yu Tsai Reviewed-by: Alexandre Mergnat --- .../boot/dts/mediatek/mt8195-cherry.dtsi | 105 ++++++++++++++++++ 1 file changed, 105 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi b/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi index 8ac80a136c37..4229f4f7dc2f 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi @@ -114,6 +114,77 @@ ppvar_sys: regulator-ppvar-sys { regulator-boot-on; }; + /* Murata NCP03WF104F05RL */ + tboard_thermistor1: thermal-sensor-t1 { + compatible = "generic-adc-thermal"; + #thermal-sensor-cells = <0>; + io-channels = <&auxadc 0>; + io-channel-names = "sensor-channel"; + temperature-lookup-table = < (-10000) 1553 + (-5000) 1485 + 0 1406 + 5000 1317 + 10000 1219 + 15000 1115 + 20000 1007 + 25000 900 + 30000 796 + 35000 697 + 40000 605 + 45000 523 + 50000 449 + 55000 384 + 60000 327 + 65000 279 + 70000 237 + 75000 202 + 80000 172 + 85000 147 + 90000 125 + 95000 107 + 100000 92 + 105000 79 + 110000 68 + 115000 59 + 120000 51 + 125000 44>; + }; + + tboard_thermistor2: thermal-sensor-t2 { + compatible = "generic-adc-thermal"; + #thermal-sensor-cells = <0>; + io-channels = <&auxadc 1>; + io-channel-names = "sensor-channel"; + temperature-lookup-table = < (-10000) 1553 + (-5000) 1485 + 0 1406 + 5000 1317 + 10000 1219 + 15000 1115 + 20000 1007 + 25000 900 + 30000 796 + 35000 697 + 40000 605 + 45000 523 + 50000 449 + 55000 384 + 60000 327 + 65000 279 + 70000 237 + 75000 202 + 80000 172 + 85000 147 + 90000 125 + 95000 107 + 100000 92 + 105000 79 + 110000 68 + 115000 59 + 120000 51 + 125000 44>; + }; + usb_vbus: regulator-5v0-usb-vbus { compatible = "regulator-fixed"; regulator-name = "usb-vbus"; @@ -260,6 +331,10 @@ &gpu { mali-supply = <&mt6315_7_vbuck1>; }; +&auxadc { + status = "okay"; +}; + &i2c0 { status = "okay"; @@ -1098,6 +1173,36 @@ mt6315_7_vbuck1: vbuck1 { }; }; +&thermal_zones { + soc-area-thermal { + polling-delay = <1000>; + polling-delay-passive = <250>; + thermal-sensors = <&tboard_thermistor1>; + + trips { + trip-crit { + temperature = <84000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + pmic-area-thermal { + polling-delay = <1000>; + polling-delay-passive = <0>; + thermal-sensors = <&tboard_thermistor2>; + + trips { + trip-crit { + temperature = <84000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; +}; + &u3phy0 { status = "okay"; }; From patchwork Mon Apr 24 11:25:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 13222056 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7D578C7618E for ; Mon, 24 Apr 2023 11:26:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=b28LAeHteaNzDnrbSj6ZaFwxUlWbNkGBsPeNKFGKLoo=; b=tYCO3D77gZxR/9 N03WYNb37O4zCtPVlRIz7LakTHpDPZlhnnBnpOX943k5nfZONpvrNXjmi+7ZJDFkRyfTRKLksFZfu DOBDxjzs5u1f3HIpve9njiNsfcJtPLUSi3plIz5/4dy0FtfFTedhrufSoG3/jDu7SAz2PX6gcMmlA KeEuiR3GEVeYcf1xnqc+RkFMbq5/33pdudixt1D0NlUfqXEw4UQnzn7JOkzvkqrSPZuKaINMRbAZw QOSQN2TtWLXhf1xACrCzCcSoxYnMj2yRtvbd+CdH/qQrrFZpaHayOXC9WU6Nbe3us9RH9Gfq8xR+S qMR9ZIZhBuxLTP9lPVKQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pquKF-00GBfU-1A; Mon, 24 Apr 2023 11:25:43 +0000 Received: from madras.collabora.co.uk ([46.235.227.172]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pquK5-00GBZr-2K; Mon, 24 Apr 2023 11:25:35 +0000 Received: from IcarusMOD.eternityproject.eu (unknown [IPv6:2001:b07:2ed:14ed:c5f8:7372:f042:90a2]) (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 CED3166032A3; Mon, 24 Apr 2023 12:25:29 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1682335530; bh=E3a2HggcnHyNJ74IvNKxPxlRZM32GuP7ERQkfR2uopU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c05bQPsdHBaHdIUKTGFwCDDnZRKlU1p2vYIE+90NQ712UgdQYDYbtMoKDWv1bNONZ 4DUvoHgzRW6g3Wj8baavyazYFU0eUvhI9QH2CkaJTjQPI9LIgPWm/PfYiveaSV8Jl9 oh0daANq1QosxicEdaigSdqmKqUSrtuOg9PgY83F4RFMEgLcloSCer2RGYoBuwrrQc oB5eZC6Y4Kvhrrom/hEGgF7qZriyD56pN3e85qCLwVYUWPb9bgV8p/d5NChdMW6lrX TBXTzWXPe4GjWNqzJcRL2xJxp9v/Gs09st2hOvjgk+m5rHqrH1cQTXj4CCJu9AuW8s maXVRW3bSDlnQ== From: AngeloGioacchino Del Regno To: matthias.bgg@gmail.com Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, kernel@collabora.com, AngeloGioacchino Del Regno Subject: [PATCH v2 2/4] arm64: dts: mediatek: mt8195: Assign dp-intf aliases Date: Mon, 24 Apr 2023 13:25:21 +0200 Message-Id: <20230424112523.1436926-3-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230424112523.1436926-1-angelogioacchino.delregno@collabora.com> References: <20230424112523.1436926-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230424_042533_917784_2D09A222 X-CRM114-Status: UNSURE ( 8.41 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Assign aliases for the primary and secondary dp-intf IP to properly and reliably enable DisplayPort functionality. Signed-off-by: AngeloGioacchino Del Regno Tested-by: Chen-Yu Tsai Reviewed-by: Chen-Yu Tsai Reviewed-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/mediatek/mt8195.dtsi index a44aae4ab953..b03a42fe27a6 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8195.dtsi @@ -24,6 +24,8 @@ / { #size-cells = <2>; aliases { + dp-intf0 = &dp_intf0; + dp-intf1 = &dp_intf1; gce0 = &gce0; gce1 = &gce1; ethdr0 = ðdr0; From patchwork Mon Apr 24 11:25:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 13222057 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4D31FC77B61 for ; Mon, 24 Apr 2023 11:26:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=9b4n/MkattKpWRHo5ffQCBrYuZCGQxjC6Gb7y68QmXs=; b=th+1ux2gPPMcus I/dJBCOQurPeBlZhAiVaOMgoETYlDnD0PfktPoE5s52M54C+eCLhY1UIdxjnmvHD3iFE5fTZuPEMH YhxezL/TqbD1VBgiYj5p6ZrvDIw8FqLQenVlWonSEROQn/LR18s7cilWy0UtQpnZxxYNVcms8jceP ksuFA8yn3QIFLLymqKUbpQNm3C0GK0PZEKp5WyB5cmR0/b+TjiW7F7Vq8vKLzChHj2Q189A+m10S7 2k3ue0bh8XWUktgR66QWLXV6ynr53ZL2TJTpFqEpaz06L6hEvcsCULshj/pV6lZ9kY9fH7Jkimqkt Eh+8b23rbOg7/MUcFMpg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pquKD-00GBes-31; Mon, 24 Apr 2023 11:25:41 +0000 Received: from madras.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e5ab]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pquK4-00GBa7-1R; Mon, 24 Apr 2023 11:25:33 +0000 Received: from IcarusMOD.eternityproject.eu (unknown [IPv6:2001:b07:2ed:14ed:c5f8:7372:f042:90a2]) (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 9EE7C66032BD; Mon, 24 Apr 2023 12:25:30 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1682335531; bh=dO1hZUstNQtKtr3TLhRob5mShnIqqvW0/SOx8Z1uypE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eVSNrabl+GlmepXkmf6OXM9CqTbAc8I0E9B1NIQzfec2ETKV/mzeALAnwpLU32jCT CXPd/UthxRWIzBxnEagKACIICl0DIOVGGcFd1MwFxvtQTwsg5Ot/fR9I0zs1T3vRfb kZYjIukZYWE88wVcWDP3rxnYlZsfekrsCwTLWmI4iJY0oPMTdCyC9lKZi3JrqI7S+y x7eYVYN761wlKn2f4NjbULxPIC6Cvvv6djjQ3EkR9XOtWkioQUa1yWehjdAFPokF3U dhHq9cv+ps9rcJYVQN/pgufTMRTV2Z9EXumw++yMvRQfJlu0ym6lK/BlK4PARdXAev tQJlTIUWvaTXg== From: AngeloGioacchino Del Regno To: matthias.bgg@gmail.com Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, kernel@collabora.com, AngeloGioacchino Del Regno Subject: [PATCH v2 3/4] arm64: dts: mediatek: cherry: Configure eDP and internal display Date: Mon, 24 Apr 2023 13:25:22 +0200 Message-Id: <20230424112523.1436926-4-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230424112523.1436926-1-angelogioacchino.delregno@collabora.com> References: <20230424112523.1436926-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230424_042532_611760_94622C47 X-CRM114-Status: UNSURE ( 9.00 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add the required nodes to enable the DisplayPort interface, connected to the Embedded DisplayPort port, where we have an internal display. Signed-off-by: AngeloGioacchino Del Regno --- .../boot/dts/mediatek/mt8195-cherry.dtsi | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi b/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi index 4229f4f7dc2f..adbda4dccdd5 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi @@ -47,6 +47,18 @@ memory@40000000 { reg = <0 0x40000000 0 0x80000000>; }; + pp3300_disp_x: regulator-pp3300-disp-x { + compatible = "regulator-fixed"; + regulator-name = "pp3300_disp_x"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + enable-active-high; + gpio = <&pio 55 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&panel_fixed_pins>; + regulator-always-on; + }; + /* system wide LDO 3.3V power rail */ pp3300_z5: regulator-pp3300-ldo-z5 { compatible = "regulator-fixed"; @@ -288,6 +300,20 @@ port@1 { reg = <1>; edp_out: endpoint { data-lanes = <0 1 2 3>; + remote-endpoint = <&panel_in>; + }; + }; + }; + + aux-bus { + panel { + compatible = "edp-panel"; + power-supply = <&pp3300_disp_x>; + backlight = <&backlight_lcd0>; + port { + panel_in: endpoint { + remote-endpoint = <&edp_out>; + }; }; }; }; @@ -927,6 +953,12 @@ pins-cs { }; }; + panel_fixed_pins: panel-pwr-default-pins { + pins-vreg-en { + pinmux = ; + }; + }; + pio_default: pio-default-pins { pins-wifi-enable { pinmux = ; From patchwork Mon Apr 24 11:25:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 13222058 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 49F92C77B76 for ; Mon, 24 Apr 2023 11:26:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=jtFQPNht5GOt7MoLjcV+/oEu8Y5boNQqv6a7VUqwcpE=; b=anQCuSAQCfTUoD J79qXCNWYZ/Tg7Ne627jnq9UnF/e6ODnOIZTI0afk/hSTARdClSpkIdzjMvS2keo7Fdib2dgB6Hsz R3h7ZxgE8mjiU3Nj6kfpF/0QkWf2SEc9RdW0voshZCVYR8lntsszFCBR9UUEq9jvnn5NpLwoT2FA6 oQNF/NwxXLU+qqRdnZSUVVZfKeAHSbgho8E61Mfss2KCmK7FtB8IUMkFUJiV4YObnDay+qsD80qRI 6rt7Q/UHKX/A4RIUui3LGo5NUTPPHoyuDncqUxwBqDGBH9MyA2gCeolClha8itIT3wAfQhBjAZtIo dK1Bgmib+uc0I6t3HakQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pquKJ-00GBiG-15; Mon, 24 Apr 2023 11:25:47 +0000 Received: from madras.collabora.co.uk ([46.235.227.172]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pquK5-00GBaA-2L; Mon, 24 Apr 2023 11:25:36 +0000 Received: from IcarusMOD.eternityproject.eu (unknown [IPv6:2001:b07:2ed:14ed:c5f8:7372:f042:90a2]) (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 7128B66032D6; Mon, 24 Apr 2023 12:25:31 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1682335532; bh=P3MJW20eoG0YoMr+L3S8LawJAlojmTn59Fmy2F+6Ey4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ePQrKoJuHA6iR92JJnfcq4N2llCQx4eiVTdBBFAHz7cJjxqWCI5MZ50u5LgO1HP6I /w49XbKbeOpILRKFgvL2/CvNqFxULx/YD43Qzj7xA3yKJhVzVXoowS7H3CLWojGLSM 9XQDUpdxzKzSvJwO9mb9r9EbD23nOXoZTwv3jqz09ynPXh67ABD2ZgxAv9o9KO+5sv aOAPCYmNp1JSzyKzw4FD+BljEKxodvV47jdPvtL5J1ihHrjC0WfGnm/xmDkLTyApRW 4dg9FGHleF8jaUUQuQ805TYVfNEqqsKpRmzBdYlezhhiwn0dqKedicYUvpL84zleJg cqK5CAKMLNt6g== From: AngeloGioacchino Del Regno To: matthias.bgg@gmail.com Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, kernel@collabora.com, AngeloGioacchino Del Regno , Chen-Yu Tsai Subject: [PATCH v2 4/4] arm64: dts: mediatek: cherry: Enable PCI-Express ports for WiFi Date: Mon, 24 Apr 2023 13:25:23 +0200 Message-Id: <20230424112523.1436926-5-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230424112523.1436926-1-angelogioacchino.delregno@collabora.com> References: <20230424112523.1436926-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230424_042533_919991_EF88A1E1 X-CRM114-Status: UNSURE ( 8.85 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On the Cherry platform, a MT7621 WiFi+Bluetooth combo is connected over PCI-Express (for WiFi) and USB (for BT): enable the PCIe ports to enable enumerating this chip. Signed-off-by: AngeloGioacchino Del Regno Tested-by: Chen-Yu Tsai Reviewed-by: Chen-Yu Tsai Reviewed-by: Alexandre Mergnat --- .../boot/dts/mediatek/mt8195-cherry.dtsi | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi b/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi index adbda4dccdd5..eca5df85fe33 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi @@ -565,6 +565,13 @@ flash@0 { }; }; +&pcie1 { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&pcie1_pins_default>; +}; + &pio { mediatek,rsel-resistance-in-si-unit; pinctrl-names = "default"; @@ -959,6 +966,24 @@ pins-vreg-en { }; }; + pcie0_pins_default: pcie0-default-pins { + pins-bus { + pinmux = , + , + ; + bias-pull-up; + }; + }; + + pcie1_pins_default: pcie1-default-pins { + pins-bus { + pinmux = , + , + ; + bias-pull-up; + }; + }; + pio_default: pio-default-pins { pins-wifi-enable { pinmux = ;