Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp160685rdg; Thu, 12 Oct 2023 01:42:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH/j0z2e06AMgIMGa2IYhdnk4HQi/pJtU46LhAbDX7ufg92glUG/nwWQ8nYJqHR9hL2WEDw X-Received: by 2002:a25:1f0a:0:b0:d9a:4ae7:ba2c with SMTP id f10-20020a251f0a000000b00d9a4ae7ba2cmr7871762ybf.22.1697100174165; Thu, 12 Oct 2023 01:42:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697100174; cv=none; d=google.com; s=arc-20160816; b=ereg/H3W5a7wpFtA+2WXtLrRTONvQqHqWikWCj4/taNnufnULPPI8PTYERt/lBlJGx C7LRD725XSzGpwFdCSxn7HJheyw1XI7Ij8uI08bFjrl2UAnJAb/uNDp5MMs88MINojHX CN3jeVD+hDdI7u+cJBc232lv6x12ljceIMjEAdFAomFSjS9akn7mPXWuqm1+nmBsuIgN AkkjKiM271QGth41MSACz9QU23NjBsTigcHIXIZA7vOIuFUdIWTKQmtJLKMByvvy7Byd ADaFZC3JK0ZanWO+Ke+2nKfbkgcmsKeh88axEArTNjoA4QzZqbXIKFVAOcit89EXuSRN 4B3w== 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=WeTi3Zz4I+hjOP+G95ZWq0hB1FdtJbUX3ItMJS2+pV4=; fh=SE8P9IcxtB2Gz/wdtSbGJFl2wIf8TbeQx856Bu5KJOQ=; b=l56nTfVdaUBNzXRzIVwu+fLiBzlxnNGX5GG3FIOSJskBNtszL0qQ4ZStuqjs/AwVxG cTvzFPRH7G8d823UaT23DdQpRn4X+R8lJM3jG8A4K8FPOivnKNwBtfRzWPtcyJZSTk4q htbehqCA4b0nkq+lC3yBsOc3OHlDiaRhOqjuMxmj/sUY+tmvAEEILeeoX0USPxj/eb5Y XuuppfHF3etZ0uMi4n6ofZqokkNtXCpKDMS31RTo5bMtn5IvIiT7TahOiamvBvVO9CM6 Y55pWGGZVhMhXgvujz3KCBGuMD2Bf/ApFLPBtBfLr7trpsDBUTG42Qmtbd1nolgJJkwl LnSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="Wc/G0j8x"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id y3-20020a056a00190300b0068a65b26fc6si14584855pfi.43.2023.10.12.01.42.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 01:42:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="Wc/G0j8x"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id DD68281DE6AB; Thu, 12 Oct 2023 01:42:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235650AbjJLImJ (ORCPT + 99 others); Thu, 12 Oct 2023 04:42:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235505AbjJLIk4 (ORCPT ); Thu, 12 Oct 2023 04:40:56 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30BCDBA; Thu, 12 Oct 2023 01:40:52 -0700 (PDT) X-UUID: 08e3aa5868db11ee8051498923ad61e6-20231012 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=WeTi3Zz4I+hjOP+G95ZWq0hB1FdtJbUX3ItMJS2+pV4=; b=Wc/G0j8xETRb5yf7OKqTWenoesz158EtoiZ483o7dtYgppDxdccp7Aloru7oRpfWoMWtke3pyOnh1TZFmIXA19MGsOp10Gwy0thq1RW2rV4iUP46K67fYhz6haEG7lPDFbYpAj9IW1gaFnrGlROGA8d2h0/WIqAUU+us5IxmjQo=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.32,REQID:a6a907f1-6be2-4d12-b412-4224cb1ed8d9,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:2145b5f0-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: 08e3aa5868db11ee8051498923ad61e6-20231012 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 54146606; Thu, 12 Oct 2023 16:40:45 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs11n2.mediatek.inc (172.21.101.187) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Thu, 12 Oct 2023 16:40:43 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Thu, 12 Oct 2023 16:40:43 +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 v7 10/16] dt-bindings: media: mediatek: mdp3: add component TDSHP for MT8195 Date: Thu, 12 Oct 2023 16:40:31 +0800 Message-ID: <20231012084037.19376-11-moudy.ho@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20231012084037.19376-1-moudy.ho@mediatek.com> References: <20231012084037.19376-1-moudy.ho@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email 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 (morse.vger.email [0.0.0.0]); Thu, 12 Oct 2023 01:42:48 -0700 (PDT) Add the fundamental hardware configuration of component TDSHP, which is controlled by MDP3 on MT8195. Signed-off-by: Moudy Ho --- .../bindings/media/mediatek,mdp3-tdshp.yaml | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/mediatek,mdp3-tdshp.yaml diff --git a/Documentation/devicetree/bindings/media/mediatek,mdp3-tdshp.yaml b/Documentation/devicetree/bindings/media/mediatek,mdp3-tdshp.yaml new file mode 100644 index 000000000000..92e1547e7c7f --- /dev/null +++ b/Documentation/devicetree/bindings/media/mediatek,mdp3-tdshp.yaml @@ -0,0 +1,61 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/mediatek,mdp3-tdshp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek Media Data Path 3 TDSHP + +maintainers: + - Matthias Brugger + - Moudy Ho + +description: + One of Media Data Path 3 (MDP3) components used to improve image + sharpness and contrast. + +properties: + compatible: + enum: + - mediatek,mt8195-mdp3-tdshp + + 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: + maxItems: 1 + +required: + - compatible + - reg + - mediatek,gce-client-reg + - clocks + +additionalProperties: false + +examples: + - | + #include + #include + + display@14007000 { + compatible = "mediatek,mt8195-mdp3-tdshp"; + reg = <0x14007000 0x1000>; + mediatek,gce-client-reg = <&gce1 SUBSYS_1400XXXX 0x7000 0x1000>; + clocks = <&vppsys0 CLK_VPP0_MDP_TDSHP>; + }; -- 2.18.0