|
| 1 | +/* |
| 2 | + * TI INA238 Power monitor |
| 3 | + */ |
| 4 | + |
| 5 | +/dts-v1/; |
| 6 | +/plugin/; |
| 7 | + |
| 8 | +/ { |
| 9 | + fragment@0 { |
| 10 | + target = <&i2cbus>; |
| 11 | + __overlay__ { |
| 12 | + #address-cells = <1>; |
| 13 | + #size-cells = <0>; |
| 14 | + status = "okay"; |
| 15 | + |
| 16 | + ina238: ina238@48 { |
| 17 | + compatible = "ti,ina238"; |
| 18 | + status = "okay"; |
| 19 | + #address-cells = <1>; |
| 20 | + #size-cells = <0>; |
| 21 | + reg = <0x40>; |
| 22 | + /* uOhms, uint32_t */ |
| 23 | + shunt-resistor = <1000>; |
| 24 | + /* 1 or 4, (±40.96 mV or ±163.84 mV) */ |
| 25 | + ti,shunt-gain = <1>; |
| 26 | + }; |
| 27 | + }; |
| 28 | + }; |
| 29 | + |
| 30 | + frag100: fragment@100 { |
| 31 | + target = <&i2c1>; |
| 32 | + i2cbus: __overlay__ { |
| 33 | + status = "okay"; |
| 34 | + }; |
| 35 | + }; |
| 36 | + |
| 37 | + fragment@101 { |
| 38 | + target = <&i2c0if>; |
| 39 | + __dormant__ { |
| 40 | + status = "okay"; |
| 41 | + }; |
| 42 | + }; |
| 43 | + |
| 44 | + fragment@102 { |
| 45 | + target = <&i2c0mux>; |
| 46 | + __dormant__ { |
| 47 | + status = "okay"; |
| 48 | + }; |
| 49 | + }; |
| 50 | + |
| 51 | + __overrides__ { |
| 52 | + addr = <&ina238>,"reg:0"; |
| 53 | + shunt_resistor = <&ina238>,"shunt-resistor:0"; |
| 54 | + gain = <&ina238>,"ti,shunt-gain:0"; |
| 55 | + i2c0 = <&frag100>, "target:0=",<&i2c0>; |
| 56 | + i2c_csi_dsi = <&frag100>, "target:0=",<&i2c_csi_dsi>, |
| 57 | + <0>,"+101+102"; |
| 58 | + i2c_csi_dsi0 = <&frag100>, "target:0=",<&i2c_csi_dsi0>, |
| 59 | + <0>,"+101+102"; |
| 60 | + i2c3 = <&frag100>, "target?=0", |
| 61 | + <&frag100>, "target-path=i2c3"; |
| 62 | + i2c4 = <&frag100>, "target?=0", |
| 63 | + <&frag100>, "target-path=i2c4"; |
| 64 | + i2c5 = <&frag100>, "target?=0", |
| 65 | + <&frag100>, "target-path=i2c5"; |
| 66 | + i2c6 = <&frag100>, "target?=0", |
| 67 | + <&frag100>, "target-path=i2c6"; |
| 68 | + i2c-path = <&frag100>, "target?=0", |
| 69 | + <&frag100>, "target-path"; |
| 70 | + }; |
| 71 | +}; |
0 commit comments