From patchwork Thu Apr 20 09:44:29 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: 13218242 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 C2BB6C77B78 for ; Thu, 20 Apr 2023 09:45:44 +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=4l6xOWJnatZGyRKjCpkjJoJendZNe+DUPfV5Wn8kH9U=; b=lGphDTZZozt9oB Oqanh45X/BYvglRzX0bfPtHielRoTcRMfelxZcSTwN+QFhqSgwsyg/wQtfO9vnYS2y1EZXs3lfBfU Z2TaJYkTsGJRBetATmeW6LfE0eM0A/JfLXC3G3VnN8p+vPu1nE5JCzPd0Ah2AFQNqhnEcXqt7E6hS P+i0d4ZCO7Z1O+kBsb3z9AEK9y4MCO2DUcejYGAsohorv2tUT/7wDthw82gICQt7rry8oIxsAcpHJ R/qQODBOmiHFu0xpolWwZkz+PJKBtMvCSaKlUpkhEj13tFKV6E1Vwh3ulSICvnSDBDch1Z2cV49BN scVrI610lalqsnrIGw9g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1ppQqT-007ZRR-1U; Thu, 20 Apr 2023 09:44:53 +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 1ppQqO-007ZNb-2E; Thu, 20 Apr 2023 09:44:50 +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 A2623660325F; Thu, 20 Apr 2023 10:44:44 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1681983885; bh=PtQuyZxzHrAdWjzyoJUqzJ9rjp5UV6ThgnDDcqGxVug=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b4S+8bt+073+UwfKxzK89eiqxVuRMMQgGnGr70NmyPi3J6VbHYcHCkefFnKxZpFvC z7TgkhKfSDFbAKiVVhbO2pwQIkcW1xOM6Ua2nIGFhl5ogZZSVNgc+/jVtyGpvFOBIZ C3zu0NOH1i1sFOY498TZILfd6Sb4K3/r+4AsmV17NyJFgyh0EnAGUz7c5H54K1++HE WG0865c4HPmP0VaQ/AGs6Vqqnvali8JV6M9XJEfeJ/aQqEqwAfTw2POZZVM/xzIgcb Oa+ZxdbxjKDcigvIW+B66EMwSNfxWEsIxBCKq25LZ9JhR4/1rdZwzaAonUWlT6vvfr DPF84fekwmrgw== 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 1/5] arm64: dts: mediatek: cherry: Add platform thermal configuration Date: Thu, 20 Apr 2023 11:44:29 +0200 Message-Id: <20230420094433.42794-2-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230420094433.42794-1-angelogioacchino.delregno@collabora.com> References: <20230420094433.42794-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-20230420_024448_879107_BCA5482B X-CRM114-Status: GOOD ( 11.32 ) 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 --- .../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..0820e9ba3829 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_ntc { + polling-delay = <1000>; + polling-delay-passive = <250>; + thermal-sensors = <&tboard_thermistor1>; + + trips { + trip-crit { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + pmic_area_ntc { + polling-delay = <1000>; + polling-delay-passive = <0>; + thermal-sensors = <&tboard_thermistor2>; + + trips { + trip-crit { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; +}; + &u3phy0 { status = "okay"; }; From patchwork Thu Apr 20 09:44:30 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: 13218243 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 23288C77B72 for ; Thu, 20 Apr 2023 09:45:46 +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=6hg7fl9jwAQc9e1WlHvXeB5c2DVqa7QaT8l208f4ccI=; b=flTUMVTkTG1ceO 6Eq4WZlXp1dWlZrolhTtrlKM+v3Y8DcPqnR3lO0CsbXBMvOHZafGqO69OARqujEjbdaL+3c3O0574 t/MxwAFhHzPgsC+Fs0UMlxN1xa00nmKCq1lyZx6qYNrH5YfTliQQCejx/g8JPJk+5T1vMPJsVmQi8 A++oHA0Z48hyz9LiyD5nQXBdLcYKDpKbbdb2dQ0NjMyMQ5QVldBqrigNGZaIfHyxwXERXw8WLtflN GyJtVhlM2U8LkXBUVxLBwckuvl0iyTDCI4irvIAy0Yt+PD9OpILK8tL6MOUxipAw6zomRlKq++thH IjkJfmad3kLsohgEAtgQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1ppQqd-007ZV2-1z; Thu, 20 Apr 2023 09:45:03 +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 1ppQqO-007ZNj-2X; Thu, 20 Apr 2023 09:44:51 +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 5E31B6603277; Thu, 20 Apr 2023 10:44:45 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1681983886; bh=Ki82b4gc4Fw7arzhH5GwpAwTU4+4dn3MwLzf+E35F7o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=i9MxS6MJ2jPtcCh0u1FFZtTDC2G63yQc8253Cb6PGy/OMZ53SbLfhsn2H+iJ/0GYG P7MMNwZtdOqVxuxyJQL/h9q2eUkMYTFWuIIBbhEP06SHP2Zm5F0TCcMjChLSfLDS/l xCAkzdwGaZltA7wRXbOdpHFMS7s95ZWpqxtbgOyIpt9MmobDDAZoTqhKeMA6zNZ8jl RH0czZq6TOQ2CT0J1vW+5FTSfz/8to02Nbj+X4lxaL0tO2etlYLgflmUl3orBm6xYt GTQr7ngNDziMKRd9hW0KGKGxDbmc9w/E2D0yfBVrxtl1kCMLMpq5lePDoYD2r85aG7 GsT7c6UbK3AHA== 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 2/5] arm64: dts: mediatek: cherry: Assign dp-intf aliases Date: Thu, 20 Apr 2023 11:44:30 +0200 Message-Id: <20230420094433.42794-3-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230420094433.42794-1-angelogioacchino.delregno@collabora.com> References: <20230420094433.42794-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-20230420_024448_983085_803B519B X-CRM114-Status: UNSURE ( 9.45 ) 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 Cherry boards, the IP at 0x1c015000 (dp_intf0) is used as primary dp-intf, while the other at 0x1c113000 (dp_intf1) is used as secondary: assign them to dp-intf{0,1} aliases respectively. Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi b/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi index 0820e9ba3829..918380697a9a 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi @@ -10,6 +10,8 @@ / { aliases { + dp-intf0 = &dp_intf0; + dp-intf1 = &dp_intf1; i2c0 = &i2c0; i2c1 = &i2c1; i2c2 = &i2c2; From patchwork Thu Apr 20 09:44:31 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: 13218244 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 54A84C77B73 for ; Thu, 20 Apr 2023 09:45:53 +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=wdO+OcHn3DLYcQuMe3tIqST2qjte/enCA8HC1IK3DZQ=; b=uSnXqM2MGEa3F6 fqsbKzXwSjuKjA9XEqmd1Ut1vIWcBPTvZKqF2AEDAj2T33zXcy+KTKiR6OktpPjMfEBRCBm6v76sx G+Xxx7hl6BL/VROXNuZh0WDiKjEGQdc0riZo67jKQAtFfaBfrOGaI/NdptXpSTloHipQS1gdId0qN Iq1xsK+7ERAHuOL8WN44Oj79eF+50mHcI2Ff3p7VhcrQDct4yzVuysBmW3r+zsXE6nUNlZJJUrjNg m0Gkdw6NRPro6tSziiX1Pe+dgfc095hl/citP0rclfyBiGnOz9nx6hLqZbe6jQI0+eFmzGW3aYrlZ JqnA7QZDMi+avDxIa4HA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1ppQqk-007ZXx-13; Thu, 20 Apr 2023 09:45:10 +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 1ppQqP-007ZO4-1e; Thu, 20 Apr 2023 09:44:51 +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 6B514660326A; Thu, 20 Apr 2023 10:44:46 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1681983887; bh=fC1d8huFvPOOCW64+wcCniknUVcXFTC03FCZg2pqhtw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZBhwgTosEEVyMRd/PfHblTVCBMZCItX0xFo8dyPJxD/t2veFZ0KIncrUT/m1Ng7x4 Zcjs7F7US6oCH54PwAE86mZx7Vlj2Fe0UudxO4ssmZmgtqaOixgaINt8zokeXorNTV fEV9FtPe9Fc8kfM7PrjsfrZOc/ZRpmkaNsFSP+agyun1CJsshWA9vjkVyrB7D2A/bv PMVijfFWYkKJyy5UOtMAo7QfLmXKS4sXEfIIxhqdcSERIKdosWQRkKNAohDZRjMyov 2fQVn1+J0cWZFjRdmq1YAXGzbu/xX0y7KUm7BG3CO+YeIKmjUOEsBwG44yBrDGG5AR SIFHJZJJlsUzA== 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 3/5] arm64: dts: mediatek: cherry: Configure eDP and internal display Date: Thu, 20 Apr 2023 11:44:31 +0200 Message-Id: <20230420094433.42794-4-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230420094433.42794-1-angelogioacchino.delregno@collabora.com> References: <20230420094433.42794-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-20230420_024449_695932_61D0C3D4 X-CRM114-Status: UNSURE ( 9.37 ) 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 918380697a9a..46f1c8091498 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi @@ -49,6 +49,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"; @@ -290,6 +302,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>; + }; }; }; }; @@ -929,6 +955,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 Thu Apr 20 09:44:32 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: 13218245 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 CFF6DC77B78 for ; Thu, 20 Apr 2023 09:45:58 +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=JqZbdmZyZ4XqcDqmXxRfUzikqVqHdUPF/4nW7IoxDvs=; b=NeDuZFnsRWUrhA wexFHasiDrZ+Wi0QZGkvBU08623Ofx9lGMnlsnhu7/2yo8AJPI0xVkLDr4Naqwa7+GDOhyfgvnXyO ApPzajDl/9tQTa8qC4Wbv8kiFvmlGyUoZ3R7i8BvOQGhkdixlPpHyC4D9dAAKfhpoUM3XAbICLNeR TLbEP5+Qp8hNtL4XiKM3/FSb5kYxJCJE3OmZXm7LlkQiNCREZPH74IWX4BQ6Q+7S29Fzdp9rgJTqt DKXtP5TSGDdgBJZSL1e5jZZOXn0eFNn1Pb3o+AaguCZIci/cKBId5N5HJ4zhrtOFEOsqsIZyq4vwX 0X2lcUxoS6bEjcTd9VPA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1ppQql-007ZYo-1x; Thu, 20 Apr 2023 09:45:11 +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 1ppQqO-007ZO9-2n; Thu, 20 Apr 2023 09:44:51 +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 24D7866032AA; Thu, 20 Apr 2023 10:44:47 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1681983887; bh=eTPRbfdJLpoEovWoX9DFmWEwQag9cVc/gZKE80xSx8o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EPcMTMMTPEKj7UALYhV/RuKy/DVHmACu/w3/QLiIQtaLqq6cvKauICdVEvF9G9FXn zveAEUZ0Wcskp/hXOQMFDr4AmO08BIWq0XrFoEV11JxbP+75k3EFSgWJ++qqdTxYrP n4PNjHCh8QBxJ3JO9ncNmOyTwpVJDcHRDJ3EviNSJIylW1jka3q38n1xgBIojFWflo Zzs2nre7OU5BsDCzqgRyAs3bHjh1vGUXFO1d5uC60vLbFMMvvodhnMmRoJiFwU3RwT 4LhK52kfGdMpL4BdHREU+bUjxaQZBkyN+wH4HC2/Jnuo0cGssoMchkCmbVjMovwLWw hD2Tuy9PRyFkQ== 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 4/5] arm64: dts: mediatek: cherry: Enable PCI-Express ports for WiFi Date: Thu, 20 Apr 2023 11:44:32 +0200 Message-Id: <20230420094433.42794-5-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230420094433.42794-1-angelogioacchino.delregno@collabora.com> References: <20230420094433.42794-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-20230420_024449_031594_A9DB888B X-CRM114-Status: UNSURE ( 9.30 ) 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 --- .../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 46f1c8091498..9e2bc363c9cd 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi @@ -567,6 +567,13 @@ flash@0 { }; }; +&pcie1 { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&pcie1_pins_default>; +}; + &pio { mediatek,rsel-resistance-in-si-unit; pinctrl-names = "default"; @@ -961,6 +968,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 = ; From patchwork Thu Apr 20 09:44:33 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: 13218246 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 62C03C77B73 for ; Thu, 20 Apr 2023 09:46:06 +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=d8LhcJ19TrmxWXkOqObK/NBrV0X6UJV1VkMLMhNaA5A=; b=qPSUWEXfXqQB4T bBOtG0d3P3Yr3t3to6LfSU8Ku0+F2YXR5yMT8iPdGWNTBDSPAw/JWknFlQdLZ3X8gcEeLOALVDeHZ NIUp1jndjDybIPpXfMJx/iwmJv/Ha/orPyQv/0ZGiHUF4Lqt4mZXvtDnzs/BkQM4QXP9iGHy8BLvu S7BL/myAz/xIbCl/CtGSUqOYeN/nn1O4lPsuQuBf9IRXPbWgFU8qlJucN3aoJ2DCJV//XwruD179A nXR+NJiIDokWuBb1LMglSmbKjteBWfr0hLb5Ix72poegOkgYgvAn30KkA3JEcJNUSnJYis6qHgttY 9Nq2ldUbAf0Heu/UoE4w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1ppQqx-007Zg5-0H; Thu, 20 Apr 2023 09:45:23 +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 1ppQqR-007ZPZ-0O; Thu, 20 Apr 2023 09:44:52 +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 D498666032C3; Thu, 20 Apr 2023 10:44:47 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1681983888; bh=Yqz9hxxQpWZLM7rhN5aHeOJGmtYVI7oPhYrdCY62XwY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fzbdLfM1L2lDA4EF69I31/GpYjSqkZ8Yewgd7Ym3oQbNgU017Ezx+R1FN0DZTMfw8 GIh0PF8dBPEYGc0ujaEeoPgULCWknjDfMaNO1BNV1So1LxgOFxQPxfyilG3m40EiTd Kg+Tne0YZowKPFJzng/zaRpGS+z4fvFQdj08sQ+tzsd/Udrwz8JYgHJI9TdI+gnxDX bHs8DKZ/7W/idXhbDBMpD1k4lGedjnXATxFqIEwhBGm56Xv3RY7rKnwmOm8N6Dx2nf g32GlXMl90pIm8u8oAZ7rp/xEKsIpZiGqqOHDB1P4mBRuuqmwyX8ZshQmR1s3ATOyy BIMBtKTbGjFfQ== 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 5/5] arm64: dts: mediatek: cherry-tomato-r1: Enable NVMe PCI-Express port Date: Thu, 20 Apr 2023 11:44:33 +0200 Message-Id: <20230420094433.42794-6-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230420094433.42794-1-angelogioacchino.delregno@collabora.com> References: <20230420094433.42794-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-20230420_024451_305996_F621680B X-CRM114-Status: UNSURE ( 8.72 ) 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 Tomato rev1 the PCIe0 controller is used for NVMe storage. Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt8195-cherry-tomato-r1.dts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195-cherry-tomato-r1.dts b/arch/arm64/boot/dts/mediatek/mt8195-cherry-tomato-r1.dts index 2d5e8f371b6d..11fc83ddf236 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195-cherry-tomato-r1.dts +++ b/arch/arm64/boot/dts/mediatek/mt8195-cherry-tomato-r1.dts @@ -20,6 +20,13 @@ &sound { model = "mt8195_r1019_5682"; }; +&pcie0 { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&pcie0_pins_default>; +}; + &ts_10 { status = "okay"; };