[Letux-kernel] [RFC v3 1/8] dt-bindings: display: convert ingenic, lcd.txt to ingenic, lcd.yaml

H. Nikolaus Schaller hns at goldelico.com
Mon Mar 30 19:18:03 CEST 2020


Hi Paul,

> Am 30.03.2020 um 19:07 schrieb Paul Cercueil <paul at crapouillou.net>:
> 
> 
> 
> Le lun. 30 mars 2020 à 18:48, H. Nikolaus Schaller <hns at goldelico.com> a écrit :
>>> Am 30.03.2020 um 18:43 schrieb Paul Cercueil <paul at crapouillou.net>:
>>> Hi Nikolaus,
>>> Le lun. 30 mars 2020 à 18:33, H. Nikolaus Schaller <hns at goldelico.com> a écrit :
>>>> Hi Paul,
>>>>> Am 30.03.2020 um 17:42 schrieb Rob Herring <robh at kernel.org>:
>>>>> On Sun, 29 Mar 2020 19:35:47 +0200, "H. Nikolaus Schaller" wrote:
>>>>>> and add compatible: jz4780-lcd, including an example how to
>>>>>> configure both lcd controllers.
>>>>>> Also fix the clock names and examples.
>>>>>> Based on work by Paul Cercueil <paul at crapouillou.net> and
>>>>>> Sam Ravnborg <sam at ravnborg.org>
>>>>>> Signed-off-by: H. Nikolaus Schaller <hns at goldelico.com>
>>>>>> Cc: Rob Herring <robh at kernel.org>
>>>>>> Cc: devicetree at vger.kernel.org
>>>>>> ---
>>>>>> .../bindings/display/ingenic,lcd.txt          |  45 ------
>>>>>> .../bindings/display/ingenic,lcd.yaml         | 128 ++++++++++++++++++
>>>>>> 2 files changed, 128 insertions(+), 45 deletions(-)
>>>>>> delete mode 100644 Documentation/devicetree/bindings/display/ingenic,lcd.txt
>>>>>> create mode 100644 Documentation/devicetree/bindings/display/ingenic,lcd.yaml
>>>>> My bot found errors running 'make dt_binding_check' on your patch:
>>>>> /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/display/ingenic,lcd.example.dt.yaml: lcd-controller at 13050000: clocks: [[4294967295, 9]] is too short
>>>>> See https://patchwork.ozlabs.org/patch/1263508
>>>> If I read the message correctly, I think there should be 2 clocks specified in
>>>> the jz4725b-lcd example and not just
>>>> 	clocks = <&cgu JZ4725B_CLK_LCD>;
>>> You get this message because that's what the YAML says. There is only one clock on JZ4725B so the yaml should reflect that.
>> That was the missing piece of information that there is only one clock on the jz4780.
>> Anyways, is there some example? Does some jz4725b.dtsi exist somewhere?
>> It is difficult to write correct yaml for a device that is not upstream.
> 
> https://github.com/OpenDingux/linux/blob/jz-5.5-rs90/arch/mips/boot/dts/ingenic/jz4725b.dtsi#L331

Great!

Ah, it only requires the "lcd_pclk" (and not the "lcd" clock) which
means the original ingenic,lcd.txt wasn't perfect in this case either.

I'll queue it for the next RFC version.

So the next important thing for this series is that we find help for making
the CI20 HDMI work...

BR and thanks,
Nikolaus

> 
> -Paul
> 
>> Otherwise I'd propose to drop the jz4725b and use the jz4740 as example.
>> BR and thanks,
>> Nikolaus
>>> -Paul
>>>> Unfortunately the jz4725b.dtsi does not seem to be upstream or in linux-next so
>>>> I don't know if it works without lcd_pclk or not.
>>>> If there is really just one clock, we need to modify the clocks and clock-names
>>>> schema and add minItems: 1 and maxItems: 2 to allow for this flexibility.
>>>> Otherwise we have to fix the example. Do you have some git with an up-to-date
>>>> jz4725b.dtsi to look at?
>>>>> If you already ran 'make dt_binding_check' and didn't see the above
>>>>> error(s), then make sure dt-schema is up to date:
>>>>> pip3 install git+https://github.com/devicetree-org/dt-schema.git@master --upgrade
>>>> +++ :)
>>>>> Please check and re-submit.
>>>> Sure, since it is a RFC.
>>>> BR and thanks,
>>>> Nikolaus



More information about the Letux-kernel mailing list