12eb4d8dcSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0 22eb4d8dcSEmmanuel Vadot# Copyright (C) 2021 Sebastian Reichel 32eb4d8dcSEmmanuel Vadot%YAML 1.2 42eb4d8dcSEmmanuel Vadot--- 5b97ee269SEmmanuel Vadot$id: http://devicetree.org/schemas/power/supply/isp1704.yaml# 6b97ee269SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 72eb4d8dcSEmmanuel Vadot 8*8bab661aSEmmanuel Vadottitle: NXP ISP1704 USB Charger Detection 92eb4d8dcSEmmanuel Vadot 102eb4d8dcSEmmanuel Vadotmaintainers: 112eb4d8dcSEmmanuel Vadot - Sebastian Reichel <sre@kernel.org> 122eb4d8dcSEmmanuel Vadot 132eb4d8dcSEmmanuel VadotallOf: 142eb4d8dcSEmmanuel Vadot - $ref: power-supply.yaml# 152eb4d8dcSEmmanuel Vadot 162eb4d8dcSEmmanuel Vadotproperties: 172eb4d8dcSEmmanuel Vadot compatible: 182eb4d8dcSEmmanuel Vadot const: nxp,isp1704 192eb4d8dcSEmmanuel Vadot 202eb4d8dcSEmmanuel Vadot nxp,enable-gpio: 212eb4d8dcSEmmanuel Vadot maxItems: 1 222eb4d8dcSEmmanuel Vadot description: GPIO connected to the chip's enable pin 232eb4d8dcSEmmanuel Vadot 242eb4d8dcSEmmanuel Vadot usb-phy: 252eb4d8dcSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/phandle 262eb4d8dcSEmmanuel Vadot description: USB PHY the ISP1704 is connected to 272eb4d8dcSEmmanuel Vadot 282eb4d8dcSEmmanuel Vadotrequired: 292eb4d8dcSEmmanuel Vadot - compatible 302eb4d8dcSEmmanuel Vadot - nxp,enable-gpio 312eb4d8dcSEmmanuel Vadot - usb-phy 322eb4d8dcSEmmanuel Vadot 332eb4d8dcSEmmanuel VadotadditionalProperties: false 342eb4d8dcSEmmanuel Vadot 352eb4d8dcSEmmanuel Vadotexamples: 362eb4d8dcSEmmanuel Vadot - | 372eb4d8dcSEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 382eb4d8dcSEmmanuel Vadot charger-detect { 392eb4d8dcSEmmanuel Vadot compatible = "nxp,isp1704"; 402eb4d8dcSEmmanuel Vadot nxp,enable-gpio = <&gpio3 3 GPIO_ACTIVE_LOW>; 412eb4d8dcSEmmanuel Vadot usb-phy = <&usb2_phy>; 422eb4d8dcSEmmanuel Vadot }; 43