Merge tag 'v5.15.57' into rpi-5.15.y
[platform/kernel/linux-rpi.git] / arch / arm / boot / dts / overlays / rpi-poe-plus-overlay.dts
1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
2 // Overlay for the Raspberry Pi PoE+ HAT.
3
4 #include "rpi-poe-overlay.dts"
5
6 / {
7         compatible = "brcm,bcm2835";
8
9         fragment@10 {
10                 target-path = "/";
11                 __overlay__ {
12                         rpi_poe_power_supply: rpi-poe-power-supply {
13                                 compatible = "raspberrypi,rpi-poe-power-supply";
14                                 firmware = <&firmware>;
15                                 status = "okay";
16                         };
17                 };
18         };
19         fragment@11 {
20                 target = <&poe_mfd>;
21                 __overlay__ {
22                         rpi-poe-power-supply@f2 {
23                                 compatible = "raspberrypi,rpi-poe-power-supply";
24                                 reg = <0xf2>;
25                                 status = "okay";
26                         };
27                 };
28         };
29
30         __overrides__ {
31                 i2c =   <0>, "+5+6",
32                         <&fwpwm>,"status=disabled",
33                         <&rpi_poe_power_supply>,"status=disabled",
34                         <&i2c_bus>,"status=okay",
35                         <&poe_mfd>,"status=okay",
36                         <&fan>,"pwms:0=",<&poe_mfd_pwm>;
37         };
38 };
39
40 &fan {
41         cooling-levels = <0 32 64 128 255>;
42 };
43
44 &params {
45         poe_fan_i2c = <&fwpwm>,"status=disabled",
46                       <&rpi_poe_power_supply>,"status=disabled",
47                       <&poe_mfd>,"status=okay",
48                       <&fan>,"pwms:0=",<&poe_mfd_pwm>;
49 };