[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250228-groovy-lyrical-skunk-751ee3@krzk-bin>
Date: Fri, 28 Feb 2025 08:11:04 +0100
From: Krzysztof Kozlowski <krzk@...nel.org>
To: David Jander <david@...tonic.nl>
Cc: linux-kernel@...r.kernel.org, linux-iio@...r.kernel.org,
Jonathan Corbet <corbet@....net>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley <conor+dt@...nel.org>, devicetree@...r.kernel.org,
linux-doc@...r.kernel.org, Nuno Sa <nuno.sa@...log.com>,
Jonathan Cameron <jic23@...nel.org>, Oleksij Rempel <o.rempel@...gutronix.de>
Subject: Re: [RFC PATCH 6/7] dt-bindings: motion: Add adi,tmc5240 bindings
On Thu, Feb 27, 2025 at 05:28:22PM +0100, David Jander wrote:
> +$id: http://devicetree.org/schemas/motion/adi,tmc5240.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Analog Devices TMC5240 Stepper Motor controller
> +
> +maintainers:
> + - David Jander <david@...tonic>
> +
> +description: |
Do not need '|' unless you need to preserve formatting.
> + Stepper motor controller with motion engine and SPI interface.
> +
> +properties:
> + compatible:
> + enum:
> + - adi,tmc5240
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +
> + enable-supply:
> + description: Optional external enable supply to control SLEEPn pin. Can
That's odd. regular pins are not supplies. This must be named after
physical supplies. There is vdd18, vcc, vcp but nothing about enable
supply in datasheet.
> + be shared between several controllers.
Second sentence is both redundant and really not relevant to this
binding. It's not this binding which decides about sharing.
> +
> + clocks:
> + maxItems: 1
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> + - clocks
> +
> +allOf:
> + - $ref: /schemas/spi/spi-peripheral-props.yaml#
> + - $ref: /schemas/motion/common.yaml#
> +
> +unevaluatedProperties: false
> +
> +examples:
> + - |
> + spi {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + motor@0 {
> + compatible = "adi,tmc5240";
> + reg = <0>;
> + interrupts-extended = <&gpiok 7 0>;
Include header and use standard defines for flags.
> + clocks = <&clock_tmc5240>;
> + enable-supply = <&stpsleepn>;
> + spi-max-frequency = <1000000>;
Where are any other properties from common schema?
Best regards,
Krzysztof
Powered by blists - more mailing lists