Message ID | 20201124043728.199852-1-damien.lemoal@wdc.com |
---|---|
Headers | show |
Series | RISC-V Kendryte K210 support improvements | expand |
Hi Damien, On Tue, Nov 24, 2020 at 5:40 AM Damien Le Moal <damien.lemoal@wdc.com> wrote: > Document the device tree bindings for the Canaan Kendryte K210 SoC > Fully Programmable IO Array (FPIOA) pinctrl driver in > Documentation/devicetree/bindings/pinctrl/canaan,k210-fpioa.yaml. The > new header file include/dt-bindings/pinctrl/k210-fpioa.h is added to > define all 256 possible pin functions of the SoC IO pins, as well as > macros simplifying the definition of pin functions in a device tree. > > Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com> Thanks for your patch! > --- /dev/null > +++ b/Documentation/devicetree/bindings/pinctrl/canaan,k210-fpioa.yaml > + canaan,k210-sysctl-power: > + $ref: /schemas/types.yaml#/definitions/phandle-array > + description: | > + phandle of the K210 system controller node and offset of the its of its > + power domain control register. Your k210-sysctl-v15 branch has a bogus trailing space here. > + > +patternProperties: > + '-pins$': > + type: object > + $ref: /schemas/pinctrl/pincfg-node.yaml > + description: > + FPIOA client devices use sub-nodes to define the desired > + configuration of pins. Client device sub-nodes use the > + properties below. > + > + properties: > + input-schmitt: true > + > + input-schmitt-enable: true Do you need both? Documentation/devicetree/bindings/pinctrl/pincfg-node.yaml documents input-schmitt-enable and input-schmitt-disable, but not input-schmitt. > + > + intput-polarity-invert: input-polarity-invert > + description: > + Enable or disable pin input polarity inversion. Still, this is a non-standard property. Do you need it, or can this be handled by the software GPIO_ACTIVE_LOW flag? > + output-polarity-invert: > + description: > + Enable or disable pin output polarity inversion. Same comment as for input. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Hi Damien, On Tue, Nov 24, 2020 at 11:05 AM Damien Le Moal <Damien.LeMoal@wdc.com> wrote: > On 2020/11/24 18:49, Geert Uytterhoeven wrote: > > On Tue, Nov 24, 2020 at 5:40 AM Damien Le Moal <damien.lemoal@wdc.com> wrote: > >> Document the device tree bindings for the Canaan Kendryte K210 SoC > >> Fully Programmable IO Array (FPIOA) pinctrl driver in > >> Documentation/devicetree/bindings/pinctrl/canaan,k210-fpioa.yaml. The > >> new header file include/dt-bindings/pinctrl/k210-fpioa.h is added to > >> define all 256 possible pin functions of the SoC IO pins, as well as > >> macros simplifying the definition of pin functions in a device tree. > >> > >> Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com> > > > > Thanks for your patch! > > > >> --- /dev/null > >> +++ b/Documentation/devicetree/bindings/pinctrl/canaan,k210-fpioa.yaml > > > >> + canaan,k210-sysctl-power: > >> + $ref: /schemas/types.yaml#/definitions/phandle-array > >> + description: | > >> + phandle of the K210 system controller node and offset of the its > > > > of its > > > >> + power domain control register. > > > > Your k210-sysctl-v15 branch has a bogus trailing space here. > > Oops. Forgot to push the fixed up patches. Just did it now (forced update > k210-sysctl-v15). $ make dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/pinctrl/canaan,k210-fpioa.yaml Documentation/devicetree/bindings/pinctrl/canaan,k210-fpioa.yaml:59:1: [error] syntax error: found character '\t' that cannot start any token (syntax) DT binding files should use spaces, not TABs. Gr{oetje,eeting}s, Geert
On 2020/11/26 19:43, Geert Uytterhoeven wrote: > Hi Damien, > > On Tue, Nov 24, 2020 at 11:05 AM Damien Le Moal <Damien.LeMoal@wdc.com> wrote: >> On 2020/11/24 18:49, Geert Uytterhoeven wrote: >>> On Tue, Nov 24, 2020 at 5:40 AM Damien Le Moal <damien.lemoal@wdc.com> wrote: >>>> Document the device tree bindings for the Canaan Kendryte K210 SoC >>>> Fully Programmable IO Array (FPIOA) pinctrl driver in >>>> Documentation/devicetree/bindings/pinctrl/canaan,k210-fpioa.yaml. The >>>> new header file include/dt-bindings/pinctrl/k210-fpioa.h is added to >>>> define all 256 possible pin functions of the SoC IO pins, as well as >>>> macros simplifying the definition of pin functions in a device tree. >>>> >>>> Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com> >>> >>> Thanks for your patch! >>> >>>> --- /dev/null >>>> +++ b/Documentation/devicetree/bindings/pinctrl/canaan,k210-fpioa.yaml >>> >>>> + canaan,k210-sysctl-power: >>>> + $ref: /schemas/types.yaml#/definitions/phandle-array >>>> + description: | >>>> + phandle of the K210 system controller node and offset of the its >>> >>> of its >>> >>>> + power domain control register. >>> >>> Your k210-sysctl-v15 branch has a bogus trailing space here. >> >> Oops. Forgot to push the fixed up patches. Just did it now (forced update >> k210-sysctl-v15). > > $ make dt_binding_check > DT_SCHEMA_FILES=Documentation/devicetree/bindings/pinctrl/canaan,k210-fpioa.yaml > Documentation/devicetree/bindings/pinctrl/canaan,k210-fpioa.yaml:59:1: > [error] syntax error: found character '\t' that cannot start any token > (syntax) > > DT binding files should use spaces, not TABs. Arrg... emacs again... Need to configure it properly to use spaces for yaml files. Will fix this in v3. Thanks ! > > Gr{oetje,eeting}s, > > Geert >