From patchwork Fri Jan 6 01:01:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 39853 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp573790wrt; Thu, 5 Jan 2023 17:06:23 -0800 (PST) X-Google-Smtp-Source: AMrXdXs9/Ium1wAL2IlvSVNIdidshAfXrJHvn6IvSYNTzY2u1SE+F0YdEOSE9H1vDRIaAeidjr8x X-Received: by 2002:a17:906:c250:b0:79e:4880:dd85 with SMTP id bl16-20020a170906c25000b0079e4880dd85mr40190190ejb.47.1672967183271; Thu, 05 Jan 2023 17:06:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672967183; cv=none; d=google.com; s=arc-20160816; b=RQCidQ5Ko8sY6z1GrKOdOuC66Bko4by0czhyTttLQzz9JtL3fEgjIPikCos3YujQG9 aV2gADgjyCwz5dnKBwSO+4BaCG4YZA/5htH4gObNuVtLRNZKl3Zprp+SwJjKUn7k53Uc IXQ15/UlkRlTNTBIQjs5fkbhDFn2/FKGSShELhLflmzKzalQewCUlY+vvujZJdU3ZB20 KAiUU2ZjlZ9h6p4wONu6vK3O0NsGjYEgHXxYjYjC8osAWfWJIVns7sFyivGaewlcFYLo sdi+YvN2n9FDduguDnYzMdmvFpkuuj+1Be/CiYitC3N+vatOVz2iImvTiJDvP5RCfA7H zmlA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=4p1dzBQFEJKJ+kRFL9bt0Gy4ZF4tEdDSJ/CzuL3Vb5k=; b=pO5GbwyKMdxdL24P+4vaHeKgF95EE+Gq49wBJiIkqGMWr1Si7eGOpGkEFogZqmKNEa xVUXb+4vtnZt1T1ugiLMU9HvD6rtT2LnjO6bTQh12uU44evYeIFvJ1yqdXEX/d+3Nank M4VuYgH0Lx5OVDpllUocTOl20+vEx5VP4Dvx1RSo16+Ho3CeDOTU1N9/D3/5c35VAve/ KKB594SfEeGSsonUx8GlwFS35AbA4cQuaWKCDq8Numbp1ErFdcwnsqGcyQlEO0w5jTOf r3YGLSi5XnJoJyW0ry1EpB5y5c6zIfUNFCzHPuAcNgC2bGsfinsU0KOIb4nvqyYGiGoC flQg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hd39-20020a17090796a700b00779e6c93108si38725324ejc.598.2023.01.05.17.05.59; Thu, 05 Jan 2023 17:06:23 -0800 (PST) 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 S236454AbjAFBD7 (ORCPT + 99 others); Thu, 5 Jan 2023 20:03:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236444AbjAFBDw (ORCPT ); Thu, 5 Jan 2023 20:03:52 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C86EB5F4A7; Thu, 5 Jan 2023 17:03:51 -0800 (PST) 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 55B0612FC; Thu, 5 Jan 2023 17:04:33 -0800 (PST) Received: from slackpad.fritz.box (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 000253F23F; Thu, 5 Jan 2023 17:03:48 -0800 (PST) From: Andre Przywara To: Samuel Holland , Jernej Skrabec , Chen-Yu Tsai , Rob Herring , Krzysztof Kozlowski Cc: Icenowy Zheng , =?utf-8?b?QW5kcsOhcyBTemVtesO2?= , Fabien Poussin , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Frank Rowand Subject: [PATCH 1/4] dts: add riscv include prefix link Date: Fri, 6 Jan 2023 01:01:52 +0000 Message-Id: <20230106010155.26868-2-andre.przywara@arm.com> X-Mailer: git-send-email 2.35.5 In-Reply-To: <20230106010155.26868-1-andre.przywara@arm.com> References: <20230106010155.26868-1-andre.przywara@arm.com> MIME-Version: 1.0 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754233236820098638?= X-GMAIL-MSGID: =?utf-8?q?1754233236820098638?= The Allwinner D1/D1s SoCs (with a RISC-V core) use an (almost?) identical die as their R528/T113-s siblings with ARM Cortex-A7 cores. To allow sharing the basic SoC .dtsi files across those two architectures as well, introduce a symlink to the RISC-V DT directory. Signed-off-by: Andre Przywara Reviewed-by: Conor Dooley Acked-by: Palmer Dabbelt --- scripts/dtc/include-prefixes/riscv | 1 + 1 file changed, 1 insertion(+) create mode 120000 scripts/dtc/include-prefixes/riscv diff --git a/scripts/dtc/include-prefixes/riscv b/scripts/dtc/include-prefixes/riscv new file mode 120000 index 0000000000000..2025094189380 --- /dev/null +++ b/scripts/dtc/include-prefixes/riscv @@ -0,0 +1 @@ +../../../arch/riscv/boot/dts \ No newline at end of file From patchwork Fri Jan 6 01:01:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 39856 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp574322wrt; Thu, 5 Jan 2023 17:07:59 -0800 (PST) X-Google-Smtp-Source: AMrXdXtmHwgRR9QbhRlALKKFZBEbclC9iDQkxQCSF/zl73hHcC0D/yk/LHibQHgodCZIfH8dj+QV X-Received: by 2002:a17:90a:e7c1:b0:226:23e4:fd9e with SMTP id kb1-20020a17090ae7c100b0022623e4fd9emr30002605pjb.18.1672967279583; Thu, 05 Jan 2023 17:07:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672967279; cv=none; d=google.com; s=arc-20160816; b=ZpHVTkB60UH3uFyyytS9YHHzCVb6qUg8ZAbHbflggXrhMcpRoJflviz8YzyaJjFPnP qppcYwxIEdokJPwglyEBfmizj0o7DGnjFb/8hjWt1h7gBlPKRCOyg1LdOGIi34m/9e2e BXeAfz84dwR34l/YRFcDGpoTsBsJ1ygiNhVbmVCpRB4TvjfbIBshhTqfPAsc5i9sWNx/ xasBK4aTxEOV2OtS8o/Jztx9CwljV87h4n6bqsTCR20Ey36bjLX+IXiR05i4Qr5wcr0c MWokFiDKwKoYmLLkSj32znW0HmCvO+yqUEDw5yUSsNEctp29YoZxvzdv9bZLwJNW33rH siLg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=54LTUO+rn/Ie60MTzlQTY65Ny4nmWRz6uGG53jf7WRc=; b=bccH5vaVqNI6Hmqcrp6mt6oFcO12XZlCVWSBt6CSwb6Cq6MlVOV61EZ1zhF2PFEmDX FwHw4N5pzUBMMd72y1pZai4nuEblYAhgA3imzAbrrvqXh0FL1+eymjk2Bg6BS9wjbsQu 5acJjWwIaVfJCHufnEkcGxQZv5WitjfhXpMPxINKHgFLDzvlE0BxIRsQV0LQBfb5GQGR 1htjyZIKTfn0B2UKJmgSjgWbhl2kKZmPKz/eio4mFLRLmK9EnKM+RTp3Bx7MAy/q+wC1 5TdR7KA7uSCGUlX48dqYG0GBZTCv0d0KmGS06fhtvrGke7aAZD1woWiEJNitW9ptepi4 rW6A== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o6-20020a63e346000000b00478d39fcb3dsi40460240pgj.519.2023.01.05.17.07.47; Thu, 05 Jan 2023 17:07:59 -0800 (PST) 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 S236549AbjAFBEI (ORCPT + 99 others); Thu, 5 Jan 2023 20:04:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236211AbjAFBDz (ORCPT ); Thu, 5 Jan 2023 20:03:55 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7272C6E427; Thu, 5 Jan 2023 17:03:54 -0800 (PST) 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 0D72B15DB; Thu, 5 Jan 2023 17:04:36 -0800 (PST) Received: from slackpad.fritz.box (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C53793F23F; Thu, 5 Jan 2023 17:03:51 -0800 (PST) From: Andre Przywara To: Samuel Holland , Jernej Skrabec , Chen-Yu Tsai , Rob Herring , Krzysztof Kozlowski Cc: Icenowy Zheng , =?utf-8?b?QW5kcsOhcyBTemVtesO2?= , Fabien Poussin , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] ARM: dts: sunxi: add Allwinner T113-s SoC .dtsi Date: Fri, 6 Jan 2023 01:01:53 +0000 Message-Id: <20230106010155.26868-3-andre.przywara@arm.com> X-Mailer: git-send-email 2.35.5 In-Reply-To: <20230106010155.26868-1-andre.przywara@arm.com> References: <20230106010155.26868-1-andre.przywara@arm.com> MIME-Version: 1.0 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754233337963132836?= X-GMAIL-MSGID: =?utf-8?q?1754233337963132836?= The Allwinner T113-s SoC is apparently using the same (or at least a very similar) die as the D1/D1s, but replaces the single RISC-V core with two Arm Cortex-A7 cores. Since the D1 core .dtsi already describes all common peripherals, we just need a DT describing the ARM specific peripherals: the CPU cores, the Generic Timer, the GIC and the PMU. We include the core .dtsi directly from the riscv DT directory. Signed-off-by: Andre Przywara --- arch/arm/boot/dts/sun8i-t113s.dtsi | 59 ++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 arch/arm/boot/dts/sun8i-t113s.dtsi diff --git a/arch/arm/boot/dts/sun8i-t113s.dtsi b/arch/arm/boot/dts/sun8i-t113s.dtsi new file mode 100644 index 0000000000000..804aa197a24f8 --- /dev/null +++ b/arch/arm/boot/dts/sun8i-t113s.dtsi @@ -0,0 +1,59 @@ +// SPDX-License-Identifier: (GPL-2.0+ or MIT) +// Copyright (C) 2022 Arm Ltd. + +#define SOC_PERIPHERAL_IRQ(nr) GIC_SPI nr + +#include +#include +#include + +/ { + interrupt-parent = <&gic>; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu0: cpu@0 { + compatible = "arm,cortex-a7"; + device_type = "cpu"; + reg = <0>; + clocks = <&ccu CLK_CPUX>; + clock-names = "cpu"; + }; + + cpu1: cpu@1 { + compatible = "arm,cortex-a7"; + device_type = "cpu"; + reg = <1>; + clocks = <&ccu CLK_CPUX>; + clock-names = "cpu"; + }; + }; + + gic: interrupt-controller@1c81000 { + compatible = "arm,gic-400"; + reg = <0x03021000 0x1000>, + <0x03022000 0x2000>, + <0x03024000 0x2000>, + <0x03026000 0x2000>; + interrupts = ; + interrupt-controller; + #interrupt-cells = <3>; + }; + + timer { + compatible = "arm,armv7-timer"; + interrupts = , + , + , + ; + }; + + pmu { + compatible = "arm,cortex-a7-pmu"; + interrupts = , + ; + interrupt-affinity = <&cpu0>, <&cpu1>; + }; +}; From patchwork Fri Jan 6 01:01:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 39854 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp573971wrt; Thu, 5 Jan 2023 17:06:58 -0800 (PST) X-Google-Smtp-Source: AMrXdXvfky1vgMm+sDzeqzOPoWkvXa/rLgXu5LbeXQz6ypslmBCfZZ7WayY0T5QHHxuQWGbu9A+H X-Received: by 2002:a05:6402:520b:b0:48b:58be:472c with SMTP id s11-20020a056402520b00b0048b58be472cmr31027962edd.18.1672967218119; Thu, 05 Jan 2023 17:06:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672967218; cv=none; d=google.com; s=arc-20160816; b=k2OhAy2fagBCt7sNz4C7iFyeysgOStAoJ+X85G4V7DjL9IQwA9Q8Fjh9D18r9nbQ3+ 55J8F+uCouGb2FFl8IxFNxs1bXOGd2fIhBpqn9czTTrDcAYjLcLMn+sgu61tIj0JdxgT HmwOZJhiPeiKVdzoI/TZk0ShEAvqKaH4F/UMJrZMjxK3hb5nTBuDlmqNrTn5vYROIGL0 leyW61sQ675wpE3mYPTASHRr/nDG9zl9ee9CiAvUlGD9KmLFyjur7MkO4yBxnFmbZ9LH lxcxK28pAG8m3gtn8FfjEvdDAW7BFF0XAm41CnnYOLLfuCzPgrSIJqBBqM1einlezb0i aEBw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=BtnvbeTc+WcPrBtbm9GD5AZIzm4nQTSTkzPvLcd4J5Q=; b=jeKcck1QOVSIL5s34gA4DTsJ/GyYfcjyCDZd+8GHbeGSbRWuc5gPQdptFSI/pZbGys Nd7rsx3zUHMR85/vRCNtDYO7OTy1Fapb5mKOxC+iCLquK1E3tb0jCCmOFrOz0DZybIUW wz5v1IV/r+Hjd8A0rgXA+VwiabBkXGBEw6nbMmvpgzJZrn03cTR8C1K2j1jnbQLOWWgm uv5gDWCMwQsgQbor+pGd4cZPKai80r+v47NAvd+E5cB32/PeKG6jZKqMdfd7lYfsU/Hp YJIWvF3lRzokN75nAUHwFDGmdiH3ErNMGDmzRU9pCXaKo4MWBQnlsmfY6bJYuSRjOKXD 50Zw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w26-20020aa7d29a000000b00492b7aa564bsi2938081edq.379.2023.01.05.17.06.34; Thu, 05 Jan 2023 17:06:58 -0800 (PST) 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 S236478AbjAFBE0 (ORCPT + 99 others); Thu, 5 Jan 2023 20:04:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236508AbjAFBEG (ORCPT ); Thu, 5 Jan 2023 20:04:06 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 33DE96E421; Thu, 5 Jan 2023 17:03:57 -0800 (PST) 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 C2DC71758; Thu, 5 Jan 2023 17:04:38 -0800 (PST) Received: from slackpad.fritz.box (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7D7683F23F; Thu, 5 Jan 2023 17:03:54 -0800 (PST) From: Andre Przywara To: Samuel Holland , Jernej Skrabec , Chen-Yu Tsai , Rob Herring , Krzysztof Kozlowski Cc: Icenowy Zheng , =?utf-8?b?QW5kcsOhcyBTemVtesO2?= , Fabien Poussin , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] dt-bindings: arm: sunxi: document MangoPi MQ-R board name Date: Fri, 6 Jan 2023 01:01:54 +0000 Message-Id: <20230106010155.26868-4-andre.przywara@arm.com> X-Mailer: git-send-email 2.35.5 In-Reply-To: <20230106010155.26868-1-andre.przywara@arm.com> References: <20230106010155.26868-1-andre.przywara@arm.com> MIME-Version: 1.0 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754233273282402665?= X-GMAIL-MSGID: =?utf-8?q?1754233273282402665?= The MangoPi MQ-R board is a close relative to its Allwinner D1/D1s siblings, but features two Arm Cortex-A7 cores instead of a RISC-V core. Add the board/SoC compatible string pair to the list of known boards. Signed-off-by: Andre Przywara Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/arm/sunxi.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/sunxi.yaml b/Documentation/devicetree/bindings/arm/sunxi.yaml index 3ad1cd50e3fe0..ce445c5ed81c8 100644 --- a/Documentation/devicetree/bindings/arm/sunxi.yaml +++ b/Documentation/devicetree/bindings/arm/sunxi.yaml @@ -843,6 +843,11 @@ properties: - const: wexler,tab7200 - const: allwinner,sun7i-a20 + - description: MangoPi MQ-R board + items: + - const: widora,mangopi-mq-r + - const: allwinner,sun8i-t113s + - description: WITS A31 Colombus Evaluation Board items: - const: wits,colombus From patchwork Fri Jan 6 01:01:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 39855 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp573981wrt; Thu, 5 Jan 2023 17:06:59 -0800 (PST) X-Google-Smtp-Source: AMrXdXtcDXFHnZWnL1Y2wMXOokeHXLAd4kPFA06jCpHCtmZizoS7cy57U3+Pb9ZVWulx9auZGIJ4 X-Received: by 2002:a17:907:7f04:b0:7c0:a4e9:615b with SMTP id qf4-20020a1709077f0400b007c0a4e9615bmr58286631ejc.61.1672967219410; Thu, 05 Jan 2023 17:06:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672967219; cv=none; d=google.com; s=arc-20160816; b=HnkXguP98FyoajK2GBpcs5VFJzrQTOy7L04eawLmrGrrifjiLTr5fIhna6HSGUyXrX wM4aYyhoPxxqRSs71U3Bwhh1BvXD5Y5w/vGzbbklMHmizYYr0lRS6rWMQT18YlL3kLcp a8FDV8Sp7ALFcSlvksuiRS8K0K3EWpfHg2IwSzf3i79HCw0lERVZO5ChouSyzBXhr05g MKIP2JuoJ4slO6ah1x+hIBmHW/B4ErntnjgeXyHoE2TDzvzbacwp7E5LFXEbPts3pCdU ERRcLF+MHtP8nytCdFW/YDiJDlurLTWc3IrficwyiEo6NMqhlp+8b1oUVwS4gbNr2QTu NGfA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=CovNG60yuwzPRNyQWsE4V5I0J2+JNybBtBJRZIQUNKQ=; b=rwPYzlfMPimQl8FvMrXerCw7CraHjQ/4IFllSbf94ItZ33jFwtoZGahjtmfp1sWSRF PIeKPLUhL55nn+dsIjMbuDg1dHvb15rYlLef1ehFpJMlmxE1KcX+hHRx2VvKYd+fDgel fLRmSUuYbjfzjlDetba1GsvUdkwBIuS4IiJRStqt6L2LgXjFNEpWs0eakA5hxLmvpqrt vRJAhpQbiZh146JUOWrNte2c9KdGZXlBEn6HIYwle/wPyqob4pbowF2DpTvGAoco200h 5y5JvdpivlcHwRoBnFMSIVUKM6QcQpB0yMv3eHQMzqxaYpkKH4POitFkOmMqqg7jM9WV kWZQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id he30-20020a1709073d9e00b007c1247d65a8si36289379ejc.687.2023.01.05.17.06.35; Thu, 05 Jan 2023 17:06:59 -0800 (PST) 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 S236509AbjAFBEb (ORCPT + 99 others); Thu, 5 Jan 2023 20:04:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236564AbjAFBEJ (ORCPT ); Thu, 5 Jan 2023 20:04:09 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4DCE471FE1; Thu, 5 Jan 2023 17:04:00 -0800 (PST) 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 D397611FB; Thu, 5 Jan 2023 17:04:41 -0800 (PST) Received: from slackpad.fritz.box (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3EF243F23F; Thu, 5 Jan 2023 17:03:57 -0800 (PST) From: Andre Przywara To: Samuel Holland , Jernej Skrabec , Chen-Yu Tsai , Rob Herring , Krzysztof Kozlowski Cc: Icenowy Zheng , =?utf-8?b?QW5kcsOhcyBTemVtesO2?= , Fabien Poussin , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Olof Johansson , soc@kernel.org Subject: [PATCH 4/4] ARM: dts: sunxi: add MangoPi MQ-R board Date: Fri, 6 Jan 2023 01:01:55 +0000 Message-Id: <20230106010155.26868-5-andre.przywara@arm.com> X-Mailer: git-send-email 2.35.5 In-Reply-To: <20230106010155.26868-1-andre.przywara@arm.com> References: <20230106010155.26868-1-andre.przywara@arm.com> MIME-Version: 1.0 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754233275221529377?= X-GMAIL-MSGID: =?utf-8?q?1754233275221529377?= The MangoPi MQ-R is a small SBC with the Allwinner T113-s3 SoC. The SoC features two Arm Cortex-A7 cores and 128 MB of co-packaged DDR3 DRAM. The board adds mostly connectors and the required regulators, plus a Realtek RTL8189FTV WiFi chip. Power comes in via a USB-C connector wired as a peripheral, and there is a second USB-C connector usable as a host port. Signed-off-by: Andre Przywara --- arch/arm/boot/dts/Makefile | 1 + .../arm/boot/dts/sun8i-t113s-mangopi-mq-r.dts | 160 ++++++++++++++++++ 2 files changed, 161 insertions(+) create mode 100644 arch/arm/boot/dts/sun8i-t113s-mangopi-mq-r.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index d08a3c450ce72..39fd893682924 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -1390,6 +1390,7 @@ dtb-$(CONFIG_MACH_SUN8I) += \ sun8i-s3-elimo-initium.dtb \ sun8i-s3-lichee-zero-plus.dtb \ sun8i-s3-pinecube.dtb \ + sun8i-t113s-mangopi-mq-r.dtb \ sun8i-t3-cqa3t-bv3.dtb \ sun8i-v3-sl631-imx179.dtb \ sun8i-v3s-licheepi-zero.dtb \ diff --git a/arch/arm/boot/dts/sun8i-t113s-mangopi-mq-r.dts b/arch/arm/boot/dts/sun8i-t113s-mangopi-mq-r.dts new file mode 100644 index 0000000000000..ed4d5217d7b0d --- /dev/null +++ b/arch/arm/boot/dts/sun8i-t113s-mangopi-mq-r.dts @@ -0,0 +1,160 @@ +// SPDX-License-Identifier: (GPL-2.0+ or MIT) +// Copyright (C) 2022 Arm Ltd. + +#include +#include + +/dts-v1/; + +#include "sun8i-t113s.dtsi" + +/ { + model = "MangoPi MQ-R"; + compatible = "widora,mangopi-mq-r", "allwinner,sun8i-t113s"; + + aliases { + ethernet0 = &rtl8189ftv; + serial3 = &uart3; + }; + + chosen { + stdout-path = "serial3:115200n8"; + }; + + leds { + compatible = "gpio-leds"; + + led-0 { + color = ; + function = LED_FUNCTION_STATUS; + gpios = <&pio 3 22 GPIO_ACTIVE_LOW>; /* PD22 */ + }; + }; + + /* board wide 5V supply directly from the USB-C socket */ + reg_vcc5v: vcc5v { + compatible = "regulator-fixed"; + regulator-name = "vcc-5v"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + }; + + /* SY8008 DC/DC regulator on the board */ + reg_3v3: regulator-3v3 { + compatible = "regulator-fixed"; + regulator-name = "vcc-3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <®_vcc5v>; + }; + + /* SY8008 DC/DC regulator on the board, also supplying VDD-SYS */ + reg_vcc_core: regulator-core { + compatible = "regulator-fixed"; + regulator-name = "vcc-core"; + regulator-min-microvolt = <880000>; + regulator-max-microvolt = <880000>; + vin-supply = <®_vcc5v>; + }; + + /* XC6206 LDO on the board */ + reg_avdd2v8: regulator-avdd { + compatible = "regulator-fixed"; + regulator-name = "avdd2v8"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + vin-supply = <®_3v3>; + }; + + wifi_pwrseq: wifi-pwrseq { + compatible = "mmc-pwrseq-simple"; + reset-gpios = <&pio 6 12 GPIO_ACTIVE_LOW>; /* PG12 */ + }; +}; + +&cpu0 { + cpu-supply = <®_vcc_core>; +}; + +&cpu1 { + cpu-supply = <®_vcc_core>; +}; + +&dcxo { + clock-frequency = <24000000>; +}; + +&ehci1 { + status = "okay"; +}; + +&mmc0 { + pinctrl-0 = <&mmc0_pins>; + pinctrl-names = "default"; + vmmc-supply = <®_3v3>; + cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; + disable-wp; + bus-width = <4>; + status = "okay"; +}; + +&mmc1 { + pinctrl-0 = <&mmc1_pins>; + pinctrl-names = "default"; + vmmc-supply = <®_3v3>; + non-removable; + bus-width = <4>; + mmc-pwrseq = <&wifi_pwrseq>; + status = "okay"; + + rtl8189ftv: wifi@1 { + reg = <1>; + interrupt-parent = <&pio>; + interrupts = <6 10 IRQ_TYPE_LEVEL_LOW>; /* PG10 = WL_WAKE_AP */ + interrupt-names = "host-wake"; + }; +}; + +&ohci1 { + status = "okay"; +}; + +&pio { + vcc-pb-supply = <®_3v3>; + vcc-pd-supply = <®_3v3>; + vcc-pe-supply = <®_avdd2v8>; + vcc-pf-supply = <®_3v3>; + vcc-pg-supply = <®_3v3>; +}; + +®_ldoa { + regulator-always-on; + regulator-name = "vcc-1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + ldo-in-supply = <®_3v3>; +}; + +®_ldob { + regulator-name = "vcc-dram"; + regulator-always-on; + ldo-in-supply = <®_3v3>; +}; + +&uart3 { + pinctrl-names = "default"; + pinctrl-0 = <&uart3_pb_pins>; + status = "okay"; +}; + +/* The USB-C socket has its CC pins pulled to GND, so is hardwired as a UFP. */ +&usb_otg { + dr_mode = "peripheral"; + status = "okay"; +}; + +&usbphy { + usb1_vbus-supply = <®_vcc5v>; + status = "okay"; +};