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	aliases {
12		usbc-port0 = &port1;
13	};
14
15	vbus1: vbus {
16		compatible = "zephyr,usb-c-vbus-adc";
17		io-channels = <&adc1 9>;
18		output-ohms = <49900>;
19		full-ohms = <(330000 + 49900)>;
20
21		/* Pin B13 is used to control VBUS Discharge for Port1 */
22		discharge-gpios = <&gpiob 13 GPIO_ACTIVE_HIGH>;
23	};
24
25	ports {
26		#address-cells = <1>;
27		#size-cells = <0>;
28
29		port1: usbc-port@1 {
30			compatible = "usb-c-connector";
31			reg = <1>;
32			tcpc = <&ucpd1>;
33			vbus = <&vbus1>;
34			power-role = "sink";
35			sink-pdos = <PDO_FIXED(5000, 100, 0)>;
36		};
37	};
38};
39
40&ucpd1 {
41	dead-battery;
42};
43