Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1055365rwr; Thu, 20 Apr 2023 09:23:03 -0700 (PDT) X-Google-Smtp-Source: AKy350bOHsI6klrzOaEm1YwT4v4/+2D7Megrq5F08jhCP+47Z8QH2ry5tIO2SoT0wZgGuLUzOP2X X-Received: by 2002:a05:6a20:3944:b0:ef:b472:ccb6 with SMTP id r4-20020a056a20394400b000efb472ccb6mr3017259pzg.39.1682007783599; Thu, 20 Apr 2023 09:23:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682007783; cv=none; d=google.com; s=arc-20160816; b=kO8HxWGbaGBVbujaH59JB8iIeiS91/NOpbBKfinR46MosJKHB5nGfwPqoBTzkUHmj9 +4TtDievA2aXzvG69cwT1mD/d8es/Ovxx54VrA7wfcgnmaVZFn0QUR/PxUzJNacB3+iA CQpH2Zc5bG2XCRqlb6ATsG3/P0+Wep7Khr2wmg+qvLXzOas+REbUl8H8bQopI8uo5Oye /PzELeFDJs8fCYIwBMn5lqo99tQO9+cjyj0kn2nUtuVis0TgW14kaRbW1tOszHG42UTP RSR+lmLftzqlh9oOJG0JqOYlNo5ye4vXAZMlgq3jxuy+gxa4ky8CYS0xl8qvDUq0YZIT hJkg== 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=cFIsq689v2MlwWs/mMwej9zsEqvUGdCfALoRXXQAKX4RQtMyJAlwZ8rrP1VW2y0ly9 7Ox+vJwew2Rk8Yp2v+DIUuFfaY8DSVamLhecc8bZ8vD75xCDuXubS93YjzohF3f3B4Sj KHmlZrip6IoJrxezxf8OhInTQP+VzYBfkm8xHneoAh3YIIZERvs6cIO0mNrcpEc6lj0n 9Amp63KqHnaHFCFpa4j92XrHqFQEzyxkC4Y35j7UgxkjYuNlUrjf+kln3IeKAHk1M7jg XHACbdFp1R00db0A7rX6lCc5XfAAuOOc0CuPu6H6EpJAhsNJ2Ve1aOFd0bbMOwRxA4cj T+qQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=XdvY60R9; 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 q36-20020a63f964000000b00512fab8c401si1890489pgk.427.2023.04.20.09.22.49; Thu, 20 Apr 2023 09:23:03 -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=XdvY60R9; 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 S232835AbjDTQLE (ORCPT + 99 others); Thu, 20 Apr 2023 12:11:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232636AbjDTQLC (ORCPT ); Thu, 20 Apr 2023 12:11:02 -0400 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B480F1FE3; Thu, 20 Apr 2023 09:11:00 -0700 (PDT) Received: (Authenticated sender: herve.codina@bootlin.com) by mail.gandi.net (Postfix) with ESMTPA id 57C261C000F; Thu, 20 Apr 2023 16:10:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1682007059; 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=XdvY60R9dLDfDTmbQ1zSr5MUjaTn3tcatVKxX7vc2a6mjgzZF0v5UkzJaYZCggYimeqaQR x/J5hXOWht0PgAM1ej3X9/GFk+p6Sf7UBTfVuW+aWu9iCdTvgB35JZRpgGVZHizzagiEzR wXYd5GVSTzumFs+zM1hm+IT1JZiUyHxb7KB7BPhCEh6cJlOFaINb6Ubrt47Fb+DQEiCG5E zMoVCP3Fp/4XTezsiXYp2BSuUFlGTLxNyVBbA9eaV3ilDI/Gzgb5B2/fNR0JH28RiMYjsG Xd1NC5TL+QblvP5ylmiIUZpKLjD2OlWjGKfh5+bQ8DP6uHz50kjNFtSeeopHIg== 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 v2 1/3] dt-bindings: iio: potentiometer: Add the Renesas X9250 potentiometers Date: Thu, 20 Apr 2023 18:10:50 +0200 Message-Id: <20230420161052.270366-2-herve.codina@bootlin.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230420161052.270366-1-herve.codina@bootlin.com> References: <20230420161052.270366-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, 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 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>; + }; + }; -- 2.39.2