From patchwork Thu Apr 1 17:41:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 413640 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp769980jai; Thu, 1 Apr 2021 10:48:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBtEPJsobm/vvOtSGT1p2DXCYbzt14t3qrsjlCgFt9M3l5pLlxz5/qe9tdbkzREZePu2wT X-Received: by 2002:a05:6402:1a3c:: with SMTP id be28mr11274161edb.125.1617299283064; Thu, 01 Apr 2021 10:48:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617299283; cv=none; d=google.com; s=arc-20160816; b=qAW8wopgYDuw5J+D1xfjPgADEXFX7X5u0D8iDEnEdYSz0qEmkndp+tvJkR3NI1wRKa jHx5VoWVu3L1aK9WffK3aWqI9EYnfSrA2RWDDfQ0fh5CeZ0q1MeVkLx6L5R34M0YiKFk 4y3beM/GkmyKBAzsM0z2962n1+JHeJXybTlk4bIKomsjp+97eUTrandPyQPyffIMR+Ny FE2iW5KVNmpUH/SdBL2m3cRBIec5eqLlzUjx++qTAbFLFNb1piv+qjVtQq8l4WAU1ADl YByVmz1aMrKQpKuJWiIJabY53KIWJhpUG3nvGcPVFrboz8WNFL5JYf8TzPG85W6ZY41z I9rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0lfcObXsVoRqYbfc4tS98v2rJ0/63ZdBJLKDDXsa+bE=; b=PDX0240aQV4kttoBpqp7IWWoQS01DpCIwMrh2uvz8UTK/rgC0miplp8TSsvgJPTLhC AaRMw9R/icL3hJu++6KxSxODhkn1gySgY4T9jFdCmarZ7DqyU+0irw2oUp/7RghZf+Dp 2Qj+mW5bGZ9WgnUvg0nlqMF53tfzI55f23gOr0s2aaSrSgV0SVFuZQJxcPuMoQv6DQTb Swy89DtSv8NBMqdkh+dW8WdG6sRbBVzwQwZJHfBSHwXGgijOqtqZUGOQUQh2Pc/oyR4T 5X+FAzHUiINyhEE7ac3KwO8Dkh/q3l8itgYhyp5IodWWHetMbjXzESNydOGYG6ndRt8N XgJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="MCM1K8/G"; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v24si4734993eja.84.2021.04.01.10.48.02; Thu, 01 Apr 2021 10:48:03 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="MCM1K8/G"; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236889AbhDARr6 (ORCPT + 6 others); Thu, 1 Apr 2021 13:47:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:45212 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236463AbhDARpC (ORCPT ); Thu, 1 Apr 2021 13:45:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1E0CB6112E; Thu, 1 Apr 2021 17:43:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617298988; bh=UkBJ3TPaqOhgNhsmcELZeSyEXojAw6LG7Ou09rNFPzA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MCM1K8/GkUbQaIYihixSAtruO6JJFOouJR5LzzUEcVPW0/cLhttU+v3x+V/9EgX96 uU5fQdhW7NPhjRbgT/iN7N/OAPvwlumQuE6CNo/4ypnbW9IYeRIjwWwR4e13CDwmEv 52H9Dno+dsHxSKuP12ZCpHBgbsSua7vQw2q8w4e/p0VQonKzFsuNaRQhBBjVzAIuXa MWfig6gSOg8NkQ0VZdqTdShjbW+kROLPqONHe4jkG3QnvIg+0QEU2W6idVJP/xdivq 6Lq08UdHgUyz5CP/8BmkjPbgY4V9n+g8gObvnnqaVqNqB0+Niqrxt8AoLBqg+ZWU/W W4oeWiRXIH8zw== From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring Cc: devicetree@vger.kernel.org, Jonathan Cameron Subject: [PATCH 1/6] dt-bindings:iio:accel:adis16201 and adis16209 bindings Date: Thu, 1 Apr 2021 18:41:07 +0100 Message-Id: <20210401174112.320497-2-jic23@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210401174112.320497-1-jic23@kernel.org> References: <20210401174112.320497-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron These two devices have different internal characterstics, but their external connectivity and as a result device tree descriptions are identical. Note that neither driver in Linux currently has an of_match_table but instead rely on matching via name alone. Signed-off-by: Jonathan Cameron --- .../bindings/iio/accel/adi,adis16201.yaml | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) -- 2.31.1 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/accel/adi,adis16201.yaml b/Documentation/devicetree/bindings/iio/accel/adi,adis16201.yaml new file mode 100644 index 000000000000..6f8f8a6258fe --- /dev/null +++ b/Documentation/devicetree/bindings/iio/accel/adi,adis16201.yaml @@ -0,0 +1,55 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/accel/adi,adis16201.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ADIS16201 Dual Axis Inclinometer and similar + +maintainers: + - Jonathan Cameron + +description: | + Two similar parts from external interface point of view. + SPI interface. + https://www.analog.com/en/products/adis16201.html + https://www.analog.com/en/products/adis16209.html + +properties: + compatible: + enum: + - adi,adis16201 + - adi,adis16209 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + spi-max-frequency: true + + vdd-supply: true + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + spi0 { + #address-cells = <1>; + #size-cells = <0>; + + accelerometer@0 { + compatible = "adi,adis16201"; + reg = <0>; + spi-max-frequency = <2500000>; + interrupt-parent = <&gpio0>; + interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; + }; + }; +...