Skip to content

Instantly share code, notes, and snippets.

@eblot
Created June 15, 2018 13:51
Show Gist options
  • Save eblot/cd54481b8e46da871890214382b48005 to your computer and use it in GitHub Desktop.
Save eblot/cd54481b8e46da871890214382b48005 to your computer and use it in GitHub Desktop.
Enable TWI0 master and INA3221 slave on OrangePi Zero
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 = <&reg_vcc3v3>;
bus-width = <4>;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment