@@ -31,6 +31,62 @@
};
};
+ /* i2c0 INA231 Sensors */
+ /*
+ - include/linux/platform_data/ina231.h
+
+ config = INA231_CONFIG(VSH_CT(eVSH_CT_8244uS) | \
+ VBUS_CT(eVBUS_CT_8244uS) | \
+ AVG_BIT(eAVG_16) | \
+ eSHUNT_BUS_VOLT_CONTINUOUS),
+ update_period = CONVERSION_DELAY(eVSH_CON_8244uS, eVBUS_CON_8244uS, eAVG_CON_16), // unit = usec
+ */
+
+ i2c@12C60000 {
+ status = "okay";
+ clock-frequency = <400000>;
+ ina231@40 {
+ compatible = "hardkernel,INA231";
+ reg = <0x40>;
+ sensor-name = "sensor_arm";
+ enable = <1>;
+ max_A = <9>;
+ shunt_R_mohm = <10>;
+ config = <0x45FF>;
+ update_period = <263808>;
+ };
+ ina231@41 {
+ compatible = "hardkernel,INA231";
+ reg = <0x41>;
+ sensor-name = "sensor_mem";
+ enable = <0>;
+ max_A = <3>;
+ shunt_R_mohm = <10>;
+ config = <0x45FF>;
+ update_period = <263808>;
+ };
+ ina231@44 {
+ compatible = "hardkernel,INA231";
+ reg = <0x44>;
+ sensor-name = "sensor_g3d";
+ enable = <0>;
+ max_A = <5>;
+ shunt_R_mohm = <10>;
+ config = <0x45FF>;
+ update_period = <263808>;
+ };
+ ina231@45 {
+ compatible = "hardkernel,INA231";
+ reg = <0x45>;
+ sensor-name = "sensor_kfc";
+ enable = <0>;
+ max_A = <2>;
+ shunt_R_mohm = <10>;
+ config = <0x45FF>;
+ update_period = <263808>;
+ };
+ };
+
regulators {
compatible = "simple-bus";
#address-cells = <1>;