xref: /openbmc/linux/Documentation/devicetree/bindings/power/supply/microchip,ucs1002.yaml (revision 8be98d2f2a0a262f8bf8a0bc1fdf522b3c7aab17)
1*f444be12SSebastian Reichel# SPDX-License-Identifier: GPL-2.0
2*f444be12SSebastian Reichel%YAML 1.2
3*f444be12SSebastian Reichel---
4*f444be12SSebastian Reichel$id: http://devicetree.org/schemas/power/supply/microchip,ucs1002.yaml#
5*f444be12SSebastian Reichel$schema: http://devicetree.org/meta-schemas/core.yaml#
6*f444be12SSebastian Reichel
7*f444be12SSebastian Reicheltitle: Microchip UCS1002 USB Port Power Controller
8*f444be12SSebastian Reichel
9*f444be12SSebastian Reichelmaintainers:
10*f444be12SSebastian Reichel  - Sebastian Reichel <sre@kernel.org>
11*f444be12SSebastian Reichel
12*f444be12SSebastian Reichelproperties:
13*f444be12SSebastian Reichel  compatible:
14*f444be12SSebastian Reichel    const: microchip,ucs1002
15*f444be12SSebastian Reichel
16*f444be12SSebastian Reichel  reg:
17*f444be12SSebastian Reichel    maxItems: 1
18*f444be12SSebastian Reichel
19*f444be12SSebastian Reichel  interrupts:
20*f444be12SSebastian Reichel    maxItems: 2
21*f444be12SSebastian Reichel
22*f444be12SSebastian Reichel  interrupt-names:
23*f444be12SSebastian Reichel    oneOf:
24*f444be12SSebastian Reichel      - items:
25*f444be12SSebastian Reichel          - const: a_det
26*f444be12SSebastian Reichel          - const: alert
27*f444be12SSebastian Reichel      - const: a_det
28*f444be12SSebastian Reichel      - const: alert
29*f444be12SSebastian Reichel
30*f444be12SSebastian Reichelrequired:
31*f444be12SSebastian Reichel  - compatible
32*f444be12SSebastian Reichel  - reg
33*f444be12SSebastian Reichel
34*f444be12SSebastian ReicheladditionalProperties: false
35*f444be12SSebastian Reichel
36*f444be12SSebastian Reichelexamples:
37*f444be12SSebastian Reichel  - |
38*f444be12SSebastian Reichel    #include <dt-bindings/interrupt-controller/irq.h>
39*f444be12SSebastian Reichel
40*f444be12SSebastian Reichel    i2c {
41*f444be12SSebastian Reichel        #address-cells = <1>;
42*f444be12SSebastian Reichel        #size-cells = <0>;
43*f444be12SSebastian Reichel
44*f444be12SSebastian Reichel        charger@32 {
45*f444be12SSebastian Reichel            compatible = "microchip,ucs1002";
46*f444be12SSebastian Reichel            reg = <0x32>;
47*f444be12SSebastian Reichel            interrupts-extended = <&gpio5 2 IRQ_TYPE_EDGE_BOTH>,
48*f444be12SSebastian Reichel                                  <&gpio3 21 IRQ_TYPE_EDGE_BOTH>;
49*f444be12SSebastian Reichel            interrupt-names = "a_det", "alert";
50*f444be12SSebastian Reichel       };
51*f444be12SSebastian Reichel    };
52