Re: [PATCH 1/2] dt-bindings: pinctrl: Add bindings for Intel Keembay pinctrl driver
From: Linus Walleij
Date: Thu May 27 2021 - 06:42:05 EST
Hi Lakshmi,
some more review of the bindings!
On Mon, May 24, 2021 at 11:26 AM <lakshmi.sowjanya.d@xxxxxxxxx> wrote:
> +properties:
> + compatible:
> + const: intel,keembay-pinctrl
> +
> + reg:
> + maxItems: 2
> +
> + gpio-controller: true
> +
> + '#gpio-cells':
> + const: 2
The code uses "num-gpios" but should be using "ngpios" which is the
standard.
> + interrupts:
> + description:
> + Specifies the interrupt lines to be used by the controller.
> + maxItems: 8
We need to figure out how these interrupt assign to GPIOs, and it is
relevant to write that already here, om the description. It is fine if the
same info is duplicated in the driver.
> +patternProperties:
> + '^.$':
> + type: object
Certainly these nodes can have a strict name?
Use includes for checking standard attributes:
$ref: pinmux-node.yaml#
$ref: pincfg-node.yaml#
> + description:
> + Child nodes can be specified to contain pin configuration information,
> + which can then be utilized by pinctrl client devices.
> + The following properties are supported.
> +
> + properties:
> + pins:
> + description: |
> + The name(s) of the pins to be configured in the child node.
> + Supported pin names are "GPIO0" up to "GPIO79".
(...)
> + bias-disable:
> + type: boolean
Using $ref: pincfg-node.yaml# this becomes
bias-disable: true
etc.
> + drive-strength:
> + enum: [2, 4, 8, 12]
This needs to be specified though.
> + slew-rate:
> + description: |
> + 0: Fast
> + 1: Slow
> + enum: [0, 1]
And this.
Yours,
Linus Walleij