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=-16.8 required=3.0 tests=BAYES_00, 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 76352C4338F for ; Sun, 25 Jul 2021 23:33:12 +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 CE22D60EB4 for ; Sun, 25 Jul 2021 23:33:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org CE22D60EB4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=yifangu.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5026F82C28; Mon, 26 Jul 2021 01:32:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=yifangu.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id DDF5A83252; Mon, 26 Jul 2021 01:16:53 +0200 (CEST) Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) (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 A4DC783242 for ; Mon, 26 Jul 2021 01:16:43 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=yifangu.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=gyf304@gmail.com Received: by mail-qk1-f180.google.com with SMTP id 184so7245080qkh.1 for ; Sun, 25 Jul 2021 16:16:43 -0700 (PDT) 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=uAkcrkd/DilzK5ZzVQzyxNs0nd/vCZUlZ5xG4+0YCWw=; b=mAuGWQFmtqGUMj/rJo9tVdEamofAB733Ive0VbM3hh/EyC59DDTYsjf9GsZN3yXRr+ e6evmVaRtc7jH+KJqQ2n039anG65ACdL0pnNkWE297ZVbhtdGiTs6ZF9JJLx+h1vVMLN pt358dgtcEIiwlZd23y09ZEKR/9tbsqMQ3cXr/ZQc9jQficn6Hk0S7n92ZsaIFii7lBQ voDaJAQDmunT0y/A4PspiD0d3GD2ocv7aB7z5p0b6jD5m8bk42kLpzY7T+CmApxDVw6D ZqWOvLJtI02ajZo4Zf+vQP1nQECaU7+N164Q0feG6bPiri5EpKFXHoHO+ZWE7Ff37t0j LL0g== X-Gm-Message-State: AOAM530uVxDVkpClL2qRc1seU24IR9F29/lx5Xhs8affuekyUad2/hxN 7Tdo6174p4DVl9l0Yz3VzlgF08Zb3lCYqTzC X-Google-Smtp-Source: ABdhPJyVj2qukVnFYAYQlOiAdhAnOneV/EyYAxjYxid9V7DmOk+1K39f3z82eFX5JvG2Onj9VIReRw== X-Received: by 2002:a37:a241:: with SMTP id l62mr14911781qke.47.1627255002422; Sun, 25 Jul 2021 16:16:42 -0700 (PDT) Received: from yifangu-Virtual-Machine.mshome.net (pool-100-6-159-43.pitbpa.fios.verizon.net. [100.6.159.43]) by smtp.gmail.com with ESMTPSA id u184sm17754694qkd.53.2021.07.25.16.16.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Jul 2021 16:16:42 -0700 (PDT) From: Yifan Gu To: u-boot@lists.denx.de Cc: Yifan Gu , Jagan Teki , Andre Przywara , Icenowy Zheng , George Hilliard Subject: [PATCH 08/27] sunxi: enable SPI NOR on Lichee Pi Nano Date: Sun, 25 Jul 2021 19:16:17 -0400 Message-Id: <20210725231636.879913-9-me@yifangu.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210725231636.879913-1-me@yifangu.com> References: <20210725231636.879913-1-me@yifangu.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Mon, 26 Jul 2021 01:32:10 +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.103.2 at phobos.denx.de X-Virus-Status: Clean From: Icenowy Zheng The Lichee Pi Nano board has a Winbond W25Q128 SPI flash on it. Enable it. Signed-off-by: Icenowy Zheng Signed-off-by: Yifan Gu --- arch/arm/dts/suniv-f1c100s-licheepi-nano.dts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/dts/suniv-f1c100s-licheepi-nano.dts b/arch/arm/dts/suniv-f1c100s-licheepi-nano.dts index 2820f8238d..f2794e46f2 100644 --- a/arch/arm/dts/suniv-f1c100s-licheepi-nano.dts +++ b/arch/arm/dts/suniv-f1c100s-licheepi-nano.dts @@ -15,6 +15,7 @@ aliases { serial0 = &uart0; + spi0 = &spi0; }; chosen { @@ -26,6 +27,20 @@ status = "okay"; }; +&spi0 { + pinctrl-names = "default"; + pinctrl-0 = <&spi0_pins_a>; + status = "okay"; + + flash@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "winbond,w25q128", "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <40000000>; + }; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pe_pins>; -- 2.25.1