Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2627668rdh; Mon, 30 Oct 2023 03:03:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFZ8YIPplFw6Fto9nR4VMGI4hGoLfBtqvGRlK1fcFJU+WIBI+8vosWL0qh8NGmzqbBbmeH/ X-Received: by 2002:a05:6a21:4983:b0:180:1c4a:44a2 with SMTP id ax3-20020a056a21498300b001801c4a44a2mr2364235pzc.33.1698660201077; Mon, 30 Oct 2023 03:03:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698660201; cv=none; d=google.com; s=arc-20160816; b=0BprHVCnCFIsXuQgQIvs+uuCfJMH/fE2vrnlm8b87SP5MDRAMVZ/0mQmvVjFsa/Qsr xXOLQov9CAtdZU06FPqi5bL/9CigV3eOZED4b+pHpSDUO3CnSE28ElgsHGYWR0MXUUlP IoKagDu/XvmSQ8MHTTYWYARneq00ny3YRh6D3/mBh2YJA14ZHczcR4uCEtUBkk9i0P6s URboUR33OV8EIlUjtuJBXTzRQFpSotiuZKwR9FkSsBWW2iKGkrs1wQIeTV30QutaNKzT EtVIWu6J1tylm3+fWOYqPN+tQOHvLNdf8frlN22Wfu9LulMj4iXoHOAf8BRYFPAz/r2V vkyQ== 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=LXiaxvzc+VKk9AXDACkXrguSN5q7SHGlOT4sgve/e1E=; fh=N25l34UKybvwssildkJfWZzd7U86IAOGhJYPnp0TxMk=; b=hoqrpLZY2vtA7bW0t/ihxqa9dY91/7Ag7fzmY1ajsH1aaFFwHp5SsubZQRO2u4mdOO Eu+BZZlr4rEY3/giFL9bdMDh7I0dQ/6WUfXJmTY610cx9/Bodjm+4jnDFQi9bEf55jBC f+z23galHV1dGSVYZtPk5A6OdC0kqH0fNN7ROHlyxcr6NOZfA1YCNYFD7N+cw5QOfzRg qUgSx7ZHpJLjoQqjNKqRjv5Z4i8QLCu4DqwDuPJk+kGuLbTXH8Gtb3a9wXZ2A6uQBecz 6NAUDrBm063h/SdkLl1smyncbHdOZ1W+I8kOQpDqLrjjWd068vEczVgv+r+fWq/mL2Sf EU3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=ct6pyF3B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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. [23.128.96.37]) by mx.google.com with ESMTPS id d9-20020a17090ab30900b002805dcadebasi1433047pjr.115.2023.10.30.03.03.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 03:03:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=ct6pyF3B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 A1A1780C592A; Mon, 30 Oct 2023 03:03:00 -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 S233268AbjJ3KCx (ORCPT + 99 others); Mon, 30 Oct 2023 06:02:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232956AbjJ3KBF (ORCPT ); Mon, 30 Oct 2023 06:01:05 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47A5110EB; Mon, 30 Oct 2023 03:00:35 -0700 (PDT) X-UUID: 25dc54fa770b11ee8051498923ad61e6-20231030 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=LXiaxvzc+VKk9AXDACkXrguSN5q7SHGlOT4sgve/e1E=; b=ct6pyF3BVEcca0veyEXb3db7FiPsPfK64uRSf2cn/smo6KFRosmoKoFjjsVAUzSLs6zsrLyT8hwmlGAx2BPS+514iPrN4Ix/096YLSvJgUWjRcZmRPJq8jpm1QielYo87s/RE1B9Hpf/X60Km9UgLU0OgXU1+CGUzM73YQIFEU4=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.32,REQID:85d41ff6-40e7-4852-81da-7199835ba609,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:56167bd7-04a0-4e50-8742-3543eab8cb8e,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_ULN,TF_CID_SPAM_SNR X-UUID: 25dc54fa770b11ee8051498923ad61e6-20231030 Received: from mtkmbs11n1.mediatek.inc [(172.21.101.185)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 231608169; Mon, 30 Oct 2023 18:00:25 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) by mtkmbs13n1.mediatek.inc (172.21.101.193) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Mon, 30 Oct 2023 18:00:24 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Mon, 30 Oct 2023 18:00:24 +0800 From: Moudy Ho To: Chun-Kuang Hu , Philipp Zabel , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , 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 v8 10/16] dt-bindings: media: mediatek: mdp3: add component TDSHP for MT8195 Date: Mon, 30 Oct 2023 18:00:16 +0800 Message-ID: <20231030100022.9262-11-moudy.ho@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20231030100022.9262-1-moudy.ho@mediatek.com> References: <20231030100022.9262-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 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]); Mon, 30 Oct 2023 03:03:00 -0700 (PDT) Add the fundamental hardware configuration of component TDSHP, which is controlled by MDP3 on MT8195. Signed-off-by: Moudy Ho Reviewed-by: Krzysztof Kozlowski --- .../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..8ab7f2d8e148 --- /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 Two-Dimensional Sharpness + +maintainers: + - Matthias Brugger + - Moudy Ho + +description: + Two-Dimensional Sharpness (TDSHP) is a Media Profile Path 3 (MDP3) component + used to perform image edge sharpening and enhance vividness 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