summaryrefslogtreecommitdiff
path: root/zephyr/projects/herobrine/usbc_villager.dts
blob: 90dd88412caac65234d7bb22cbd2d49b9b830873 (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
/* 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.
 */

/ {
	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 = <&i2c_power>;
				i2c-addr-flags = "PI3USB9201_I2C_ADDR_3_FLAGS";
			};
			ppc {
				compatible = "silergy,syv682x";
				status = "okay";
				port = <&i2c_tcpc0>;
				i2c-addr-flags = "SYV682X_ADDR1_FLAGS";
				frs_en_gpio = <&gpio_usb_c0_frs_en>;
			};
			tcpc {
				compatible = "parade,ps8xxx";
				status = "okay";
				port = <&i2c_tcpc0>;
				i2c-addr-flags = "PS8XXX_I2C_ADDR1_FLAGS";
			};
			chg {
				compatible = "intersil,isl923x";
				status = "okay";
				port = <&i2c_charger>;
			};
			usb-muxes = <&usb_mux_0>;
		};
		usb_mux_0: usb-mux-0 {
			compatible = "parade,usbc-mux-ps8xxx";
		};

		port1@1 {
			compatible = "named-usbc-port";
			reg = <1>;
			bc12 {
				compatible = "pericom,pi3usb9201";
				status = "okay";
				irq = <&int_usb_c1_bc12>;
				port = <&i2c_eeprom>;
				i2c-addr-flags = "PI3USB9201_I2C_ADDR_3_FLAGS";
			};
			ppc {
				compatible = "silergy,syv682x";
				status = "okay";
				port = <&i2c_tcpc1>;
				i2c-addr-flags = "SYV682X_ADDR1_FLAGS";
				frs_en_gpio = <&gpio_usb_c1_frs_en>;
			};
			tcpc {
				compatible = "parade,ps8xxx";
				status = "okay";
				port = <&i2c_tcpc1>;
				i2c-addr-flags = "PS8XXX_I2C_ADDR1_FLAGS";
			};
			usb-muxes = <&usb_mux_1>;
		};
		usb_mux_1: usb-mux-1 {
			compatible = "parade,usbc-mux-ps8xxx";
		};
	};
};