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>; + }; + }; +... From patchwork Thu Apr 1 17:41:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 413643 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp773398jai; Thu, 1 Apr 2021 10:52:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjHOm/o2jXVdi+I+aW5aUIRhYOFdN3u8D6KqImd4fFUUDOXcm81saKchAU6Yyy1NNv5f/C X-Received: by 2002:a17:906:b4c:: with SMTP id v12mr10399291ejg.330.1617299551821; Thu, 01 Apr 2021 10:52:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617299551; cv=none; d=google.com; s=arc-20160816; b=YsmwElx3DF32a4LnV2aQsIp6imentJIsEU5EbRu20MCM0AKAYUmssFQxqi+2KKR+7m 6juRg2gRCDg+yXK9hI/7wwmHjEQnWfWog1M/U5hHItY/LMVUu92/kWC1dXweAafv951R CzWnEhTjBDywvtBp3j1rzZxRWlHlrmg8A1KlJvNpNsvvnwKBRLX2R0dilVm/dUynFBg8 KJTpRaVJq+8hsQe+9aDWJhaaiYlnTHc+/b3gpKDwMbJMlRuUIiXlVJ4wvhFfnBEkt5QT nitm0Q8JpODjEFL0q7sUTwy+448JDRcdMt1VT95bQZA3kpaA5/2wnta4cb0tDgfopjwK OYng== 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=93Hbya7ehcSI4h4ne3u48dXxwwVmGYhXDMHOQV3L/ng=; b=QHHQ7B/ecE3qhofGWsQ91qnnm1Xc3exXh+9flCVvh8exG72ahefOQVihqNPpPe6e9+ VIEIuT5xayNBFbLL7g/L5oaUQGZQ0eluR6ZT08aBSapCrBnRrMyWKebbkympykp0eksF NpVsTNcYc1g9kDpziaz28meQ7gkoDGUhBiSUf5VinWHRamvDiCJxZD6Om6Gj8WnFBxsw bgbzute+t0lGyYiQLP03lBFIM0VpY6B3GC4zbLUUya8ShUOWLxt3MSzYiKoT62R2KX6v Ruhr3QpDjfJm58mx29V0Vo1I1PyE1EOcX8I2dVUFOxJZUp9dMhuFtKnq2vUlgcGAq4Nb UR6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TwRzHuU4; 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 mp39si4446275ejc.182.2021.04.01.10.52.31; Thu, 01 Apr 2021 10:52:31 -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=TwRzHuU4; 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 S234509AbhDARwX (ORCPT + 6 others); Thu, 1 Apr 2021 13:52:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:45218 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236464AbhDARpC (ORCPT ); Thu, 1 Apr 2021 13:45:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D8F0C60FDC; Thu, 1 Apr 2021 17:43:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617298990; bh=Fm0cejd2vCxIhfGEwUI4LawYQxbjdzYkPvBX6SYU5/o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TwRzHuU4gFy+/Dwo/SEiEVwLncIb8bom0zF0vMxvLXxM0/ez5VwC46Ue0bWLgLLAE Qz/ezPBa9CXUnKopxtlXb5QD8kJW0aILKrXWobAWZdjCIigQlxSmz/uQfbZ1S/Bx9i kT+czKiR2MN6k+don4JuZvWEnw3qV17ydxoh6rdQz9PSbpv2UnURCihCiG3fUV2WSn Y62OS7VK6/J9HkcbwP8XHJlOiXvBm3jBLwCPzj1R1SD/8P0b+XPubWORfZtl9+C/jW y5QCGnhAbRgl45CInZrBQbUyVKh7vQvBfAA3CFLCWzamY2nS8BoAnOv1uc79QEaaG2 EfEyuStuMAfvQ== From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring Cc: devicetree@vger.kernel.org, Jonathan Cameron Subject: [PATCH 2/6] dt-bindings:iio:accel:bosch, bma220 device tree binding documentation Date: Thu, 1 Apr 2021 18:41:08 +0100 Message-Id: <20210401174112.320497-3-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 Linux driver currently relies on the driver.name to match to the compatible, but that doesn't mean it isn't a good idea to document it. Only real complexity is the 3 separate power supplies. Signed-off-by: Jonathan Cameron --- .../bindings/iio/accel/bosch,bma220.yaml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) -- 2.31.1 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/accel/bosch,bma220.yaml b/Documentation/devicetree/bindings/iio/accel/bosch,bma220.yaml new file mode 100644 index 000000000000..942b23ad0712 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/accel/bosch,bma220.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/accel/bosch,bma220.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Bosch BMA220 Trixial Acceleration Sensor + +maintainers: + - Jonathan Cameron + +properties: + compatible: + enum: + - bosch,bma220 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + spi-max-frequency: true + + vdda-supply: true + vddd-supply: true + vddio-supply: true + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + spi0 { + #address-cells = <1>; + #size-cells = <0>; + + accelerometer@0 { + compatible = "bosch,bma220"; + reg = <0>; + spi-max-frequency = <2500000>; + interrupt-parent = <&gpio0>; + interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; + }; + }; +... From patchwork Thu Apr 1 17:41:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 413645 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp773453jai; Thu, 1 Apr 2021 10:52:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycvLYUq5871j6kuZYIuYy4OLl3ENjCzBMqPRsy0DYmYJLy6DFyGq/6xvLDsZNbD18GxzYT X-Received: by 2002:a05:6402:1d33:: with SMTP id dh19mr11167149edb.362.1617299554846; Thu, 01 Apr 2021 10:52:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617299554; cv=none; d=google.com; s=arc-20160816; b=aE2pijVON1YL0hokPSWCAjHlpRWVxFHzhrLDj8LfuUDCNkhlDfTePaSHvo/NkbG5kf EEtORVJ7xAC2HmvbNK3ViUeUODx70urPnvPm2WsPXC8B+KQTYmWPhgXsaPgHtzUBG0hL mz0FPnBdySnabNw5N8oMi7QyZTwgJ1iAJF6gbRJKmwbYXv/OzOmzI+mOKdJuFbFI5bvB 7YcLPKI9i01I8o4zF18jmbBctKXg7IMk4nKTf0fPDTGBp6RxDpx2fT1gGuYWFnf7dAvi 28WgpjH6OuWkL8oONKJW9aYispeAfjUp9KUlzohuTjyF7TR4COiY5Px7hN5Ke/1Cj0qu ltHg== 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=5Bd7df6CEDRobFSP3WYRhamp4gNWwLFaIO9L9ETmgOk=; b=0jyuTjOmxwayOk6QpK3GDeZWnC64voTJnIZUYSxXLxTbWJIVafK9pD02jH0Sj6dUwh ws/2lOlhTCT/ekfLQXIO2TFWQAeJAYaiu0xfv/UX5HLNiGcVne5R3RJmDJkTOAlOaSNc sLkaeVZGlfSFyPUKFcc6LnEI01woIFgLm87uibDVp4pjh8TnRE5CSfTE1F8ITOfD9T3m oKf0Qa2Ve9FNTmTMPlOKRtWR6R435Qn9YvqEiilNPMuuaMKT1tvYMs4d4pnj/woDA+KM NSERGLS9w4oKQ9FAP3jAtqBxeKL6a5Qfxs5V1HIphk3cT5tIv/TRjEkemEdwyN7ZhLYR fZEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qAI8jPaT; 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 mp39si4446275ejc.182.2021.04.01.10.52.34; Thu, 01 Apr 2021 10:52:34 -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=qAI8jPaT; 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 S234839AbhDARw1 (ORCPT + 6 others); Thu, 1 Apr 2021 13:52:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:45216 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236465AbhDARpC (ORCPT ); Thu, 1 Apr 2021 13:45:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5480261139; Thu, 1 Apr 2021 17:43:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617298993; bh=8hYXBEQLia1l5VDqkRWPplK6G18Gnbyqzd6es6m0EoY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qAI8jPaTcz8ZbPjAgRFisNU676PrFeo5j0nrv/4Pcv6PB7ZtQSUQMUM21ZYOFIaPe 3+rlt3DkjHWmvBrtMPXCsOCKKzoHEITTxG4e13GQ+1QBQ/opJH1HJNYgLLO/DG23Et JXb0wR8OkrlKDLxiomd81FBuXZ+uoma1+8SWnezpWdVLs7ZTKC1Tiv/f3jAe9nh7e1 BYgwTZf7vIKsPnanyws9hXNMwPlcnVkEL6TpeMyJY85jwB6K0gFe7n3GLx7GVO+XJc 20j3qV6wbLueBxcwWi1jwIbM+slBLu2JyL3qdDWU8ozMtn0jSVOo7KjpWNGrrtTxPq s8POxzkL5VYDw== From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring Cc: devicetree@vger.kernel.org, Jonathan Cameron , Joachim Eastwood Subject: [PATCH 3/6] dt-bindings:iio:accel:fsl,mma7455 binding doc Date: Thu, 1 Apr 2021 18:41:09 +0100 Message-Id: <20210401174112.320497-4-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 Binding documentation for this driver was missing. Note that the binding and some in tree dts files specifiy interrupts etc but the driver is fairly simple and does not yet make use of them. Listed both Joachim and myself as maintainers for this binding on basis it's Joachim's driver but I don't want to volunteer Joachim too strongly to look after this doc. Signed-off-by: Jonathan Cameron Cc: Joachim Eastwood --- .../bindings/iio/accel/fsl,mma7455.yaml | 82 +++++++++++++++++++ 1 file changed, 82 insertions(+) -- 2.31.1 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/accel/fsl,mma7455.yaml b/Documentation/devicetree/bindings/iio/accel/fsl,mma7455.yaml new file mode 100644 index 000000000000..7c8f8bdc2333 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/accel/fsl,mma7455.yaml @@ -0,0 +1,82 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/accel/fsl,mma7455.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale MMA7455 and MMA7456 three axis accelerometers + +maintainers: + - Joachim Eastwood + - Jonathan Cameron + +description: + Devices support both SPI and I2C interfaces. + +properties: + compatible: + enum: + - fsl,mma7455 + - fsl,mma7456 + reg: + maxItems: 1 + + avdd-supply: true + vddio-supply: true + + interrupts: + minItems: 1 + maxItems: 2 + + interrupt-names: + description: + Data ready is only available on INT1, but events can use either or + both pins. If not specified, first element assumed to correspond + to INT1 and second (where present) to INT2. + minItems: 1 + maxItems: 2 + items: + enum: + - "INT1" + - "INT2" + + spi-max-frequency: true + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + # include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + accelerometer@18 { + compatible = "fsl,mma7455"; + reg = <0x18>; + vddio-supply = <&iovdd>; + avdd-supply = <&avdd>; + interrupts = <57 IRQ_TYPE_EDGE_FALLING>, <58 IRQ_TYPE_EDGE_FALLING>; + interrupt-names = "INT2", "INT1"; + }; + }; + - | + # include + spi { + #address-cells = <1>; + #size-cells = <0>; + accelerometer@0 { + compatible = "fsl,mma7456"; + reg = <0>; + spi-max-frequency = <10000000>; + vddio-supply = <&iovdd>; + avdd-supply = <&avdd>; + interrupts = <57 IRQ_TYPE_EDGE_FALLING>; + interrupt-names = "INT1"; + }; + }; +... From patchwork Thu Apr 1 17:41:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 413641 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp773382jai; Thu, 1 Apr 2021 10:52:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxonNCVUk6CksBhrtgIgm2XzSIoisOYFWnLY+PrAk37qULukgkDNG/vI0H57jiQf6O1muDz X-Received: by 2002:aa7:c9c8:: with SMTP id i8mr11037815edt.193.1617299550587; Thu, 01 Apr 2021 10:52:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617299550; cv=none; d=google.com; s=arc-20160816; b=Wz3YAReTQL3aH8YT5CJWBnOMrgYLOxoSMDrPmfEaIIMRoov/l6jEj5107EhfihIbOu yZVXG29WV3WV2YAGtNXpqNwiLdzHqAZyOYayLEpmG6/1AfgXwoPVHgBKimsS1rZn9bqH xNOsUguoNiFzgecTqoSpeZEKVxchozKUBXtP8RTizjR7M0wBV4DTjVaYNxTeKjyDd9n+ cX4nvKX5r+I7y47iN/Au2DOG7BmnaW9ziBp1Y767Nn8xPsWhjkc6nCtWSnhzqiowDB2u 8nH6HvICalRJ3XPmg29WJCY2W7t0mzDZR+ulMRQSWzMDiUwAEmBo5F6LASHdGgZlpNkX CITg== 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=ZBp+LLeV3oK8GE68BbCk6lY2Kt67dwqw9cg928gEut4=; b=dNS/LmII2V8Jat+iBuqD47la+kSQi+zt7VDCIvYsDwNiwIbirF/pjOlf4zY90by3xI zufPcZGIYG8AbRJZf3VQuxA8j9JeQxNbZL65oxOV1XbdpnBzpjldAnamOFIn086yJmqm kcJDV71tL9iOGogeIzzRlXJiOWNDmklVePbuclVVQSXkbOeQEJaQ788kLz9OI1kM3tg0 SZbr0PLuK6hYTQV1P3tz2xl08t83HSgX0KBUlwOGNFdgdsyM6/RnrLL0AbxxTp4QfQA6 Mpwxz4SaBlx/K9xslMBHbwVTCIEZVczqOMPuLwyvw6H1NaV82OXAJ48WJTSd7o+34fKr MLXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qhn+jdeD; 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 mp39si4446275ejc.182.2021.04.01.10.52.30; Thu, 01 Apr 2021 10:52:30 -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=qhn+jdeD; 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 S234608AbhDARwR (ORCPT + 6 others); Thu, 1 Apr 2021 13:52:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:45214 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236466AbhDARpC (ORCPT ); Thu, 1 Apr 2021 13:45:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 180D1611ED; Thu, 1 Apr 2021 17:43:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617298995; bh=M8jALQnqCGJzphUULs3bm0t87GVhkS81ocqnfHlOgXQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qhn+jdeD0sPPL/7ZjkICVkP7Q5VMXFnPMeVwS84k3XiSMmhN857lrqMvCYwE84vj3 OUKUWhbJ1sctg+mNayn0tKUIxsjtSd9w6f7BuIR1kN1vpWB1q+x4ClZjju/RSFhncF wVhtVbd543j76zUGeqoyiBgF2ZBOnegtHV96FG/NAsXiGTlBx27Eo7g5SYSMnNI2yA L56R0lMQBEz2KvrrQIufRExj8g3OwBqoF066649Khkvib8oN9pQEnjXG+NI3wHpQfq RDVORfKq46i11Z7QSbK1dMBPHAhho7SGofx7hjOykEqOw7l/98c09gUpCIvqa/llu5 ieCfkFD/dbekQ== From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring Cc: devicetree@vger.kernel.org, Jonathan Cameron Subject: [PATCH 4/6] dt-bindings:trivial-devices: Add memsic, mxc4005/mxc6255/mxc6655 entries Date: Thu, 1 Apr 2021 18:41:10 +0100 Message-Id: <20210401174112.320497-5-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 Simple devices with I2C interface and single interrupt line so entries in trivial devices are sufficient. Signed-off-by: Jonathan Cameron --- Documentation/devicetree/bindings/trivial-devices.yaml | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.31.1 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml index a327130d1faa..c7d49a720afa 100644 --- a/Documentation/devicetree/bindings/trivial-devices.yaml +++ b/Documentation/devicetree/bindings/trivial-devices.yaml @@ -166,8 +166,14 @@ properties: - meas,tsys01 # MEMSIC magnetometer - memsic,mmc35240 + # MEMSIC 3-axis accelerometer + - memsic,mx4005 # MEMSIC 2-axis 8-bit digital accelerometer - memsic,mxc6225 + # MEMSIC 2-axis 8-bit digital accelerometer + - memsic,mxc6255 + # MEMSIC 3-axis accelerometer + - memsic,mxc6655 # Microchip differential I2C ADC, 1 Channel, 18 bit - microchip,mcp3421 # Microchip differential I2C ADC, 2 Channel, 18 bit From patchwork Thu Apr 1 17:41:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 413642 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp773392jai; Thu, 1 Apr 2021 10:52:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfKXX8L4R0fqjUMWip5oYUYdxQ4xcXV7lWMsrn2PJbYkL57z8DwqTT5rT4SPYBZE6uABvp X-Received: by 2002:a17:906:80ca:: with SMTP id a10mr10425785ejx.297.1617299551438; Thu, 01 Apr 2021 10:52:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617299551; cv=none; d=google.com; s=arc-20160816; b=cSfdW36aICk1hZGoSvg0ulEYLRYvF4mu2n2Rcl5hZnql5ZeE6kriqALABs4ow5VKMW nz/Pvbg8p4Ct4d8M+UdEdCpIwghy8nmmeCyMBPa9bKv5jXPYAy2e+Oss4Ti+P/5TnL/q jQ1ksA2KU2dxB5P96UT3+sTi58vidOdtGVfwaDaLrbH2CinCZrZFIxnHZM9RXBYEVT/W x+kMFtAs+41C79hAn3YkGunDZCzAY0S3qrL5BAkWZc7xdqOmE880czrEjeC9S0ZBAMNI +fWCyVhWmDe2bpkvt7GHEmggLzRh5hRTmwW8HnO9wbxfrC8/x1ECjUut0M8/1IxBW62l SwBQ== 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=TCnD2fvV7GPYWRqcpan7hip3kWuip2eOE38kDxWE+/g=; b=w3yotIi4RFb9a+KolesTOVya4Nyq45KJQkM631My/n0FTMMrwJQovtxI3crwFVDKAK MxvY+YYVVtJDFmbeSWZu126Qj8FJzEG6pbSw/UghZmPWQk2jyh5KT8R6cxueHloKJIT9 JImW8pJKOikLT2qsE4LCK4cjc6IR7BtHsFjxINMWIovKYcHFqC2Qj6kfPUiGtea27qnh szwVnP8c32pbcPCAjLZeR4qaVwg8XC9iEp8JdZat8cSgnaXFGIh/MrmvwcYKDcCqFxt4 Z7X85QlG8aIGOMPOaCP78ePRWzYmmf1LbyQ3w1BEILRObEF5k4ac7kut5kebHOPKgQq4 xhuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="tj0UD5/h"; 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 mp39si4446275ejc.182.2021.04.01.10.52.31; Thu, 01 Apr 2021 10:52:31 -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="tj0UD5/h"; 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 S234780AbhDARwT (ORCPT + 6 others); Thu, 1 Apr 2021 13:52:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:45222 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236467AbhDARpC (ORCPT ); Thu, 1 Apr 2021 13:45:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 760C061369; Thu, 1 Apr 2021 17:43:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617298998; bh=CMa/KbEmOuK4qKikXAWIG/TGer29caM46pGWKN9rWO4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tj0UD5/hbO1I8u4q+WSs4XUY33eAKSL9sij1MpoLUK8RFI8qIt5/uC1qmwFnUNBYB Vsfu1UGniXYDj5Wg4/aFfME+kCmq+8fUoSFFaK8YsbqvwdZYslo6R18G9XkNd+hZlQ crxmW6vg0l+yHayurw4yBDzHvqhMJq/7Olqw4YlH4jGksKw2AZrpR6jyFCu0qh57Vi rLnNEiBsi8aKjFmui4D5oqqHsT2q6wHWXLwMwtTsH4XYXIvW3WZwS0qkTJd9vB8YTX QmML+6V6lxSuz/ViNbFSzei9FyMzwo2/opgZq6ICJcfxv47wvU+0td1XryGNtLAk9c jODH9z40Jajfg== From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring Cc: devicetree@vger.kernel.org, Jonathan Cameron Subject: [PATCH 5/6] dt-bindings:trivial-devices: Add sensortek, stk8312 and sensortek, s8ba50 Date: Thu, 1 Apr 2021 18:41:11 +0100 Message-Id: <20210401174112.320497-6-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 Two simple devices. The stk8ba50 datasheet could be found via google, but I only have the driver for the 8312. Given they both seem to be 3 axis devices with a single interrupt line, add them to trivial-devices.yaml Signed-off-by: Jonathan Cameron --- Documentation/devicetree/bindings/trivial-devices.yaml | 4 ++++ 1 file changed, 4 insertions(+) -- 2.31.1 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml index c7d49a720afa..92ea6b960e16 100644 --- a/Documentation/devicetree/bindings/trivial-devices.yaml +++ b/Documentation/devicetree/bindings/trivial-devices.yaml @@ -258,6 +258,10 @@ properties: - sensirion,sgpc3 # Sensirion multi-pixel gas sensor with I2C interface - sensirion,sgp30 + # Sensortek 3 axis accelerometer + - sensortek,stk8312 + # Sensortek 3 axis accelerometer + - sensortek,stk8ba50 # SGX Sensortech VZ89X Sensors - sgx,vz89x # Relative Humidity and Temperature Sensors From patchwork Thu Apr 1 17:41:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 413644 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp773418jai; Thu, 1 Apr 2021 10:52:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVoK3IXwPxh1SwFGLz8gtdw2hPYjNIP32Xmh++VkYh6F/vvx7JmzKIRk8hz+mGA6FDRS1C X-Received: by 2002:a17:906:4b14:: with SMTP id y20mr10066289eju.26.1617299552804; Thu, 01 Apr 2021 10:52:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617299552; cv=none; d=google.com; s=arc-20160816; b=L+Z55eNhOGWYEy3Fd+doZqLgSxGw9MTylFRFbd+lpy+7/JAhd1mHJrE588zrLwhoLF KWb/moTaiRaqSUV3oOZ6UAUZdBFh5+wJSnPisMQPkrijewbSvbWf/PuITXAhAtGww864 EeS4lIseTu06OHvVu2P7WzG8TUEBJiBnmgVYH5TCiohoD0vWi+0CCZKq6Xe6cGPSuwhM Qg+n6fcki8gMAMGuCGOwURRDGo3D8lPzpO+K8bFMSo4onLwqH5tmc3jGNRczLlXA2XRC 4pwpUIPNx8sUBF48YYMh8oicOKt1gdsnJR5SUpOl73umfQusfuvpgdpo51dZdyU4YTRF GUkA== 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=noWelmPfjnu9Keg8dwED93kag7levDtx3XlebIsBZRg=; b=hud9tFE91qIyfEinOqlCWp/fsSEJpS2JAGdkCcjaPwDwhzzvMwanWP4xcvnqogRD59 MpHa7ezDWM14dI6Wy8Arztud4hWNsLYzIZdl8kMvPDgC9RoN6608N89G9tz2GBqEHeZJ uOk3GvwViOgvUbqJFhHFWTPCNGLOEogYmDw//BkBbhuRupAefhBXOqJ28oWkzvZj8pUO 8x/ol320JKwN5ZxEzxBzsIoF5DmDHxv77Ig03jU6V2eGIGXJcXuO773HyDwgGb+mfi96 9Oy2YBusSWQY2v9fDgs9WYKuxgqcacZyC73nmF7k9ZzlInVVD0ISWUyU2ZG6PIgyj8/S oewA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n7DEEBdo; 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 mp39si4446275ejc.182.2021.04.01.10.52.32; Thu, 01 Apr 2021 10:52:32 -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=n7DEEBdo; 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 S234448AbhDARwZ (ORCPT + 6 others); Thu, 1 Apr 2021 13:52:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:45228 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236468AbhDARpC (ORCPT ); Thu, 1 Apr 2021 13:45:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 00FB9613BE; Thu, 1 Apr 2021 17:43:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617299000; bh=DYBylFCzwf/mC1qtfHCHRZAYGu4r3hcX9pYrM/Et+T0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n7DEEBdoZVB6pQDH/QEAOLAVGoQkgGkFICaNFMo7ECIFLilAMUhlJkVJ57U0+29Dm QfCfWm8JJhdYjPSeRF3SOWbDZhOSC5ziZTCsWZGJbXZpsvZMRZHr8E0vEBhMOFGNwN JdtVHqL4n14SFhhgAAS0Yas32UmDgFrUrTNl1g7C/JOcCc+qpI+01rYUs6gGRIQi32 Q9uMn9y7g10BJkfX9e6WGb6iHoi33bYGDZV4P+DpB7hLct70jOK5kXMtmutYkYK/Lx cMThOAmPM8R4vDhc/EtEDC269WKApNW1LfyWKIADvojaLMg564ghu3NKGIWURi5GCT WANmobMB6aEAQ== From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring Cc: devicetree@vger.kernel.org, Jonathan Cameron , Michael Hennerich Subject: [PATCH 6/6] dt-bindings:iio:adc:adi,ad7298 document bindings Date: Thu, 1 Apr 2021 18:41:12 +0100 Message-Id: <20210401174112.320497-7-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 The device has a tsens-busy pin, but it's both fiddly and currently ignored by the Linux driver. Given it's not clear whether the binding should be an interrupt, or a GPIO I have left that out for now. Signed-off-by: Jonathan Cameron Cc: Michael Hennerich --- .../bindings/iio/adc/adi,ad7298.yaml | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) -- 2.31.1 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7298.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7298.yaml new file mode 100644 index 000000000000..ca414bb396c5 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7298.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright 2019 Analog Devices Inc. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/adi,ad7298.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices AD7298 ADC + +maintainers: + - Michael Hennerich + +description: | + Bindings for the Analog Devices AD7298 ADC device. Datasheet can be + found here: + https://www.analog.com/en/products/ad7298.html + +properties: + compatible: + const: adi,ad7298 + + reg: + maxItems: 1 + + vref-supply: true + vdd-supply: true + spi-max-frequency: true + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + adc@0 { + compatible = "adi,ad7298"; + reg = <0>; + spi-max-frequency = <5000000>; + vref-supply = <&adc_vref>; + }; + }; +...