summaryrefslogtreecommitdiff
path: root/zephyr/projects/guybrush/i2c.dts
blob: 7b4c0753bc93bf963f36d868df2e5ab75fcc35b8 (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
/* Copyright 2021 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.
 */

/ {
	aliases {
		i2c-0 = &i2c0_0;
		i2c-1 = &i2c1_0;
		i2c-2 = &i2c2_0;
		i2c-3 = &i2c3_0;
		i2c-4 = &i2c4_1;
		i2c-5 = &i2c5_0;
		i2c-7 = &i2c7_0;
	};

	named-i2c-ports {
		compatible = "named-i2c-ports";

		i2c_tcpc0: tcpc0 {
			i2c-port = <&i2c0_0>;
			enum-name = "I2C_PORT_TCPC0";
			label = "TCPC0";
		};

		i2c_tcpc1: tcpc1 {
			i2c-port = <&i2c1_0>;
			enum-name = "I2C_PORT_TCPC1";
			label = "TCPC1";
		};

		battery {
			i2c-port = <&i2c2_0>;
			remote-port = <0>;
			enum-name = "I2C_PORT_BATTERY";
			label = "BATTERY";
		};

		usb_mux {
			i2c-port = <&i2c3_0>;
			enum-name = "I2C_PORT_USB_MUX";
			label = "USB_MUX";
		};

		charger {
			i2c-port = <&i2c4_1>;
			enum-name = "I2C_PORT_CHARGER";
			label = "CHARGER";
		};
	};


};

&i2c0_0 {
	status = "okay";
	clock-frequency = <I2C_BITRATE_FAST>;
};

&i2c_ctrl0 {
	status = "okay";
};

&i2c1_0 {
	status = "okay";
	clock-frequency = <I2C_BITRATE_FAST>;
};

&i2c_ctrl1 {
	status = "okay";
};

&i2c2_0 {
	status = "okay";
	clock-frequency = <I2C_BITRATE_STANDARD>;
};

&i2c_ctrl2 {
	status = "okay";
};

&i2c3_0 {
	status = "okay";
	clock-frequency = <I2C_BITRATE_FAST>;
};

&i2c_ctrl3 {
	status = "okay";
};

&i2c4_1 {
	status = "okay";
	clock-frequency = <I2C_BITRATE_FAST>;
};

&i2c_ctrl4 {
	status = "okay";
};