forked from openwrt/openwrt
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
imx: add Aqara Gateway ZHWG11LM support
Aqara ZHWG11LM is a is a wall-mounted zigbee-to-internet gateway. It is almost a twin of Xiaomi DGNWG05LM with another wifi chip. Device specifications: * SoC: Freescale iMX6ULL * RAM: 256MiB * Flash: 256MiB NAND flash * Wireless 2.4GHz (RTL8189ES): b/g/n * Zigbee Chip: NXP jn5169 * Ring of RGB leds * BTN0 button * Sound chip TFA9882 + speaker Flashing instructions: Flashing requires a flashing tool from NXP: https://github.com/NXPmicro/mfgtools * solder wires and attach to system UART and usb connector * stop uboot by pressing any key * enter `bmode usb` to enable flashing over USB * run `mfgtoolcli` on the main computer to write kernel, dtb and rootfs to the device Known issues: - RTL8189ES driver is buggy and may cause freezes and kernel panics - Removing wdev disables the device until reboot. Patch is required. Signed-off-by: Ivan Belokobylskiy <belokobylskij@gmail.com>
- Loading branch information
Showing
5 changed files
with
63 additions
and
11 deletions.
There are no files selected for viewing
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
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
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
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
38 changes: 38 additions & 0 deletions
38
target/linux/imx/patches-6.6/002-ARM-dts-imx-add-Aqara-Gateway-support.patch
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
Aqara ZHWG11LM is a is a wall-mounted zigbee-to-internet gateway. | ||
Device specifications: | ||
* SoC: Freescale iMX6ULL | ||
* RAM: 256MiB | ||
* Flash: 256MiB NAND flash | ||
* Wireless 2.4GHz (RTL8189ES): b/g/n | ||
* Zigbee Chip: NXP jn5169 | ||
* Ring of RGB leds | ||
* BTN0 button | ||
* Sound chip TFA9882 + speaker | ||
|
||
Tested on: Aqara Gateway ZHWG11LM | ||
|
||
Signed-off-by: Ivan Belokobylskiy <belokobylskij@gmail.com> | ||
|
||
--- a/arch/arm/boot/dts/Makefile | ||
+++ b/arch/arm/boot/dts/Makefile | ||
@@ -673,6 +673,7 @@ dtb-$(CONFIG_SOC_IMX6UL) += \ | ||
imx6ul-tx6ul-mainboard.dtb \ | ||
imx6ull-14x14-evk.dtb \ | ||
imx6ull-xiaomi-dgnwg05lm.dtb \ | ||
+ imx6ull-aqara-zhwg11lm.dtb \ | ||
imx6ull-colibri-eval-v3.dtb \ | ||
imx6ull-colibri-wifi-eval-v3.dtb \ | ||
imx6ull-myir-mys-6ulx-eval.dtb \ | ||
--- /dev/null | ||
+++ b/arch/arm/boot/dts/imx6ull-aqara-zhwg11lm.dts | ||
@@ -0,0 +1,10 @@ | ||
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT | ||
+ | ||
+/dts-v1/; | ||
+ | ||
+#include "imx6ull-xiaomi-lumi.dtsi" | ||
+ | ||
+/ { | ||
+ model = "Aqara Gateway ZHWG11LM"; | ||
+ compatible = "aqara,zhwg11lm", "xiaomi,gateway-lumi", "fsl,imx6ull"; | ||
+}; |