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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 4D90FC3DA5D for ; Mon, 22 Jul 2024 22:38:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=iIiW+X6Hv2+JRPyydnNk7irQzhfU1TLZHTcpZkpyH/M=; b=yHsgo+iOqD5hdxBsbRJoTxNKjh 98qCdwAsRWTpBLp5QpvLQnZ9qmxQ5Oz48WSbsTYHvNZpntwuRvRQKofEnOftVv51LroP/t4gQjIN7 E4pwqB1fBu1j+Rb0Ap1KgSAUMmocqPam+zD3y4So0ftkPrwL9zsU/TxG9Jm7Rzs9GbAPX54sbJcU/ rqSeotxMKruQQ5/aFHXSwf0xFW11em0STYRAWCnVTXltscTS/CibOYrVjX2EehS4+EmeBdB1iOfko xgwWQIQFWi11J1KRtZ6pK1+9lwOH9bm4TLLXMqhf3q7tLPUq+CMpXmv80ORikM7e+GA0er+J9Uugo RPq5aNsw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sW1g9-0000000Amli-0iLC; Mon, 22 Jul 2024 22:38:49 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sW1fl-0000000AmgQ-0ev3; Mon, 22 Jul 2024 22:38:26 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 1E8A160B98; Mon, 22 Jul 2024 22:38:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4EA16C116B1; Mon, 22 Jul 2024 22:38:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721687903; bh=M/zsupZtOVoOtw7sD2RiHJfeIhVHyAa2UsCMK9eHAX8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EFICJtNi1fLEb0f+8fdbIXpBUEKT1ABXvzBrCXDomr7V3Ed31KCf0VGDPJVBxeJ2s PnKhXh8WD7ZQ9W8Rlz7UCWM6covqugGrB/2xqkBdFF2BmONHYb1mIvCj2bxnqHZUMM 2NQA+fc9nS9RK2hbSDkVulOQD0NxNfic2Ybr9V1CmIcceRisMmcbJNuQoMEIGe+E2T b3f59Tl6hxFj/s0r+wcqbpsI2r4ZyWn8+g/iff1BYtzVIJuxkT/Cf+mBezAdi0s9SO nnO1LvVqdAYKx9h7HYKmZy+mUg5FQSf7fOIQch7kIdWtuFLYsH5BynSAXZkRVTmniL 9+5JMECBNeKTg== Date: Mon, 22 Jul 2024 16:38:14 -0600 From: Rob Herring To: Liu Ying Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, p.zabel@pengutronix.de, airlied@gmail.com, daniel@ffwll.ch, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, tglx@linutronix.de, vkoul@kernel.org, kishon@kernel.org, aisheng.dong@nxp.com, agx@sigxcpu.org, francesco@dolcini.it, frank.li@nxp.com Subject: Re: [PATCH v2 01/16] dt-bindings: display: imx: Add some i.MX8qxp Display Controller processing units Message-ID: <20240722223814.GA183822-robh@kernel.org> References: <20240712093243.2108456-1-victor.liu@nxp.com> <20240712093243.2108456-2-victor.liu@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240712093243.2108456-2-victor.liu@nxp.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240722_153825_302698_7F54EB0F X-CRM114-Status: GOOD ( 21.41 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Jul 12, 2024 at 05:32:28PM +0800, Liu Ying wrote: > Freescale i.MX8qxp Display Controller is implemented as construction set of > building blocks with unified concept and standardized interfaces. > > Document some processing units to support two display outputs. > > ConstFrame, ExtDst, FetchLayer, FetchWarp and LayerBlend processing units > are in pixel engine. FrameGen and TCon processing units are in display > engine. > > Signed-off-by: Liu Ying > --- > v2: > * Drop fsl,dc-*-id DT properties. (Krzysztof) > * Add port property to fsl,imx8qxp-dc-tcon.yaml. (Krzysztof) > * Fix register range sizes in examples. > > .../imx/fsl,imx8qxp-dc-constframe.yaml | 44 ++++++ > .../display/imx/fsl,imx8qxp-dc-extdst.yaml | 72 ++++++++++ > .../imx/fsl,imx8qxp-dc-fetchlayer.yaml | 30 +++++ > .../imx/fsl,imx8qxp-dc-fetchunit-common.yaml | 125 ++++++++++++++++++ > .../display/imx/fsl,imx8qxp-dc-fetchwarp.yaml | 30 +++++ > .../display/imx/fsl,imx8qxp-dc-framegen.yaml | 64 +++++++++ > .../imx/fsl,imx8qxp-dc-layerblend.yaml | 39 ++++++ > .../display/imx/fsl,imx8qxp-dc-tcon.yaml | 45 +++++++ > 8 files changed, 449 insertions(+) > create mode 100644 Documentation/devicetree/bindings/display/imx/fsl,imx8qxp-dc-constframe.yaml > create mode 100644 Documentation/devicetree/bindings/display/imx/fsl,imx8qxp-dc-extdst.yaml > create mode 100644 Documentation/devicetree/bindings/display/imx/fsl,imx8qxp-dc-fetchlayer.yaml > create mode 100644 Documentation/devicetree/bindings/display/imx/fsl,imx8qxp-dc-fetchunit-common.yaml > create mode 100644 Documentation/devicetree/bindings/display/imx/fsl,imx8qxp-dc-fetchwarp.yaml > create mode 100644 Documentation/devicetree/bindings/display/imx/fsl,imx8qxp-dc-framegen.yaml > create mode 100644 Documentation/devicetree/bindings/display/imx/fsl,imx8qxp-dc-layerblend.yaml > create mode 100644 Documentation/devicetree/bindings/display/imx/fsl,imx8qxp-dc-tcon.yaml > > diff --git a/Documentation/devicetree/bindings/display/imx/fsl,imx8qxp-dc-constframe.yaml b/Documentation/devicetree/bindings/display/imx/fsl,imx8qxp-dc-constframe.yaml > new file mode 100644 > index 000000000000..94f678563608 > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/imx/fsl,imx8qxp-dc-constframe.yaml > @@ -0,0 +1,44 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/display/imx/fsl,imx8qxp-dc-constframe.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Freescale i.MX8qxp Display Controller Constant Frame > + > +description: | > + The Constant Frame unit is used instead of a Fetch unit where generation of > + constant color frames only is sufficient. This is the case for the background > + planes of content and safety streams in a Display Controller. > + > + The color can be setup to any RGBA value. > + > +maintainers: > + - Liu Ying > + > +properties: > + compatible: > + const: fsl,imx8qxp-dc-constframe > + > + reg: > + maxItems: 2 > + > + reg-names: > + items: > + - const: pec > + - const: cfg > + > +required: > + - compatible > + - reg > + - reg-names > + > +additionalProperties: false > + > +examples: > + - | > + constframe@56180960 { > + compatible = "fsl,imx8qxp-dc-constframe"; > + reg = <0x56180960 0xc>, <0x56184400 0x20>; > + reg-names = "pec", "cfg"; > + }; > diff --git a/Documentation/devicetree/bindings/display/imx/fsl,imx8qxp-dc-extdst.yaml b/Documentation/devicetree/bindings/display/imx/fsl,imx8qxp-dc-extdst.yaml > new file mode 100644 > index 000000000000..dfc2d4f94f8e > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/imx/fsl,imx8qxp-dc-extdst.yaml > @@ -0,0 +1,72 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/display/imx/fsl,imx8qxp-dc-extdst.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Freescale i.MX8qxp Display Controller External Destination Interface > + > +description: | > + The External Destination unit is the interface between the internal pixel > + processing pipeline of the Pixel Engine, which is 30-bit RGB plus 8-bit Alpha, > + and a Display Engine. > + > + It comprises the following built-in Gamma apply function. > + > + +------X-----------------------+ > + | | ExtDst Unit | > + | V | > + | +-------+ | > + | | Gamma | | > + | +-------+ | > + | | | > + | V + > + +------X-----------------------+ > + > + The output format is 24-bit RGB plus 1-bit Alpha. Conversion from 10 to 8 > + bits is done by LSBit truncation. Alpha output bit is 1 for input 255, 0 > + otherwise. > + > +maintainers: > + - Liu Ying > + > +properties: > + compatible: > + const: fsl,imx8qxp-dc-extdst > + > + reg: > + maxItems: 2 > + > + reg-names: > + items: > + - const: pec > + - const: cfg > + > + interrupts: > + maxItems: 3 > + > + interrupt-names: > + items: > + - const: shdload > + - const: framecomplete > + - const: seqcomplete > + > +required: > + - compatible > + - reg > + - reg-names > + - interrupts > + - interrupt-names > + > +additionalProperties: false > + > +examples: > + - | > + extdst@56180980 { > + compatible = "fsl,imx8qxp-dc-extdst"; > + reg = <0x56180980 0x1c>, <0x56184800 0x28>; > + reg-names = "pec", "cfg"; > + interrupt-parent = <&dc0_intc>; > + interrupts = <3>, <4>, <5>; > + interrupt-names = "shdload", "framecomplete", "seqcomplete"; > + }; > diff --git a/Documentation/devicetree/bindings/display/imx/fsl,imx8qxp-dc-fetchlayer.yaml b/Documentation/devicetree/bindings/display/imx/fsl,imx8qxp-dc-fetchlayer.yaml > new file mode 100644 > index 000000000000..804a3ea7419f > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/imx/fsl,imx8qxp-dc-fetchlayer.yaml > @@ -0,0 +1,30 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/display/imx/fsl,imx8qxp-dc-fetchlayer.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Freescale i.MX8qxp Display Controller Fetchlayer > + > +maintainers: > + - Liu Ying > + > +allOf: > + - $ref: fsl,imx8qxp-dc-fetchunit-common.yaml# > + > +properties: > + compatible: > + const: fsl,imx8qxp-dc-fetchlayer As the fetch units only differ by compatible, combine them and the common schema into 1 schema doc. Rob