Message ID | 20230103010903.11181-7-samuel@sholland.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp4381110wrt; Mon, 2 Jan 2023 17:11:47 -0800 (PST) X-Google-Smtp-Source: AMrXdXsC3WC1zRPyB2RKJQo+CqSrUN099Sa32jgt/Ycg8BkF0IQ1LUcd/KvvJK3+6CcUb1EFxOLb X-Received: by 2002:a05:6402:1770:b0:461:8be6:1ac5 with SMTP id da16-20020a056402177000b004618be61ac5mr33392413edb.3.1672708307323; Mon, 02 Jan 2023 17:11:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672708307; cv=none; d=google.com; s=arc-20160816; b=DoAIdtLJqUh4oU+59VAy0zG1N2X/01YqvjAGsInWao37J+frx4LzCoMfZ4vdWOPIHM 5hkpTXOOA17aXowoHoljbCFlOYJvX+o/ZDVJs9T+gz8rkiSl3xuVUiqz8k/FGypLlVPB /adJtd7b6zh6sYTXwwhHF/bp8kR0hfpo7Bym8Ofh2sS3XldDUhsYLcvV08x9VgSTDNq2 vCbPoo7Pjolc5aBJjelc7ViY1UavDwggOY4FLddyq9Zm/gq2eRA/ckssZoJEWLCRm+KY qZ0CZwt89LaVh1n8waQPxklLrazraWCGILWmgRjiWvcWnnusgWStnmMCQm+O2LWG40mn VOlA== 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 :feedback-id:dkim-signature:dkim-signature; bh=kZsTHUFAGL+nV4DJ8yYJfUo1prfIfeItgnkARi0XucI=; b=YCs0nTtRYcXRU5k4z2EtpfZpVbp/zw+52gePc4mNr78Onf4gF6vK+fZ1X6gD1ZuLuj 7KvQJ4oxmiLtZkk1OzfRfNe7znHnzLTpNE7JwNCauDFwEea+T4LknZFGJqb6d2dxiRH2 txNzAaR+4hRx/Y9a72o1uF5lkB5yx2amALx0zkMRxkvo8ZaOaZRHcGLdCAEkJQFr6OsX wXSAS+EGt3p5q2oufHz83dSWt8EIzE8aoimWpqG/m0ZU1sCKg+LHyw7r5hzxON30UHMw b2+Qzhkzbmj5+4anDxqrlK3UsbTVcG/71+JKGZ+hBTh98YY9e9O34bA9BGDstU2YnPsz QA4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm3 header.b=I7sS11A2; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=eX3XuWrX; 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=NONE dis=NONE) header.from=sholland.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y99-20020a50bb6c000000b0046b1ffb7211si26347409ede.423.2023.01.02.17.11.23; Mon, 02 Jan 2023 17:11:47 -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; dkim=pass header.i=@sholland.org header.s=fm3 header.b=I7sS11A2; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=eX3XuWrX; 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=NONE dis=NONE) header.from=sholland.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236657AbjACBKU (ORCPT <rfc822;tmhikaru@gmail.com> + 99 others); Mon, 2 Jan 2023 20:10:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236497AbjACBJ1 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 2 Jan 2023 20:09:27 -0500 Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3575B6462; Mon, 2 Jan 2023 17:09:25 -0800 (PST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 7CE103200900; Mon, 2 Jan 2023 20:09:23 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 02 Jan 2023 20:09:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1672708163; x=1672794563; bh=kZ sTHUFAGL+nV4DJ8yYJfUo1prfIfeItgnkARi0XucI=; b=I7sS11A2fNj9GnEtLL di2WxTbt2fNqMvmw2JjUkrMMjEGSpUzNj0K6KEkITQSRDIkVAuPjbAPS+s22k7aS tfsAgV+9rhwz0OsKtDzaywoFQ5TzYWohtV7IcdmmfJ9PBxrpvEfzw2dj6Y0RjFQ0 xKrmbQXuOfVFjpqqddgqlSYwYv48DCLF3OhNx9Cqrh5HIE0Fu/auiua9PE/6y3ij NjLCren3eo0hKw48PTujzcAXpGXQTe6pCInodtiy9FRNN4bE6LE/fMHgbziM9i8d 6AGjT2p29+wbfJoj8BJupdBGZM/XTeq82N9bNT1VH0iEqrJqlich4l1ZcpQl8O5w sn4Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1672708163; x=1672794563; bh=kZsTHUFAGL+nV 4DJ8yYJfUo1prfIfeItgnkARi0XucI=; b=eX3XuWrX8cm2ftUAKF2gxfelvft5x +bjA9gM3kX1V3S39zQtE/PSsqVvhgCHtNInNIuAupyq8jd9GND0d6sxcO9oRLsOd GdhKOW9EkeaQFXtKCwYD/eDqIKQpds2sk9gqSH9cjeU5OT4xyyLjM/gYZQtHjCKv yF3RlSodYhmfUzGHzVPp1eMl753ra/d/PzadFj3FoI8BwDQb9WEz6yvxhDOoI3AT fT6cvdtMMTy9IioN9e1FDX33JWlKHwEn8OmARDTeKDprdkQTwLcmnr98k16P7Ucm Y0r/8BUpfPugtHovwcL1DwCsYtF21e58T31Gyj7TRdFjrPvsPSZIIgbTw== X-ME-Sender: <xms:QoCzYy9TDq9iWF74Sx08Jj2X5BtMYIMHwLJ1M1B8URilJFRNm4b5BQ> <xme:QoCzYyvBHyEduguIVDOllusGjDcbo7ASoqRWSJbHTvhjKp2BuOI9oGLcqdtrhaTfQ 3890VFvM-40RxOqbQ> X-ME-Received: <xmr:QoCzY4A5Fve0aixke3s71sd1_EuxU27lvm4JErr237ULCze1afkHGrLHs5WYeMBRilmDedcNCL5c-gPJYAoamyShrscsj6WWNzVs_jXkC4yAIi7d7540CIbLg93qwre6U7o20A> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrjeefgdeffecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgv lhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtf frrghtthgvrhhnpedukeetueduhedtleetvefguddvvdejhfefudelgfduveeggeehgfdu feeitdevteenucevlhhushhtvghrufhiiigvpedvnecurfgrrhgrmhepmhgrihhlfhhroh hmpehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: <xmx:Q4CzY6fnAnPQYSmjSVqj0oY1bDJrW05uOYRKGtJzWq6ND-MRD5oqLA> <xmx:Q4CzY3NwlDA12CGwmQrotGqdECTzqEqAPp1y6_9CVDtCaKCG0zDzyw> <xmx:Q4CzY0nPJfHDUPdYMp8jdKHk0YFpAWOas1q1Bs2YLhkxhollMohmUA> <xmx:Q4CzY7kGlOpZCnM6B36tC02s93AE8msh-NalISTYKpsC4WQoVph1bw> Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 2 Jan 2023 20:09:22 -0500 (EST) From: Samuel Holland <samuel@sholland.org> To: Joerg Roedel <joro@8bytes.org>, Will Deacon <will@kernel.org>, Robin Murphy <robin.murphy@arm.com>, Chen-Yu Tsai <wens@csie.org>, Jernej Skrabec <jernej.skrabec@gmail.com>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Rob Herring <robh+dt@kernel.org> Cc: iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Maxime Ripard <mripard@kernel.org>, Samuel Holland <samuel@sholland.org> Subject: [PATCH v2 6/6] riscv: dts: allwinner: d1: Add the IOMMU node Date: Mon, 2 Jan 2023 19:09:03 -0600 Message-Id: <20230103010903.11181-7-samuel@sholland.org> X-Mailer: git-send-email 2.37.4 In-Reply-To: <20230103010903.11181-1-samuel@sholland.org> References: <20230103010903.11181-1-samuel@sholland.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753961785769097638?= X-GMAIL-MSGID: =?utf-8?q?1753961785769097638?= |
Series |
iommu/sun50i: Allwinner D1 support
|
|
Commit Message
Samuel Holland
Jan. 3, 2023, 1:09 a.m. UTC
D1 contains an IOMMU for its video-related hardware. Add the node, and
hook it up to the masters which are already described in the devicetree.
Signed-off-by: Samuel Holland <samuel@sholland.org>
---
Changes in v2:
- New patch for v2
arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi | 10 ++++++++++
1 file changed, 10 insertions(+)
Comments
Dne torek, 03. januar 2023 ob 02:09:03 CET je Samuel Holland napisal(a): > D1 contains an IOMMU for its video-related hardware. Add the node, and > hook it up to the masters which are already described in the devicetree. > > Signed-off-by: Samuel Holland <samuel@sholland.org> Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com> Best regards, Jernej
On Mon, Jan 02, 2023 at 07:09:03PM -0600, Samuel Holland wrote:
> arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi | 10 ++++++++++
This file does not exist in v6.2-rc3, what tree ist this patch-set based
on?
Regards,
Joerg
Hi Joerg, On 1/13/23 09:35, Joerg Roedel wrote: > On Mon, Jan 02, 2023 at 07:09:03PM -0600, Samuel Holland wrote: >> arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi | 10 ++++++++++ > > This file does not exist in v6.2-rc3, what tree ist this patch-set based > on? The D1/D1s/T113 devicetree is added by this series[1], which will be merged through the sunxi -> soc tree. That patch is included to show how the new compatible string is used, and that the driver changes have been tested. You can ignore it when merging the binding/driver changes. The rest of the series should apply cleanly to v6.2-rc3. Regards, Samuel [1]: https://lore.kernel.org/linux-sunxi/20221231233851.24923-1-samuel@sholland.org/
On Sat, Jan 14, 2023 at 11:17:06AM -0600, Samuel Holland wrote: > The D1/D1s/T113 devicetree is added by this series[1], which will be > merged through the sunxi -> soc tree. That patch is included to show how > the new compatible string is used, and that the driver changes have been > tested. You can ignore it when merging the binding/driver changes. The > rest of the series should apply cleanly to v6.2-rc3. Thanks for clarifying. Patches 1-5 are now applied.
diff --git a/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi b/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi index dff363a3c934..ade50f1e01a4 100644 --- a/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi +++ b/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi @@ -138,6 +138,14 @@ ccu: clock-controller@2001000 { #reset-cells = <1>; }; + iommu: iommu@2010000 { + compatible = "allwinner,sun20i-d1-iommu"; + reg = <0x2010000 0x10000>; + interrupts = <SOC_PERIPHERAL_IRQ(64) IRQ_TYPE_LEVEL_HIGH>; + clocks = <&ccu CLK_BUS_IOMMU>; + #iommu-cells = <1>; + }; + dmic: dmic@2031000 { compatible = "allwinner,sun20i-d1-dmic", "allwinner,sun50i-h6-dmic"; @@ -574,6 +582,7 @@ mixer0: mixer@5100000 { <&display_clocks CLK_MIXER0>; clock-names = "bus", "mod"; resets = <&display_clocks RST_MIXER0>; + iommus = <&iommu 2>; ports { #address-cells = <1>; @@ -596,6 +605,7 @@ mixer1: mixer@5200000 { <&display_clocks CLK_MIXER1>; clock-names = "bus", "mod"; resets = <&display_clocks RST_MIXER1>; + iommus = <&iommu 2>; ports { #address-cells = <1>;