Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp3037567rwr; Sun, 7 May 2023 03:29:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7otj2pt8fdvrt/fujMlZLFUy28t3osZw1TVF9ZCe6aGEq6XJo5M1wr+iiIovmrWgx4Bad7 X-Received: by 2002:a05:6a21:3a43:b0:f6:55c:5371 with SMTP id zu3-20020a056a213a4300b000f6055c5371mr7278046pzb.49.1683455366806; Sun, 07 May 2023 03:29:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683455366; cv=none; d=google.com; s=arc-20160816; b=LuqH/4M/8Rcr4GpLdh7FIo+7Q4T8lDq7Upsgmk7t9fCXAOTRNmyffhqmbA/QxVQimU l6roY1EeP3c9AuVupigWB4O/oiYxApbU971hxcknwmpMQZMV6EcL/ZyjN5wR5VaSEtkF aQTX5U/8B+t1joX3MmeKM0gsDsAN6sH2W2VsbWm2EXEsLVd/dTIHrpqV+iZNIXGyLQ1i wl5nXJx+ij/ZM4wOBHPlmx0LF2bs/N2Vc9G2G3HkO97AWznMqr45GIEHY/3EPlPAo5zD u8KpphVLvqn9nVmck3GejH0RMbLY9x0ImozoLAO5eqP1QGwSn4/oxBA6N9IsXAUqK2gC /lEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=GtoyblOi2mfyGl5xSuuUKQoTDR5ppda5uadkAY/Utv4=; b=Q11cGOjcPS0LL73zqnOvY6r0VW/1zEOGkbVG4aMSjc3/hgQcG4sOGn5YnE4Bz9AS1F YGnPTIyUD/i2Nz9JLn6xZAEwJMYojs1vzJIxGnNwjPRPAHYwABvURVk7Ewki7Wo9Lg4+ vFZmBY6pNv3I5CDggyFd1ZiU2pUxPx8jLR8410JQPaa6Wu/T+OkscM3Hau3thyNQWCvx 07JVnZgIaOnZovgdkhb4FpgVN8L7VoMmAmIw7PdIKVOORoI6qW9R6Qk2dHu4zbAbMEv/ eNKQR0TSDmclDdUXKNwDFQ0vPUL+3RFwNVHTJtCWylg0jzM2SROXDhvSzUcWTlregBvi 1Ncw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r202-20020a632bd3000000b0052cc0c1c39bsi3099347pgr.684.2023.05.07.03.29.11; Sun, 07 May 2023 03:29:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231468AbjEGJwn (ORCPT + 99 others); Sun, 7 May 2023 05:52:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231491AbjEGJwk (ORCPT ); Sun, 7 May 2023 05:52:40 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 772221635B; Sun, 7 May 2023 02:52:33 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 757DD2F4; Sun, 7 May 2023 02:53:17 -0700 (PDT) Received: from slackpad.lan (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CFD1F3F64C; Sun, 7 May 2023 02:52:29 -0700 (PDT) Date: Sun, 7 May 2023 10:52:10 +0100 From: Andre Przywara To: Maksim Kiselev Cc: Icenowy Zheng , Conor Dooley , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Paul Walmsley , Palmer Dabbelt , Albert Ou , Cristian Ciocaltea , Maxime Ripard , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH v3 5/5] riscv: dts: allwinner: d1: Add SPI controllers node Message-ID: <20230507105210.1deba8c1@slackpad.lan> In-Reply-To: <20230506232616.1792109-6-bigunclemax@gmail.com> References: <20230506232616.1792109-1-bigunclemax@gmail.com> <20230506232616.1792109-6-bigunclemax@gmail.com> Organization: Arm Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.31; x86_64-slackware-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 7 May 2023 02:26:08 +0300 Maksim Kiselev wrote: > Some boards form the MangoPi family (MQ\MQ-Dual\MQ-R) may have > an optional SPI flash that connects to the SPI0 controller. > > This controller is the same for R329/D1/R528/T113s SoCs and > should be supported by the sun50i-r329-spi driver. > > So let's add its DT nodes. > > Signed-off-by: Maksim Kiselev > Acked-by: Conor Dooley Looks alright, thanks for the changes: Reviewed-by: Andre Przywara Cheers, Andre > --- > .../boot/dts/allwinner/sunxi-d1s-t113.dtsi | 37 +++++++++++++++++++ > 1 file changed, 37 insertions(+) > > diff --git a/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi b/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi > index 922e8e0e2c09..1bb1e5cae602 100644 > --- a/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi > +++ b/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi > @@ -108,6 +108,12 @@ rmii_pe_pins: rmii-pe-pins { > function = "emac"; > }; > > + /omit-if-no-ref/ > + spi0_pins: spi0-pins { > + pins = "PC2", "PC3", "PC4", "PC5"; > + function = "spi0"; > + }; > + > /omit-if-no-ref/ > uart1_pg6_pins: uart1-pg6-pins { > pins = "PG6", "PG7"; > @@ -447,6 +453,37 @@ mmc2: mmc@4022000 { > #size-cells = <0>; > }; > > + spi0: spi@4025000 { > + compatible = "allwinner,sun20i-d1-spi", > + "allwinner,sun50i-r329-spi"; > + reg = <0x04025000 0x1000>; > + interrupts = ; > + clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_SPI0>; > + clock-names = "ahb", "mod"; > + dmas = <&dma 22>, <&dma 22>; > + dma-names = "rx", "tx"; > + resets = <&ccu RST_BUS_SPI0>; > + status = "disabled"; > + #address-cells = <1>; > + #size-cells = <0>; > + }; > + > + spi1: spi@4026000 { > + compatible = "allwinner,sun20i-d1-spi-dbi", > + "allwinner,sun50i-r329-spi-dbi", > + "allwinner,sun50i-r329-spi"; > + reg = <0x04026000 0x1000>; > + interrupts = ; > + clocks = <&ccu CLK_BUS_SPI1>, <&ccu CLK_SPI1>; > + clock-names = "ahb", "mod"; > + dmas = <&dma 23>, <&dma 23>; > + dma-names = "rx", "tx"; > + resets = <&ccu RST_BUS_SPI1>; > + status = "disabled"; > + #address-cells = <1>; > + #size-cells = <0>; > + }; > + > usb_otg: usb@4100000 { > compatible = "allwinner,sun20i-d1-musb", > "allwinner,sun8i-a33-musb";