From patchwork Tue May 9 16:08:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Herve Codina X-Patchwork-Id: 91644 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp3004776vqo; Tue, 9 May 2023 09:14:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5vwJG8fY3ysoBfs4XL/j/hYf/GvidbchLd3ire3Rjw+2Qwh5m9ibarmDkvLd1ToNHSCIfS X-Received: by 2002:a05:6a00:23d3:b0:63d:4752:4da3 with SMTP id g19-20020a056a0023d300b0063d47524da3mr18245819pfc.25.1683648844452; Tue, 09 May 2023 09:14:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683648844; cv=none; d=google.com; s=arc-20160816; b=wBjUlvU8cVyudOlcCDMLSTuCdMjEvfWF+3mKa9XPuoCwq42jLOd9GUz1CoEYmChYc4 hHDZ+cshpvcsYwgFskN+VuGGkxwsa7MJDDnvCLOvILRo7Yyp0XICiMlCgAZR/jGSKnQf VK0huQy51Om3JtcbYS+o+V3lNHt968seuwrYAzhfOpPG7ibhN6qox61iic+MUm9DrJh4 3NCBpZvKnDv/IyGlGYjbN9TnRgN1KlAa6sEkjUn7bs6ymax033Yjr8fXLwV8FBvAruYb ANk8r0ZQARXDEtK/kzrrUPQs3qtfnc+FRpBatzCNjLvaV7qWJeR6Z4QAoqMwrF/fPLpT 4HvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9kMsDQBfor4spt7iEDtWMeNz0VMgYY5+MkzcLfMNcc0=; b=pxjTHnjxTjOaNVOygdIVadea7tSKpH+rDmbpkrdCwXyMegVS+rq/d6NzbmrBhitZmx 14SVMiL6BdMzIQDtz4XLs/ofWPHQo7z+AzcyyiTAwhZtFsTdfCLRila5N+22Jhm4J+ka KOTWmDcmA5gYSx3jUXFvMYCnc2X0BAafELWLTUGvEGD4TCaXKRS/FxhFfBXn2EhhkaZG 7qch5OCdln11DMPcOFFiTloQpNqupyVcemLcx2LwZQAacyjHaKSPYEy1/EXsEqnfq0Z6 sx+uf2aai4rlY8QeB+muQB7lJFM3THWEpNnup3620CSzi5wegN+zZ3gNtAyfZzotU7S8 mKPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="Qlps/wnx"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a3-20020a63e843000000b00528ca114e67si1795459pgk.898.2023.05.09.09.13.51; Tue, 09 May 2023 09:14:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="Qlps/wnx"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235777AbjEIQJU (ORCPT + 99 others); Tue, 9 May 2023 12:09:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235729AbjEIQJR (ORCPT ); Tue, 9 May 2023 12:09:17 -0400 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88C4D2120; Tue, 9 May 2023 09:09:15 -0700 (PDT) Received: (Authenticated sender: herve.codina@bootlin.com) by mail.gandi.net (Postfix) with ESMTPA id 9152EFF80F; Tue, 9 May 2023 16:09:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1683648554; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9kMsDQBfor4spt7iEDtWMeNz0VMgYY5+MkzcLfMNcc0=; b=Qlps/wnxI542IxIOJuq0zxgs4sl/Z8DeS7UeaYSSVpCco6nB3QENDvwAbexhpjCb4eCLNn 0Y7ZBycY+Hv7W4CMY4J/BhLIH4q22AQXbYU2YmeVYOt8v7pBi1qCFSk1p8C/7LVocWkrqZ 97H/tl/gDNNJnoIMKg7ijeM4nZ0db79pA/XSbMtbCO+ACY94IBov0FWJBliXj31HFmZqHf WKWZ/8rdBtYrQ8PYzXSnwaq62EGHvff7ZgoOrB3SXV6zkRQjK4VDT30SJ/h796jpAlMOwU z0WcU2MUmd7POgx6uKlOl+dYZOMA11SKZ0RpCJMH95RNAFffEqfFKSWBySsO5g== From: Herve Codina To: Herve Codina , Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Christophe Leroy , Thomas Petazzoni Subject: [PATCH v4 1/3] dt-bindings: iio: potentiometer: Add the Renesas X9250 potentiometers Date: Tue, 9 May 2023 18:08:50 +0200 Message-Id: <20230509160852.158101-2-herve.codina@bootlin.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230509160852.158101-1-herve.codina@bootlin.com> References: <20230509160852.158101-1-herve.codina@bootlin.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765433770825183349?= X-GMAIL-MSGID: =?utf-8?q?1765433770825183349?= The Renesas X9250 is a quad digitally controlled potentiometers. Signed-off-by: Herve Codina Reviewed-by: Krzysztof Kozlowski --- .../iio/potentiometer/renesas,x9250.yaml | 78 +++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/potentiometer/renesas,x9250.yaml diff --git a/Documentation/devicetree/bindings/iio/potentiometer/renesas,x9250.yaml b/Documentation/devicetree/bindings/iio/potentiometer/renesas,x9250.yaml new file mode 100644 index 000000000000..ab5c09c00ff4 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/potentiometer/renesas,x9250.yaml @@ -0,0 +1,78 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/potentiometer/renesas,x9250.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas X9250 quad potentiometers + +maintainers: + - Herve Codina + +description: + The Renesas X9250 integrates four digitally controlled potentiometers. + On each potentiometer, the X9250T has a 100 kOhms total resistance and the + X9250U has a 50 kOhms total resistance. + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml + +properties: + compatible: + enum: + - renesas,x9250t + - renesas,x9250u + + reg: + maxItems: 1 + + vcc-supply: + description: + Regulator for the VCC power supply. + + avp-supply: + description: + Regulator for the analog V+ power supply. + + avn-supply: + description: + Regulator for the analog V- power supply. + + '#io-channel-cells': + const: 1 + + spi-max-frequency: + maximum: 2000000 + + wp-gpios: + maxItems: 1 + description: + GPIO connected to the write-protect pin. + +required: + - compatible + - reg + - vcc-supply + - avp-supply + - avn-supply + - '#io-channel-cells' + +unevaluatedProperties: false + +examples: + - | + #include + spi { + #address-cells = <1>; + #size-cells = <0>; + potentiometer@0 { + compatible = "renesas,x9250t"; + reg = <0>; + vcc-supply = <&vcc_regulator>; + avp-supply = <&avp_regulator>; + avn-supply = <&avp_regulator>; + wp-gpios = <&gpio 1 GPIO_ACTIVE_LOW>; + spi-max-frequency = <2000000>; + #io-channel-cells = <1>; + }; + };