From nobody Thu Dec 18 20:19:15 2025 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2E1C381728 for ; Mon, 6 Jan 2025 16:06:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736179616; cv=none; b=VSVh+i9PBmQ4Evt9SU5MDgxeZeYbaV9RpAhCtuPLOoTwq7TT+7pbkH1k2DCDd7L+e66GqGHUEwyOFXrVwAuh+Af4Jy3EC6apIkU10KOl4VFUTLZvZ8i461UVOfOzktMdoZQ0+BLikHwfubQ5sj91zwuJqdac/DLlEPlK7mR5xhk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736179616; c=relaxed/simple; bh=E2qzko7QZTu2JxRtirtjJik5ENY/WrUhn32zQ+3cu34=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=g7Q/rAkyGUj4vKfhUIM0nQeIbxvozVkEKTynWwLB1VjY8IvlCASGb9j+hwuZefgV6VqC5kfcSuxcJLwMl3105tfdoEHvr9t0VZox31RlPDAfs7zNlLlHU1RvHnju7kl1H6f0bbq92RMtXWDLcdMmS4IwmakHyD1exszidnNroog= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tUpcx-0000C3-KF; Mon, 06 Jan 2025 17:06:51 +0100 Received: from dude05.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::54]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tUpcw-007C9k-0k; Mon, 06 Jan 2025 17:06:51 +0100 Received: from localhost ([::1] helo=dude05.red.stw.pengutronix.de) by dude05.red.stw.pengutronix.de with esmtp (Exim 4.96) (envelope-from ) id 1tUpcw-009dVc-32; Mon, 06 Jan 2025 17:06:50 +0100 From: Ahmad Fatoum Date: Mon, 06 Jan 2025 17:06:36 +0100 Subject: [PATCH v2 01/10] arm64: dts: imx8mp-skov: correct PMIC board limits Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250106-skov-dt-updates-v2-1-4504d3f00ecb@pengutronix.de> References: <20250106-skov-dt-updates-v2-0-4504d3f00ecb@pengutronix.de> In-Reply-To: <20250106-skov-dt-updates-v2-0-4504d3f00ecb@pengutronix.de> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Oleksij Rempel Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, Frank Li , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, Ahmad Fatoum X-Mailer: b4 0.14.2 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: a.fatoum@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org The PMIC voltage constraints in the device tree currently describe the permissible range of the PMIC. This is unnecessary as this information already exists in the driver and wrong as it doesn't account for board-specific constraints, e.g. a 2.1V on VDD_SOC would fry the SoC and a maximum voltage of 3.4V on the VDD_3V3 rail may be unexpected across the board. Fix this by adjusting constraints to reflect the board limits. Fixes: 6d382d51d979 ("arm64: dts: freescale: Add SKOV IMX8MP CPU revB board= ") Signed-off-by: Ahmad Fatoum --- v1 -> v2: - no change --- .../arm64/boot/dts/freescale/imx8mp-skov-reva.dtsi | 24 +++++++++++-------= ---- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-skov-reva.dtsi b/arch/arm= 64/boot/dts/freescale/imx8mp-skov-reva.dtsi index 59813ef8e2bb3a3d5672ba1c5776cf0e45fb6862..ae82166b5c266a96441809958c5= 6b6c8a7ef5e3d 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-skov-reva.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp-skov-reva.dtsi @@ -247,8 +247,8 @@ reg_vdd_soc: BUCK1 { =20 reg_vdd_arm: BUCK2 { regulator-name =3D "VDD_ARM"; - regulator-min-microvolt =3D <600000>; - regulator-max-microvolt =3D <2187500>; + regulator-min-microvolt =3D <850000>; + regulator-max-microvolt =3D <1000000>; vin-supply =3D <®_5v_p>; regulator-boot-on; regulator-always-on; @@ -259,8 +259,8 @@ reg_vdd_arm: BUCK2 { =20 reg_vdd_3v3: BUCK4 { regulator-name =3D "VDD_3V3"; - regulator-min-microvolt =3D <600000>; - regulator-max-microvolt =3D <3400000>; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; vin-supply =3D <®_5v_p>; regulator-boot-on; regulator-always-on; @@ -268,8 +268,8 @@ reg_vdd_3v3: BUCK4 { =20 reg_vdd_1v8: BUCK5 { regulator-name =3D "VDD_1V8"; - regulator-min-microvolt =3D <600000>; - regulator-max-microvolt =3D <3400000>; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; vin-supply =3D <®_5v_p>; regulator-boot-on; regulator-always-on; @@ -277,8 +277,8 @@ reg_vdd_1v8: BUCK5 { =20 reg_nvcc_dram_1v1: BUCK6 { regulator-name =3D "NVCC_DRAM_1V1"; - regulator-min-microvolt =3D <600000>; - regulator-max-microvolt =3D <3400000>; + regulator-min-microvolt =3D <1100000>; + regulator-max-microvolt =3D <1100000>; vin-supply =3D <®_5v_p>; regulator-boot-on; regulator-always-on; @@ -286,8 +286,8 @@ reg_nvcc_dram_1v1: BUCK6 { =20 reg_nvcc_snvs_1v8: LDO1 { regulator-name =3D "NVCC_SNVS_1V8"; - regulator-min-microvolt =3D <1600000>; - regulator-max-microvolt =3D <3300000>; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; vin-supply =3D <®_5v_p>; regulator-boot-on; regulator-always-on; @@ -295,8 +295,8 @@ reg_nvcc_snvs_1v8: LDO1 { =20 reg_vdda_1v8: LDO3 { regulator-name =3D "VDDA_1V8"; - regulator-min-microvolt =3D <800000>; - regulator-max-microvolt =3D <3300000>; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; vin-supply =3D <®_5v_p>; regulator-boot-on; regulator-always-on; --=20 2.39.5 From nobody Thu Dec 18 20:19:15 2025 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4BE9D182D2 for ; Mon, 6 Jan 2025 16:06:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736179617; cv=none; b=CRkknKInK7lP8xuqj3LlqzgkhVHQ6/ba34Cov40jmxCgMCFa3XDFwrPVzEeWm3z6/Ul+0yp2n6gO1XEzEcFDJ0stjmtOxBQb4FVTGOalucbMas9Y6LyZ+dSYxST6TNo1jtV1A9r0u6bL/5N6ylXhbOQT4qGYds7vmHnCuHjdKHs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736179617; c=relaxed/simple; bh=epyeyFWrPSKFrbyQDj9Jy9cDAw40zu4ax9Vb5wnxX/Q=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=knVV1pG/SLf21pve6In/qWxkQK7G0sgQSyiYjGcPkKUsSucyhBCOfLKpiLS946UQI9wpTlP6hzDIP423VTjCRtu8GmRcawfGZmkSlD8HVhRU36aZSeyuGAk1oIFLxLZGzyr8EOs/YQRKNGNoP7V56x6Vb594CMh9QS3KbDjuCRc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tUpcx-0000C4-KB; Mon, 06 Jan 2025 17:06:51 +0100 Received: from dude05.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::54]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tUpcw-007C9m-0u; Mon, 06 Jan 2025 17:06:51 +0100 Received: from localhost ([::1] helo=dude05.red.stw.pengutronix.de) by dude05.red.stw.pengutronix.de with esmtp (Exim 4.96) (envelope-from ) id 1tUpcw-009dVc-33; Mon, 06 Jan 2025 17:06:50 +0100 From: Ahmad Fatoum Date: Mon, 06 Jan 2025 17:06:37 +0100 Subject: [PATCH v2 02/10] arm64: dts: imx8mp-skov: operate CPU at 850 mV by default Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250106-skov-dt-updates-v2-2-4504d3f00ecb@pengutronix.de> References: <20250106-skov-dt-updates-v2-0-4504d3f00ecb@pengutronix.de> In-Reply-To: <20250106-skov-dt-updates-v2-0-4504d3f00ecb@pengutronix.de> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Oleksij Rempel Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, Frank Li , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, Ahmad Fatoum X-Mailer: b4 0.14.2 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: a.fatoum@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org The Skov i.MX8MP boards are passively cooled and heatsink is specced for continuous operation at 1.2 GHz only. Short bouts of 1.6 GHz are ok, but these should be invoked intentionally, not as part of suspend/resume cycles. Therefore, configure RUN frequency as 850 mV and remove the higher voltage operating points from those permissible for suspend. Fixes: 6d382d51d979 ("arm64: dts: freescale: Add SKOV IMX8MP CPU revB board= ") Signed-off-by: Ahmad Fatoum --- v1 -> v2: - no change --- arch/arm64/boot/dts/freescale/imx8mp-skov-reva.dtsi | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-skov-reva.dtsi b/arch/arm= 64/boot/dts/freescale/imx8mp-skov-reva.dtsi index ae82166b5c266a96441809958c56b6c8a7ef5e3d..7ae686d37ddaca7a323e2cb1ec7= d807c2e3bd3f5 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-skov-reva.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp-skov-reva.dtsi @@ -163,6 +163,19 @@ reg_vsd_3v3: regulator-vsd-3v3 { }; }; =20 +/* + * Board is passively cooled and heatsink is specced for continuous operat= ion + * at 1.2 GHz only. Short bouts of 1.6 GHz are ok, but these should be done + * intentionally, not as part of suspend/resume cycles. + */ +&{/opp-table/opp-1600000000} { + /delete-property/ opp-suspend; +}; + +&{/opp-table/opp-1800000000} { + /delete-property/ opp-suspend; +}; + &A53_0 { cpu-supply =3D <®_vdd_arm>; }; @@ -253,7 +266,7 @@ reg_vdd_arm: BUCK2 { regulator-boot-on; regulator-always-on; regulator-ramp-delay =3D <3125>; - nxp,dvs-run-voltage =3D <950000>; + nxp,dvs-run-voltage =3D <850000>; nxp,dvs-standby-voltage =3D <850000>; }; =20 --=20 2.39.5 From nobody Thu Dec 18 20:19:15 2025 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9F085161321 for ; Mon, 6 Jan 2025 16:07:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736179632; cv=none; b=USXHzRaPZqYxJi2bp/PsqIEdS80kuFg+cT8rpXrXN3jwSE8UhVyypnd7GKFOQv7HX6FzsG6YAPxJdB0VYI9IET0vaMZ+ZyY/JIX5EmH1D9e1gHYzO3/c1tGF7Whnq2NnGmdtXyGw/70kM8IQs2zuI3PRXm8/TT2Kwhq9TV3RVMc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736179632; c=relaxed/simple; bh=EU9qni+9kj2/BSp6QJ7cQAb3mXr+ZwEsDc7gJwrsMB0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=UUIRaaRUPsO9MRjRpWsFbQz1VNwyrm5+Sy5Gf5xrnEA644zWA/+ttiOwgxOD+3UVV/MTCSKJ1yd38B2zSGrWoFdw01fmhYNV14OqnjIo17zVxivKtRX6DtjlI/oYOKxYD3ug+nJGmfOzo9DBV7jK8/Yg44LCvtunoxb7/0wYlfo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tUpcx-0000C6-KC; Mon, 06 Jan 2025 17:06:51 +0100 Received: from dude05.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::54]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tUpcw-007C9n-0y; Mon, 06 Jan 2025 17:06:51 +0100 Received: from localhost ([::1] helo=dude05.red.stw.pengutronix.de) by dude05.red.stw.pengutronix.de with esmtp (Exim 4.96) (envelope-from ) id 1tUpcw-009dVc-34; Mon, 06 Jan 2025 17:06:50 +0100 From: Ahmad Fatoum Date: Mon, 06 Jan 2025 17:06:38 +0100 Subject: [PATCH v2 03/10] arm64: dts: imx8mp-skov: use I2C5 for DDC Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250106-skov-dt-updates-v2-3-4504d3f00ecb@pengutronix.de> References: <20250106-skov-dt-updates-v2-0-4504d3f00ecb@pengutronix.de> In-Reply-To: <20250106-skov-dt-updates-v2-0-4504d3f00ecb@pengutronix.de> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Oleksij Rempel Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, Frank Li , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, Ahmad Fatoum X-Mailer: b4 0.14.2 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: a.fatoum@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org The HDMI DDC pads can be muxed either to an i.MX I2C controller or to a limited I2C controller within the Designware HDMI bridge. So far, the pads were muxed to the HDMI bridge, but the i.MX I2C controller is the better choice: - The Designware HDMI I2C controller doesn't support multi-byte requests and the Linux driver refuses[1] transfers to/from address 0x37, but these are required for display/brightness configuration, - The driver doesn't support I2C bus recovery, but some HDMI panels used with the board can be flaky and require it. As the i.MX I2C controller and driver don't have either of these limitations, let's make use of it instead. [1]: https://lore.kernel.org/all/20190722181945.244395-1-mka@chromium.org/ Signed-off-by: Ahmad Fatoum --- v1 -> v2: - use passive voice instead of "we" (Frank) --- .../boot/dts/freescale/imx8mp-skov-revb-hdmi.dts | 26 ++++++++++++++++++= ++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-skov-revb-hdmi.dts b/arch= /arm64/boot/dts/freescale/imx8mp-skov-revb-hdmi.dts index c1ca69da3cb8edf5424b727e3ba8bb74affe8e93..206116be816662349ef5b54e288= b945f171f5637 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-skov-revb-hdmi.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-skov-revb-hdmi.dts @@ -9,12 +9,34 @@ / { compatible =3D "skov,imx8mp-skov-revb-hdmi", "fsl,imx8mp"; }; =20 +&i2c5 { + pinctrl-names =3D "default", "gpio"; + pinctrl-0 =3D <&pinctrl_i2c5>; + pinctrl-1 =3D <&pinctrl_i2c5_gpio>; + scl-gpios =3D <&gpio3 26 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + sda-gpios =3D <&gpio3 27 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + clock-frequency =3D <100000>; + status =3D "okay"; +}; + &iomuxc { pinctrl_hdmi: hdmigrp { fsl,pins =3D < - MX8MP_IOMUXC_HDMI_DDC_SCL__HDMIMIX_HDMI_SCL 0x1c3 - MX8MP_IOMUXC_HDMI_DDC_SDA__HDMIMIX_HDMI_SDA 0x1c3 MX8MP_IOMUXC_HDMI_HPD__HDMIMIX_HDMI_HPD 0x19 >; }; + + pinctrl_i2c5: i2c5grp { + fsl,pins =3D < + MX8MP_IOMUXC_HDMI_DDC_SCL__I2C5_SCL 0x400001c2 + MX8MP_IOMUXC_HDMI_DDC_SDA__I2C5_SDA 0x400001c2 + >; + }; + + pinctrl_i2c5_gpio: i2c5gpiogrp { + fsl,pins =3D < + MX8MP_IOMUXC_HDMI_DDC_SCL__GPIO3_IO26 0x400001c2 + MX8MP_IOMUXC_HDMI_DDC_SDA__GPIO3_IO27 0x400001c2 + >; + }; }; --=20 2.39.5 From nobody Thu Dec 18 20:19:15 2025 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 24D8213E02D for ; Mon, 6 Jan 2025 16:07:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736179624; cv=none; b=DmL7C1aooLw0Ya44FTYn/WX8KW1dM86LF2cL8Q9ldpH/4giQs9Q8F9jbhmtUYg7Ztw+I0tfkIFdRt2A7r8sqCq5U2IRofu6XR4UA0eL5YtSiCWMPzGzqRraHTTkH9ckAmnBh6ZAAgqYOkGr+BdGq9u5ra5kgvqlgD6Ka+M6dhEc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736179624; c=relaxed/simple; bh=H9lawugqoEDWMIMX1/H4erCBUAn5FVPqkxgTgCG/iog=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=EYaboa2xzDGqXk6rgfmwzSMaW3KczmSl6xo3uW0clgqO65Qgos2lhIfJWRRbRr/uGnWo6Z+unpbwuOfK4timpQ5wx9+HA3Q8LDrTqvaq9wvchdQMv9b90nqsnxIFlefAhah+U3Ty9L1s+ePZ1gSOBDOuT/1j0WVmGinIsTxhylo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tUpcx-0000C5-KD; Mon, 06 Jan 2025 17:06:51 +0100 Received: from dude05.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::54]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tUpcw-007C9o-0y; Mon, 06 Jan 2025 17:06:51 +0100 Received: from localhost ([::1] helo=dude05.red.stw.pengutronix.de) by dude05.red.stw.pengutronix.de with esmtp (Exim 4.96) (envelope-from ) id 1tUpcw-009dVc-35; Mon, 06 Jan 2025 17:06:50 +0100 From: Ahmad Fatoum Date: Mon, 06 Jan 2025 17:06:39 +0100 Subject: [PATCH v2 04/10] arm64: dts: imx8mp-skov: describe HDMI display pipeline Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250106-skov-dt-updates-v2-4-4504d3f00ecb@pengutronix.de> References: <20250106-skov-dt-updates-v2-0-4504d3f00ecb@pengutronix.de> In-Reply-To: <20250106-skov-dt-updates-v2-0-4504d3f00ecb@pengutronix.de> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Oleksij Rempel Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, Frank Li , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, Ahmad Fatoum X-Mailer: b4 0.14.2 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: a.fatoum@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org From: Oleksij Rempel Back when this device tree was first added, there were no i.MX8MP HDMI bindings upstream yet. This has changed now, so let's use them to describe the HDMI on the imx8mp-skov-revb-hdmi board. Signed-off-by: Oleksij Rempel Signed-off-by: Ahmad Fatoum --- v1 -> v2: - no change --- .../boot/dts/freescale/imx8mp-skov-revb-hdmi.dts | 19 +++++++++++++++= ++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-skov-revb-hdmi.dts b/arch= /arm64/boot/dts/freescale/imx8mp-skov-revb-hdmi.dts index 206116be816662349ef5b54e288b945f171f5637..32a429437cbdbd153e6efb2bff6= cd16e20ecb423 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-skov-revb-hdmi.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-skov-revb-hdmi.dts @@ -9,6 +9,21 @@ / { compatible =3D "skov,imx8mp-skov-revb-hdmi", "fsl,imx8mp"; }; =20 +&hdmi_pvi { + status =3D "okay"; +}; + +&hdmi_tx { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_hdmi>; + ddc-i2c-bus =3D <&i2c5>; + status =3D "okay"; +}; + +&hdmi_tx_phy { + status =3D "okay"; +}; + &i2c5 { pinctrl-names =3D "default", "gpio"; pinctrl-0 =3D <&pinctrl_i2c5>; @@ -19,6 +34,10 @@ &i2c5 { status =3D "okay"; }; =20 +&lcdif3 { + status =3D "okay"; +}; + &iomuxc { pinctrl_hdmi: hdmigrp { fsl,pins =3D < --=20 2.39.5 From nobody Thu Dec 18 20:19:15 2025 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EC9561598EE for ; Mon, 6 Jan 2025 16:07:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736179634; cv=none; b=n+urE+zyRmRE9zdD1x++jQauHeoxq0TeDQ1YFmNC5XcGO3kwkfYSmh6oMp6Sns+8mhaJD87+CckDapEUbERW+vBvuafOxQyE1Nvbt07IDbPlvwerJ+PE7oQVSBjSDOp5vBFkVWwRNsJzHA5Uk7fby5RMkRZhrkmYBiJeE3l7Xyw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736179634; c=relaxed/simple; bh=C7FNz4bjGX8W6Y8+SP4qiXkv0DABRuqMs0gDxZoTTE8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=QuTbubMNPm32Vf9AuS7xWukrFPOypVA+mTnCK2V287SAcfmkt6wxs+Abhi3p6D8AjDthNw8k6b41y1AgUmfvSOfT1/uQSp18jlI3eTojsRiW+xh8e57l8PYQUce8dffNqXwUu21DezefQtSXUsVojwgl20eOMgHytux86Fh5ne0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tUpcy-0000CC-Gl; Mon, 06 Jan 2025 17:06:52 +0100 Received: from dude05.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::54]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tUpcw-007C9p-1C; Mon, 06 Jan 2025 17:06:51 +0100 Received: from localhost ([::1] helo=dude05.red.stw.pengutronix.de) by dude05.red.stw.pengutronix.de with esmtp (Exim 4.96) (envelope-from ) id 1tUpcw-009dVc-36; Mon, 06 Jan 2025 17:06:50 +0100 From: Ahmad Fatoum Date: Mon, 06 Jan 2025 17:06:40 +0100 Subject: [PATCH v2 05/10] dt-bindings: display/lvds-codec: add ti,sn65lvds822 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250106-skov-dt-updates-v2-5-4504d3f00ecb@pengutronix.de> References: <20250106-skov-dt-updates-v2-0-4504d3f00ecb@pengutronix.de> In-Reply-To: <20250106-skov-dt-updates-v2-0-4504d3f00ecb@pengutronix.de> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Oleksij Rempel Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, Frank Li , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, Ahmad Fatoum , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , "open list:DRM DRIVERS" X-Mailer: b4 0.14.2 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: a.fatoum@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Add compatible strings for TI SN65LVDS822, a FlatLink LVDS receiver. Acked-by: Rob Herring (Arm) Signed-off-by: Ahmad Fatoum --- v1 -> v2: - Add Rob's Acked-by To: Andrzej Hajda (maintainer:DRM DRIVERS FOR BRI= DGE CHIPS) To: Neil Armstrong (maintainer:DRM DRIVERS FOR = BRIDGE CHIPS) To: Robert Foss (maintainer:DRM DRIVERS FOR BRIDGE CHIPS) Cc: Laurent Pinchart (reviewer:DRM DRIV= ERS FOR BRIDGE CHIPS,in file) Cc: Jonas Karlman (reviewer:DRM DRIVERS FOR BRIDGE CHIPS) Cc: Jernej Skrabec (reviewer:DRM DRIVERS FOR BRI= DGE CHIPS) Cc: David Airlie (maintainer:DRM DRIVERS) Cc: Simona Vetter (maintainer:DRM DRIVERS) Cc: Maarten Lankhorst (maintainer:DRM D= RIVERS AND MISC GPU PATCHES) Cc: Maxime Ripard (maintainer:DRM DRIVERS AND MISC GPU= PATCHES) Cc: Thomas Zimmermann (maintainer:DRM DRIVERS AND MIS= C GPU PATCHES) Cc: dri-devel@lists.freedesktop.org (open list:DRM DRIVERS) --- Documentation/devicetree/bindings/display/bridge/lvds-codec.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/bridge/lvds-codec.ya= ml b/Documentation/devicetree/bindings/display/bridge/lvds-codec.yaml index 6ceeed76e88ece6d86ecd6588ead7a65362dfe62..0487bbffd7f7c4bcce3f71df195= 48d601715fb98 100644 --- a/Documentation/devicetree/bindings/display/bridge/lvds-codec.yaml +++ b/Documentation/devicetree/bindings/display/bridge/lvds-codec.yaml @@ -41,6 +41,7 @@ properties: - enum: - ti,ds90cf364a # For the DS90CF364A FPD-Link LVDS Receiver - ti,ds90cf384a # For the DS90CF384A FPD-Link LVDS Receiver + - ti,sn65lvds822 # For the SN65LVDS822 FlatLink LVDS Receiv= er - ti,sn65lvds94 # For the SN65DS94 LVDS serdes - const: lvds-decoder # Generic LVDS decoders compatible fallback - enum: --=20 2.39.5 From nobody Thu Dec 18 20:19:15 2025 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0ACC37405A for ; Mon, 6 Jan 2025 16:06:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736179616; cv=none; b=EnQZdTmEQqZaTGJ8EnmxpaWVF1hy4bj0HVgDXRA47UULopBr6X+zjHwLL00/6paFy7vcDJmpGYRJYbT/YZdeFxhREFdWJoTp8LL99U6sAnHvyG85lxjNPLLHdxmycnha3GEBUkNiDIb9l8UlTB6JvFybzSYe7hXfBUmVACskzq4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736179616; c=relaxed/simple; bh=l6/9Vqw1emu1jQpxNZdRIm5sMDQtGVO72rssA420oUg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=OX998nA2Rflg59dYk/Ph9PK2YsJQdXxvrD3tL0O0qpK+II+VFUdvcuwtSUx1bzNSkGzqfAxZCg6L16fg3ZGROMs4kHCPIGQauA97Maa5JXBb61JRqzTTFghG7MBlWflYe/noYWQ3q0I0f0UHwwa4IjIYWuiEciXzPxWZyshBv40= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tUpcx-0000C9-KB; Mon, 06 Jan 2025 17:06:51 +0100 Received: from dude05.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::54]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tUpcw-007C9q-14; Mon, 06 Jan 2025 17:06:51 +0100 Received: from localhost ([::1] helo=dude05.red.stw.pengutronix.de) by dude05.red.stw.pengutronix.de with esmtp (Exim 4.96) (envelope-from ) id 1tUpcw-009dVc-37; Mon, 06 Jan 2025 17:06:50 +0100 From: Ahmad Fatoum Date: Mon, 06 Jan 2025 17:06:41 +0100 Subject: [PATCH v2 06/10] arm64: dts: imx8mp-skov: describe LVDS display pipeline Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250106-skov-dt-updates-v2-6-4504d3f00ecb@pengutronix.de> References: <20250106-skov-dt-updates-v2-0-4504d3f00ecb@pengutronix.de> In-Reply-To: <20250106-skov-dt-updates-v2-0-4504d3f00ecb@pengutronix.de> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Oleksij Rempel Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, Frank Li , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, Ahmad Fatoum X-Mailer: b4 0.14.2 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: a.fatoum@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org From: Oleksij Rempel The Skov i.MX8MP LT6 device tree so far described the touch screen, but didn't describe the screen itself. Fill out these missing pieces. Signed-off-by: Oleksij Rempel Signed-off-by: Ahmad Fatoum --- v1 -> v2: - no change --- .../boot/dts/freescale/imx8mp-skov-revb-lt6.dts | 60 ++++++++++++++++++= ++++ 1 file changed, 60 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-skov-revb-lt6.dts b/arch/= arm64/boot/dts/freescale/imx8mp-skov-revb-lt6.dts index ccbd3abedd69411d1f04e5aa765bcd1b0c2c403c..baecf768a2ee08a16c9333e8a1f= 20fbfef19f865 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-skov-revb-lt6.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-skov-revb-lt6.dts @@ -8,6 +8,45 @@ / { model =3D "SKOV IMX8MP CPU revB - LT6"; compatible =3D "skov,imx8mp-skov-revb-lt6", "fsl,imx8mp"; =20 + lvds-decoder { + compatible =3D "ti,sn65lvds822", "lvds-decoder"; + power-supply =3D <®_3v3>; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + + in_lvds1: endpoint { + data-mapping =3D "vesa-24"; + remote-endpoint =3D <&ldb_lvds_ch1>; + }; + }; + + port@1 { + reg =3D <1>; + + lvds_decoder_out: endpoint { + remote-endpoint =3D <&panel_in>; + }; + }; + }; + }; + + panel { + compatible =3D "logictechno,lttd800480070-l6wh-rt"; + backlight =3D <&backlight>; + power-supply =3D <®_tft_vcom>; + + port { + panel_in: endpoint { + remote-endpoint =3D <&lvds_decoder_out>; + }; + }; + }; + touchscreen { compatible =3D "resistive-adc-touch"; io-channels =3D <&adc_ts 1>, <&adc_ts 3>, <&adc_ts 4>, <&adc_ts 5>; @@ -78,6 +117,27 @@ channel@5 { }; }; =20 +&lcdif2 { + status =3D "okay"; +}; + +&lvds_bridge { + assigned-clocks =3D <&clk IMX8MP_CLK_MEDIA_LDB>, + <&clk IMX8MP_VIDEO_PLL1>; + assigned-clock-parents =3D <&clk IMX8MP_VIDEO_PLL1_OUT>; + /* IMX8MP_VIDEO_PLL1 =3D IMX8MP_CLK_MEDIA_DISP2_PIX * 2 * 7 */ + assigned-clock-rates =3D <0>, <462000000>; + status =3D "okay"; + + ports { + port@2 { + ldb_lvds_ch1: endpoint { + remote-endpoint =3D <&in_lvds1>; + }; + }; + }; +}; + &pwm1 { status =3D "okay"; }; --=20 2.39.5 From nobody Thu Dec 18 20:19:15 2025 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 463C4145A03 for ; Mon, 6 Jan 2025 16:07:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736179624; cv=none; b=iX7fxGlp0Sg6Uu67SNRJWijmF62Gs81w8540Rt0Csl/il4ZnUto6EOviK7J7uh/Xf7NJUkyiITQATHGdeHbtNm427sUFpo/8iLwAtVwRYDlyKC5zECt0KciTiV6GQiYIO1UiBEJrB6cQK1389pXeyIKQ0LOge6VTKcvrrA5nzg4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736179624; c=relaxed/simple; bh=7XJyjwJekst9RLsz+ASk9YMPGOqrwKg8GSByujmuqoM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=j4zrGehRf96B9XSkOOWxUJriCvLQLD3KPFG1zNEV3YJzMXTldUWk11Ft6vzWQhmkdvgAOPRUm7KTlBw0Mtn2g5faGvTuCGNzFlUAypajViQfhkVVQfLI6rn6yj5hgOHVoCxILrjbcwmk1yEaw7CKPK16TyjVmIv1xX7uJ+HJg0A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tUpcx-0000C8-KC; Mon, 06 Jan 2025 17:06:51 +0100 Received: from dude05.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::54]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tUpcw-007C9r-15; Mon, 06 Jan 2025 17:06:51 +0100 Received: from localhost ([::1] helo=dude05.red.stw.pengutronix.de) by dude05.red.stw.pengutronix.de with esmtp (Exim 4.96) (envelope-from ) id 1tUpcw-009dVc-38; Mon, 06 Jan 2025 17:06:50 +0100 From: Ahmad Fatoum Date: Mon, 06 Jan 2025 17:06:42 +0100 Subject: [PATCH v2 07/10] arm64: dts: imx8mp-skov: configure uart1 for RS485 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250106-skov-dt-updates-v2-7-4504d3f00ecb@pengutronix.de> References: <20250106-skov-dt-updates-v2-0-4504d3f00ecb@pengutronix.de> In-Reply-To: <20250106-skov-dt-updates-v2-0-4504d3f00ecb@pengutronix.de> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Oleksij Rempel Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, Frank Li , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, Ahmad Fatoum X-Mailer: b4 0.14.2 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: a.fatoum@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org uart1 TX, RX and RTS signals go off the base board and to a RS485 transceiver. Describe this in the device tree. Signed-off-by: Ahmad Fatoum --- v1 -> v2: - no change --- arch/arm64/boot/dts/freescale/imx8mp-skov-reva.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-skov-reva.dtsi b/arch/arm= 64/boot/dts/freescale/imx8mp-skov-reva.dtsi index 7ae686d37ddaca7a323e2cb1ec7d807c2e3bd3f5..bce23d62cd277b89ec9ce5ed365= 1cfe787987158 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-skov-reva.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp-skov-reva.dtsi @@ -404,6 +404,13 @@ &uart1 { pinctrl-names =3D "default"; pinctrl-0 =3D <&pinctrl_uart1>; status =3D "okay"; + /* + * While there is no CTS line, the property "uart-has-rtscts" is still + * the right thing to do to enable the UART to do RS485. In RS485-Mode + * CTS isn't used anyhow and there is no dedicated property + * "uart-has-rts-but-no-cts". + */ + uart-has-rtscts; }; =20 &uart2 { @@ -618,6 +625,8 @@ pinctrl_uart1: uart1grp { MX8MP_IOMUXC_UART1_RXD__UART1_DCE_RX 0x140 MX8MP_IOMUXC_UART1_TXD__UART1_DCE_TX 0x140 MX8MP_IOMUXC_UART3_RXD__UART1_DTE_RTS 0x140 + /* CTS pin is not connected, but needed as workaround */ + MX8MP_IOMUXC_UART3_TXD__UART1_DTE_CTS 0x140 >; }; =20 --=20 2.39.5 From nobody Thu Dec 18 20:19:15 2025 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B1581DACBB for ; Mon, 6 Jan 2025 16:07:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736179641; cv=none; b=MyUCberx/2AldPP+syBb2fv7Fh7hvI8vvIzWzNbF9b0fkN972oEKS8UmugsOoKGYnCMtzHwbE2SmjRk9gdCnm1/nw74jpVNDeb5G9GeVirWEtBvMoFabIGO6FN43kA5kP87qwwHHesrIzPNXnnFr63VauERvezlYBQTX6d1SFSc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736179641; c=relaxed/simple; bh=C451IDPs2diiR6Jobe/SheJ2I89XLWctnX9fEv/gyl4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=QwdfXoqItgP8zX0SKuqoVmJy19L21ioh7CjKL6oaiJ6AUS7MHUldydIyfFLCkm+cFqMjE9+2HLqtMAPtLCbs2LbBdkpMumpMwqd7Iymi8xOI5yOAkHMaqJHA07sX1p9Hc46GM71Gh9vG46O/9G9EwEKd/Y8pQupqUg/UUPTR3rE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tUpcx-0000CA-KD; Mon, 06 Jan 2025 17:06:51 +0100 Received: from dude05.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::54]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tUpcw-007C9s-17; Mon, 06 Jan 2025 17:06:51 +0100 Received: from localhost ([::1] helo=dude05.red.stw.pengutronix.de) by dude05.red.stw.pengutronix.de with esmtp (Exim 4.96) (envelope-from ) id 1tUpcw-009dVc-39; Mon, 06 Jan 2025 17:06:50 +0100 From: Ahmad Fatoum Date: Mon, 06 Jan 2025 17:06:43 +0100 Subject: [PATCH v2 08/10] arm64: dts: imx8mp-skov: describe mains fail detection Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250106-skov-dt-updates-v2-8-4504d3f00ecb@pengutronix.de> References: <20250106-skov-dt-updates-v2-0-4504d3f00ecb@pengutronix.de> In-Reply-To: <20250106-skov-dt-updates-v2-0-4504d3f00ecb@pengutronix.de> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Oleksij Rempel Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, Frank Li , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, Ahmad Fatoum X-Mailer: b4 0.14.2 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: a.fatoum@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org From: Oleksij Rempel The main 24V regulator will toggle GPIO4_IO23 to signal imminent voltage loss. Reflect this in the DT, so the OS can take appropriate action when this happens. Signed-off-by: Oleksij Rempel Signed-off-by: Ahmad Fatoum --- v1 -> v2: - no change --- arch/arm64/boot/dts/freescale/imx8mp-skov-reva.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-skov-reva.dtsi b/arch/arm= 64/boot/dts/freescale/imx8mp-skov-reva.dtsi index bce23d62cd277b89ec9ce5ed3651cfe787987158..80d212acc0c33af0b2a812e0b03= b36dbb6b3b3fd 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-skov-reva.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp-skov-reva.dtsi @@ -116,6 +116,11 @@ reg_24v: regulator-24v { regulator-name =3D "24V"; regulator-min-microvolt =3D <24000000>; regulator-max-microvolt =3D <24000000>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_reg24v>; + interrupts-extended =3D <&gpio4 23 IRQ_TYPE_EDGE_FALLING>; + system-critical-regulator; + regulator-uv-less-critical-window-ms =3D <50>; }; =20 reg_can2rs: regulator-can2rs { @@ -591,6 +596,12 @@ MX8MP_IOMUXC_SAI3_MCLK__PWM4_OUT 0x116 >; }; =20 + pinctrl_reg24v: reg24vgrp { + fsl,pins =3D < + MX8MP_IOMUXC_SAI2_RXD0__GPIO4_IO23 0x154 + >; + }; + pinctrl_reg_vsd_3v3: regvsd3v3grp { fsl,pins =3D < MX8MP_IOMUXC_SD2_RESET_B__GPIO2_IO19 0x40 --=20 2.39.5 From nobody Thu Dec 18 20:19:15 2025 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DB6F21581F0 for ; Mon, 6 Jan 2025 16:07:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736179632; cv=none; b=VSnd7KoEuIEeq4FtjCC3RBLau5n70xbkqfYqK9DKncZ5OqmvjvPbUCkUIlEilN5IVNWiOfVcSpfW/hDDHdwiHLDRrTItlXoJ0xdZAd8qkVQDTuM2WMfIpqcUT+ogPK2Nvnt932dYaQu7ocQDDmzp1230XJArXV/QJKuQEydcnm8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736179632; c=relaxed/simple; bh=8eLyGTFPIWON0AfJ0+yanZQGGg1BWYIr3cBwibhSELI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qDIdQd17kZTPnVZHoody+AT85+mrrhuMEzMVn58RmdG6bL7CPAxLL+py7g7XkIE7uwIDHX7X/4XpR6Tu5EOL7ja+xLqDCYwbfxpkg8NKoa3ljQrNDogZ59LzjGMULStcWFIIBlzNFHeYUTA2Cq1uCDUL1o76e/wp/F7hf7Mhwlw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tUpcx-0000CB-KC; Mon, 06 Jan 2025 17:06:51 +0100 Received: from dude05.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::54]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tUpcw-007C9t-17; Mon, 06 Jan 2025 17:06:51 +0100 Received: from localhost ([::1] helo=dude05.red.stw.pengutronix.de) by dude05.red.stw.pengutronix.de with esmtp (Exim 4.96) (envelope-from ) id 1tUpcw-009dVc-3A; Mon, 06 Jan 2025 17:06:50 +0100 From: Ahmad Fatoum Date: Mon, 06 Jan 2025 17:06:44 +0100 Subject: [PATCH v2 09/10] arm64: dts: imx8mp-skov: fix phy-mode Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250106-skov-dt-updates-v2-9-4504d3f00ecb@pengutronix.de> References: <20250106-skov-dt-updates-v2-0-4504d3f00ecb@pengutronix.de> In-Reply-To: <20250106-skov-dt-updates-v2-0-4504d3f00ecb@pengutronix.de> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Oleksij Rempel Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, Frank Li , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, Ahmad Fatoum X-Mailer: b4 0.14.2 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: a.fatoum@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org From: Oleksij Rempel Use rgmii-rxid instead of rgmii-txid. It should have no effect here, because we have a fixed-link, but rxid reflects the board design. Signed-off-by: Oleksij Rempel Signed-off-by: Ahmad Fatoum --- v1 -> v2: - explain why no functional change is expected --- arch/arm64/boot/dts/freescale/imx8mp-skov-reva.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-skov-reva.dtsi b/arch/arm= 64/boot/dts/freescale/imx8mp-skov-reva.dtsi index 80d212acc0c33af0b2a812e0b03b36dbb6b3b3fd..a683f46fcbab62f320bad4ab47b= 4112071fc24e0 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-skov-reva.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp-skov-reva.dtsi @@ -215,7 +215,7 @@ adc: adc@0 { &eqos { pinctrl-names =3D "default"; pinctrl-0 =3D <&pinctrl_eqos>; - phy-mode =3D "rgmii-txid"; + phy-mode =3D "rgmii-rxid"; status =3D "okay"; =20 fixed-link { --=20 2.39.5 From nobody Thu Dec 18 20:19:15 2025 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2F05E6CDBA for ; Mon, 6 Jan 2025 16:35:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736181337; cv=none; b=gQ8h52vk9D8/xtdModzVQqWXKVYwsFj4j9ZvmkccgHPZPEhSyQRtop9fkrRQwYxJL3O10NfAWYBZKuKlrcEk8z9tex2ZY8Z8XSEiUKml1TXPd2EODEaE7VhWCDn7fb4C5Wirbh8yAayhaidxQRwwS+QUqJd0J+fGaM1cBbK8kls= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736181337; c=relaxed/simple; bh=in/z8g2Ac44opiYTTol7sIqWrE35PwhsaVcluuD5KU4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JVG2Y5xWQ2CLNEmYzIN3kzAQL6tJ6V4sHbWup+vltf3Msqz+AhrQbz7ujZMzIOCo9rL4JE9Ip0GxBFON2ASfNYJprvpowMV6IwPHo4t8WidTZ29aFnf6t++eA3aag8+4d6trRDxulxVRkSsHh51rZm15komrJr1hob2jGb+r0LU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tUq4h-0005wh-7W; Mon, 06 Jan 2025 17:35:31 +0100 Received: from dude05.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::54]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tUq4f-007CTI-33; Mon, 06 Jan 2025 17:35:30 +0100 Received: from localhost ([::1] helo=dude05.red.stw.pengutronix.de) by dude05.red.stw.pengutronix.de with esmtp (Exim 4.96) (envelope-from ) id 1tUpcw-009dVc-3B; Mon, 06 Jan 2025 17:06:50 +0100 From: Ahmad Fatoum Date: Mon, 06 Jan 2025 17:06:45 +0100 Subject: [PATCH v2 10/10] arm64: dts: imx8mp-skov: increase I2C clock frequency for RTC Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250106-skov-dt-updates-v2-10-4504d3f00ecb@pengutronix.de> References: <20250106-skov-dt-updates-v2-0-4504d3f00ecb@pengutronix.de> In-Reply-To: <20250106-skov-dt-updates-v2-0-4504d3f00ecb@pengutronix.de> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Oleksij Rempel Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, Frank Li , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, Ahmad Fatoum X-Mailer: b4 0.14.2 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: a.fatoum@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org From: Oleksij Rempel The NXP PCF85063TP RTC is capable of 400 kHz of SCL clock frequency, so use that instead of the current 100 kHz. Signed-off-by: Oleksij Rempel Signed-off-by: Ahmad Fatoum --- v1 -> v2: - shortened commit message a bit. (Frank) --- arch/arm64/boot/dts/freescale/imx8mp-skov-reva.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-skov-reva.dtsi b/arch/arm= 64/boot/dts/freescale/imx8mp-skov-reva.dtsi index a683f46fcbab62f320bad4ab47b4112071fc24e0..ec7857db7bf02d60b3993ee223a= 55d413b783d52 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-skov-reva.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp-skov-reva.dtsi @@ -333,7 +333,7 @@ reg_nvcc_sd2: LDO5 { }; =20 &i2c3 { - clock-frequency =3D <100000>; + clock-frequency =3D <400000>; pinctrl-names =3D "default"; pinctrl-0 =3D <&pinctrl_i2c3>; status =3D "okay"; --=20 2.39.5