From patchwork Sat Oct 31 18:29:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 314642 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E029EC55179 for ; Sat, 31 Oct 2020 18:31:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9DD5720731 for ; Sat, 31 Oct 2020 18:31:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604169098; bh=njRV/xbty5XX+bMrv4J0ryswpYSLyvWQAp3BZTs0XPU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=pfBsLWGbaVGY57CeePa4TgmIRD50u8/1COGXPFtFZYfXIPP0uWs8UyObhERQOw/MK NGlZCLZ0Y06kHV/LzC5ICeYeWSjFvXUxqPYXk29fvV++0cLSe1hOHMlIArGxxvMi7G 5L5DUFdelgaSMQtTzr12hET1o3UfImPz7jATlOFM= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728370AbgJaSbi (ORCPT ); Sat, 31 Oct 2020 14:31:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:54122 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727967AbgJaSbh (ORCPT ); Sat, 31 Oct 2020 14:31:37 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B9BE9206E5; Sat, 31 Oct 2020 18:31:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604169097; bh=njRV/xbty5XX+bMrv4J0ryswpYSLyvWQAp3BZTs0XPU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MZ5NeD8x3evSbC69M4hUjPrAjL1yVxgjdK3Y28e8kBXM1F5J2yKk4tj423LivVmTb jvFjDe7L/jTIj2ei8I6Upy+nPziqc58mS4gmw/TD7+nGkNuZWEeetaLkOXm7J3mBRM DDxOdFLH+ceFg7BzuZJRP6f8g6ttMeTT9t0STUgA= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Maury Anderson , Matthew Weber , Slawomir Stepien Subject: [PATCH 4/7] dt-bindings:iio:potentiometer:maxim, max5481 move to trivial devices Date: Sat, 31 Oct 2020 18:29:19 +0000 Message-Id: <20201031182922.743153-5-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031182922.743153-1-jic23@kernel.org> References: <20201031182922.743153-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Simple SPI binding that doesn't need a separate file. During conversion I looked up the individual part number descriptions in the datasheet so that we could give slightly more detail in trivial-device.yaml. Signed-off-by: Jonathan Cameron Cc: Maury Anderson Cc: Matthew Weber Cc: Slawomir Stepien Reviewed-by: Slawomir Stepien --- .../bindings/iio/potentiometer/max5481.txt | 23 ------------------- .../devicetree/bindings/trivial-devices.yaml | 8 +++++++ 2 files changed, 8 insertions(+), 23 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/potentiometer/max5481.txt b/Documentation/devicetree/bindings/iio/potentiometer/max5481.txt deleted file mode 100644 index 6a91b106e076..000000000000 --- a/Documentation/devicetree/bindings/iio/potentiometer/max5481.txt +++ /dev/null @@ -1,23 +0,0 @@ -* Maxim Linear-Taper Digital Potentiometer MAX5481-MAX5484 - -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: - "maxim,max5481" - "maxim,max5482" - "maxim,max5483" - "maxim,max5484" - -Example: -max548x: max548x@0 { - compatible = "maxim,max5482"; - spi-max-frequency = <7000000>; - reg = <0>; /* chip-select */ -}; diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml index 695b1e379238..3182d5b5a0b4 100644 --- a/Documentation/devicetree/bindings/trivial-devices.yaml +++ b/Documentation/devicetree/bindings/trivial-devices.yaml @@ -118,6 +118,14 @@ properties: - maxim,ds1803-100 # Low-Power, 4-/12-Channel, 2-Wire Serial, 12-Bit ADCs - maxim,max1237 + # 10-bit 10 kOhm linear programable voltage divider + - maxim,max5481 + # 10-bit 50 kOhm linear programable voltage divider + - maxim,max5482 + # 10-bit 10 kOhm linear programable variable resistor + - maxim,max5483 + # 10-bit 50 kOhm linear programable variable resistor + - maxim,max5484 # PECI-to-I2C translator for PECI-to-SMBus/I2C protocol conversion - maxim,max6621 # 9-Bit/12-Bit Temperature Sensors with I²C-Compatible Serial Interface