From nobody Sun Sep 22 05:45:28 2024 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DBF41C433EF for ; Thu, 21 Apr 2022 03:51:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1384043AbiDUDyV (ORCPT ); Wed, 20 Apr 2022 23:54:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242476AbiDUDyN (ORCPT ); Wed, 20 Apr 2022 23:54:13 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64C8CB87A; Wed, 20 Apr 2022 20:51:24 -0700 (PDT) X-UUID: 3802498634374d6b9477be0704ca4105-20220421 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.4,REQID:724215d1-6d14-47e0-9fa4-fd22af08ae1f,OB:0,LO B:0,IP:0,URL:8,TC:0,Content:-20,EDM:0,RT:0,SF:0,FILE:0,RULE:Release_Ham,AC TION:release,TS:-12 X-CID-META: VersionHash:faefae9,CLOUDID:82d197ef-06b0-4305-bfbf-554bfc9d151a,C OID:IGNORED,Recheck:0,SF:nil,TC:nil,Content:0,EDM:-3,File:nil,QS:0,BEC:nil X-UUID: 3802498634374d6b9477be0704ca4105-20220421 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1520972936; Thu, 21 Apr 2022 11:51:19 +0800 Received: from mtkexhb01.mediatek.inc (172.21.101.102) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 21 Apr 2022 11:51:17 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkexhb01.mediatek.inc (172.21.101.102) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 21 Apr 2022 11:51:17 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 21 Apr 2022 11:51:17 +0800 From: Allen-KH Cheng To: Mauro Carvalho Chehab , Matthias Brugger , Rob Herring , "Krzysztof Kozlowski" CC: , , , , , "Chen-Yu Tsai" , Ryder Lee , Hui Liu , Irui Wang , Allen-KH Cheng Subject: [PATCH 4/4] dt-bindings: media: mtk-vcodec: Add encoder power domain property Date: Thu, 21 Apr 2022 11:51:11 +0800 Message-ID: <20220421035111.7267-5-allen-kh.cheng@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20220421035111.7267-1-allen-kh.cheng@mediatek.com> References: <20220421035111.7267-1-allen-kh.cheng@mediatek.com> MIME-Version: 1.0 X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Irui Wang Add encoder power domain property Signed-off-by: Irui Wang Signed-off-by: Allen-KH Cheng Reviewed-by: Matthias Brugger --- .../devicetree/bindings/media/mediatek,vcodec-encoder.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/media/mediatek,vcodec-encode= r.yaml b/Documentation/devicetree/bindings/media/mediatek,vcodec-encoder.ya= ml index e7b65a91c92c..de2df6c6352c 100644 --- a/Documentation/devicetree/bindings/media/mediatek,vcodec-encoder.yaml +++ b/Documentation/devicetree/bindings/media/mediatek,vcodec-encoder.yaml @@ -41,6 +41,9 @@ properties: =20 assigned-clock-parents: true =20 + power-domains: + maxItems: 1 + iommus: minItems: 1 maxItems: 32 @@ -74,6 +77,7 @@ required: - iommus - assigned-clocks - assigned-clock-parents + - power-domains =20 allOf: - if: @@ -135,6 +139,7 @@ examples: #include #include #include + #include =20 vcodec_enc_avc: vcodec@18002000 { compatible =3D "mediatek,mt8173-vcodec-enc"; @@ -156,6 +161,7 @@ examples: clock-names =3D "venc_sel"; assigned-clocks =3D <&topckgen CLK_TOP_VENC_SEL>; assigned-clock-parents =3D <&topckgen CLK_TOP_VCODECPLL>; + power-domains =3D <&scpsys MT8173_POWER_DOMAIN_VENC>; }; =20 vcodec_enc_vp8: vcodec@19002000 { @@ -176,4 +182,5 @@ examples: clock-names =3D "venc_lt_sel"; assigned-clocks =3D <&topckgen CLK_TOP_VENC_LT_SEL>; assigned-clock-parents =3D <&topckgen CLK_TOP_VCODECPLL_370P5>; + power-domains =3D <&scpsys MT8173_POWER_DOMAIN_VENC_LT>; }; --=20 2.18.0