Skip to content

Commit 02efea2

Browse files
committed
Added device tree overlays for the rpi-power HAT.
1 parent 7238434 commit 02efea2

File tree

2 files changed

+126
-0
lines changed

2 files changed

+126
-0
lines changed
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
/dts-v1/;
2+
/plugin/;
3+
4+
// Overlay for the Raspberry Pi Power Hat.
5+
// 1 of 2 overlays required for top/bottom interchangeability
6+
7+
/ {
8+
compatible = "brcm,bcm2835";
9+
10+
fragment@0 {
11+
target = <&i2c1>;
12+
__overlay__ {
13+
14+
#address-cells = <1>;
15+
#size-cells = <0>;
16+
17+
power_control: fxl6408@43 {
18+
reg = <0x43>;
19+
compatible = "fcs,fxl6408";
20+
gpio-controller;
21+
#gpio-cells = <2>;
22+
gpio-line-names =
23+
"B1_PWR",
24+
"B2_PWR",
25+
"B3",
26+
"B4",
27+
"B5",
28+
"B6",
29+
"B7",
30+
"B8";
31+
};
32+
33+
pwr1_monitor: ina260@42 {
34+
reg = <0x42>;
35+
compatible = "ti,ina260";
36+
};
37+
38+
pwr2_monitor: ina260@4c {
39+
reg = <0x4c>;
40+
compatible = "ti,ina260";
41+
};
42+
};
43+
};
44+
45+
fragment@1 {
46+
target-path = "/";
47+
__overlay__ {
48+
rpi_power_hat_b: rpi-power-hat-b {
49+
compatible = "Raspberry Pi,rpi-power-hat-b";
50+
#address-cells = <1>;
51+
#size-cells = <0>;
52+
53+
// References to the I2C devices
54+
power-controller = <&power_control>;
55+
power1-monitor = <&pwr1_monitor>;
56+
power2-monitor = <&pwr2_monitor>;
57+
58+
// HAT metadata
59+
hat-name = "rpi-power-hat Bottom";
60+
};
61+
};
62+
};
63+
};
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
/dts-v1/;
2+
/plugin/;
3+
4+
// Overlay for the Raspberry Pi Power Hat.
5+
// 2 of 2 overlays required for top/bottom interchangeability
6+
7+
/ {
8+
compatible = "brcm,bcm2835";
9+
10+
fragment@0 {
11+
target = <&i2c1>;
12+
__overlay__ {
13+
14+
#address-cells = <1>;
15+
#size-cells = <0>;
16+
17+
power_control: fxl6408@44 {
18+
reg = <0x44>;
19+
compatible = "fcs,fxl6408";
20+
gpio-controller;
21+
#gpio-cells = <2>;
22+
gpio-line-names =
23+
"T1_PWR",
24+
"T2_PWR",
25+
"T3",
26+
"T4",
27+
"T5",
28+
"T6",
29+
"T7",
30+
"T8";
31+
};
32+
33+
pwr1_monitor: ina260@46 {
34+
reg = <0x46>;
35+
compatible = "ti,ina260";
36+
};
37+
38+
pwr2_monitor: ina260@4d {
39+
reg = <0x4d>;
40+
compatible = "ti,ina260";
41+
};
42+
};
43+
};
44+
45+
fragment@1 {
46+
target-path = "/";
47+
__overlay__ {
48+
rpi_power_hat_t: rpi-power-hat-t {
49+
compatible = "Raspberry Pi,rpi-power-hat-t";
50+
#address-cells = <1>;
51+
#size-cells = <0>;
52+
53+
// References to the I2C devices
54+
power-controller = <&power_control>;
55+
power1-monitor = <&pwr1_monitor>;
56+
power2-monitor = <&pwr2_monitor>;
57+
58+
// HAT metadata
59+
hat-name = "rpi-power-hat Top";
60+
};
61+
};
62+
};
63+
};

0 commit comments

Comments
 (0)