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 /* usbc.rst vbus-voltage-divider-adc start */ 16 vbus1: vbus { 17 compatible = "zephyr,usb-c-vbus-adc"; 18 io-channels = <&adc2 8>; 19 output-ohms = <49900>; 20 full-ohms = <(330000 + 49900)>; 21 }; 22 /* usbc.rst vbus-voltage-divider-adc end */ 23 24 ports { 25 #address-cells = <1>; 26 #size-cells = <0>; 27 /* usbc.rst usbc-port start */ 28 port1: usbc-port@1 { 29 compatible = "usb-c-connector"; 30 reg = <1>; 31 tcpc = <&ucpd1>; 32 vbus = <&vbus1>; 33 power-role = "sink"; 34 sink-pdos = <PDO_FIXED(5000, 100, 0)>; 35 }; 36 /* usbc.rst usbc-port end */ 37 }; 38}; 39 40&ucpd1 { 41 dead-battery; 42}; 43