summaryrefslogtreecommitdiff
path: root/zephyr/projects/brya/usbc.dts
blob: 181acd837e11bba28c8c11d7b4aa9ac95b16f41f (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
/* Copyright 2022 The Chromium OS Authors. All rights reserved.
 * 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 {
		#address-cells = <1>;
		#size-cells = <0>;

		port0@0 {
			compatible = "named-usbc-port";
			reg = <0>;
			bc12 {
				compatible = "pericom,pi3usb9201";
				status = "okay";
				irq = <&int_usb_c0_bc12>;
				port = <&c0_c2_bc12>;
				i2c-addr-flags = "PI3USB9201_I2C_ADDR_3_FLAGS";
			};
			tcpc {
				compatible = "nuvoton,nct38xx";
				gpio-dev = <&nct3808_0_P1>;
				port = <&tcpc0_2>;
				i2c-addr-flags = "NCT38XX_I2C_ADDR1_1_FLAGS";
				tcpc-flags = <(
					TCPC_FLAGS_TCPCI_REV2_0 |
					TCPC_FLAGS_NO_DEBUG_ACC_CONTROL)>;
			};
			chg {
				compatible = "ti,bq25710";
				status = "okay";
				port = <&i2c_charger>;
			};
			usb-muxes = <&usb_c0_bb_retimer &virtual_mux_c0>;
		};
		port0-muxes {
			usb_c0_bb_retimer: jhl8040r-c0 {
				compatible = "intel,jhl8040r";
				port = <&retimer0_2>;
				i2c-addr-flags = <0x56>;
				int-pin = <&usb_c0_rt_int_odl>;
				reset-pin = <&usb_c0_rt_rst_odl>;
			};
			virtual_mux_c0: virtual-mux-c0 {
				compatible = "cros-ec,usbc-mux-virtual";
			};
		};

		port1@1 {
			compatible = "named-usbc-port";
			reg = <1>;
			bc12 {
				compatible = "pericom,pi3usb9201";
				status = "okay";
				irq = <&int_usb_c1_bc12>;
				port = <&c1_bc12>;
				i2c-addr-flags = "PI3USB9201_I2C_ADDR_3_FLAGS";
			};
			tcpc {
				compatible = "parade,ps8xxx";
				port = <&tcpc1>;
				i2c-addr-flags = "PS8XXX_I2C_ADDR1_FLAGS";
				tcpc-flags = <(
					TCPC_FLAGS_TCPCI_REV2_0 |
					TCPC_FLAGS_TCPCI_REV2_0_NO_VSAFE0V |
					TCPC_FLAGS_CONTROL_VCONN |
					TCPC_FLAGS_CONTROL_FRS)>;
			};
			usb-muxes = <&virtual_mux_c1 &tcpci_mux_c1>;
		};
		port1-muxes {
			tcpci_mux_c1: tcpci-mux-c1 {
				compatible = "cros-ec,usbc-mux-tcpci";
				hpd-update = "ps8xxx_tcpc_update_hpd_status";
			};
			virtual_mux_c1: virtual-mux-c1 {
				compatible = "cros-ec,usbc-mux-virtual";
			};
		};

		port2@2 {
			compatible = "named-usbc-port";
			reg = <2>;
			bc12 {
				compatible = "pericom,pi3usb9201";
				status = "okay";
				irq = <&int_usb_c2_bc12>;
				port = <&c0_c2_bc12>;
				i2c-addr-flags = "PI3USB9201_I2C_ADDR_1_FLAGS";
			};
			tcpc {
				compatible = "nuvoton,nct38xx";
				gpio-dev = <&nct3808_0_P2>;
				port = <&tcpc0_2>;
				i2c-addr-flags = "NCT38XX_I2C_ADDR2_1_FLAGS";
				tcpc-flags = <(TCPC_FLAGS_TCPCI_REV2_0)>;
			};
			usb-muxes = <&usb_c2_bb_retimer &virtual_mux_c2>;
		};
		port2-muxes {
			usb_c2_bb_retimer: jhl8040r-c2 {
				compatible = "intel,jhl8040r";
				port = <&retimer0_2>;
				i2c-addr-flags = <0x57>;
				int-pin = <&usb_c2_rt_int_odl>;
				reset-pin = <&usb_c2_rt_rst_odl>;
			};
			virtual_mux_c2: virtual-mux-c2 {
				compatible = "cros-ec,usbc-mux-virtual";
			};
		};
	};
};