Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp11700747rwl; Tue, 3 Jan 2023 03:31:42 -0800 (PST) X-Google-Smtp-Source: AMrXdXsj8ASvx49RKrTMUxtgnX/4V+/fvtyzDa2IHTeGE1Y0KSRlvNkviBceuYBcZe9p+M90N9uX X-Received: by 2002:a17:907:8b98:b0:840:a6a3:41c7 with SMTP id tb24-20020a1709078b9800b00840a6a341c7mr39157999ejc.50.1672745502416; Tue, 03 Jan 2023 03:31:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672745502; cv=none; d=google.com; s=arc-20160816; b=ajIYnVxpcLnk9KK+pmFclA156MQ1Zl1gHDO++cFbyv/UGVlKWn7nv+AODjwC84ClvB 5XJMVMlWrVlRd+lSBUaFamugr7ubK71DgyufI5H9PYG5vtmkqes+Sc2FGDWhZjJ+Ltxo 8BbX66P/nuRr2h4aiJeJMpJ4oPN4zsSw1iUhY+KJSkNfxFWFydCk3AghdIIuJ5LI55zQ ESzZ2rgLVqgRvRK7K4ZMXgArUtOLz6kqOFr32UzBtOQ99yAI526ttXvYrm3D4GDNRk4/ hluFi8EcxO93N0Nq8w+if0GxRkzFNnuf7kv35QRiKLSsQrg8QKWrkJyTGaKd1JdpOYzI GrfQ== 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=sOXwdhNPjplkr7AAFQYX4vaOnSYiGWtvb87kL2Q1d74=; b=v4KlDa2K7kQBToFhinwaML2YdxxZLirdim9+HI3Pk/JA75oQKV2Xip4nyEk2yb+3Yf deEYKSACqF+UQrBUXgEmR9A3+QlKDHViBxZpeT8FV3J0MIuntqBe8OmCmkFaCNGnuO57 BW1UqzilfDpZkXJ+R8WwW1LijqxEOulc59AFUuVwLJGgwqEonUuxwN3LbB6xHon7XK9g P9oF7zlBOtPgaj7/r0cHEgxH11HIhm+5nSZ8iq1j7yTxUkg3VC7ogI0yT39TkgwW3ofJ JA9zT3nyKx9Qr73M8ZJeIoM+YhOXOrs7Vx5/wJ8uZr3do/vLaXYo8yTwWTmFuXbn4KBz AzKA== 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 sa35-20020a1709076d2300b0080a15fe49a5si29206205ejc.571.2023.01.03.03.31.27; Tue, 03 Jan 2023 03:31:42 -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 S237175AbjACLGY (ORCPT + 61 others); Tue, 3 Jan 2023 06:06:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237492AbjACLGT (ORCPT ); Tue, 3 Jan 2023 06:06:19 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id ECF78E83; Tue, 3 Jan 2023 03:06:17 -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 532541516; Tue, 3 Jan 2023 03:06:59 -0800 (PST) Received: from donnerap.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8D7763F663; Tue, 3 Jan 2023 03:06:15 -0800 (PST) Date: Tue, 3 Jan 2023 11:06:13 +0000 From: Andre Przywara To: Samuel Holland Cc: Chen-Yu Tsai , Jernej Skrabec , linux-sunxi@lists.linux.dev, devicetree@vger.kernel.org, Rob Herring , Jisheng Zhang , linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Palmer Dabbelt , Krzysztof Kozlowski , Conor Dooley , linux-kernel@vger.kernel.org, Heiko Stuebner , Palmer Dabbelt , Conor Dooley , Heiko Stuebner Subject: Re: [PATCH v4 04/12] riscv: dts: allwinner: Add the D1/D1s SoC devicetree Message-ID: <20230103110613.725f6fa4@donnerap.cambridge.arm.com> In-Reply-To: <20221231233851.24923-5-samuel@sholland.org> References: <20221231233851.24923-1-samuel@sholland.org> <20221231233851.24923-5-samuel@sholland.org> Organization: ARM X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; aarch64-unknown-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 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 Sat, 31 Dec 2022 17:38:43 -0600 Samuel Holland wrote: Hi, > D1 (aka D1-H), D1s (aka F133), R528, and T113 are a family of SoCs based > on a single die, or at a pair of dies derived from the same design. > > D1 and D1s contain a single T-HEAD Xuantie C906 CPU, whereas R528 and > T113 contain a pair of Cortex-A7's. D1 and R528 are the full version of > the chip with a BGA package, whereas D1s and T113 are low-pin-count QFP > variants. > > Because the original design supported both ARM and RISC-V CPUs, some > peripherals are duplicated. In addition, all variants except D1s contain > a HiFi 4 DSP with its own set of peripherals. > > The devicetrees are organized to minimize duplication: > - Common perhiperals are described in sunxi-d1s-t113.dtsi > - DSP-related peripherals are described in sunxi-d1-t113.dtsi > - RISC-V specific hardware is described in sun20i-d1s.dtsi > - Functionality unique to the D1 variant is described in sun20i-d1.dtsi > > The SOC_PERIPHERAL_IRQ macro handles the different #interrupt-cells > values between the ARM (GIC) and RISC-V (PLIC) versions of the SoC. I compared to the v2 post (which I already checked against the T113-s manual) and did not find any extra changes apart from those mentioned in the changelog below. As my two questions from v2 are answered: Reviewed-by: Andre Przywara Many thanks, Andre > > Acked-by: Jernej Skrabec > Acked-by: Palmer Dabbelt > Reviewed-by: Conor Dooley > Reviewed-by: Heiko Stuebner > Tested-by: Heiko Stuebner > Signed-off-by: Samuel Holland > --- > > (no changes since v3) > > Changes in v3: > - Drop dummy DCXO clock-frequency property > - Decrease the PLIC's riscv,ndev property to 175 > - Fix `make W=1 dtbs` warnings (unnecessary #address/#size-cells) > > Changes in v2: > - Split into separate files for sharing with D1s/R528/T113 > - Use SOC_PERIPHERAL_IRQ macro for interrupts > - Rename osc24M to dcxo and move the frequency to the board DTs > - Drop analog LDOs due to the missing binding > - Correct tcon_top DSI clock reference > - Add DMIC, DSI controller, and DPHY (bindings are in linux-next) > - Add CPU OPP table > > arch/riscv/boot/dts/allwinner/sun20i-d1.dtsi | 66 ++ > arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi | 76 ++ > .../boot/dts/allwinner/sunxi-d1-t113.dtsi | 15 + > .../boot/dts/allwinner/sunxi-d1s-t113.dtsi | 837 ++++++++++++++++++ > 4 files changed, 994 insertions(+) > create mode 100644 arch/riscv/boot/dts/allwinner/sun20i-d1.dtsi > create mode 100644 arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi > create mode 100644 arch/riscv/boot/dts/allwinner/sunxi-d1-t113.dtsi > create mode 100644 arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi > ...