blob: 2f98d3a99b83d4bdb7e27a53858d4980afda8a70 (
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
|
/* 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.
*/
/*
* Kingler and Steelix use the same dts, take care of this when modify it.
*/
/ {
named-i2c-ports {
compatible = "named-i2c-ports";
i2c_sensor: sensor {
i2c-port = <&i2c0_0>;
enum-names = "I2C_PORT_SENSOR";
};
i2c_usb_c0: usb-c0 {
i2c-port = <&i2c1_0>;
remote-port = <7>;
enum-names = "I2C_PORT_USB_C0";
};
i2c_usb_c1: usb-c1 {
i2c-port = <&i2c2_0>;
enum-names = "I2C_PORT_USB_C1",
"I2C_PORT_USB_C1_TCPC",
"I2C_PORT_USB_C1_PPC";
};
i2c_charger: charger {
i2c-port = <&i2c3_0>;
enum-names = "I2C_PORT_POWER",
"I2C_PORT_EEPROM";
};
battery {
i2c-port = <&i2c5_0>;
remote-port = <1>;
enum-names = "I2C_PORT_BATTERY",
"I2C_PORT_VIRTUAL_BATTERY";
};
};
};
&i2c0_0 {
label = "I2C_SENSOR";
status = "okay";
clock-frequency = <I2C_BITRATE_FAST>;
pinctrl-0 = <&i2c0_0_sda_scl_gpb4_b5>;
pinctrl-names = "default";
};
&i2c_ctrl0 {
status = "okay";
};
&i2c1_0 {
label = "I2C_USB_C0";
status = "okay";
clock-frequency = <I2C_BITRATE_FAST_PLUS>;
pinctrl-0 = <&i2c1_0_sda_scl_gp87_90>;
pinctrl-names = "default";
bc12_port0: pi3usb9201@5f {
compatible = "pericom,pi3usb9201";
status = "okay";
reg = <0x5f>;
irq = <&int_usb_c0_bc12>;
};
};
&i2c_ctrl1 {
status = "okay";
};
&i2c2_0 {
label = "I2C_USB_C1";
status = "okay";
clock-frequency = <I2C_BITRATE_FAST_PLUS>;
pinctrl-0 = <&i2c2_0_sda_scl_gp91_92>;
pinctrl-names = "default";
bc12_port1: rt1718s-bc12@40 {
compatible = "richtek,rt1718s-bc12";
status = "okay";
reg = <0x40>;
};
};
&i2c_ctrl2 {
status = "okay";
};
i2c_pwr_cbi: &i2c3_0 {
label = "I2C_PWR_CBI";
status = "okay";
clock-frequency = <I2C_BITRATE_FAST>;
pinctrl-0 = <&i2c3_0_sda_scl_gpd0_d1>;
pinctrl-names = "default";
};
&i2c_ctrl3 {
status = "okay";
};
&i2c5_0 {
label = "I2C_BATTERY";
status = "okay";
clock-frequency = <I2C_BITRATE_STANDARD>;
pinctrl-0 = <&i2c5_0_sda_scl_gp33_36>;
pinctrl-names = "default";
};
&i2c_ctrl5 {
status = "okay";
};
|