From patchwork Thu Apr 20 12:13:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Herve Codina X-Patchwork-Id: 85887 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp295243vqo; Thu, 20 Apr 2023 05:28:58 -0700 (PDT) X-Google-Smtp-Source: AKy350a4bPD5eqjR7BRgrOfOJ6ibStX1FG9I2dU4ltJ+jlvN1KF7fNGYAUJgsfALtUZw0AcpqMn1 X-Received: by 2002:a05:6a00:2d11:b0:63d:2d99:2e92 with SMTP id fa17-20020a056a002d1100b0063d2d992e92mr1509208pfb.17.1681993738409; Thu, 20 Apr 2023 05:28:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681993738; cv=none; d=google.com; s=arc-20160816; b=DHVwwU7DYImd6wrogQZofAyS7ZMnVI7RpoQJn8WFTR2stuHngFWlv2Ri9OnfeBIIQm YzmLMlN8hZKZF3joQirMZgU2e/HGdga8lz2j2xGtgUiOojFO3Jb5/Y5q5GNa2A1Y6Rpj Dzk4crBqFMU/hs+8gzoBktN/SVUlXra0MskkRFAFq/O9J17y3fJsovvxv7BKlv9kwqGE +ZDOtuzp8akYG+vFhm392mAWe9ePYPSaZlZBpouVqe9piOAF4btJSECdx/Ll1XvAnuai Z1SlL+Z9/XVGqtHG6Tqt4Dma3Kjx7msypj2JGnwochr8ZZhduUYsMz/B8Koe/pEswTkH u9Ug== 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=ZpadVS75bKUorNR3CkEw5c26Pn7J32Ucphbz5XTTYA0=; b=TLYGt8CrxHJeiOCh/zRvOUAaw4eeh3kZoAIKnZJ9d8XEJMjLHfRt+7tGnk0a5AnHl3 ZvMW/3qzZG+RYQU+9zmqIZlsQPHPuolm69ftvG2cjKiReW/4H5r6eBizY/PvX714V18C azr79n5FIuKTC8RsJvUITVJ6YYT5Gbve4KODJYvG7fWR5gnmfDORvQpFsZd7R20c7GCb av2F2YFJG1c2rqlt+cYAGzBZQK7KyASvCtnlQA7VQ0ULGqKT05znALbn9YgOQAmgj6ww WEOTRNjE1KFxrSuzThFf1b8ctE4clKux35Om2hPhRMbvjJ+1pZDvQTHvfS/6BaZSc34p FWNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=UbnQpGtr; 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 135-20020a63048d000000b005183e6198aasi1410063pge.794.2023.04.20.05.28.44; Thu, 20 Apr 2023 05:28:58 -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=UbnQpGtr; 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 S234284AbjDTMOQ (ORCPT + 99 others); Thu, 20 Apr 2023 08:14:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234727AbjDTMON (ORCPT ); Thu, 20 Apr 2023 08:14:13 -0400 Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [217.70.178.231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 491304220; Thu, 20 Apr 2023 05:13:53 -0700 (PDT) Received: (Authenticated sender: herve.codina@bootlin.com) by mail.gandi.net (Postfix) with ESMTPA id 0D186100017; Thu, 20 Apr 2023 12:13:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1681992832; 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=ZpadVS75bKUorNR3CkEw5c26Pn7J32Ucphbz5XTTYA0=; b=UbnQpGtrFTRYoGAIfLrKkWXlSXNNAry98WzKY7yn4oNMBcgaNtN6JWsCQdGoX6fbgW9mSN dkboKLGRm+aTvwU1ybXSE3YBN7AdO3Ie4oKhZ61HcxHfVdgFc6qL6CjIK5L0ouBxQ5FqGy 4wohe025EYj8BMioXcKmAJU+hVLI2bEm3vnGIPLdS3jEJv2MQQJQIBdrhNRLyW/43QoZ4q mbLWuef9daZd+WcnYpUwcjXmwandI90YS8RrMgr1f5PdYyVGhnvqyH8cct9v71sLXU1vGa Ta05EG8kGH6L+t3tlkbA4eLQ5U1MRkTn+B+BZCZ4SfQJIHA5gP4u2kOTRuOdBA== 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 1/3] dt-bindings: iio: potentiometer: Add the Renesas X9250 potentiometers Date: Thu, 20 Apr 2023 14:13:18 +0200 Message-Id: <20230420121320.252884-2-herve.codina@bootlin.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230420121320.252884-1-herve.codina@bootlin.com> References: <20230420121320.252884-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, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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?1763698266273189433?= X-GMAIL-MSGID: =?utf-8?q?1763698266273189433?= The Renesas X9250 is a quad digitally controlled potentiometers. Signed-off-by: Herve Codina --- .../iio/potentiometer/renesas,x9250.yaml | 56 +++++++++++++++++++ 1 file changed, 56 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..e0433cd522aa --- /dev/null +++ b/Documentation/devicetree/bindings/iio/potentiometer/renesas,x9250.yaml @@ -0,0 +1,56 @@ +# 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 + - $ref: /schemas/iio/iio.yaml + +properties: + compatible: + enum: + - renesas,x9250t + - renesas,x9250u + + reg: + description: + SPI device address. + maxItems: 1 + + '#io-channel-cells': + const: 1 + + spi-max-frequency: + maximum: 2000000 + +required: + - compatible + - reg + - '#io-channel-cells' + +unevaluatedProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + x9250@0 { + compatible = "renesas,x9250t"; + reg = <0>; + spi-max-frequency = <2000000>; + #io-channel-cells = <1>; + }; + };