|
2 | 2 | /plugin/; |
3 | 3 |
|
4 | 4 | // Overlay for the Raspberry Pi Power Hat. |
5 | | -// 1 of 2 overlays required for top/bottom interchangeability |
| 5 | +// 1 of 2 overlays required for top/bottom interchangeability |
6 | 6 |
|
7 | 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 = "raspberrypi,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 | | - }; |
59 | | - }; |
| 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 = "raspberrypi,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 | + }; |
| 59 | + }; |
60 | 60 | }; |
0 commit comments