Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp564027rwr; Fri, 5 May 2023 01:15:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5dAqZSNjxoNDShWHKlUn1ETboRO9ethY3tDXIy6qQIhP5QZ9ydjYCLEVlidEkx2x3L8B7n X-Received: by 2002:a05:6a21:7892:b0:f0:78cc:f5dc with SMTP id bf18-20020a056a21789200b000f078ccf5dcmr955478pzc.5.1683274512768; Fri, 05 May 2023 01:15:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683274512; cv=none; d=google.com; s=arc-20160816; b=TebUTnJ8m4PMPt4D24l8w5FTuVhs2Yv5ODZ0NwXpzRqM0AhFZIqI7WxLUmEaV1ISX5 2yEkvJS5YkMRuDte37O+/TXay1PHSBaUX7VwL56cNlX/ODmkHClVb0kxhSPfiKLMtoK9 fW1Dan5VcqgsvyEwMnX9377hBRNuQuYczWT6BPmwQhES+pA3rzqtcjs4gA4g0ZBr/J1D TgrVPuZmu4HaiuW56mJ0bq22gJa2p7bVvlMtfOyfVFGUIIgCzJht7CTWu7u0XjsQvrnO 8Kb2fiph9lFLWJs8kKWUW2igQzwfCbAe0JkLHxfyMIWOg54/ZnrR5/hNOt3CMTIrwIaf Lu4g== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=GNV1oA5bifbHrVzVGDwGABZ92MbgAi9sOiOOiEw4RrY=; b=pcv4QmoluR3qzorwqUgpK+l1y+4GXPebbcKjZlNNYnTY/Ofhx6J6I4+UVpc+J/6rdi WBdXdKKMxAekbXXpQHtTsdhCbf2ue1wudQgWJJ+DzvBr5kphYT8eLt8hnfLpPGCNFdbI 0+aWid2D3d7m9Ruoeuc1+vlP4IUXRALCUbFb4wKneBg7hKTI1/7SgkmGkfC0EeKg8Viu Aq8/EcczZKENZlp3NjjFQJAcvHQnbFyjFY00lg6R1FBkXPPiAi1/tWNx3QOTEBYwVCV2 iRs7GYx/fqgQLKq6NsMvWDZJLK/QJRCH69zGFc46A0AGoGtqUgm01qtgX5vCtfaQPRU2 QKww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=lkg+LH04; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s135-20020a63778d000000b00517ce377586si1558940pgc.270.2023.05.05.01.14.58; Fri, 05 May 2023 01:15:12 -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; dkim=pass header.i=@gmail.com header.s=20221208 header.b=lkg+LH04; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231298AbjEEHrX (ORCPT + 99 others); Fri, 5 May 2023 03:47:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229807AbjEEHrW (ORCPT ); Fri, 5 May 2023 03:47:22 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3121F150E8; Fri, 5 May 2023 00:47:21 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-3f1958d3a53so14525795e9.0; Fri, 05 May 2023 00:47:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683272839; x=1685864839; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=GNV1oA5bifbHrVzVGDwGABZ92MbgAi9sOiOOiEw4RrY=; b=lkg+LH04TwCQLhmLbRKDg/dBJWQ7XdfptJmigPx/HjYBXY0JRepARb5d/8OAgeih30 3s4tXEUw9Eyzzf6rPHJisFmt66eFJtGTRs0+k7bGdujqpSbJM4E5IQ7BCKaxvynwbRGA mJV3MzMugU0NIXgPwW4Ydux0lvBTjIwHjJw13UBxeyldqBJyTDc8XMZydN5t31/e1Ql/ Gz32EkDcx+AeFOVED0YbBJ8E0NpUnnrwX5MhiJJ1kkFyR7H4D8l+1EL8ZOeYFjy5m2zh rJr/4WDj4rDXo6MBKHzKd+T57LDftmdNnEZgDlp6IQW/vY/Ec/nq7wWhUtLHN9iY7Ppq 7HEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683272839; x=1685864839; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=GNV1oA5bifbHrVzVGDwGABZ92MbgAi9sOiOOiEw4RrY=; b=fs0RjwE2Uro00xD/fuSxsHN3z7qiJOlMXC7xIZYEp/Vkq8k8lQHbegNYQg+lYPR3qC V7G0iUyNLmomqUaavWy8tBs0i6yqQOuX4BZqY6VYKzR2ejRcxOXaOUfTAhslUTSQlyFr J4cIcA8AlnofjiEXd1PtAPSaRG4AQNW2gZd8jZeyZGx1fpAR3fo66qvWBzmORTrKLLK7 HR0LSuu+7MY66TzDm2LisSsxDZZW8eAp+pVEn3cFLppJOTX1+HJc3kFQufghYEj8OdPO XBoKIZlrgXQHNfvYIz2RqZ/YVMkd7SHKiMQ6LTpWAXdbWxCUnmHzSa2lnEpZGcd1O51n Hekg== X-Gm-Message-State: AC+VfDx3N/faWZsTH24Z7sbz2skzYK87wjmgfaAQalf/Z5XbyOLSfqME KQCMTjjJUgDtw+hU2vcN4ks= X-Received: by 2002:a1c:4b0a:0:b0:3ee:96f0:ea31 with SMTP id y10-20020a1c4b0a000000b003ee96f0ea31mr375663wma.18.1683272839493; Fri, 05 May 2023 00:47:19 -0700 (PDT) Received: from localhost.localdomain ([176.221.215.212]) by smtp.gmail.com with ESMTPSA id j8-20020a5d5648000000b003062cdc6ac5sm1482198wrw.89.2023.05.05.00.47.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 May 2023 00:47:19 -0700 (PDT) From: Maksim Kiselev To: robh+dt@kernel.org Cc: Maksim Kiselev , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Paul Walmsley , Palmer Dabbelt , Albert Ou , Cristian Ciocaltea , Andre Przywara , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH] riscv: dts: allwinner: d1: Add SPI0 controller node Date: Fri, 5 May 2023 10:46:51 +0300 Message-Id: <20230505074701.1030980-1-bigunclemax@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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 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 already supported by sun8i-h3-spi driver. So let's add its DT node. Signed-off-by: Maksim Kiselev --- .../boot/dts/allwinner/sunxi-d1s-t113.dtsi | 20 +++++++++++++++++++ 1 file changed, 20 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..d2de211d67d7 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,20 @@ mmc2: mmc@4022000 { #size-cells = <0>; }; + spi0: spi@4025000 { + compatible = "allwinner,sun8i-h3-spi"; + reg = <0x04025000 0x300>; + 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>; + }; + usb_otg: usb@4100000 { compatible = "allwinner,sun20i-d1-musb", "allwinner,sun8i-a33-musb"; -- 2.39.2