Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 027CDCCA47C for ; Mon, 20 Jun 2022 13:32:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2309510F0CE; Mon, 20 Jun 2022 13:32:03 +0000 (UTC) Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by gabe.freedesktop.org (Postfix) with ESMTPS id A6C7010F0BB for ; Mon, 20 Jun 2022 13:32:01 +0000 (UTC) X-UUID: 520776e5f83d4217a8242e71e31af414-20220620 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.6, REQID:3b3bc39f-2687-4e8e-b0ac-b0b02ab73b26, OB:0, LO B:0,IP:0,URL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,RULE:Release_Ham,ACTI ON:release,TS:0 X-CID-META: VersionHash:b14ad71, CLOUDID:0b2e04ea-f7af-4e69-92ee-0fd74a0c286c, C OID:IGNORED,Recheck:0,SF:nil,TC:nil,Content:-5,EDM:-3,IP:nil,URL:1,File:ni l,QS:nil,BEC:nil,COL:0 X-UUID: 520776e5f83d4217a8242e71e31af414-20220620 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 103744204; Mon, 20 Jun 2022 21:31:55 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) by mtkmbs11n1.mediatek.inc (172.21.101.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.3; Mon, 20 Jun 2022 21:31:53 +0800 Received: from mszsdhlt06 (10.16.6.206) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.3 via Frontend Transport; Mon, 20 Jun 2022 21:31:53 +0800 Message-ID: Subject: Re: FW: [PATCH 1/7] dt-bindings: display: mediatek: dpi: add power-domains property From: xinlei.lee To: , , Date: Mon, 20 Jun 2022 21:32:29 +0800 In-Reply-To: References: <20220530201436.902505-1-fparent@baylibre.com> <1c53c2c73875cf565b819f67267d0e725d49f3c2.camel@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MTK: N X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: chunkuang.hu@kernel.org, devicetree@vger.kernel.org, airlied@linux.ie, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, allen-kh.cheng@mediatek.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" > -----Original Message----- > From: Linux-mediatek On > Behalf Of CK Hu > Sent: Friday, June 17, 2022 1:31 PM > To: Fabien Parent ; matthias.bgg@gmail.com; > Jitao Shi (石记涛) ; > krzysztof.kozlowski+dt@linaro.org; robh+dt@kernel.org > Cc: chunkuang.hu@kernel.org; p.zabel@pengutronix.de; airlied@linux.ie > ; daniel@ffwll.ch; dri-devel@lists.freedesktop.org; > linux-mediatek@lists.infradead.org; devicetree@vger.kernel.org; > linux-kernel@vger.kernel.org; linux-arm-kernel@lists.infradead.org > Subject: Re: [PATCH 1/7] dt-bindings: display: mediatek: dpi: add > power-domains property > > Hi, Fabien: > > On Mon, 2022-05-30 at 22:14 +0200, Fabien Parent wrote: > > DPI is part of the display / multimedia block in MediaTek SoCs, > > and > > always have a power-domain (at least in the upstream device-trees). > > Add the power-domains property to the binding documentation. > > > > Signed-off-by: Fabien Parent > > --- > > .../devicetree/bindings/display/mediatek/mediatek,dpi.yaml | 6 > > ++++++ > > 1 file changed, 6 insertions(+) > > > > diff --git > > a/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.y > > am > > l > > b/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.y > > am > > l > > index 77ee1b923991..caf4c88708f4 100644 > > --- > > a/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.y > > am > > l > > +++ > > b/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.y > > am > > l > > @@ -57,6 +57,9 @@ properties: > > Output port node. This port should be connected to the > > input > > port of an > > attached HDMI or LVDS encoder chip. > > > > + power-domains: > > + maxItems: 1 > > + > > required: > > - compatible > > - reg > > @@ -64,6 +67,7 @@ required: > > - clocks > > - clock-names > > - port > > + - power-domains > > > > additionalProperties: false > > > > @@ -71,11 +75,13 @@ examples: > > - | > > #include > > #include > > + #include > > Why do you include mt8183 power header file for mt8173 dpi node? > > Regards, > CK > > > > > dpi0: dpi@1401d000 { > > compatible = "mediatek,mt8173-dpi"; > > reg = <0x1401d000 0x1000>; > > interrupts = ; > > + power-domains = <&spm MT8173_POWER_DOMAIN_MM>; > > clocks = <&mmsys CLK_MM_DPI_PIXEL>, > > <&mmsys CLK_MM_DPI_ENGINE>, > > <&apmixedsys CLK_APMIXED_TVDPLL>; > > Hi fparent: I think CK's suggestion, probably because you included the wrong header file for power. Because I did not find the definition of MT8173_POWER_DOMAIN_MM in the path of dt-bindings/power/mt8183-power.h, it was defined in dt- bindings/power/mt8173-power.h. Please discuss if you have different opinions. Best Regards! xinlei