From patchwork Tue Nov 20 14:17:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Coffey X-Patchwork-Id: 10690451 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 44E0113BB for ; Tue, 20 Nov 2018 14:17:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3535F2A944 for ; Tue, 20 Nov 2018 14:17:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 296612A94E; Tue, 20 Nov 2018 14:17:35 +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 138502A94B for ; Tue, 20 Nov 2018 14:17:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728617AbeKUAqy (ORCPT ); Tue, 20 Nov 2018 19:46:54 -0500 Received: from mail.babblebit.net ([37.139.8.208]:48296 "EHLO mail.babblebit.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726941AbeKUAqy (ORCPT ); Tue, 20 Nov 2018 19:46:54 -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 7E3F420E3A; Tue, 20 Nov 2018 14:17:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=babblebit.net; s=mail; t=1542723451; bh=2jLrSCNH7L2sFYArYdvcMPxBYTgfb5ZLP1cLTh4fLsQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uraE2ynwsrHK9xXevNaXBtd920qWp/+WVKwAtDH5XmsyNpITX6rwbtTsbSbnfSZxG nE+wSGV1TsUeKyWo/LKcPgix9R93TWg/fjaKgABJJFgJ48OBtWGnSOv9VgstoxKc0Q b/vGEuabSKNj2waQdh3sdEbksygkjs7lyE1jVqY+qDjXV9tq+XcsN2mkFg7inqv2z/ CRcNDeT7ravRfj2IVcMfUWB/csuLsGPpEwQlXKxNXwy8vFhMr0k/8f0gtFowOo1Njg 79/jfC+gXpVEDLv7YRMFij8Rl2oaNH1YGtTXi9uidlY29ezUqtR8pcEXnRYaZOh4Zr ILLjDvOibS5yg== 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 v3 1/2] dt-bindings: iio: potentiometer: Add Microchip MCP41xxx/42xxx Date: Tue, 20 Nov 2018 14:17:12 +0000 Message-Id: <20181120141713.9963-2-cmc@babblebit.net> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181120141713.9963-1-cmc@babblebit.net> References: <20181120141713.9963-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..7dcf2071b7 --- /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: +potentiometer@0 { + compatible = "microchip,mcp41010"; + reg = <0>; + spi-max-frequency = <500000>; +};