summaryrefslogtreecommitdiff
path: root/zephyr/projects/corsola/usbc_magikarp.dts
blob: f0118b57d2503b52796786ec2434e98c2a9f4fdf (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* 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.
 */

/ {
	usbc {
		#address-cells = <1>;
		#size-cells = <0>;

		port0@0 {
			compatible = "named-usbc-port";
			reg = <0>;
			bc12 = <&bc12_ppc_port0>;
			ppc = <&bc12_ppc_port0>;
			tcpc = <&usbpd0>;
			chg = <&charger>;
			usb-muxes = <&it5205_mux_0 &virtual_mux_0>;
		};
		port0-muxes {
			virtual_mux_0: virtual-mux-0 {
				compatible = "cros-ec,usbc-mux-virtual";
			};
		};

		port1@1 {
			compatible = "named-usbc-port";
			reg = <1>;
			bc12 = <&bc12_port1>;
			ppc = <&ppc_port1>;
			tcpc = <&usbpd1>;
			usb-muxes = <&ps8743_mux_1 &virtual_mux_1>;
		};
		port1-muxes {
			virtual_mux_1: virtual-mux-1 {
				compatible = "cros-ec,usbc-mux-virtual";
			};
		};
	};
};

&usbpd0 {
	status = "okay";
};

&usbpd1 {
	status = "okay";
};