Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2796968rdb; Fri, 22 Sep 2023 08:36:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF9VLfrwgHE05itsagUHnxl2cPZ8v2NewySnpbZPj7KfZb+tBtbj7SxdpranuuT0i9VFdFq X-Received: by 2002:a05:6830:1c7:b0:6b8:f588:2c79 with SMTP id r7-20020a05683001c700b006b8f5882c79mr72548ota.1.1695396992454; Fri, 22 Sep 2023 08:36:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695396992; cv=none; d=google.com; s=arc-20160816; b=XQLFAyeBh4aYV8dZnaSNxpvcCXb2flGLzddVoEvBBWoqQ5s/u/u1P2fWNchz6F0xGu zFoCl8mYfYzmapBW4wkGlGxJb9egV7rbtMcLGdKBHsHcR0Sw7UVRJnbQBCSu+ud9sO2k Wj3Ie9wBAsy6v3foIQIDlbNj36CNHdq5NdqM/PJo2Hr+ia+q8G8ForhLPBllGtSnQY31 eVBnAEdrBXx30fozfp0Ddtwq+8TK0tlArGX1+SMUhR10R4uxidGdTofBhQcmBMWGkNEM QSaJiH4b/7+gjYAC57C66zzLNnLypxEH6PLn6WWbHqJq7415z2xROiangzYmiZm2JTBg /WgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=X/JSbzODIDChl7nFmdoHzRAsRxFY3tQltDuTly3r8E0=; fh=SE8P9IcxtB2Gz/wdtSbGJFl2wIf8TbeQx856Bu5KJOQ=; b=Wk5X+nj7Sv+7gZ5KyGR/9NjH/cgaVjMckmUKQm6ZKBaI/KOono9rG15o6Q50wm8ad0 kjrwwOno/Ki0XBoRXOC/Mv/skqNK2JPonKW4IQFTSS4ICr3hbnms3OfdSpNmC3P4bbtJ 9SC9IEdWb8vfRefXxtLWz08nbpISZUaEMbJT4MG1ftZ0B0kijMqMNmeI+7vFfqgF1JYg 9x6dDN2H7txn7qfZWQoO7tZ0Dp6uAfJ3r73pr3/BiwUp8IC7X374P9C1eSEDhx7N/DD9 /Gj5qUG67RCPw3O2VyQiaTyLy2lL31PxLRxQ7MDpDzCtSp8Z5Aqrg+Hk6tqObaa8tduw IwKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=VqT234vn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id h129-20020a636c87000000b00574046766e0si3954778pgc.40.2023.09.22.08.36.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 08:36:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=VqT234vn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 6BD9583AC0EC; Fri, 22 Sep 2023 00:22:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231538AbjIVHWV (ORCPT + 99 others); Fri, 22 Sep 2023 03:22:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231193AbjIVHVk (ORCPT ); Fri, 22 Sep 2023 03:21:40 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B97EB192; Fri, 22 Sep 2023 00:21:33 -0700 (PDT) X-UUID: 9f8d9d6a591811ee8051498923ad61e6-20230922 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=X/JSbzODIDChl7nFmdoHzRAsRxFY3tQltDuTly3r8E0=; b=VqT234vnpmP/ZzTutCynaBKPIEOlsp33nB9LAeyOiUDUqTK3ufR/osMVctgcM9o7f+/EcL3j9dJ0oBQzEGEDgBvGhpvT94njxmsTzt3llkx72Yb5HHbpBt81X0v+BK6eV7CEhivNT/ISXpeo/A52tI+bewthSxoYqJpPuTAw6/A=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.32,REQID:c37227f1-1357-40b5-8b3b-be50cf123009,IP:0,U RL:25,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:25 X-CID-META: VersionHash:5f78ec9,CLOUDID:d38a00f0-9a6e-4c39-b73e-f2bc08ca3dc5,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:11|1,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR: NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR,TF_CID_SPAM_ULN X-UUID: 9f8d9d6a591811ee8051498923ad61e6-20230922 Received: from mtkmbs14n2.mediatek.inc [(172.21.101.76)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 55767708; Fri, 22 Sep 2023 15:21:18 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) 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.1118.26; Fri, 22 Sep 2023 15:21:18 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Fri, 22 Sep 2023 15:21:18 +0800 From: Moudy Ho To: Chun-Kuang Hu , Philipp Zabel , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Mauro Carvalho Chehab , Matthias Brugger , AngeloGioacchino Del Regno , Hans Verkuil CC: , , , , , , Moudy Ho Subject: [PATCH v6 07/16] dt-bindings: media: mediatek: mdp3: add component HDR for MT8195 Date: Fri, 22 Sep 2023 15:21:07 +0800 Message-ID: <20230922072116.11009-8-moudy.ho@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20230922072116.11009-1-moudy.ho@mediatek.com> References: <20230922072116.11009-1-moudy.ho@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,RDNS_NONE, SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=no 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 (snail.vger.email [0.0.0.0]); Fri, 22 Sep 2023 00:22:25 -0700 (PDT) Add the fundamental hardware configuration of component HDR, which is controlled by MDP3 on MT8195. Signed-off-by: Moudy Ho --- .../bindings/media/mediatek,mdp3-hdr.yaml | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/mediatek,mdp3-hdr.yaml diff --git a/Documentation/devicetree/bindings/media/mediatek,mdp3-hdr.yaml b/Documentation/devicetree/bindings/media/mediatek,mdp3-hdr.yaml new file mode 100644 index 000000000000..fb1bb5a9e57f --- /dev/null +++ b/Documentation/devicetree/bindings/media/mediatek,mdp3-hdr.yaml @@ -0,0 +1,60 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/mediatek,mdp3-hdr.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek Media Data Path 3 HDR + +maintainers: + - Matthias Brugger + - Moudy Ho + +description: + One of Media Data Path 3 (MDP3) components used to perform HDR to SDR + +properties: + compatible: + enum: + - mediatek,mt8195-mdp3-hdr + + reg: + maxItems: 1 + + mediatek,gce-client-reg: + description: + The register of display function block to be set by gce. There are 4 arguments, + such as gce node, subsys id, offset and register size. The subsys id that is + mapping to the register of display function blocks is defined in the gce header + include/dt-bindings/gce/-gce.h of each chips. + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + items: + - description: phandle of GCE + - description: GCE subsys id + - description: register offset + - description: register size + maxItems: 1 + + clocks: + minItems: 1 + +required: + - compatible + - reg + - mediatek,gce-client-reg + - clocks + +additionalProperties: false + +examples: + - | + #include + #include + + display@14004000 { + compatible = "mediatek,mt8195-mdp3-hdr"; + reg = <0x14004000 0x1000>; + mediatek,gce-client-reg = <&gce1 SUBSYS_1400XXXX 0x4000 0x1000>; + clocks = <&vppsys0 CLK_VPP0_MDP_HDR>; + }; -- 2.18.0