From: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
To: Rob Herring <robh@kernel.org>
Cc: "Andrzej Hajda" <andrzej.hajda@intel.com>,
"Neil Armstrong" <neil.armstrong@linaro.org>,
"Robert Foss" <rfoss@kernel.org>,
"Laurent Pinchart" <Laurent.pinchart@ideasonboard.com>,
"Jonas Karlman" <jonas@kwiboo.se>,
"Jernej Skrabec" <jernej.skrabec@gmail.com>,
"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
"Maxime Ripard" <mripard@kernel.org>,
"Thomas Zimmermann" <tzimmermann@suse.de>,
"David Airlie" <airlied@gmail.com>,
"Daniel Vetter" <daniel@ffwll.ch>,
"Sandy Huang" <hjc@rock-chips.com>,
"Heiko Stübner" <heiko@sntech.de>,
"Andy Yan" <andy.yan@rock-chips.com>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Mark Yao" <markyao0591@gmail.com>,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org,
kernel@collabora.com, "Alexandre ARNOUD" <aarnoud@me.com>,
"Luis de Arquer" <ldearquer@gmail.com>
Subject: Re: [PATCH 12/14] dt-bindings: display: rockchip,dw-hdmi: Add compatible for RK3588
Date: Thu, 6 Jun 2024 14:51:37 +0300 [thread overview]
Message-ID: <260aa607-099a-4f65-ae59-c4b6ea2256f1@collabora.com> (raw)
In-Reply-To: <20240605232206.GA3345910-robh@kernel.org>
On 6/6/24 2:22 AM, Rob Herring wrote:
> On Sat, Jun 01, 2024 at 04:12:34PM +0300, Cristian Ciocaltea wrote:
>> Document the Synopsys DesignWare HDMI 2.1 Quad-Pixel (QP) TX controller
>> found on Rockchip RK3588 SoC family.
>>
>> Since RK3588 uses different clocks than previous Rockchip SoCs and also
>> requires a couple of reset lines and some additional properties, provide
>> the required changes in the binding to accommodate all variants.
>>
>> Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
>> ---
>> .../display/rockchip/rockchip,dw-hdmi.yaml | 127 +++++++++++++++------
>> 1 file changed, 90 insertions(+), 37 deletions(-)
>>
>> diff --git a/Documentation/devicetree/bindings/display/rockchip/rockchip,dw-hdmi.yaml b/Documentation/devicetree/bindings/display/rockchip/rockchip,dw-hdmi.yaml
>> index 2aac62219ff6..60d6b815227f 100644
>> --- a/Documentation/devicetree/bindings/display/rockchip/rockchip,dw-hdmi.yaml
>> +++ b/Documentation/devicetree/bindings/display/rockchip/rockchip,dw-hdmi.yaml
>> @@ -10,12 +10,10 @@ maintainers:
>> - Mark Yao <markyao0591@gmail.com>
>>
>> description: |
>> - The HDMI transmitter is a Synopsys DesignWare HDMI 1.4 TX controller IP
>> - with a companion PHY IP.
>> -
>> -allOf:
>> - - $ref: ../bridge/synopsys,dw-hdmi.yaml#
>> - - $ref: /schemas/sound/dai-common.yaml#
>> + For SoCs up to RK3568, the HDMI transmitter is a Synopsys DesignWare
>> + HDMI 1.4 TX controller IP with a companion PHY IP.
>> + The RK3588 SoC integrates the Synopsys DesignWare HDMI 2.1 Quad-Pixel (QP)
>> + TX controller IP and a HDMI/eDP TX Combo PHY based on a Samsung IP block.
>>
>> properties:
>> compatible:
>> @@ -25,6 +23,7 @@ properties:
>> - rockchip,rk3328-dw-hdmi
>> - rockchip,rk3399-dw-hdmi
>> - rockchip,rk3568-dw-hdmi
>> + - rockchip,rk3588-dw-hdmi
>>
>> reg-io-width:
>> const: 4
>> @@ -40,36 +39,6 @@ properties:
>> A 1.8V supply that powers up the SoC internal circuitry. The pin name on the
>> SoC usually is HDMI_TX_AVDD_1V8.
>>
>> - clocks:
>> - minItems: 2
>> - items:
>> - - {}
>> - - {}
>> - # The next three clocks are all optional, but shall be specified in this
>> - # order when present.
>> - - description: The HDMI CEC controller main clock
>> - - description: Power for GRF IO
>> - - description: External clock for some HDMI PHY (old clock name, deprecated)
>> - - description: External clock for some HDMI PHY (new name)
>> -
>> - clock-names:
>> - minItems: 2
>> - items:
>> - - {}
>> - - {}
>> - - enum:
>> - - cec
>> - - grf
>> - - vpll
>> - - ref
>> - - enum:
>> - - grf
>> - - vpll
>> - - ref
>> - - enum:
>> - - vpll
>> - - ref
>> -
>> ddc-i2c-bus:
>> $ref: /schemas/types.yaml#/definitions/phandle
>> description:
>> @@ -131,13 +100,97 @@ properties:
>> required:
>> - compatible
>> - reg
>> - - reg-io-width
>> - clocks
>> - clock-names
>> - interrupts
>> - ports
>> - rockchip,grf
>>
>> +allOf:
>> + - $ref: /schemas/sound/dai-common.yaml#
>> + - if:
>> + properties:
>> + compatible:
>> + contains:
>> + enum:
>> + - rockchip,rk3588-dw-hdmi
>> + then:
>> + properties:
>> + reg:
>> + maxItems: 1
>> +
>> + clocks:
>> + minItems: 1
>> + items:
>> + - description: APB system interface clock
>> + # The next clocks are optional, but shall be specified in this
>> + # order when present.
>> + - description: TMDS/FRL link clock
>> + - description: EARC RX biphase clock
>> + - description: Reference clock
>> + - description: Audio interface clock
>> + - description: Video datapath clock
>> +
>> + clock-names:
>> + minItems: 1
>> + items:
>> + - const: pclk
>> + - enum: [hdp, earc, ref, aud, hclk_vo1]
>> + - enum: [earc, ref, aud, hclk_vo1]
>> + - enum: [ref, aud, hclk_vo1]
>> + - enum: [aud, hclk_vo1]
>> + - const: hclk_vo1
>> +
>> + resets:
>> + minItems: 2
>> + maxItems: 2
>> +
>> + reset-names:
>> + items:
>> + - const: ref
>> + - const: hdp
>> +
>> + interrupts:
>> + minItems: 1
>> + maxItems: 5
>> +
>> + rockchip,vo1_grf:
>> + $ref: /schemas/types.yaml#/definitions/phandle
>> + description: Some QP related data is accessed through VO1 GRF regs
>> +
>> + required:
>> + - resets
>> + - reset-names
>> + - rockchip,vo1_grf
>> +
>> + else:
>> + $ref: ../bridge/synopsys,dw-hdmi.yaml#
>
> This is odd... With this plus the amount of conditional schema, I think
> this should be a new schema doc. Doesn't have to have a common
> schema. You can let the 2nd user of this IP block do that.
Yes, v2 is going to be a completely separated driver implementation.
> Though if you
> have the Synopsys spec, then it would be good to use it and be sure the
> binding corresponds to it.
Unfortunately I don't have it.
@Andy: Could you please help identifying the properties which should
belong to a common synopsys,dw-hdmi-qp schema?
Thanks,
Cristian
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2024-06-06 11:52 UTC|newest]
Thread overview: 55+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-01 13:12 [PATCH 00/14] Add initial support for the Rockchip RK3588 HDMI TX Controller Cristian Ciocaltea
2024-06-01 13:12 ` [PATCH 01/14] drm/bridge: dw-hdmi: Simplify clock handling Cristian Ciocaltea
2024-06-01 13:12 ` [PATCH 02/14] drm/bridge: dw-hdmi: Add dw-hdmi-common.h header Cristian Ciocaltea
2024-06-01 13:12 ` [PATCH 03/14] drm/bridge: dw-hdmi: Commonize dw_hdmi_i2c_adapter() Cristian Ciocaltea
2024-06-01 13:12 ` [PATCH 04/14] drm/bridge: dw-hdmi: Factor out AVI infoframe setup Cristian Ciocaltea
2024-06-01 13:12 ` [PATCH 05/14] drm/bridge: dw-hdmi: Factor out vmode setup Cristian Ciocaltea
2024-06-01 13:12 ` [PATCH 06/14] drm/bridge: dw-hdmi: Factor out hdmi_data_info setup Cristian Ciocaltea
2024-06-01 13:12 ` [PATCH 07/14] drm/bridge: dw-hdmi: Commonize dw_hdmi_connector_create() Cristian Ciocaltea
2024-06-01 13:12 ` [PATCH 08/14] drm/rockchip: dw_hdmi: Use modern drm_device based logging Cristian Ciocaltea
2024-06-01 13:12 ` [PATCH 09/14] drm/rockchip: dw_hdmi: Simplify clock handling Cristian Ciocaltea
2024-06-01 13:12 ` [PATCH 10/14] drm/rockchip: dw_hdmi: Use devm_regulator_get_enable() Cristian Ciocaltea
2024-06-01 13:12 ` [PATCH 11/14] drm/rockchip: dw_hdmi: Drop superfluous assignments of mpll_cfg, cur_ctr and phy_config Cristian Ciocaltea
2024-06-01 13:12 ` [PATCH 12/14] dt-bindings: display: rockchip,dw-hdmi: Add compatible for RK3588 Cristian Ciocaltea
2024-06-05 23:22 ` Rob Herring
2024-06-06 11:51 ` Cristian Ciocaltea [this message]
2024-06-06 14:58 ` Rob Herring
2024-06-06 19:28 ` Cristian Ciocaltea
2024-07-29 2:04 ` Andy Yan
2024-06-01 13:12 ` [PATCH 13/14] drm/bridge: synopsys: Add DW HDMI QP TX controller driver Cristian Ciocaltea
2024-06-01 14:32 ` Sam Ravnborg
2024-06-04 19:32 ` Cristian Ciocaltea
2024-06-04 20:41 ` Sam Ravnborg
2024-06-04 21:34 ` Cristian Ciocaltea
2024-06-05 10:11 ` Cristian Ciocaltea
2024-06-05 11:48 ` Neil Armstrong
2024-06-05 13:57 ` Cristian Ciocaltea
2024-06-14 6:56 ` Andy Yan
2024-06-14 8:34 ` Maxime Ripard
2024-06-14 8:39 ` neil.armstrong
2024-06-05 14:48 ` Heiko Stübner
2024-06-05 19:58 ` Luis de Arquer
2024-06-05 22:16 ` Heiko Stübner
2024-06-06 9:53 ` Cristian Ciocaltea
2024-06-06 10:16 ` Heiko Stübner
2024-06-06 11:32 ` Cristian Ciocaltea
2024-06-01 13:12 ` [PATCH 14/14] drm/rockchip: dw_hdmi: Add basic RK3588 support Cristian Ciocaltea
2024-06-01 14:50 ` kernel test robot
2024-06-01 17:15 ` kernel test robot
2024-06-01 16:32 ` [PATCH 00/14] Add initial support for the Rockchip RK3588 HDMI TX Controller Dmitry Baryshkov
2024-06-04 19:44 ` Cristian Ciocaltea
2024-06-04 23:49 ` Dmitry Baryshkov
2024-06-02 7:59 ` Piotr Oniszczuk
2024-06-04 19:59 ` Cristian Ciocaltea
2024-06-03 8:55 ` Neil Armstrong
2024-06-03 12:14 ` Andy Yan
2024-06-03 13:03 ` Heiko Stuebner
2024-06-03 13:08 ` neil.armstrong
2024-06-04 20:33 ` Cristian Ciocaltea
2024-06-05 9:25 ` Andy Yan
2024-06-05 9:28 ` neil.armstrong
2024-06-05 9:39 ` Maxime Ripard
2024-06-05 9:49 ` Andy Yan
2024-06-05 11:20 ` Cristian Ciocaltea
2024-06-03 16:22 ` Maxime Ripard
2024-07-14 19:03 ` Piotr Oniszczuk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=260aa607-099a-4f65-ae59-c4b6ea2256f1@collabora.com \
--to=cristian.ciocaltea@collabora.com \
--cc=Laurent.pinchart@ideasonboard.com \
--cc=aarnoud@me.com \
--cc=airlied@gmail.com \
--cc=andrzej.hajda@intel.com \
--cc=andy.yan@rock-chips.com \
--cc=conor+dt@kernel.org \
--cc=daniel@ffwll.ch \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=heiko@sntech.de \
--cc=hjc@rock-chips.com \
--cc=jernej.skrabec@gmail.com \
--cc=jonas@kwiboo.se \
--cc=kernel@collabora.com \
--cc=krzk+dt@kernel.org \
--cc=ldearquer@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=markyao0591@gmail.com \
--cc=mripard@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=rfoss@kernel.org \
--cc=robh@kernel.org \
--cc=tzimmermann@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).