Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1957373rwr; Fri, 21 Apr 2023 02:01:25 -0700 (PDT) X-Google-Smtp-Source: AKy350Zdc+tA7QeQOKI2qFW29cHoCV5UBVThW4DoJk7TZpuKbxs3hTUGDr/gnGtcKogtwG0gX2gC X-Received: by 2002:a05:6a00:2291:b0:63d:4752:4dad with SMTP id f17-20020a056a00229100b0063d47524dadmr5601017pfe.31.1682067684960; Fri, 21 Apr 2023 02:01:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682067684; cv=none; d=google.com; s=arc-20160816; b=geyQKmROMxrDDHmzubBU8DbDSKvYICQ7cMKtUnteXyoH6m9AllGkCHD6Q5uIST8png OcqzwYGmeCjbenPuSbjb6bcDQB7LEzjken4lB4138leZW/65IfLFukEBsSxxI2AoISef JU+G6JAm5PqMytZC71VqB2g+oJP0A+nBlLrkuQrYTCQbjTc+DNu+8crwtZGcMD5DWgoI /+o2i4yiPvXhPPua9DF3D6A5KpniwTxOKP3Lx4idjUL0M1DATFATogQ+DCILPoxYDyFj 7qDNPsl3iSt1Zc7ZB7miajO8YEleFKI+iGYlzF8GaGQvVs/klyBD64NQAlBgEMCsE1xS 0qRA== 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=uf38X61eh5A/xDBb52sQbA/hpuTv3mViEcnHyYk1qZU=; b=M7ge/nqIcC+s1ge2mgwhb27col8aGvB6XEfO2QVKVtk0eG5bQQ8V52Nam0C3RF1Py/ ASB/GDT+UdGcI9pfedFV7Mqki+rmXcQGqYc/7t5Ls31d3DyZ14xAWfbI/1RIL37GJVv2 kZ0yWJmkpYctbSoRl2UlNqkYxiRgQmwt2FBi4UXH7xXG3V7K6bw70wY831UQIsvrl39F mMqWe3qDrGhySnRkP/dfutknj1V3oIzG5TneYhZ52KYD2VmJA6zjyXQ26m519Qeze/Um 0ExLm8bQOXrmVjTQboYev7TEAP9xu7G3VswAhK5wsAlouAoXg7iacN4+AdyPsBQofSbw UgDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=LDceoR3O; 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 e13-20020a056a0000cd00b0063473a51539si78230pfj.398.2023.04.21.02.01.03; Fri, 21 Apr 2023 02:01:24 -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=LDceoR3O; 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 S231754AbjDUIxJ (ORCPT + 99 others); Fri, 21 Apr 2023 04:53:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231653AbjDUIw5 (ORCPT ); Fri, 21 Apr 2023 04:52:57 -0400 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DE3F93E4; Fri, 21 Apr 2023 01:52:53 -0700 (PDT) Received: (Authenticated sender: herve.codina@bootlin.com) by mail.gandi.net (Postfix) with ESMTPA id 44F2A1BF209; Fri, 21 Apr 2023 08:52:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1682067172; 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=uf38X61eh5A/xDBb52sQbA/hpuTv3mViEcnHyYk1qZU=; b=LDceoR3O7N+PXaD/tpqHc1XUJNqVA5lYU8ayDZ/6tKom/Yw5CEpowPhTzg6wu9CKXgHVpw NcL5f3cmPVALpHSvgUVVvVYn4Tz9tAZG1POtN9NkPWjUXaqGZ1K5+eLQ4Ej9CBL9+SbJS8 RLs6EFpsvHzgkwZ+ltUXBaS0cdV4oCTUY7oAHz4zTvJ6nlmpf5d/tZG4z4J506ePoaFynY n6ZctmpFm423ZIq+AkIzD6VyorBNy59gjpXe7nTYM0P1yxrD8nfpmrB9cjLTWuhYNW4Ust pnE/HCfH0nWxOj9rc8zQY/NGwdPUn9qHVwiizj9aiR8sZ9aw1CEL7mRXZWO0Vw== 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 v3 1/3] dt-bindings: iio: potentiometer: Add the Renesas X9250 potentiometers Date: Fri, 21 Apr 2023 10:52:43 +0200 Message-Id: <20230421085245.302169-2-herve.codina@bootlin.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230421085245.302169-1-herve.codina@bootlin.com> References: <20230421085245.302169-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, 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 | 54 +++++++++++++++++++ 1 file changed, 54 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..dfa36b23eb0d --- /dev/null +++ b/Documentation/devicetree/bindings/iio/potentiometer/renesas,x9250.yaml @@ -0,0 +1,54 @@ +# 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: + 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>; + potentiometer@0 { + compatible = "renesas,x9250t"; + reg = <0>; + spi-max-frequency = <2000000>; + #io-channel-cells = <1>; + }; + }; -- 2.39.2