Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions arch/arm/boot/dts/overlays/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
rpi-fw-uart.dtbo \
rpi-poe.dtbo \
rpi-poe-plus.dtbo \
rpi-power-hat-b.dtbo \
rpi-power-hat-t.dtbo \
rpi-sense.dtbo \
rpi-sense-v2.dtbo \
rpi-tv.dtbo \
Expand Down
12 changes: 12 additions & 0 deletions arch/arm/boot/dts/overlays/README
Original file line number Diff line number Diff line change
Expand Up @@ -4461,6 +4461,18 @@ Params: poe_fan_temp0 Temperature (in millicelcius) at which the fan
the firmware.


Name: rpi-power-hat-b
Info: Raspberry Pi Power HAT Bottom
Load: dtoverlay=rpi-power-hat-b
Params: <None>


Name: rpi-power-hat-t
Info: Raspberry Pi Power HAT Top
Load: dtoverlay=rpi-power-hat-t
Params: <None>


Name: rpi-proto
Info: This overlay has been renamed to proto-codec.
Load: <Deprecated>
Expand Down
59 changes: 59 additions & 0 deletions arch/arm/boot/dts/overlays/rpi-power-hat-b-overlay.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/dts-v1/;
/plugin/;

// Overlay for the Raspberry Pi Power Hat.
// 1 of 2 overlays required for top/bottom interchangeability

/ {
compatible = "brcm,bcm2835";

fragment@0 {
target = <&i2c1>;
__overlay__ {

#address-cells = <1>;
#size-cells = <0>;

power_control: fxl6408@43 {
reg = <0x43>;
compatible = "fcs,fxl6408";
gpio-controller;
#gpio-cells = <2>;
gpio-line-names =
"B1_PWR",
"B2_PWR",
"B3",
"B4",
"B5",
"B6",
"B7",
"B8";
};

pwr1_monitor: ina260@42 {
reg = <0x42>;
compatible = "ti,ina260";
};

pwr2_monitor: ina260@4c {
reg = <0x4c>;
compatible = "ti,ina260";
};
};
};

fragment@1 {
target-path = "/";
__overlay__ {
rpi_power_hat_b: rpi-power-hat-b {
compatible = "raspberrypi,rpi-power-hat-b";

// References to the I2C devices
power-controller = <&power_control>;
power1-monitor = <&pwr1_monitor>;
power2-monitor = <&pwr2_monitor>;
};
};
};
};
59 changes: 59 additions & 0 deletions arch/arm/boot/dts/overlays/rpi-power-hat-t-overlay.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/dts-v1/;
/plugin/;

// Overlay for the Raspberry Pi Power Hat.
// 2 of 2 overlays required for top/bottom interchangeability

/ {
compatible = "brcm,bcm2835";

fragment@0 {
target = <&i2c1>;
__overlay__ {

#address-cells = <1>;
#size-cells = <0>;

power_control: fxl6408@44 {
reg = <0x44>;
compatible = "fcs,fxl6408";
gpio-controller;
#gpio-cells = <2>;
gpio-line-names =
"T1_PWR",
"T2_PWR",
"T3",
"T4",
"T5",
"T6",
"T7",
"T8";
};

pwr1_monitor: ina260@46 {
reg = <0x46>;
compatible = "ti,ina260";
};

pwr2_monitor: ina260@4d {
reg = <0x4d>;
compatible = "ti,ina260";
};
};
};

fragment@1 {
target-path = "/";
__overlay__ {
rpi_power_hat_t: rpi-power-hat-t {
compatible = "raspberrypi,rpi-power-hat-t";

// References to the I2C devices
power-controller = <&power_control>;
power1-monitor = <&pwr1_monitor>;
power2-monitor = <&pwr2_monitor>;
};
};
};
};