From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 073E82907; Sun, 21 Jul 2024 15:36:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721576219; cv=none; b=BfnT+thhk8g4AAtiTXp74poat04coD9LugEDxmNTO9LV8IPOaSYDzMeTWbzaMDu+T/3YECa6+/JB+u4qyAgRZ1OEB3j5nf9qzfM2aC570NKtQhu+Hpv2aVvCVWd0R3h0rzwLwc7gUl9BGg+eJBv7yiAHU/pYeEj3QmG5zW+EhDM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721576219; c=relaxed/simple; bh=jRjxpOr1/cYTLelTQNj0KsXY+Cyab7rjwhDPjAk0YX4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=GbVkhk7WVU6wtCVprhX5aPvWHucg77TZwK+aYuLVKJKtkFK0Fx4aFMf2PF7EDlFPtfBQTJhLcex1HmD2568My5v8OBPnEx+GPE14LlJkHgFT9HpTGZRERMCu2S6ioOOfgr9C4dRS7h8ye2jGcIbplBjDHcQ4lftrSW4Z4E+Ahb8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rom1nORo; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rom1nORo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3D305C116B1; Sun, 21 Jul 2024 15:36:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721576218; bh=jRjxpOr1/cYTLelTQNj0KsXY+Cyab7rjwhDPjAk0YX4=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=rom1nORowJfpuTFrBg0GAZkjWUfUvVoaHqKZfuYJ3e/v0m6HlMs4M8MY0KLOif+Yl dfC0z6JxzFVbRzrgPvlDNZZgVDwLgsxS0dZrT5Ym+wfI5R81WaM2ii2xBRt8wRyBYu /lhBV9NcdB62F3prMeprkBKu/2POTfv372rmW7Dung88+pE7eSJaqFA2DdbnowS6rc +YmyyoFgYHs3UHDBo7/yOSWNNK255pCkZ6i2hOmn91ZFSyS5wngQARFaS7SDCvDPna cwYo5k0Bh2IyfGiiRbbajHqO70k49Jj0AfsTskA6KtCXQDwL2mA283Q1K7NjB37Uqq vuoUq9qTmiQhQ== Message-ID: <0144d9b4-e830-44b0-95cd-4d49d5051155@kernel.org> Date: Sun, 21 Jul 2024 17:36:48 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 2/4] dt-bindings: display: ti: Add schema for AM625 OLDI Transmitter To: Aradhya Bhatia , Tomi Valkeinen , Jyri Sarha , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Laurent Pinchart , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: DRI Development List , Devicetree List , Linux Kernel List , Nishanth Menon , Vignesh Raghavendra , Praneeth Bajjuri , Udit Kumar , Francesco Dolcini , Alexander Sverdlin , Randolph Sapp , Devarsh Thakkar , Jayesh Choudhary , Jai Luthra References: <20240716084248.1393666-1-a-bhatia1@ti.com> <20240716084248.1393666-3-a-bhatia1@ti.com> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCal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FzZ4B0p27K+qQCF2R96hVvuEyjzBmdq2esyE6zIqftdo4MOJho8uctOiWbwNNq2U9pPWmu 4vXVFBYIGmpyNPYzRm0QPwARAQABwsF8BBgBCgAmAhsMFiEEm9B+DgxR+NWWd7dUG5NDfTtB YpsFAmA872oFCRRflLYACgkQG5NDfTtBYpvScw/9GrqBrVLuJoJ52qBBKUBDo4E+5fU1bjt0 Gv0nh/hNJuecuRY6aemU6HOPNc2t8QHMSvwbSF+Vp9ZkOvrM36yUOufctoqON+wXrliEY0J4 ksR89ZILRRAold9Mh0YDqEJc1HmuxYLJ7lnbLYH1oui8bLbMBM8S2Uo9RKqV2GROLi44enVt vdrDvo+CxKj2K+d4cleCNiz5qbTxPUW/cgkwG0lJc4I4sso7l4XMDKn95c7JtNsuzqKvhEVS oic5by3fbUnuI0cemeizF4QdtX2uQxrP7RwHFBd+YUia7zCcz0//rv6FZmAxWZGy5arNl6Vm lQqNo7/Poh8WWfRS+xegBxc6hBXahpyUKphAKYkah+m+I0QToCfnGKnPqyYIMDEHCS/RfqA5 t8F+O56+oyLBAeWX7XcmyM6TGeVfb+OZVMJnZzK0s2VYAuI0Rl87FBFYgULdgqKV7R7WHzwD uZwJCLykjad45hsWcOGk3OcaAGQS6NDlfhM6O9aYNwGL6tGt/6BkRikNOs7VDEa4/HlbaSJo 7FgndGw1kWmkeL6oQh7wBvYll2buKod4qYntmNKEicoHGU+x91Gcan8mCoqhJkbqrL7+nXG2 5Q/GS5M9RFWS+nYyJh+c3OcfKqVcZQNANItt7+ULzdNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: <20240716084248.1393666-3-a-bhatia1@ti.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 16/07/2024 10:42, Aradhya Bhatia wrote: > The OLDI (transmitters) TXes do not have registers of their own, and are > dependent on the source video-ports from the DSS to provide > configuration data. This hardware doesn't directly sit on the internal > bus of the SoC, but does so via the DSS. Hence, the OLDI TXes are > supposed to be child nodes under the DSS, and not independent devices. > > Two of the OLDI TXes can function in tandem to output dual-link OLDI > output, or cloned single-link outputs. In these cases, one OLDI will be > the primary OLDI, and the other one, a companion. > > The OLDI functionality is further supported by a system-control module, > which contains a few registers to control OLDI IO power and > characteristics. > > Add devicetree binding schema for AM625 OLDI TXes. > > Signed-off-by: Aradhya Bhatia > --- > .../bindings/display/ti/ti,am625-oldi.yaml | 153 ++++++++++++++++++ > MAINTAINERS | 1 + > 2 files changed, 154 insertions(+) > create mode 100644 Documentation/devicetree/bindings/display/ti/ti,am625-oldi.yaml > > diff --git a/Documentation/devicetree/bindings/display/ti/ti,am625-oldi.yaml b/Documentation/devicetree/bindings/display/ti/ti,am625-oldi.yaml > new file mode 100644 > index 000000000000..0a96e600bc0b > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/ti/ti,am625-oldi.yaml > @@ -0,0 +1,153 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/display/ti/ti,am625-oldi.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Texas Instruments AM625 OLDI Transmitter > + > +maintainers: > + - Tomi Valkeinen > + - Aradhya Bhatia > + > +description: | Do not need '|' unless you need to preserve formatting. > + The AM625 TI Keystone OpenLDI transmitter (OLDI TX) supports serialized RGB > + pixel data transmission between host and flat panel display over LVDS (Low > + Voltage Differential Sampling) interface. The OLDI TX consists of 7-to-1 data > + serializers, and 4-data and 1-clock LVDS outputs. It supports the LVDS output > + formats "jeida-18", "jeida-24" and "vesa-18", and can accept 24-bit RGB or > + padded and un-padded 18-bit RGB bus formats as input. > + > +properties: > + reg: > + maxItems: 1 > + How does it even work without compatible? How is this schema selected? If by part of your next patch, then this is not a proper split - this patch itself is noop. Squash the patches. > + clocks: > + maxItems: 1 > + description: serial clock input for the OLDI transmitters > + > + clock-names: > + const: s_clk Drop _clk or name it correctly. > + > + ti,companion-oldi: > + $ref: /schemas/types.yaml#/definitions/phandle > + description: > + phandle to companion OLDI transmitter. This property is mandatory for the > + primarty OLDI TX if the OLDI TXes are expected to work either in dual-lvds > + mode or in clone mode. This property should point to the secondary OLDI > + TX. > + > + ti,secondary-oldi: > + type: boolean > + description: Boolean property to mark an OLDI TX as secondary node. Why? Lack companion tells it, doesn't it? > + > + ti,oldi-io-ctrl: > + $ref: /schemas/types.yaml#/definitions/phandle > + description: > + phandle to syscon device node mapping OLDI IO_CTRL registers found in the > + control MMR region. This property is needed for OLDI interface to work. "This property is needed for OLDI interface to work." tells nothing. Everything is needed for everything to work. Be specific. > + > + ports: > + $ref: /schemas/graph.yaml#/properties/ports > + > + properties: > + port@0: > + $ref: /schemas/graph.yaml#/properties/port > + description: Parallel RGB input port > + > + port@1: > + $ref: /schemas/graph.yaml#/properties/port > + description: LVDS output port > + > + required: > + - port@0 > + - port@1 > + > +allOf: > + - if: > + properties: > + ti,secondary-oldi: true This does not work... Test your schema. > + then: > + properties: > + ti,companion-oldi: false > + ti,oldi-io-ctrl: false > + clocks: false > + clock-names: false > + > + else: > + required: > + - ti,oldi-io-ctrl > + - clocks > + - clock-names > + > +required: > + - reg > + - ports > + > +additionalProperties: false > + > +examples: > + - | > + #include > + > + oldi_txes { No underscores in node names. Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification: https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation > + #address-cells = <1>; > + #size-cells = <0>; > + oldi: oldi@0 { What is the "reg" for? Best regards, Krzysztof