1*dd731888SHerve Codina# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*dd731888SHerve Codina%YAML 1.2
3*dd731888SHerve Codina---
4*dd731888SHerve Codina$id: http://devicetree.org/schemas/iio/potentiometer/renesas,x9250.yaml#
5*dd731888SHerve Codina$schema: http://devicetree.org/meta-schemas/core.yaml#
6*dd731888SHerve Codina
7*dd731888SHerve Codinatitle: Renesas X9250 quad potentiometers
8*dd731888SHerve Codina
9*dd731888SHerve Codinamaintainers:
10*dd731888SHerve Codina  - Herve Codina <herve.codina@bootlin.com>
11*dd731888SHerve Codina
12*dd731888SHerve Codinadescription:
13*dd731888SHerve Codina  The Renesas X9250 integrates four digitally controlled potentiometers.
14*dd731888SHerve Codina  On each potentiometer, the X9250T has a 100 kOhms total resistance and the
15*dd731888SHerve Codina  X9250U has a 50 kOhms total resistance.
16*dd731888SHerve Codina
17*dd731888SHerve CodinaallOf:
18*dd731888SHerve Codina  - $ref: /schemas/spi/spi-peripheral-props.yaml
19*dd731888SHerve Codina
20*dd731888SHerve Codinaproperties:
21*dd731888SHerve Codina  compatible:
22*dd731888SHerve Codina    enum:
23*dd731888SHerve Codina      - renesas,x9250t
24*dd731888SHerve Codina      - renesas,x9250u
25*dd731888SHerve Codina
26*dd731888SHerve Codina  reg:
27*dd731888SHerve Codina    maxItems: 1
28*dd731888SHerve Codina
29*dd731888SHerve Codina  vcc-supply:
30*dd731888SHerve Codina    description:
31*dd731888SHerve Codina      Regulator for the VCC power supply.
32*dd731888SHerve Codina
33*dd731888SHerve Codina  avp-supply:
34*dd731888SHerve Codina    description:
35*dd731888SHerve Codina      Regulator for the analog V+ power supply.
36*dd731888SHerve Codina
37*dd731888SHerve Codina  avn-supply:
38*dd731888SHerve Codina    description:
39*dd731888SHerve Codina      Regulator for the analog V- power supply.
40*dd731888SHerve Codina
41*dd731888SHerve Codina  '#io-channel-cells':
42*dd731888SHerve Codina    const: 1
43*dd731888SHerve Codina
44*dd731888SHerve Codina  spi-max-frequency:
45*dd731888SHerve Codina    maximum: 2000000
46*dd731888SHerve Codina
47*dd731888SHerve Codina  wp-gpios:
48*dd731888SHerve Codina    maxItems: 1
49*dd731888SHerve Codina    description:
50*dd731888SHerve Codina      GPIO connected to the write-protect pin.
51*dd731888SHerve Codina
52*dd731888SHerve Codinarequired:
53*dd731888SHerve Codina  - compatible
54*dd731888SHerve Codina  - reg
55*dd731888SHerve Codina  - vcc-supply
56*dd731888SHerve Codina  - avp-supply
57*dd731888SHerve Codina  - avn-supply
58*dd731888SHerve Codina  - '#io-channel-cells'
59*dd731888SHerve Codina
60*dd731888SHerve CodinaunevaluatedProperties: false
61*dd731888SHerve Codina
62*dd731888SHerve Codinaexamples:
63*dd731888SHerve Codina  - |
64*dd731888SHerve Codina    #include <dt-bindings/gpio/gpio.h>
65*dd731888SHerve Codina    spi {
66*dd731888SHerve Codina        #address-cells = <1>;
67*dd731888SHerve Codina        #size-cells = <0>;
68*dd731888SHerve Codina        potentiometer@0 {
69*dd731888SHerve Codina            compatible = "renesas,x9250t";
70*dd731888SHerve Codina            reg = <0>;
71*dd731888SHerve Codina            vcc-supply = <&vcc_regulator>;
72*dd731888SHerve Codina            avp-supply = <&avp_regulator>;
73*dd731888SHerve Codina            avn-supply = <&avp_regulator>;
74*dd731888SHerve Codina            wp-gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
75*dd731888SHerve Codina            spi-max-frequency = <2000000>;
76*dd731888SHerve Codina            #io-channel-cells = <1>;
77*dd731888SHerve Codina        };
78*dd731888SHerve Codina    };
79