From patchwork Sun Jun 23 02:33:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: FUKAUMI Naoki X-Patchwork-Id: 13708462 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 388C1C2BD09 for ; Sun, 23 Jun 2024 02:34:48 +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=elhrhkrKX/7jpDvJwku/TbwT6FR8zbM9fVqzqjW/xIg=; b=h8TGafey96TehB quI4F4XLWaEPbJ5aEL88joJr5nmv8pkxmZ5yHvGveGW2NQKmIeMGcO51Ut4i8bGbxg3QChM2We5vf mpqNo7MiLgD+7IFVsmF2Dc8/Y9cVb6zbnExlUSEaSfjjk2e/sJKbd6KRudcjnHFcqS9Ts5tfDQhdE 3thxrnr2nsgpOv1CKgTxremugKGqRewyzczJjhXFADXrqDhH4+25FQx1gBpOKyKLQ4EuLIdlHeNYM qgxhIRt4zI5AXB18Aji775D6JF7t/RHsDAPOAYT9xLYqANNIMKKFNJbkZHGPOcsrBya2fplPkCdXg orKtlSD07u8Dis+ECB/A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLD3z-0000000DCGe-1dOq; Sun, 23 Jun 2024 02:34:43 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLD3x-0000000DCGN-3AQ5 for linux-rockchip@bombadil.infradead.org; Sun, 23 Jun 2024 02:34:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=2LOM0ji64H4D6ppo/JJOmQaNWGkuuXAGDDEtVHopouU=; b=RKtpu7V8uwYpAI4Nb1z+7oLOUF 0CbpnFUS2AAS1y28u6E7xyCWV1OazkGpkwPrGidzm41+Ti5+Vc+LnqIo+4M4RjXi+aiAYZp5z4JQH Y6NBAsbH1Gqfy4I7ckf7zcIqxTz9+uFtrUsL6wgoxptP49lQrJeQzVIWCSu5A4OXOeeJ/NDBLG2Ye sutnzvCjcCfuoixUQy+pXwyp+Ga3obdRSM1whLFpwahukAA3I3lUfTPA9Zhsh+71yTzJlcIUnT0oF VElhUa5mGHmIyj+u2b97l5zBt41CAsQKSvXndSX6zLi8/gHjgZkUaDmYdRqJZPzpYs9OZwtTq1QJC IDzDzbJw==; Received: from sakura.naobsd.org ([160.16.200.221] helo=mail.naobsd.org) by casper.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLD3q-00000008kOG-3kpy for linux-rockchip@lists.infradead.org; Sun, 23 Jun 2024 02:34:40 +0000 Received: from secure.fukaumi.org ([10.0.0.2]) by mail.naobsd.org (8.14.4/8.14.4/Debian-4.1ubuntu1.1) with ESMTP id 45N2XZ4I004959; Sun, 23 Jun 2024 11:33:36 +0900 From: FUKAUMI Naoki To: heiko@sntech.de Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, amadeus@jmu.edu.cn, chris.obbard@collabora.com, sebastian.reichel@collabora.com, devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, FUKAUMI Naoki Subject: [PATCH 1/3] arm64: dts: rockchip: add SFC support for Radxa ROCK 5B Date: Sun, 23 Jun 2024 11:33:27 +0900 Message-ID: <20240623023329.1044-1-naoki@radxa.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240623_033435_446694_3F218EC1 X-CRM114-Status: UNSURE ( 7.17 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org This commit adds support for SPI NOR flash on Radxa ROCK 5B. SPI NOR flash chip may vary, so use safe(lowest) spi-max-frequency. Signed-off-by: FUKAUMI Naoki --- arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts index 6a3fd6be1793..966bbc582d89 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts @@ -449,6 +449,20 @@ &sdio { status = "okay"; }; +&sfc { + pinctrl-names = "default"; + pinctrl-0 = <&fspim2_pins>; + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <104000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <1>; + }; +}; + &uart6 { pinctrl-names = "default"; pinctrl-0 = <&uart6m1_xfer &uart6m1_ctsn &uart6m1_rtsn>; From patchwork Sun Jun 23 02:33:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: FUKAUMI Naoki X-Patchwork-Id: 13708463 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 BCADAC2D0D1 for ; Sun, 23 Jun 2024 02:34:48 +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=wxp0yOgPWKSdFgT+NlCnbLhzEy+BwAt6jd7O6vMBaRs=; b=KHTfwFkGWV7T2F 6AY8zUo7QVZ7E6PdzkcwcsATT2bSiPFWXlQH7OlfwsItVrWKw6bnou577HqoQ/ujdmeFihEYXFrWO ucyEeQgsbJsulriC4EDRGcCjjPqfIG4QUd/8havcSmmH72K0d79/sHXJqr/yc1w3Xhx7qnzpr0nzw qRs68vnOOtwVS54Nt3AYZmSu6cB6MFtViOOSDr6+bGOUkxwcHJjnQfvcJw4v7kgpLsvSQwLULuEhE +LvFhGjsiBLEvEJlvb5asiiGLyhsQ6JeHU54Sc68Or4emt0aHaa61Tw+cXDQuPa6dg2lIOLhxJnIE UB6GZx8OsakBHVaS0zZg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLD42-0000000DCHX-0saR; Sun, 23 Jun 2024 02:34:46 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLD3z-0000000DCGb-04o6 for linux-rockchip@bombadil.infradead.org; Sun, 23 Jun 2024 02:34:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=qUjo6glw2EPuF+A9RYVF53JMUdRwUonpdGyVImV76Cs=; b=HCJ2rYv5uOWLcyhfPQa+JJs4OU Xt8ipxd2DlL2i/8035CpS3rgGzSn/4eN4txLpNniQAuOhtvljtykW7IXsQCv1B3/XAoBF74rnPk1r CGU4quYK+7+FzOIqjSTBMdVIC5LZhLsW/6Xg3PHX4cS914Qyb6OhA5BA9YPmsSJOwV1FitN/03shH siRDARCxbwsPfhyO6nMpgy5y+G4TrB+MAHZA+w5kyGvyoZZ0F57gjslNjIfH7Z/QdfUjOGPekugnw 2qjihV2rjurKAHhDpnB9kDzfJbWVp8gY1T6wxHdJcLCIUf8EiAZbl546QOOH/dzc7r5/oIHJrTMRq WDxVkRNg==; Received: from sakura.naobsd.org ([160.16.200.221] helo=mail.naobsd.org) by casper.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLD3r-00000008kOF-0mRp for linux-rockchip@lists.infradead.org; Sun, 23 Jun 2024 02:34:42 +0000 Received: from secure.fukaumi.org ([10.0.0.2]) by mail.naobsd.org (8.14.4/8.14.4/Debian-4.1ubuntu1.1) with ESMTP id 45N2XZ4J004959; Sun, 23 Jun 2024 11:33:38 +0900 From: FUKAUMI Naoki To: heiko@sntech.de Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, amadeus@jmu.edu.cn, chris.obbard@collabora.com, sebastian.reichel@collabora.com, devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, FUKAUMI Naoki Subject: [PATCH 2/3] arm64: dts: rockchip: add (but disabled) SFC node for Radxa ROCK 5A Date: Sun, 23 Jun 2024 11:33:28 +0900 Message-ID: <20240623023329.1044-2-naoki@radxa.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240623023329.1044-1-naoki@radxa.com> References: <20240623023329.1044-1-naoki@radxa.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240623_033435_736417_207BE761 X-CRM114-Status: UNSURE ( 6.82 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org This commit adds SFC node for Radxa ROCK 5A. since sdhci and sfc on RK3588s share pins(i.e. exclusive), it cannot be enabled both nodes at the same time. so status = "okay" is omitted here. you may be able to enable sfc (and disable sdhci) by fdt overlay. SPI NOR flash chip may vary, so use safe(lowest) spi-max-frequency. Signed-off-by: FUKAUMI Naoki --- arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts index c0f6a4b1493f..03ed48246d36 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts @@ -377,6 +377,19 @@ &sdmmc { status = "okay"; }; +&sfc { + pinctrl-names = "default"; + pinctrl-0 = <&fspim0_pins>; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <104000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <1>; + }; +}; + &spi2 { status = "okay"; assigned-clocks = <&cru CLK_SPI2>; From patchwork Sun Jun 23 02:33:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: FUKAUMI Naoki X-Patchwork-Id: 13708464 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 79FB7C2D0D0 for ; Sun, 23 Jun 2024 02:34: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=RlU8pMb2dZQBZIQjHUEDaEjWMZLZC5MsC27MvgUIE70=; b=kC2pSLECSiDili eTRG3syH4JNo9iLhIAHX7+kUkq6yJ2SILFouic0rFb5AnVT83BXELZT6x9eO6VJ+FIk4ubtF/l6Gu lVUBlI+7nM+GP9tZE2A4iGFbWMBvoVPyX8YJYKi1jGZnt9w3l1r7rvEJSQAWnzTePJUx/NT3q7MwA R5kntOV6C8pQy8MfMXSPFxuax1NfA2ejgXinJKToc6/yeItK6v2S0aUzU5oc8MGMfh74blvPkQ2S1 Gdz8r7Hyx+UccTPQX3AG/px5BgjI7q0Q9WIoLRFo4SJ7VvLbQl+dl0ZyKLDJJG1St9yFNhk/btBOR tHmlgJW80FRaBP/D4IhA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLD3z-0000000DCGn-38ER; Sun, 23 Jun 2024 02:34:43 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLD3x-0000000DCGO-3MXe for linux-rockchip@bombadil.infradead.org; Sun, 23 Jun 2024 02:34:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=ifYpq61e7V92foiuY2U6mqalmp1ulA4wZQr6HWkRWFI=; b=t5obUYlC8SrgmZSZCqhnhUuyyU 8esJBe+FeH2zudfAeA0EbUD76ckRWkuTKo8FOnjk0DWWcXQ+gD60VVm5ARno+JGx56foLeJ+cgi2n Dv5BgK0sWJ0kYo1R8eyM343KXjXHJpKPuK9YeJmr062yiGoGUDppnxzPp7N8zNOYN84OetVRp491g 0589WVFgxXUELECZtGV5YeDuyXhtuBetou/uIuHLDYnhxzi2DdU7KavbITw+CI31O3GntKxv5l+4r 6FdM2tv+pOKcCNFi0nFgiux3tau+62oEJgkP0B7Tk70PtHG2S7DufNAtIKaqTJUa668f3JY3KKcde Rx5Gz7rg==; Received: from sakura.naobsd.org ([160.16.200.221] helo=mail.naobsd.org) by casper.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLD3r-00000008kOH-0qlo for linux-rockchip@lists.infradead.org; Sun, 23 Jun 2024 02:34:40 +0000 Received: from secure.fukaumi.org ([10.0.0.2]) by mail.naobsd.org (8.14.4/8.14.4/Debian-4.1ubuntu1.1) with ESMTP id 45N2XZ4K004959; Sun, 23 Jun 2024 11:33:38 +0900 From: FUKAUMI Naoki To: heiko@sntech.de Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, amadeus@jmu.edu.cn, chris.obbard@collabora.com, sebastian.reichel@collabora.com, devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, FUKAUMI Naoki Subject: [PATCH 3/3] arm64: dts: rockchip: change spi-max-frequency for Radxa ROCK 3C Date: Sun, 23 Jun 2024 11:33:29 +0900 Message-ID: <20240623023329.1044-3-naoki@radxa.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240623023329.1044-1-naoki@radxa.com> References: <20240623023329.1044-1-naoki@radxa.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240623_033435_721200_0DA18840 X-CRM114-Status: UNSURE ( 8.32 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org SPI NOR flash chip may vary, so use safe(lowest) spi-max-frequency. Fixes: ee219017ddb5 ("arm64: dts: rockchip: Add Radxa ROCK 3C") Signed-off-by: FUKAUMI Naoki --- arch/arm64/boot/dts/rockchip/rk3566-rock-3c.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3566-rock-3c.dts b/arch/arm64/boot/dts/rockchip/rk3566-rock-3c.dts index b242409d378c..f2cc086e5001 100644 --- a/arch/arm64/boot/dts/rockchip/rk3566-rock-3c.dts +++ b/arch/arm64/boot/dts/rockchip/rk3566-rock-3c.dts @@ -633,7 +633,7 @@ &sfc { flash@0 { compatible = "jedec,spi-nor"; reg = <0x0>; - spi-max-frequency = <120000000>; + spi-max-frequency = <104000000>; spi-rx-bus-width = <4>; spi-tx-bus-width = <1>; };