xref: /linux/Documentation/devicetree/bindings/power/supply/isp1704.yaml (revision 7ae9fb1b7ecbb5d85d07857943f677fd1a559b18)
1437e6b6cSSebastian Reichel# SPDX-License-Identifier: GPL-2.0
2437e6b6cSSebastian Reichel# Copyright (C) 2021 Sebastian Reichel
3437e6b6cSSebastian Reichel%YAML 1.2
4437e6b6cSSebastian Reichel---
51ea78ec5SKrzysztof Kozlowski$id: http://devicetree.org/schemas/power/supply/isp1704.yaml#
61ea78ec5SKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml#
7437e6b6cSSebastian Reichel
8*9d69d47fSKrzysztof Kozlowskititle: NXP ISP1704 USB Charger Detection
9437e6b6cSSebastian Reichel
10437e6b6cSSebastian Reichelmaintainers:
11437e6b6cSSebastian Reichel  - Sebastian Reichel <sre@kernel.org>
12437e6b6cSSebastian Reichel
13437e6b6cSSebastian ReichelallOf:
14437e6b6cSSebastian Reichel  - $ref: power-supply.yaml#
15437e6b6cSSebastian Reichel
16437e6b6cSSebastian Reichelproperties:
17437e6b6cSSebastian Reichel  compatible:
18437e6b6cSSebastian Reichel    const: nxp,isp1704
19437e6b6cSSebastian Reichel
20437e6b6cSSebastian Reichel  nxp,enable-gpio:
21437e6b6cSSebastian Reichel    maxItems: 1
22437e6b6cSSebastian Reichel    description: GPIO connected to the chip's enable pin
23437e6b6cSSebastian Reichel
24437e6b6cSSebastian Reichel  usb-phy:
25437e6b6cSSebastian Reichel    $ref: /schemas/types.yaml#/definitions/phandle
26437e6b6cSSebastian Reichel    description: USB PHY the ISP1704 is connected to
27437e6b6cSSebastian Reichel
28437e6b6cSSebastian Reichelrequired:
29437e6b6cSSebastian Reichel  - compatible
30437e6b6cSSebastian Reichel  - nxp,enable-gpio
31437e6b6cSSebastian Reichel  - usb-phy
32437e6b6cSSebastian Reichel
33437e6b6cSSebastian ReicheladditionalProperties: false
34437e6b6cSSebastian Reichel
35437e6b6cSSebastian Reichelexamples:
36437e6b6cSSebastian Reichel  - |
37437e6b6cSSebastian Reichel    #include <dt-bindings/gpio/gpio.h>
38437e6b6cSSebastian Reichel    charger-detect {
39437e6b6cSSebastian Reichel      compatible = "nxp,isp1704";
40437e6b6cSSebastian Reichel      nxp,enable-gpio = <&gpio3 3 GPIO_ACTIVE_LOW>;
41437e6b6cSSebastian Reichel      usb-phy = <&usb2_phy>;
42437e6b6cSSebastian Reichel    };
43