From patchwork Wed Nov 14 09:52:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Coffey X-Patchwork-Id: 10682301 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7E5F213B5 for ; Wed, 14 Nov 2018 09:52:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6F9B52B056 for ; Wed, 14 Nov 2018 09:52:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 625A52B05C; Wed, 14 Nov 2018 09:52:57 +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.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 EF4502B056 for ; Wed, 14 Nov 2018 09:52:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732413AbeKNTz1 (ORCPT ); Wed, 14 Nov 2018 14:55:27 -0500 Received: from mail.babblebit.net ([37.139.8.208]:47078 "EHLO mail.babblebit.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727558AbeKNTz1 (ORCPT ); Wed, 14 Nov 2018 14:55:27 -0500 Received: from localhost.localdomain (80-44-164-194.dynamic.dsl.as9105.com [80.44.164.194]) by mail.babblebit.net (Postfix) with ESMTPSA id 081B7209D6; Wed, 14 Nov 2018 09:52:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=babblebit.net; s=mail; t=1542189174; bh=k1sA0CHc32V1PQGxiTc2/z8OpnFP7VjmpBgmAtrjoIE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=W7dnB6EBEIE+demzhNS25Ro291e1VTIXv62tuD933IVdTXcj0eRJD1sRnzivF/pN/ ppOxJcvxBoKfXFu5PqeMfVeWDqPKYQq6BS9A+8gSD7fJSwOpcFklNAKEpl/n+l4MUP lJhJtgCffEQaOF1RTl81wtnigT+DWO1DZVhjeRzJCQEbwbtg4SZKYsrf1b5VIUfvUo XU2h92dIsXDP6FoVlU4hfX9jMm9iHV0pMSNWQmK4uCtWkFsYj1u01FHraAuoxImtzv Zvd0EXjsM38P82V0WX5I8nqvpWPqjg3odDu8wVUvARSYbTKNqtxp+PLrAIwGmbQADv hkZ6HGF+Ey7nA== From: Chris Coffey To: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler Cc: Peter Rosin , Slawomir Stepien , Rob Herring , Mark Rutland , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, Chris Coffey Subject: [PATCH v2 1/2] dt-bindings: iio: potentiometer: Add Microchip MCP41xxx/42xxx Date: Wed, 14 Nov 2018 09:52:40 +0000 Message-Id: <20181114095241.27037-2-cmc@babblebit.net> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181114095241.27037-1-cmc@babblebit.net> References: <20181114095241.27037-1-cmc@babblebit.net> 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 device tree documentation for the Microchip MCP41xxx/42xxx family of digital potentiometers. Signed-off-by: Chris Coffey --- .../bindings/iio/potentiometer/mcp41010.txt | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/potentiometer/mcp41010.txt diff --git a/Documentation/devicetree/bindings/iio/potentiometer/mcp41010.txt b/Documentation/devicetree/bindings/iio/potentiometer/mcp41010.txt new file mode 100644 index 0000000000..17565acace --- /dev/null +++ b/Documentation/devicetree/bindings/iio/potentiometer/mcp41010.txt @@ -0,0 +1,29 @@ +* Microchip MCP41010/41050/41100/42010/42050/42100 Digital Potentiometer + driver + +Datasheet publicly available at: +http://ww1.microchip.com/downloads/en/devicedoc/11195c.pdf + +The node for this driver must be a child node of a SPI controller, hence +all mandatory properties described in + + Documentation/devicetree/bindings/spi/spi-bus.txt + +must be specified. + +Required properties: + - compatible: Must be one of the following, depending on the + model: + "microchip,mcp41010" + "microchip,mcp41050" + "microchip,mcp41100" + "microchip,mcp42010" + "microchip,mcp42050" + "microchip,mcp42100" + +Example: +mcp41010: potentiometer@0 { + compatible = "mcp41010"; + reg = <0>; + spi-max-frequency = <500000>; +};