From patchwork Mon Apr 8 12:40:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chukun Pan X-Patchwork-Id: 13621089 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 69164CD128A for ; Mon, 8 Apr 2024 12:40:54 +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=x5igPjOYTYtMkiO/jCNuCcR30Ifljwb6dTQ4oEVLIOE=; b=sPO1sg2u8eDJFX fUwHq7ow5i6StSFVyizWb4f4W5fIoyrOnrxao2HXC3BlJjs4f64aJubQUm/l2Rk1rlcu85FvnGSxc YQ1mqLkf8I5Ewr7DCxZr4ZMctOjFtV8gg/WEAm7bsLWIrDlcnkIIX2i0PrJcV+1T0kxRKMkJAZ+ce 5NQAC0rY7L4u5aCfeMwontwZLpSRNu0hfOwwYVqeAVEpwGMV4SXQqUMn6danlYORy8jLhtqFzpF4j Ju4SdtzYisEEUiEtDRttSN0EfbeIl2ImlJ/eR6LajpNfwLlF+R2btRrkwJCwpEQi/Zkxjyecl7Xfk ThbQYcPsgxlTQQLQNBBA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rtoIi-0000000FXfj-0eZ0; Mon, 08 Apr 2024 12:40:40 +0000 Received: from mail-m49197.qiye.163.com ([45.254.49.197]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rtoId-0000000FXd5-0U1B; Mon, 08 Apr 2024 12:40:37 +0000 Received: from amadeus-Vostro-3710.lan (unknown [IPV6:240e:3b3:2c00:8840:aaa3:4cf8:b210:c09d]) by smtp.qiye.163.com (Hmail) with ESMTPA id 446BB7E013A; Mon, 8 Apr 2024 20:40:10 +0800 (CST) From: Chukun Pan To: Heiko Stuebner Cc: Conor Dooley , Krzysztof Kozlowski , Rob Herring , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Chukun Pan Subject: [PATCH 1/1] arm64: dts: rockchip: enable onboard spi flash for rock-3a Date: Mon, 8 Apr 2024 20:40:05 +0800 Message-Id: <20240408124005.182565-1-amadeus@jmu.edu.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkZGBpIVksaGENPHUlJHUtNT1UTARMWGhIXJBQOD1 lXWRgSC1lBWUlPSx5BSBlIQUkYS0tBQ0NPS0EaGhpIQU8YHUNBGUlKS0EYS0IfWVdZFhoPEhUdFF lBWU9LSFVKSktISkNVSktLVUtZBg++ X-HM-Tid: 0a8ebdb921fc03a2kunm446bb7e013a X-HM-MType: 10 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Nyo6CRw*SzMRSiIhDCIWLDot HT8KFAxVSlVKTEpJTkNLS0pLQ05MVTMWGhIXVRoWGh8eDgg7ERYOVR4fDlUYFUVZV1kSC1lBWUlP Sx5BSBlIQUkYS0tBQ0NPS0EaGhpIQU8YHUNBGUlKS0EYS0IfWVdZCAFZQUlLT083Bg++ X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240408_054035_395173_434398A4 X-CRM114-Status: UNSURE ( 7.13 ) 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 There is a mx25u12835f spi flash on this board, enable it. [ 2.525805] spi-nor spi4.0: mx25u12835f (16384 Kbytes) Signed-off-by: Chukun Pan --- arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts index a5e974ea659e..d8738cc47c73 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts @@ -757,6 +757,18 @@ &sdmmc2 { status = "okay"; }; +&sfc { + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0x0>; + spi-max-frequency = <50000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <1>; + }; +}; + &tsadc { rockchip,hw-tshut-mode = <1>; rockchip,hw-tshut-polarity = <0>;