From patchwork Fri Jun 15 07:03:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 138654 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp475213lji; Fri, 15 Jun 2018 00:03:50 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI1pRTeV2os8OcmsbPI1FEktOVO2CGU/MJu7LmuWnNe5c9hOEHUfJChHgkGXV6dEK13ovwN X-Received: by 2002:a63:7a48:: with SMTP id j8-v6mr427922pgn.415.1529046230450; Fri, 15 Jun 2018 00:03:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529046230; cv=none; d=google.com; s=arc-20160816; b=Y6Asu94dSFjSj6nYCrRHX5bA2RP9piOJe9ydz5py4Xh/pnprPVxSn9MHsSlRTY5MMr tgfqm1Jr3kQPQ7QMoXjJT5333C1vXoCUYGD4b2E70/cNrKpmTXTdoj6xxHsqzCihBHyn KZyuXXknkbXQ/Q6tA6qyhE5Cdi5FF4L8Ec6j+sxNPDWc6JUqFPP630oDGQkzjPwvg6ly ojsD84dt/XTnl2EYo4xmpI5cJFyZRxjb50kMGT5R8DQB3OT/GLnr2QRWb4yxrirT+F2d HXYY5Q/kCQfXLmpTvMB6d2O7zDPnbinmW44ucN3HN0jJ41/J7GMcD6yJznHfQ9NMu0na x9Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=yQlaqM5XGttjt680bJd3u67BVy+6fjXx4Z5qhtLnlOw=; b=wKaTPD+xDbaIVjzDvL5d8IO3FcdjXqwQ534v97MOt4wsAEznca7AbfcunQrSi9ygcS M7c0RmyEGD85RgEYwAVAo2gW8R2Y9Uz4rgZtQEgLC34rQmgptJ1B64Hy/PD/9/GcLEmm FgSY0MtgcqRUFO7TB/vtUSp/ftGu7hHHu6qGr0cTvhDTb40sSH8sJEk1W9354sTAhCv9 QmhkA/HgvEOAjEgnCRfprVzk+IAbhJGQMgZQEtN/1ZsI4qV/X4WuzsIBKmgYenMo2/7D r2opGB5b7ok20FXe9ijijfGtZz/DmBfxtq4vj9khIqm25wqN1kWBfBte79hIr4Ds9os7 uVRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CceKRdm6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33-v6si7391593plo.505.2018.06.15.00.03.50; Fri, 15 Jun 2018 00:03:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CceKRdm6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755744AbeFOHDs (ORCPT + 30 others); Fri, 15 Jun 2018 03:03:48 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:46380 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754623AbeFOHDq (ORCPT ); Fri, 15 Jun 2018 03:03:46 -0400 Received: by mail-pf0-f194.google.com with SMTP id q1-v6so4435044pff.13 for ; Fri, 15 Jun 2018 00:03:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=yQlaqM5XGttjt680bJd3u67BVy+6fjXx4Z5qhtLnlOw=; b=CceKRdm6I1wLY6D1klaJHsKaKzk+6IS+wkqEYKSxOW0hciAnwai+rD72BWFZKENVka bzVawnOsJnuUqA/Pk7FblIjIluFT4gERAVkma3gfP2tL8E0E9K2eehe18VqvZZ0rVfGR I1KoGUCJv3V1DLKX6JHWFkSd8wSusREL8Xiuo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=yQlaqM5XGttjt680bJd3u67BVy+6fjXx4Z5qhtLnlOw=; b=I7w4Luc1aWJJXs3zG0mj9xBJXCPNtknDzfGWqZ+cCP+wsGVuboy9CMnFnJZLD+bIIv NL8v6GNQH97dP+auApESbrXl6zo+cxvz/ShcRMHFsFfmZ8jBZfOxQ/PJLLjRket4TQOU DmJuCodzAu5gdd1NXOabrPoNifirD6XeX3fW01jkKewsYUvUjItP1dLSJX1jrdEGnwHs DAyISWznDV3e/CJmqdRbV8Wg7BHmxutCjxnhWybpcriDRVtIbEIHEfWSV1WzbMbqZplL sCNTQbESzbdE/2jY+gdbU6bV9HblzCnqLzk94B2VXcyZZDYsmy5DtyjD44gbzjHhIzqs PoOw== X-Gm-Message-State: APt69E3nDnFXOhCWcZ2zWIIo/dcQLGdf/XogzG5L86jL0LbI/xX8d32F hzSFwvMbJngzDOfdh0u4mKmQjw== X-Received: by 2002:a63:87c8:: with SMTP id i191-v6mr469919pge.124.1529046225605; Fri, 15 Jun 2018 00:03:45 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id h78-v6sm15139330pfh.141.2018.06.15.00.03.41 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 15 Jun 2018 00:03:45 -0700 (PDT) From: Baolin Wang To: jic23@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com Cc: baolin.wang@linaro.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, freeman.liu@spreadtrum.com, broonie@kernel.org, devicetree@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] dt-bindings: iio: Add Spreadtrum SC27XX PMICs ADC controller documentation Date: Fri, 15 Jun 2018 15:03:35 +0800 Message-Id: <9b6743bb6782041b7fec9ed0e166faf2b6456de4.1529040864.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds the binding documentation for Spreadtrum SC27XX series PMICs ADC controller device. Signed-off-by: Baolin Wang --- Changes since v1: - No updates. --- .../bindings/iio/adc/sprd,sc27xx-adc.txt | 36 ++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/sprd,sc27xx-adc.txt -- 1.7.9.5 diff --git a/Documentation/devicetree/bindings/iio/adc/sprd,sc27xx-adc.txt b/Documentation/devicetree/bindings/iio/adc/sprd,sc27xx-adc.txt new file mode 100644 index 0000000..8aad960 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/sprd,sc27xx-adc.txt @@ -0,0 +1,36 @@ +Spreadtrum SC27XX series PMICs ADC binding + +Required properties: +- compatible: Should be one of the following. + "sprd,sc2720-adc" + "sprd,sc2721-adc" + "sprd,sc2723-adc" + "sprd,sc2730-adc" + "sprd,sc2731-adc" +- reg: The address offset of ADC controller. +- interrupt-parent: The interrupt controller. +- interrupts: The interrupt number for the ADC device. +- #io-channel-cells: Number of cells in an IIO specifier. +- hwlocks: Reference to a phandle of a hwlock provider node. + +Example: + + sc2731_pmic: pmic@0 { + compatible = "sprd,sc2731"; + reg = <0>; + spi-max-frequency = <26000000>; + interrupts = ; + interrupt-controller; + #interrupt-cells = <2>; + #address-cells = <1>; + #size-cells = <0>; + + pmic_adc: adc@480 { + compatible = "sprd,sc2731-adc"; + reg = <0x480>; + interrupt-parent = <&sc2731_pmic>; + interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; + #io-channel-cells = <1>; + hwlocks = <&hwlock 4>; + }; + };