summaryrefslogtreecommitdiff
path: root/zephyr/test/drivers/anx7447/tcpc_policy.dts
blob: 6bdae81e73404649c1b6854d49f80c0b2bce40c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* Copyright 2022 The ChromiumOS Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#include <dt-bindings/usb_pd_tcpm.h>

/ {
	usbc {
		port0@0 {
			compatible = "named-usbc-port";
			tcpc = <&anx7447_emul>;
		};
	};
};

&i2c0 {
	status="okay";

	anx7447_emul: anx7447_emul@2c {
		compatible = "cros,anx7447-tcpc-emul";
		reg = <0x2c>;
		tcpc-flags = <(
			TCPC_FLAGS_VBUS_MONITOR |
			TCPC_FLAGS_ALERT_OD |
			TCPC_FLAGS_CONTROL_VCONN |
			TCPC_FLAGS_CONTROL_FRS)>;
	};
};