From patchwork Sun Jun 26 00:20:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 12895538 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CC9FCC433EF for ; Sun, 26 Jun 2022 00:22:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=vixuLgK+dR81aIIRXhlM5x3K+fV/L9S2xG+xClBEg9g=; b=gVG1W3+yflfcsT eDxkC7FDN077XQ7/Pd8CzCRtC9FDR9oa9TGrl2OphoFseyvcOKBcbfj3p959h7t+ZbuoSPIA62HY3 KTG1uQN1+RcgoweK1UwTMHsAfUrlP9q7kij2PohTq8HlLHj6USBbV9qt0Xqwaq22GjH+03Vxdfjyl Hlca8aio2/y3/AtxkcgoPU07I7s71lZ65aBUWVkuornqxaYvPAi49FZUgaVwoJ0DRWGKDerclktT2 FAV8ZJEBCvJmvlDvLxws0tawOfhFmlgm6NA78BV9O5SF0SbxyMs4+cbZqgFMV7LAgT3j2PxxnGdwq 8oZ2P99dLu9T3U+btLkA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o5G1u-008cQ7-Lg; Sun, 26 Jun 2022 00:21:34 +0000 Received: from phobos.denx.de ([2a01:238:438b:c500:173d:9f52:ddab:ee01]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o5G1h-008cKZ-IE for linux-arm-kernel@lists.infradead.org; Sun, 26 Jun 2022 00:21:24 +0000 Received: from tr.lan (ip-86-49-12-201.net.upcbroadband.cz [86.49.12.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id A4EDE81A02; Sun, 26 Jun 2022 02:21:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1656202879; bh=2+VzDUUThiI1ROiEciRv+pLrxIIEoD+pHIMT2yd+Fxs=; h=From:To:Cc:Subject:Date:From; b=I3EuzIGCf3zrPzZ7AubGI3pt16yq5UUcQt+bFa0MnP6q2s/US/7mKYkSzCzDxUtj8 llAqJ7uvNvtNHUbGzuSD+6Cx/Pgp/3i1hdd/LqpT5pgklzK7GiVklBCZrXW9oYT11f N05DnQ58C1gN8Y7mIRzIQfNNrNNC74fvs1W+dGFoormsfOF0ZHRsfeNIb9oBcAu5xG ftmKHZQ0ijzqKLDt1YUHBLD4FVkM++iIj1e7PQVsKIYxb2z+50bFPkXaIs8sKm7cnj 95G5Iqx/lLox0SWBZGqqaXsbLEznYOJCBxPk2K8mxfvWTgQEzmNnMuFa2oyc1FAtGs 9fQi37PBvhlVg== From: Marek Vasut To: linux-arm-kernel@lists.infradead.org Cc: Marek Vasut , Alexandre Torgue , Maxime Coquelin , Patrice Chotard , Patrick Delaunay , Rob Herring , devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH v3 1/7] dt-bindings: arm: stm32: Add compatible string for DH electronics DHCOR DRC Compact Date: Sun, 26 Jun 2022 02:20:59 +0200 Message-Id: <20220626002105.198854-1-marex@denx.de> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220625_172121_812059_D5C13950 X-CRM114-Status: UNSURE ( 7.98 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add DT compatible string for DH electronics STM32MP15xx DHCOR on DRC Compact carrier board into YAML DT binding document. This system is a general purpose DIN Rail Controller design. Signed-off-by: Marek Vasut Cc: Alexandre Torgue Cc: Maxime Coquelin Cc: Patrice Chotard Cc: Patrick Delaunay Cc: Rob Herring Cc: devicetree@vger.kernel.org Cc: linux-stm32@st-md-mailman.stormreply.com To: linux-arm-kernel@lists.infradead.org Reviewed-by: Rob Herring --- V2: Split DHCOM and DHCOR SoM entries V3: No change --- Documentation/devicetree/bindings/arm/stm32/stm32.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/arm/stm32/stm32.yaml b/Documentation/devicetree/bindings/arm/stm32/stm32.yaml index 8b31565fee591..4c605bccc474e 100644 --- a/Documentation/devicetree/bindings/arm/stm32/stm32.yaml +++ b/Documentation/devicetree/bindings/arm/stm32/stm32.yaml @@ -59,12 +59,18 @@ properties: - prt,prtt1s # Protonic PRTT1S - const: st,stm32mp151 - - description: DH STM32MP153 SoM based Boards + - description: DH STM32MP153 DHCOM SoM based Boards items: - const: dh,stm32mp153c-dhcom-drc02 - const: dh,stm32mp153c-dhcom-som - const: st,stm32mp153 + - description: DH STM32MP153 DHCOR SoM based Boards + items: + - const: dh,stm32mp153c-dhcor-drc-compact + - const: dh,stm32mp153c-dhcor-som + - const: st,stm32mp153 + - items: - enum: - shiratech,stm32mp157a-iot-box # IoT Box From patchwork Sun Jun 26 00:21:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 12895537 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 16F6BC43334 for ; Sun, 26 Jun 2022 00:22:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=OE2TPIVSblzsW0Fsv/GO3Y7UQUTYx5ReYrO+YLJkEaA=; b=QktxirFYStfCQf L6Gm1lcKypJ+EtH8pDox8mbBSv7xPdwZjJfroheFGQFhj63J2JFWPcz7Av91OeABrTnsKZh1dhAo7 NQiFI1mXhv476yyCBlCU5e3V33aRm4OaEqmz2x/fNjA1h9hb7SXshxoRnm/f1rBSKQQUG+3iaA6og X1q4baHCwRgLoZei9l822Vm7YUgWJtiLF27CD8pIHnYode6uUURcq61jA48mPMChEkkIxEN71IbgM xCqhAdSooCSezQOd+dbDchcssB9eUIqDdB+fYohDHbMDokwrVt5HFDa1ZXYBv1R3APnrmLWxbhhZC 9t++6WPdi6hJT+aHVttg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o5G1l-008cMX-Pb; Sun, 26 Jun 2022 00:21:25 +0000 Received: from phobos.denx.de ([2a01:238:438b:c500:173d:9f52:ddab:ee01]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o5G1h-008cKf-IG for linux-arm-kernel@lists.infradead.org; Sun, 26 Jun 2022 00:21:23 +0000 Received: from tr.lan (ip-86-49-12-201.net.upcbroadband.cz [86.49.12.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 03FD883D9C; Sun, 26 Jun 2022 02:21:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1656202880; bh=Xjtf1ETt/1csbANbKEhaq/IqoWUQLWmt0OgiUCF4ork=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YbAltr2md4XfzpH+YN311/DYRs7KO32zcnfhLzBkVYlvPvPQWBE0Qf1ZLmNhixQeK EyosRW19XaxEfQIcCMdY7z6uLQ2tYWsXV3bL53Xponm6MiaRZwqKd0CTGy9yW6Z5AW iIMt+MnpzKkL5a5cANgUhPeS2kVbusYdfPLDZSeWOoMPaqntmWfbr/JzlW9EueXa2F tpo5AIwKPE8e5W78P1Cgnr+QvjcwDrSMwTxV6MSli7Je1vNs03thzP+zCpgH7Rqqlp FnYd+1SauiVQkg/LZ9g/Ehte6HHU6JUhGDnFbHWIqT44xb4+V21nb3Dw066dcopeTm 6xyGc6tXGTQoA== From: Marek Vasut To: linux-arm-kernel@lists.infradead.org Cc: Marek Vasut , Alexandre Torgue , linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH v3 2/7] ARM: dts: stm32: Add alternate pinmux for CAN1 pins Date: Sun, 26 Jun 2022 02:21:00 +0200 Message-Id: <20220626002105.198854-2-marex@denx.de> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220626002105.198854-1-marex@denx.de> References: <20220626002105.198854-1-marex@denx.de> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220625_172121_812066_D8B998F0 X-CRM114-Status: UNSURE ( 9.15 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add another mux option for CAN1 pins, this is used on DRC Compact board. Signed-off-by: Marek Vasut Cc: Alexandre Torgue Cc: linux-stm32@st-md-mailman.stormreply.com To: linux-arm-kernel@lists.infradead.org --- V2: No change V3: No change --- arch/arm/boot/dts/stm32mp15-pinctrl.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi index 3c77234b51ac3..b4cfa11fc9be9 100644 --- a/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi +++ b/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi @@ -1030,6 +1030,26 @@ pins { }; }; + m_can1_pins_c: m-can1-2 { + pins1 { + pinmux = ; /* CAN1_TX */ + slew-rate = <1>; + drive-push-pull; + bias-disable; + }; + pins2 { + pinmux = ; /* CAN1_RX */ + bias-disable; + }; + }; + + m_can1_sleep_pins_c: m_can1-sleep-2 { + pins { + pinmux = , /* CAN1_TX */ + ; /* CAN1_RX */ + }; + }; + m_can2_pins_a: m-can2-0 { pins1 { pinmux = ; /* CAN2_TX */ From patchwork Sun Jun 26 00:21:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 12895540 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 17E9FC43334 for ; Sun, 26 Jun 2022 00:22:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=NVEq92XxNRJ6Nta3s02najaey7wYQlz8u6izyu9slEk=; b=S/8LqikkwvF811 Et5z3sp8QUDp8aDXe5FtOcgf2Yyl2wOH43vbCk+QbBQDSPWoiKcwGy7O7vhMYX/oI5BgJj+EdV2HK pTbGt0RIS2c+tyyoTOHtXy0ZVkfFCrQ15UyAw5Ax3UKRwcTCggz8gK274hG6IYNwUYC9NKVscMPAl /JXwy+DOFTY/JgfRuKObed6K8OKu1LYpE4FV1KXcqsA9j5MUzVGJbPvM29dreumVmv1ssD1P2E+gO giY4gw4cIjkerVat3N7bOWgyXGFuMH9d3I+D92epuMT61E9GvZ5jN1+H3D6q6gK2Wqt6QOagl2D1t 05ahzgq0UfkX6OlCFyxg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o5G2L-008caV-Dq; Sun, 26 Jun 2022 00:22:01 +0000 Received: from phobos.denx.de ([2a01:238:438b:c500:173d:9f52:ddab:ee01]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o5G1h-008cKh-O9 for linux-arm-kernel@lists.infradead.org; Sun, 26 Jun 2022 00:21:24 +0000 Received: from tr.lan (ip-86-49-12-201.net.upcbroadband.cz [86.49.12.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 3D1F184449; Sun, 26 Jun 2022 02:21:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1656202880; bh=jlUl0utbmcLRLqXdAJk47tE1vZnuL7EO8VhDDCrMYGg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iujY3XR6yNvaEQxy0LFlzm+NcWh1BXzklYu6uNBMIBWsLq+iEHPxyhVOmda1UMXu2 G1ebvEt07MdriZIxOjOqBeA6hvGNyorXve83uHFVh19ZcAac7svj3CcAH8Y1gx35Fz g+dm1njk8f7m2yW0MFABVCBx7hDHtNBemMSOG6/wIWk9RGqSou0exO/5ZpfCfhhnwf k2SgW7o1oOStfE6dGu+X05ucX4KwjhNk95E4UIJPFspcjEhVuvQtHrqLPwN3QYZ5TW lnOURKcSsasN1pG+vyTT8fC7G/kdMZCUr+eipjElrqIPdAJ1EktQqxkdoz/MOE37ey /BB/G45K6ZCEA== From: Marek Vasut To: linux-arm-kernel@lists.infradead.org Cc: Marek Vasut , Alexandre Torgue , linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH v3 3/7] ARM: dts: stm32: Add alternate pinmux for SPI2 pins Date: Sun, 26 Jun 2022 02:21:01 +0200 Message-Id: <20220626002105.198854-3-marex@denx.de> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220626002105.198854-1-marex@denx.de> References: <20220626002105.198854-1-marex@denx.de> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220625_172122_002346_EDDB4525 X-CRM114-Status: UNSURE ( 9.44 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add another mux option for SPI2 pins, this is used on DRC Compact board. Signed-off-by: Marek Vasut Cc: Alexandre Torgue Cc: linux-stm32@st-md-mailman.stormreply.com To: linux-arm-kernel@lists.infradead.org --- V2: No change V3: Fix SPI1_ comments to SPI2_ to match reality --- arch/arm/boot/dts/stm32mp15-pinctrl.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi index b4cfa11fc9be9..58f5924902b82 100644 --- a/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi +++ b/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi @@ -1879,6 +1879,21 @@ pins2 { }; }; + spi2_pins_b: spi2-1 { + pins1 { + pinmux = , /* SPI2_SCK */ + ; /* SPI2_MOSI */ + bias-disable; + drive-push-pull; + slew-rate = <1>; + }; + + pins2 { + pinmux = ; /* SPI2_MISO */ + bias-disable; + }; + }; + spi4_pins_a: spi4-0 { pins { pinmux = , /* SPI4_SCK */ From patchwork Sun Jun 26 00:21:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 12895541 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1E9A6C43334 for ; Sun, 26 Jun 2022 00:23:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Wf7tpWWo2olu9AT2NRRQv+mLAsOBcUShqPHforlCHcQ=; b=s1qaWZPv6rdII2 cUXQdg8qvLcyv0JGOye+/pXuWbFzv0lxV9tR8uE4A8QnRRQphgWRpj4kumnYeeUb2SIvDHN08arWI pW4HZ6Pfp3ZD0SVbA38aFo9QMJy3h5s6Q/6Nih0eSG2/RzkhRsEwVmF96U6rf3WhYdAzk2pXC1nyQ 9K4bmb2TjcoFSSbVC/BPtTd1Mw0hdz5LPsgbwLvENkzBsJRwGVjz4wXu7EWVa9hId87zsjaaedNzC GpOEscamBV6b9ZJe2tdUFNFj+BAkm4VI2l3eHQNr4OXHM49sA3bJLEEq3ui93HGad+bgRUzXPFQr+ OXf6anPebE10PCwXzQXw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o5G2e-008cjm-O4; Sun, 26 Jun 2022 00:22:21 +0000 Received: from phobos.denx.de ([85.214.62.61]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o5G1i-008cKi-Ap for linux-arm-kernel@lists.infradead.org; Sun, 26 Jun 2022 00:21:24 +0000 Received: from tr.lan (ip-86-49-12-201.net.upcbroadband.cz [86.49.12.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 768028446B; Sun, 26 Jun 2022 02:21:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1656202880; bh=BsUhhwHIeOxa1qnGumybNzsDrnHunw1B70tySjEm3dI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FX18NDbbtUOCPNzhzs0RlwE7erN3yY4elerzUbdRiUdgdCkUvX4SvU7rY9ydvnISq /mR0SkkoZ6LDLTKBbZYTCV9ddVWECSmzS/1J0DU8dkpsm68tTMTEPcB4qjmhX/Zqw+ Eeywpjx1GMCuVt5cugbqW94J429ggktNRJkPDfO072JhLzI1rb/q3xYKhFu1CKkXMD uypLAQcc2pYPtTrXG3TXljMQlxlbZmOLo1+oyakDKSRvunuOnXCXxV0EM7NySqM1BE 5OZ+ZVqCOTC37exMZRKdDjg9XN7ditHtBrUvsEq6qLgUkBLk4jHPK2w5Ax+hw1UQC6 zTnnD71LlowiA== From: Marek Vasut To: linux-arm-kernel@lists.infradead.org Cc: Marek Vasut , Alexandre Torgue , linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH v3 4/7] ARM: dts: stm32: Add alternate pinmux for UART3 pins Date: Sun, 26 Jun 2022 02:21:02 +0200 Message-Id: <20220626002105.198854-4-marex@denx.de> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220626002105.198854-1-marex@denx.de> References: <20220626002105.198854-1-marex@denx.de> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220625_172122_592237_377B3D07 X-CRM114-Status: UNSURE ( 9.71 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add another mux option for UART3 pins, this is used on DRC Compact board. Signed-off-by: Marek Vasut Cc: Alexandre Torgue Cc: linux-stm32@st-md-mailman.stormreply.com To: linux-arm-kernel@lists.infradead.org --- V2: No change V3: No change --- arch/arm/boot/dts/stm32mp15-pinctrl.dtsi | 41 ++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi index 58f5924902b82..ebc3ddcf88867 100644 --- a/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi +++ b/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi @@ -2270,6 +2270,47 @@ pins { }; }; + usart3_pins_e: usart3-4 { + pins1 { + pinmux = , /* USART3_TX */ + ; /* USART3_RTS */ + bias-disable; + drive-push-pull; + slew-rate = <0>; + }; + pins2 { + pinmux = , /* USART3_RX */ + ; /* USART3_CTS_NSS */ + bias-pull-up; + }; + }; + + usart3_idle_pins_e: usart3-idle-4 { + pins1 { + pinmux = , /* USART3_TX */ + ; /* USART3_CTS_NSS */ + }; + pins2 { + pinmux = ; /* USART3_RTS */ + bias-disable; + drive-push-pull; + slew-rate = <0>; + }; + pins3 { + pinmux = ; /* USART3_RX */ + bias-pull-up; + }; + }; + + usart3_sleep_pins_e: usart3-sleep-4 { + pins { + pinmux = , /* USART3_TX */ + , /* USART3_RTS */ + , /* USART3_CTS_NSS */ + ; /* USART3_RX */ + }; + }; + usbotg_hs_pins_a: usbotg-hs-0 { pins { pinmux = ; /* OTG_ID */ From patchwork Sun Jun 26 00:21:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 12895539 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 54721C43334 for ; Sun, 26 Jun 2022 00:22:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=QfF9iZrV+zbI2T3QDASTm1oqf4JVZmGnacOB5B5O4LQ=; b=0ltbaem+Qjagx8 G6+sTHHEViNZi5T4tUGxjEpoXDDLW4h43v2OnhLN8qjgwo7CrLmG/IX/IF1T0mWdZCeK5E/uH9/5V wNczFmKKniBn+Qy4tux1Q1PJGqG4W1NoJYdwbT+aynymbiwISDb8R2ZA8uMgh5UFlNxlhWhk5rZDg JkxqntR2fN6ANlAO8USxSos0M1Qc/+Nu1BHDaMgvlbeE7fu2oTkhpM/2R0Ir20MrgpvoVeAOXZFdx 6MQQyuqcIfPrAbv0jT3Pe6TArQY7TUfDzJT6vBjZ/SFEJotB1HNMioayrxz4Tw4TGq3x1GYFPgAwT /E/L6ZkOWsDUEMfeko/Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o5G23-008cSU-Fk; Sun, 26 Jun 2022 00:21:43 +0000 Received: from phobos.denx.de ([85.214.62.61]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o5G1i-008cKo-Ao for linux-arm-kernel@lists.infradead.org; Sun, 26 Jun 2022 00:21:24 +0000 Received: from tr.lan (ip-86-49-12-201.net.upcbroadband.cz [86.49.12.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id AAC5C84476; Sun, 26 Jun 2022 02:21:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1656202880; bh=aLG76o4NPaTB6dv0s8UmBCPpE7BT52bJcDFpgnAtK1s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rvvro+bM1GHzJSO/8y2ndHuIorY8CRV57qJDx3e78Zc8uPwozWKcrK7GHvolQ/zLI LgS+CZboytTlq016bL3kqBTFxTUD4+U5Lwzb/Ys9P3hqZA+pGKt1wJ2s9HZddOqyyZ az0DH5m+j1nACXa3kV6pBHH8ADpUOBAyy8Rr9o5BBO1vaaneUfbw5nBHcXW/R4BLE9 /4IsVy+x2tVsCfCvLmlP6yTt/bkf1Bugjt0vNhtqCCcGjfYHxmowZufXmVX2BTKbdz 3OsT9kuU+Ci71r+8ZDYB/ShaKfc1jP5d7WCOIxZTh2xmII3KatjHpQvHB2B7K+fNQI pKgwZq3qnYEpA== From: Marek Vasut To: linux-arm-kernel@lists.infradead.org Cc: Marek Vasut , Alexandre Torgue , linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH v3 5/7] ARM: dts: stm32: Add alternate pinmux for UART4 pins Date: Sun, 26 Jun 2022 02:21:03 +0200 Message-Id: <20220626002105.198854-5-marex@denx.de> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220626002105.198854-1-marex@denx.de> References: <20220626002105.198854-1-marex@denx.de> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220625_172122_564810_E4A0C57C X-CRM114-Status: UNSURE ( 9.50 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add another mux option for UART4 pins, this is used on DRC Compact board. Signed-off-by: Marek Vasut Cc: Alexandre Torgue Cc: linux-stm32@st-md-mailman.stormreply.com To: linux-arm-kernel@lists.infradead.org --- V2: No change V3: No change --- arch/arm/boot/dts/stm32mp15-pinctrl.dtsi | 30 ++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi index ebc3ddcf88867..77b0ecc9d7fd3 100644 --- a/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi +++ b/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi @@ -1971,6 +1971,36 @@ pins2 { }; }; + uart4_pins_d: uart4-3 { + pins1 { + pinmux = ; /* UART4_TX */ + bias-disable; + drive-push-pull; + slew-rate = <0>; + }; + pins2 { + pinmux = ; /* UART4_RX */ + bias-disable; + }; + }; + + uart4_idle_pins_d: uart4-idle-3 { + pins1 { + pinmux = ; /* UART4_TX */ + }; + pins2 { + pinmux = ; /* UART4_RX */ + bias-disable; + }; + }; + + uart4_sleep_pins_d: uart4-sleep-3 { + pins { + pinmux = , /* UART4_TX */ + ; /* UART4_RX */ + }; + }; + uart7_pins_a: uart7-0 { pins1 { pinmux = ; /* UART7_TX */ From patchwork Sun Jun 26 00:21:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 12895542 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5ABF5C433EF for ; Sun, 26 Jun 2022 00:23:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=sAmbmas8mfY59DSOpb4q8KPs/3TddVBxO091SVzJP8M=; b=elIHfS12GD92c1 +Fzwixi+voCfWAOsG4LHuNW1WZ5HGgHyNobkDLA7/6DNAq6VCeWFObdSINlWSgmm+0h2Z9Zp8qmPk cAFEv+4YbilY6E+mNaMOSMnfIbs+ECG1VeKhzVaY+lBtfnhJTCQ5f9Mw9Ab73/2yqkYuf4Xg8ZPyM xI6Vv7dJPLvE/MV+asB47DVae1IugduZ6n5btppM4v9vtgJwNRcYw2Hgm7XtxD49Pv8QWurOcJUqu hTcXASrr9WW+yBFDDBCmrZW9k/GMbDYr9kV+LZm6RIEr5qZ2zV/FXKQAV3gaItEykNoEMEclnrz0R ZEX+KG+Mu/Lai7dCLQfw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o5G2t-008crt-3h; Sun, 26 Jun 2022 00:22:35 +0000 Received: from phobos.denx.de ([2a01:238:438b:c500:173d:9f52:ddab:ee01]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o5G1k-008cMN-DM for linux-arm-kernel@lists.infradead.org; Sun, 26 Jun 2022 00:21:26 +0000 Received: from tr.lan (ip-86-49-12-201.net.upcbroadband.cz [86.49.12.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id E3B2584477; Sun, 26 Jun 2022 02:21:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1656202881; bh=QHkLYn6+T8+yBnMhuwJn9DCfb3N9KQgWKAAYB8v7VNM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=URoR6FhsNjrUL7uO9C4A+tObPnDmM/snn6y7EOZw0lE8rRXKtIFkaMXmODYjSzvkw KNJqvWJkhAadGeIudbo9YygMirpFedy94icDnAC4I9STuFyqA827c4d7P9j6DJ4xGU 9zckXV6fYpc0BZitn9o1fZ87xz8MvxabGwD6GMbE6QporaVL9b+UtV11/MwFUx0BQa h0hHXi5z2PzIzM2rYf9EOvQjGnYAPowVNgjy6ZbOHfRef5eH7eycf3H+AGKCLF/5n2 XFiDjhHOZCiis4VMSPJoLzkstNIVDwq6s/BLyy7CsTf9m0OipeAHyHwxm4hseqhihE 9kxtC2isvsJng== From: Marek Vasut To: linux-arm-kernel@lists.infradead.org Cc: Marek Vasut , Alexandre Torgue , linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH v3 6/7] ARM: dts: stm32: Add alternate pinmux for UART5 pins Date: Sun, 26 Jun 2022 02:21:04 +0200 Message-Id: <20220626002105.198854-6-marex@denx.de> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220626002105.198854-1-marex@denx.de> References: <20220626002105.198854-1-marex@denx.de> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220625_172124_695234_33EB3A99 X-CRM114-Status: UNSURE ( 9.79 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add another mux option for UART5 pins, this is used on DRC Compact board. Signed-off-by: Marek Vasut Cc: Alexandre Torgue Cc: linux-stm32@st-md-mailman.stormreply.com To: linux-arm-kernel@lists.infradead.org --- V2: No change V3: No change --- arch/arm/boot/dts/stm32mp15-pinctrl.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi index 77b0ecc9d7fd3..2cc9341d43d29 100644 --- a/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi +++ b/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi @@ -2001,6 +2001,19 @@ pins { }; }; + uart5_pins_a: uart5-0 { + pins1 { + pinmux = ; /* UART5_TX */ + bias-disable; + drive-push-pull; + slew-rate = <0>; + }; + pins2 { + pinmux = ; /* UART5_RX */ + bias-disable; + }; + }; + uart7_pins_a: uart7-0 { pins1 { pinmux = ; /* UART7_TX */ From patchwork Sun Jun 26 00:21:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 12895543 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 336B8C433EF for ; Sun, 26 Jun 2022 00:23:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=t/cuP+pjoAPF5GFb/E88oF9gLEfWYxOqhIc2Hr2FdQE=; b=HZO90HFZlMy3l6 lePGryettueUKo00foj83OuPPSfYqc86hhzzCJxx6Ug2cP5DDdH+F0ycRdG7mJ7ItTJLm2Nm/DUUC DYZBCwhyeLe2i7Ji0alb8levS7mN2mAxT+JrXdGCqJJ51ucgVaE3heahAZus2XQLdBmb/ZPRaW5v2 Ua+xAsFvv6Tu2VJupsq+9kCNouPuAIEN8A7LmdTJe1flt2k6IqJLCKe+E/3gQbiASov/BLEZGQZzp XVmh5lmm389jhwJ+PGFzMHouNbK3n0C+4Ww0FWW5JQh8WmaAW5/6OkIKIatJsz+IwMQP8n4UGG7bQ j6znLWjjAlolNewrmbuw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o5G37-008d0c-LI; Sun, 26 Jun 2022 00:22:49 +0000 Received: from phobos.denx.de ([2a01:238:438b:c500:173d:9f52:ddab:ee01]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o5G1k-008cMO-Eh for linux-arm-kernel@lists.infradead.org; Sun, 26 Jun 2022 00:21:27 +0000 Received: from tr.lan (ip-86-49-12-201.net.upcbroadband.cz [86.49.12.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 23FA884479; Sun, 26 Jun 2022 02:21:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1656202881; bh=XJxyLcgaDvyWP4CkbXMXkaS3DAolDtOKMMyPDHTUMIg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=esiBByu2axKgOKG4jo9dhSjp9w+/uKJ6ANlF4DgSTaRPKjgDJswCZz8NkIQKOn0gg mjAUURvER1VIql+U2ST077O7Fa5PMzbEPsYaiVfl5F9/fTa9ts6D9F07d15Wk0NbuF WkZWWRdHWzc3C3SWUSipquhM8X/iRPt1FHq7RSQ6SZKVxI2PFgPc2P3xSqQmiVCpNY qRNLnqqr6GMJyoo89u36GeUtJEJiQ9UnTsS2Ckn0gvG1vjjQZCoFDvl7+s7sJ7H9bo K2MfiLuSZLnwNKr5y7XK7OI7qWEVSVOgK8TOadxeN7d1tY+tdCq6A1QFovGKpmE5XG fQJnYVi2I464w== From: Marek Vasut To: linux-arm-kernel@lists.infradead.org Cc: Marek Vasut , Alexandre Torgue , linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH v3 7/7] ARM: dts: stm32: Add DHCOR based DRC Compact board Date: Sun, 26 Jun 2022 02:21:05 +0200 Message-Id: <20220626002105.198854-7-marex@denx.de> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220626002105.198854-1-marex@denx.de> References: <20220626002105.198854-1-marex@denx.de> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220625_172124_915535_5742A218 X-CRM114-Status: GOOD ( 14.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add DT for DH DRC Compact unit, which is a universal controller device. The system has two ethernet ports, one CAN, RS485 and RS232, USB, uSD card slot, eMMC and SDIO Wi-Fi. Signed-off-by: Marek Vasut Cc: Alexandre Torgue Cc: linux-stm32@st-md-mailman.stormreply.com To: linux-arm-kernel@lists.infradead.org --- V2: No change V3: No change --- arch/arm/boot/dts/Makefile | 1 + .../dts/stm32mp153c-dhcor-drc-compact.dts | 30 ++ .../dts/stm32mp15xx-dhcor-drc-compact.dtsi | 322 ++++++++++++++++++ 3 files changed, 353 insertions(+) create mode 100644 arch/arm/boot/dts/stm32mp153c-dhcor-drc-compact.dts create mode 100644 arch/arm/boot/dts/stm32mp15xx-dhcor-drc-compact.dtsi diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 38d9c60aece78..de7e29fb5418e 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -1206,6 +1206,7 @@ dtb-$(CONFIG_ARCH_STM32) += \ stm32mp151a-prtt1c.dtb \ stm32mp151a-prtt1s.dtb \ stm32mp153c-dhcom-drc02.dtb \ + stm32mp153c-dhcor-drc-compact.dtb \ stm32mp157a-avenger96.dtb \ stm32mp157a-dhcor-avenger96.dtb \ stm32mp157a-dk1.dtb \ diff --git a/arch/arm/boot/dts/stm32mp153c-dhcor-drc-compact.dts b/arch/arm/boot/dts/stm32mp153c-dhcor-drc-compact.dts new file mode 100644 index 0000000000000..c8b9818499ea0 --- /dev/null +++ b/arch/arm/boot/dts/stm32mp153c-dhcor-drc-compact.dts @@ -0,0 +1,30 @@ +// SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) +/* + * Copyright (C) 2022 Marek Vasut + * + * DHCOR STM32MP1 variant: + * DHCR-STM32MP153C-C065-R051-V33-SPI-I-01LG + * DHCOR PCB number: 586-100 or newer + * DRC Compact PCB number: 627-100 or newer + */ + +/dts-v1/; + +#include "stm32mp153.dtsi" +#include "stm32mp15xc.dtsi" +#include "stm32mp15xx-dhcor-som.dtsi" +#include "stm32mp15xx-dhcor-drc-compact.dtsi" + +/ { + model = "DH electronics STM32MP153C DHCOR DRC Compact"; + compatible = "dh,stm32mp153c-dhcor-drc-compact", + "dh,stm32mp153c-dhcor-som", + "st,stm32mp153"; +}; + +&m_can1 { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&m_can1_pins_c>; + pinctrl-1 = <&m_can1_sleep_pins_c>; + status = "okay"; +}; diff --git a/arch/arm/boot/dts/stm32mp15xx-dhcor-drc-compact.dtsi b/arch/arm/boot/dts/stm32mp15xx-dhcor-drc-compact.dtsi new file mode 100644 index 0000000000000..27477bb219ded --- /dev/null +++ b/arch/arm/boot/dts/stm32mp15xx-dhcor-drc-compact.dtsi @@ -0,0 +1,322 @@ +// SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) +/* + * Copyright (C) 2022 Marek Vasut + */ + +/ { + aliases { + ethernet0 = ðernet0; + ethernet1 = &ksz8851; + mmc0 = &sdmmc1; + rtc0 = &hwrtc; + rtc1 = &rtc; + serial0 = &uart4; + serial1 = &uart8; + serial2 = &usart3; + serial3 = &uart5; + spi0 = &qspi; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + led { + compatible = "gpio-leds"; + led1 { + label = "yellow:user0"; + gpios = <&gpioz 6 GPIO_ACTIVE_LOW>; + default-state = "off"; + }; + + led2 { + label = "red:user1"; + gpios = <&gpioz 3 GPIO_ACTIVE_LOW>; + default-state = "off"; + }; + }; + + ethernet_vio: vioregulator { + compatible = "regulator-fixed"; + regulator-name = "vio"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpioh 2 GPIO_ACTIVE_LOW>; + regulator-always-on; + regulator-boot-on; + vin-supply = <&vdd>; + }; +}; + +&adc { /* X11 ADC inputs */ + pinctrl-names = "default"; + pinctrl-0 = <&adc12_ain_pins_b>; + vdd-supply = <&vdd>; + vdda-supply = <&vdda>; + vref-supply = <&vdda>; + status = "okay"; + + adc1: adc@0 { + st,adc-channels = <0 1 6>; + st,min-sample-time-nsecs = <5000>; + status = "okay"; + }; + + adc2: adc@100 { + st,adc-channels = <0 1 2>; + st,min-sample-time-nsecs = <5000>; + status = "okay"; + }; +}; + +ðernet0 { + status = "okay"; + pinctrl-0 = <ðernet0_rgmii_pins_c>; + pinctrl-1 = <ðernet0_rgmii_sleep_pins_c>; + pinctrl-names = "default", "sleep"; + phy-mode = "rgmii"; + max-speed = <1000>; + phy-handle = <&phy0>; + + mdio0 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "snps,dwmac-mdio"; + reset-gpios = <&gpioz 2 GPIO_ACTIVE_LOW>; + reset-delay-us = <1000>; + reset-post-delay-us = <1000>; + + phy0: ethernet-phy@7 { + reg = <7>; + + rxc-skew-ps = <1500>; + rxdv-skew-ps = <540>; + rxd0-skew-ps = <420>; + rxd1-skew-ps = <420>; + rxd2-skew-ps = <420>; + rxd3-skew-ps = <420>; + + txc-skew-ps = <1440>; + txen-skew-ps = <540>; + txd0-skew-ps = <420>; + txd1-skew-ps = <420>; + txd2-skew-ps = <420>; + txd3-skew-ps = <420>; + }; + }; +}; + +&fmc { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&fmc_pins_b>; + pinctrl-1 = <&fmc_sleep_pins_b>; + status = "okay"; + + ksz8851: ethernet@1,0 { + compatible = "micrel,ks8851-mll"; + reg = <1 0x0 0x2>, <1 0x2 0x20000>; + interrupt-parent = <&gpioc>; + interrupts = <3 IRQ_TYPE_LEVEL_LOW>; + bank-width = <2>; + + /* Timing values are in nS */ + st,fmc2-ebi-cs-mux-enable; + st,fmc2-ebi-cs-transaction-type = <4>; + st,fmc2-ebi-cs-buswidth = <16>; + st,fmc2-ebi-cs-address-setup-ns = <5>; + st,fmc2-ebi-cs-address-hold-ns = <5>; + st,fmc2-ebi-cs-bus-turnaround-ns = <5>; + st,fmc2-ebi-cs-data-setup-ns = <45>; + st,fmc2-ebi-cs-data-hold-ns = <1>; + st,fmc2-ebi-cs-write-address-setup-ns = <5>; + st,fmc2-ebi-cs-write-address-hold-ns = <5>; + st,fmc2-ebi-cs-write-bus-turnaround-ns = <5>; + st,fmc2-ebi-cs-write-data-setup-ns = <45>; + st,fmc2-ebi-cs-write-data-hold-ns = <1>; + }; +}; + +&gpioa { + gpio-line-names = "", "", "", "", + "DRCC-VAR2", "", "", "", + "", "", "", "", + "", "", "", ""; +}; + +&gpioe { + gpio-line-names = "", "", "", "", + "", "DRCC-GPIO0", "", "", + "", "", "", "", + "", "", "", ""; +}; + +&gpiog { + gpio-line-names = "", "", "", "", + "", "", "", "", + "", "", "", "", + "DRCC-GPIO5", "", "", ""; +}; + +&gpioh { + gpio-line-names = "", "", "", "DRCC-HW2", + "DRCC-GPIO4", "", "", "", + "DRCC-HW1", "DRCC-HW0", "", "DRCC-VAR1", + "DRCC-VAR0", "", "", "DRCC-GPIO6"; +}; + +&gpioi { + gpio-line-names = "", "", "", "", + "", "", "", "DRCC-GPIO2", + "", "DRCC-GPIO1", "", "", + "", "", "", ""; +}; + +&i2c1 { /* X11 I2C1 */ + pinctrl-names = "default"; + pinctrl-0 = <&i2c1_pins_b>; + i2c-scl-rising-time-ns = <185>; + i2c-scl-falling-time-ns = <20>; + status = "okay"; + /delete-property/dmas; + /delete-property/dma-names; +}; + +&i2c4 { + hwrtc: rtc@32 { + compatible = "microcrystal,rv8803"; + reg = <0x32>; + }; + + eeprom@50 { + compatible = "atmel,24c04"; + reg = <0x50>; + pagesize = <16>; + }; +}; + +&sdmmc1 { /* MicroSD */ + pinctrl-names = "default", "opendrain", "sleep"; + pinctrl-0 = <&sdmmc1_b4_pins_a>; + pinctrl-1 = <&sdmmc1_b4_od_pins_a>; + pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>; + cd-gpios = <&gpioi 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + disable-wp; + st,neg-edge; + bus-width = <4>; + vmmc-supply = <&vdd>; + vqmmc-supply = <&vdd>; + status = "okay"; +}; + +&sdmmc2 { /* eMMC */ + pinctrl-names = "default", "opendrain", "sleep"; + pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_c>; + pinctrl-1 = <&sdmmc2_b4_od_pins_a &sdmmc2_d47_pins_c>; + pinctrl-2 = <&sdmmc2_b4_sleep_pins_a &sdmmc2_d47_sleep_pins_c>; + bus-width = <8>; + no-sd; + no-sdio; + non-removable; + st,neg-edge; + vmmc-supply = <&v3v3>; + vqmmc-supply = <&vdd>; + status = "okay"; +}; + +&sdmmc3 { /* SDIO Wi-Fi */ + pinctrl-names = "default", "opendrain", "sleep"; + pinctrl-0 = <&sdmmc3_b4_pins_a>; + pinctrl-1 = <&sdmmc3_b4_od_pins_a>; + pinctrl-2 = <&sdmmc3_b4_sleep_pins_a>; + broken-cd; + bus-width = <4>; + mmc-ddr-3_3v; + st,neg-edge; + vmmc-supply = <&v3v3>; + vqmmc-supply = <&v3v3>; + status = "okay"; +}; + +&spi2 { /* X11 SPI */ + pinctrl-names = "default"; + pinctrl-0 = <&spi2_pins_b>; + cs-gpios = <&gpioi 0 0>; + status = "disabled"; + /delete-property/dmas; + /delete-property/dma-names; +}; + +&uart4 { + label = "UART0"; + pinctrl-names = "default"; + pinctrl-0 = <&uart4_pins_d>; + /delete-property/dmas; + /delete-property/dma-names; + status = "okay"; +}; + +&uart5 { /* X11 UART */ + label = "X11-UART5"; + pinctrl-names = "default"; + pinctrl-0 = <&uart5_pins_a>; + /delete-property/dmas; + /delete-property/dma-names; + status = "okay"; +}; + +&uart8 { + label = "RS485-1"; + pinctrl-names = "default"; + pinctrl-0 = <&uart8_pins_a &uart8_rtscts_pins_a>; + uart-has-rtscts; + /delete-property/dmas; + /delete-property/dma-names; + status = "okay"; +}; + +&usart3 { /* RS485 or RS232 */ + label = "RS485-2"; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&usart3_pins_e>; + pinctrl-1 = <&usart3_sleep_pins_e>; + uart-has-rtscts; + /delete-property/dmas; + /delete-property/dma-names; + status = "okay"; +}; + +&usbh_ehci { + phys = <&usbphyc_port0>; + status = "okay"; +}; + +&usbh_ohci { + phys = <&usbphyc_port0>; + status = "okay"; +}; + +&usbotg_hs { + dr_mode = "otg"; + pinctrl-0 = <&usbotg_hs_pins_a>; + pinctrl-names = "default"; + phy-names = "usb2-phy"; + phys = <&usbphyc_port1 0>; + vbus-supply = <&vbus_otg>; + status = "okay"; +}; + +&usbphyc { + status = "okay"; +}; + +&usbphyc_port0 { + phy-supply = <&vdd_usb>; + connector { + compatible = "usb-a-connector"; + vbus-supply = <&vbus_sw>; + }; +}; + +&usbphyc_port1 { + phy-supply = <&vdd_usb>; +};