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