[PATCH v2 1/9] ARM: dts: sam9x60: Add OHCI and EHCI DT nodes
Marek Vasut
marex at denx.de
Wed Jan 4 15:38:01 CET 2023
On 1/4/23 11:17, Sergiu.Moga at microchip.com wrote:
> On 04.01.2023 11:56, Marek Vasut wrote:
>> On 1/4/23 08:24, Eugen.Hristev at microchip.com wrote:
>>> On 1/3/23 18:00, Marek Vasut wrote:
>>>> On 1/3/23 16:56, Sergiu.Moga at microchip.com wrote:
>>>>> On 03.01.2023 17:47, Marek Vasut wrote:
>>>>>> On 1/3/23 16:35, Sergiu Moga wrote:
>>>>>>> Add the OHCI and EHCI DT nodes for the sam9x60 SoC's.
>>>>>>>
>>>>>>> Signed-off-by: Sergiu Moga <sergiu.moga at microchip.com>
>>>>>>> ---
>>>>>>>
>>>>>>> v1 -> v2:
>>>>>>> - use usb@
>>>>>>>
>>>>>>> arch/arm/dts/sam9x60.dtsi | 18 ++++++++++++++++++
>>>>>>> 1 file changed, 18 insertions(+)
>>>>>>>
>>>>>>> diff --git a/arch/arm/dts/sam9x60.dtsi b/arch/arm/dts/sam9x60.dtsi
>>>>>>> index 17224ef771..4fcfb5c597 100644
>>>>>>> --- a/arch/arm/dts/sam9x60.dtsi
>>>>>>> +++ b/arch/arm/dts/sam9x60.dtsi
>>>>>>> @@ -69,6 +69,24 @@
>>>>>>> #size-cells = <1>;
>>>>>>> ranges;
>>>>>>>
>>>>>>> + usb1: usb at 600000 {
>>>>>>> + compatible = "atmel,at91rm9200-ohci",
>>>>>>> "usb-ohci";
>>>>>>> + reg = <0x00600000 0x100000>;
>>>>>>> + clocks = <&pmc PMC_TYPE_PERIPHERAL 22>, <&pmc
>>>>>>> PMC_TYPE_PERIPHERAL 22>, <&pmc PMC_TYPE_SYSTEM 21>;
>>>>>>
>>>>>> ./scripts/checkpatch.pl on this patch indicates
>>>>>>
>>>>>> WARNING: line length of 121 exceeds 100 columns
>>>>>> #93: FILE: arch/arm/dts/sam9x60.dtsi:75:
>>>>>> + clocks = <&pmc PMC_TYPE_PERIPHERAL 22>, <&pmc
>>>>>> PMC_TYPE_PERIPHERAL 22>, <&pmc PMC_TYPE_SYSTEM 21>;
>>>>>>
>>>>>> Please run checkpatch on all your patches.
>>>>>>
>>>>>> Also, wait a few days before sending V2 , no need to send V2
>>>>>> immediately
>>>>>> while review of V1 is still ongoing.
>>>>>
>>>>> It was my understanding that exceeding the character per line limit on
>>>>> DT's is acceptable. All of our DT's are like this.
>>>>
>>>> Not to my knowledge or per what is in other DTs.
>>>> Is that some exception here ?
>>>
>>> DTs have not had restrictions on 80 chars per line. Have a look in Linux.
>>>
>>> Also, as we have a requirement to keep the DT from Linux, we either have
>>> to patch up Linux if there is a problem in the DT, or keep it in sync
>>> with Linux.
>>> We may have exceptions if there is a too big amount of work to be done
>>> now to change things, to have differences in term of DT between Uboot
>>> and Linux. But the general guideline is to keep the DT in sync with
>>> Linux as it's ABI.
>>
>> Linux checkpatch.pl --strict does complain about the line length for
>> sam9x60.dtsi , it was demoted from warning to check there.
>>
>> Can you send a separate follow-up patch to U-Boot checkpatch.pl which
>> does the same , so we'd be in sync with Linux ?
>
> I am sorry, I do not know at the moment where that change is supposed to
> be made in checkpatch.pl.
Have a look at linux checkpatch.pl git log , it will be there already.
It changes DT line length WARNING to CHECK .
> So, right now, I would rather focus my time on
> updating these patch series to be good enough and only afterwards I
> would take a look at where exactly I should make the change for
> checkpatch.pl as well, if that's fine. Thanks for the understanding.
Right, that's why I wrote separate follow up patch.
More information about the U-Boot
mailing list