From 68bee355e26d2836299b8ecdbb43978188122030 Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Fri, 20 Jan 2023 06:19:58 +0200 Subject: [PATCH] Add i2c kmod and the files --- .buildbot/openwrt/build.sh | 6 +++++- overlays/dualeth.txt | 7 +++++++ overlays/sensing.txt | 18 ++++++++++++++++++ 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 overlays/dualeth.txt create mode 100644 overlays/sensing.txt diff --git a/.buildbot/openwrt/build.sh b/.buildbot/openwrt/build.sh index 47b8b93..057d03b 100755 --- a/.buildbot/openwrt/build.sh +++ b/.buildbot/openwrt/build.sh @@ -58,8 +58,12 @@ cp ${pwd}/authorized_keys files/etc/dropbear chmod 0400 files/etc/dropbear/authorized_keys mkdir -p files/etc/uci-defaults cp ${pwd}/defaults/* files/etc/uci-defaults +mkdir -p files/boot/overlays +cp ${pwd}/overlays/*.txt files/boot/ +cp ${pwd}/overlays/*.dtbo files/boot/overlays/ -PACKAGES="kmod-nf-nathelper-extra kmod-rtc-ds1307 \ + +PACKAGES="kmod-i2c-bcm2835 kmod-nf-nathelper-extra kmod-rtc-ds1307 \ kmod-usb-audio kmod-usb-net-rtl8152 \ alsa-lib pciutils usbutils \ kmod-usb-net-qmi-wwan libqmi qmi-utils uqmi luci-proto-qmi \ diff --git a/overlays/dualeth.txt b/overlays/dualeth.txt new file mode 100644 index 0000000..88e2df6 --- /dev/null +++ b/overlays/dualeth.txt @@ -0,0 +1,7 @@ +dtparam=i2c_vc=on +dtoverlay=i2c-rtc,pcf85063a,i2c_csi_dsi + +[all] + +[cm4] +otg_mode=1 diff --git a/overlays/sensing.txt b/overlays/sensing.txt new file mode 100644 index 0000000..d6818d9 --- /dev/null +++ b/overlays/sensing.txt @@ -0,0 +1,18 @@ +dtparam=i2c_arm=on +enable_uart=1 + +dtoverlay=ed-sdhost +dtoverlay=i2c-rtc,pcf8563 + +dtoverlay=spi1-1cs +dtparam=cs0_pin=18,cs0_spidev=disabled +dtoverlay=ed-mcp2515-spi1-can0 +dtoverlay=uart2 +dtoverlay=uart3 +dtoverlay=uart4 +dtoverlay=uart5 +gpio=11=op,dl +[all] + +[cm4] +otg_mode=1