git: f41f98f0f07c - main - add overlay for enabling i2c0 on rk3328
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 26 Jan 2022 09:33:34 UTC
The branch main has been updated by avg:
URL: https://cgit.FreeBSD.org/src/commit/?id=f41f98f0f07c45555c380e9c72c3208696621d98
commit f41f98f0f07c45555c380e9c72c3208696621d98
Author: Andriy Gapon <avg@FreeBSD.org>
AuthorDate: 2021-11-26 16:30:08 +0000
Commit: Andriy Gapon <avg@FreeBSD.org>
CommitDate: 2022-01-26 09:30:53 +0000
add overlay for enabling i2c0 on rk3328
On Rock64 it is routed to pins 3 and 5 of the so called Pi-2 header.
MFC after: 2 weeks
---
sys/dts/arm64/overlays/rk3328-i2c0.dtso | 12 ++++++++++++
sys/modules/dtb/rockchip/Makefile | 1 +
2 files changed, 13 insertions(+)
diff --git a/sys/dts/arm64/overlays/rk3328-i2c0.dtso b/sys/dts/arm64/overlays/rk3328-i2c0.dtso
new file mode 100644
index 000000000000..13703b2bc1f4
--- /dev/null
+++ b/sys/dts/arm64/overlays/rk3328-i2c0.dtso
@@ -0,0 +1,12 @@
+/dts-v1/;
+/plugin/;
+
+/ {
+ compatible = "rockchip,rk3328";
+};
+
+&{/i2c@ff150000} {
+ status = "okay";
+};
+
+/* vim: set ft=dts: */
diff --git a/sys/modules/dtb/rockchip/Makefile b/sys/modules/dtb/rockchip/Makefile
index 3daf38fb8238..b0d3b977a347 100644
--- a/sys/modules/dtb/rockchip/Makefile
+++ b/sys/modules/dtb/rockchip/Makefile
@@ -20,6 +20,7 @@ DTS= \
rockchip/rk3399-rockpro64.dts
DTSO= rk3328-analog-sound.dtso \
+ rk3328-i2c0.dtso \
rk3328-dwc3.dtso \
rk3399-mmc0-disable.dtso \
rk3399-mmc1-disable.dtso \