~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/mfd/maxim,max5970.yaml

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2 %YAML 1.2
  3 ---
  4 $id: http://devicetree.org/schemas/mfd/maxim,max5970.yaml#
  5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6 
  7 title: Regulator for MAX5970 Smart Switch from Maxim Integrated
  8 
  9 maintainers:
 10   - Patrick Rudolph <patrick.rudolph@9elements.com>
 11 
 12 description: |
 13   The smart switch provides no output regulation, but independent fault protection
 14   and voltage and current sensing.
 15   Programming is done through I2C bus.
 16 
 17   Datasheets:
 18     https://datasheets.maximintegrated.com/en/ds/MAX5970.pdf
 19     https://datasheets.maximintegrated.com/en/ds/MAX5978.pdf
 20 
 21 properties:
 22   compatible:
 23     enum:
 24       - maxim,max5970
 25       - maxim,max5978
 26 
 27   reg:
 28     maxItems: 1
 29 
 30   interrupts:
 31     maxItems: 1
 32 
 33   leds:
 34     type: object
 35     description:
 36       Properties for four LEDS.
 37 
 38     properties:
 39       "#address-cells":
 40         const: 1
 41 
 42       "#size-cells":
 43         const: 0
 44 
 45     patternProperties:
 46       "^led@[0-3]$":
 47         $ref: /schemas/leds/common.yaml#
 48         unevaluatedProperties: false
 49         type: object
 50 
 51         properties:
 52           reg:
 53             maximum: 3
 54 
 55     additionalProperties: false
 56 
 57   vss1-supply:
 58     description: Supply of the first channel.
 59 
 60   vss2-supply:
 61     description: Supply of the second channel.
 62 
 63   regulators:
 64     type: object
 65     description:
 66       Properties for both hot swap control/switch.
 67 
 68     patternProperties:
 69       "^sw[0-1]$":
 70         $ref: /schemas/regulator/regulator.yaml#
 71         type: object
 72         properties:
 73           shunt-resistor-micro-ohms:
 74             description: |
 75               The value of current sense resistor in microohms.
 76 
 77         required:
 78           - shunt-resistor-micro-ohms
 79 
 80         unevaluatedProperties: false
 81 
 82     additionalProperties: false
 83 
 84 required:
 85   - compatible
 86   - reg
 87   - regulators
 88   - vss1-supply
 89 
 90 allOf:
 91   - if:
 92       properties:
 93         compatible:
 94           enum:
 95             - maxim,max5970
 96     then:
 97       required:
 98         - vss2-supply
 99 
100 additionalProperties: false
101 
102 examples:
103   - |
104     i2c {
105         #address-cells = <1>;
106         #size-cells = <0>;
107         regulator@3a {
108             compatible = "maxim,max5978";
109             reg = <0x3a>;
110             vss1-supply = <&p3v3>;
111 
112             regulators {
113                 sw0_ref_0: sw0 {
114                     shunt-resistor-micro-ohms = <12000>;
115                 };
116             };
117 
118             leds {
119                 #address-cells = <1>;
120                 #size-cells = <0>;
121                 led@0 {
122                     reg = <0>;
123                     label = "led0";
124                     default-state = "on";
125                 };
126                 led@1 {
127                     reg = <1>;
128                     label = "led1";
129                     default-state = "on";
130                 };
131             };
132         };
133     };
134 
135   - |
136     i2c {
137         #address-cells = <1>;
138         #size-cells = <0>;
139 
140         regulator@3a {
141             compatible = "maxim,max5970";
142             reg = <0x3a>;
143             vss1-supply = <&p3v3>;
144             vss2-supply = <&p5v>;
145 
146             regulators {
147                 sw0_ref_1: sw0 {
148                     shunt-resistor-micro-ohms = <12000>;
149                 };
150                 sw1_ref_1: sw1 {
151                     shunt-resistor-micro-ohms = <10000>;
152                 };
153             };
154         };
155     };
156 ...

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php