From patchwork Thu Feb 27 16:28:22 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Jander X-Patchwork-Id: 13994896 Received: from smtp28.bhosted.nl (smtp28.bhosted.nl [94.124.121.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BECBD1CAA67 for ; Thu, 27 Feb 2025 16:29:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=94.124.121.40 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740673801; cv=none; b=nDdVW0wnwclaBptUJCCuxCaw7azEu0D6VuQGA4dsF5XFQHGzoi3N27mWngHrXH0Y726L57DJlMTBoVbTllbgF6WqNhhshGC3x28qLDXuELBMNIHSyKcy905v04STBfVJaQl6u0FNUWs7fEujGA8vNt6n5Z9TROJgd0nwvdE0goM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740673801; c=relaxed/simple; bh=9uMpx9Mab9fK3MfAkfHCHHv51TtabIU/UJX98iJNxtA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=n2TI2S2Ua6FhUM0WklJfIUrpWVwsidek7mRpB2yrqIEIlelxMQJm2PM3TV/LTLtYLrPgnNeofnemTYgThC86T36stgcOMZzcMZqcGPlcclUlnLYeNpS0DFffmPa/hnLBM02XQo2nAv8pR6kSuut26tdd0PITJ9wvBmHjsqbpomc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=protonic.nl; spf=pass smtp.mailfrom=protonic.nl; dkim=pass (2048-bit key) header.d=protonic.nl header.i=@protonic.nl header.b=k6DomKcY; arc=none smtp.client-ip=94.124.121.40 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=protonic.nl Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=protonic.nl Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=protonic.nl header.i=@protonic.nl header.b="k6DomKcY" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonic.nl; s=202111; h=content-transfer-encoding:mime-version:references:in-reply-to:message-id:date: subject:cc:to:from:from; bh=/mtSJ5kvDnJhqBx+5Yy3liA8YbzxZ1PsBPRkJzt2uEM=; b=k6DomKcY6uxpzxkxo8UJKqtaV34WucRmBtHkd5ccUb9PobdahUYG8/Cq82IV/ba2LY/5fJLPB6eDR 5S4/Xyze8kYMN3O+bwfsCnwc3rRzwdYIOwzPlh3FSeLRuZpNUCWa8pJqCk0dNPwbiAhhFqV8yhaIUR 2fzpsUjZlRgeOMaGo3m9arCQpP9ESm+rQbC+q6yEk1ntkNANPM+SGOCxEulBttDTgNM86CRmhf8tag mLJcUUm3176oGaLnZG+wroSgQoPO8oxemy01ypKZC8PGEg7+yei6RjmEL4tbIgQqZumMBw5Wk3cvVt jRvflwPe/B1ndh6Kr0mNXZ6MDd1OqDQ== X-MSG-ID: ec71a464-f527-11ef-b5ca-0050568164d1 From: David Jander To: linux-kernel@vger.kernel.org Cc: linux-iio@vger.kernel.org, Jonathan Corbet , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-doc@vger.kernel.org, Nuno Sa , Jonathan Cameron , Oleksij Rempel , David Jander Subject: [RFC PATCH 6/7] dt-bindings: motion: Add adi,tmc5240 bindings Date: Thu, 27 Feb 2025 17:28:22 +0100 Message-ID: <20250227162823.3585810-7-david@protonic.nl> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250227162823.3585810-1-david@protonic.nl> References: <20250227162823.3585810-1-david@protonic.nl> Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add device-tree bindings for Analog Devices TMC5240 stepper controllers. Signed-off-by: David Jander --- .../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 + +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>; + }; + }; +