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