]> www.infradead.org Git - linux.git/commitdiff
ARM: dts: aspeed: bletchley: Add INA230 sensor on each sled
authorPotin Lai <potin.lai@quantatw.com>
Tue, 15 Feb 2022 16:31:49 +0000 (00:31 +0800)
committerJoel Stanley <joel@jms.id.au>
Wed, 16 Feb 2022 05:07:24 +0000 (15:37 +1030)
Add INA230 node on each sled based on EVT HW.

Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Patrick Williams <patrick@stwcx.xyz>
Link: https://lore.kernel.org/r/20220215163151.32252-9-potin.lai@quantatw.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts

index c9c3ff39bee5b9b28c09c8e3def542aecdc599e4..3ab48420b712bb33fa392788872094867d661bf5 100644 (file)
 
 &i2c0 {
        status = "okay";
-       /* TODO: Add ADC INA230 */
+       ina230@45 {
+               compatible = "ti,ina230";
+               reg = <0x45>;
+               shunt-resistor = <2000>;
+       };
 
        mp5023@40 {
                compatible = "mps,mp5023";
 
 &i2c1 {
        status = "okay";
-       /* TODO: Add ADC INA230 */
+       ina230@45 {
+               compatible = "ti,ina230";
+               reg = <0x45>;
+               shunt-resistor = <2000>;
+       };
 
        mp5023@40 {
                compatible = "mps,mp5023";
 
 &i2c2 {
        status = "okay";
-       /* TODO: Add ADC INA230 */
+       ina230@45 {
+               compatible = "ti,ina230";
+               reg = <0x45>;
+               shunt-resistor = <2000>;
+       };
 
        mp5023@40 {
                compatible = "mps,mp5023";
 
 &i2c3 {
        status = "okay";
-       /* TODO: Add ADC INA230 */
+       ina230@45 {
+               compatible = "ti,ina230";
+               reg = <0x45>;
+               shunt-resistor = <2000>;
+       };
 
        mp5023@40 {
                compatible = "mps,mp5023";
 
 &i2c4 {
        status = "okay";
-       /* TODO: Add ADC INA230 */
+       ina230@45 {
+               compatible = "ti,ina230";
+               reg = <0x45>;
+               shunt-resistor = <2000>;
+       };
 
        mp5023@40 {
                compatible = "mps,mp5023";
 
 &i2c5 {
        status = "okay";
-       /* TODO: Add ADC INA230 */
+       ina230@45 {
+               compatible = "ti,ina230";
+               reg = <0x45>;
+               shunt-resistor = <2000>;
+       };
 
        mp5023@40 {
                compatible = "mps,mp5023";