summaryrefslogtreecommitdiff
path: root/zephyr/projects/intelrvp/mtlrvp/mtlrvpp_npcx/mtlrvp_npcx.dts
blob: e50330c6d477ead17b381f57704a6702aaae9227 (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
/* 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.
 */

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

		battery: battery {
			i2c-port = <&i2c7_0>;
			enum-name = "I2C_PORT_BATTERY";
		};
		charger {
			i2c-port = <&i2c7_0>;
			enum-name = "I2C_PORT_CHARGER";
		};
		typec_aic1 {
			i2c-port = <&i2c0_0>;
			enum-name = "I2C_PORT_TYPEC_AIC_1";
		};
		typec_aic2 {
			i2c-port = <&i2c2_0>;
			enum-name = "I2C_PORT_TYPEC_AIC_2";
		};
	};
};

/* charger */
&i2c7_0 {
	status = "okay";
	clock-frequency = <I2C_BITRATE_STANDARD>;

	pca95xx: pca95xx@22 {
		compatible = "nxp,pca95xx";
		label = "PCA95XX";
		reg = <0x22>;
		gpio-controller;
		#gpio-cells = <2>;
		ngpios = <16>;
	};

	rvp_board_id: rvp-board-id {
		compatible = "intel,rvp-board-id";

		/*
		 * BOM ID [2]   : IOEX[0]
		 * BOM ID [1:0] : IOEX[15:14]
		 */
		bom-gpios = <&pca95xx 0 0>, <&pca95xx 15 0>, <&pca95xx 14 0>;

		/*
		 * FAB ID [1:0] : IOEX[2:1]
		 */
		fab-gpios = <&pca95xx 2 0>, <&pca95xx 1 0>;

		/*
		 * BOARD ID[5:0] : IOEX[13:8]
		 */
		board-gpios = <&pca95xx 13 0>, <&pca95xx 12 0>, <&pca95xx 11 0>,
			      <&pca95xx 10 0>, <&pca95xx 9 0>, <&pca95xx 8 0>;
	};
};

&i2c_ctrl7 {
	status = "okay";
};

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

&i2c_ctrl0 {
	status = "okay";
};

/* typec_aic2 */
&i2c2_0 {
	status = "okay";
	clock-frequency = <I2C_BITRATE_FAST>;
};

&i2c_ctrl2 {
	status = "okay";
};