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: 10465829 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A8704600F4 for ; Fri, 15 Jun 2018 07:04:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9B24A28B95 for ; Fri, 15 Jun 2018 07:04:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8F3FE28D00; Fri, 15 Jun 2018 07:04:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3A32628B95 for ; Fri, 15 Jun 2018 07:04:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755639AbeFOHDr (ORCPT ); Fri, 15 Jun 2018 03:03:47 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:42868 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755565AbeFOHDq (ORCPT ); Fri, 15 Jun 2018 03:03:46 -0400 Received: by mail-pf0-f194.google.com with SMTP id w7-v6so4432200pfn.9 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=mWg8lyznfdKgVofPsGyE+CsWzkACR+GBGp79TlmvwVQ7e+76IPDVufnUzQZ+nxGYMD 2z4AK791tGVQjm6qfy/mYHMCXCA+rvP3su3AyX+COaXKs5x7tZcubz03DrY1N0rAhv2w shCB21oyvuI8c8D8kNTJoEyG8u5eRcSKSDAeoD3/4GYsBsGRQ6d6lPOD6ePDHDgTWaGU QaEvvbjz5MARDK0tXFQffYsfmmKdMys7/Q7tdXB8Y8yGmJKGUUOwq8bT9ldrjgDvRH16 qR8FrfX4b2avarnqXEPrBFzBI1l3OAUaAkmj/cWc9r3VeHO14fKvTVgoQs9uN0e3RJxR yzSg== X-Gm-Message-State: APt69E38PAdu+VjAbgCyWjuKTLCKA09DDYrCG6TNQPu0pM/fuaxHcgRc xLEUwzowHcQE05kG8rg7NZjuwA== X-Google-Smtp-Source: ADUXVKKCr0NqDwWxpk8OxdWEnK12ckm3fQRzdVKUoH4f35+o/Rzu3BD44/r39FttkjvGas+nKWll3w== 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-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 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 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>; + }; + };