git: b4a16940b909 - stable/13 - add overlay for enabling i2c0 on rk3328

From: Andriy Gapon <avg_at_FreeBSD.org>
Date: Wed, 09 Feb 2022 09:36:11 UTC
The branch stable/13 has been updated by avg:

URL: https://cgit.FreeBSD.org/src/commit/?id=b4a16940b909657c8cf97edf13c8adba5be52ae5

commit b4a16940b909657c8cf97edf13c8adba5be52ae5
Author:     Andriy Gapon <avg@FreeBSD.org>
AuthorDate: 2021-11-26 16:30:08 +0000
Commit:     Andriy Gapon <avg@FreeBSD.org>
CommitDate: 2022-02-09 09:34:58 +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.
    
    (cherry picked from commit f41f98f0f07c45555c380e9c72c3208696621d98)
---
 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 7722a56df023..4cea836e010a 100644
--- a/sys/modules/dtb/rockchip/Makefile
+++ b/sys/modules/dtb/rockchip/Makefile
@@ -16,6 +16,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 \