From patchwork Sat Oct 31 13:40:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 320062 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp2268310ilc; Sat, 31 Oct 2020 06:43:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzR5T+MQK9IWKoVcwnIoptzaQ8Nk0rs56w/xyGCzxCl3yLyb0xTBIM0tLWXrSqdIWGWJ96b X-Received: by 2002:a17:906:2895:: with SMTP id o21mr7547564ejd.332.1604151834580; Sat, 31 Oct 2020 06:43:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604151834; cv=none; d=google.com; s=arc-20160816; b=hIZukZ7gw4D98ksZOjbHymbnG/RWkGhfe5NT7rn4Bt8k8ix9GTBY4nNeSS/KO8CxyA m6h3l41oxqRsaIS6gYpQrOJ+4Sb9d8dg//LnD9X9KD6ufa0oJwx4fyW5x8UE5yOwuGsV P5e1z3SX7BirJ6H8Fe1mZDhTVFxK0qyLtNRQFN9E2/jq67bLmkXan9Zddzn/zn3wpWEp yn/y7ZTxdAHuX9LRimV3BpjAMZrPxCbraRVnSVT8Wu1bcVQew43xMBBa02ha0mB/eWeZ EMOy/sJmdI8w3tYT/AZgoIibWUZUl+ho5/FrOPDcgK+iN6Bf+GScqRYnM6HzlBKPbWmB t/9g== 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=Qg5JQ/EWiMkR6LqGqKqfQINbvEneOx9+LjbMbrNuvIU=; b=bwqa7x1x+kCyGrQb+cTYVmmZz4pwmHBHhIK63+2ZOeP4aDjhmXbYKo9REG0T9JcypH 2SQNKr7S74fSmpuVf2KJQP/Dt1CMPXxh4l+s2CMuEUimpApuazkM1e8KgAaQBg4FJOLt SbMxdw/JmznNFZlOnvd7EwSDeYyFjB2UtmYjp15tYSTTuXz8Xr3Y952nKpr/XkJ9KLhG +Q1LVwFcnmq89NQLQirkeqnVuSlvoEEO60dgrO5a3n+XoQg33J+yGeHSVSYHAFba+Ygf OSgfJMDedckDoLp26hLOJt5CZaP23sqskCDrbKQ+FdGYT4N3ULghUedjFbYnTRz2EFpA APVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=l2pZOTO+; 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 h25si6243872ejc.209.2020.10.31.06.43.54; Sat, 31 Oct 2020 06:43:54 -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=default header.b=l2pZOTO+; 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 S1727569AbgJaNnn (ORCPT + 6 others); Sat, 31 Oct 2020 09:43:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:42568 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727543AbgJaNnn (ORCPT ); Sat, 31 Oct 2020 09:43:43 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 22F202074F; Sat, 31 Oct 2020 13:43:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151822; bh=XhYT2AOhH58Can+mXfLz18ftGCjw/6Y9cju2fRNLQMU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=l2pZOTO+BrAn21gToa1EQQfWIEaqRaqIzLgRRRtxkVdy0L2YDFSy28RgElqEIg0vb Kc97yRA5HtFZRYEDpJu2OnjJ6458vYE71VqXUi1fcSIfv+K7VbIbey4kBD5jSPgGfq e50v0hYzS9xKB0f6fNlqeNg0qYSlvyIfR1dUKNVc= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Rob Herring , Matt Ranostay Subject: [PATCH v2 01/29] dt-bindings:iio:humidity:hdc100x Drop separate doc + add to trivial-devices Date: Sat, 31 Oct 2020 13:40:42 +0000 Message-Id: <20201031134110.724233-2-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031134110.724233-1-jic23@kernel.org> References: <20201031134110.724233-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Very simple binding for this i2c device with no properties beyond reg and compatible. Hence doesn't need it's own document. Signed-off-by: Jonathan Cameron Reviewed-by: Rob Herring Acked-by: Matt Ranostay --- .../bindings/iio/humidity/hdc100x.txt | 17 ----------------- .../devicetree/bindings/trivial-devices.yaml | 10 ++++++++++ 2 files changed, 10 insertions(+), 17 deletions(-) -- 2.28.0 diff --git a/Documentation/devicetree/bindings/iio/humidity/hdc100x.txt b/Documentation/devicetree/bindings/iio/humidity/hdc100x.txt deleted file mode 100644 index c52333bdfd19..000000000000 --- a/Documentation/devicetree/bindings/iio/humidity/hdc100x.txt +++ /dev/null @@ -1,17 +0,0 @@ -* HDC100x temperature + humidity sensors - -Required properties: - - compatible: Should contain one of the following: - ti,hdc1000 - ti,hdc1008 - ti,hdc1010 - ti,hdc1050 - ti,hdc1080 - - reg: i2c address of the sensor - -Example: - -hdc100x@40 { - compatible = "ti,hdc1000"; - reg = <0x40>; -}; diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml index ab623ba930d5..d37f757e6bd1 100644 --- a/Documentation/devicetree/bindings/trivial-devices.yaml +++ b/Documentation/devicetree/bindings/trivial-devices.yaml @@ -356,6 +356,16 @@ properties: - ti,ads7830 # Temperature Monitoring and Fan Control - ti,amc6821 + # Temperature and humidity sensor with i2c interface + - ti,hdc1000 + # Temperature and humidity sensor with i2c interface + - ti,hdc1008 + # Temperature and humidity sensor with i2c interface + - ti,hdc1010 + # Temperature and humidity sensor with i2c interface + - ti,hdc1050 + # Temperature and humidity sensor with i2c interface + - ti,hdc1080 # Temperature sensor with 2-wire interface - ti,lm73 # Temperature sensor with integrated fan control From patchwork Sat Oct 31 13:40:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 314676 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4D946C388F9 for ; Sat, 31 Oct 2020 13:43:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1700F20791 for ; Sat, 31 Oct 2020 13:43:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151828; bh=zLBM80q81oAj3l/N7gt12bUAvzlrHfrBh4PcWowdvCE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=k5IKxZp579GZCbrLIg2bRgmjbVRy0llUyR6rZYyzXqGsE2phcd1VmTjFGD1IHn5Nq /gmKcNIeeriKCmRRNhzUj2XBtZTmpIG1uucTlTpgsdtHqUmXpbkLZQyPsTBgUdarz2 7v4Remu2Ayb5Hfj5NoC8e9zWEi+gn9V/iZ8W1lxo= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727623AbgJaNnr (ORCPT ); Sat, 31 Oct 2020 09:43:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:42588 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727543AbgJaNno (ORCPT ); Sat, 31 Oct 2020 09:43:44 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B4D9720756; Sat, 31 Oct 2020 13:43:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151823; bh=zLBM80q81oAj3l/N7gt12bUAvzlrHfrBh4PcWowdvCE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2TWsF9B1zP0BiqW721sHmfytT+5t4WD0mk/o9inaYs+9RCtLB4St40Cm3v5aQbRxh a7XNEBzvb8xE22q2kE2N1z+VKefOuXDMGhz4elSnHgMu05bJnXFL12grm5oBT0+8lm QA93xEv2vMgGlZCx1clYCnoxe67/eQYZTqEfpIZM= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Rob Herring Subject: [PATCH v2 02/29] dt-bindings:iio:humidity:htu21 Drop separate doc + add to trivial-devices Date: Sat, 31 Oct 2020 13:40:43 +0000 Message-Id: <20201031134110.724233-3-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031134110.724233-1-jic23@kernel.org> References: <20201031134110.724233-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Very simple binding for this i2c device with no properties beyond reg and compatible. Hence doesn't need it's own document. Signed-off-by: Jonathan Cameron Reviewed-by: Rob Herring --- .../devicetree/bindings/iio/humidity/htu21.txt | 13 ------------- .../devicetree/bindings/trivial-devices.yaml | 4 ++++ 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/humidity/htu21.txt b/Documentation/devicetree/bindings/iio/humidity/htu21.txt deleted file mode 100644 index 97d79636f7ae..000000000000 --- a/Documentation/devicetree/bindings/iio/humidity/htu21.txt +++ /dev/null @@ -1,13 +0,0 @@ -*HTU21 - Measurement-Specialties htu21 temperature & humidity sensor and humidity part of MS8607 sensor - -Required properties: - - - compatible: should be "meas,htu21" or "meas,ms8607-humidity" - - reg: I2C address of the sensor - -Example: - -htu21@40 { - compatible = "meas,htu21"; - reg = <0x40>; -}; diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml index d37f757e6bd1..43febb3057b6 100644 --- a/Documentation/devicetree/bindings/trivial-devices.yaml +++ b/Documentation/devicetree/bindings/trivial-devices.yaml @@ -132,6 +132,10 @@ properties: - mcube,mc3230 # MEMSIC 2-axis 8-bit digital accelerometer - memsic,mxc6225 + # Measurement Specialities I2C temperature and humidity sensor + - meas,htu21 + # Measurement Specialities temp and humidity part of ms8607 device + - meas,ms8607-humidity # Microchip differential I2C ADC, 1 Channel, 18 bit - microchip,mcp3421 # Microchip differential I2C ADC, 2 Channel, 18 bit From patchwork Sat Oct 31 13:40:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 320064 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp2268320ilc; Sat, 31 Oct 2020 06:43:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxT2M7CHMz3X7eplygzX99J0nl6xYqt4xTgEtp9K4m+IxeBWrf33y7CV14vum8vJZPvQBj6 X-Received: by 2002:a50:9e69:: with SMTP id z96mr2846339ede.226.1604151835570; Sat, 31 Oct 2020 06:43:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604151835; cv=none; d=google.com; s=arc-20160816; b=Veal9BijXmeCSBfjUx5i/d6rB5XJuuiV1XXmZzzlWafGG2oUZ9bpB1bUtVqH6D7EkA 5glnaGZlX56kTXylKV+lxETL4eBi9ZMDgwKgKCK5CgI7VThatClWFADl/e2b+tUB6z1i DgN6z/3RMQWKWYiXB6e6EXf8dKyKAbQRLzezcvQntBxUYJZpIwQff1Kse8LhlXoRNxnC YWYAIemfwH+8/zZmRQeKpevxZYpFmSlcogRwWQV+EiseV/6pme9E9oiQmxKTc+jDIN1S SPptqkGaDjzEjqUhI97mr3PkEnO01c0hqF/kucELCGWs4rvH6jycBARHdKSL29QOtK0M jWsA== 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=tKMyufLdzAnJPkSMYUkiwVPAEHt16v3l8UOfqTcfZms=; b=Il7YgPYQ98ZV7htsZh/4iLc2szvRedcP/vXIlEa+2+prk5tCHWcIVvp6OP2btEwVTu Aect9+6EDItE4FSi3dQLDV8KM1aFYJHVv8avfd2gdlV9Rq1jEwOfuCpS/jSkeNeK5Sbo TdbUtS/ctF8TKHshIWa++UbePKoEJHbSMBBmXVvXYzN35Gi7ifXfvp+QhCLMBijoiDfd ZdrJ4ZSJZQW+EHivyljcttkr/f7znIF7GoptvfXHJs2TP+THqyGfmH2Bn34kteQel9hT z3S4tcapZgG98zCKCEQM0yc6xdNJagowL6wp4tQ9s1poM1LcaU87YQUsLoIRtCJiBrlx gU1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Sl2vrPWo; 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 h25si6243872ejc.209.2020.10.31.06.43.55; Sat, 31 Oct 2020 06:43:55 -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=default header.b=Sl2vrPWo; 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 S1727629AbgJaNnr (ORCPT + 6 others); Sat, 31 Oct 2020 09:43:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:42696 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727589AbgJaNnq (ORCPT ); Sat, 31 Oct 2020 09:43:46 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2B58C20853; Sat, 31 Oct 2020 13:43:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151825; bh=+uTLtslO2QQtK4j3mW/JF0QgRnEKn9Jp/R0CuC672K4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Sl2vrPWoaD4RA8lpf5U0cOZINgcCGWkQVfaVCyTOKyHorvMpAK893KCf99a7k5wWQ 1P6np/50rQJLz9ekfP7UxX62baQyFNi9C+kL3WgnynT5DfU/1wg76AEEQ2DjGaEQz2 xyRFbyoLlq92vxOnfnzEAA56+9NTIcCoq5wY6zHw= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Rob Herring , Lorenzo Bianconi Subject: [PATCH v2 03/29] dt-bindings:iio:humidity:st, hts221 yaml conversion. Date: Sat, 31 Oct 2020 13:40:44 +0000 Message-Id: <20201031134110.724233-4-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031134110.724233-1-jic23@kernel.org> References: <20201031134110.724233-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Straight forward conversion of this temperature and pressure sensor binding. Signed-off-by: Jonathan Cameron Reviewed-by: Rob Herring Cc: Lorenzo Bianconi --- .../bindings/iio/humidity/hts221.txt | 30 ----------- .../bindings/iio/humidity/st,hts221.yaml | 52 +++++++++++++++++++ 2 files changed, 52 insertions(+), 30 deletions(-) -- 2.28.0 diff --git a/Documentation/devicetree/bindings/iio/humidity/hts221.txt b/Documentation/devicetree/bindings/iio/humidity/hts221.txt deleted file mode 100644 index 84d029372260..000000000000 --- a/Documentation/devicetree/bindings/iio/humidity/hts221.txt +++ /dev/null @@ -1,30 +0,0 @@ -* HTS221 STM humidity + temperature sensor - -Required properties: -- compatible: should be "st,hts221" -- reg: i2c address of the sensor / spi cs line - -Optional properties: -- drive-open-drain: the interrupt/data ready line will be configured - as open drain, which is useful if several sensors share the same - interrupt line. This is a boolean property. - If the requested interrupt is configured as IRQ_TYPE_LEVEL_HIGH or - IRQ_TYPE_EDGE_RISING a pull-down resistor is needed to drive the line - when it is not active, whereas a pull-up one is needed when interrupt - line is configured as IRQ_TYPE_LEVEL_LOW or IRQ_TYPE_EDGE_FALLING. - Refer to pinctrl/pinctrl-bindings.txt for the property description. -- interrupts: interrupt mapping for IRQ. It should be configured with - flags IRQ_TYPE_LEVEL_HIGH, IRQ_TYPE_EDGE_RISING, IRQ_TYPE_LEVEL_LOW or - IRQ_TYPE_EDGE_FALLING. - - Refer to interrupt-controller/interrupts.txt for generic interrupt - client node bindings. - -Example: - -hts221@5f { - compatible = "st,hts221"; - reg = <0x5f>; - interrupt-parent = <&gpio0>; - interrupts = <0 IRQ_TYPE_EDGE_RISING>; -}; diff --git a/Documentation/devicetree/bindings/iio/humidity/st,hts221.yaml b/Documentation/devicetree/bindings/iio/humidity/st,hts221.yaml new file mode 100644 index 000000000000..396451c26728 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/humidity/st,hts221.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/humidity/st,hts221.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: HTS221 STM humidity + temperature sensor + +maintainers: + - Lorenzo Bianconi + +description: | + Humidity and temperature sensor with I2C interface and data ready + interrupt. + +properties: + compatible: + const: st,hts221 + + reg: + maxItems: 1 + + drive-open-drain: + type: boolean + description: + The interrupt/data ready line will be configured as open drain, which + is useful if several sensors share the same interrupt line. + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + hts221@5f { + compatible = "st,hts221"; + reg = <0x5f>; + interrupt-parent = <&gpio0>; + interrupts = <0 IRQ_TYPE_EDGE_RISING>; + }; + }; +... From patchwork Sat Oct 31 13:40:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 314675 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 37735C5517A for ; Sat, 31 Oct 2020 13:43:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F094C2087E for ; Sat, 31 Oct 2020 13:43:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151830; bh=yeq1jZ94chq5UCF3Y6Eab8tO+mAbJGLYov/bxPRYBq0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=B55OvSL2fMJEpKaQZB3ey9T4NLiXPm43vt/lrF8PBIC9EjrM+8phvXC78UvMuhLe8 RMnYD40PJwQ6qkRc6QCG3xT+kActuUa6i7GQgu8kQWTcc5E3u4Y8pQWsgfwB01vxJy JFM67qcJU/A+VZotLfpOvyogDrmFEbPog8k4/s9g= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727645AbgJaNns (ORCPT ); Sat, 31 Oct 2020 09:43:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:42720 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727591AbgJaNnr (ORCPT ); Sat, 31 Oct 2020 09:43:47 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B95382071A; Sat, 31 Oct 2020 13:43:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151826; bh=yeq1jZ94chq5UCF3Y6Eab8tO+mAbJGLYov/bxPRYBq0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LsRRCw9ibSo5Rb9iez092yVwrcsD6Bef2jPfuB7XOGxOSzBhniK+sM9Hi4BldPCJ8 Nl/pjYcc9fsYKfs+dArep+4qPOnNYifzS7Tgm20OGdS5RUhAhM4BeqBWeFW/Em2Vrq Tcjb77w/7eqrElNVKIr3uq+oUrp7Z6ieFB86LSzM= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Rob Herring , Harald Geyer Subject: [PATCH v2 04/29] dt-bindings:iio:humidity:dht11 yaml conversion Date: Sat, 31 Oct 2020 13:40:45 +0000 Message-Id: <20201031134110.724233-5-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031134110.724233-1-jic23@kernel.org> References: <20201031134110.724233-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron The conversion is straight forward, but leaves an open question. The compatible for this device has never had a vendor. Harald Geyer has identified as probably being made by aosong, but we have no current match to any of their more specific part numbers. As such, this is noted in the file but the compatible doesn't include the vendor prefix. Signed-off-by: Jonathan Cameron Reviewed-by: Rob Herring Acked-By: Harald Geyer --- v2: Added note on aosong as probably manufacturer .../bindings/iio/humidity/dht11.txt | 14 ------- .../bindings/iio/humidity/dht11.yaml | 41 +++++++++++++++++++ 2 files changed, 41 insertions(+), 14 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/humidity/dht11.txt b/Documentation/devicetree/bindings/iio/humidity/dht11.txt deleted file mode 100644 index ecc24c199fd6..000000000000 --- a/Documentation/devicetree/bindings/iio/humidity/dht11.txt +++ /dev/null @@ -1,14 +0,0 @@ -* DHT11 humidity/temperature sensor (and compatibles like DHT22) - -Required properties: - - compatible: Should be "dht11" - - gpios: Should specify the GPIO connected to the sensor's data - line, see "gpios property" in - Documentation/devicetree/bindings/gpio/gpio.txt. - -Example: - -humidity_sensor { - compatible = "dht11"; - gpios = <&gpio0 6 0>; -} diff --git a/Documentation/devicetree/bindings/iio/humidity/dht11.yaml b/Documentation/devicetree/bindings/iio/humidity/dht11.yaml new file mode 100644 index 000000000000..2247481d0203 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/humidity/dht11.yaml @@ -0,0 +1,41 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/humidity/dht11.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: DHT11 humidity + temperature sensor + +maintainers: + - Harald Geyer + +description: | + A simple and low cost module providing a non standard single GPIO based + interface. It is believed the part is made by aosong but don't have + absolute confirmation of this, or what the aosong part number is. + +properties: + compatible: + const: dht11 + + reg: + maxItems: 1 + + gpios: + maxItems: 1 + description: + Single, interrupt capable, GPIO used to communicate with the device. + +required: + - compatible + - gpios + +additionalProperties: false + +examples: + - | + humidity_sensor { + compatible = "dht11"; + gpios = <&gpio0 6 0>; + }; +... From patchwork Sat Oct 31 13:40:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 320066 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp2268332ilc; Sat, 31 Oct 2020 06:43:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxl1Xsd7WtLUrzxZmuyFJe+N3peohhZWUQ7PKmw8Kxod+gBXKorkKOUHmMCrFFxVReGsfYv X-Received: by 2002:a17:906:4b0f:: with SMTP id y15mr6866730eju.198.1604151837310; Sat, 31 Oct 2020 06:43:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604151837; cv=none; d=google.com; s=arc-20160816; b=k81ZZgpq1+6i3CtK7SE5ezLUedCvRxqryHq29eJdzdhR1X293OsydZtEmsIBQU6C+/ ClmsTSlGQfGdWSzs7brzcUZywEWdlRPFjxLF1OGVzNXCTAVsLz3fzq/s7JV2a+dCAO88 ONAmfQrR4OfGy0hoRC3lO+OC2pQMiyJWtSWq6hSNP8VBsrRj/LhtFOWMSVnUtcLSP+Sz cisvHLrts+kAHtaJ9KXySRbcdwxlZOwY8e7acyIoEF8Topb+K9aVT1QoCww8YVPiHp1J TQqEx5avKib9xWJGa7n32fn2c041Z9lHiieRCDj3/8gDZGaNcw7hteij3Adrz/06gqn2 q+6w== 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=mJQtg7AKsISBIsIuivI0Ft0ee3O25GWMvt85eSxMtus=; b=SOV6eBpYzuFR2evtmjMP2PjLNTOkWmoBfh4IFXqpid3b+Wd0bksg8irAh1Rcg1Gzn9 qEpbnFfQrgKbSsImOvmn4meI9Q28wcErKXDaIK/Ht4cDFcEsHGTD1of+ysqn5AiI36iq 9SnowbOR7CAowfBYFBR0xDEweuLygoVq2ZjOySP6QeOgQa8PNSeTQP8xXtVdmIbSfQ6y AhgHUA6h7NIUKo3g+lWHmmKvir0wgReV5QQSN3+jQnVof1WSpcDlBokd9uxCggB1xQJe lSLIHoMCr1OPLZ2gPfwBx27ktSJFJb9Tj0GboC7ciSE1WlRxP4UN4nY6xR+xXj/wxjWZ B9iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="F/QpeewR"; 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 h25si6243872ejc.209.2020.10.31.06.43.57; Sat, 31 Oct 2020 06:43:57 -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=default header.b="F/QpeewR"; 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 S1727647AbgJaNnt (ORCPT + 6 others); Sat, 31 Oct 2020 09:43:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:42740 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727591AbgJaNnt (ORCPT ); Sat, 31 Oct 2020 09:43:49 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 55A0B2087D; Sat, 31 Oct 2020 13:43:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151828; bh=vGgvKV2jKu5MkEGz9QqQyakj6xX5L5ygJ4E/ro/w7ZY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=F/QpeewRDS7/0GSIpXxef1JU1s0ygmw/f6+JqmP2sHAEAEUiOmRCjA2Dg3xbRk7+2 Za+DjkeCbnSPEB4NrE7eN7PZlIWIav7gLCJbim2seZLlBbzRI93zH3AxBnHfuqH6XI 5FoLEOrF2UX0G+gqtNA4Tx0dCT+8z+FlY34d0Uos= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Rob Herring Subject: [PATCH v2 05/29] dt-bindings:iio:pressure:ms5637 Drop separate doc + add to trivial-devices Date: Sat, 31 Oct 2020 13:40:46 +0000 Message-Id: <20201031134110.724233-6-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031134110.724233-1-jic23@kernel.org> References: <20201031134110.724233-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Very simple binding for this i2c device with no properties beyond reg and compatible. Hence doesn't need it's own document. Signed-off-by: Jonathan Cameron Reviewed-by: Rob Herring --- .../devicetree/bindings/iio/pressure/ms5637.txt | 17 ----------------- .../devicetree/bindings/trivial-devices.yaml | 8 ++++++++ 2 files changed, 8 insertions(+), 17 deletions(-) -- 2.28.0 diff --git a/Documentation/devicetree/bindings/iio/pressure/ms5637.txt b/Documentation/devicetree/bindings/iio/pressure/ms5637.txt deleted file mode 100644 index 1f43ffa068ac..000000000000 --- a/Documentation/devicetree/bindings/iio/pressure/ms5637.txt +++ /dev/null @@ -1,17 +0,0 @@ -* MS5637 - Measurement-Specialties MS5637, MS5805, MS5837 and MS8607 pressure & temperature sensor - -Required properties: - - -compatible: should be one of the following - meas,ms5637 - meas,ms5805 - meas,ms5837 - meas,ms8607-temppressure - -reg: I2C address of the sensor - -Example: - -ms5637@76 { - compatible = "meas,ms5637"; - reg = <0x76>; -}; diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml index 43febb3057b6..8d8eadbab473 100644 --- a/Documentation/devicetree/bindings/trivial-devices.yaml +++ b/Documentation/devicetree/bindings/trivial-devices.yaml @@ -134,8 +134,16 @@ properties: - memsic,mxc6225 # Measurement Specialities I2C temperature and humidity sensor - meas,htu21 + # Measurement Specialities I2C pressure and temperature sensor + - meas,ms5637 + # Measurement Specialities I2C pressure and temperature sensor + - meas,ms5805 + # Measurement Specialities I2C pressure and temperature sensor + - meas,ms5837 # Measurement Specialities temp and humidity part of ms8607 device - meas,ms8607-humidity + # Measurement Specialities temp and pressure part of ms8607 device + - meas,ms8607-temppressure # Microchip differential I2C ADC, 1 Channel, 18 bit - microchip,mcp3421 # Microchip differential I2C ADC, 2 Channel, 18 bit From patchwork Sat Oct 31 13:40:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 314674 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C0B0DC5DF9D for ; Sat, 31 Oct 2020 13:43:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8CD57208B6 for ; Sat, 31 Oct 2020 13:43:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151831; bh=Lzwpy655KwgMoitg01lUAGXwywXZQtp3DW/BX0EhV9s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=gUa2Y9tQg0cnVpPyQBZl/YKUtc7+4QqEdD6EJELka8rJS1DLlSVikyB3I2fZciiCq v5/rR8TbGaYtKigl2aMBDh0wK1S4pGqwZyXfqE51/VxHhXgrTEq8rC7hbedaRzhNCM HLJpkXp1N/yt6yJLcWpeg7GsZ+7iNo54G1wUySL0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727665AbgJaNnu (ORCPT ); Sat, 31 Oct 2020 09:43:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:42766 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727591AbgJaNnu (ORCPT ); Sat, 31 Oct 2020 09:43:50 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C09D720791; Sat, 31 Oct 2020 13:43:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151829; bh=Lzwpy655KwgMoitg01lUAGXwywXZQtp3DW/BX0EhV9s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OV2hFlQ5Y9p77trf777gn3dSEZCfVvwIfcR4DFi+F+wQ9O0eC7QnmE4odYy0fbFDO qMNqfh63/dZuYwgts3OHO3U2ELw+Oh2u0QhWxYiqO/0hQ+wtSxZAgFmI8cQzwqXg8T 4rISJoebxRHRlWso6sLBK7+qHA0cYWmMlLyGvE0U= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Rob Herring Subject: [PATCH v2 06/29] dt-bindings:iio:pressure:murata, zpa2326 yaml conversion Date: Sat, 31 Oct 2020 13:40:47 +0000 Message-Id: <20201031134110.724233-7-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031134110.724233-1-jic23@kernel.org> References: <20201031134110.724233-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Simple conversion with a few minor tweaks: * I added 1MHz max for spi-max-frequency * I have give myself as the maintainer. This driver was written by Gregor Boirie but I don't have an up to date email address for Gregor. Signed-off-by: Jonathan Cameron Reviewed-by: Rob Herring --- .../bindings/iio/pressure/murata,zpa2326.yaml | 62 +++++++++++++++++++ .../bindings/iio/pressure/zpa2326.txt | 29 --------- 2 files changed, 62 insertions(+), 29 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/pressure/murata,zpa2326.yaml b/Documentation/devicetree/bindings/iio/pressure/murata,zpa2326.yaml new file mode 100644 index 000000000000..d6103be03460 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/pressure/murata,zpa2326.yaml @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/pressure/murata,zpa2326.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Murata ZPA2326 pressure sensor + +maintainers: + - Jonathan Cameron + +description: | + Pressure sensor from Murata with SPI and I2C bus interfaces. + + +properties: + compatible: + const: murata,zpa2326 + + reg: + maxItems: 1 + + vdd-supply: true + vref-supply: true + + interrupts: + maxItems: 1 + + spi-max-frequency: + maximum: 1000000 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pressure@5c { + compatible = "murata,zpa2326"; + reg = <0x5c>; + interrupt-parent = <&gpio>; + interrupts = <12>; + vdd-supply = <&ldo_1v8_gnss>; + }; + }; + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + pressure@0 { + compatible = "murata,zpa2326"; + reg = <0>; + spi-max-frequency = <500000>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/pressure/zpa2326.txt b/Documentation/devicetree/bindings/iio/pressure/zpa2326.txt deleted file mode 100644 index a36ab3e0c3f7..000000000000 --- a/Documentation/devicetree/bindings/iio/pressure/zpa2326.txt +++ /dev/null @@ -1,29 +0,0 @@ -Murata ZPA2326 pressure sensor - -Pressure sensor from Murata with SPI and I2C bus interfaces. - -Required properties: -- compatible: "murata,zpa2326" -- reg: the I2C address or SPI chip select the device will respond to - -Recommended properties for SPI bus usage: -- spi-max-frequency: maximum SPI bus frequency as documented in - Documentation/devicetree/bindings/spi/spi-bus.txt - -Optional properties: -- vref-supply: an optional regulator that needs to be on to provide VREF - power to the sensor -- vdd-supply: an optional regulator that needs to be on to provide VDD - power to the sensor -- interrupts: interrupt mapping for IRQ as documented in - Documentation/devicetree/bindings/interrupt-controller/interrupts.txt - -Example: - -zpa2326@5c { - compatible = "murata,zpa2326"; - reg = <0x5c>; - interrupt-parent = <&gpio>; - interrupts = <12>; - vdd-supply = <&ldo_1v8_gnss>; -}; From patchwork Sat Oct 31 13:40:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 320068 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp2268343ilc; Sat, 31 Oct 2020 06:43:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2dNzDVSLgc6GHrTeYgEulzArFHOeP5YmL9IE4iy5Xz+7ZsrKPaFovyoz7IbR1LmFq855O X-Received: by 2002:a05:6402:c8d:: with SMTP id cm13mr5746738edb.340.1604151838455; Sat, 31 Oct 2020 06:43:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604151838; cv=none; d=google.com; s=arc-20160816; b=xv/r6wGL3SrGhcShP3NbJud25ShmFi4bErIHI4I+yklXR3K3opoiLdL5lTkx2TRs/w 7nEB03qJWEbgfKjnweMJUOiva8pISC2Z6vJqT32HpKrWbHe1c/GwiL6aqs8a39b3XqCr piFXlgXj5G0T3K0PaIHug+B+jRo8YICUY4GzxvLTJdE62YTKFC6rQbL3DTLJoTk9zFzF L/5IXP2meJekmyGffzslGikHDsrVqhfyFNFLxQii1MP4gq5MbCMya63FC9Q91HvPTwhU kXSsd5wZizEhywLL7rdIpRAjcPOswCPw96GKdH0VJJHuJ3GcLSD5pQFCIBnErAyVuguW 6YKg== 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=mCZKuvee7NqkXs3gP66d5PIkrqF+9y1PFMZgkekNh4o=; b=wE7CKxE3V/rQzB2v8E02o9QI9qPiD6gbCd5m/CFjfGba//cIch0P3chFomeVB3aBvr 00CAYNHT1fyDWEHGwH8u5gc+UwyEMsdTBXSbIieWX0KMSGt5EMa5g8lqexhc+thL2z2Q /VQBNd7kr6OOyWj48bOkIvLFFz2FQqdgo1FnEdhDO9uPPidqCjK6xPO5AFMEOK1jB3gW UgxXoqBsGBBlNqCDzeX75rSTndnOkyAyri5c3aUToAcpVojW5DZpQEBb33XNlwrXb6Bg QF8e166Nl0fAQoUiZH1sCiLTZc5MaK1JMMdkZm6SwCFxHPYgBvTFEh8ETgc+TMdG9H4E muWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GobSoA8M; 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 h25si6243872ejc.209.2020.10.31.06.43.58; Sat, 31 Oct 2020 06:43:58 -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=default header.b=GobSoA8M; 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 S1727591AbgJaNnw (ORCPT + 6 others); Sat, 31 Oct 2020 09:43:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:42802 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727589AbgJaNnw (ORCPT ); Sat, 31 Oct 2020 09:43:52 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3F83D2087E; Sat, 31 Oct 2020 13:43:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151831; bh=WnaIZ8/8M/vrdA7BhuoUczOSHHHuTx+iPZJLssvNnsk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GobSoA8M+fGBM0D7fFtlHNJFcXSbQnyUHE4f6UVPpUzTD6r/6ogS3os6hxoYZyV5B RbV6ZGh5B2YfDYPAwnR0GoHIFPkzneum35/qC5EhxFWKUT4jUhrTFvXY6niR5MGexY 6zdjJe6cLqcHZmQ/2MFIYaB14fyT0A5rrtdd8xjY= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Rob Herring , Tomasz Duszynski Subject: [PATCH v2 07/29] dt-bindings:iio:pressure:meas, ms5611 yaml conversion. Date: Sat, 31 Oct 2020 13:40:48 +0000 Message-Id: <20201031134110.724233-8-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031134110.724233-1-jic23@kernel.org> References: <20201031134110.724233-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron One addition here was to put in a 20MHz maximum for the SPI bus as specified in the datasheets of both support parts. Signed-off-by: Jonathan Cameron Reviewed-by: Rob Herring Cc: Tomasz Duszynski --- .../bindings/iio/pressure/meas,ms5611.yaml | 57 +++++++++++++++++++ .../bindings/iio/pressure/ms5611.txt | 19 ------- 2 files changed, 57 insertions(+), 19 deletions(-) -- 2.28.0 diff --git a/Documentation/devicetree/bindings/iio/pressure/meas,ms5611.yaml b/Documentation/devicetree/bindings/iio/pressure/meas,ms5611.yaml new file mode 100644 index 000000000000..4f06707450bf --- /dev/null +++ b/Documentation/devicetree/bindings/iio/pressure/meas,ms5611.yaml @@ -0,0 +1,57 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/pressure/meas,ms5611.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Measurement Specialities ms5611 and similar pressure sensors + +maintainers: + - Tomasz Duszynski + +description: | + Pressure sensors from MEAS Switzerland with SPI and I2C bus interfaces. + +properties: + compatible: + enum: + - meas,ms5607 + - meas,ms5611 + + reg: + maxItems: 1 + + vdd-supply: true + + spi-max-frequency: + maximum: 20000000 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pressure@77 { + compatible = "meas,ms5607"; + reg = <0x77>; + vdd-supply = <&ldo_3v3_gnss>; + }; + }; + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + pressure@0 { + compatible = "meas,ms5611"; + reg = <0>; + vdd-supply = <&ldo_3v3_gnss>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/pressure/ms5611.txt b/Documentation/devicetree/bindings/iio/pressure/ms5611.txt deleted file mode 100644 index 17bca866c084..000000000000 --- a/Documentation/devicetree/bindings/iio/pressure/ms5611.txt +++ /dev/null @@ -1,19 +0,0 @@ -MEAS ms5611 family pressure sensors - -Pressure sensors from MEAS Switzerland with SPI and I2C bus interfaces. - -Required properties: -- compatible: "meas,ms5611" or "meas,ms5607" -- reg: the I2C address or SPI chip select the device will respond to - -Optional properties: -- vdd-supply: an optional regulator that needs to be on to provide VDD - power to the sensor. - -Example: - -ms5607@77 { - compatible = "meas,ms5607"; - reg = <0x77>; - vdd-supply = <&ldo_3v3_gnss>; -}; From patchwork Sat Oct 31 13:40:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 314673 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 33734C5517A for ; Sat, 31 Oct 2020 13:43:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F11F620731 for ; Sat, 31 Oct 2020 13:43:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151835; bh=ujB+gNbIBddOmypRoHh+IknbcWeTLN/b+n7eFidMIbk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=2s3miQnluIcmLzEkVKei61IsOTibL/sDmZPZY7w1dAipkydgs1/H7ErZF24QWHlLQ /7/EpAUiX7tn5ArWax9XKXMwbM/H4wj3UN78KqXtfSlg2baoIAalWSF7iqGuhOzhVY kUWxNP6PSibdgYu1zFOsw6pnV6zmDGMCmyNrYiRM= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727671AbgJaNny (ORCPT ); Sat, 31 Oct 2020 09:43:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:42906 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727669AbgJaNnx (ORCPT ); Sat, 31 Oct 2020 09:43:53 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CE4C9208B6; Sat, 31 Oct 2020 13:43:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151833; bh=ujB+gNbIBddOmypRoHh+IknbcWeTLN/b+n7eFidMIbk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A424yOaNLMtJlRj7tlrwT4DeFbewyoz6EMq3gBRZTCKWleKhOybUmuS9ykZmFO08e LFP1VY4fHFTFPG2miSrSAoZTuHSDOa87/GkzL5JXJtWqFveBcc8limceVM8bOTO2yx 9KoZ1LwaBOHEmY7c1LLKe7wYe1f5CVQ58LCpulGM= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Rob Herring , Marek Vasut Subject: [PATCH v2 08/29] dt-bindings:iio:pressure:hoperf, hp03 yaml conversion Date: Sat, 31 Oct 2020 13:40:49 +0000 Message-Id: <20201031134110.724233-9-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031134110.724233-1-jic23@kernel.org> References: <20201031134110.724233-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron One quirk in the txt file was that the xclr gpio was specified as xclr-gpio rather than xclr-gpios. I've fixed that in the yaml version. Signed-off-by: Jonathan Cameron Reviewed-by: Rob Herring Cc: Marek Vasut --- v2: Fixed description naming of xclr-gpios .../bindings/iio/pressure/hoperf,hp03.yaml | 47 +++++++++++++++++++ .../devicetree/bindings/iio/pressure/hp03.txt | 17 ------- 2 files changed, 47 insertions(+), 17 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/pressure/hoperf,hp03.yaml b/Documentation/devicetree/bindings/iio/pressure/hoperf,hp03.yaml new file mode 100644 index 000000000000..69a3759e23db --- /dev/null +++ b/Documentation/devicetree/bindings/iio/pressure/hoperf,hp03.yaml @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/pressure/hoperf,hp03.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: HopeRF HP03 digital pressure/temperature sensors + +maintainers: + - Marek Vasut + +description: | + Digital pressure and temperature sensor with an I2C interface. + +properties: + compatible: + const: hoperf,hp03 + + reg: + maxItems: 1 + + xclr-gpios: + description: + The XCLR pin is a reset of the ADC in the chip, it must be pulled + HI before the conversion and readout of the value from the ADC + registers and pulled LO afterward. + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pressure@77 { + compatible = "hoperf,hp03"; + reg = <0x77>; + xclr-gpios = <&portc 0 0x0>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/pressure/hp03.txt b/Documentation/devicetree/bindings/iio/pressure/hp03.txt deleted file mode 100644 index 831dbee7a5c3..000000000000 --- a/Documentation/devicetree/bindings/iio/pressure/hp03.txt +++ /dev/null @@ -1,17 +0,0 @@ -HopeRF HP03 digital pressure/temperature sensors - -Required properties: -- compatible: must be "hoperf,hp03" -- xclr-gpio: must be device tree identifier of the XCLR pin. - The XCLR pin is a reset of the ADC in the chip, - it must be pulled HI before the conversion and - readout of the value from the ADC registers and - pulled LO afterward. - -Example: - -hp03@77 { - compatible = "hoperf,hp03"; - reg = <0x77>; - xclr-gpio = <&portc 0 0x0>; -}; From patchwork Sat Oct 31 13:40:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 320070 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp2268361ilc; Sat, 31 Oct 2020 06:44:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEm/P5g6Hm6l4eV5dCbuMaM/WupJkFto/ko36Mh5ooCXIeSME5hclGpkCCbeZ7B0QoOHtE X-Received: by 2002:a17:906:f98d:: with SMTP id li13mr1437557ejb.307.1604151840169; Sat, 31 Oct 2020 06:44:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604151840; cv=none; d=google.com; s=arc-20160816; b=bc9gbCtRFH6K76pM/1CGcP62bc7C10Nm23ePGglGqzNThpgXC7+01l8bnvtO1B7vHX Jv05TjnXunhd22iPQ/FpUiwnpyfhRpMW1a6ewJkNn8b7ZsjM6/v5FpHywbB93t2hR7xZ t1lWK8nLPtpvGYgKvQ/ngTZy0o+bRDqhLfI446noiILusaiMp4zKLv2mOoxAE71/SmXq dQwaLzbgw3IFR1BMp1geQfJUWcGYoxkX9w+tWqSGmd2ko+3MrVJcphk2vOaHJIcWjm6d KmEx+ZDk9pkfQoO5IMghOSl2DfoVCwpJNlo62DkMVXH50IvJZcguZhid2xg8t5LhE8qa C33g== 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=WU6HqkUA17bMlmoN60X8JorZnRW33wqVkGTSX+Un9zA=; b=m/Lh5YAgn/OVePPUmBSCAlpr22u+3G7zL3QEq2VFQKag2OjpwX04FIAIW5dUdsM0kE h7Ldb4LyNepgjlLa8KUb3AP7h+de52Z71mpUGUnOXWyCWRQvb524aTfGBxFw8rl6JIvR wY3pW1dMvaVlJjiwnmDOFZX256aa/DgxHrE7o/Q06hoSQf7G9gMwDjP3Q8/3jH3Qgn1a YCIMDd6Pmvp12rNJKF6pfB1+u69wQESEYjLbyl+Ohv8iD+bO/R6ggsNsKTvwaQyd1f3Z GQm7gyKJgOgP4ibhIzLod0PdFWs9NrLMK+gVvRhEFY6fkuCQH00TZttop7IIP0U5/IXA n/ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DhOsh1hu; 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 h25si6243872ejc.209.2020.10.31.06.44.00; Sat, 31 Oct 2020 06:44:00 -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=default header.b=DhOsh1hu; 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 S1727673AbgJaNn4 (ORCPT + 6 others); Sat, 31 Oct 2020 09:43:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:42936 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727669AbgJaNnz (ORCPT ); Sat, 31 Oct 2020 09:43:55 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6E4A42074F; Sat, 31 Oct 2020 13:43:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151834; bh=zrFrDfWrn8n2cXdcN3b2EusNLUdtH+VERVsS/sNUmz4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DhOsh1huF9GHSQQHWmZMkfDnwWx0ldOlcxLJEwvOAn5atmBjcQIV7BI47neW2uzMg AG73fsjvLHy4p4JfN0jNHEW1n7fZION9UbziYs7VL3JIuwbG4gW+KSyP15AnKClVbk 1Hk3knsTfQ+uaokkjVj7HUlWK9QgcPAlof0BaimY= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Rob Herring Subject: [PATCH v2 09/29] dt-bindings:iio:proximity:semtech, sx9500 yaml conversion. Date: Sat, 31 Oct 2020 13:40:50 +0000 Message-Id: <20201031134110.724233-10-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031134110.724233-1-jic23@kernel.org> References: <20201031134110.724233-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Simple conversion. There hasn't been much activity around this driver for a long time and I don't think I have any up to date contact details for the original authors. As such, I've listed myself as the binding maintainer. More than happy to hand it off to someone more relevant though! Signed-off-by: Jonathan Cameron Reviewed-by: Rob Herring --- .../iio/proximity/semtech,sx9500.yaml | 50 +++++++++++++++++++ .../bindings/iio/proximity/sx9500.txt | 23 --------- 2 files changed, 50 insertions(+), 23 deletions(-) -- 2.28.0 diff --git a/Documentation/devicetree/bindings/iio/proximity/semtech,sx9500.yaml b/Documentation/devicetree/bindings/iio/proximity/semtech,sx9500.yaml new file mode 100644 index 000000000000..66dd01506859 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/proximity/semtech,sx9500.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/proximity/semtech,sx9500.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Semtech's SX9500 capacitive proximity button device + +maintainers: + - Jonathan Cameron + +properties: + compatible: + const: semtech,sx9500 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + reset-gpios: + description: + GPIO connected to the active low reset pin. + maxItems: 1 + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + #include + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + proximity@28 { + compatible = "semtech,sx9500"; + reg = <0x28>; + interrupt-parent = <&gpio2>; + interrupts = <16 IRQ_TYPE_LEVEL_LOW>; + reset-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/proximity/sx9500.txt b/Documentation/devicetree/bindings/iio/proximity/sx9500.txt deleted file mode 100644 index c54455db3bec..000000000000 --- a/Documentation/devicetree/bindings/iio/proximity/sx9500.txt +++ /dev/null @@ -1,23 +0,0 @@ -Semtech's SX9500 capacitive proximity button device driver - -Required properties: - - compatible: must be "semtech,sx9500" - - reg: i2c address where to find the device - - interrupts : the sole interrupt generated by the device - - Refer to interrupt-controller/interrupts.txt for generic - interrupt client node bindings. - -Optional properties: - - reset-gpios: Reference to the GPIO connected to the device's active - low reset pin. - -Example: - -sx9500@28 { - compatible = "semtech,sx9500"; - reg = <0x28>; - interrupt-parent = <&gpio2>; - interrupts = <16 IRQ_TYPE_LEVEL_LOW>; - reset-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>; -}; From patchwork Sat Oct 31 13:40:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 314672 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 87F28C4742C for ; Sat, 31 Oct 2020 13:43:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 573D420885 for ; Sat, 31 Oct 2020 13:43:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151838; bh=UKMAY6ZJvobbEok4Rzl44g+rI86poMmEZOZ3CRq137Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=YZMwVZ3bOlHctyvuqvk5uo4Gb3prQFUy/M6moIrWvAyQSmt6ja5n5TlOqROIxps2D mvPLSJwdqTRCWOUR/vvfthKNlzpAQjmGu9duyNVpprZBm0KIoGMJXx9ukkGGtjMCEY 0eNt7en/E0Z/cjoWWnlH6XeX2IC1KIsK3wOHzxeM= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727650AbgJaNn5 (ORCPT ); Sat, 31 Oct 2020 09:43:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:42976 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727669AbgJaNn4 (ORCPT ); Sat, 31 Oct 2020 09:43:56 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D48882071A; Sat, 31 Oct 2020 13:43:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151836; bh=UKMAY6ZJvobbEok4Rzl44g+rI86poMmEZOZ3CRq137Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NktSSGFRNxVSns2xBBBTCGXCRqrDyJ8UNdPOHjvGyvzHg1bmJiTaGrJO1R6Gr93dG tg2DExytqmkQZ77jW36zGciNCj4CZrIXIKh/geTREjynPqIKNqGZKbT2wUKSWPWGco UxSgkobv9W8iEbMPGqnrSwv6PVEObZ6yHj8Uezsc= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Rob Herring , Song Qiang Subject: [PATCH v2 10/29] dt-bindings:iio:proximity:st, vl53l0x yaml conversion Date: Sat, 31 Oct 2020 13:40:51 +0000 Message-Id: <20201031134110.724233-11-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031134110.724233-1-jic23@kernel.org> References: <20201031134110.724233-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Straight forward conversion from txt to yaml. Signed-off-by: Jonathan Cameron Reviewed-by: Rob Herring Cc: Song Qiang --- .../bindings/iio/proximity/st,vl53l0x.yaml | 42 +++++++++++++++++++ .../bindings/iio/proximity/vl53l0x.txt | 18 -------- 2 files changed, 42 insertions(+), 18 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/proximity/st,vl53l0x.yaml b/Documentation/devicetree/bindings/iio/proximity/st,vl53l0x.yaml new file mode 100644 index 000000000000..656460d9d8c8 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/proximity/st,vl53l0x.yaml @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/proximity/st,vl53l0x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ST VL53L0X ToF ranging sensor + +maintainers: + - Song Qiang + +properties: + compatible: + const: st,vl53l0x + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + proximity@29 { + compatible = "st,vl53l0x"; + reg = <0x29>; + interrupt-parent = <&gpio>; + interrupts = <23 IRQ_TYPE_EDGE_FALLING>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/proximity/vl53l0x.txt b/Documentation/devicetree/bindings/iio/proximity/vl53l0x.txt deleted file mode 100644 index dfe00eb961cd..000000000000 --- a/Documentation/devicetree/bindings/iio/proximity/vl53l0x.txt +++ /dev/null @@ -1,18 +0,0 @@ -ST VL53L0X ToF ranging sensor - -Required properties: - - compatible: must be "st,vl53l0x" - - reg: i2c address where to find the device - -Optional properties: - - interrupts: Interrupt for notifying that new measurement is ready. - If no interrupt is specified, polling is used. - -Example: - -vl53l0x@29 { - compatible = "st,vl53l0x"; - reg = <0x29>; - interrupt-parent = <&gpio>; - interrupts = <23 IRQ_TYPE_EDGE_FALLING>; -}; From patchwork Sat Oct 31 13:40:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 320072 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp2268380ilc; Sat, 31 Oct 2020 06:44:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxd+7g3nXnbxhYA6/OBtwSpWIK57r6bgwqvRwcliQt+FyuFRP52RSEs/ZUHuGSIos7UgCFq X-Received: by 2002:a17:906:aacf:: with SMTP id kt15mr686221ejb.372.1604151841355; Sat, 31 Oct 2020 06:44:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604151841; cv=none; d=google.com; s=arc-20160816; b=Ka7/tTfT/xprIbm3LfNUHAX56LzySQgYhaR7eiqz13NgHhO48C7SkxZansOVI8mgna DyvtkUFitqRgT1iKgQ/1iwLC8MgFPyaMD4vf5VGgqJx3QxOv8lwakPgP9Ij7ugPdrW/x sEQ2BYzYrJZLXw8P+Vdvlj/AzcHG5VC70rys9HGl3Xgn9e9OUi0BlxP8BTLqM1Ya2U1T rtUKCm85axNvbHD7L9/cKkFebj3GaB0KYn4oU9XwHbL/tl1336qbjBcdKTOtuRaEhz52 8qlDqCm5z5Z7V/4uIZpxeNtD76BMyt2LtnpHAGvO/WxqmghjbZmuorTVe0VdB2ao2N5d Vkng== 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=S2H9URLbAP0jezvn4zOuE4op5Kvp5I+zNzYrTLtCKNU=; b=eqGRk1g9h3Y9NpzsfOoQO6ymN6kZuLv+S8U7xy1XFiowt0W7DWXdXxKs9cNgpAmMXC ZwnM0Bq8AOszbovuR7JHz4lOdro4VsHA/n8rdE3SfvjbWBqz6Ve3v3AwDZtiRTF28lmb VUkW9tA0bl7P8uCtjd++6dA3FnVvfuL259n5YdM7GwLa5UkJ/4KB1I4kNrKVlUPIaFva cnBR80mdbym+4XpoA02itD98cGbEna/4nnV4p5XEiExfDArVJqrsu/VsZ8jiMH3WyNSF p1ara0j+rsi1cEZw46IiK4idDA2FWFr4lEtujnM2xjOj/2RkU2e5idGYYEuemNbC2KmB QMKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="YrM/kzfn"; 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 h25si6243872ejc.209.2020.10.31.06.44.01; Sat, 31 Oct 2020 06:44:01 -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=default header.b="YrM/kzfn"; 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 S1727686AbgJaNn6 (ORCPT + 6 others); Sat, 31 Oct 2020 09:43:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:43018 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727669AbgJaNn6 (ORCPT ); Sat, 31 Oct 2020 09:43:58 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 77C1520756; Sat, 31 Oct 2020 13:43:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151837; bh=LaNsdVY7oM8IrNuKfaJT0mYv4lTGv2mLADklUxX2Ag8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YrM/kzfnnAh+9trWSyAve2359rHErYzjgyu6C+Il7o6ry0Fm089RwsmpS8CwIr8eN FK4miqSC8fYi+d1mikf/GOgDOugNTgQMR4IM7a2cUjdOHf2yZW5TqY8gZV8ge4qChQ wWcIqG+B89vNVSAy8lMQ/fN3/v6kpbJko9DcK7QI= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Rob Herring , Matt Ranostay Subject: [PATCH v2 11/29] dt-bindings:iio:proximity:ams, as3935 yaml conversion Date: Sat, 31 Oct 2020 13:40:52 +0000 Message-Id: <20201031134110.724233-12-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031134110.724233-1-jic23@kernel.org> References: <20201031134110.724233-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron A straight forward conversion of this binding. I have added a maximum SPI frequency from the datasheet. Signed-off-by: Jonathan Cameron Reviewed-by: Rob Herring Acked-by: Matt Ranostay Cc: Matt Ranostay --- .../bindings/iio/proximity/ams,as3935.yaml | 71 +++++++++++++++++++ .../bindings/iio/proximity/as3935.txt | 34 --------- 2 files changed, 71 insertions(+), 34 deletions(-) -- 2.28.0 diff --git a/Documentation/devicetree/bindings/iio/proximity/ams,as3935.yaml b/Documentation/devicetree/bindings/iio/proximity/ams,as3935.yaml new file mode 100644 index 000000000000..7fcba5d6d508 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/proximity/ams,as3935.yaml @@ -0,0 +1,71 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/proximity/ams,as3935.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Austrian Microsystems AS3935 Franklin lightning sensor + +maintainers: + - Matt Ranostay + +description: + This lightening distance sensor uses an I2C or SPI interface. The + binding currently only covers the SPI option. + +properties: + compatible: + const: ams,as3935 + + reg: + maxItems: 1 + + spi-max-frequency: + maximum: 2000000 + + spi-cpha: true + + interrupts: + maxItems: 1 + + ams,tuning-capacitor-pf: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Calibration tuning capacitor stepping value. This will require using + the calibration data from the manufacturer. + minimum: 0 + maximum: 120 + + ams,nflwdth: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Set the noise and watchdog threshold register on startup. This will + need to set according to the noise from the MCU board, and possibly + the local environment. Refer to the datasheet for the threshold settings. + +required: + - compatible + - reg + - spi-cpha + - interrupts + +additionalProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + lightning@0 { + compatible = "ams,as3935"; + reg = <0>; + spi-max-frequency = <400000>; + spi-cpha; + interrupt-parent = <&gpio1>; + interrupts = <16 1>; + ams,tuning-capacitor-pf = <80>; + ams,nflwdth = <0x44>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/proximity/as3935.txt b/Documentation/devicetree/bindings/iio/proximity/as3935.txt deleted file mode 100644 index 849115585d55..000000000000 --- a/Documentation/devicetree/bindings/iio/proximity/as3935.txt +++ /dev/null @@ -1,34 +0,0 @@ -Austrian Microsystems AS3935 Franklin lightning sensor device driver - -Required properties: - - compatible: must be "ams,as3935" - - reg: SPI chip select number for the device - - spi-max-frequency: specifies maximum SPI clock frequency - - spi-cpha: SPI Mode 1. Refer to spi/spi-bus.txt for generic SPI - slave node bindings. - - interrupts : the sole interrupt generated by the device - - Refer to interrupt-controller/interrupts.txt for generic - interrupt client node bindings. - -Optional properties: - - ams,tuning-capacitor-pf: Calibration tuning capacitor stepping - value 0 - 120pF. This will require using the calibration data from - the manufacturer. - - ams,nflwdth: Set the noise and watchdog threshold register on - startup. This will need to set according to the noise from the - MCU board, and possibly the local environment. Refer to the - datasheet for the threshold settings. - -Example: - -as3935@0 { - compatible = "ams,as3935"; - reg = <0>; - spi-max-frequency = <400000>; - spi-cpha; - interrupt-parent = <&gpio1>; - interrupts = <16 1>; - ams,tuning-capacitor-pf = <80>; - ams,nflwdth = <0x44>; -}; From patchwork Sat Oct 31 13:40:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 314671 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 907D9C5517A for ; Sat, 31 Oct 2020 13:44:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 65DF520731 for ; Sat, 31 Oct 2020 13:44:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151841; bh=lPG/Bw+GgrpAAqesEvCxvokLf1ENkNXz+lkIoA7KaFA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=WzZqMKrhxp1pIdhqnzyLooBvsT379K0LXmh9uyd/Xmt+GlLvH/0iVWMjobeRCd63g DEF5Tq+4JLDCYc5r9yPTISMB9X9XJ293x5C9LCcUybNFudZ0O0v6SoIzEwxcjCNv20 JQ6s/6XbwIi6vWoENRPpr9g+7m003Ld8imZ8FJwA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727687AbgJaNoA (ORCPT ); Sat, 31 Oct 2020 09:44:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:43058 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727669AbgJaNoA (ORCPT ); Sat, 31 Oct 2020 09:44:00 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 18B5620825; Sat, 31 Oct 2020 13:43:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151839; bh=lPG/Bw+GgrpAAqesEvCxvokLf1ENkNXz+lkIoA7KaFA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Bqnuo6M36bUTYDW02BUOpwduzHbQ9kZQCm+ToAh5F7LQpEq/CRUTzZsYAGW2Gjo26 XRqWri2CCD8EEa5pr26BJcmard69UmDkl1k8fbb7d6ttDJ/oeJPyij6VrnZugdN6lM xIH8doUZ8SwnkqVfB2a6kMZ2fJADKkBWaYzQ34JY= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Rob Herring , Sean Nyekjaer Subject: [PATCH v2 12/29] dt-bindings:iio:dac:ti,dac5571 yaml conversion. Date: Sat, 31 Oct 2020 13:40:53 +0000 Message-Id: <20201031134110.724233-13-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031134110.724233-1-jic23@kernel.org> References: <20201031134110.724233-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron A few tweaks in this conversion. * The example didn't have the I2C address of 4C in the node name so fixed that. * The reference voltage in the txt file is an optional binding, but the driver is making use of it to provide the scaling of the output channels. As such I have made it required going forwards. Signed-off-by: Jonathan Cameron Reviewed-by: Rob Herring Acked-by: Sean Nyekjaer Cc: Sean Nyekjaer --- .../bindings/iio/dac/ti,dac5571.txt | 24 --------- .../bindings/iio/dac/ti,dac5571.yaml | 52 +++++++++++++++++++ 2 files changed, 52 insertions(+), 24 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/dac/ti,dac5571.txt b/Documentation/devicetree/bindings/iio/dac/ti,dac5571.txt deleted file mode 100644 index 03af6b9a4d07..000000000000 --- a/Documentation/devicetree/bindings/iio/dac/ti,dac5571.txt +++ /dev/null @@ -1,24 +0,0 @@ -* Texas Instruments DAC5571 Family - -Required properties: - - compatible: Should contain - "ti,dac5571" - "ti,dac6571" - "ti,dac7571" - "ti,dac5574" - "ti,dac6574" - "ti,dac7574" - "ti,dac5573" - "ti,dac6573" - "ti,dac7573" - - reg: Should contain the DAC I2C address - -Optional properties: - - vref-supply: The regulator supply for DAC reference voltage - -Example: -dac@0 { - compatible = "ti,dac5571"; - reg = <0x4C>; - vref-supply = <&vdd_supply>; -}; diff --git a/Documentation/devicetree/bindings/iio/dac/ti,dac5571.yaml b/Documentation/devicetree/bindings/iio/dac/ti,dac5571.yaml new file mode 100644 index 000000000000..714191724f7c --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/ti,dac5571.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/ti,dac5571.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments DAC5571 Family + +maintainers: + - Sean Nyekjaer + +properties: + compatible: + enum: + - ti,dac5571 + - ti,dac6571 + - ti,dac7571 + - ti,dac5574 + - ti,dac6574 + - ti,dac7574 + - ti,dac5573 + - ti,dac6573 + - ti,dac7573 + + reg: + maxItems: 1 + + vref-supply: + description: + Reference voltage must be supplied to establish the scaling of the + output voltage. + +required: + - compatible + - reg + - vref-supply + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + dac@4c { + compatible = "ti,dac5571"; + reg = <0x4C>; + vref-supply = <&vdd_supply>; + }; + }; +... From patchwork Sat Oct 31 13:40:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 320074 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp2268409ilc; Sat, 31 Oct 2020 06:44:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPoUor+PiK3D3RulfTJX1SLfFGRZ3Sbl02BlqM6AuqlESLKiPHDbddJW35GNX4qOr/knIo X-Received: by 2002:a17:906:280a:: with SMTP id r10mr7148423ejc.58.1604151843209; Sat, 31 Oct 2020 06:44:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604151843; cv=none; d=google.com; s=arc-20160816; b=meoFAvisf30ZBx4w5gRLk2bY6llg+wEZC9MjzmAMvgx1MNaY+ZocHO7ATArjFBnDVC nNNSsR6PKlrP/lZmuwO1RqQMjhNidBh9vgm2X2stAx1vbvpGSF+bpJbWXASHdvijc8Wu nIm3zxrOYfmWvzA7ex1sOYVqEi+eMCFRNQQ5N6/InCSfArdTt8S7a8xiblJAdw/xN8bR m59AtYkkJdxwV7VteCyd4hvvA6NeqfXhodDaUDhdOPLkU8ron9qmdse/4caujM5Fp+D1 fuSAETzL3LEvR+kMAA3jSX1y2IzT5Ks//DFQb3LkF9Wjs6GZnROJU9V5hA9fmrnLwXz4 qRMw== 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=gyNBf1knryPM1JSy6kdQzT03LppEvP28KAoyj76N+5U=; b=XpBqHhd42irIFDs+ikggkMn2Cvib9HktnpuIZFHGn87gRkKhEQM+Ny0kWrxcnNGJ8/ Cddf5FYv0aKxK1aENhFsGUbp2LpH5udkst+R8NTcdgkSimpPCOEPij9QpfMrN+eAR5hU ciVkbnh5qysefvbbCY2DJPkAzjJjzp8jdv17ACQs4psOlDhn4ImQ9GHUYRbd/f0YAD/Z /5QA0YQPRsNSbUbifG2aRSDThBOsQ87kP9O25RxBpn5+vVcUD5L7MtWS6YBj4H2Q/J6+ OpzoF1TtJrTxojceZMIW+xjySBrd4Vp9EPkAeuk0Xbq+coJJFVxFGf7YiSue2kiZo/zQ c/3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pontkMC5; 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 h25si6243872ejc.209.2020.10.31.06.44.03; Sat, 31 Oct 2020 06:44: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=default header.b=pontkMC5; 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 S1727669AbgJaNoC (ORCPT + 6 others); Sat, 31 Oct 2020 09:44:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:43090 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727692AbgJaNoB (ORCPT ); Sat, 31 Oct 2020 09:44:01 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AE94320723; Sat, 31 Oct 2020 13:43:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151840; bh=h8jmvAkXUDEug6/omVnWMW1SRAWXoJkdcbmOBiyC3t0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pontkMC5xkA12CqxwNA0iG5G7tGIlB+pt3mi5bCTZXok44WYOt1s/1ac0UjATz/Jk VT/HixMsFu32CuqIDeXLSKlNSJCn1w5TMsg4lXZcMoz7mc+q+TPwCEintoqIIRudIC MgEI/GHUxjilfMBHM87hblEBsYE4+p1kXCEl471g= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Rob Herring , Charles-Antoine Couret Subject: [PATCH v2 13/29] dt-bindings:iio:dac:ti,dac7311 yaml conversion Date: Sat, 31 Oct 2020 13:40:54 +0000 Message-Id: <20201031134110.724233-14-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031134110.724233-1-jic23@kernel.org> References: <20201031134110.724233-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Very simple conversion of this binding from txt to yaml. Signed-off-by: Jonathan Cameron Reviewed-by: Rob Herring Cc: Charles-Antoine Couret --- .../bindings/iio/dac/ti,dac7311.txt | 23 --------- .../bindings/iio/dac/ti,dac7311.yaml | 49 +++++++++++++++++++ 2 files changed, 49 insertions(+), 23 deletions(-) -- 2.28.0 diff --git a/Documentation/devicetree/bindings/iio/dac/ti,dac7311.txt b/Documentation/devicetree/bindings/iio/dac/ti,dac7311.txt deleted file mode 100644 index e5a507db5e01..000000000000 --- a/Documentation/devicetree/bindings/iio/dac/ti,dac7311.txt +++ /dev/null @@ -1,23 +0,0 @@ -TI DAC7311 device tree bindings - -Required properties: -- compatible: must be set to: - * "ti,dac7311" - * "ti,dac6311" - * "ti,dac5311" -- reg: spi chip select number for the device -- vref-supply: The regulator supply for ADC reference voltage - -Optional properties: -- spi-max-frequency: Max SPI frequency to use - -Example: - - spi_master { - dac@0 { - compatible = "ti,dac7311"; - reg = <0>; /* CS0 */ - spi-max-frequency = <1000000>; - vref-supply = <&vdd_supply>; - }; - }; diff --git a/Documentation/devicetree/bindings/iio/dac/ti,dac7311.yaml b/Documentation/devicetree/bindings/iio/dac/ti,dac7311.yaml new file mode 100644 index 000000000000..10be98d1f19c --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/ti,dac7311.yaml @@ -0,0 +1,49 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/ti,dac7311.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments DAC5311 and similar SPI DACs + +maintainers: + - Charles-Antoine Couret + +properties: + compatible: + enum: + - ti,dac7311 + - ti,dac6311 + - ti,dac5311 + + reg: + maxItems: 1 + + vref-supply: + description: + Reference voltage must be supplied to establish the scaling of the + output voltage. + + spi-max-frequency: true + +required: + - compatible + - reg + - vref-supply + +additionalProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + dac@0 { + compatible = "ti,dac7311"; + reg = <0>; /* CS0 */ + spi-max-frequency = <1000000>; + vref-supply = <&vdd_supply>; + }; + }; +... From patchwork Sat Oct 31 13:40:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 314670 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3EEDAC56202 for ; Sat, 31 Oct 2020 13:44:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0FE0120731 for ; Sat, 31 Oct 2020 13:44:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151844; bh=/tssV8ENpEKSPfbzWWOXrigv2BAKg2zyaH8lTXcLg9U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=MosLv8jr/75nEHFYoHPshstAneHw9CUP3fCOpsBUYRczbNttjh7ZoDQsTcg3Mz9/M 5OSMZlYcYlQ+wZnzqMPcmg0qThOsjR4BxKr2n6hk0UQOftDc7rdlpRl08JIyqIxI7C KqDkly89/C/fIgt/Ahdo/DQaXiUc99NdsHKDEqmo= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727694AbgJaNoD (ORCPT ); Sat, 31 Oct 2020 09:44:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:43120 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727692AbgJaNoD (ORCPT ); Sat, 31 Oct 2020 09:44:03 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 45C4F20853; Sat, 31 Oct 2020 13:44:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151842; bh=/tssV8ENpEKSPfbzWWOXrigv2BAKg2zyaH8lTXcLg9U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DvpGSJauczDRqQQNe0ctH1FSyeVVZSWiX4COhLbT0S++CTvnN7uqTzUjkh4D9VQZr bcF5viYZUt2j4jOYXA+6a7rOxuRS5rjSFNZmIGyywPprzlhpKycS9EX4ylUgPgAwKk QjDvjJyXqIF/4s58eDLriDshNMiIGCIJ7NQHiLzU= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Rob Herring Subject: [PATCH v2 14/29] dt-bindings:iio:dac:ti,dac7512 yaml conversion Date: Sat, 31 Oct 2020 13:40:55 +0000 Message-Id: <20201031134110.724233-15-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031134110.724233-1-jic23@kernel.org> References: <20201031134110.724233-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron This one is a bit interesting because the binding was moved from misc a while back, but the linux support for this device is provided via the ad5446 DAC driver which doesn't currently have a binding. For now, lets just convert this file over, but we may want to think about consolidating this with proper documentation of the bindings for the other parts supported by the ad5446 driver. As Daniel Mack does not seem to have been active since 2015, I've put myself as maintainer of this binding for now. Signed-off-by: Jonathan Cameron Reviewed-by: Rob Herring --- .../bindings/iio/dac/ti,dac7512.txt | 20 --------- .../bindings/iio/dac/ti,dac7512.yaml | 42 +++++++++++++++++++ 2 files changed, 42 insertions(+), 20 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/dac/ti,dac7512.txt b/Documentation/devicetree/bindings/iio/dac/ti,dac7512.txt deleted file mode 100644 index 1db45939dac9..000000000000 --- a/Documentation/devicetree/bindings/iio/dac/ti,dac7512.txt +++ /dev/null @@ -1,20 +0,0 @@ -TI DAC7512 DEVICETREE BINDINGS - -Required properties: - - - "compatible" Must be set to "ti,dac7512" - -Property rules described in Documentation/devicetree/bindings/spi/spi-bus.txt -apply. In particular, "reg" and "spi-max-frequency" properties must be given. - - -Example: - - spi_master { - dac7512: dac7512@0 { - compatible = "ti,dac7512"; - reg = <0>; /* CS0 */ - spi-max-frequency = <1000000>; - }; - }; - diff --git a/Documentation/devicetree/bindings/iio/dac/ti,dac7512.yaml b/Documentation/devicetree/bindings/iio/dac/ti,dac7512.yaml new file mode 100644 index 000000000000..4277cf8a4a2e --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/ti,dac7512.yaml @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/ti,dac7512.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments DAC7512 DAC + +maintainers: + - Jonathan Cameron + +properties: + compatible: + const: ti,dac7512 + + reg: + maxItems: 1 + + spi-max-frequency: + description: + Maximum frequency is reduced for supply voltage of less than 3.6V + maximum: 30000000 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + dac@0 { + compatible = "ti,dac7512"; + reg = <0>; /* CS0 */ + spi-max-frequency = <1000000>; + }; + }; +... From patchwork Sat Oct 31 13:40:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 320076 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp2268440ilc; Sat, 31 Oct 2020 06:44:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLXfkoFWprsn/DHicaL3aM/xac7r9g+TVyE7KebUjhq8rJA1OivV87iSXc+H8SAFzRNKwg X-Received: by 2002:a50:ee95:: with SMTP id f21mr7599002edr.270.1604151846110; Sat, 31 Oct 2020 06:44:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604151846; cv=none; d=google.com; s=arc-20160816; b=R8LHhM+Y2HLkzTJU5qxW01b7RLhaVhZEF1ZOxVCDZn+UkFb/IOxzH1YE81NcDzBGxP WVMxskjsaGjqPyW62cq1uUEJ2hx3iudyD4gdqu6QLLut05rDy6aDNJuKJQu/wA1P7r15 UUu3IVnPFabeFaKGTj9bIOVTFb4MDa2Q4sEiDR+Gt7nPnMRe0Qk9PXNS4D8WgXvBj5h4 g4v0tVFWVI3/7KM3A7vWD6mVqQz+kXC0NcLYZZbdcA/YaLJNp23uV0ZaYAC76BKQyvzJ 17zjtutS30z3v0FZbD+6BC3QfiRo9YGZlgCEiF+2M9rP2OY0Ty1xv3pK9hZ77+hmiJHf /3DQ== 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=ON4SYCqkZ9QXR8s4+GpHBDy9U4NONB4MSMdRH8UnRnI=; b=UVX2gdON/mlrmLohPGCSvu8lPx+KdxSxt1wCMzYoW3KsubpuO32kvqAL1UHGsWs2se PojmecxE0HS9vggGZTA4CViJg2qHw+e8F4DzT475eWBJXx2wsoQH4e2ikb7FMkxk5FG5 SfWxD4Owu8qq2630opHdzGrTroNpRGJ6YXeinyXzPnZJvRRZ6wnTV87sJ7cOtnfXdGEU x0jVsIEtSKx+ym32mNYHGAJ5AEnje3kzFAznaeXaxZXRRksgCFpzTgFWZjYhIHcl/csI eLg2Da6kggA6Q6O9IwNsBgkzFE4BaiT5NxVQ9x5GbnpeXPhYArbpTTkVC2SLsJHv4CQg BXrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dk16aIsF; 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 h25si6243872ejc.209.2020.10.31.06.44.05; Sat, 31 Oct 2020 06:44:06 -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=default header.b=dk16aIsF; 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 S1727701AbgJaNoF (ORCPT + 6 others); Sat, 31 Oct 2020 09:44:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:43158 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727692AbgJaNoE (ORCPT ); Sat, 31 Oct 2020 09:44:04 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B365820791; Sat, 31 Oct 2020 13:44:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151843; bh=ise7qoDYets/OyDtAWyWcXuIS/5Vl3f6IE759KxT3K8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dk16aIsFZ956DbKzTTYPSlmsjsmG1ReS7xdTT5cTLQluIjNR9te0OuhgAq8VWMO0c YJBrV5ZNiNupfNJ9fm8sXuFDn5MHfvq/Tlwi1GfFnkecbC+NIbp9FkLGXWTYncCfi7 KfaJkfjGMUOPKy5ueaNAvWSr4D7jUkH1Ugjb3JLQ= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Rob Herring , Ricardo Ribalda Delgado Subject: [PATCH v2 15/29] dt-bindings:iio:dac:ti,dac7612 yaml conversion Date: Sat, 31 Oct 2020 13:40:56 +0000 Message-Id: <20201031134110.724233-16-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031134110.724233-1-jic23@kernel.org> References: <20201031134110.724233-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Simple conversion from txt to yaml. No significant adjustments. Signed-off-by: Jonathan Cameron Reviewed-by: Rob Herring Acked-by: Ricardo Ribalda Delgado --- .../bindings/iio/dac/ti,dac7612.txt | 28 ---------- .../bindings/iio/dac/ti,dac7612.yaml | 53 +++++++++++++++++++ 2 files changed, 53 insertions(+), 28 deletions(-) -- 2.28.0 diff --git a/Documentation/devicetree/bindings/iio/dac/ti,dac7612.txt b/Documentation/devicetree/bindings/iio/dac/ti,dac7612.txt deleted file mode 100644 index 17af395b99d9..000000000000 --- a/Documentation/devicetree/bindings/iio/dac/ti,dac7612.txt +++ /dev/null @@ -1,28 +0,0 @@ -* Texas Instruments Dual, 12-Bit Serial Input Digital-to-Analog Converter - -The DAC7612 is a dual, 12-bit digital-to-analog converter (DAC) with guaranteed -12-bit monotonicity performance over the industrial temperature range. -Is is programmable through an SPI interface. - -The internal DACs are loaded when the LOADDACS pin is pulled down. - -https://www.ti.com/lit/ds/sbas106/sbas106.pdf - -Required Properties: -- compatible: Should be one of: - "ti,dac7612" - "ti,dac7612u" - "ti,dac7612ub" -- reg: Definition as per Documentation/devicetree/bindings/spi/spi-bus.txt - -Optional Properties: -- ti,loaddacs-gpios: GPIO descriptor for the LOADDACS pin. -- spi-*: Definition as per Documentation/devicetree/bindings/spi/spi-bus.txt - -Example: - - dac@1 { - compatible = "ti,dac7612"; - reg = <0x1>; - ti,loaddacs-gpios = <&msmgpio 25 GPIO_ACTIVE_LOW>; - }; diff --git a/Documentation/devicetree/bindings/iio/dac/ti,dac7612.yaml b/Documentation/devicetree/bindings/iio/dac/ti,dac7612.yaml new file mode 100644 index 000000000000..d172b142f6ed --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/ti,dac7612.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/ti,dac7612.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments DAC7612 family of DACs + +description: + The DAC7612 is a dual, 12-bit digital-to-analog converter (DAC) with + guaranteed 12-bit monotonicity performance over the industrial temperature + range. Is is programmable through an SPI interface. + +maintainers: + - Ricardo Ribalda Delgado + +properties: + compatible: + enum: + - ti,dac7612 + - ti,dac7612u + - ti,dac7612ub + + reg: + maxItems: 1 + + ti,loaddacs-gpios: + description: + DACs are loaded when the pin connected to this GPIO is pulled low. + maxItems: 1 + + spi-max-frequency: true + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + spi { + #address-cells = <1>; + #size-cells = <0>; + + dac@1 { + compatible = "ti,dac7612"; + reg = <0x1>; + ti,loaddacs-gpios = <&msmgpio 25 GPIO_ACTIVE_LOW>; + }; + }; +... From patchwork Sat Oct 31 13:40:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 320077 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp2268460ilc; Sat, 31 Oct 2020 06:44:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhWzQfhsqiXkuPC0yUNIiyPvb7XqklqGdZsi6m144olQ0l/ihvERIWt8F1mGcpVIJ+mhYf X-Received: by 2002:a05:6402:1bcc:: with SMTP id ch12mr7656255edb.339.1604151847339; Sat, 31 Oct 2020 06:44:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604151847; cv=none; d=google.com; s=arc-20160816; b=PG0e2GAncIl9wqcv2pOrc+uqKerLfkqrwkb9wrWv15KOpKIxeDxMvzP64QMn0JV7Ac eUIYADZ3C0YRmvzSVRf3O3ZkkUjx3c6brTOn1GLK2muwuWQDWeB+kfTOlYVLGl6cEMYi VOWAAkyDErfGnNVzcxP9T7wDufUzOuu2jhOqBBf20/UWponN12ycNXEyo3fMW3v1bat0 /RbuwltwEVJst485TS/6hYlx1nY3NT2tqqYymN4oDhss7ePJVtKw2D3tqbYdZcaLKT1h /vIndRyUQPkF/J9B1rfDM7kV7N8sz3DDpzEPe801ySnnfs+fm91pAhNcOxw/RoZbs3Dg iHAQ== 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=VqlwCch9ZZe5o9hB0si58ox5ESS2rzuuVWznB6cWRbU=; b=SMGPzHb7s4lJr64QwB60LzuY3tvmt/WqxhV7Tl9lJVz+5lAQVXYArVrdx8rRdYssRe srrCiWWIOUk+QfM/a7o0iR5kNxY2eN2BFa2cFPauuIu81sPZonPSNTTArULmot75eZu4 +peKvuOKH37UjB42+lNaMslgdLHb/jxlQQrjzC3qxYswqfAtUPqgYZTwpQ6kP5jqJp8T PuBAbOPl48lVKo/n7dJ7e10PBGEuScDpOdXvO3ArLE/jpkresAqjoCpR258yHzCqGGd4 gSVTZpwyZwxKCeKoiI2J/L2owFscaq8wh9F1muDKFFe7KOapQWc9NbNvHkaZaiAKODR4 kiUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2HD55PN3; 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 h25si6243872ejc.209.2020.10.31.06.44.07; Sat, 31 Oct 2020 06:44:07 -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=default header.b=2HD55PN3; 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 S1727704AbgJaNoG (ORCPT + 6 others); Sat, 31 Oct 2020 09:44:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:43190 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727692AbgJaNoG (ORCPT ); Sat, 31 Oct 2020 09:44:06 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 52E2920731; Sat, 31 Oct 2020 13:44:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151845; bh=FzA+NFB7LCeyQ6pLZ6Aze0ObLTyfT6wWBWH0kqJicrI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2HD55PN3aFJbN96Pq5rBDzHH545vfhktH4GXoX6K4RAEenC1uwzUspfnGr/754ptO 38ACI2BMTYB9xKnDBKlRuWSEnLszem6EIgAs8fNigqncMQ2i1jaozbhY9udWquHLKC TwETohH5ArPDA+OVOPKRU3t7AtQ7wK6ueI1bC8sU= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Lukas Wunner Subject: [PATCH v2 16/29] dt-bindings:iio:dac:ti,dac082s085 yaml conversion Date: Sat, 31 Oct 2020 13:40:57 +0000 Message-Id: <20201031134110.724233-17-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031134110.724233-1-jic23@kernel.org> References: <20201031134110.724233-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Fairly simple conversion with the exception of the XOR between spi-cpha and spi-cpol. Is there a better way to specify that? Signed-off-by: Jonathan Cameron Cc: Lukas Wunner --- v2: * Family typo * Put back the reference regulator in example. * Added checking of XOR of spi-cpha and spi-cpol (dropped Rob Herrings Reviewed-by due to this change) .../bindings/iio/dac/ti,dac082s085.yaml | 79 +++++++++++++++++++ .../bindings/iio/dac/ti-dac082s085.txt | 34 -------- 2 files changed, 79 insertions(+), 34 deletions(-) -- 2.28.0 diff --git a/Documentation/devicetree/bindings/iio/dac/ti,dac082s085.yaml b/Documentation/devicetree/bindings/iio/dac/ti,dac082s085.yaml new file mode 100644 index 000000000000..192b314c99d1 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/ti,dac082s085.yaml @@ -0,0 +1,79 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/ti,dac082s085.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments DAC082s085 and similar DACs + +description: + A family of Texas Instruments 8/10/12-bit 2/4-channel DACs + +maintainers: + - Lukas Wunner + +properties: + compatible: + enum: + - ti,dac082s085 + - ti,dac102s085 + - ti,dac122s085 + - ti,dac084s085 + - ti,dac104s085 + - ti,dac124s085 + + reg: + maxItems: 1 + + spi-cpha: true + spi-cpol: + description: + Should be either spi-cpha, or spi-cpol but not both. + + vref-supply: + description: Needed to provide output scaling. + + spi-max-frequency: true + +required: + - compatible + - reg + - vref-supply + +additionalProperties: false + +allOf: + - $ref: '#/definitions/cpolXORcpha' + +definitions: + cpolXORcpha: + not: + required: [spi-cpha, spi-cpol] + oneOf: + - required: + - spi-cpha + - required: + - spi-cpol + +examples: + - | + vref_2v5_reg: regulator-vref { + compatible = "regulator-fixed"; + regulator-name = "2v5"; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <2500000>; + regulator-always-on; + }; + spi { + #address-cells = <1>; + #size-cells = <0>; + + dac@0 { + compatible = "ti,dac082s085"; + reg = <0>; + spi-max-frequency = <40000000>; + spi-cpol; + vref-supply = <&vref_2v5_reg>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/dac/ti-dac082s085.txt b/Documentation/devicetree/bindings/iio/dac/ti-dac082s085.txt deleted file mode 100644 index 9cb0e10df704..000000000000 --- a/Documentation/devicetree/bindings/iio/dac/ti-dac082s085.txt +++ /dev/null @@ -1,34 +0,0 @@ -Texas Instruments 8/10/12-bit 2/4-channel DAC driver - -Required properties: - - compatible: Must be one of: - "ti,dac082s085" - "ti,dac102s085" - "ti,dac122s085" - "ti,dac084s085" - "ti,dac104s085" - "ti,dac124s085" - - reg: Chip select number. - - spi-cpha, spi-cpol: SPI mode (0,1) or (1,0) must be used, so specify - either spi-cpha or spi-cpol (but not both). - - vref-supply: Phandle to the external reference voltage supply. - -For other required and optional properties of SPI slave nodes please refer to -../../spi/spi-bus.txt. - -Example: - vref_2v5_reg: regulator-vref { - compatible = "regulator-fixed"; - regulator-name = "2v5"; - regulator-min-microvolt = <2500000>; - regulator-max-microvolt = <2500000>; - regulator-always-on; - }; - - dac@0 { - compatible = "ti,dac082s085"; - reg = <0>; - spi-max-frequency = <40000000>; - spi-cpol; - vref-supply = <&vref_2v5_reg>; - }; From patchwork Sat Oct 31 13:40:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 314669 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8DF0DC61DD8 for ; Sat, 31 Oct 2020 13:44:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6116220756 for ; Sat, 31 Oct 2020 13:44:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151848; bh=+YW/tMOEk/xPFRdslAjNWOGLHIDvxC1ULIHOsab+wtI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=Cez+lfNdns4qQYnjEVpAOaxHIvGYx83xkOdxj0hs9FcS7e8cdRXYtCT1yD3LOn5oU 8zEeZOFqHTcN9QYmHyD2Fewop/iekS6B+kvU1XJrZUqWxbRcbh9cwAKdlGRL/FkZXG aVgjQSOsvk6xubYDBtFSzIOduGYlCEjW7C1USvHA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727713AbgJaNoH (ORCPT ); Sat, 31 Oct 2020 09:44:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:43218 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727692AbgJaNoH (ORCPT ); Sat, 31 Oct 2020 09:44:07 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BF4E920885; Sat, 31 Oct 2020 13:44:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151847; bh=+YW/tMOEk/xPFRdslAjNWOGLHIDvxC1ULIHOsab+wtI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1ZDF7cdevjFU6zErFfrTBXe1JKHKH6x4zqfuM1whzhZICq9pGqcfQi0hTmK/USh/m dhNRWSK+8mRLSqVpPNXsAnE/kABiLyKZkkKD7JfAipgHrxqR1p3MFyE9hKSj2+Lbao 6frgnfy3D6IMAVCudT92ndWtf4dmXYzOiD5iI00I= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Rob Herring , Lars-Peter Clausen Subject: [PATCH v2 17/29] dt-bindings:iio:dac:adi,ad7303 yaml conversion Date: Sat, 31 Oct 2020 13:40:58 +0000 Message-Id: <20201031134110.724233-18-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031134110.724233-1-jic23@kernel.org> References: <20201031134110.724233-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Converted to maintain the requirement for Vdd-supply as per original file. It is possible we could relax this requirement to make it at least one of Vdd-supply and REF-supply. We need to establish the scaling of the output channel and if REF-supply is provided that is used instead of Vdd-supply, hence I cannot see why a dummy regulator cannot be used for Vdd-supply if this happens. For now, let us keep it simple. Drop adi,use-external-reference from binding example as no such binding exists. Signed-off-by: Jonathan Cameron Reviewed-by: Rob Herring Cc: Lars-Peter Clausen --- .../devicetree/bindings/iio/dac/ad7303.txt | 23 --------- .../bindings/iio/dac/adi,ad7303.yaml | 50 +++++++++++++++++++ 2 files changed, 50 insertions(+), 23 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/dac/ad7303.txt b/Documentation/devicetree/bindings/iio/dac/ad7303.txt deleted file mode 100644 index 914610f0556e..000000000000 --- a/Documentation/devicetree/bindings/iio/dac/ad7303.txt +++ /dev/null @@ -1,23 +0,0 @@ -Analog Devices AD7303 DAC device driver - -Required properties: - - compatible: Must be "adi,ad7303" - - reg: SPI chip select number for the device - - spi-max-frequency: Max SPI frequency to use (< 30000000) - - Vdd-supply: Phandle to the Vdd power supply - -Optional properties: - - REF-supply: Phandle to the external reference voltage supply. This should - only be set if there is an external reference voltage connected to the REF - pin. If the property is not set Vdd/2 is used as the reference voltage. - -Example: - - ad7303@4 { - compatible = "adi,ad7303"; - reg = <4>; - spi-max-frequency = <10000000>; - Vdd-supply = <&vdd_supply>; - adi,use-external-reference; - REF-supply = <&vref_supply>; - }; diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad7303.yaml b/Documentation/devicetree/bindings/iio/dac/adi,ad7303.yaml new file mode 100644 index 000000000000..1f0037152095 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/adi,ad7303.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/adi,ad7303.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices AD7303 DAC + +maintainers: + - Lars-Peter Clausen + +properties: + compatible: + const: adi,ad7303 + + reg: + maxItems: 1 + + Vdd-supply: + description: + Used to calculate output channel scalling if REF-supply not specified. + REF-supply: + description: + If not provided, Vdd/2 is used as the reference voltage. + + spi-max-frequency: + maximum: 30000000 + +required: + - compatible + - reg + - Vdd-supply + +additionalProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + dac@4 { + compatible = "adi,ad7303"; + reg = <4>; + spi-max-frequency = <10000000>; + Vdd-supply = <&vdd_supply>; + REF-supply = <&vref_supply>; + }; + }; +... From patchwork Sat Oct 31 13:40:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 314668 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E4EBC56202 for ; Sat, 31 Oct 2020 13:44:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E2DBD20723 for ; Sat, 31 Oct 2020 13:44:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151849; bh=vAIXIIPv/QX99oQLMAKb/FKaJE7nsMJTp2LJl2IktbQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=X46Ndxwe0fDkt1KZldxJDg6iVO3ZTQbPC4d84L87A30qBKT0iBU0u6unCiDATtR5A 7wNp/GPFCRoZfAqc21golDEl+UhdPg9nlrFI3WWQK18MwMKpoIlY+xLKL+9Ld8KhpR td/knw5zRYGcPS8ky1tfyoIbDFy8I8f07TWe7tcQ= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727719AbgJaNoJ (ORCPT ); Sat, 31 Oct 2020 09:44:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:43272 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727692AbgJaNoJ (ORCPT ); Sat, 31 Oct 2020 09:44:09 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5A0F1208B6; Sat, 31 Oct 2020 13:44:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151848; bh=vAIXIIPv/QX99oQLMAKb/FKaJE7nsMJTp2LJl2IktbQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mqJKWfA1qQf84mT0sMtLNKZz4fkO/TxMP7q3nxa9PF7Q6MqSsn28AwY8wNt9wBiWz yoQRrIe2HCLi7LhenwGaJz3jdUPajrtNU4qf8UTnScfUBEJHBuVpFX8XWRaTXTBKF+ 7pqWA5+c/Ek2v2lCzJeg8+lv8fZAgOGZ+SrZzr9U= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Rob Herring , "Ismail H . Kose" Subject: [PATCH v2 18/29] dt-bindings:iio:dac:maxim,ds4424 yaml conversion Date: Sat, 31 Oct 2020 13:40:59 +0000 Message-Id: <20201031134110.724233-19-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031134110.724233-1-jic23@kernel.org> References: <20201031134110.724233-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Simple conversion of this straight forward binding. Signed-off-by: Jonathan Cameron Reviewed-by: Rob Herring Cc: Ismail H. Kose --- .../devicetree/bindings/iio/dac/ds4424.txt | 20 --------- .../bindings/iio/dac/maxim,ds4424.yaml | 45 +++++++++++++++++++ 2 files changed, 45 insertions(+), 20 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/dac/ds4424.txt b/Documentation/devicetree/bindings/iio/dac/ds4424.txt deleted file mode 100644 index eaebbf8dab40..000000000000 --- a/Documentation/devicetree/bindings/iio/dac/ds4424.txt +++ /dev/null @@ -1,20 +0,0 @@ -Maxim Integrated DS4422/DS4424 7-bit Sink/Source Current DAC Device Driver - -Datasheet publicly available at: -https://datasheets.maximintegrated.com/en/ds/DS4422-DS4424.pdf - -Required properties: - - compatible: Should be one of - maxim,ds4422 - maxim,ds4424 - - reg: Should contain the DAC I2C address - -Optional properties: - - vcc-supply: Power supply is optional. If not defined, driver will ignore it. - -Example: - ds4224@10 { - compatible = "maxim,ds4424"; - reg = <0x10>; /* When A0, A1 pins are ground */ - vcc-supply = <&vcc_3v3>; - }; diff --git a/Documentation/devicetree/bindings/iio/dac/maxim,ds4424.yaml b/Documentation/devicetree/bindings/iio/dac/maxim,ds4424.yaml new file mode 100644 index 000000000000..264fa7c5fe3a --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/maxim,ds4424.yaml @@ -0,0 +1,45 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/maxim,ds4424.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Maxim Integrated DS4422/DS4424 7-bit Sink/Source Current DAC + +maintainers: + - Ismail Kose + +description: | + Datasheet publicly available at: + https://datasheets.maximintegrated.com/en/ds/DS4422-DS4424.pdf + +properties: + compatible: + enum: + - maxim,ds4422 + - maxim,ds4424 + + reg: + maxItems: 1 + + vcc-supply: true + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + dac@10 { + compatible = "maxim,ds4424"; + reg = <0x10>; /* When A0, A1 pins are ground */ + vcc-supply = <&vcc_3v3>; + }; + }; +... From patchwork Sat Oct 31 13:41:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 320080 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp2268508ilc; Sat, 31 Oct 2020 06:44:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSiQ6mCTP83tqgjGOzQgIZviqFoLsI3YXVLZDAl2hAYgRrs18an9zE6Kt4gfflNAnodlEc X-Received: by 2002:a05:6402:1d82:: with SMTP id dk2mr7450461edb.299.1604151852280; Sat, 31 Oct 2020 06:44:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604151852; cv=none; d=google.com; s=arc-20160816; b=taZBV066jl3OVnurWRet4QnyT205ec+Vayfaa69PqOGi9O+uvzlYB2O36/qo6aUEFi bP7afykB3t/TBB3XplLrvte3G2ATlnm6lE3vNeKoY/b8vhiIzWKoUpOTEV+dEchITi8F bji9i1qIXl+Qh/BOD4ZC9slUR/3S42lfx+YFtH4mJIyTHWDvqCAR8mC5VtqG17sERzr/ /BXZ6W9cfn/cAd+14RihJ7aeFq9cGEp/iIvsGNDRT3ipO3n6aoP3cni51HXJC32VJVyz m0+GnJEKFRKCSmvA3alTL5fsq2dZUJIvSjRo4wHPlyloK4bBElfpbSVKmHRmS/DYhv58 ICyg== 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=jlSCaF1vvtne6O1adg6u4hfYx2LgaxQwKhsYsN4+re4=; b=xz+OAks1XMi5SZEuKRLQG3H4Tpn82z79ZncIuNlEIeR3oSWS866Em2Xg/wLEDnccBy EceN9tok0PNSVquOZLsjCCrrbDatb8hC2yERqP2fQte3SPcIgAS27MRdlis6wrfalkQ6 rzcpg99NVHJSJIqToqo/ad+7yxdeM3L6FE396IIDMHURCDj4Sf3F3upeImtquwX/UEEW OVgj2Jm6lxEOdS/IonIFFprzMOwdajDqhAiYDvT2PMn5fkc1rj0WE6cNAaZPhXTfSnis Bt+h2N0hQlhrZSDxr66/yXqMyzFjY8AnWOutly8f4yf90nUbuTUKCe7VpmWJS914wT3B fkgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YDC+q5PU; 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 h25si6243872ejc.209.2020.10.31.06.44.12; Sat, 31 Oct 2020 06:44:12 -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=default header.b=YDC+q5PU; 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 S1727733AbgJaNoL (ORCPT + 6 others); Sat, 31 Oct 2020 09:44:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:43310 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727692AbgJaNoL (ORCPT ); Sat, 31 Oct 2020 09:44:11 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E8BA02071A; Sat, 31 Oct 2020 13:44:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151850; bh=6EZB7x6oFcfAJZ1pVtfgZV70lcpSunl0/PAGzn/FAhE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YDC+q5PUPfCJN+S/76JFa5U5Lzmv7NKAwBzN2GDGQE9DS21xB/QH2j/JA5ORoj91n 7mD4Tj1Gj2KBhp0Tha5oSsGzXXIWTiG7tmIMdQhcApdw49/mzLVWil7/dwUJCjX+Nl rlmaF5BQsDnsoHHkwAXyy07iKfXjvjrFyNl4jeTM= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Rob Herring , Sanchayan Maity Subject: [PATCH v2 19/29] dt-bindings:iio:dac:fsl,vf610-dac yaml conversion Date: Sat, 31 Oct 2020 13:41:00 +0000 Message-Id: <20201031134110.724233-20-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031134110.724233-1-jic23@kernel.org> References: <20201031134110.724233-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Simple binding to convert. Example expanded a little to include an example bus. Signed-off-by: Jonathan Cameron Reviewed-by: Rob Herring Cc: Sanchayan Maity --- .../bindings/iio/dac/fsl,vf610-dac.yaml | 55 +++++++++++++++++++ .../devicetree/bindings/iio/dac/vf610-dac.txt | 20 ------- 2 files changed, 55 insertions(+), 20 deletions(-) -- 2.28.0 diff --git a/Documentation/devicetree/bindings/iio/dac/fsl,vf610-dac.yaml b/Documentation/devicetree/bindings/iio/dac/fsl,vf610-dac.yaml new file mode 100644 index 000000000000..999c715c6179 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/fsl,vf610-dac.yaml @@ -0,0 +1,55 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/fsl,vf610-dac.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale vf610 Digital to Analog Converter + +maintainers: + - Sanchayan Maity + +properties: + compatible: + const: fsl,vf610-dac + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + const: dac + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + #include + #include + bus@40000000 { + compatible = "fsl,aips-bus", "simple-bus"; + reg = <0x40000000 0x00070000>; + ranges; + #address-cells = <1>; + #size-cells = <1>; + dac@400cc000 { + compatible = "fsl,vf610-dac"; + reg = <0x400cc000 0x1000>; + interrupts = <55 IRQ_TYPE_LEVEL_HIGH>; + clock-names = "dac"; + clocks = <&clks VF610_CLK_DAC0>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/dac/vf610-dac.txt b/Documentation/devicetree/bindings/iio/dac/vf610-dac.txt deleted file mode 100644 index 20c6c7ae9687..000000000000 --- a/Documentation/devicetree/bindings/iio/dac/vf610-dac.txt +++ /dev/null @@ -1,20 +0,0 @@ -Freescale vf610 Digital to Analog Converter bindings - -The devicetree bindings are for the new DAC driver written for -vf610 SoCs from Freescale. - -Required properties: -- compatible: Should contain "fsl,vf610-dac" -- reg: Offset and length of the register set for the device -- interrupts: Should contain the interrupt for the device -- clocks: The clock is needed by the DAC controller -- clock-names: Must contain "dac" matching entry in the clocks property. - -Example: -dac0: dac@400cc000 { - compatible = "fsl,vf610-dac"; - reg = <0x400cc000 0x1000>; - interrupts = <55 IRQ_TYPE_LEVEL_HIGH>; - clock-names = "dac"; - clocks = <&clks VF610_CLK_DAC0>; -}; From patchwork Sat Oct 31 13:41:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 314667 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6A351C61DD8 for ; Sat, 31 Oct 2020 13:44:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3F90B2074F for ; Sat, 31 Oct 2020 13:44:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151853; bh=td9VXYGlk/QYLXW1nSdUA+5ZgE6IBV9wMbAFXH8Lpx4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=uQFgQZrRAsjATG7fl+OVGJXkxWHqzipNbgyGaWKvJ2p++ranTw0hFlm//ejiRRsBi YFYnZOhwv+OgDckrGJdg9KMMcv5udXu2C4vRl+RP4RKxxDqgSFyonuBTQLLE6GYDLW 2FyoYO19ldfkGYLrzAE1fm8oCcBAc2lLiLuCp70g= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727737AbgJaNoM (ORCPT ); Sat, 31 Oct 2020 09:44:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:43332 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727692AbgJaNoM (ORCPT ); Sat, 31 Oct 2020 09:44:12 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8690320756; Sat, 31 Oct 2020 13:44:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151851; bh=td9VXYGlk/QYLXW1nSdUA+5ZgE6IBV9wMbAFXH8Lpx4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mvM4dcz3IBUOuH6kRMW+APJWVGPswj6mSvtHY4rUbuTIY0JJodLfFxdDKt3YU7Qdr d5731NWMjZC6E4Xhdi36a158vNM/zFPKlBp4fXQVPihZDEwemeNhzAdjpMk7taxc+O reuRsTIWbnXN1ISWijuaJywqf+Fs2kxUaAVMIqM0= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Rob Herring , Tomas Novotny Subject: [PATCH v2 20/29] dt-bindings:iio:dac:microchip, mcp4725 yaml conversion Date: Sat, 31 Oct 2020 13:41:01 +0000 Message-Id: <20201031134110.724233-21-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031134110.724233-1-jic23@kernel.org> References: <20201031134110.724233-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron I'm not sure vdd-supply absolutely has to be provided if vref-supply is, but as the previous binding docs stated it was required it seems reasonable to leave it as such. Signed-off-by: Jonathan Cameron Reviewed-by: Rob Herring Cc: Tomas Novotny --- .../devicetree/bindings/iio/dac/mcp4725.txt | 35 --------- .../bindings/iio/dac/microchip,mcp4725.yaml | 71 +++++++++++++++++++ 2 files changed, 71 insertions(+), 35 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/dac/mcp4725.txt b/Documentation/devicetree/bindings/iio/dac/mcp4725.txt deleted file mode 100644 index 1bc6c093fbfe..000000000000 --- a/Documentation/devicetree/bindings/iio/dac/mcp4725.txt +++ /dev/null @@ -1,35 +0,0 @@ -Microchip mcp4725 and mcp4726 DAC device driver - -Required properties: - - compatible: Must be "microchip,mcp4725" or "microchip,mcp4726" - - reg: Should contain the DAC I2C address - - vdd-supply: Phandle to the Vdd power supply. This supply is used as a - voltage reference on mcp4725. It is used as a voltage reference on - mcp4726 if there is no vref-supply specified. - -Optional properties (valid only for mcp4726): - - vref-supply: Optional phandle to the Vref power supply. Vref pin is - used as a voltage reference when this supply is specified. - - microchip,vref-buffered: Boolean to enable buffering of the external - Vref pin. This boolean is not valid without the vref-supply. Quoting - the datasheet: This is offered in cases where the reference voltage - does not have the current capability not to drop its voltage when - connected to the internal resistor ladder circuit. - -Examples: - - /* simple mcp4725 */ - mcp4725@60 { - compatible = "microchip,mcp4725"; - reg = <0x60>; - vdd-supply = <&vdac_vdd>; - }; - - /* mcp4726 with the buffered external reference voltage */ - mcp4726@60 { - compatible = "microchip,mcp4726"; - reg = <0x60>; - vdd-supply = <&vdac_vdd>; - vref-supply = <&vdac_vref>; - microchip,vref-buffered; - }; diff --git a/Documentation/devicetree/bindings/iio/dac/microchip,mcp4725.yaml b/Documentation/devicetree/bindings/iio/dac/microchip,mcp4725.yaml new file mode 100644 index 000000000000..271998610ceb --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/microchip,mcp4725.yaml @@ -0,0 +1,71 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/microchip,mcp4725.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Microchip mcp4725 and mcp4726 DAC + +maintainers: + - Tomas Novotny + +properties: + compatible: + enum: + - microchip,mcp4725 + - microchip,mcp4726 + + reg: + maxItems: 1 + + vdd-supply: + description: | + Provides both power and acts as the reference supply on the mcp4725. + For the mcp4726 it will be used as the reference voltage if vref-supply + is not provided. + + vref-supply: + description: + Vref pin is used as a voltage reference when this supply is specified. + + microchip,vref-buffered: + type: boolean + description: | + Enable buffering of the external Vref pin. This boolean is not valid + without the vref-supply. Quoting the datasheet: This is offered in + cases where the reference voltage does not have the current + capability not to drop its voltage when connected to the internal + resistor ladder circuit. + +allOf: + - if: + not: + properties: + compatible: + contains: + const: microchip,mcp4726 + then: + properties: + vref-supply: false + microchip,vref-buffered: false + +required: + - compatible + - reg + - vdd-supply + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + mcp4725@60 { + compatible = "microchip,mcp4725"; + reg = <0x60>; + vdd-supply = <&vdac_vdd>; + }; + }; +... From patchwork Sat Oct 31 13:41:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 320082 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp2268529ilc; Sat, 31 Oct 2020 06:44:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9HQtKYhcYAeiO7IKNvZ2V6pXIXTUDHjZVa2R5F7t1nuhBfCuMV0sW4OHHJH58vzIcSBiQ X-Received: by 2002:a50:d987:: with SMTP id w7mr7620638edj.113.1604151855160; Sat, 31 Oct 2020 06:44:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604151855; cv=none; d=google.com; s=arc-20160816; b=m11mqjPQ9ObuKP+C+Wn5DQtIEC91wBuOo56YwEL2jh10/DgxCqypxQk5O9ghQYij2N 59vOp+ui3Hv6VlMmOpohiWgDm+kutWbrxUbCU6ZHv1tSYQ7xWqagFK1EY+HJCYO7A1xC hmWhLVPCE0JzUm7qOenuuja8bROC4eVtMOFekjFDKZpEEob/psKDq/UyQZd0YWgQMZQg 8bgZTFRljpmbKkiEJQbBxXv8U13eAHu8r9bUP36DL264ML9dcZgT/PSfmTlSH1oEu/+l iumtQ/dPqLnx+cuWROtMJNpg8QolAJpOWS9eqbpY+wHODVKTHRcVMpBblQs2RziCmJdU BE5g== 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=4fyosaaAad20ix+04TvqGzWN0rzg6K/7E/VVpBgdPSM=; b=N26q9ncVQnI8qKVbY01waMM9C6q+c5D+LH2fK5yHtk5qP226MIvS3wa6dE1RUOD2Ky yVSc/M3wLQW9W2rtx8KXWgNrHC/7IkjVTn7NHSqPJiM6y7RUL5hQTdFma5cnjiUN+oAM HtZK4JHow/8cVj8JhHOYoWdMSXWx8q2OYmnYGHvEJl8LQxXWEzAoFQo/urVupPtSEp7M 4zCxHcihDg4ShkOTYwMYefVQyaTOo2UJIbG57bOM2WmzlFSL/HRa7w+ehgMLrVII6VR4 J4zvEIUOejfZBQfA+kDWMfkxHrAhXvlgvYS9MScu0JhVRwNdpSNScOdmsaywq+OaCc0L 9TMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MgpO95tw; 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 h25si6243872ejc.209.2020.10.31.06.44.15; Sat, 31 Oct 2020 06:44:15 -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=default header.b=MgpO95tw; 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 S1727743AbgJaNoO (ORCPT + 6 others); Sat, 31 Oct 2020 09:44:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:43374 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727692AbgJaNoN (ORCPT ); Sat, 31 Oct 2020 09:44:13 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1EA7520723; Sat, 31 Oct 2020 13:44:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151853; bh=f0ljlD9NVU/ipOsXMONXzDvwaPlKWYj1V0G7XAPLgd0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MgpO95tweP+8YOpLANRlPWn8e1ltZepqAPc6gqzrgWbf91QA6oAj8OwnL5KI0DN5C 5+L0YgkG88dkMf6zZsHdVn64SgmAOZKcFLaJkf/WLu+X52Uq5S2yDvBozMAIV+OzmB ehXoqvOxGvjvwp32wBhAxCnVcGPYmtikvuaPO1TQ= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Rob Herring , Philippe Reynes Subject: [PATCH v2 21/29] dt-bindings:iio:dac:maxim,max5821 yaml conversion Date: Sat, 31 Oct 2020 13:41:02 +0000 Message-Id: <20201031134110.724233-22-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031134110.724233-1-jic23@kernel.org> References: <20201031134110.724233-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Simple txt to yaml conversion for this binding description. Signed-off-by: Jonathan Cameron Reviewed-by: Rob Herring Cc: Philippe Reynes --- .../devicetree/bindings/iio/dac/max5821.txt | 14 ------ .../bindings/iio/dac/maxim,max5821.yaml | 44 +++++++++++++++++++ 2 files changed, 44 insertions(+), 14 deletions(-) -- 2.28.0 diff --git a/Documentation/devicetree/bindings/iio/dac/max5821.txt b/Documentation/devicetree/bindings/iio/dac/max5821.txt deleted file mode 100644 index 54276ce8c971..000000000000 --- a/Documentation/devicetree/bindings/iio/dac/max5821.txt +++ /dev/null @@ -1,14 +0,0 @@ -Maxim max5821 DAC device driver - -Required properties: - - compatible: Must be "maxim,max5821" - - reg: Should contain the DAC I2C address - - vref-supply: Phandle to the vref power supply - -Example: - - max5821@38 { - compatible = "maxim,max5821"; - reg = <0x38>; - vref-supply = <®_max5821>; - }; diff --git a/Documentation/devicetree/bindings/iio/dac/maxim,max5821.yaml b/Documentation/devicetree/bindings/iio/dac/maxim,max5821.yaml new file mode 100644 index 000000000000..c43fb5f3f8ac --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/maxim,max5821.yaml @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/maxim,max5821.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Maxim max5821 dual 10-bit DAC + +maintainers: + - Philippe Reynes + +description: | + Datasheet publicly available at: + https://datasheets.maximintegrated.com/en/ds/MAX5821.pdf + +properties: + compatible: + const: maxim,max5821 + + reg: + maxItems: 1 + + vref-supply: true + +required: + - compatible + - reg + - vref-supply + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + dac@38 { + compatible = "maxim,max5821"; + reg = <0x38>; + vref-supply = <®_max5821>; + }; + }; +... From patchwork Sat Oct 31 13:41:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 314666 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B6D0FC5517A for ; Sat, 31 Oct 2020 13:44:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 811DF20791 for ; Sat, 31 Oct 2020 13:44:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151856; bh=imnr0hPuKLRC23kdsQVHykB3NCohVjYBaGP4M2689ww=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=Yy62QwhksCO1Pkb67m4GpbtYm8T7E62UDOlNxFqFQctUqePSHAu4gqWNlMIQr8t1h 2IPc2yUuqlAseLM62KW5U024lo5pYz2iqNAYzSxLf5W+eWVXtSyXRBCcxccwEigsxj YGxXkD8erNryVnb+e2e5bKNLJOVddkIeFSsRQlrc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727753AbgJaNoQ (ORCPT ); Sat, 31 Oct 2020 09:44:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:43414 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727692AbgJaNoP (ORCPT ); Sat, 31 Oct 2020 09:44:15 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AF04820731; Sat, 31 Oct 2020 13:44:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151854; bh=imnr0hPuKLRC23kdsQVHykB3NCohVjYBaGP4M2689ww=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=akvhbeZO2o6/YEN1M67IV4VPNjA9Lf6ZzLQPT58jWO3ndUMU3cac9sXIwGkRwEi09 i3O1Siyk9j3ZXRvfW6DaVIZ4YygreU2wWs+4nv9ldpnUVce9SalSMHhRvHtRk+H3VK WgnDI3DUc9s8EqmiqAvmnshtsILE+KaxCMRixfaw= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Rob Herring , Vladimir Zapolskiy Subject: [PATCH v2 22/29] dt-bindings:iio:dac:nxp, lpc1850-dac yaml conversion. Date: Sat, 31 Oct 2020 13:41:03 +0000 Message-Id: <20201031134110.724233-23-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031134110.724233-1-jic23@kernel.org> References: <20201031134110.724233-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Very similar binding to that for the ADC on the same device. Conversion from txt to yaml format. Signed-off-by: Jonathan Cameron Reviewed-by: Rob Herring Acked-by: Vladimir Zapolskiy --- .../bindings/iio/dac/lpc1850-dac.txt | 19 ------ .../bindings/iio/dac/nxp,lpc1850-dac.yaml | 58 +++++++++++++++++++ 2 files changed, 58 insertions(+), 19 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/dac/lpc1850-dac.txt b/Documentation/devicetree/bindings/iio/dac/lpc1850-dac.txt deleted file mode 100644 index 42db783c4e75..000000000000 --- a/Documentation/devicetree/bindings/iio/dac/lpc1850-dac.txt +++ /dev/null @@ -1,19 +0,0 @@ -NXP LPC1850 DAC bindings - -Required properties: -- compatible: Should be "nxp,lpc1850-dac" -- reg: Offset and length of the register set for the ADC device -- interrupts: The interrupt number for the ADC device -- clocks: The root clock of the ADC controller -- vref-supply: The regulator supply ADC reference voltage -- resets: phandle to reset controller and line specifier - -Example: -dac: dac@400e1000 { - compatible = "nxp,lpc1850-dac"; - reg = <0x400e1000 0x1000>; - interrupts = <0>; - clocks = <&ccu1 CLK_APB3_DAC>; - vref-supply = <®_vdda>; - resets = <&rgu 42>; -}; diff --git a/Documentation/devicetree/bindings/iio/dac/nxp,lpc1850-dac.yaml b/Documentation/devicetree/bindings/iio/dac/nxp,lpc1850-dac.yaml new file mode 100644 index 000000000000..595f481c548e --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/nxp,lpc1850-dac.yaml @@ -0,0 +1,58 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/nxp,lpc1850-dac.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP LPC1850 DAC bindings + +maintainers: + - Jonathan Cameron + +description: + Supports the DAC found on the LPC1850 SoC. + +properties: + compatible: + const: nxp,lpc1850-dac + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + vref-supply: true + + resets: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - clocks + - vref-supply + - resets + +additionalProperties: false + +examples: + - | + #include + soc { + #address-cells = <1>; + #size-cells = <1>; + dac: dac@400e1000 { + compatible = "nxp,lpc1850-dac"; + reg = <0x400e1000 0x1000>; + interrupts = <0>; + clocks = <&ccu1 CLK_APB3_DAC>; + vref-supply = <®_vdda>; + resets = <&rgu 42>; + }; + }; +... From patchwork Sat Oct 31 13:41:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 320084 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp2268569ilc; Sat, 31 Oct 2020 06:44:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3hviXGI5muteZ1KsW8T4lCoDmqmPqabLu3FUqAOqyI5p81uvq0ATDJLSzuwJr7M8VrPUI X-Received: by 2002:a17:906:f98d:: with SMTP id li13mr1438465ejb.307.1604151858783; Sat, 31 Oct 2020 06:44:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604151858; cv=none; d=google.com; s=arc-20160816; b=sv0tkPIDK993ZyTh97bLelyBkxB9o44qsfE9e9hzQLhl8uMqe+u8d1PgXbLPmtES36 vckOQZzZcC4jDdutJxhJn2BtcA+HaMtr6RP5m6zm+IWxxktpLp1zzqQrd9blfeYD9yGY +gqxMrGitw2MtiEh6soyfeCCiqsA3rOEBLZ5+z8W2YAgvrbWyQIUi1HlxIm9rVN1iiGg kHGKJThlvBamSPKeDaiejDgjEGSzhQFkOkLum1MTc8JGVGFkIDc9Gx7S1ZmqsZgyf/Ut W6iKg1EGJy37NYMl7Oc0e4E7UnT47/a89VimF1YusqkOPejEiOi8ENfw4O7E2K1IFKH+ 1D3Q== 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=F2uRSB0veoiA4ln9T2IoVPbOwKHOLuAqyQoYVOfn08w=; b=qoQb9AvlrOtJsEv+hlBv8KOu7R0/a3qz9rgYzDCKBMtILEO6Nb4W9BOxbclaXJMTPD AxtVJsEDJO05x9cOn63XJTkpxDGkl1Ai+RjegYgHMwTDih6SyNnYCIJWWQCNctDlQIDs B98g+vs4C7MWWPG+8/HFc5eypgz/d0Ui+bMm1HEnlq/eIhxT4kDglLQ/NvPvCqyhleas 5QLbrTjpG91VzzWhkjPyw/w0tIj/wvkiHySo9Cd5t9IEmyVDst3g5nTP2V0rlUKMKqNV 0+jc17pcXDq4mC3vrvFn1a22Rh4kvyEbGbrc5I+Ui81kOoARPKLfBDLLxVQgqO7yQAAj IQ8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=igKnHPeL; 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 h25si6243872ejc.209.2020.10.31.06.44.18; Sat, 31 Oct 2020 06:44:18 -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=default header.b=igKnHPeL; 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 S1727759AbgJaNoR (ORCPT + 6 others); Sat, 31 Oct 2020 09:44:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:43440 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727692AbgJaNoR (ORCPT ); Sat, 31 Oct 2020 09:44:17 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4C4F02071A; Sat, 31 Oct 2020 13:44:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151856; bh=SEUHOsxVZOMVHOeJgm/BY/feRuvbZcRQ5lJ2RpmeHbE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=igKnHPeLJvgDtXZkKu7IOGthqeE91K71uaJ2KpeWgSrSL57UZ++NDils3aEk1XaIu k2OR/jy1xhhIz9Ya4hszja4JPgh2R3j6ow/0Aip/KYfHqYq9SXF9fu9Y4FnRerAU94 rWOb63EK2cZX3MEg5M1+VeCukkUX5929Wtj6WPrE= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Rob Herring , Michael Hennerich Subject: [PATCH v2 23/29] dt-bindings:iio:dac:adi,ad5758 yaml conversion Date: Sat, 31 Oct 2020 13:41:04 +0000 Message-Id: <20201031134110.724233-24-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031134110.724233-1-jic23@kernel.org> References: <20201031134110.724233-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron I have put Michael as maintainer on this one. Happy to change it to someone else though. One issue in here, is I cannot have an example with a negative limit on the range. There are very few such yaml bindings in existence but the thermal-zones.yaml has the same problem. If there is any means of fixing this let me know. For now I'm sticking to positive range values in the example. Signed-off-by: Jonathan Cameron Reviewed-by: Rob Herring Cc: Michael Hennerich --- .../devicetree/bindings/iio/dac/ad5758.txt | 83 ----------- .../bindings/iio/dac/adi,ad5758.yaml | 129 ++++++++++++++++++ 2 files changed, 129 insertions(+), 83 deletions(-) -- 2.28.0 diff --git a/Documentation/devicetree/bindings/iio/dac/ad5758.txt b/Documentation/devicetree/bindings/iio/dac/ad5758.txt deleted file mode 100644 index 2f607f41f9d3..000000000000 --- a/Documentation/devicetree/bindings/iio/dac/ad5758.txt +++ /dev/null @@ -1,83 +0,0 @@ -Analog Devices AD5758 DAC device driver - -Required properties for the AD5758: - - compatible: Must be "adi,ad5758" - - reg: SPI chip select number for the device - - spi-max-frequency: Max SPI frequency to use (< 50000000) - - spi-cpha: is the only mode that is supported - -Required properties: - - - adi,dc-dc-mode: Mode of operation of the dc-to-dc converter - Dynamic Power Control (DPC) - In this mode, the AD5758 circuitry senses the output - voltage and dynamically regulates the supply voltage, - VDPC+, to meet compliance requirements plus an optimized - headroom voltage for the output buffer. - - Programmable Power Control (PPC) - In this mode, the VDPC+ voltage is user-programmable to - a fixed level that needs to accommodate the maximum output - load required. - - The output of the DAC core is either converted to a - current or voltage output at the VIOUT pin. Only one mode - can be enabled at any one time. - - The following values are currently supported: - * 1: DPC current mode - * 2: DPC voltage mode - * 3: PPC current mode - - Depending on the selected output mode (voltage or current) one of the - two properties must - be present: - - - adi,range-microvolt: Voltage output range - The array of voltage output ranges must contain two fields: - * <0 5000000>: 0 V to 5 V voltage range - * <0 10000000>: 0 V to 10 V voltage range - * <(-5000000) 5000000>: ±5 V voltage range - * <(-10000000) 10000000>: ±10 V voltage range - - adi,range-microamp: Current output range - The array of current output ranges must contain two fields: - * <0 20000>: 0 mA to 20 mA current range - * <0 24000>: 0 mA to 24 mA current range - * <4 24000>: 4 mA to 20 mA current range - * <(-20000) 20000>: ±20 mA current range - * <(-24000) 24000>: ±24 mA current range - * <(-1000) 22000>: −1 mA to +22 mA current range - -Optional properties: - - - reset-gpios : GPIO spec for the RESET pin. If specified, it will be - asserted during driver probe. - - - adi,dc-dc-ilim-microamp: The dc-to-dc converter current limit - The following values are currently supported [uA]: - * 150000 - * 200000 - * 250000 - * 300000 - * 350000 - * 400000 - - - adi,slew-time-us: The time it takes for the output to reach the - full scale [uS] - The supported range is between 133us up to 1023984375us - -AD5758 Example: - - dac@0 { - compatible = "adi,ad5758"; - reg = <0>; - spi-max-frequency = <1000000>; - spi-cpha; - - reset-gpios = <&gpio 22 0>; - - adi,dc-dc-mode = <2>; - adi,range-microvolt = <0 10000000>; - adi,dc-dc-ilim-microamp = <200000>; - adi,slew-time-us = <125000>; - }; diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad5758.yaml b/Documentation/devicetree/bindings/iio/dac/adi,ad5758.yaml new file mode 100644 index 000000000000..626ccb6fe21e --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/adi,ad5758.yaml @@ -0,0 +1,129 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/adi,ad5758.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices AD5758 DAC + +maintainers: + - Michael Hennerich + +properties: + compatible: + const: adi,ad5758 + + reg: + maxItems: 1 + + spi-max-frequency: true + spi-cpha: true + + adi,dc-dc-mode: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [1, 2, 3] + description: | + Mode of operation of the dc-to-dc converter + Dynamic Power Control (DPC) + In this mode, the AD5758 circuitry senses the output voltage and + dynamically regulates the supply voltage, VDPC+, to meet compliance + requirements plus an optimized headroom voltage for the output buffer. + + Programmable Power Control (PPC) + In this mode, the VDPC+ voltage is user-programmable to a fixed level + that needs to accommodate the maximum output load required. + + The output of the DAC core is either converted to a current or + voltage output at the VIOUT pin. Only one mode can be enabled at + any one time. + + The following values are currently supported: + * 1: DPC current mode + * 2: DPC voltage mode + * 3: PPC current mode + + Depending on the selected output mode (voltage or current) one of the + two properties must be present: + + adi,range-microvolt: + $ref: /schemas/types.yaml#/definitions/int32-array + description: | + Voltage output range specified as + enum: + - [[0, 5000000]] + - [[0, 10000000]] + - [[-5000000, 5000000]] + - [[-10000000, 10000000]] + + adi,range-microamp: + $ref: /schemas/types.yaml#/definitions/int32-array + description: | + Current output range specified as + enum: + - [[0, 20000]] + - [[0, 24000]] + - [[4, 24000]] + - [[-20000, 20000]] + - [[-24000, 24000]] + - [[-1000, 22000]] + + reset-gpios: true + + adi,dc-dc-ilim-microamp: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [150000, 200000, 250000, 300000, 350000, 400000] + description: | + The dc-to-dc converter current limit. + + adi,slew-time-us: + description: | + The time it takes for the output to reach the full scale [uS] + minimum: 133 + maximum: 1023984375 + +required: + - compatible + - reg + - spi-cpha + - adi,dc-dc-mode + +allOf: + - if: + properties: + adi,dc-dc-mode: + contains: + enum: [1, 3] + then: + properties: + adi,range-microvolt: false + required: + - adi,range-microamp + else: + properties: + adi,range-microamp: false + required: + - adi,range-microvolt + +additionalProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + dac@0 { + compatible = "adi,ad5758"; + reg = <0>; + spi-max-frequency = <1000000>; + spi-cpha; + + reset-gpios = <&gpio 22 0>; + + adi,dc-dc-mode = <2>; + adi,range-microvolt = <0 10000000>; + adi,dc-dc-ilim-microamp = <200000>; + adi,slew-time-us = <125000>; + }; + }; +... From patchwork Sat Oct 31 13:41:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 314665 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2155C388F7 for ; Sat, 31 Oct 2020 13:44:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AF40D2074F for ; Sat, 31 Oct 2020 13:44:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151859; bh=kpDngPab/R2d4KFy4iyytK0kxVH7yXPqsGEC02A7F3s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=CDC9QsirbxANUN94wrnA701jBwhE/ulwoiTQfDwOeD1wtHq+0StSpivsRf1Xug6xJ ggkbTCQDUEXhi0nN5CE1c3IhPH4un0k8YrmTGh8l30YWwMEjM3Q+kkZ/PJuaUICZWI M+f6L3CvovuAOLS+26Uu+Y9u2JN5uSXq1yqah/AE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727763AbgJaNoT (ORCPT ); Sat, 31 Oct 2020 09:44:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:43478 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727692AbgJaNoT (ORCPT ); Sat, 31 Oct 2020 09:44:19 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D945020791; Sat, 31 Oct 2020 13:44:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151858; bh=kpDngPab/R2d4KFy4iyytK0kxVH7yXPqsGEC02A7F3s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AxbL43lZpCdgWVXYa1heA6ghCAtEwC+E+nGJX/yuvc+bCIRrkwjE6xFkjcQ8XOeUQ lRlB8P7JDYRQH9TDyZDcdwIiOO+FAJYre+rPk8k1ld0lPbP6ih97yRRmOfrWpx2RaY +TQT1/s2hf34QUW7UMRTUfEzcGKK6D+vzZgipGdo= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Rob Herring , Crt Mori , Peter Meerwald Subject: [PATCH v2 24/29] dt-bindings:iio:temperature:melexis, mlx90614 yaml conversion Date: Sat, 31 Oct 2020 13:41:05 +0000 Message-Id: <20201031134110.724233-25-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031134110.724233-1-jic23@kernel.org> References: <20201031134110.724233-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Simple conversion from txt to yaml. I've listed all 3 authors of the driver as maintainers. Signed-off-by: Jonathan Cameron Reviewed-by: Rob Herring Acked-by: Crt Mori Cc: Peter Meerwald --- .../iio/temperature/melexis,mlx90614.yaml | 50 +++++++++++++++++++ .../bindings/iio/temperature/mlx90614.txt | 24 --------- 2 files changed, 50 insertions(+), 24 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/temperature/melexis,mlx90614.yaml b/Documentation/devicetree/bindings/iio/temperature/melexis,mlx90614.yaml new file mode 100644 index 000000000000..d6965a0c1cf3 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/temperature/melexis,mlx90614.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/temperature/melexis,mlx90614.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Melexis MLX90614 contactless IR temperature sensor + +maintainers: + - Peter Meerwald + - Crt Mori + +description: | + http://melexis.com/Infrared-Thermometer-Sensors/Infrared-Thermometer-Sensors/MLX90614-615.aspx + +properties: + compatible: + const: melexis,mlx90614 + + reg: + maxItems: 1 + + wakeup-gpios: + description: + GPIO connected to the SDA line to hold low in order to wake up the + device. In normal operation, the GPIO is set as input and will + not interfere in I2C communication. There is no need for a GPIO + driving the SCL line. If no GPIO is given, power management is disabled. + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + temp-sensor@5a { + compatible = "melexis,mlx90614"; + reg = <0x5a>; + wakeup-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/temperature/mlx90614.txt b/Documentation/devicetree/bindings/iio/temperature/mlx90614.txt deleted file mode 100644 index 9be57b036092..000000000000 --- a/Documentation/devicetree/bindings/iio/temperature/mlx90614.txt +++ /dev/null @@ -1,24 +0,0 @@ -* Melexis MLX90614 contactless IR temperature sensor - -http://melexis.com/Infrared-Thermometer-Sensors/Infrared-Thermometer-Sensors/MLX90614-615.aspx - -Required properties: - - - compatible: should be "melexis,mlx90614" - - reg: the I2C address of the sensor - -Optional properties: - - - wakeup-gpios: device tree identifier of the GPIO connected to the SDA line - to hold low in order to wake up the device. In normal operation, the - GPIO is set as input and will not interfere in I2C communication. There - is no need for a GPIO driving the SCL line. If no GPIO is given, power - management is disabled. - -Example: - -mlx90614@5a { - compatible = "melexis,mlx90614"; - reg = <0x5a>; - wakeup-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; -}; From patchwork Sat Oct 31 13:41:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 320086 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp2268613ilc; Sat, 31 Oct 2020 06:44:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweCwZpPxynz34drhP9TMduICWenmpTY1rRrUg19IDtPUnz27Wd8f+Hy8pXuYjDCl1JXQ4t X-Received: by 2002:a05:6402:142a:: with SMTP id c10mr7803230edx.261.1604151862982; Sat, 31 Oct 2020 06:44:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604151862; cv=none; d=google.com; s=arc-20160816; b=YZ7JGY+e36I63uxTOPC+bxOv2OpB33k19H7t6U3T61VssrHhk2XLsC+xnm6/jY0GlO jU9QmO2/JsonvekKdUq1gQ8XtsRJSUe250zJfzzyvxUbxXXqgFG34+dTUE4JtXtfz3eC yjWRjMIXbvuA1bI4G/yacSOfG3Uhy7tcAc6JAWM6VU2qCZwKdl5hE0It/3NZ5ogtz9P1 PHSUoiEuFmj1l1iao4LN771eV3R9ZlFt/GZf0E0BcShNAR/SgDV5Q3StYa4VhUlD9XWr SPmAFQOWuJpc/2aIYzrJFstxqdskAP2IcvFEivkSElSZ3JhQ7MJiiI0br6unfQiwHX1V ipMw== 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=l6u8xnxx7QCvEIM30sjCBG59t8vZme7SiXVViD0WuCo=; b=0nC1uwpKgmGwvI/+BgoRoLdatYJToLsYN+i+DNHxwejOKqMYvCOKYjtWINMucx9+dS UNDVbZP+SgUSB6b5fXX8vfQEYyKlTLYAHAA946v0SNf55RGxTVms0T7AC8H5bkNBQ2kB kGQPZ+I+co702AML4n7dnq2bzYjmzWAlHqDgVkOjbKRjUUlOdtaPAOLGWNsVMUxFZun8 bCYKxZtFDSASbjlrwgS0OAc4YVdn25ehdjXgVfhnwEE1aMN7S5EwNSb/FJnrrhV3q+6m Cy/vxSg1ZH+si9wTGHbFQ+jumluLD2aUwEjygBF4s+ulYHcl4fGmGvobkH7S1vdjTgyz CsBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RlVtYztL; 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 h25si6243872ejc.209.2020.10.31.06.44.22; Sat, 31 Oct 2020 06:44:22 -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=default header.b=RlVtYztL; 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 S1727782AbgJaNoW (ORCPT + 6 others); Sat, 31 Oct 2020 09:44:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:43522 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727692AbgJaNoU (ORCPT ); Sat, 31 Oct 2020 09:44:20 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9C14220756; Sat, 31 Oct 2020 13:44:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151859; bh=L3enWNiZCZFfSX6Uzisvt5gE1Pq6Nzdoi/g+T4UvAic=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RlVtYztL26Do3f1Hlh6xLieXtnVO2IOUbx5p+1CXnVze/pK/XnYKJfIX4kPwfusR9 29nhsPMBF8MhF16lP/jWJuXWtvmlMMzkRZPtagV5Ukb2j3LX3TLDBHh1NKoID3+ooi Xj7nHnMiIPVH0JpTaC5It75JcC4n1P0ytrmQb6/k= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Rob Herring , Crt Mori Subject: [PATCH v2 25/29] dt-bindings:iio:temperature:melexis, mlx90632 conversion to yaml Date: Sat, 31 Oct 2020 13:41:06 +0000 Message-Id: <20201031134110.724233-26-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031134110.724233-1-jic23@kernel.org> References: <20201031134110.724233-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Technically this could have gone in trivial-devices.yaml, but I have kept it as a separate binding due to the detailed additional description from the text file. Signed-off-by: Jonathan Cameron Reviewed-by: Rob Herring Acked-by: Crt Mori Cc: Crt Mori --- .../iio/temperature/melexis,mlx90632.yaml | 55 +++++++++++++++++++ .../bindings/iio/temperature/mlx90632.txt | 28 ---------- 2 files changed, 55 insertions(+), 28 deletions(-) -- 2.28.0 diff --git a/Documentation/devicetree/bindings/iio/temperature/melexis,mlx90632.yaml b/Documentation/devicetree/bindings/iio/temperature/melexis,mlx90632.yaml new file mode 100644 index 000000000000..b547ddcd544a --- /dev/null +++ b/Documentation/devicetree/bindings/iio/temperature/melexis,mlx90632.yaml @@ -0,0 +1,55 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/temperature/melexis,mlx90632.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Melexis MLX90632 contactless Infra Red temperature sensor + +maintainers: + - Crt Mori + +description: | + https://www.melexis.com/en/documents/documentation/datasheets/datasheet-mlx90632 + + There are various applications for the Infra Red contactless temperature + sensor and MLX90632 is most suitable for consumer applications where + measured object temperature is in range between -20 to 200 degrees + Celsius with relative error of measurement below 1 degree Celsius in + object temperature range for industrial applications. Since it can + operate and measure ambient temperature in range of -20 to 85 degrees + Celsius it is suitable also for outdoor use. + + Be aware that electronics surrounding the sensor can increase ambient + temperature. MLX90632 can be calibrated to reduce the housing effect via + already existing EEPROM parameters. + + Since measured object emissivity effects Infra Red energy emitted, + emissivity should be set before requesting the object temperature. + +properties: + compatible: + const: melexis,mlx90632 + + reg: + maxItems: 1 + description: Default is 0x3a, but can be reprogrammed. + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + temp-sensor@3a { + compatible = "melexis,mlx90632"; + reg = <0x3a>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/temperature/mlx90632.txt b/Documentation/devicetree/bindings/iio/temperature/mlx90632.txt deleted file mode 100644 index 0b05812001f8..000000000000 --- a/Documentation/devicetree/bindings/iio/temperature/mlx90632.txt +++ /dev/null @@ -1,28 +0,0 @@ -* Melexis MLX90632 contactless Infra Red temperature sensor - -Link to datasheet: https://www.melexis.com/en/documents/documentation/datasheets/datasheet-mlx90632 - -There are various applications for the Infra Red contactless temperature sensor -and MLX90632 is most suitable for consumer applications where measured object -temperature is in range between -20 to 200 degrees Celsius with relative error -of measurement below 1 degree Celsius in object temperature range for -industrial applications. Since it can operate and measure ambient temperature -in range of -20 to 85 degrees Celsius it is suitable also for outdoor use. - -Be aware that electronics surrounding the sensor can increase ambient -temperature. MLX90632 can be calibrated to reduce the housing effect via -already existing EEPROM parameters. - -Since measured object emissivity effects Infra Red energy emitted, emissivity -should be set before requesting the object temperature. - -Required properties: - - compatible: should be "melexis,mlx90632" - - reg: the I2C address of the sensor (default 0x3a) - -Example: - -mlx90632@3a { - compatible = "melexis,mlx90632"; - reg = <0x3a>; -}; From patchwork Sat Oct 31 13:41:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 314664 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 72466C56201 for ; Sat, 31 Oct 2020 13:44:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 48C0E20731 for ; Sat, 31 Oct 2020 13:44:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151863; bh=3VVLUi4wlIzQzCDCMT93AnsiDsNg8FKNZYkMTif4bQk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=RgHn/BgKUq0Y1TMlIaaehSI+MwQlWJ+JeOMivcHPn0aXNsKzo4OgD5Vb/4WD3m1ej P7nkOiNYD6QEfMIbZYE1150Sy10BTphN6+63s7nYkBLDWG22283oc53q6BlJwCQEoq 8BELPi4iAUVMIGttbcMVLaV93i4Oumu2pbPFdczA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727785AbgJaNoW (ORCPT ); Sat, 31 Oct 2020 09:44:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:43544 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727461AbgJaNoW (ORCPT ); Sat, 31 Oct 2020 09:44:22 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 338F520723; Sat, 31 Oct 2020 13:44:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151861; bh=3VVLUi4wlIzQzCDCMT93AnsiDsNg8FKNZYkMTif4bQk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XRjtbkYE5PgMSRNBOpjkVaXCz5tjbdi4ayP4cLQHzcLxl5+xtp06kcDU6uTSLZxoP oZCXannz/ZQvqTIigsCzyDRYbUlSdkWHvTZvH7/ngZfIxXGK6pQZE7ijoSHk7S3woF WoWqd8nYWqXN05nIDytSqq4d6Ge3qFWslXXqUpD8= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Rob Herring , Manivannan Sadhasivam Subject: [PATCH v2 26/29] dt-bindings:iio:temperature:meas, tsys01 move to trivial-devices.yaml Date: Sat, 31 Oct 2020 13:41:07 +0000 Message-Id: <20201031134110.724233-27-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031134110.724233-1-jic23@kernel.org> References: <20201031134110.724233-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron The existing binding description brings little value and the similar meas,* parts are in trivial-devices.yaml so move this one there to join them. Signed-off-by: Jonathan Cameron Reviewed-by: Rob Herring Cc: Manivannan Sadhasivam Acked-by: Manivannan Sadhasivam --- .../bindings/iio/temperature/tsys01.txt | 19 ------------------- .../devicetree/bindings/trivial-devices.yaml | 2 ++ 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/temperature/tsys01.txt b/Documentation/devicetree/bindings/iio/temperature/tsys01.txt deleted file mode 100644 index 0d5cc5595d0c..000000000000 --- a/Documentation/devicetree/bindings/iio/temperature/tsys01.txt +++ /dev/null @@ -1,19 +0,0 @@ -* TSYS01 - Measurement Specialties temperature sensor - -Required properties: - - - compatible: should be "meas,tsys01" - - reg: I2C address of the sensor (changeable via CSB pin) - - ------------------------ - | CSB | Device Address | - ------------------------ - 1 0x76 - 0 0x77 - -Example: - -tsys01@76 { - compatible = "meas,tsys01"; - reg = <0x76>; -}; diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml index 8d8eadbab473..cb4fd8f29675 100644 --- a/Documentation/devicetree/bindings/trivial-devices.yaml +++ b/Documentation/devicetree/bindings/trivial-devices.yaml @@ -144,6 +144,8 @@ properties: - meas,ms8607-humidity # Measurement Specialities temp and pressure part of ms8607 device - meas,ms8607-temppressure + # Measurement Specialties temperature sensor + - meas,tsys01 # Microchip differential I2C ADC, 1 Channel, 18 bit - microchip,mcp3421 # Microchip differential I2C ADC, 2 Channel, 18 bit From patchwork Sat Oct 31 13:41:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 320088 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp2268640ilc; Sat, 31 Oct 2020 06:44:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDEsV3FbC7qY5QbnTnDCvCNp5zWNoX46PO6plAiM4+zJPhkbIrq4MDkFhw3awy5pxqKsCp X-Received: by 2002:a17:906:52c6:: with SMTP id w6mr6793286ejn.199.1604151865874; Sat, 31 Oct 2020 06:44:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604151865; cv=none; d=google.com; s=arc-20160816; b=hZa49tZCZFg4qcQN7kz8iTNuDjJwaeNGrSCkT9cITe4aiseKg6FjtZQXs1VmZqOEHB hWGTJJhW1GK2KcZV6vfhzZaTBpAMYXKNXF6hx+m8DV9VhOdbc2RsY6z0FGWH34Px3H/I LcmO/IpwX/R+G++TDbTw18WqGFvXdlmcRfCA+gIpBW5FKEGylLdtDKngoSeOtVH6n9AD /Bvhpc0vIe9/dcg7Mp9LcFJUmynCiytXVJoSoWDVujgj8YXJhV8mar4eXkSP2SRurC1I 32ehs1Md4Dy8JIXK7uq+aKj15lAvcsbyAz1Gy6WJuPjgankVKcDCjxk6+fiSrp5Efg0R quRg== 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=Mw8rW7VwUiM8JaBRGgmxODlgHUTk5+mGP3fpJVoeriM=; b=iU3gpF88gEYlDErk2VpyIDS1QxBqSMn0kDTnfksiUknyaNr0Kku1zbDBUbIUF5KLDA Ir+1KXPiOUUUYi54mgwEy9t/q+Ol3WV6jQAOu+j7lNkZHTGgYSmHq30Ovh7tX5vDDUN8 5OEVgw2Lle8vDuNLDxDWbeuiUqfTqqFTq/GXjpUCySwCm7UWgdu/n5BZosjiTz9VYjWg wFapmi42HqNkodpQmV9KBJFX1ih8uy11HZzZM6/U5giykTEzs/8dho7ZTcs01hrpErGC GhD/t7w6WLikMSRB1peep77+cBHpDvwB49KL8iGJNlptEtvyhbZnIMmYyyanPezmRzFQ nOmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sSm6HQun; 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 h25si6243872ejc.209.2020.10.31.06.44.25; Sat, 31 Oct 2020 06:44:25 -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=default header.b=sSm6HQun; 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 S1727794AbgJaNoY (ORCPT + 6 others); Sat, 31 Oct 2020 09:44:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:43582 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727461AbgJaNoX (ORCPT ); Sat, 31 Oct 2020 09:44:23 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C8D5B2071A; Sat, 31 Oct 2020 13:44:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151862; bh=qW4vYQl7MuWt6vW94tGoBpICirXSoCPZ+2WN9wqYkJE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sSm6HQun2vDjM2E4YhQYRtMdcjQOloR1HzVljAOayYTnkWIDxpopRILKw25tHXii3 A2ZWBeVl0iMLllI9X8RCkiOCxHTVTxIUD+qspcYXWpvjcnfPV2dAwPLY6t7lyo99A6 gFdHkLVpWQsZmK5B13lCsKz+8Me3WGjsTDsEaUjI= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Rob Herring Subject: [PATCH v2 27/29] dt-bindings:iio:temperature:maxim, max31856 yaml conversion. Date: Sat, 31 Oct 2020 13:41:08 +0000 Message-Id: <20201031134110.724233-28-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031134110.724233-1-jic23@kernel.org> References: <20201031134110.724233-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Simple txt to yaml conversion of this binding. Paresh Chaudhary's email is bouncing so for now I've listed myself as maintainer. Signed-off-by: Jonathan Cameron Reviewed-by: Rob Herring --- .../bindings/iio/temperature/max31856.txt | 24 --------- .../iio/temperature/maxim,max31856.yaml | 54 +++++++++++++++++++ 2 files changed, 54 insertions(+), 24 deletions(-) -- 2.28.0 diff --git a/Documentation/devicetree/bindings/iio/temperature/max31856.txt b/Documentation/devicetree/bindings/iio/temperature/max31856.txt deleted file mode 100644 index 06ab43bb4de8..000000000000 --- a/Documentation/devicetree/bindings/iio/temperature/max31856.txt +++ /dev/null @@ -1,24 +0,0 @@ -Maxim MAX31856 thermocouple support - -https://datasheets.maximintegrated.com/en/ds/MAX31856.pdf - -Optional property: - - thermocouple-type: Type of thermocouple (THERMOCOUPLE_TYPE_K if - omitted). Supported types are B, E, J, K, N, R, S, T. - -Required properties: - - compatible: must be "maxim,max31856" - - reg: SPI chip select number for the device - - spi-max-frequency: As per datasheet max. supported freq is 5000000 - - spi-cpha: must be defined for max31856 to enable SPI mode 1 - - Refer to spi/spi-bus.txt for generic SPI slave bindings. - - Example: - temp-sensor@0 { - compatible = "maxim,max31856"; - reg = <0>; - spi-max-frequency = <5000000>; - spi-cpha; - thermocouple-type = ; - }; diff --git a/Documentation/devicetree/bindings/iio/temperature/maxim,max31856.yaml b/Documentation/devicetree/bindings/iio/temperature/maxim,max31856.yaml new file mode 100644 index 000000000000..873b34766676 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/temperature/maxim,max31856.yaml @@ -0,0 +1,54 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/temperature/maxim,max31856.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Maxim MAX31856 thermocouple support + +maintainers: + - Jonathan Cameron + +description: | + https://datasheets.maximintegrated.com/en/ds/MAX31856.pdf + +properties: + compatible: + const: maxim,max31856 + + reg: + maxItems: 1 + + spi-max-frequency: true + spi-cpha: true + + thermocouple-type: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Type of thermocouple (THERMOCOUPLE_TYPE_K if omitted). + Use defines in dt-bindings/iio/temperature/thermocouple.h. + Supported types are B, E, J, K, N, R, S, T. + +required: + - compatible + - reg + - spi-cpha + +additionalProperties: false + +examples: + - | + #include + spi { + #address-cells = <1>; + #size-cells = <0>; + + temp-sensor@0 { + compatible = "maxim,max31856"; + reg = <0>; + spi-max-frequency = <5000000>; + spi-cpha; + thermocouple-type = ; + }; + }; +... From patchwork Sat Oct 31 13:41:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 314663 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 531E3C55178 for ; Sat, 31 Oct 2020 13:44:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1FE1420731 for ; Sat, 31 Oct 2020 13:44:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151866; bh=Ruqz8ueB74+ggqtNBpFiwiBv8rLdQK7FbuIhhh3IIek=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=RoooPsiAzNuV2CvYsHOKviU4ciopTeBTNVWKiMYyPzP7E/boNphVnMOrU+jUazvq8 Oq0t+LTFSxLQtd3fnNuL+WAFK6jgsmAlMrsW/9NJ6g4nfGGM59hQ6C71GG7ubvwWDb 38iNgV6WS5UUurkQn1slmqcviUN4B+oBaxUZyNbw= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727800AbgJaNoZ (ORCPT ); Sat, 31 Oct 2020 09:44:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:43614 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727461AbgJaNoZ (ORCPT ); Sat, 31 Oct 2020 09:44:25 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3D5A920791; Sat, 31 Oct 2020 13:44:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151864; bh=Ruqz8ueB74+ggqtNBpFiwiBv8rLdQK7FbuIhhh3IIek=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZyumrEFEoO68bR7PeT+8V9tEbVMICLXLh0s39nS1TO1F07O3+nh8fwRsEk2aU+WUM TVa/7n9KuNyMJDjGiQ1k6vAj/g0zMiSdJQ7NtVGmI75/QfgdjOZ7QEiBHHot3I96uQ KmC2ZvU4IK5pYvTQpxDGDnf6kPRB7TQiOCNdYI5E= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Rob Herring , Matt Ranostay Subject: [PATCH v2 28/29] dt-bindings:iio:temperature:maxim_thermocouple.txt to maxim, max31855k.yaml Date: Sat, 31 Oct 2020 13:41:09 +0000 Message-Id: <20201031134110.724233-29-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031134110.724233-1-jic23@kernel.org> References: <20201031134110.724233-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Given we already have another maxim thermocouple driver that isn't covered by this binding it seems a better idea to chose to name it after a specific part. I added an additional example for the maxim,max6755 to illustrate the need for spi-cpha for that part. Signed-off-by: Jonathan Cameron Reviewed-by: Rob Herring Acked-by: Matt Ranostay --- .../iio/temperature/maxim,max31855k.yaml | 76 +++++++++++++++++++ .../iio/temperature/maxim_thermocouple.txt | 24 ------ 2 files changed, 76 insertions(+), 24 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/temperature/maxim,max31855k.yaml b/Documentation/devicetree/bindings/iio/temperature/maxim,max31855k.yaml new file mode 100644 index 000000000000..9969bac66aa1 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/temperature/maxim,max31855k.yaml @@ -0,0 +1,76 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/temperature/maxim,max31855k.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Maxim MAX31855 and similar thermocouples + +maintainers: + - Matt Ranostay + +description: | + https://datasheets.maximintegrated.com/en/ds/MAX6675.pdf + https://datasheets.maximintegrated.com/en/ds/MAX31855.pdf + +properties: + compatible: + description: + The generic maxim,max31855 compatible is deprecated in favour of + the thermocouple type specific variants. + enum: + - maxim,max6675 + - maxim,max31855 + - maxim,max31855k + - maxim,max31855j + - maxim,max31855n + - maxim,max31855s + - maxim,max31855t + - maxim,max31855e + - maxim,max31855r + + reg: + maxItems: 1 + + spi-max-frequency: true + spi-cpha: true + +required: + - compatible + - reg + +allOf: + - if: + properties: + compatible: + contains: + enum: + - maxim,max6675 + then: + required: + - spi-cpha + else: + properties: + spi-cpha: false + +additionalProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + temp-sensor@0 { + compatible = "maxim,max31855k"; + reg = <0>; + spi-max-frequency = <4300000>; + }; + temp-sensor@1 { + compatible = "maxim,max6675"; + reg = <1>; + spi-max-frequency = <4300000>; + spi-cpha; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/temperature/maxim_thermocouple.txt b/Documentation/devicetree/bindings/iio/temperature/maxim_thermocouple.txt deleted file mode 100644 index bb85cd0e039c..000000000000 --- a/Documentation/devicetree/bindings/iio/temperature/maxim_thermocouple.txt +++ /dev/null @@ -1,24 +0,0 @@ -Maxim thermocouple support - -* https://datasheets.maximintegrated.com/en/ds/MAX6675.pdf -* https://datasheets.maximintegrated.com/en/ds/MAX31855.pdf - -Required properties: - - - compatible: must be "maxim,max6675" or one of the following: - "maxim,max31855k", "maxim,max31855j", "maxim,max31855n", - "maxim,max31855s", "maxim,max31855t", "maxim,max31855e", - "maxim,max31855r"; the generic "max,max31855" is deprecated. - - reg: SPI chip select number for the device - - spi-max-frequency: must be 4300000 - - spi-cpha: must be defined for max6675 to enable SPI mode 1 - - Refer to spi/spi-bus.txt for generic SPI slave bindings. - -Example: - - max31855@0 { - compatible = "maxim,max31855k"; - reg = <0>; - spi-max-frequency = <4300000>; - }; From patchwork Sat Oct 31 13:41:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 320090 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp2268663ilc; Sat, 31 Oct 2020 06:44:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhOiqrhHozelf/NBGt8Dm4gwZf85g+xGF+87nV95NepG1JwAZCWYmrzDZrJ8XHi4NszpRb X-Received: by 2002:a50:a845:: with SMTP id j63mr2457650edc.32.1604151867882; Sat, 31 Oct 2020 06:44:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604151867; cv=none; d=google.com; s=arc-20160816; b=EEZPIaXJb6YEAcSrNLuvMUt0gCrd/YMPPyVJ4I2mABsLwJXzo8RdAWFf1YiCZFCVLM BZmO4CgfaOn9vrBAG8+hgxNZTq/ucdwlVlKcWf7IRAbONmTf8dlP/GFGKdlBk7bLOKg3 Wjs1jnIiGwdckPjldOPKu6NgoQSsbPltQOhExnmULJUP/m9iAQNAhNOsNwwYSm3sUUzH JN5HIBXzrRkV7xXSNsnkCvt/E3X0cPM/tl/aDs07T6jOQoCLxRlD6aWiM9in1tphMzb9 D9Vn1Czd0ErY5N9YQpw/hVXtxMKjHwsc9hZhUhe/L+15RU3bO3blkMmwnJOOfSi2eGMb XS8Q== 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=RqxtgH19Opprx6OYAMMfEoplto/inQp2Du4si31xRXU=; b=hqPeQlYRBM9zmxfqHKmMDzFI8TBLK2T2Wc/0tI/Ekotoo5SAIieU7eFN/FYC4oWFUW Lv2b3sd08am+dj2kGDR0azv0A4V4j4a2ODYywwEBUgZSozHBndpO1Rzzfi3PVocypeEy XvjKefG5ksdZemJ5/1bzoqK1jhjgRDvyQcEg/3SDvElWWXHKhyq7Qi8x2y83Do8WD+pZ wNS097fHaAppmm5pTRnBa48OhXj7QCud/Hs/VvlNQbaFFepSDHsWA/3XR3ekBiLo14mD 184QRsl6Btw+3jaORZGkRQnlCBxc59xZUZM+8RamUIGFJhbvoN344c4n1xizjcDu7Jz5 MLng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=V5MCvJYr; 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 h25si6243872ejc.209.2020.10.31.06.44.27; Sat, 31 Oct 2020 06:44:27 -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=default header.b=V5MCvJYr; 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 S1727805AbgJaNo0 (ORCPT + 6 others); Sat, 31 Oct 2020 09:44:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:43644 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727461AbgJaNo0 (ORCPT ); Sat, 31 Oct 2020 09:44:26 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CB3A020756; Sat, 31 Oct 2020 13:44:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151866; bh=ZMZApij4WsX+DlKlfh/xbMOnotONaYZnxY/ZbTKbQEI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=V5MCvJYrVXBPCtnHtVNQ6s54naBAEYSPr/lRAb9SVvqC/vQUsvYlHJLuG3SYyU4WB feZxRvRBxVgSP/C80EfhJrUzotBnBg6C1Jm6F6yPinbvGtST3Gzue1XTH4So8NigTE HZ+2if6AH022Qec2LQUZ+oCZFyy9KTnj0r38K7FQ= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Rob Herring , Manivannan Sadhasivam Subject: [PATCH v2 29/29] dt-bindings:iio:temperature:ti, tmp07 yaml conversion Date: Sat, 31 Oct 2020 13:41:10 +0000 Message-Id: <20201031134110.724233-30-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031134110.724233-1-jic23@kernel.org> References: <20201031134110.724233-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Simple conversion from txt to yaml. Signed-off-by: Jonathan Cameron Reviewed-by: Rob Herring Acked-by: Manivannan Sadhasivam --- .../bindings/iio/temperature/ti,tmp007.yaml | 57 +++++++++++++++++++ .../bindings/iio/temperature/tmp007.txt | 33 ----------- 2 files changed, 57 insertions(+), 33 deletions(-) -- 2.28.0 diff --git a/Documentation/devicetree/bindings/iio/temperature/ti,tmp007.yaml b/Documentation/devicetree/bindings/iio/temperature/ti,tmp007.yaml new file mode 100644 index 000000000000..3c2b7189fa2e --- /dev/null +++ b/Documentation/devicetree/bindings/iio/temperature/ti,tmp007.yaml @@ -0,0 +1,57 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/temperature/ti,tmp007.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: IR thermopile sensor with integrated math engine + +maintainers: + - Manivannan Sadhasivam + +description: | + http://www.ti.com/lit/ds/symlink/tmp007.pdf + +properties: + compatible: + const: ti,tmp007 + + reg: + description: | + The I2C address of the sensor (changeable via ADR pins) + ------------------------------ + |ADR1 | ADR0 | Device Address| + ------------------------------ + 0 0 0x40 + 0 1 0x41 + 0 SDA 0x42 + 0 SCL 0x43 + 1 0 0x44 + 1 1 0x45 + 1 SDA 0x46 + 1 SCL 0x47 + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + temp-sensor@40 { + compatible = "ti,tmp007"; + reg = <0x40>; + interrupt-parent = <&gpio0>; + interrupts = <5 0x08>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/temperature/tmp007.txt b/Documentation/devicetree/bindings/iio/temperature/tmp007.txt deleted file mode 100644 index da0af234a357..000000000000 --- a/Documentation/devicetree/bindings/iio/temperature/tmp007.txt +++ /dev/null @@ -1,33 +0,0 @@ -* TI TMP007 - IR thermopile sensor with integrated math engine - -Link to datasheet: http://www.ti.com/lit/ds/symlink/tmp007.pdf - -Required properties: - - - compatible: should be "ti,tmp007" - - reg: the I2C address of the sensor (changeable via ADR pins) - ------------------------------ - |ADR1 | ADR0 | Device Address| - ------------------------------ - 0 0 0x40 - 0 1 0x41 - 0 SDA 0x42 - 0 SCL 0x43 - 1 0 0x44 - 1 1 0x45 - 1 SDA 0x46 - 1 SCL 0x47 - -Optional properties: - - - interrupts: interrupt mapping for GPIO IRQ (level active low) - -Example: - -tmp007@40 { - compatible = "ti,tmp007"; - reg = <0x40>; - interrupt-parent = <&gpio0>; - interrupts = <5 0x08>; -}; -