[PATCH RESEND v5 1/2] dt-binding: pinctrl: Add NPCM8XX pinctrl and GPIO documentation
Tomer Maimon
tmaimon77 at gmail.com
Mon Aug 28 01:30:50 AEST 2023
Hi Krzysztof,
Thanks for your comment
On Sun, 27 Aug 2023 at 14:13, Krzysztof Kozlowski
<krzysztof.kozlowski at linaro.org> wrote:
>
> On 27/08/2023 11:44, Tomer Maimon wrote:
> >>> + pinctrl: pinctrl at f0800260 {
> >>> + compatible = "nuvoton,npcm845-pinctrl";
> >>> + ranges = <0x0 0x0 0xf0010000 0x8000>;
> >>> + #address-cells = <1>;
> >>> + #size-cells = <1>;
> >>> + nuvoton,sysgcr = <&gcr>;
> >>> +
> >>> + gpio0: gpio at f0010000 {
> >>
> >> unit-address should be 0.
> >>
> >> Otherwise,
> > The unit-address is correct f0010000
>
> Then how does it pass W=1 builds? How unit address can be f0010000 but
> reg is 0? Really...
Maybe because the ranges are ranges = <0x0 0x0 0xf0010000 0x8000>?
I didn't get any warning regarding the unit-address
bash-4.2$ make ARCH=arm64 dt_binding_check W=1
DT_SCHEMA_FILES=Documentation/devicetree/bindings/pinctrl/nuvoton,npcm845-pinctrl.yaml
DTEX Documentation/devicetree/bindings/pinctrl/nuvoton,npcm845-pinctrl.example.dts
DTC_CHK Documentation/devicetree/bindings/pinctrl/nuvoton,npcm845-pinctrl.example.dtb
bash-4.2$ dt-mk-schema -V
2023.7
>
> >>
> >> Reviewed-by: Rob Herring <robh at kernel.org>
> >>
> >>> + gpio-controller;
> >>> + #gpio-cells = <2>;
> >>> + reg = <0x0 0xB0>;
> >
> > Thanks,
> >
> > Tomer
>
> Best regards,
> Krzysztof
>
Best regards,
Tomer
More information about the openbmc
mailing list