diff options
Diffstat (limited to 'target/linux/ramips')
-rw-r--r-- | target/linux/ramips/dts/mt7628an_kroks_kndrt31r16.dts | 61 | ||||
-rw-r--r-- | target/linux/ramips/image/mt76x8.mk | 11 | ||||
-rw-r--r-- | target/linux/ramips/mt76x8/base-files/etc/board.d/02_network | 1 |
3 files changed, 73 insertions, 0 deletions
diff --git a/target/linux/ramips/dts/mt7628an_kroks_kndrt31r16.dts b/target/linux/ramips/dts/mt7628an_kroks_kndrt31r16.dts new file mode 100644 index 0000000000..b0b41f0420 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_kroks_kndrt31r16.dts @@ -0,0 +1,61 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include "mt7628an_kroks.dtsi" + +/ { + compatible = "kroks,kndrt31r16", "mediatek,mt7628an-soc"; + model = "Kroks KNdRt31R16"; + + leds { + status { + label = "green:status"; + gpios = <&gpio 2 GPIO_ACTIVE_HIGH>; + }; + + wifi { + label = "blue:wifi"; + }; + }; + + gpio_export { + compatible = "gpio-export"; + #size-cells = <0>; + + usb1power { + gpio-export,name = "usb1power"; + gpio-export,output = <1>; + gpios = <&gpio 1 GPIO_ACTIVE_HIGH>; + }; + }; +}; + +&esw { + mediatek,portmap = <0x3e>; +}; + +&state_default { + gpio { + groups = "i2s", "wled_an"; + function = "gpio"; + }; + + p1led_an { + groups = "p1led_an"; + function = "p1led_an"; + }; + + p2led_an { + groups = "p2led_an"; + function = "p2led_an"; + }; + + p3led_an { + groups = "p3led_an"; + function = "p3led_an"; + }; + + p4led_an { + groups = "p4led_an"; + function = "p4led_an"; + }; +}; diff --git a/target/linux/ramips/image/mt76x8.mk b/target/linux/ramips/image/mt76x8.mk index ecb4075d62..69815f1858 100644 --- a/target/linux/ramips/image/mt76x8.mk +++ b/target/linux/ramips/image/mt76x8.mk @@ -310,6 +310,17 @@ define Device/jotale_js76x8-32m endef TARGET_DEVICES += jotale_js76x8-32m +define Device/kroks_kndrt31r16 + IMAGE_SIZE := 16064k + DEVICE_VENDOR := Kroks + DEVICE_MODEL := Rt-Cse5 UW DRSIM + DEVICE_ALT0_VENDOR := Kroks + DEVICE_ALT0_MODEL := KNdRt31R16 + DEVICE_PACKAGES := kmod-usb2 + SUPPORTED_DEVICES += kndrt31r16 +endef +TARGET_DEVICES += kroks_kndrt31r16 + define Device/kroks_kndrt31r19 IMAGE_SIZE := 16064k DEVICE_VENDOR := Kroks diff --git a/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network b/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network index 5c63f1e1b6..963a20c653 100644 --- a/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network +++ b/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network @@ -39,6 +39,7 @@ ramips_setup_interfaces() hilink,hlk-7628n|\ hilink,hlk-7688a|\ hiwifi,hc5861b|\ + kroks,kndrt31r16|\ skylab,skw92a|\ tplink,archer-c20-v4|\ tplink,archer-c20-v5|\ |