Created
June 15, 2018 13:51
-
-
Save eblot/cd54481b8e46da871890214382b48005 to your computer and use it in GitHub Desktop.
Enable TWI0 master and INA3221 slave on OrangePi Zero
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts | |
index 84cd9c061227..07990e935dac 100644 | |
--- a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts | |
+++ b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts | |
@@ -132,6 +132,15 @@ | |
status = "okay"; | |
}; | |
+&i2c0 { | |
+ status = "okay"; | |
+ | |
+ hw_monitor@41 { | |
+ compatible = "ti,ina3221"; | |
+ reg = <0x41>; | |
+ }; | |
+}; | |
+ | |
&mmc0 { | |
vmmc-supply = <®_vcc3v3>; | |
bus-width = <4>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment