xref: /linux/Documentation/devicetree/bindings/power/supply/isp1704.yaml (revision 437e6b6c8f2d6e5447cc4739cb545be20905b560)
1*437e6b6cSSebastian Reichel# SPDX-License-Identifier: GPL-2.0
2*437e6b6cSSebastian Reichel# Copyright (C) 2021 Sebastian Reichel
3*437e6b6cSSebastian Reichel%YAML 1.2
4*437e6b6cSSebastian Reichel---
5*437e6b6cSSebastian Reichel$id: "http://devicetree.org/schemas/power/supply/isp1704.yaml#"
6*437e6b6cSSebastian Reichel$schema: "http://devicetree.org/meta-schemas/core.yaml#"
7*437e6b6cSSebastian Reichel
8*437e6b6cSSebastian Reicheltitle: Binding for NXP ISP1704 USB Charger Detection
9*437e6b6cSSebastian Reichel
10*437e6b6cSSebastian Reichelmaintainers:
11*437e6b6cSSebastian Reichel  - Sebastian Reichel <sre@kernel.org>
12*437e6b6cSSebastian Reichel
13*437e6b6cSSebastian ReichelallOf:
14*437e6b6cSSebastian Reichel  - $ref: power-supply.yaml#
15*437e6b6cSSebastian Reichel
16*437e6b6cSSebastian Reichelproperties:
17*437e6b6cSSebastian Reichel  compatible:
18*437e6b6cSSebastian Reichel    const: nxp,isp1704
19*437e6b6cSSebastian Reichel
20*437e6b6cSSebastian Reichel  nxp,enable-gpio:
21*437e6b6cSSebastian Reichel    maxItems: 1
22*437e6b6cSSebastian Reichel    description: GPIO connected to the chip's enable pin
23*437e6b6cSSebastian Reichel
24*437e6b6cSSebastian Reichel  usb-phy:
25*437e6b6cSSebastian Reichel    $ref: /schemas/types.yaml#/definitions/phandle
26*437e6b6cSSebastian Reichel    description: USB PHY the ISP1704 is connected to
27*437e6b6cSSebastian Reichel
28*437e6b6cSSebastian Reichelrequired:
29*437e6b6cSSebastian Reichel  - compatible
30*437e6b6cSSebastian Reichel  - nxp,enable-gpio
31*437e6b6cSSebastian Reichel  - usb-phy
32*437e6b6cSSebastian Reichel
33*437e6b6cSSebastian ReicheladditionalProperties: false
34*437e6b6cSSebastian Reichel
35*437e6b6cSSebastian Reichelexamples:
36*437e6b6cSSebastian Reichel  - |
37*437e6b6cSSebastian Reichel    #include <dt-bindings/gpio/gpio.h>
38*437e6b6cSSebastian Reichel    charger-detect {
39*437e6b6cSSebastian Reichel      compatible = "nxp,isp1704";
40*437e6b6cSSebastian Reichel      nxp,enable-gpio = <&gpio3 3 GPIO_ACTIVE_LOW>;
41*437e6b6cSSebastian Reichel      usb-phy = <&usb2_phy>;
42*437e6b6cSSebastian Reichel    };
43