From patchwork Wed Jun 13 06:39:47 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: 138416 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp321635lji; Tue, 12 Jun 2018 23:40:09 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJdNDXI/ePBzNRqETQ+vhanjyktbymn2fy+xc2ynAg5rs5Uhw6uX8Ff0NCa7O7niNXX6vIq X-Received: by 2002:a62:db05:: with SMTP id f5-v6mr3569501pfg.123.1528872009832; Tue, 12 Jun 2018 23:40:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528872009; cv=none; d=google.com; s=arc-20160816; b=bxw2hUyd0/7hGgHUt8Txub8xalBcB6OGAHznnuQ0wAVFAuQiGzqIrUD/yEi4UMJIbU iB6BmlhF+p7zzlFYNLewUTcaFlDUSFO8aFf/fyw6P2dEU1Z6oFpLe/JUiHqTJiEIxTmH tsQ0REwM9KuPA25w51Zai/zddoGoo/2JyBLKJHvcyj9hLbrThW8xtuOG7g7OneIwFoYa Cj1fj7JRkOmrdWmwLEjQWv58FzVfiMEt+Sq1F20jWX8IieSJ6JRZam6BNUGNY9U24cf+ kFNwA14FRuJWiooTr+r5gaJXVFOA77cT63xuLxUgjEDRo5Vi4eVA3z/quqrKjcfhuPaO gyQw== 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=EtPNQrnTSbhL4VPvukB32hm0rTJmQjx1ut959x+v4jw=; b=IrucILUMhAkzpCsJJ7XO5phJRvFCjBx9GC8WVhgcg8ghLoWuuFSR++h7+hg2ETjMRm DozIAtxhF5iy+qezLDySu+B6FeP4iCNqlAAtd2u5UIoiwH+mhkq962w4l2eBOpuY12Pc jAK+z7q68mQAM55deBOYJdKkEwUlmvdyT6Arr7ZJB7bFJQgsI1rs4xmPZ+u9rB8qo99q 1Phdbd4VT2PwrcQozvw7UOKQJv3LWGq3TTVGB/keiE/zId1VS1kMwQ2osHjAv5CLgsK7 DQjib2fedIt1zB4j9BcSkhdEktsVlJaPE4isZT0Bsfy1lFJDAG/mWIQDJT5sT99dztxB YZEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Nzkg7UdK; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (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 q62-v6si1765225pga.217.2018.06.12.23.40.09; Tue, 12 Jun 2018 23:40:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Nzkg7UdK; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933822AbeFMGkI (ORCPT + 5 others); Wed, 13 Jun 2018 02:40:08 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:38688 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933618AbeFMGkH (ORCPT ); Wed, 13 Jun 2018 02:40:07 -0400 Received: by mail-pf0-f195.google.com with SMTP id b74-v6so857021pfl.5 for ; Tue, 12 Jun 2018 23:40:07 -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=GuFBaPGj5UtNr+isnApzAV6VlnxDQ4xF9RZHfZlSpGY=; b=Nzkg7UdKaDOiZr7llVkrDmZkc1mpAvXxOboyWzbWl//wEQ9QeRQWFeW9/ol7Znq9yU xfBjLj5cOaMZZJgDGW1m24XUBzNWONUIENIki5pyKOWydXBq+5nR4E31AHj2/98VhBRv a2jAVrZyE/5anWPn1WbxLZmgX7/iQLcmPwH5E= 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=GuFBaPGj5UtNr+isnApzAV6VlnxDQ4xF9RZHfZlSpGY=; b=s4x3QrMlncnlUF84Vphuidof3FrNEqWTVputrbovo4WYDJEBEfeus0mqPO3A85TnxF dW+loA76d+Vnv8znMFKyYGqdAHQwF3t7nKdcLy19oVstfMsZTWIueUMnrPA8XQDWpX/M ZAZ6+JEMfHNo0tU277NLRkt6hZG2bXMAhfBhBOwU7JJNMNlx91Ai90FsPSKLxx6MGNHN 700ervsCc49uhpY4QSrj6IGYKaE85Qv3fC3sv3r7iybKCYVCOxUQlL98RMM0AaYcywS4 M/cVkR7mpMDTArw9tjg7xXmAvisV8sf7q2EdWoaWzWItwkaMI0Iks6nFJkfS6dH35ptO hdWQ== X-Gm-Message-State: APt69E16Q3q1X3HH5PdKxhLZBDZ5zRF1LYyvVSd74wIGD9wMbKUK/d+r OrkgRl6fuars6tLzGust7nNt/A== X-Received: by 2002:aa7:818b:: with SMTP id g11-v6mr3648159pfi.50.1528872006876; Tue, 12 Jun 2018 23:40:06 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id q71-v6sm926738pfd.165.2018.06.12.23.40.02 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 Jun 2018 23:40:06 -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 1/2] dt-bindings: iio: Add Spreadtrum SC27XX PMICs ADC controller documentation Date: Wed, 13 Jun 2018 14:39:47 +0800 Message-Id: <9b6743bb6782041b7fec9ed0e166faf2b6456de4.1528871668.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patch adds the binding documentation for Spreadtrum SC27XX series PMICs ADC controller device. Signed-off-by: Baolin Wang --- .../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 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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>; + }; + };