Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3736674pxj; Mon, 7 Jun 2021 19:37:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzePkoFMfiSm/jiNKWrAGXLqmlhaVGPNFQJJKXIQJZJ2EQTV2BXU23VtCIv26i1sdcOfY2H X-Received: by 2002:a05:6402:5a:: with SMTP id f26mr23068369edu.306.1623119859513; Mon, 07 Jun 2021 19:37:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623119859; cv=none; d=google.com; s=arc-20160816; b=m9PNa2LltaPOomxfEFb12vjBPc2fh6sjMwjGgSmtt5cHfr0rD0R+cOn8TYng9Uu0ca IJ/cpe9TxHRPzdUJBWCClG6iHm5uqrsKw+VoSXHVVrp7CXBHgoS8uZZRllLKcfTHs79+ XcyEKLjA98GLBJlZOcmFhaMPaN16Qxaa4R/Q1eaFAUEzzwS+0FTvSsCjjXM1dxDAb7cO Q9Srkd4Myk6loX8emr+7VMkg3LSsfJ+UdnCeTZVyS6+y9PMwAflmkYQKfvaPxfqTl5IY zgGyoERZMHM1k3w93cArmFdU31t/Nr+MGTnWGj7woasMWm/Gf875GUs/5xd0qazsj5Sv XT2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=4LfQiRWaMxHZHIUi4UvuZK6cbcnEQ+KjEcjlIc9RQyY=; b=kl2skAu5DlNrkPrv19DSNRLTovhGmafMkC/ehzZb9JF0H4sOmPFH59+hhJ8WJEkwXX RCJLGelbpkNar5+Ygn4royMNVsGsBEJf6br7xIlfz1aYuoq6wfL2B1LBhIiyyE7qpKKl qUoBpOpWj8dfMOtyCTGeff90B9hJyIiJZApUuLhisbZdkldjbrV/u5ZJgT0uC4uBZMaG Q1O54v3/R7SIw0i2moje68YsL26CYO+9m/EzOnmzw5/57ifWFufPlfoyja7DvdBqKCts A6uu2IUN/R2kW31XWICi/C+eg/vpTLlrWa6y3xeXPE/VhewJXSkSDMoq5Wsaw9szN8Pi ZwQQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y8si15186736edw.228.2021.06.07.19.37.16; Mon, 07 Jun 2021 19:37:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231173AbhFHCha (ORCPT + 99 others); Mon, 7 Jun 2021 22:37:30 -0400 Received: from lucky1.263xmail.com ([211.157.147.135]:52534 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230407AbhFHCh3 (ORCPT ); Mon, 7 Jun 2021 22:37:29 -0400 Received: from localhost (unknown [192.168.167.16]) by lucky1.263xmail.com (Postfix) with ESMTP id 890B4AD378; Tue, 8 Jun 2021 10:33:13 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ADDR-CHECKED4: 1 X-ANTISPAM-LEVEL: 2 X-ABS-CHECKED: 0 Received: from localhost.localdomain (unknown [58.22.7.114]) by smtp.263.net (postfix) whith ESMTP id P32529T140357266978560S1623119587131429_; Tue, 08 Jun 2021 10:33:13 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: <882c172b6943d99ddd1d475772e7a370> X-RL-SENDER: jon.lin@rock-chips.com X-SENDER: jon.lin@rock-chips.com X-LOGIN-NAME: jon.lin@rock-chips.com X-FST-TO: linux-spi@vger.kernel.org X-RCPT-COUNT: 17 X-SENDER-IP: 58.22.7.114 X-ATTACHMENT-NUM: 0 X-System-Flag: 0 From: Jon Lin To: linux-spi@vger.kernel.org Cc: jon.lin@rock-chips.com, broonie@kernel.org, robh+dt@kernel.org, heiko@sntech.de, jbx6244@gmail.com, hjc@rock-chips.com, yifeng.zhao@rock-chips.com, sugar.zhang@rock-chips.com, linux-rockchip@lists.infradead.org, linux-mtd@lists.infradead.org, p.yadav@ti.com, macroalpha82@gmail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Chris Morgan Subject: [PATCH v6 8/8] arm64: dts: rockchip: Enable SFC for Odroid Go Advance Date: Tue, 8 Jun 2021 10:33:05 +0800 Message-Id: <20210608023305.25371-4-jon.lin@rock-chips.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210608023305.25371-1-jon.lin@rock-chips.com> References: <20210608022644.21074-1-jon.lin@rock-chips.com> <20210608023305.25371-1-jon.lin@rock-chips.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chris Morgan This enables the Rockchip Serial Flash Controller for the Odroid Go Advance. Note that while the attached SPI NOR flash and the controller both support quad read mode, only 2 of the required 4 pins are present. The rx and tx bus width is set to 2 for this reason. Signed-off-by: Chris Morgan Signed-off-by: Jon Lin --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None Changes in v1: None .../boot/dts/rockchip/rk3326-odroid-go2.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2.dts b/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2.dts index 49c97f76df77..f78e11dd8447 100644 --- a/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2.dts +++ b/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2.dts @@ -484,6 +484,22 @@ status = "okay"; }; +&sfc { + pinctrl-0 = <&sfc_clk &sfc_cs0 &sfc_bus2>; + pinctrl-names = "default"; + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <108000000>; + spi-rx-bus-width = <2>; + spi-tx-bus-width = <2>; + }; +}; + &tsadc { status = "okay"; }; -- 2.17.1