From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B910C4707F for ; Tue, 25 May 2021 22:01:32 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 56DCA613F1 for ; Tue, 25 May 2021 22:01:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 56DCA613F1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1F57182EE5; Wed, 26 May 2021 00:01:05 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="jzshOFjU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 463BE82EE2; Tue, 25 May 2021 23:49:44 +0200 (CEST) Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2EB7182CAC for ; Tue, 25 May 2021 23:49:41 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=macroalpha82@gmail.com Received: by mail-oi1-x235.google.com with SMTP id c196so23512897oib.9 for ; Tue, 25 May 2021 14:49:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RhXAvGwGQ/762u9WHAilcGs1XA1ct0pqSVsi+1IKuF8=; b=jzshOFjUksf+RaMdJZovfIkVctqKv/VPhlgy9trv9TYTRzq+EE3cy9261qYDIosZ1M x3B6wG3GpvxufRZZoU60f+JBR7HGEKqwsdtkngHicn0/XGnmMSxj+rSsfUrpgU53jthm snTmEUfAcIKDWDRnqkucXqxQrGAFZWOayg/ax1TGZ0UHCzc+tKmHLKq5V92CqkTqHoJA Z9FUMIY1FXbtzzSxQAIjjRHKEpnEyyVdwsavBlq4Yc0QKgyNVn60ujKAnZRO0M5BxneK VwJR23V5nTnyIZ9RufFG34Roo97QGoLuswvUdPynaETRmgzka7bNUazlTTvku7qY+Skf j5ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RhXAvGwGQ/762u9WHAilcGs1XA1ct0pqSVsi+1IKuF8=; b=tb37AI9fgOZC6eav7MWHTZG7V+/32Ir64ZvtOaqxPWBH8gLApPMpwLd0jJmdPxxrPI eznbWwdRBgZbC/win1lUqfaOdAYCtSFVprNKNNiGwAAPMWkES5E3cay3YEPjuKDg3J/w a1/uf0bUmjbxM4cbG43jMKaRPj4fgckYRyj7GsInnwWTxThZptsd7K+YyP1pSk4jvBGg +dpK3AihEsdyTDqdh+wprLdU38vubMlZDZAj988CoCl3+83xQQFmsKmgLN4kJgDIE5nn X3LSE0PLtHHlkz2fDl0CEcjzwX1bh2JBUkKbMYONoMIyagwbZ+zqwpDqMnT47GUiSGqJ L8oA== X-Gm-Message-State: AOAM531+p/2GJpT8RQZhGgGygQcr9rq7qWM0HiDQ3WT8oOrJNtRgGrGS CL4Z9LjhHeFCYxp6+9OVUuhHayXQF2A= X-Google-Smtp-Source: ABdhPJxrI8aCC8M7tHccJ4RQkxoW8VrKcUq8Qf4jqeexyLjAhMjBCdQErLGtk/pJMLOiQvW9l/mK2Q== X-Received: by 2002:aca:4a8d:: with SMTP id x135mr288258oia.148.1621979379455; Tue, 25 May 2021 14:49:39 -0700 (PDT) Received: from wintermute.localdomain (cpe-76-183-134-35.tx.res.rr.com. [76.183.134.35]) by smtp.gmail.com with ESMTPSA id s85sm3730988oos.4.2021.05.25.14.49.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 May 2021 14:49:39 -0700 (PDT) From: Chris Morgan To: u-boot@lists.denx.de Cc: heiko.stuebner@theobroma-systems.com, vigneshr@ti.com, jagan@amarulasolutions.com, kever.yang@rock-chips.com, philipp.tomsich@theobroma-systems.com, sjg@chromium.org, Chris Morgan Subject: [PATCH 5/5] rockchip: px30: add support for SFC for Odroid Go Advance Date: Tue, 25 May 2021 16:49:21 -0500 Message-Id: <20210525214921.16606-6-macroalpha82@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210525214921.16606-1-macroalpha82@gmail.com> References: <20210525214921.16606-1-macroalpha82@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Wed, 26 May 2021 00:00:40 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean From: Chris Morgan The Odroid Go Advance uses a Rockchip Serial Flash Controller with an XT25F128B SPI NOR flash chip. This adds support for both. Signed-off-by: Chris Morgan --- arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi | 8 ++++++++ arch/arm/dts/rk3326-odroid-go2.dts | 22 ++++++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi b/arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi index 00767d2abd..7527a6ed0e 100644 --- a/arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi +++ b/arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi @@ -57,6 +57,14 @@ u-boot,spl-fifo-mode; }; +&sfc { + u-boot,dm-pre-reloc; +}; + +&spi_flash { + u-boot,dm-pre-reloc; +}; + &uart1 { clock-frequency = <24000000>; u-boot,dm-pre-reloc; diff --git a/arch/arm/dts/rk3326-odroid-go2.dts b/arch/arm/dts/rk3326-odroid-go2.dts index 8cd4688c49..eb8a21ce66 100644 --- a/arch/arm/dts/rk3326-odroid-go2.dts +++ b/arch/arm/dts/rk3326-odroid-go2.dts @@ -48,6 +48,14 @@ }; }; + aliases { + i2c0 = &i2c0; + i2c1 = &i2c1; + serial1 = &uart1; + serial2 = &uart2; + spi0 = &sfc; + }; + gpio-keys { compatible = "gpio-keys"; pinctrl-names = "default"; @@ -617,6 +625,20 @@ status = "okay"; }; +&sfc { + #address-cells = <1>; + #size-cells = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&sfc_clk &sfc_cs &sfc_bus2>; + status = "okay"; + + spi_flash: xt25f128b@0 { + reg = <0>; + compatible = "xtx,xt25f128b","jedec,spi-nor"; + spi-max-frequency = <108000000>; + }; +}; + &tsadc { status = "okay"; }; -- 2.25.1