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 CD45CC4338F for ; Sun, 25 Jul 2021 23:33:00 +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 1771260EB4 for ; Sun, 25 Jul 2021 23:33:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 1771260EB4 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 A957F83253; Mon, 26 Jul 2021 01:32:42 +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 1F3E983250; Mon, 26 Jul 2021 01:16:52 +0200 (CEST) Received: from mail-qv1-f52.google.com (mail-qv1-f52.google.com [209.85.219.52]) (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 34EA68323F 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-qv1-f52.google.com with SMTP id hu11so4229827qvb.7 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=Ou5aFJwRJ5o3qLQzo0ZdZng3F5RpFEQi85Ze45wHrMU=; b=FeSNGk3PqdxTXSK1iwQ+64KuHciOqxq6i9NeH82UR79dhtPe117b0HM24nxv5LVF8f lJilz5varmkrRQuGkeFuQ4p6vdxRizFo/4n0P2y6TaWiizKwYKmm9FDQsoN0dDaUDQCz cBrn5K0ySR1J1DYrmU5E7Z9QMkmBJ1jNd/yA5HVwFoG72cW+3CGn5P5kSFV/jNfhYx49 jb4UCUSlsw+juChh6hAjqZaqav2xc+KCoyDK/w5865MwYvNzyTHEGVtHPbqBnou8Izrx mqi0Pi0jVt9cQfzS6qNX/nhrbyrJ0BIinfEjuYtrDysFNXN6Kw2iTecU+qdtCgsOQq/L PhdA== X-Gm-Message-State: AOAM530FE4N07d/3CHZnZASu93fFXaIutpkP6sN8wM5AFdhKVn2wiEbo Jds6L8QiWcDuC8Bg/PIw0KA/ad3C/R2GZJD2 X-Google-Smtp-Source: ABdhPJykuXojT1kl36hed7sGu98OM5wuM+9yil6SgyEHRZSbF06ltioajAwfql38Rr7bU4ugQ3htlg== X-Received: by 2002:a05:6214:5098:: with SMTP id kk24mr15093587qvb.26.1627255001872; Sun, 25 Jul 2021 16:16:41 -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:41 -0700 (PDT) From: Yifan Gu To: u-boot@lists.denx.de Cc: Yifan Gu , Jagan Teki , Andre Przywara , Icenowy Zheng , George Hilliard Subject: [PATCH 07/27] sunxi: add SPI0 node for suniv Date: Sun, 25 Jul 2021 19:16:16 -0400 Message-Id: <20210725231636.879913-8-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 suniv SoC has two SPI controllers, in which SPI0 is bootable. Add device tree node of the controller and its bootable pinmux node. Signed-off-by: Icenowy Zheng Signed-off-by: Yifan Gu --- arch/arm/dts/suniv.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/dts/suniv.dtsi b/arch/arm/dts/suniv.dtsi index a5673f5006..b11d9eb57a 100644 --- a/arch/arm/dts/suniv.dtsi +++ b/arch/arm/dts/suniv.dtsi @@ -76,6 +76,19 @@ }; }; + spi0: spi@1c05000 { + compatible = "allwinner,suniv-spi", + "allwinner,sun8i-h3-spi"; + reg = <0x01c05000 0x1000>; + interrupts = <10>; + clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_BUS_SPI0>; + clock-names = "ahb", "mod"; + resets = <&ccu RST_BUS_SPI0>; + status = "disabled"; + #address-cells = <1>; + #size-cells = <0>; + }; + ccu: clock@1c20000 { compatible = "allwinner,suniv-f1c100s-ccu"; reg = <0x01c20000 0x400>; @@ -103,6 +116,11 @@ #interrupt-cells = <3>; #gpio-cells = <3>; + spi0_pins_a: spi0-pins-pc { + pins = "PC0", "PC1", "PC2", "PC3"; + function = "spi0"; + }; + uart0_pe_pins: uart-pins-pe { pins = "PE0", "PE1"; function = "uart0"; -- 2.25.1