lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250227162823.3585810-7-david@protonic.nl>
Date: Thu, 27 Feb 2025 17:28:22 +0100
From: David Jander <david@...tonic.nl>
To: linux-kernel@...r.kernel.org
Cc: 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>,
	David Jander <david@...tonic.nl>
Subject: [RFC PATCH 6/7] dt-bindings: motion: Add adi,tmc5240 bindings

Add device-tree bindings for Analog Devices TMC5240 stepper controllers.

Signed-off-by: David Jander <david@...tonic.nl>
---
 .../bindings/motion/adi,tmc5240.yaml          | 60 +++++++++++++++++++
 1 file changed, 60 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/motion/adi,tmc5240.yaml

diff --git a/Documentation/devicetree/bindings/motion/adi,tmc5240.yaml b/Documentation/devicetree/bindings/motion/adi,tmc5240.yaml
new file mode 100644
index 000000000000..3364f9dfccb1
--- /dev/null
+++ b/Documentation/devicetree/bindings/motion/adi,tmc5240.yaml
@@ -0,0 +1,60 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$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: |
+   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
+      be shared between several controllers.
+
+  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>;
+            clocks = <&clock_tmc5240>;
+            enable-supply = <&stpsleepn>;
+            spi-max-frequency = <1000000>;
+        };
+    };
+
-- 
2.47.2


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ