Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2612440rdb; Fri, 22 Sep 2023 04:01:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGWYSmebFU1ABH9qhjS1dPSD2o+Tfz+67McBJXL/Hh6KeyOrltgQ6mKH/qbAcaTjIQBomcA X-Received: by 2002:a17:902:d504:b0:1c0:bf60:ba4f with SMTP id b4-20020a170902d50400b001c0bf60ba4fmr8254867plg.4.1695380508779; Fri, 22 Sep 2023 04:01:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695380508; cv=none; d=google.com; s=arc-20160816; b=xG/RMEkDxt6Q78Qhy/IrngRkkl2UTWKodB56YHMZOl5OcREz7QZDx6TylHtobA8e5e 3LnAkKUoXxcRrwGGFEy//UnWxr2zw3ThZ9oYv42WVo6zr4/qkk2DobFxnmsael/sb2j4 dVczq7ZdR6OXXiHbsR7cVaNg8qc2MZ7vOLBJpJSBYo8g6oPPqT1I6qKw6jXks8CDQ5+a XGFJLBeel7U43YRq9AQHdclp4EfS7VRG9r5qlajHHpDmCzIXaux6ZhLo6p0wFuFSMQ/D Mxwj0qM4vegmeTxVa6WkqPxQCrx3mlGg9qHU1FVbpyjmNT9aYR+Q1nupbvYlS5bYl7lL jGbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=x/ODN1+tSGNhm8mIdbdTdIsiSDLajAETHagv5I2f8UU=; fh=I4ijMI7AQ7fRpsGcTjIPSh78CtF/3txliGVsnsvNyOs=; b=vcML4cgEeU+ZJAvMthbu29gLZKiAJv6mRsc0aWg0a759guMI5LoDX+6PYimE000wD+ NME4wnrGOcn4np6Z8m1kdRFr3nn9v0/YNRP/undaj0wfv0z+q7LH/IGGLZMCxLOZs8/8 H1MYAhra4CGoy6VXMq24qX6HcKHtEUDAVkCnC3X5haz8C99Qk192teFy3kMtzrnLaoxN 508trlVuGF1zpdBFo1hV/UMMNviSKSEVx3U7n3tv6/uhIGQMvkWyTO19DosVhDK11CLc jQwkJ3l/ZhaEvd9JcPBEyqFIVHn55aEfwV0TWU6AxEig5PgxdfpKPWHwGX77O30QL8hu q3xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Z0+Yh0sh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id a17-20020a170902ecd100b001bf01fee6bcsi3862636plh.610.2023.09.22.04.01.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 04:01:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Z0+Yh0sh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 90A318318C67; Fri, 22 Sep 2023 01:30:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232013AbjIVIaE (ORCPT + 99 others); Fri, 22 Sep 2023 04:30:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232572AbjIVI3z (ORCPT ); Fri, 22 Sep 2023 04:29:55 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70A291A8; Fri, 22 Sep 2023 01:29:39 -0700 (PDT) Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 9124F6603102; Fri, 22 Sep 2023 09:29:37 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1695371378; bh=5R8v6wvd1MpFZX3AbIVOvcY34E23OlIoFUwytGVOO7A=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Z0+Yh0shm7ykovp53zYib/YCrUbjUxWqtXNUEczVVlnDvIsI9DpCZ8UHU477vqYh0 oAGQI9GStmrmL3MzLw1WI+3ZNysgViuZq3xHPjM+0kkCFWHKIMC4PONLHWqTfcSpd1 UQh/gmJ3uqOqcSrO03/KYThE9GtcqG4R0UVXtnDpIGqzMI8t6UlU9B/8bYMXtTVQiQ nEFKLyZD+UEGAFdBx/SLI4KpDdtvys3YoT7lJWA1lfVKVtLr8WRVNFVBuqpYpJTEkh 0XSsDGU/Cnzv+CStYCs8r2U3+CtOhNjWGgKNEo0exDGqg8k3lflP7eZbZP90IoQjn2 QIJluJHBjs7nQ== Message-ID: Date: Fri, 22 Sep 2023 10:29:35 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: [PATCH v6 2/2] arm64: dts: mediatek: mt8195: add MDP3 nodes Content-Language: en-US To: Moudy Ho , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org References: <20230922065017.10357-1-moudy.ho@mediatek.com> <20230922065017.10357-3-moudy.ho@mediatek.com> From: AngeloGioacchino Del Regno In-Reply-To: <20230922065017.10357-3-moudy.ho@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 22 Sep 2023 01:30:04 -0700 (PDT) Il 22/09/23 08:50, Moudy Ho ha scritto: > Add device nodes for Media Data Path 3 (MDP3) modules. > > Signed-off-by: Moudy Ho > --- > arch/arm64/boot/dts/mediatek/mt8195.dtsi | 388 +++++++++++++++++++++++ > 1 file changed, 388 insertions(+) > > diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/mediatek/mt8195.dtsi > index 4dbbf8fdab75..cf61ba7b8956 100644 > --- a/arch/arm64/boot/dts/mediatek/mt8195.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt8195.dtsi > @@ -1960,6 +1960,114 @@ > #clock-cells = <1>; > }; > ..snip.. > + > + display@14006000 { > + compatible = "mediatek,mt8183-mdp3-rsz"; Please always add a SoC-specific compatible (both here and in bindings). compatible = "medaitek,mt8195-mdp3-rsz", "mediatek,mt8183-mdp3-rsz"; > + reg = <0 0x14006000 0 0x1000>; > + mediatek,gce-client-reg = <&gce1 SUBSYS_1400XXXX 0x6000 0x1000>; > + mediatek,gce-events = , > + ; > + clocks = <&vppsys0 CLK_VPP0_MDP_RSZ>; > + }; > + ..snip.. > + > + dma-controller@1400c000 { > + compatible = "mediatek,mt8183-mdp3-wrot"; same here > + reg = <0 0x1400c000 0 0x1000>; > + mediatek,gce-client-reg = <&gce1 SUBSYS_1400XXXX 0xc000 0x1000>; > + mediatek,gce-events = , > + ; > + clocks = <&vppsys0 CLK_VPP0_MDP_WROT>; > + iommus = <&iommu_vpp M4U_PORT_L4_MDP_WROT>; > + power-domains = <&spm MT8195_POWER_DOMAIN_VPPSYS0>; > + #dma-cells = <1>; > + }; > + > mutex@1400f000 { > compatible = "mediatek,mt8195-vpp-mutex"; > reg = <0 0x1400f000 0 0x1000>; > @@ -2107,6 +2215,286 @@ > power-domains = <&spm MT8195_POWER_DOMAIN_VPPSYS1>; > }; > ..snip.. > + > + display@14f14000 { > + compatible = "mediatek,mt8183-mdp3-rsz"; and here > + reg = <0 0x14f14000 0 0x1000>; > + mediatek,gce-client-reg = <&gce1 SUBSYS_14f1XXXX 0x4000 0x1000>; > + mediatek,gce-events = , > + ; > + clocks = <&vppsys1 CLK_VPP1_SVPP1_MDP_RSZ>; > + }; > + > + display@14f15000 { > + compatible = "mediatek,mt8183-mdp3-rsz"; ...and here > + reg = <0 0x14f15000 0 0x1000>; > + mediatek,gce-client-reg = <&gce1 SUBSYS_14f1XXXX 0x5000 0x1000>; > + mediatek,gce-events = , > + ; > + clocks = <&vppsys1 CLK_VPP1_SVPP2_MDP_RSZ>; > + }; > + > + display@14f16000 { > + compatible = "mediatek,mt8183-mdp3-rsz"; ......and here. > + reg = <0 0x14f16000 0 0x1000>; > + mediatek,gce-client-reg = <&gce1 SUBSYS_14f1XXXX 0x6000 0x1000>; > + mediatek,gce-events = , > + ; > + clocks = <&vppsys1 CLK_VPP1_SVPP3_MDP_RSZ>; > + }; > + ..snip.. > + > + dma-controller@14f23000 { > + compatible = "mediatek,mt8183-mdp3-wrot"; ...again... and for the other two occurrences of wrot as well. Apart from that, looks good. Regards, Angelo > + reg = <0 0x14f23000 0 0x1000>; > + mediatek,gce-client-reg = <&gce1 SUBSYS_14f2XXXX 0x3000 0x1000>; > + mediatek,gce-events = , > + ; > + clocks = <&vppsys1 CLK_VPP1_SVPP1_MDP_WROT>; > + iommus = <&iommu_vdo M4U_PORT_L5_SVPP1_MDP_WROT>; > + power-domains = <&spm MT8195_POWER_DOMAIN_VPPSYS1>; > + #dma-cells = <1>; > + }; > + > + dma-controller@14f24000 { > + compatible = "mediatek,mt8183-mdp3-wrot"; > + reg = <0 0x14f24000 0 0x1000>; > + mediatek,gce-client-reg = <&gce1 SUBSYS_14f2XXXX 0x4000 0x1000>; > + mediatek,gce-events = , > + ; > + clocks = <&vppsys1 CLK_VPP1_SVPP2_MDP_WROT>; > + iommus = <&iommu_vdo M4U_PORT_L5_SVPP2_MDP_WROT>; > + power-domains = <&spm MT8195_POWER_DOMAIN_VPPSYS1>; > + #dma-cells = <1>; > + }; > + > + dma-controller@14f25000 { > + compatible = "mediatek,mt8183-mdp3-wrot"; > + reg = <0 0x14f25000 0 0x1000>; > + mediatek,gce-client-reg = <&gce1 SUBSYS_14f2XXXX 0x5000 0x1000>; > + mediatek,gce-events = , > + ; > + clocks = <&vppsys1 CLK_VPP1_SVPP3_MDP_WROT>; > + iommus = <&iommu_vpp M4U_PORT_L6_SVPP3_MDP_WROT>; > + power-domains = <&spm MT8195_POWER_DOMAIN_VPPSYS1>; > + #dma-cells = <1>; > + }; > + > imgsys: clock-controller@15000000 { > compatible = "mediatek,mt8195-imgsys"; > reg = <0 0x15000000 0 0x1000>;