RE: [PATCH 1/2] dt-bindings: pinctrl: Add bindings for Intel Keembay pinctrl driver

From: D, Lakshmi Sowjanya
Date: Thu May 27 2021 - 11:04:28 EST


Hi Linus Walleij

Thanks for the review.

Regards,
Lakshmi

-----Original Message-----
From: Linus Walleij <linus.walleij@xxxxxxxxxx>
Sent: Thursday, May 27, 2021 4:12 PM
To: D, Lakshmi Sowjanya <lakshmi.sowjanya.d@xxxxxxxxx>
Cc: open list:GPIO SUBSYSTEM <linux-gpio@xxxxxxxxxxxxxxx>; linux-kernel <linux-kernel@xxxxxxxxxxxxxxx>; Raja Subramanian, Lakshmi Bai <lakshmi.bai.raja.subramanian@xxxxxxxxx>; Saha, Tamal <tamal.saha@xxxxxxxxx>
Subject: Re: [PATCH 1/2] dt-bindings: pinctrl: Add bindings for Intel Keembay pinctrl driver

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.
-- Will update in the next version

> + 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.
-- Shall document it properly in next version

> +patternProperties:
> + '^.$':
> + type: object

Certainly these nodes can have a strict name?
--I will change the name accordingly.

Use includes for checking standard attributes:
$ref: pinmux-node.yaml#
$ref: pincfg-node.yaml#
--I will use the suggested includes.

> + 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.
--Thanks! Will update in next version.

> + 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.
--Will specify the enums in next version.


Yours,
Linus Walleij