From patchwork Mon Mar 20 00:52:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 71922 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp944389wrt; Sun, 19 Mar 2023 17:54:15 -0700 (PDT) X-Google-Smtp-Source: AK7set/CsaSFBIak3HDbAZuR0/k8xOa2r0KsOOWfhLHvLvBoBNUWN66x0fs/vcYwksXo6oyoeOUc X-Received: by 2002:a17:90a:29a6:b0:23f:6872:e37c with SMTP id h35-20020a17090a29a600b0023f6872e37cmr7303717pjd.0.1679273654620; Sun, 19 Mar 2023 17:54:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679273654; cv=none; d=google.com; s=arc-20160816; b=G25wQN+6Iwe+4VcojlDIi8cRHxY+76io+RaHHGBkFuWFXBORupl6b3GG+CEQAwPe5+ u0q9tj3KmHt0RdmarDavAOjfSUj32ZTYohocQQvrOq14GxoEJbxJ0qTp/tvYLmn40F75 h50swyyzZNHTYJikELhJsw62gjYIdWouT7mkK0UDT1qg6NfYuCP+jyO7jEfvbHZAxBA8 Vy9viLTxgEaH06ExEMMnSJc0417ZKeRQqwfcc2UUi1FZvuD+f1xItrlX3KuZxLoZq0ME jCHBqt1Rp98rE3qTuliph7AB1bzd+uJsjX6y4/hAffiCLSUO9cAYtPLuAonkOjN+S150 FpSg== 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=yvOVLrUSy/z02NTE7b1Gd1eIWG1CuhKZWXokS2DO64g=; b=zKTD2Tcx8fSwHycq9mKWclYsRtwAhc+ru3ilTwBGxmq8iIj8S652y3gfd7hLCpQMEH RWatJv2mp9coPrbmvM+0XwMe72NiKyDBdYtYFqy7JvNccIEDBuG6kwuxIPEOFm2Rek66 UEKEGedGn8D6V7HAs8ZkhpprJcKwhYucFkPRP1nZphvYUD88MK2wV1cnUCUq7xhx/myI ZrbFjLtMRJWYZuxTBKY4riuskYa3FpAXXdTzLsIHjHBRGGRo0JK8lQbRV0IHoE3qjT3i hGLZoXdO5DWZSJjw786yt2kHnSme6xZsYEsj/p4w0PMcEdbWkk5IYIx59V1qG+R+M/rT ngcQ== 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 u11-20020a6540cb000000b004fc2aebe0easi8760133pgp.865.2023.03.19.17.54.02; Sun, 19 Mar 2023 17:54:14 -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 S229774AbjCTAxR (ORCPT + 99 others); Sun, 19 Mar 2023 20:53:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229508AbjCTAxG (ORCPT ); Sun, 19 Mar 2023 20:53:06 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 97F5219F28; Sun, 19 Mar 2023 17:53:05 -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 463711042; Sun, 19 Mar 2023 17:53:49 -0700 (PDT) Received: from slackpad.fritz.box (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BF9A53F885; Sun, 19 Mar 2023 17:53:02 -0700 (PDT) From: Andre Przywara To: Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Samuel Holland , Jernej Skrabec Cc: linux-arm-kernel@lists.infradead.org, Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , =?utf-8?b?QW5kcsOhcyBTemVtesO2?= , Icenowy Zheng , Fabien Poussin , linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Belisko Marek Subject: [PATCH v2 1/4] dts: add riscv include prefix link Date: Mon, 20 Mar 2023 00:52:46 +0000 Message-Id: <20230320005249.13403-2-andre.przywara@arm.com> X-Mailer: git-send-email 2.35.7 In-Reply-To: <20230320005249.13403-1-andre.przywara@arm.com> References: <20230320005249.13403-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?1760846051405185690?= X-GMAIL-MSGID: =?utf-8?q?1760846051405185690?= 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 Mon Mar 20 00:52:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 71924 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp944460wrt; Sun, 19 Mar 2023 17:54:26 -0700 (PDT) X-Google-Smtp-Source: AK7set+jIxO8EOFTG0G8J656dfexPTBE6VYI9PrvJn2qyYxbFS0P4PuRA6BU4ZX23Kw2SkWrZtSC X-Received: by 2002:a05:6a20:9384:b0:d9:ec4b:82b4 with SMTP id x4-20020a056a20938400b000d9ec4b82b4mr235314pzh.1.1679273666073; Sun, 19 Mar 2023 17:54:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679273666; cv=none; d=google.com; s=arc-20160816; b=FC9FUntc/Y+04lHW3M3HyfGTwDizCznr7ZqlOqFk2TX+gQzE12sSeeUT6DIwQqYpLS 5vzms5fSiFJGz2uCujZQhTIF00WmNpX7iMWsH1hm6tSaZk2R92Hzu1X/xti5tVTE2ht4 uI5Kqk7bpoaZLI2O9BLPqShH+Sf4CPfhmGgej42SZoRlnhn1Q8SB9lnPUcd4hGW/BnVS KcgBuA3XaiAfghKhYYDdETs0hStux9BaLauBlvHqwRX9fFwpHLyoF61PibqIfveS+wmJ jScTTb15kiT54FmRyIu/vx1jYI6ihtH8T6DHLXcT+ENjDBeTTEVcG+MUAoLN+bdyZ6dy ilsQ== 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=f6j69U8rb6LM2iMJ3RaEJZhDDIX+GZ5IiMLSg3t4ZPc=; b=0fRO1piPUHL5Q9T3u3dVBA/QjOf0pmBQmP+ugkqvTo/9QkjQNzvdzjSGDQGEMiefuS Ey67r0rtKRV5SMa3IMDzr+bdsz1QqV7HgJdp7ZTYAwdajRlMxb6HgxVGishtJL83r+1t rzQKEReqB9bDXpi2LSlZOvzPbD8KjBJQ6GYWBJLhhF7WmnhvUf042fjqnDH6t9jTishv QWWCIz11C/wQLzukAdGpQwu1x18zleQoDEYGyDhQhIAgm6KjnI1epTaCSeue4HzZbKGP iYdkH85JJuiCJ7dAcHhnkQFMFJMH6/qWh519+ehVy0GWJvljU8VO2GvuWTr1A1XqU/Oi qDQA== 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 f5-20020a056a0022c500b005a8d684c05dsi9858876pfj.271.2023.03.19.17.54.13; Sun, 19 Mar 2023 17:54: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 S229764AbjCTAxZ (ORCPT + 99 others); Sun, 19 Mar 2023 20:53:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229662AbjCTAxL (ORCPT ); Sun, 19 Mar 2023 20:53:11 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 40B581A64B; Sun, 19 Mar 2023 17:53:09 -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 AD76C1063; Sun, 19 Mar 2023 17:53:52 -0700 (PDT) Received: from slackpad.fritz.box (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9C3433F885; Sun, 19 Mar 2023 17:53:05 -0700 (PDT) From: Andre Przywara To: Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Samuel Holland , Jernej Skrabec Cc: linux-arm-kernel@lists.infradead.org, Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , =?utf-8?b?QW5kcsOhcyBTemVtesO2?= , Icenowy Zheng , Fabien Poussin , linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Belisko Marek Subject: [PATCH v2 2/4] ARM: dts: sunxi: add Allwinner T113-s SoC .dtsi Date: Mon, 20 Mar 2023 00:52:47 +0000 Message-Id: <20230320005249.13403-3-andre.przywara@arm.com> X-Mailer: git-send-email 2.35.7 In-Reply-To: <20230320005249.13403-1-andre.przywara@arm.com> References: <20230320005249.13403-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?1760846063655559535?= X-GMAIL-MSGID: =?utf-8?q?1760846063655559535?= 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 Acked-by: Jernej Skrabec --- 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 Mon Mar 20 00:52:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 71925 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp944483wrt; Sun, 19 Mar 2023 17:54:30 -0700 (PDT) X-Google-Smtp-Source: AK7set/Dlv+Sf92MYvcAdiztsgNzMRTex4wDU9WDeOJ+PQ7nQEZK9LUTHUYFW8GlD3x8zlXnUvyl X-Received: by 2002:a05:6a00:1ca1:b0:5fc:cd83:92f1 with SMTP id y33-20020a056a001ca100b005fccd8392f1mr14089074pfw.1.1679273670684; Sun, 19 Mar 2023 17:54:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679273670; cv=none; d=google.com; s=arc-20160816; b=CvcOgcG1Nc4CHfeYS7LpLj4WAPcZSPHxvf+V8sUvIVsfL8Gb4DOM67YRrxZVOkGi66 pD4ZygdpEPMmIra6YrMoUlN5aAyRYllt2TsAeq7WQ7cJ3+akM6hKhbBrOEGEFJxapkxQ QQwdUqDP0wFmX2Qs9EpS7sPxJLTsEms3BtPuONj1TXd9Ygareo37JJ63zPk9MSfxfOcd v9sw9fN0Qk4BtxXsQ0fj+hffEAcZ2xXm25pGJYXlnOL2t/Jk12nqMxrHtnlS7PWIjM5w MpKsQo+2Jvfx8u/8Uf2AwQkL+AltzVaZUr61Vzno2HL+NSeAqfJ5EEZt4S3hP7tB+gE/ HHOA== 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=7QHCDoiF0XK59rEhlxcBS8xx1GK2RUWoIfNGkIMZAZ0=; b=pHV29YNUg8LAWBzvYeOe2lveGEl5KVWWMZTl9p++IJnJvr8liE/B4n+4wdOxFLmmn5 kIPpADlwPVXUJPj7dv44CiCJHZSHPAu/G7uxX2gv1u6BV7uwf7xmoSCu0SbMo+PNLxpP K8R/+TlFWLfk0rGDd129xjt3k5Zdz3NA2BW3qQ6A6ShryJBknnVRvyAVMiFWdhvsw/MO geMwfr7JwgMZ5GjxBwa8KRCayWUwKroNKY7JVDiq0q3F/ovialNWlFHR2DNf6R82V8+q 9+UWnX6sA+wczBlCk7cH8UbN07CIBB1JIRcF5/Pxf6+QNQCzLR3/aIvWENISKxNA6PYF BrgA== 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 h21-20020a056a00219500b006277947fe11si7137419pfi.379.2023.03.19.17.54.18; Sun, 19 Mar 2023 17:54:30 -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 S229822AbjCTAx3 (ORCPT + 99 others); Sun, 19 Mar 2023 20:53:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229723AbjCTAxN (ORCPT ); Sun, 19 Mar 2023 20:53:13 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D60D11C590; Sun, 19 Mar 2023 17:53:11 -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 883641042; Sun, 19 Mar 2023 17:53:55 -0700 (PDT) Received: from slackpad.fritz.box (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0D1503F885; Sun, 19 Mar 2023 17:53:08 -0700 (PDT) From: Andre Przywara To: Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Samuel Holland , Jernej Skrabec Cc: linux-arm-kernel@lists.infradead.org, Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , =?utf-8?b?QW5kcsOhcyBTemVtesO2?= , Icenowy Zheng , Fabien Poussin , linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Belisko Marek Subject: [PATCH v2 3/4] dt-bindings: arm: sunxi: document MangoPi MQ-R board names Date: Mon, 20 Mar 2023 00:52:48 +0000 Message-Id: <20230320005249.13403-4-andre.przywara@arm.com> X-Mailer: git-send-email 2.35.7 In-Reply-To: <20230320005249.13403-1-andre.przywara@arm.com> References: <20230320005249.13403-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?1760846068820705009?= X-GMAIL-MSGID: =?utf-8?q?1760846068820705009?= The MangoPi MQ-R board is a small development board, using Allwinner SoCs with co-packaged DRAM. There are versions with a RISC-V core and ones with two Arm Cortex-A7 cores. 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 +++++ Documentation/devicetree/bindings/riscv/sunxi.yaml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/sunxi.yaml b/Documentation/devicetree/bindings/arm/sunxi.yaml index 3ad1cd50e3fe0..1a2d728234b1e 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-t113 + - const: allwinner,sun8i-t113s + - description: WITS A31 Colombus Evaluation Board items: - const: wits,colombus diff --git a/Documentation/devicetree/bindings/riscv/sunxi.yaml b/Documentation/devicetree/bindings/riscv/sunxi.yaml index 9edb5e5992b19..b36e313e13a67 100644 --- a/Documentation/devicetree/bindings/riscv/sunxi.yaml +++ b/Documentation/devicetree/bindings/riscv/sunxi.yaml @@ -64,6 +64,11 @@ properties: - const: widora,mangopi-mq-pro - const: allwinner,sun20i-d1 + - description: MangoPi MQ-R board + items: + - const: widora,mangopi-mq-r-f133 + - const: allwinner,sun20i-d1s + additionalProperties: true ... From patchwork Mon Mar 20 00:52:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 71926 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp957310wrt; Sun, 19 Mar 2023 18:29:57 -0700 (PDT) X-Google-Smtp-Source: AK7set8RWzWPqhcFX/jwZFlpTzblVqgRpvWNmaDc/mb0yhBufprW3G5uYbZWOiJfUtXi13dUgbnl X-Received: by 2002:a17:90a:fe8b:b0:23d:2b53:1ae2 with SMTP id co11-20020a17090afe8b00b0023d2b531ae2mr12993355pjb.3.1679275797384; Sun, 19 Mar 2023 18:29:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679275797; cv=none; d=google.com; s=arc-20160816; b=jfP7nAKrJZb0bPN5dM1J5g0oBI8SLa3HVXDzAYRZ4VbZ3CQE/tuy3xPjS3s5RYTyHb UKxh7gCOnG0ANksjLZB9CqwmkT9Jz//wg+1CGM4oLwp4JcFbov7h9N+LWnR5Hf/Wdjte 8DqEBo9yFHPeSmltzMQRUp8h+RuvSpzOVaZV8EvADwbFYAgxS+ipjCoxArVIfiAGfInd RVSo8EF8rxzcrD5Zv3KT3yLdNZLgg+N02jT1RTYqwmMeunq0CK45535pvvQUfMmNFoYn B1rtja17HHvShwGFe1m8xR/aUdPgFb7t13Iqhbdf0ejb/Z5+m+3ySkBW1ko9Y09rt4Fd oO0w== 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=+7KGvaKk/CTuuBtg1tMmuQANIk0Mq/2W7YJCDO2gAzE=; b=hxJBO/RSQ0dltSPKoqmIJi4xDlAfHJR3oMMIDWuKi0InMyyyxp9E/rl0TbyECf0wia GJGRl3jelgTakw6+SITWj+V3d+64CZ9SIzjZbIbG/xVTzLSbDJILAHqrFDmTpSGJjfnT r9VIDaDQ4AGGyovFag+43ynRQDLnaaTiDCVtykJwRkN66CLg6nVKe90QUG/rYQuDwoJC fxA2Bm276xefyfAiZBXeHH/heKQGpR4bo45isbjGB1QC4Cc6Pxo1/4ZwYW4Jz/H8HnWc gUhCxi3YWKe9eOwmv3yAWg/LR0xMP7QHOv1uYk+TnS/9o7eoRJVXs9zVq+Z4/hOXP6cZ UdbA== 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 n127-20020a632785000000b0050be690a621si9550149pgn.327.2023.03.19.18.29.45; Sun, 19 Mar 2023 18:29:57 -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 S229888AbjCTAxu (ORCPT + 99 others); Sun, 19 Mar 2023 20:53:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229798AbjCTAxW (ORCPT ); Sun, 19 Mar 2023 20:53:22 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 318441E282; Sun, 19 Mar 2023 17:53:14 -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 6FF92FEC; Sun, 19 Mar 2023 17:53:58 -0700 (PDT) Received: from slackpad.fritz.box (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DE5463F885; Sun, 19 Mar 2023 17:53:11 -0700 (PDT) From: Andre Przywara To: Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Samuel Holland , Jernej Skrabec Cc: linux-arm-kernel@lists.infradead.org, Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , =?utf-8?b?QW5kcsOhcyBTemVtesO2?= , Icenowy Zheng , Fabien Poussin , linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Belisko Marek Subject: [PATCH v2 4/4] ARM: dts: sunxi: add MangoPi MQ-R-T113 board Date: Mon, 20 Mar 2023 00:52:49 +0000 Message-Id: <20230320005249.13403-5-andre.przywara@arm.com> X-Mailer: git-send-email 2.35.7 In-Reply-To: <20230320005249.13403-1-andre.przywara@arm.com> References: <20230320005249.13403-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?1760848298339801062?= X-GMAIL-MSGID: =?utf-8?q?1760848298339801062?= The MangoPi MQ-R-T113 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. Add a .dtsi file describing most of the board's peripherals, and include that from the actual board .dts file. This allows to re-use the .dtsi for the MQ-R-F113 RISC-V variant of that board. Signed-off-by: Andre Przywara Acked-by: Jernej Skrabec --- arch/arm/boot/dts/Makefile | 1 + .../dts/sun8i-t113s-mangopi-mq-r-t113.dts | 35 +++++ .../boot/dts/sunxi-d1s-t113-mangopi-mq-r.dtsi | 126 ++++++++++++++++++ 3 files changed, 162 insertions(+) create mode 100644 arch/arm/boot/dts/sun8i-t113s-mangopi-mq-r-t113.dts create mode 100644 arch/arm/boot/dts/sunxi-d1s-t113-mangopi-mq-r.dtsi diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index efe4152e5846d..3367e24146da8 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -1397,6 +1397,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-t113.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-t113.dts b/arch/arm/boot/dts/sun8i-t113s-mangopi-mq-r-t113.dts new file mode 100644 index 0000000000000..94e24b5926dd7 --- /dev/null +++ b/arch/arm/boot/dts/sun8i-t113s-mangopi-mq-r-t113.dts @@ -0,0 +1,35 @@ +// SPDX-License-Identifier: (GPL-2.0+ or MIT) +// Copyright (C) 2022 Arm Ltd. + +#include + +/dts-v1/; + +#include "sun8i-t113s.dtsi" +#include "sunxi-d1s-t113-mangopi-mq-r.dtsi" + +/ { + model = "MangoPi MQ-R-T113"; + compatible = "widora,mangopi-mq-r-t113", "allwinner,sun8i-t113s"; + + aliases { + ethernet0 = &rtl8189ftv; + }; +}; + +&cpu0 { + cpu-supply = <®_vcc_core>; +}; + +&cpu1 { + cpu-supply = <®_vcc_core>; +}; + +&mmc1 { + rtl8189ftv: wifi@1 { + reg = <1>; + interrupt-parent = <&pio>; + interrupts = <6 10 IRQ_TYPE_LEVEL_LOW>; /* PG10 = WL_WAKE_AP */ + interrupt-names = "host-wake"; + }; +}; diff --git a/arch/arm/boot/dts/sunxi-d1s-t113-mangopi-mq-r.dtsi b/arch/arm/boot/dts/sunxi-d1s-t113-mangopi-mq-r.dtsi new file mode 100644 index 0000000000000..e9bc749488bb2 --- /dev/null +++ b/arch/arm/boot/dts/sunxi-d1s-t113-mangopi-mq-r.dtsi @@ -0,0 +1,126 @@ +// SPDX-License-Identifier: (GPL-2.0+ or MIT) +// Copyright (C) 2022 Arm Ltd. +/* + * Common peripherals and configurations for MangoPi MQ-R boards. + */ + +#include +#include + +/ { + aliases { + 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: regulator-5v { + 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 */ + }; +}; + +&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"; +}; + +&ohci1 { + status = "okay"; +}; + +&pio { + vcc-pb-supply = <®_3v3>; + vcc-pd-supply = <®_3v3>; + vcc-pe-supply = <®_avdd2v8>; + vcc-pf-supply = <®_3v3>; + vcc-pg-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"; +};