[RFC PATCH v2 3/4] dt-bindings: iio: position: add ams,as5600

Muchamad Coirul Anwar
2026-04-29T13:23:09Z

.../bindings/iio/position/ams,as5600.yaml | 40 +++++++++++++++++++
1 file changed, 40 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/position/ams,as5600.yaml

diff --git a/Documentation/devicetree/bindings/iio/position/ams,as5600.yaml b/Documentation/devicetree/bindings/iio/position/ams,as5600.yaml
new file mode 100644
index 000000000000..d29543d85d1a
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/position/ams,as5600.yaml
@@ -0,0 +1,40 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/position/ams,as5600.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: ams AS5600 Magnetic Rotary Position Sensor
+
+maintainers:
+ - Muchamad Coirul Anwar <muchamadcoirulanwar@gmail.com>
+
+description: |
+ The ams AS5600 is a 12-bit programmable contactless
+ magnetic rotary position sensor communicating over I2C.
+ The device address is fixed at 0x36.
+
+properties:
+ compatible:
+ const: ams,as5600
+
+ reg:
+ const: 0x36
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
+
+examples:
+ - |
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ position-sensor@36 {
+ compatible = "ams,as5600";
+ reg = <0x36>;
+ };
+ };
--
2.50.0