blob: eab38efa9be2b30b408babb34074867b3a8783a7 [file] [log] [blame]
/*
* Copyright (c) 2022 The Chromium OS Authors.
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#include <dt-bindings/usb-c/pd.h>
/ {
vbus2: vbus {
compatible = "zephyr,usb-c-vbus-adc";
io-channels = <&adc1 3>;
output-ohms = <49900>;
full-ohms = <(330000 + 49900)>;
/* Pin B14 is used to control VBUS Discharge for Port2 */
discharge-gpios = <&gpiob 14 GPIO_ACTIVE_HIGH>;
};
ports {
#address-cells = <1>;
#size-cells = <0>;
port1: usbc-port@1 {
compatible = "usb-c-connector";
reg = <1>;
tcpc = <&ucpd2>;
vbus = <&vbus2>;
power-role = "sink";
sink-pdos = <PDO_FIXED(5000, 100, 0)>;
};
};
};