1/*
2 * Copyright (c) 2022 The Chromium OS Authors.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 *
6 */
7
8#include <dt-bindings/usb-c/pd.h>
9
10/ {
11	vbus1: vbus {
12		compatible = "zephyr,usb-c-vbus-adc";
13		io-channels = <&adc1 9>;
14		output-ohms = <49900>;
15		full-ohms = <(330000 + 49900)>;
16
17		/* Pin B13 is used to control VBUS Discharge for Port1 */
18		discharge-gpios = <&gpiob 13 GPIO_ACTIVE_HIGH>;
19	};
20
21	ports {
22		#address-cells = <1>;
23		#size-cells = <0>;
24
25		port1: usbc-port@1 {
26			compatible = "usb-c-connector";
27			reg = <1>;
28			tcpc = <&ucpd1>;
29			vbus = <&vbus1>;
30			power-role = "sink";
31			sink-pdos = <PDO_FIXED(5000, 100, 0)>;
32		};
33	};
34};
35
36&ucpd1 {
37	dead-battery;
38};
39