[PATCH v6 5/7] dt-bindings: hwmon: max31790: Document address and size cells
Rob Herring
robh at kernel.org
Fri Sep 19 09:01:29 AEST 2025
On Thu, Sep 18, 2025 at 01:04:00PM -0500, Eddie James wrote:
> Since fan properties can include reg, the fan controller should be
> able to specify address-cells and size-cells properties.
>
> Signed-off-by: Eddie James <eajames at linux.ibm.com>
> ---
> Documentation/devicetree/bindings/hwmon/maxim,max31790.yaml | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/hwmon/maxim,max31790.yaml b/Documentation/devicetree/bindings/hwmon/maxim,max31790.yaml
> index b2dc813b1ab44..42e7030360f1c 100644
> --- a/Documentation/devicetree/bindings/hwmon/maxim,max31790.yaml
> +++ b/Documentation/devicetree/bindings/hwmon/maxim,max31790.yaml
> @@ -35,6 +35,12 @@ properties:
> resets:
> maxItems: 1
>
> + '#address-cells':
> + const: 1
> +
> + '#size-cells':
> + const: 0
> +
As I explained, this is wrong if the child nodes don't have an address
and are named "fan-[0-9]" which they are.
> "#pwm-cells":
> const: 1
>
> --
> 2.51.0
>
More information about the Linux-aspeed
mailing list