52 lines · yaml
1# SPDX-License-Identifier: GPL-2.02%YAML 1.23---4$id: http://devicetree.org/schemas/power/supply/microchip,ucs1002.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Microchip UCS1002 USB Port Power Controller8 9maintainers:10 - Sebastian Reichel <sre@kernel.org>11 12properties:13 compatible:14 const: microchip,ucs100215 16 reg:17 maxItems: 118 19 interrupts:20 maxItems: 221 22 interrupt-names:23 oneOf:24 - items:25 - const: a_det26 - const: alert27 - const: a_det28 - const: alert29 30required:31 - compatible32 - reg33 34additionalProperties: false35 36examples:37 - |38 #include <dt-bindings/interrupt-controller/irq.h>39 40 i2c {41 #address-cells = <1>;42 #size-cells = <0>;43 44 charger@32 {45 compatible = "microchip,ucs1002";46 reg = <0x32>;47 interrupts-extended = <&gpio5 2 IRQ_TYPE_EDGE_BOTH>,48 <&gpio3 21 IRQ_TYPE_EDGE_BOTH>;49 interrupt-names = "a_det", "alert";50 };51 };52