From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6ABA8C433FE for ; Mon, 6 Sep 2021 19:37:19 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 389C661052 for ; Mon, 6 Sep 2021 19:37:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 389C661052 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AA14B89C16; Mon, 6 Sep 2021 19:37:08 +0000 (UTC) Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9414689AE6 for ; Mon, 6 Sep 2021 19:37:03 +0000 (UTC) Received: by mail-wr1-x431.google.com with SMTP id d6so10548234wrc.11 for ; Mon, 06 Sep 2021 12:37:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8rhksTvVQ+Nq8KlfrbrTGziwnDodu5qGkrE8LAP3ErI=; b=qBXwqS4/FpUi8QmqOiyukUT2bdkyXa1o1yXUbFr/856oeRKngEb5EbGLQ4yu8J24MG +MOgpC0A+6BkEUKLBv06l70+6J16wiiEE8hB341v3qmk4NrARtC/Z5VaudenxVc+s7YV vBPCmk2S1czX6gkR+iBFGBXStUjPuR1Pm8jSBzktLIWBZP6usq6rBI0hHGYc7jogE+IH 3zPVO6linsBCpj7TM/VUyxDKdT6un61DO+Y5JwaFuJPcWC75o/rJiFyDW/EbHbLOL2Jl XnmrqxkPFbO92mjZEZmQDLHRKKyi9kNR4z6vHWV+2qJl67o70KRuFuCBaEd5s3HUK/VE uwog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8rhksTvVQ+Nq8KlfrbrTGziwnDodu5qGkrE8LAP3ErI=; b=GthnzbDjwLocFH0ijNgc71ftxA6Dr3pdBIICedREpxWNuSo1BqItywA86xmgWbzf2d wEgjGwkG+d6HWgcDlzYIa2o5ys9olD1kEpS+vMMCGCSdN5XhKNOOhZ3cB9Wmw/RQJQ6r h2DYcaNAUw6yKrlSBagr8n03PIFZvM1ccnV5pa7hVHgHLtTQZ20G56M5CiY+ZdU4rDmI gbKi4Yxz/KNuXBEBFqgEvO+GENmO3Z1UTrsAtVtdTG1OxYa4DHIFcmgpWgP5r5ogmRtb k6ftNfZV1gl/qAdiKFY5Gl5PfNORPvzRIj03BJYiCKZi9UiwA0Jjj10JicjUW2DJqQDm J7Zg== X-Gm-Message-State: AOAM532T4Hj0u7qyab0Tck82byV9oaR6HtVj7abP+QhrU7Ol8AZ2yBQD Xyn3vUlWpuPY0eM/73aMJQCjvw== X-Google-Smtp-Source: ABdhPJzP/DgsaBhy8hur2RweyMqFSFuzzpR0YUhyV79uSocm2gYrr3FEinvIh+6trQpHvfmzxoRiDg== X-Received: by 2002:adf:c44b:: with SMTP id a11mr15049199wrg.416.1630957022035; Mon, 06 Sep 2021 12:37:02 -0700 (PDT) Received: from blmsp.lan ([2a02:2454:3e6:c900::97e]) by smtp.gmail.com with ESMTPSA id w29sm8815202wra.88.2021.09.06.12.37.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Sep 2021 12:37:01 -0700 (PDT) From: Markus Schneider-Pargmann To: Chun-Kuang Hu , Philipp Zabel Cc: Sam Ravnborg , dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Markus Schneider-Pargmann Subject: [PATCH v1 1/6] dt-bindings: mediatek,dpi: Add mt8195 dpintf Date: Mon, 6 Sep 2021 21:35:24 +0200 Message-Id: <20210906193529.718845-2-msp@baylibre.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210906193529.718845-1-msp@baylibre.com> References: <20210906193529.718845-1-msp@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" DP_INTF is similar to the actual dpi. They differ in some points regarding registers and what needs to be set but the function blocks itself are similar in design. Signed-off-by: Markus Schneider-Pargmann --- .../display/mediatek/mediatek,dpi.yaml | 43 ++++++++++++++++--- 1 file changed, 37 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml index dd2896a40ff0..1a158b719ce6 100644 --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml @@ -4,7 +4,7 @@ $id: http://devicetree.org/schemas/display/mediatek/mediatek,dpi.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: mediatek DPI Controller Device Tree Bindings +title: mediatek DPI/DP_INTF Controller Device Tree Bindings maintainers: - CK Hu @@ -13,7 +13,8 @@ maintainers: description: | The Mediatek DPI function block is a sink of the display subsystem and provides 8-bit RGB/YUV444 or 8/10/10-bit YUV422 pixel data on a parallel - output bus. + output bus. The Mediatek DP_INTF is a similar function block that is + connected to the (embedded) display port function block. properties: compatible: @@ -23,6 +24,7 @@ properties: - mediatek,mt8173-dpi - mediatek,mt8183-dpi - mediatek,mt8192-dpi + - mediatek,mt8195-dpintf reg: maxItems: 1 @@ -37,10 +39,11 @@ properties: - description: DPI PLL clock-names: - items: - - const: pixel - - const: engine - - const: pll + description: + For dpi clocks pixel, engine and pll are required. For dpintf pixel, + hf_fmm and hf_fdp are required. + minItems: 3 + maxItems: 3 pinctrl-0: true pinctrl-1: true @@ -64,6 +67,34 @@ required: - clock-names - port +allOf: + - if: + properties: + compatible: + contains: + enum: + - mediatek,mt8195-dpintf + then: + properties: + clocks: + minItems: 3 + maxItems: 3 + clock-names: + items: + - const: pixel + - const: hf_fmm + - const: hf_fdp + else: + properties: + clocks: + minItems: 3 + maxItems: 3 + clock-names: + items: + - const: pixel + - const: engine + - const: pll + additionalProperties: false examples: -- 2.33.0 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BB6B5C433F5 for ; Mon, 6 Sep 2021 19:37:56 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 866A861050 for ; Mon, 6 Sep 2021 19:37:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 866A861050 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=M8MnC8bu4lNaflLw+1cEGtKI/rTvVtt83h+DFMWeCcw=; b=LQtwuc0wYjWDrX 0kxiHUVGf3hP8kqYd4wVxOsqLOXryd6Li9gJRv8GqcxD7uZgdG3ASU2DsiYqUFkrBEDWz/80tL8XT SZpT6QiDdKjRzNx2Yj6lzxInStzg+BC3zuhnBFw4oySwzJxml9DYs0TcFPkccXqurnjTXx0Zz2aaP VpmK4CHttMk3gl2wWO+W56s/+KeL8hnoYbhNecb/6ZQFQZhVTB/gZ8v6reaUuTrMl/Z0GhU8X3VhC 7eYph9t9jrn2UGC8HBlYdSDvaoBfrQOsb4hL6ZcCE/5Qalrjuy+AOk2A/EG41aWFrdtL1NCbfMH/b kuR3FiUyEe88V6dZ6SOg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mNKR7-001liz-9V; Mon, 06 Sep 2021 19:37:45 +0000 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mNKQS-001lQo-4q for linux-mediatek@lists.infradead.org; Mon, 06 Sep 2021 19:37:08 +0000 Received: by mail-wr1-x42f.google.com with SMTP id b6so11193501wrh.10 for ; Mon, 06 Sep 2021 12:37:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8rhksTvVQ+Nq8KlfrbrTGziwnDodu5qGkrE8LAP3ErI=; b=qBXwqS4/FpUi8QmqOiyukUT2bdkyXa1o1yXUbFr/856oeRKngEb5EbGLQ4yu8J24MG +MOgpC0A+6BkEUKLBv06l70+6J16wiiEE8hB341v3qmk4NrARtC/Z5VaudenxVc+s7YV vBPCmk2S1czX6gkR+iBFGBXStUjPuR1Pm8jSBzktLIWBZP6usq6rBI0hHGYc7jogE+IH 3zPVO6linsBCpj7TM/VUyxDKdT6un61DO+Y5JwaFuJPcWC75o/rJiFyDW/EbHbLOL2Jl XnmrqxkPFbO92mjZEZmQDLHRKKyi9kNR4z6vHWV+2qJl67o70KRuFuCBaEd5s3HUK/VE uwog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8rhksTvVQ+Nq8KlfrbrTGziwnDodu5qGkrE8LAP3ErI=; b=oES7D4vQoiUaqeCjftVIWl0IfmsAQfKwww2iTuogv8tjpSZlOXuXFrBnDpKmC+cDXG z3QSgs3IUYlVnXDkfj4yVwQ+5yyeiupbSxd7fm/l6IO8m7eVXKSl159dtngwS9HmK2sI DCebnh+qTyYdJIi/vjqh9kZ9kfdo6MSklMJ6vqHsdlBdXww6Rir0pOvCY/lBH9y1m5lH UyWRI3SCQTUrArHmufi2M7i1/LwQ4j6fv9ZbKXvXFXm1nQuxIsgeYfUs13xrcKWO8W3t jTSXoIkjweSGmPoUdlQwzl/lXHDtdOJJRlSD7nd7UkA95ZNOGfSZ983OJXdLMp1afYeF +fOg== X-Gm-Message-State: AOAM532Sw61TorExTsKk141CwYOr2BgMW58VOBL/jr1rz0XXK1IPuOm+ JCP7IAlil3qCwx5cA4T25Vupdg== X-Google-Smtp-Source: ABdhPJzP/DgsaBhy8hur2RweyMqFSFuzzpR0YUhyV79uSocm2gYrr3FEinvIh+6trQpHvfmzxoRiDg== X-Received: by 2002:adf:c44b:: with SMTP id a11mr15049199wrg.416.1630957022035; Mon, 06 Sep 2021 12:37:02 -0700 (PDT) Received: from blmsp.lan ([2a02:2454:3e6:c900::97e]) by smtp.gmail.com with ESMTPSA id w29sm8815202wra.88.2021.09.06.12.37.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Sep 2021 12:37:01 -0700 (PDT) From: Markus Schneider-Pargmann To: Chun-Kuang Hu , Philipp Zabel Cc: Sam Ravnborg , dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Markus Schneider-Pargmann Subject: [PATCH v1 1/6] dt-bindings: mediatek,dpi: Add mt8195 dpintf Date: Mon, 6 Sep 2021 21:35:24 +0200 Message-Id: <20210906193529.718845-2-msp@baylibre.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210906193529.718845-1-msp@baylibre.com> References: <20210906193529.718845-1-msp@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210906_123704_247518_7601B026 X-CRM114-Status: GOOD ( 11.03 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org DP_INTF is similar to the actual dpi. They differ in some points regarding registers and what needs to be set but the function blocks itself are similar in design. Signed-off-by: Markus Schneider-Pargmann --- .../display/mediatek/mediatek,dpi.yaml | 43 ++++++++++++++++--- 1 file changed, 37 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml index dd2896a40ff0..1a158b719ce6 100644 --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml @@ -4,7 +4,7 @@ $id: http://devicetree.org/schemas/display/mediatek/mediatek,dpi.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: mediatek DPI Controller Device Tree Bindings +title: mediatek DPI/DP_INTF Controller Device Tree Bindings maintainers: - CK Hu @@ -13,7 +13,8 @@ maintainers: description: | The Mediatek DPI function block is a sink of the display subsystem and provides 8-bit RGB/YUV444 or 8/10/10-bit YUV422 pixel data on a parallel - output bus. + output bus. The Mediatek DP_INTF is a similar function block that is + connected to the (embedded) display port function block. properties: compatible: @@ -23,6 +24,7 @@ properties: - mediatek,mt8173-dpi - mediatek,mt8183-dpi - mediatek,mt8192-dpi + - mediatek,mt8195-dpintf reg: maxItems: 1 @@ -37,10 +39,11 @@ properties: - description: DPI PLL clock-names: - items: - - const: pixel - - const: engine - - const: pll + description: + For dpi clocks pixel, engine and pll are required. For dpintf pixel, + hf_fmm and hf_fdp are required. + minItems: 3 + maxItems: 3 pinctrl-0: true pinctrl-1: true @@ -64,6 +67,34 @@ required: - clock-names - port +allOf: + - if: + properties: + compatible: + contains: + enum: + - mediatek,mt8195-dpintf + then: + properties: + clocks: + minItems: 3 + maxItems: 3 + clock-names: + items: + - const: pixel + - const: hf_fmm + - const: hf_fdp + else: + properties: + clocks: + minItems: 3 + maxItems: 3 + clock-names: + items: + - const: pixel + - const: engine + - const: pll + additionalProperties: false examples: -- 2.33.0 _______________________________________________ Linux-mediatek mailing list Linux-mediatek@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-mediatek From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 04450C433EF for ; Mon, 6 Sep 2021 19:40:08 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BFD8660BD3 for ; Mon, 6 Sep 2021 19:40:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org BFD8660BD3 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=jpadt06TqzuCbNgFzaxP5eoY/PHRAK50G7od9tE9qKk=; b=HG8YIQAQ3KM7gH xe0gBFXG5NUw35aP5dkvCV6E4Nvx+rIvFQ0oUZM8jvW59X7KcK3FIVXU3FJP7n1Q0nM3Cd1h4z7bT 7EHZxIOdenvjwqtfYnZWB3/y88OVGHLKEcs6WRVouejVTmTbOlqdoYZ1gmm6j2S8h5rzGDVm9UumJ G9KxT9RdKm3goB7iS634Xr/66BatVj6Yux4Yx2EZdUx2zIcL0q+Z0z+Ljac43/Mp27WCpM/oT1jtI LIf0E3J5/t2MlNqjd/5llBWRwaMWQ4TvuXPtZTHdw1KmbB36efg5idMNUaE9n014An0WwdT1LIQXn N4/fRcG4zqlE7iPJ9nTw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mNKQv-001leZ-BI; Mon, 06 Sep 2021 19:37:33 +0000 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mNKQS-001lQn-5Z for linux-arm-kernel@lists.infradead.org; Mon, 06 Sep 2021 19:37:08 +0000 Received: by mail-wr1-x432.google.com with SMTP id t18so441065wrb.0 for ; Mon, 06 Sep 2021 12:37:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8rhksTvVQ+Nq8KlfrbrTGziwnDodu5qGkrE8LAP3ErI=; b=qBXwqS4/FpUi8QmqOiyukUT2bdkyXa1o1yXUbFr/856oeRKngEb5EbGLQ4yu8J24MG +MOgpC0A+6BkEUKLBv06l70+6J16wiiEE8hB341v3qmk4NrARtC/Z5VaudenxVc+s7YV vBPCmk2S1czX6gkR+iBFGBXStUjPuR1Pm8jSBzktLIWBZP6usq6rBI0hHGYc7jogE+IH 3zPVO6linsBCpj7TM/VUyxDKdT6un61DO+Y5JwaFuJPcWC75o/rJiFyDW/EbHbLOL2Jl XnmrqxkPFbO92mjZEZmQDLHRKKyi9kNR4z6vHWV+2qJl67o70KRuFuCBaEd5s3HUK/VE uwog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8rhksTvVQ+Nq8KlfrbrTGziwnDodu5qGkrE8LAP3ErI=; b=KiMPcs/Nx8A4fb/D6l51rA+K6U/RxwfQof78xpPgXCqMRiLP2LxpU1Ib+cYE/L5/qI LuPY3mcKQnjpIRwXZe1VemD6HCiRpQ8pwoBt/XjyoY8KiRmLVhQKak1IISlBRCcUEuMt T1fYhB3eVT3T5iCyZ+niYbYrDu4djv5EUR+TyXPFN48rZfdp7/yKFOqT4lAn0jvqqMyx f8Vb9AssmaTHqqvZTDSbTFnmNzxX+wMxPrqoorBLFTDiOjcBMydRVU5LuKoKqeHZmxiq R5H/b5URYDhjpGQd/vXF7BCsPEhmGr7LAu/e6J0iq6j/KWyWPgnDcPqE4/F1dx6HJXfn Wcig== X-Gm-Message-State: AOAM530lvqOPeAtO1y9rvQWxSMSCtHQHvpqg3i773kFKI3j/vkP1d3gL v9S8RGb9FtltiNa2geeczvvpqg== X-Google-Smtp-Source: ABdhPJzP/DgsaBhy8hur2RweyMqFSFuzzpR0YUhyV79uSocm2gYrr3FEinvIh+6trQpHvfmzxoRiDg== X-Received: by 2002:adf:c44b:: with SMTP id a11mr15049199wrg.416.1630957022035; Mon, 06 Sep 2021 12:37:02 -0700 (PDT) Received: from blmsp.lan ([2a02:2454:3e6:c900::97e]) by smtp.gmail.com with ESMTPSA id w29sm8815202wra.88.2021.09.06.12.37.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Sep 2021 12:37:01 -0700 (PDT) From: Markus Schneider-Pargmann To: Chun-Kuang Hu , Philipp Zabel Cc: Sam Ravnborg , dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Markus Schneider-Pargmann Subject: [PATCH v1 1/6] dt-bindings: mediatek,dpi: Add mt8195 dpintf Date: Mon, 6 Sep 2021 21:35:24 +0200 Message-Id: <20210906193529.718845-2-msp@baylibre.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210906193529.718845-1-msp@baylibre.com> References: <20210906193529.718845-1-msp@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210906_123704_246275_355B3CD6 X-CRM114-Status: GOOD ( 12.35 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DP_INTF is similar to the actual dpi. They differ in some points regarding registers and what needs to be set but the function blocks itself are similar in design. Signed-off-by: Markus Schneider-Pargmann --- .../display/mediatek/mediatek,dpi.yaml | 43 ++++++++++++++++--- 1 file changed, 37 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml index dd2896a40ff0..1a158b719ce6 100644 --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml @@ -4,7 +4,7 @@ $id: http://devicetree.org/schemas/display/mediatek/mediatek,dpi.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: mediatek DPI Controller Device Tree Bindings +title: mediatek DPI/DP_INTF Controller Device Tree Bindings maintainers: - CK Hu @@ -13,7 +13,8 @@ maintainers: description: | The Mediatek DPI function block is a sink of the display subsystem and provides 8-bit RGB/YUV444 or 8/10/10-bit YUV422 pixel data on a parallel - output bus. + output bus. The Mediatek DP_INTF is a similar function block that is + connected to the (embedded) display port function block. properties: compatible: @@ -23,6 +24,7 @@ properties: - mediatek,mt8173-dpi - mediatek,mt8183-dpi - mediatek,mt8192-dpi + - mediatek,mt8195-dpintf reg: maxItems: 1 @@ -37,10 +39,11 @@ properties: - description: DPI PLL clock-names: - items: - - const: pixel - - const: engine - - const: pll + description: + For dpi clocks pixel, engine and pll are required. For dpintf pixel, + hf_fmm and hf_fdp are required. + minItems: 3 + maxItems: 3 pinctrl-0: true pinctrl-1: true @@ -64,6 +67,34 @@ required: - clock-names - port +allOf: + - if: + properties: + compatible: + contains: + enum: + - mediatek,mt8195-dpintf + then: + properties: + clocks: + minItems: 3 + maxItems: 3 + clock-names: + items: + - const: pixel + - const: hf_fmm + - const: hf_fdp + else: + properties: + clocks: + minItems: 3 + maxItems: 3 + clock-names: + items: + - const: pixel + - const: engine + - const: pll + additionalProperties: false examples: -- 2.33.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel