[PATCH v5 13/20] dt-bindings: display: rockchip: analogix-dp: Add support for RK3588
Damon Ding
damon.ding at rock-chips.com
Mon Jan 20 07:08:06 UTC 2025
Hi Krzysztof,
On 2025/1/9 16:54, Krzysztof Kozlowski wrote:
> On Thu, Jan 09, 2025 at 11:27:18AM +0800, Damon Ding wrote:
>> Compared with RK3288/RK3399, the HBR2 link rate support is the main
>> improvement of RK3588 eDP TX controller, and there are also two
>> independent eDP display interfaces on RK3588 Soc.
>>
>> The newly added 'apb' reset is to ensure the APB bus of eDP controller
>> works well on the RK3588 SoC.
>>
>> Signed-off-by: Damon Ding <damon.ding at rock-chips.com>
>>
>> ---
>>
>> Changes in v2:
>> - Add the main defferences of the RK3588 eDP and the previous versions
>> in commit message
>>
>> Changes in v3:
>> - Expand the property clock-names, resets and reset-names
>>
>> Changes in v4:
>> - Remove 'spdif' clock which added in v3
>> - Add the comment of newly added 'apb' reset in commit message
>>
>> Changes in v5:
>> - Put the differences between RK3288/RK3399 and RK3588 into 'allOf'
>> ---
>> .../rockchip/rockchip,analogix-dp.yaml | 37 ++++++++++++++++---
>> 1 file changed, 31 insertions(+), 6 deletions(-)
>>
>> diff --git a/Documentation/devicetree/bindings/display/rockchip/rockchip,analogix-dp.yaml b/Documentation/devicetree/bindings/display/rockchip/rockchip,analogix-dp.yaml
>> index eaf4e67e232e..3cdea9e63522 100644
>> --- a/Documentation/devicetree/bindings/display/rockchip/rockchip,analogix-dp.yaml
>> +++ b/Documentation/devicetree/bindings/display/rockchip/rockchip,analogix-dp.yaml
>> @@ -15,6 +15,7 @@ properties:
>> enum:
>> - rockchip,rk3288-dp
>> - rockchip,rk3399-edp
>> + - rockchip,rk3588-edp
>>
>> clocks:
>> minItems: 2
>> @@ -30,12 +31,6 @@ properties:
>> power-domains:
>> maxItems: 1
>>
>> - resets:
>> - maxItems: 1
>> -
>> - reset-names:
>> - const: dp
>
> Widest constraints are always here. You only needed to add allOf.
>
> https://elixir.bootlin.com/linux/v6.11-rc6/source/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml
>
>
I see. I will keep the widest constraints of 'resets' and 'reset-names',
and only add RK3588 related constraints in allOf.
And I may also need to add the 'minItems' and 'maxItems' for 'resets'
and 'reset-names' like the 'qcom,ufs.yaml':
diff --git
a/Documentation/devicetree/bindings/display/rockchip/rockchip,analogix-dp.yaml
b/Documentation/devicetree/bindings/display/rockchip/rockchip,analogix-dp.yaml
index a4c0c3a5de5a..baee021314e7 100644
---
a/Documentation/devicetree/bindings/display/rockchip/rockchip,analogix-dp.yaml
+++
b/Documentation/devicetree/bindings/display/rockchip/rockchip,analogix-dp.yaml
@@ -32,9 +32,12 @@ properties:
maxItems: 1
resets:
- maxItems: 1
+ minItems: 1
+ maxItems: 2
reset-names:
+ minItems: 1
+ maxItems: 2
const: dp
rockchip,grf:
If not, the CHECK_DTBS will failed with the logs:
/linux/arch/arm64/boot/dts/rockchip/rk3588-evb1-v10.dtb: edp at fdec0000:
resets: [[31, 469], [31, 468]] is too long
from schema $id:
http://devicetree.org/schemas/display/rockchip/rockchip,analogix-dp.yaml#
/linux/arch/arm64/boot/dts/rockchip/rk3588-evb1-v10.dtb: edp at fdec0000:
reset-names: ['dp', 'apb'] is too long
from schema $id:
http://devicetree.org/schemas/display/rockchip/rockchip,analogix-dp.yaml#
Best regards
Damon
More information about the dri-devel
mailing list