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"; + }; + }; +...