From patchwork Thu Jun 21 03:14:04 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: 139440 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1523416lji; Wed, 20 Jun 2018 20:14:53 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIRGfTPToqz9JY/Ob53Wk3yoQqd3jRsp0fraXA8MxsmktcCG7bls3KoTS5favRmlH4/7AsW X-Received: by 2002:a63:a809:: with SMTP id o9-v6mr21452145pgf.313.1529550893448; Wed, 20 Jun 2018 20:14:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529550893; cv=none; d=google.com; s=arc-20160816; b=g+9LXDjTBjcTyAoAs2qpXlNXdQ7ClTnEbLOxw2fPwpyAxaL0I+foXDNdMQ2HalmYPD lJJqz19MK6Hd2nPWNBZUDWtHqJxyqTFswfn4QxnzCPO+VnAHPxU87D42CQxMaj5weols w/unam5LL7ZYgNKt2WpGXrmSn+hsYXqKs6KV9wOMFvc+6ipBifxeIVg6HZfKpZpHx5A6 LlX2QLPTG1dZBlBw7EM1bc7DTQB3b+HTkHhaflgvNY5tN73iI6y795bYPIlRjie54+RY YXAo8F6Y/jhPGqF9C/LqmL69dhCPCv4n+5Lue0M9REPv1Xp6mJLTFZDesR3479wq5Dd1 ybjw== 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=hcb0XvPqQrI5afivLdGLa66IGU2yhAFugkmMZUDAR+8=; b=OHldKtMtHKNc9/skmqLJkPPQgRYfneVU2DdH0IYh2J2YXfMDvLeWClkBpVq/WNlTMl SDP9R21qRjQbxj6k58afYNX1JSoueP7ZIoG7i4rJaLkJx7w/wo0hw2aIs6ELu04zYL19 8FrbRn9mtaW/1QfArNNb22NLxRPaCmEwSJwSht7N/LB22wJscdvA/5ZGynfCVTJLwXeg oYb+Xq0M/IBEibr0S48q9ZLAcNy0PiTO7L1z39pU54MycqLZ5PUbtygtHx5AUdPeI1kd t3lGevOPfAZFAygXR97QU1lhoCGFdUi80nOwYdQHcH0YA7wcXLsMXWv/04BbcBtFip0F vwDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="FPdtJY/9"; 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 t15-v6si3209786pgs.647.2018.06.20.20.14.52; Wed, 20 Jun 2018 20:14:53 -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="FPdtJY/9"; 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 S1754206AbeFUDOv (ORCPT + 5 others); Wed, 20 Jun 2018 23:14:51 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:40473 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754104AbeFUDOu (ORCPT ); Wed, 20 Jun 2018 23:14:50 -0400 Received: by mail-pl0-f68.google.com with SMTP id t12-v6so851757plo.7 for ; Wed, 20 Jun 2018 20:14:50 -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=Nk7zKxhi16MQcphw1c9ypcmwMqZAMdYmp9p5N1ea/lY=; b=FPdtJY/9Ioeq2KBOeYmGAfVZn8Tl6qCz1hXzVkOZfHWdBZ0FAlx2CODwpkqWCIfKBr dMRLIyII24HYoD7vGzhJBTlWJ4O7sY5J4UCzI8MWFRbGKwy96c8R+kPsYgCPRvmsxFGd pEQdJkJ3Y4omAsynhbAsgm3yP9AC8hlU5oV5U= 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=Nk7zKxhi16MQcphw1c9ypcmwMqZAMdYmp9p5N1ea/lY=; b=l+2LyPz9mU/rTrjIDm9mvHAQXnu6f0olH7hWuQ+KcqJzaMN3WC9dAo310OKkAobJKE V1IU8mgpfIgo2CarxsUun8fi16UXtlFxFgE0x8dvFT+6DHP4kBAZiSkrBCTJjzbvV6/t NjKheSIeoxQ/XDq9XV6A0S4+9PH1dCW1gt6zZwc3gSnrJyprSeg6zIm1dYaEsuq/a7mO 6PkO2FmOz/GvxkJQaWo0oQymrdM+eWxy7MzWX1w/8Kp6vQ0DaqLRxfHAHBbvzXhPBi2E 9IhOa5/p9DC4ZzkYu7ht0poHUz6Y7/LsrTT5q8IopHWdcwOEH3948W9jh6ZIX6C84dQg orHQ== X-Gm-Message-State: APt69E0WPHmVgTcCH7oRiYD1T/gfzScdYt+D5KJmtQOR9Y2JQpDM/fSx 8dmdyKlqRvqJSRDiCLvBj5GIxQ== X-Received: by 2002:a17:902:2927:: with SMTP id g36-v6mr26199010plb.303.1529550889904; Wed, 20 Jun 2018 20:14:49 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id m5-v6sm11443448pfa.93.2018.06.20.20.14.45 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Jun 2018 20:14:49 -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 v3 1/2] dt-bindings: iio: Add Spreadtrum SC27XX PMICs ADC controller documentation Date: Thu, 21 Jun 2018 11:14:04 +0800 Message-Id: <900586c7a4ce55818ab330c738f306c7452191ef.1529550463.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 Reviewed-by: Rob Herring --- Changes since v2: - Add reviewed tag from Rob. 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 -- 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>; + }; + };