NXP ISP1704 USB Charger Detection

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/isp1704.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nxp,isp1704"

nxp,enable-gpio — required here #

Maximum number of items (maxItems): 1

GPIO connected to the chip's enable pin

usb-phy — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

USB PHY the ISP1704 is connected to

Required in this object (required): "compatible", "nxp,enable-gpio", "usb-phy"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
charger-detect {
  compatible = "nxp,isp1704";
  nxp,enable-gpio = <&gpio3 3 GPIO_ACTIVE_LOW>;
  usb-phy = <&usb2_phy>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Line 2: Copyright (C) 2021 Sebastian Reichel

Edit this page