Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6030332rwr; Tue, 9 May 2023 09:16:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7T7/nOBN2TxW5B2z2eKyUApAVOhTkuFteGavU3g9rBqSKhkeG5rBCuZ7XkZPREiCddAIsz X-Received: by 2002:a17:902:e786:b0:1ac:7543:bcdf with SMTP id cp6-20020a170902e78600b001ac7543bcdfmr7711677plb.31.1683648977076; Tue, 09 May 2023 09:16:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683648977; cv=none; d=google.com; s=arc-20160816; b=HEahf6ePXlzXNx6Z5w7WJmeRXS+3l9+43C+fRDQJgd+Fcos6FMM+i7VZtn8EgVquQZ cjgtMOcFCYyJYe0vo+sDXxi7RDBRCDnjZGPC4KUQCn1Hj187epi/LJv7tRRl8FT3+y+h s9THk5Vr7iioeQoIAAri/ovPDbGWQj3Fwax4zUwKSIWJXKDCHYn1QQ1igWHk84pA4PJ1 7Zh7NVW51pL81dIIhJPVu1dXmVwtSvt6BTYs+I7CNCVENTVfsQEszYk9dBWtbQA+JKwI woU8ejeGiqAmK0Tizx07RIEL42HhwOkWR/PstaT3AWLQCuuGi5PieFrDlt7GiGr6Mpgz y7UQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z15-20020a170903018f00b001a922d1f4c7si1973158plg.60.2023.05.09.09.16.01; Tue, 09 May 2023 09:16:17 -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 S235751AbjEIQJT (ORCPT + 99 others); Tue, 9 May 2023 12:09:19 -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 Content-Transfer-Encoding: 8bit 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 The Renesas X9250 is a quad digitally controlled potentiometers. Signed-off-by: Herve Codina --- .../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>; + }; + }; -- 2.40.1