summaryrefslogtreecommitdiff
path: root/zephyr/dts/bindings/charger/chg-chip.yaml
blob: 58cc487b1b77b4e1118b99bb953b130ae7a5ce60 (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
# Copyright 2022 The ChromiumOS Authors
# SPDX-License-Identifier: Apache-2.0

description: Charger chip

include: i2c-device.yaml

# Example
# The charger chips nodes have to be placed under the USB-C
# nodes(named-usbc-port).If the OCPC(on-charger per type-c port) config is
# enabled, the charger chips has to be defiend per USB-C port, with the primary
# one defined under port 0. If the CHARGER_SINGLE_CHIP config is enabled, only
# one charger chip must be defined. It has to be done under the port 0.
# For OCPC:
#	usbc {
#		#address-cells = <1>;
#		#size-cells = <0>;
#
#		port0@0 {
#			compatible = "named-usbc-port";
#			reg = <0>;
#			bc12 = <&bc12_port0>;
#			chg = <&chg_port0>;
#		};
#		port1@1 {
#			compatible = "named-usbc-port";
#			reg = <1>;
#			bc12 = <&bc12_port1>;
#			chg = <&chg_port1>;
#		};
#	};
#
#	&i2c5 {
#		chg_port0: sm5803@32 {
#			compatible = "siliconmitus,sm5803";
#			status = "okay";
#			reg = <0x32>;
#		};
#	};
#
#	&i2c4 {
#		chg_port1: sm5803@32 {
#			compatible = "siliconmitus,sm5803";
#			status = "okay";
#			reg = <0x32>;
#		};
#	};
#
# For CHARGER_SINGLE_CHIP:
#	usbc {
#		#address-cells = <1>;
#		#size-cells = <0>;
#
#		port0@0 {
#			compatible = "named-usbc-port";
#			reg = <0>;
#			chg = <&charger>;
#		};
#		port1@1 {
#			compatible = "named-usbc-port";
#			reg = <1>;
#			bc12 = <&bc12_port1>;
#		};
#	};
#
#	&i2c5 {
#		charger: sm5803@32 {
#			compatible = "siliconmitus,sm5803";
#			status = "okay";
#			reg = <0x32>;
#		};
#	};