From nobody Sat Nov 23 14:52:55 2024 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 BFF771C9ED4 for ; Tue, 19 Nov 2024 11:35:15 +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=1732016117; cv=none; b=J5+WLZMKzNNBNYvi+VO3MPr107LWnv/73M1uviLZm8WLqQy1MgjaqYHCfAc1uQohyKd8EWLQbati93HAa3NWpGzgEggEzZXT72qzdDfiPBBhptRM97H10NqgglDTqQpeSe9cVFOBboLv5fwZiFuTFOL+ePBBsJO8jbUei5I3tdc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732016117; c=relaxed/simple; bh=+4IDQSK4i3obdYQmYdlnswzo0H/KGhodu2StCIGA9as=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BNC1P0ATpprK7iv+AZwG1G6BkGLjmY+leQ1aslt/chvD050BkVIBkGfe8FE8d5JD5e1xg3SNB0pT9XJV3TQvOEglWvd5o0dFtIwYFMAbur2RKCtoByRx7BYCb075EOnbYgynagmh8XHrCcS/kqk0YTvq9H/KHVtnRs0V118HlWA= 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 1tDMVm-0004i8-1t for linux-kernel@vger.kernel.org; Tue, 19 Nov 2024 12:35:14 +0100 Received: from moin.white.stw.pengutronix.de ([2a0a:edc0:0:b01:1d::7b] helo=bjornoya.blackshift.org) 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 1tDMVl-001Yfc-0j for linux-kernel@vger.kernel.org; Tue, 19 Nov 2024 12:35:13 +0100 Received: from dspam.blackshift.org (localhost [127.0.0.1]) by bjornoya.blackshift.org (Postfix) with SMTP id C95E937706F for ; Tue, 19 Nov 2024 11:35:12 +0000 (UTC) Received: from hardanger.blackshift.org (unknown [172.20.34.65]) (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) (Client did not present a certificate) by bjornoya.blackshift.org (Postfix) with ESMTPS id B201E377033; Tue, 19 Nov 2024 11:35:09 +0000 (UTC) Received: from [172.20.34.65] (localhost [::1]) by hardanger.blackshift.org (OpenSMTPD) with ESMTP id 4f931d1b; Tue, 19 Nov 2024 11:35:09 +0000 (UTC) From: Marc Kleine-Budde Date: Tue, 19 Nov 2024 12:34:58 +0100 Subject: [PATCH 1/6] ARM: dts: stm32: lxa-tac: disable the real time clock 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: <20241119-lxa-tac-gen3-v1-1-e0ab0a369372@pengutronix.de> References: <20241119-lxa-tac-gen3-v1-0-e0ab0a369372@pengutronix.de> In-Reply-To: <20241119-lxa-tac-gen3-v1-0-e0ab0a369372@pengutronix.de> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue Cc: kernel@pengutronix.de, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Marc Kleine-Budde , =?utf-8?q?Leonard_G=C3=B6hrs?= X-Mailer: b4 0.15-dev-355e8 X-Developer-Signature: v=1; a=openpgp-sha256; l=1022; i=mkl@pengutronix.de; h=from:subject:message-id; bh=po5CXcX3jorgEXwSQF/93cCwkgDI9gDb0IppJ1bPcSQ=; b=owGbwMvMwMWoYbHIrkp3Tz7jabUkhnSb8ifKwh2t2t95JF/NOiVsmDzJJaurfZq0psCp1pUiK fX9bzs6GY1ZGBi5GGTFFFkCHHa1PdjGcldzj108zCBWJpApDFycAjARQ3H2/0496Sxz/1U363W8 6/p/9lbhvDXSPgKHPNuDG/fLpp2rX6Z/smzbNu3H32ztYoo5tp0/dbbVR/jt7QoGD1ZtuX+uscs t416ciDmj9//coivNxvNqRJ8V+/TJZix+GxNhrr3scfY/yWlHchpkovy/Kaz7yLJOQ+WhzPr1f+ KzOf1zpkjsO7Lzk0dbyf38oKgVJXoehfuOxr5g+OmySOGcpN3nifNbN/c+uBItzNmSOnHdnY2vX j1cKZrHKVoc3Tylavd9wTPR1vmPtswQOOXEKtJpZG/LyJBqcKfBas/5Yi6rf3O4pXqr5FVXfGXK uyrbYLZjX4cwB/ufv/u2iXdZLhPun1kZXyChXfjrx8lTAA== X-Developer-Key: i=mkl@pengutronix.de; a=openpgp; fpr=C1400BA0B3989E6FBC7D5B5C2B5EE211C58AEA54 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: mkl@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: Leonard G=C3=B6hrs The RTC was enabled under the false assumption that the SoM already contains a suitable 32.768 kHz crystal. It does however not contain such a crystal and since none is fitted externally to the SoM the RTC can not be used on the hardware. Reflect that in the devicetree. Signed-off-by: Leonard G=C3=B6hrs Signed-off-by: Marc Kleine-Budde --- arch/arm/boot/dts/st/stm32mp15xc-lxa-tac.dtsi | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/arm/boot/dts/st/stm32mp15xc-lxa-tac.dtsi b/arch/arm/boot/= dts/st/stm32mp15xc-lxa-tac.dtsi index c87fd96cbd91897bb724a235689e425f7dbf39f6..abe4c7fe7678f2801683e0995da= dbfecce434e81 100644 --- a/arch/arm/boot/dts/st/stm32mp15xc-lxa-tac.dtsi +++ b/arch/arm/boot/dts/st/stm32mp15xc-lxa-tac.dtsi @@ -379,10 +379,6 @@ regulators { }; }; =20 -&rtc { - status =3D "okay"; -}; - &sdmmc2 { pinctrl-names =3D "default", "opendrain", "sleep"; pinctrl-0 =3D <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_b>; --=20 2.45.2 From nobody Sat Nov 23 14:52:55 2024 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 C2A1C1C9ED7 for ; Tue, 19 Nov 2024 11:35:15 +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=1732016117; cv=none; b=Rgj+05X4bGHEYxVBb4vzN+Gd/ij3EKdQo+gfl2RxIlKClVHReTYj+i2UA1TobVtxtg1AuQRbyRSw45P3NSKR67nkNsTc9GNfmaFwW3zsgFcHqjBhoGlBeZFX+jzhqpOeb2Qyna8hV5ZwAZdQaXb50biDGFC4neEwUk8SnFC0zsI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732016117; c=relaxed/simple; bh=Mk8G16aTCF9gycyq+j18Ot1XKcgH973eLuowgb6XDcU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=h/N/0jBlTfTHWZ6ZJvq87MIez/vKAxX4+FcMZgWmkazy75vVGfbIKQw4jtENHYYk8t/fbHSVOEO5kvpodH7KGRriMn0IDWnb1la9bx2+DbWRz12XIcUF1LMFx5Tk6ANFMCtUzu88C1KYch3BYPlwXSk0aNT6NtKARV5WCu5gomw= 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 1tDMVm-0004iO-5Q for linux-kernel@vger.kernel.org; Tue, 19 Nov 2024 12:35:14 +0100 Received: from moin.white.stw.pengutronix.de ([2a0a:edc0:0:b01:1d::7b] helo=bjornoya.blackshift.org) 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 1tDMVl-001Yfq-1A for linux-kernel@vger.kernel.org; Tue, 19 Nov 2024 12:35:13 +0100 Received: from dspam.blackshift.org (localhost [127.0.0.1]) by bjornoya.blackshift.org (Postfix) with SMTP id 13893377073 for ; Tue, 19 Nov 2024 11:35:13 +0000 (UTC) Received: from hardanger.blackshift.org (unknown [172.20.34.65]) (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) (Client did not present a certificate) by bjornoya.blackshift.org (Postfix) with ESMTPS id CFA0D377035; Tue, 19 Nov 2024 11:35:09 +0000 (UTC) Received: from [172.20.34.65] (localhost [::1]) by hardanger.blackshift.org (OpenSMTPD) with ESMTP id 6601b311; Tue, 19 Nov 2024 11:35:09 +0000 (UTC) From: Marc Kleine-Budde Date: Tue, 19 Nov 2024 12:34:59 +0100 Subject: [PATCH 2/6] ARM: dts: stm32: lxa-tac: extend the alias table 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: <20241119-lxa-tac-gen3-v1-2-e0ab0a369372@pengutronix.de> References: <20241119-lxa-tac-gen3-v1-0-e0ab0a369372@pengutronix.de> In-Reply-To: <20241119-lxa-tac-gen3-v1-0-e0ab0a369372@pengutronix.de> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue Cc: kernel@pengutronix.de, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Marc Kleine-Budde , =?utf-8?q?Leonard_G=C3=B6hrs?= X-Mailer: b4 0.15-dev-355e8 X-Developer-Signature: v=1; a=openpgp-sha256; l=1146; i=mkl@pengutronix.de; h=from:subject:message-id; bh=4/0nP6y039SdOp5+OOU7PlcTIP04z82jYwEbyNDvpjM=; b=owEBbQGS/pANAwAKASg4oj56LbxvAcsmYgBnPHfmcPHax0Degh2+FdA7T9xZcMkb5yvqAREbe ZeoVU9z3OeJATMEAAEKAB0WIQRQQLqG4LYE3Sm8Pl8oOKI+ei28bwUCZzx35gAKCRAoOKI+ei28 b8jCB/wIKQpO5H7/AStDUmRAXNbzh+Z1Ng3wVpPv8z9yDOsbw0acb7kZ+h0xjdYH3JNEU5U+RcD rvvRj+D8foe59+27NWoyKAA1a5jWzDNogKluwXv+E75rceFWHOAk+H3fG8bR4jco9yp9PxXc8n6 OeS4lf+yRcoEVl1QP42+bBeWNU5Q+OXERlZ3C9CHB8SHdpV4mPqvS1zwSEOxhRRImic2iz2UdzR qzJIOdsxBxHL2vNXEnovyKIDcj8XdDivyOWm7ZdvSWhbZpVm4Wopo6wfC71PaIM+g1AYHNv9HO5 WB5LcO2zB7UEm2wh3MO75xVaSrGiRwXYCF422WsYBufx1aDG X-Developer-Key: i=mkl@pengutronix.de; a=openpgp; fpr=C1400BA0B3989E6FBC7D5B5C2B5EE211C58AEA54 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: mkl@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: Leonard G=C3=B6hrs Some of the userspace software and tests depend on the can/i2c/spi devices having the same name on every boot. This may not always be the case based on e.g. parallel probe order. Assign static device numbers to all can/i2c/spi devices. Signed-off-by: Leonard G=C3=B6hrs Signed-off-by: Marc Kleine-Budde --- arch/arm/boot/dts/st/stm32mp15xc-lxa-tac.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/st/stm32mp15xc-lxa-tac.dtsi b/arch/arm/boot/= dts/st/stm32mp15xc-lxa-tac.dtsi index abe4c7fe7678f2801683e0995dadbfecce434e81..a97708423ec8f2ee2c471b07ff9= dfac19e605b3b 100644 --- a/arch/arm/boot/dts/st/stm32mp15xc-lxa-tac.dtsi +++ b/arch/arm/boot/dts/st/stm32mp15xc-lxa-tac.dtsi @@ -16,12 +16,20 @@ =20 / { aliases { + can0 =3D &m_can1; + can1 =3D &m_can2; ethernet0 =3D ðernet0; ethernet1 =3D &port_uplink; ethernet2 =3D &port_dut; + i2c0 =3D &i2c1; + i2c1 =3D &i2c4; + i2c2 =3D &i2c5; mmc1 =3D &sdmmc2; serial0 =3D &uart4; serial1 =3D &usart3; + spi0 =3D &spi2; + spi1 =3D &spi4; + spi2 =3D &spi5; }; =20 chosen { --=20 2.45.2 From nobody Sat Nov 23 14:52:55 2024 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 2A86A1C9ED8 for ; Tue, 19 Nov 2024 11:35:15 +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=1732016117; cv=none; b=TIiDfNAv5Ic+USq9r4W/ZXHKw5SH926DQ2FhwG9RSwyT1LAo6sKc/xzL8dNlySeaqWJpPZQ/UgGex6a2rZ1S2gBwc6PkKQCjanzIVtazpeWSe8IHg5OsZpBpSrMCDT3ViRXXt7TFsTAno/UYCjP1bi4NDT4Zbvp65NkyPobJvWU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732016117; c=relaxed/simple; bh=r6guT239clBkd/pX1+4jQQlLUgD7iiqQrOKyFLV+ZH8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=eXXIERrgPXpEJGSySz5EjoXHSvNbxbpdxkw2ijJBHgMoX3zm8ggwPKlYfgASN8UJ3F7/dRPjPYOqetJlWlGYXzRQCcKZR8oZRMgjQvBu+EN7/ga5DEjXLwHJFKagQu03EWpiMW/kSbLHexOq72UeHhfYFH86FoCdZj2ew6ngoeA= 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 1tDMVm-0004ib-Bg for linux-kernel@vger.kernel.org; Tue, 19 Nov 2024 12:35:14 +0100 Received: from moin.white.stw.pengutronix.de ([2a0a:edc0:0:b01:1d::7b] helo=bjornoya.blackshift.org) 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 1tDMVl-001Yfv-1J for linux-kernel@vger.kernel.org; Tue, 19 Nov 2024 12:35:13 +0100 Received: from dspam.blackshift.org (localhost [127.0.0.1]) by bjornoya.blackshift.org (Postfix) with SMTP id 1C54E377075 for ; Tue, 19 Nov 2024 11:35:13 +0000 (UTC) Received: from hardanger.blackshift.org (unknown [172.20.34.65]) (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) (Client did not present a certificate) by bjornoya.blackshift.org (Postfix) with ESMTPS id F29DA377036; Tue, 19 Nov 2024 11:35:09 +0000 (UTC) Received: from [172.20.34.65] (localhost [::1]) by hardanger.blackshift.org (OpenSMTPD) with ESMTP id c96e1107; Tue, 19 Nov 2024 11:35:09 +0000 (UTC) From: Marc Kleine-Budde Date: Tue, 19 Nov 2024 12:35:00 +0100 Subject: [PATCH 3/6] ARM: dts: stm32: lxa-tac: adjust USB gadget fifo sizes for multi function 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: <20241119-lxa-tac-gen3-v1-3-e0ab0a369372@pengutronix.de> References: <20241119-lxa-tac-gen3-v1-0-e0ab0a369372@pengutronix.de> In-Reply-To: <20241119-lxa-tac-gen3-v1-0-e0ab0a369372@pengutronix.de> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue Cc: kernel@pengutronix.de, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Marc Kleine-Budde , =?utf-8?q?Leonard_G=C3=B6hrs?= X-Mailer: b4 0.15-dev-355e8 X-Developer-Signature: v=1; a=openpgp-sha256; l=897; i=mkl@pengutronix.de; h=from:subject:message-id; bh=lUNKFRhW2UkaCb89yA9/rUW4JI9Xi4k+6AExYcnVVQo=; b=owEBbQGS/pANAwAKASg4oj56LbxvAcsmYgBnPHfnm9EuEwt/tRjFfIpjwQLdKwYSVtGSwEc4T INmRMDHYBSJATMEAAEKAB0WIQRQQLqG4LYE3Sm8Pl8oOKI+ei28bwUCZzx35wAKCRAoOKI+ei28 b7VnCACKzGe+WQG3WTzwPAJ8bAvxWc0tn9KthZ6HijeH8YGh3eY2g0+dkNbiwbC30Kht6kSM4wH 5bjigA6PKRkuNXk8GtlIr4IFN9jSRxXcER+mhkjqKRR0wo4GYDI2/G/69vjq+RDfCnj1/HEGo9l Q2N3IuOjB8TcqSbdYwTOUMuUC6v+SqFPP1g4MuIgUjiDHU5IU1z99ooCsJpH/ASF1G116e2SkrP ujCcRSsgDJ974klH+qgKEkMHyEf7RutseXpdGeN0I6VJjUDEeC4AoF3tkFuSlSqTMlqkrpP0tyu 8YWauqDNYKq/cP0uCbcB9G8Ac9vldsuBe62Z/gpC78URh4/d X-Developer-Key: i=mkl@pengutronix.de; a=openpgp; fpr=C1400BA0B3989E6FBC7D5B5C2B5EE211C58AEA54 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: mkl@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: Leonard G=C3=B6hrs Allow providing the Ethernet and mass storage functions on the USB peripheral port at the same time. Signed-off-by: Leonard G=C3=B6hrs Signed-off-by: Marc Kleine-Budde --- arch/arm/boot/dts/st/stm32mp15xc-lxa-tac.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/st/stm32mp15xc-lxa-tac.dtsi b/arch/arm/boot/= dts/st/stm32mp15xc-lxa-tac.dtsi index a97708423ec8f2ee2c471b07ff9dfac19e605b3b..d9b9d611a41e8b4ca35ab771d26= fdf9067d73814 100644 --- a/arch/arm/boot/dts/st/stm32mp15xc-lxa-tac.dtsi +++ b/arch/arm/boot/dts/st/stm32mp15xc-lxa-tac.dtsi @@ -580,6 +580,10 @@ &usbotg_hs { vusb_d-supply =3D <&vdd_usb>; vusb_a-supply =3D <®18>; =20 + g-rx-fifo-size =3D <512>; + g-np-tx-fifo-size =3D <32>; + g-tx-fifo-size =3D <128 128 64 16 16 16 16 16>; + dr_mode =3D "peripheral"; =20 status =3D "okay"; --=20 2.45.2 From nobody Sat Nov 23 14:52:55 2024 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 6A3FA1C9EDA for ; Tue, 19 Nov 2024 11:35:16 +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=1732016117; cv=none; b=e1GTPUIhGt38wO4emSh0sDczGqZzebTIOXUs9Q/oFGw1uLtIVW8bfhpnLj8podnb34S50YyjtNCTmnHkPRwa4mFjxzR8uZ2yg07Na6nvSU9UZ1sq14N6pPAlQ5jMG4qWPwwFFPSXRp8CQKqrL54p0s1jCFC9UmXPxV1FOw5achY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732016117; c=relaxed/simple; bh=wqPg+2zGzXMOE7v3iue5M5sKKAsqwvM8FLNeVDTaVvs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=GCzNkEGq08cTa2AyIqb+vjea3InINEapxgS1Nbpk3Y6eHP6gE8CFhgPl1oextyzPItYkvo/+vg5TBCPh4/AYxhtzq9ZVV5+YgVvXHRRya/zESlKNu5uvbXQziKwpleAtqWYJpLW+WeQYWiN90vfo3+g3BJ6KMMjeE4ySx+3XvVE= 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 1tDMVm-0004ie-F0 for linux-kernel@vger.kernel.org; Tue, 19 Nov 2024 12:35:14 +0100 Received: from moin.white.stw.pengutronix.de ([2a0a:edc0:0:b01:1d::7b] helo=bjornoya.blackshift.org) 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 1tDMVl-001Yfw-1N for linux-kernel@vger.kernel.org; Tue, 19 Nov 2024 12:35:13 +0100 Received: from dspam.blackshift.org (localhost [127.0.0.1]) by bjornoya.blackshift.org (Postfix) with SMTP id 1FC22377076 for ; Tue, 19 Nov 2024 11:35:13 +0000 (UTC) Received: from hardanger.blackshift.org (unknown [172.20.34.65]) (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) (Client did not present a certificate) by bjornoya.blackshift.org (Postfix) with ESMTPS id 1EBD5377039; Tue, 19 Nov 2024 11:35:10 +0000 (UTC) Received: from [172.20.34.65] (localhost [::1]) by hardanger.blackshift.org (OpenSMTPD) with ESMTP id b585d42b; Tue, 19 Nov 2024 11:35:09 +0000 (UTC) From: Marc Kleine-Budde Date: Tue, 19 Nov 2024 12:35:01 +0100 Subject: [PATCH 4/6] dt-bindings: arm: stm32: add compatible strings for Linux Automation LXA TAC gen 3 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: <20241119-lxa-tac-gen3-v1-4-e0ab0a369372@pengutronix.de> References: <20241119-lxa-tac-gen3-v1-0-e0ab0a369372@pengutronix.de> In-Reply-To: <20241119-lxa-tac-gen3-v1-0-e0ab0a369372@pengutronix.de> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue Cc: kernel@pengutronix.de, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Marc Kleine-Budde , =?utf-8?q?Leonard_G=C3=B6hrs?= X-Mailer: b4 0.15-dev-355e8 X-Developer-Signature: v=1; a=openpgp-sha256; l=1353; i=mkl@pengutronix.de; h=from:subject:message-id; bh=OiGyC5hvkOyfhSJPitFX+JtgXZ73YWwikIJiBbUL5vE=; b=owEBbQGS/pANAwAKASg4oj56LbxvAcsmYgBnPHfo83L1ffukhGKoWDoL8tjex0fmM2FuiA8BB 3HMT7tDq/WJATMEAAEKAB0WIQRQQLqG4LYE3Sm8Pl8oOKI+ei28bwUCZzx36AAKCRAoOKI+ei28 b1XbCACWy17HQEJrXpAgn2wESy57lQ66WicbSnsYR9JWSmBp2ZxM9zyZ7dRca3v6b+4ddvmO2Io 4l29BCkVvVMG2JHxWGL/6D0J6S2U2FiXNJT6vM1LOIzI3DWkjyt/zRArP3n+3095Tc43mKVl3rk DNLwzLYAVGWVgj0QbGaDiVmA9F4vHBxrEpAbwmBKDy9QYLd9qGaH2rjrHIkaz19EN/TL937XsiX NUDSoTydcE9hpbMKGAQ4DPxWqwr3AztBZObadH2/VyxJAwxEDgCd4Nq/zTzOCdWHubNpkykicTC qY2zYnaf/+alLbFoU3BPWPqc4XXlGQ0+sL+wBPjmuC+mhdcN X-Developer-Key: i=mkl@pengutronix.de; a=openpgp; fpr=C1400BA0B3989E6FBC7D5B5C2B5EE211C58AEA54 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: mkl@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: Leonard G=C3=B6hrs The Linux Automation LXA TAC generation 3 is built around an OSD32MP153x SiP with CPU, RAM, PMIC, Oscillator and EEPROM. LXA TACs are a development tool for embedded devices with a focus on embedded Linux devices. Add compatible for the generation 3 based on the STM32MP153c. Signed-off-by: Leonard G=C3=B6hrs Signed-off-by: Marc Kleine-Budde Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/arm/stm32/stm32.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/stm32/stm32.yaml b/Docum= entation/devicetree/bindings/arm/stm32/stm32.yaml index 703d4b574398d2768924df8d4bd844e486aa5abf..b6c56d4ce6b9515565fc0534889= 6ba9f400643f0 100644 --- a/Documentation/devicetree/bindings/arm/stm32/stm32.yaml +++ b/Documentation/devicetree/bindings/arm/stm32/stm32.yaml @@ -91,6 +91,13 @@ properties: - const: dh,stm32mp153c-dhcor-som - const: st,stm32mp153 =20 + - description: Octavo OSD32MP153 System-in-Package based boards + items: + - enum: + - lxa,stm32mp153c-tac-gen3 # Linux Automation TAC (Generatio= n 3) + - const: oct,stm32mp153x-osd32 + - const: st,stm32mp153 + - items: - enum: - shiratech,stm32mp157a-iot-box # IoT Box --=20 2.45.2 From nobody Sat Nov 23 14:52:55 2024 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 4EB781CB320 for ; Tue, 19 Nov 2024 11:35:18 +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=1732016120; cv=none; b=fViONcZf0DSxnaEZ+CHGVyGJ7dd31Hlh81GBEHWvyb7Ah8P32nV8e0MJtLXd8JpAIjcteRgAXkk5BUc03Ln4iiVLNpdTigT2Ut0afGhKwhAwF9OAl+rbJHEz9qcuX7VEJp97Yhjaee5DAW2IubNonm31Q+RMJw5iH6m3/INJ77E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732016120; c=relaxed/simple; bh=s2N+ztg8jK0LFtpDbiXc3T+AWMtBAHrlCjgS+OSEwdU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CsXCuA36oLOcegWQWLRgjEsgKOoazq2vFdmuVo96n9AC/Fo//e+yTo/5MCZkfuUmJydWdJOAAhCJtlxduNGnD69CJNO/0h9W9m/WcOxWTmrq/ozPjrl6770LPtixXEwnNEwzs6ifJPFhlxxEdOGhH53oFoc3+PdtSZQnT4ObnpQ= 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 1tDMVo-0004qE-N3 for linux-kernel@vger.kernel.org; Tue, 19 Nov 2024 12:35:16 +0100 Received: from moin.white.stw.pengutronix.de ([2a0a:edc0:0:b01:1d::7b] helo=bjornoya.blackshift.org) 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 1tDMVo-001Yhb-09 for linux-kernel@vger.kernel.org; Tue, 19 Nov 2024 12:35:16 +0100 Received: from dspam.blackshift.org (localhost [127.0.0.1]) by bjornoya.blackshift.org (Postfix) with SMTP id B3BC337708B for ; Tue, 19 Nov 2024 11:35:15 +0000 (UTC) Received: from hardanger.blackshift.org (unknown [172.20.34.65]) (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) (Client did not present a certificate) by bjornoya.blackshift.org (Postfix) with ESMTPS id 35FA537703A; Tue, 19 Nov 2024 11:35:10 +0000 (UTC) Received: from [172.20.34.65] (localhost [::1]) by hardanger.blackshift.org (OpenSMTPD) with ESMTP id 7f537fa4; Tue, 19 Nov 2024 11:35:09 +0000 (UTC) From: Marc Kleine-Budde Date: Tue, 19 Nov 2024 12:35:02 +0100 Subject: [PATCH 5/6] ARM: dts: stm32: lxa-tac: move adc and gpio{e,g} to gen{1,2} boards 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: <20241119-lxa-tac-gen3-v1-5-e0ab0a369372@pengutronix.de> References: <20241119-lxa-tac-gen3-v1-0-e0ab0a369372@pengutronix.de> In-Reply-To: <20241119-lxa-tac-gen3-v1-0-e0ab0a369372@pengutronix.de> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue Cc: kernel@pengutronix.de, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Marc Kleine-Budde , =?utf-8?q?Leonard_G=C3=B6hrs?= X-Mailer: b4 0.15-dev-355e8 X-Developer-Signature: v=1; a=openpgp-sha256; l=8181; i=mkl@pengutronix.de; h=from:subject:message-id; bh=ig6BCsBKQFpCyEcF4tbkV8vNcd8eG21E4UWiPLejmAI=; b=owEBbQGS/pANAwAKASg4oj56LbxvAcsmYgBnPHfqgq8h/6hnxm9tk1vEodwEkJjOstnJNXwln mnmbmG0VOOJATMEAAEKAB0WIQRQQLqG4LYE3Sm8Pl8oOKI+ei28bwUCZzx36gAKCRAoOKI+ei28 b5txCACBj29Dl2shsj6ZcG8uimwUYO5yzkpXuMyA7dBVaefsl1aj9EgkgmY61p7Bn55HM/4A3qJ a+2mCcOVgH7djUaaPqp8O4GSeMwdrajCGRyo9jb8EChsACL8apQn3X3oPizrqOGQK6eO1pGQE4b YfyUS19YqvWsQzlLTW+GqX3m0Rs8Dvg6clKCLErr4n169PzwcgMTyWaAAmj/VE4EmcpCisuDs5c eB7S/8tsd5rlSIQSFLgnHh5Qdzr+/tAHDMy9lMdJF6Zig358xL6ZXHp7+VCoeUsGb6o5dtcSADa wMY4WQrQrmHzyXcgn76S1/ggInOFB2+l4q9GMO1qZkuHrMjk X-Developer-Key: i=mkl@pengutronix.de; a=openpgp; fpr=C1400BA0B3989E6FBC7D5B5C2B5EE211C58AEA54 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: mkl@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: Leonard G=C3=B6hrs This is a preparation patch in order to add lxa-tac generation 3 board. As the gen3 board has a different adc and gpio{e,g} setups, move these from the stm32mp15xc-lxa-tac.dtsi to the gen{1,2}.dts files. Signed-off-by: Leonard G=C3=B6hrs Signed-off-by: Marc Kleine-Budde --- arch/arm/boot/dts/st/stm32mp157c-lxa-tac-gen1.dts | 84 +++++++++++++++++++= ++++ arch/arm/boot/dts/st/stm32mp157c-lxa-tac-gen2.dts | 84 +++++++++++++++++++= ++++ arch/arm/boot/dts/st/stm32mp15xc-lxa-tac.dtsi | 84 -------------------= ---- 3 files changed, 168 insertions(+), 84 deletions(-) diff --git a/arch/arm/boot/dts/st/stm32mp157c-lxa-tac-gen1.dts b/arch/arm/b= oot/dts/st/stm32mp157c-lxa-tac-gen1.dts index 81f254fb88b0aba915696d5b14e9a001baa66e67..e72e42eb0eb40efe480ae2c660b= c6d13e49b091e 100644 --- a/arch/arm/boot/dts/st/stm32mp157c-lxa-tac-gen1.dts +++ b/arch/arm/boot/dts/st/stm32mp157c-lxa-tac-gen1.dts @@ -35,6 +35,76 @@ reg_iobus_12v: regulator-iobus-12v { }; }; =20 +&adc { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&adc1_ain_pins_a>; + vdd-supply =3D <&vdd>; + vdda-supply =3D <&vdda>; + vref-supply =3D <&vrefbuf>; + status =3D "okay"; + + adc1: adc@0 { + st,adc-channels =3D <0 1 2 5 9 10 13 15>; + st,min-sample-time-nsecs =3D <5000>; + #address-cells =3D <1>; + #size-cells =3D <0>; + status =3D "okay"; + + channel@0 { + reg =3D <0>; + label =3D "HOST_2_CURR_FB"; + }; + + channel@1 { + reg =3D <1>; + label =3D "HOST_3_CURR_FB"; + }; + + channel@2 { + reg =3D <2>; + label =3D "OUT_0_FB"; + }; + + channel@5 { + reg =3D <5>; + label =3D "IOBUS_CURR_FB"; + }; + + channel@9 { + reg =3D <9>; + label =3D "IOBUS_VOLT_FB"; + }; + + channel@10 { + reg =3D <10>; + label =3D "OUT_1_FB"; + }; + + channel@13 { + reg =3D <13>; + label =3D "HOST_CURR_FB"; + }; + + channel@15 { + reg =3D <15>; + label =3D "HOST_1_CURR_FB"; + }; + }; + + adc2: adc@100 { + st,adc-channels =3D <12>; + st,min-sample-time-nsecs =3D <500000>; + #address-cells =3D <1>; + #size-cells =3D <0>; + status =3D "okay"; + + channel@12 { + reg =3D <12>; + label =3D "TEMP_INTERNAL"; + }; + }; +}; + &gpioa { gpio-line-names =3D "", "", "STACK_CS2", "", "STACK_CS3", /* 0 */ "ETH_GPIO1", "ETH_INT", "", "", "", /* 5 */ @@ -48,6 +118,20 @@ &gpioc { "", ""; /* 10 */ }; =20 +&gpioe { + gpio-line-names =3D "TP35", "", "", "", "CAN_1_120R", /* 0 */ + "", "", "USER_BTN2", "TP48", "UART_TX_EN", /* 5 */ + "UART_RX_EN", "TP24", "", "TP25", "TP26", /* 10 */ + "TP27"; /* 15 */ +}; + +&gpiog { + gpio-line-names =3D "ETH_RESET", "", "", "", "", /* 0 */ + "IOBUS_FLT_FB", "", "USER_LED2", "ETH1_PPS_A", "CAN_0_120R", /* 5 */ + "TP49", "", "", "", "", /* 10 */ + ""; /* 15 */ +}; + &gpu { status =3D "disabled"; }; diff --git a/arch/arm/boot/dts/st/stm32mp157c-lxa-tac-gen2.dts b/arch/arm/b= oot/dts/st/stm32mp157c-lxa-tac-gen2.dts index 4cc1770316619deb619326ffe3448502e2e4d7be..2ae281725a486a9ef0fd9e52dfd= b6a92e319c508 100644 --- a/arch/arm/boot/dts/st/stm32mp157c-lxa-tac-gen2.dts +++ b/arch/arm/boot/dts/st/stm32mp157c-lxa-tac-gen2.dts @@ -121,6 +121,76 @@ led-15 { }; }; =20 +&adc { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&adc1_ain_pins_a>; + vdd-supply =3D <&vdd>; + vdda-supply =3D <&vdda>; + vref-supply =3D <&vrefbuf>; + status =3D "okay"; + + adc1: adc@0 { + st,adc-channels =3D <0 1 2 5 9 10 13 15>; + st,min-sample-time-nsecs =3D <5000>; + #address-cells =3D <1>; + #size-cells =3D <0>; + status =3D "okay"; + + channel@0 { + reg =3D <0>; + label =3D "HOST_2_CURR_FB"; + }; + + channel@1 { + reg =3D <1>; + label =3D "HOST_3_CURR_FB"; + }; + + channel@2 { + reg =3D <2>; + label =3D "OUT_0_FB"; + }; + + channel@5 { + reg =3D <5>; + label =3D "IOBUS_CURR_FB"; + }; + + channel@9 { + reg =3D <9>; + label =3D "IOBUS_VOLT_FB"; + }; + + channel@10 { + reg =3D <10>; + label =3D "OUT_1_FB"; + }; + + channel@13 { + reg =3D <13>; + label =3D "HOST_CURR_FB"; + }; + + channel@15 { + reg =3D <15>; + label =3D "HOST_1_CURR_FB"; + }; + }; + + adc2: adc@100 { + st,adc-channels =3D <12>; + st,min-sample-time-nsecs =3D <500000>; + #address-cells =3D <1>; + #size-cells =3D <0>; + status =3D "okay"; + + channel@12 { + reg =3D <12>; + label =3D "TEMP_INTERNAL"; + }; + }; +}; + &gpioa { gpio-line-names =3D "", "", "DUT_PWR_EN", "", "STACK_CS3", /* 0 */ "ETH_GPIO1", "ETH_INT", "", "", "", /* 5 */ @@ -134,6 +204,20 @@ &gpioc { "", ""; /* 10 */ }; =20 +&gpioe { + gpio-line-names =3D "TP35", "", "", "", "CAN_1_120R", /* 0 */ + "", "", "USER_BTN2", "TP48", "UART_TX_EN", /* 5 */ + "UART_RX_EN", "TP24", "", "TP25", "TP26", /* 10 */ + "TP27"; /* 15 */ +}; + +&gpiog { + gpio-line-names =3D "ETH_RESET", "", "", "", "", /* 0 */ + "IOBUS_FLT_FB", "", "USER_LED2", "ETH1_PPS_A", "CAN_0_120R", /* 5 */ + "TP49", "", "", "", "", /* 10 */ + ""; /* 15 */ +}; + &gpu { status =3D "disabled"; }; diff --git a/arch/arm/boot/dts/st/stm32mp15xc-lxa-tac.dtsi b/arch/arm/boot/= dts/st/stm32mp15xc-lxa-tac.dtsi index d9b9d611a41e8b4ca35ab771d26fdf9067d73814..be0c355d3105b89d4374d4f6972= c7927970f06b1 100644 --- a/arch/arm/boot/dts/st/stm32mp15xc-lxa-tac.dtsi +++ b/arch/arm/boot/dts/st/stm32mp15xc-lxa-tac.dtsi @@ -150,76 +150,6 @@ output-vuart { baseboard_eeprom: &sip_eeprom { }; =20 -&adc { - pinctrl-names =3D "default"; - pinctrl-0 =3D <&adc1_ain_pins_a>; - vdd-supply =3D <&vdd>; - vdda-supply =3D <&vdda>; - vref-supply =3D <&vrefbuf>; - status =3D "okay"; - - adc1: adc@0 { - st,adc-channels =3D <0 1 2 5 9 10 13 15>; - st,min-sample-time-nsecs =3D <5000>; - #address-cells =3D <1>; - #size-cells =3D <0>; - status =3D "okay"; - - channel@0 { - reg =3D <0>; - label =3D "HOST_2_CURR_FB"; - }; - - channel@1 { - reg =3D <1>; - label =3D "HOST_3_CURR_FB"; - }; - - channel@2 { - reg =3D <2>; - label =3D "OUT_0_FB"; - }; - - channel@5 { - reg =3D <5>; - label =3D "IOBUS_CURR_FB"; - }; - - channel@9 { - reg =3D <9>; - label =3D "IOBUS_VOLT_FB"; - }; - - channel@10 { - reg =3D <10>; - label =3D "OUT_1_FB"; - }; - - channel@13 { - reg =3D <13>; - label =3D "HOST_CURR_FB"; - }; - - channel@15 { - reg =3D <15>; - label =3D "HOST_1_CURR_FB"; - }; - }; - - adc2: adc@100 { - st,adc-channels =3D <12>; - st,min-sample-time-nsecs =3D <500000>; - #address-cells =3D <1>; - #size-cells =3D <0>; - status =3D "okay"; - - channel@12 { - reg =3D <12>; - label =3D "TEMP_INTERNAL"; - }; - }; -}; - &crc1 { status =3D "okay"; }; @@ -273,13 +203,6 @@ &gpiod { "ETH_LAB_LEDRN"; /* 15 */ }; =20 -&gpioe { - gpio-line-names =3D "TP35", "", "", "", "CAN_1_120R", /* 0 */ - "", "", "USER_BTN2", "TP48", "UART_TX_EN", /* 5 */ - "UART_RX_EN", "TP24", "", "TP25", "TP26", /* 10 */ - "TP27"; /* 15 */ -}; - &gpiof { gpio-line-names =3D "TP36", "TP37", "", "", "OLED_CS", /* 0 */ "", "", "", "", "", /* 5 */ @@ -287,13 +210,6 @@ &gpiof { ""; /* 15 */ }; =20 -&gpiog { - gpio-line-names =3D "ETH_RESET", "", "", "", "", /* 0 */ - "IOBUS_FLT_FB", "", "USER_LED2", "ETH1_PPS_A", "CAN_0_120R", /* 5 */ - "TP49", "", "", "", "", /* 10 */ - ""; /* 15 */ -}; - &gpioh { gpio-line-names =3D "", "", "OUT_1", "OUT_0", "OLED_RESET", /* 0 */ "", "", "", "", "", /* 5 */ --=20 2.45.2 From nobody Sat Nov 23 14:52:55 2024 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 5689E1CB323 for ; Tue, 19 Nov 2024 11:35:18 +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=1732016120; cv=none; b=o+a5m1IY7Ym327Yh24wV5uIthV6cLGJBFD2TYqqebmR/dJXkllcmBT7JJea/SFGjKUpAzw03xxasBrQ63ePgA53HbxJt6tv5Z6d6U3WvUYDON7MB60nP7YkcnMtx8PAKPs8gehVfRSqV/O/4j0wyB6nmX9WaHE20PybJ2wwzUVw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732016120; c=relaxed/simple; bh=T9ZKJUvsFXlH8TPggpzo/5VC/VD7QikULyIILMTlNwk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=PPj2opxsuo90zBloFNPk1NBGYykE920U1nwGZDBbL/pq0ydcxDjDYaF8YtePypRw52adtpo/iDFJPWTnrg4cvsqMgcasCSm43GrfINLwFeyi3rwSQJa5DoAEvPyhCCdRwSpp8kIbGb54yhc81trWg6WG91+/lNMEzMzlO/zOZnQ= 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 1tDMVo-0004qQ-Qh for linux-kernel@vger.kernel.org; Tue, 19 Nov 2024 12:35:16 +0100 Received: from moin.white.stw.pengutronix.de ([2a0a:edc0:0:b01:1d::7b] helo=bjornoya.blackshift.org) 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 1tDMVo-001Yhf-0M for linux-kernel@vger.kernel.org; Tue, 19 Nov 2024 12:35:16 +0100 Received: from dspam.blackshift.org (localhost [127.0.0.1]) by bjornoya.blackshift.org (Postfix) with SMTP id C6BB137708C for ; Tue, 19 Nov 2024 11:35:15 +0000 (UTC) Received: from hardanger.blackshift.org (unknown [172.20.34.65]) (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) (Client did not present a certificate) by bjornoya.blackshift.org (Postfix) with ESMTPS id 8F63D377041; Tue, 19 Nov 2024 11:35:10 +0000 (UTC) Received: from [172.20.34.65] (localhost [::1]) by hardanger.blackshift.org (OpenSMTPD) with ESMTP id 959326aa; Tue, 19 Nov 2024 11:35:09 +0000 (UTC) From: Marc Kleine-Budde Date: Tue, 19 Nov 2024 12:35:03 +0100 Subject: [PATCH 6/6] ARM: dts: stm32: lxa-tac: Add support for generation 3 devices 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: <20241119-lxa-tac-gen3-v1-6-e0ab0a369372@pengutronix.de> References: <20241119-lxa-tac-gen3-v1-0-e0ab0a369372@pengutronix.de> In-Reply-To: <20241119-lxa-tac-gen3-v1-0-e0ab0a369372@pengutronix.de> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue Cc: kernel@pengutronix.de, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Marc Kleine-Budde , =?utf-8?q?Leonard_G=C3=B6hrs?= X-Mailer: b4 0.15-dev-355e8 X-Developer-Signature: v=1; a=openpgp-sha256; l=7442; i=mkl@pengutronix.de; h=from:subject:message-id; bh=By4pwqAedJvXzN4bGaqFPMZUX2CP5A0SNlNBPYGkLo8=; b=owEBbQGS/pANAwAKASg4oj56LbxvAcsmYgBnPHfrdQg035FqZYwjXusVOsW1i7FLwzgrdiAcG biva8lby+2JATMEAAEKAB0WIQRQQLqG4LYE3Sm8Pl8oOKI+ei28bwUCZzx36wAKCRAoOKI+ei28 byjuB/46WKe4cOci99+3casvuIAIGX4Jq5cTHiME2iyJmWXedaIzkYRyo6dPIVkwFJIhklPDy5P ytBCCvPhNn0lX+r2xK6vaTJWLhjNa1MjGOebgHrnbbU9rmuoymkx+CxxmUOJ6fm1y493KoCl+No ZLfn09QhQoBby7ivU8q9X+XGvXX2pvXg4l57HrGsmbEtekqe4k91Um2vjW7sgUoUylzdTj5rfe2 HfL3yBNCRJ6yXqDeXfUOp20dEkPTrc/iJWsTfDQEhMPWjMLx90TNgcNBsDogdaX/pkC8XkwkBzs goNODTJVO+2JGxtmTcrMxq72PBjqrCoSpniC4Fll0nADfEuy X-Developer-Key: i=mkl@pengutronix.de; a=openpgp; fpr=C1400BA0B3989E6FBC7D5B5C2B5EE211C58AEA54 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: mkl@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: Leonard G=C3=B6hrs Add support for the lxa-tac generation 3 board based on the STM32MP153c. Signed-off-by: Leonard G=C3=B6hrs Signed-off-by: Marc Kleine-Budde --- arch/arm/boot/dts/st/Makefile | 1 + arch/arm/boot/dts/st/stm32mp153c-lxa-tac-gen3.dts | 267 ++++++++++++++++++= ++++ 2 files changed, 268 insertions(+) diff --git a/arch/arm/boot/dts/st/Makefile b/arch/arm/boot/dts/st/Makefile index eab3a9bd435f5fcb792ed3b59b2a1cef4aef25ed..b7d5d305cbbeb78cfae9fab0527= 1992959f6fa56 100644 --- a/arch/arm/boot/dts/st/Makefile +++ b/arch/arm/boot/dts/st/Makefile @@ -39,6 +39,7 @@ dtb-$(CONFIG_ARCH_STM32) +=3D \ stm32mp151c-mect1s.dtb \ stm32mp153c-dhcom-drc02.dtb \ stm32mp153c-dhcor-drc-compact.dtb \ + stm32mp153c-lxa-tac-gen3.dtb \ stm32mp153c-mecio1r1.dtb \ stm32mp157a-avenger96.dtb \ stm32mp157a-dhcor-avenger96.dtb \ diff --git a/arch/arm/boot/dts/st/stm32mp153c-lxa-tac-gen3.dts b/arch/arm/b= oot/dts/st/stm32mp153c-lxa-tac-gen3.dts new file mode 100644 index 0000000000000000000000000000000000000000..a40b0eae8da3c633c36b433f69a= 006744fd4fd77 --- /dev/null +++ b/arch/arm/boot/dts/st/stm32mp153c-lxa-tac-gen3.dts @@ -0,0 +1,267 @@ +// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-3-Clause) +/* + * Copyright (C) 2020 STMicroelectronics - All Rights Reserved + * Copyright (C) 2021 Rouven Czerwinski, Pengutronix + * Copyright (C) 2023, 2024 Leonard G=C3=B6hrs, Pengutronix + */ + +/dts-v1/; + +#include "stm32mp153.dtsi" +#include "stm32mp15xc-lxa-tac.dtsi" + +/ { + model =3D "Linux Automation Test Automation Controller (TAC) Gen 3"; + compatible =3D "lxa,stm32mp153c-tac-gen3", "oct,stm32mp153x-osd32", "st,s= tm32mp153"; + + backlight: backlight { + compatible =3D "pwm-backlight"; + power-supply =3D <&v3v3>; + + brightness-levels =3D <0 31 63 95 127 159 191 223 255>; + default-brightness-level =3D <7>; + pwms =3D <&led_pwm 3 1000000 0>; + }; + + reg_iobus_12v: regulator-iobus-12v { + compatible =3D "regulator-fixed"; + vin-supply =3D <®_12v>; + gpio =3D <&gpioh 13 GPIO_ACTIVE_LOW>; + regulator-max-microvolt =3D <12000000>; + regulator-min-microvolt =3D <12000000>; + regulator-name =3D "12V_IOBUS"; + }; + + led-controller-1 { + compatible =3D "pwm-leds-multicolor"; + + multi-led { + color =3D ; + function =3D LED_FUNCTION_STATUS; + max-brightness =3D <65535>; + + led-red { + active-low; + color =3D ; + pwms =3D <&led_pwm 0 1000000 0>; + }; + + led-green { + active-low; + color =3D ; + pwms =3D <&led_pwm 2 1000000 0>; + }; + + led-blue { + active-low; + color =3D ; + pwms =3D <&led_pwm 1 1000000 0>; + }; + }; + }; + + led-controller-2 { + compatible =3D "gpio-leds"; + + led-5 { + label =3D "tac:green:iobus"; + gpios =3D <&gpiog 1 GPIO_ACTIVE_HIGH>; + }; + + led-6 { + label =3D "tac:green:can"; + gpios =3D <&gpiof 3 GPIO_ACTIVE_HIGH>; + }; + + led-7 { + label =3D "tac:green:out0"; + gpios =3D <&gpiob 8 GPIO_ACTIVE_HIGH>; + }; + + led-8 { + label =3D "tac:green:out1"; + gpios =3D <&gpiog 3 GPIO_ACTIVE_HIGH>; + }; + + led-9 { + label =3D "tac:green:uarttx"; + gpios =3D <&gpiod 3 GPIO_ACTIVE_HIGH>; + }; + + led-10 { + label =3D "tac:green:uartrx"; + gpios =3D <&gpiof 6 GPIO_ACTIVE_HIGH>; + }; + + led-11 { + label =3D "tac:green:usbh1"; + gpios =3D <&gpioc 8 GPIO_ACTIVE_HIGH>; + }; + + led-12 { + label =3D "tac:green:usbh2"; + gpios =3D <&gpiod 6 GPIO_ACTIVE_HIGH>; + }; + + led-13 { + label =3D "tac:green:usbh3"; + gpios =3D <&gpiob 9 GPIO_ACTIVE_HIGH>; + }; + + led-14 { + label =3D "tac:green:usbg"; + gpios =3D <&gpiod 14 GPIO_ACTIVE_HIGH>; + linux,default-trigger =3D "usb-gadget"; + }; + + led-15 { + label =3D "tac:green:dutpwr"; + gpios =3D <&gpioa 15 GPIO_ACTIVE_HIGH>; + }; + }; +}; + +&adc { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&board_adc1_ain_pins>; + vdd-supply =3D <&vdd>; + vdda-supply =3D <&vdda>; + vref-supply =3D <&vrefbuf>; + status =3D "okay"; + + adc1: adc@0 { + st,adc-channels =3D <2 5 9 10 13 14 15 18>; + st,min-sample-time-nsecs =3D <5000>; + #address-cells =3D <1>; + #size-cells =3D <0>; + status =3D "okay"; + + channel@2 { + reg =3D <2>; + label =3D "OUT_0_FB"; + }; + + channel@5 { + reg =3D <5>; + label =3D "IOBUS_CURR_FB"; + }; + + channel@9 { + reg =3D <9>; + label =3D "IOBUS_VOLT_FB"; + }; + + channel@10 { + reg =3D <10>; + label =3D "OUT_1_FB"; + }; + + channel@13 { + reg =3D <13>; + label =3D "HOST_CURR_FB"; + }; + + channel@14 { + reg =3D <14>; + label =3D "HOST_3_CURR_FB"; + }; + + channel@15 { + reg =3D <15>; + label =3D "HOST_1_CURR_FB"; + }; + + channel@18 { + reg =3D <18>; + label =3D "HOST_2_CURR_FB"; + }; + }; + + adc2: adc@100 { + st,adc-channels =3D <12>; + st,min-sample-time-nsecs =3D <500000>; + #address-cells =3D <1>; + #size-cells =3D <0>; + status =3D "okay"; + + channel@12 { + reg =3D <12>; + label =3D "TEMP_INTERNAL"; + }; + }; +}; + +&gpioa { + gpio-line-names =3D "", "", "", "", "", /* 0 */ + "ETH_GPIO1", "ETH_INT", "", "", "", /* 5 */ + "", "", "", "BOOTROM_LED", "ETH_LAB_LEDRP", /* 10 */ + ""; /* 15 */ +}; + +&gpioc { + gpio-line-names =3D "", "DUT_PWR_DISCH", "", "", "", /* 0 */ + "", "", "", "", "", /* 5 */ + "", ""; /* 10 */ +}; + +&gpioe { + gpio-line-names =3D "TP35", "", "", "", "CAN_1_120R", /* 0 */ + "", "", "USER_BTN2", "DUT_PWR_EN", "UART_TX_EN", /* 5 */ + "UART_RX_EN", "TP24", "", "TP25", "TP26", /* 10 */ + "TP27"; /* 15 */ +}; + +&gpiog { + gpio-line-names =3D "ETH_RESET", "", "", "", "", /* 0 */ + "IOBUS_FLT_FB", "", "USER_LED2", "ETH1_PPS_A", "CAN_0_120R", /* 5 */ + "POWER_ADC_RESET", "", "", "", "", /* 10 */ + ""; /* 15 */ +}; + +&m_can2 { + termination-gpios =3D <&gpioe 4 GPIO_ACTIVE_HIGH>; + termination-ohms =3D <120>; +}; + +&pinctrl { + board_adc1_ain_pins: board-adc1-ain-0 { + pins { + pinmux =3D , /* ADC1_INP2 */ + , /* ADC1_INP5 */ + , /* ADC1_INP9 */ + , /* ADC1_INP10 */ + , /* ADC1_INP13 */ + , /* ADC1_INP14 */ + , /* ADC1_INP15 */ + ; /* ADC1_INP18 */ + }; + }; +}; + +&spi2 { + adc@0 { + compatible =3D "ti,lmp92064"; + reg =3D <0>; + + reset-gpios =3D <&gpiog 10 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + shunt-resistor-micro-ohms =3D <15000>; + spi-max-frequency =3D <5000000>; + vdd-supply =3D <®_pb_3v3>; + vdig-supply =3D <®_pb_3v3>; + }; +}; + +&timers8 { + /* spare dmas for other usage */ + /delete-property/dmas; + /delete-property/dma-names; + + status =3D "okay"; + + led_pwm: pwm { + pinctrl-names =3D "default", "sleep"; + pinctrl-0 =3D <&pwm8_pins_b>; + pinctrl-1 =3D <&pwm8_sleep_pins_b>; + status =3D "okay"; + }; +}; --=20 2.45.2