diff --git a/package/base-files/Makefile b/package/base-files/Makefile index 87c43fdc0c..156e7bc8b9 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -12,7 +12,7 @@ include $(INCLUDE_DIR)/version.mk include $(INCLUDE_DIR)/feeds.mk PKG_NAME:=base-files -PKG_RELEASE:=216 +PKG_RELEASE:=218 PKG_FLAGS:=nonshared PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/ @@ -118,12 +118,14 @@ ifdef CONFIG_SIGNED_PACKAGES endef +ifndef CONFIG_BUILDBOT define Package/base-files/install-key mkdir -p $(1)/etc/opkg/keys $(CP) $(BUILD_KEY).pub $(1)/etc/opkg/keys/`$(STAGING_DIR_HOST)/bin/usign -F -p $(BUILD_KEY).pub` endef endif +endif ifeq ($(CONFIG_NAND_SUPPORT),) define Package/base-files/nand-support diff --git a/package/base-files/files/lib/preinit/10_indicate_preinit b/package/base-files/files/lib/preinit/10_indicate_preinit index c3ec7bfdf7..423c425223 100644 --- a/package/base-files/files/lib/preinit/10_indicate_preinit +++ b/package/base-files/files/lib/preinit/10_indicate_preinit @@ -33,6 +33,11 @@ preinit_config_switch() { json_get_vars enable reset + if [ "$reset" -eq "1" ]; then + swconfig dev $name set reset + fi + swconfig dev $name set enable_vlan $enable + if json_is_a roles array; then json_get_keys roles roles json_select roles @@ -43,19 +48,15 @@ preinit_config_switch() { json_select .. if [ "$device" = "$lan_if" ]; then - if [ "$reset" -eq "1" ]; then - swconfig dev $name set reset - fi - - swconfig dev $name set enable_vlan $enable swconfig dev $name vlan $role set ports "$ports" - swconfig dev $name set apply fi done json_select .. fi + swconfig dev $name set apply + json_select .. json_select .. } diff --git a/package/firmware/cypress-firmware/Makefile b/package/firmware/cypress-firmware/Makefile index 6325086ae2..d091a4d9ae 100644 --- a/package/firmware/cypress-firmware/Makefile +++ b/package/firmware/cypress-firmware/Makefile @@ -10,12 +10,12 @@ include $(TOPDIR)/rules.mk UNPACK_CMD=unzip -q -p $(DL_DIR)/$(PKG_SOURCE) $(PKG_SOURCE_UNZIP) | gzip -dc | $(HOST_TAR) -C $(1) $(TAR_OPTIONS) PKG_NAME:=cypress-firmware -PKG_VERSION:=v4.14.77-2020_0115 +PKG_VERSION:=v5.4.18-2020_0402 PKG_SOURCE_UNZIP:=cypress-firmware-$(PKG_VERSION).tar.gz PKG_SOURCE:=cypress-fmac-$(PKG_VERSION).zip -PKG_SOURCE_URL:=https://community.cypress.com/servlet/JiveServlet/download/19000-1-51721/ -PKG_HASH:=a5510f82aacf585b5d29732b6d6777d4a4b26a667154d91cfcfc0d6d5dc4fef5 +PKG_SOURCE_URL:=https://community.cypress.com/servlet/JiveServlet/download/19375-1-53475/ +PKG_HASH:=b12b0570f462c2f3c26dde98b10235a845a7109037def1e7e51af728bcc1a958 PKG_MAINTAINER:=Álvaro Fernández Rojas @@ -274,6 +274,24 @@ endef $(eval $(call BuildPackage,cypress-firmware-4373-usb)) +# Cypress 54591 PCIe Firmware +define Package/cypress-firmware-54591-pcie + $(Package/cypress-firmware-default) + TITLE:=CYW54591 FullMac PCIe firmware +endef + +define Package/cypress-firmware-54591-pcie/install + $(INSTALL_DIR) $(1)/lib/firmware/brcm + $(INSTALL_DATA) \ + $(PKG_BUILD_DIR)/firmware/brcmfmac54591-pcie.bin \ + $(1)/lib/firmware/brcm/brcmfmac54591-pcie.bin + $(INSTALL_DATA) \ + $(PKG_BUILD_DIR)/firmware/brcmfmac54591-pcie.clm_blob \ + $(1)/lib/firmware/brcm/brcmfmac54591-pcie.clm_blob +endef + +$(eval $(call BuildPackage,cypress-firmware-54591-pcie)) + # Cypress 89459 PCIe Firmware define Package/cypress-firmware-89459-pcie $(Package/cypress-firmware-default) diff --git a/package/network/services/dnsmasq/Makefile b/package/network/services/dnsmasq/Makefile index c1ed2f7e0a..d07804bad0 100644 --- a/package/network/services/dnsmasq/Makefile +++ b/package/network/services/dnsmasq/Makefile @@ -8,13 +8,13 @@ include $(TOPDIR)/rules.mk PKG_NAME:=dnsmasq -PKG_UPSTREAM_VERSION:=2.81rc5 +PKG_UPSTREAM_VERSION:=2.81 PKG_VERSION:=$(subst test,~~test,$(subst rc,~rc,$(PKG_UPSTREAM_VERSION))) PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_UPSTREAM_VERSION).tar.xz -PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq/release-candidates -PKG_HASH:=d95439b0f0b3d540fd4a10fc150efa7478e0d70db8168d76550562dadf9fc433 +PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq +PKG_HASH:=749ca903537c5197c26444ac24b0dce242cf42595fdfe6b9a5b9e4c7ad32f8fb PKG_LICENSE:=GPL-2.0 PKG_LICENSE_FILES:=COPYING diff --git a/target/linux/bcm63xx/image/bcm63xx.mk b/target/linux/bcm63xx/image/bcm63xx.mk index ccbc7f1325..64ddb6374d 100644 --- a/target/linux/bcm63xx/image/bcm63xx.mk +++ b/target/linux/bcm63xx/image/bcm63xx.mk @@ -91,6 +91,7 @@ define Device/brcm_bcm96338w DEVICE_MODEL := 96338W CFE_BOARD_ID := 6338W CFE_CHIP_ID := 6338 + DEFAULT := n endef TARGET_DEVICES += brcm_bcm96338w @@ -112,6 +113,7 @@ define Device/brcm_bcm96348gw IMAGES += cfe-bc221.bin CFE_BOARD_ID := 96348GW CFE_CHIP_ID := 6348 + DEFAULT := n endef TARGET_DEVICES += brcm_bcm96348gw @@ -121,6 +123,7 @@ define Device/brcm_bcm96348gw-10 DEVICE_MODEL := 96348GW-10 CFE_BOARD_ID := 96348GW-10 CFE_CHIP_ID := 6348 + DEFAULT := n endef TARGET_DEVICES += brcm_bcm96348gw-10 @@ -130,6 +133,7 @@ define Device/brcm_bcm96348gw-11 DEVICE_MODEL := 96348GW-11 CFE_BOARD_ID := 96348GW-11 CFE_CHIP_ID := 6348 + DEFAULT := n endef TARGET_DEVICES += brcm_bcm96348gw-11 @@ -139,6 +143,7 @@ define Device/brcm_bcm96348r DEVICE_MODEL := 96348R CFE_BOARD_ID := 96348R CFE_CHIP_ID := 6348 + DEFAULT := n endef TARGET_DEVICES += brcm_bcm96348r @@ -513,6 +518,7 @@ define Device/d-link_dsl-274xb-c2 CFE_BOARD_ID := 96358GW CFE_CHIP_ID := 6358 DEVICE_PACKAGES := $(B43_PACKAGES) + DEFAULT := n endef TARGET_DEVICES += d-link_dsl-274xb-c2 @@ -528,6 +534,7 @@ define Device/d-link_dsl-274xb-c3 CFE_BOARD_ID := AW4139 CFE_CHIP_ID := 6358 DEVICE_PACKAGES := $(B43_PACKAGES) + DEFAULT := n endef TARGET_DEVICES += d-link_dsl-274xb-c3 @@ -648,6 +655,7 @@ define Device/huawei_echolife-hg520v CFE_EXTRAS += --rsa-signature "EchoLife_HG520v" SOC := bcm6359 DEVICE_PACKAGES := $(B43_PACKAGES) + DEFAULT := n endef TARGET_DEVICES += huawei_echolife-hg520v @@ -1057,6 +1065,7 @@ define Device/tecom_gw6000 CFE_BOARD_ID := 96348GW CFE_CHIP_ID := 6348 DEVICE_PACKAGES := $(BRCMWL_PACKAGES) $(USB1_PACKAGES) + DEFAULT := n endef TARGET_DEVICES += tecom_gw6000 @@ -1068,6 +1077,7 @@ define Device/tecom_gw6200 CFE_CHIP_ID := 6348 CFE_EXTRAS += --rsa-signature "$(shell printf '\x99')" DEVICE_PACKAGES := $(BRCMWL_PACKAGES) $(USB1_PACKAGES) + DEFAULT := n endef TARGET_DEVICES += tecom_gw6200 @@ -1148,5 +1158,6 @@ define Device/zyxel_p870hw-51a-v2 CFE_CHIP_ID := 6368 CFE_EXTRAS += --rsa-signature "ZyXEL" --signature "ZyXEL_0001" DEVICE_PACKAGES := $(B43_PACKAGES) + DEFAULT := n endef TARGET_DEVICES += zyxel_p870hw-51a-v2 diff --git a/target/linux/generic/pending-5.4/481-mtd-spi-nor-rework-broken-flash-reset-support.patch b/target/linux/generic/pending-5.4/481-mtd-spi-nor-rework-broken-flash-reset-support.patch new file mode 100644 index 0000000000..b2f73a5cbd --- /dev/null +++ b/target/linux/generic/pending-5.4/481-mtd-spi-nor-rework-broken-flash-reset-support.patch @@ -0,0 +1,167 @@ +From ea92cbb50a78404e29de2cc3999a240615ffb1c8 Mon Sep 17 00:00:00 2001 +From: Chuanhong Guo +Date: Mon, 6 Apr 2020 17:58:48 +0800 +Subject: [PATCH] mtd: spi-nor: rework broken-flash-reset support + +Instead of resetting flash to 3B address on remove hook, this +implementation only enters 4B mode when needed, which prevents +more unexpected reboot stuck. This implementation makes it only +break when a kernel panic happens during flash operation on 16M+ +areas. +*OpenWrt only*: silent broken-flash-reset warning. We are not dealing +with vendors and it's unpleasant for users to se that unnecessary +and long WARN_ON print. + +Signed-off-by: Chuanhong Guo +--- + drivers/mtd/spi-nor/spi-nor.c | 52 +++++++++++++++++++++++++++++++++-- + 1 file changed, 49 insertions(+), 3 deletions(-) + +--- a/drivers/mtd/spi-nor/spi-nor.c ++++ b/drivers/mtd/spi-nor/spi-nor.c +@@ -616,6 +616,22 @@ static void spi_nor_set_4byte_opcodes(st + } + } + ++static int spi_nor_check_set_addr_width(struct spi_nor *nor, loff_t addr) ++{ ++ u8 addr_width; ++ ++ if ((nor->flags & (SNOR_F_4B_OPCODES | SNOR_F_BROKEN_RESET)) != ++ SNOR_F_BROKEN_RESET) ++ return 0; ++ ++ addr_width = addr & 0xff000000 ? 4 : 3; ++ if (nor->addr_width == addr_width) ++ return 0; ++ ++ nor->addr_width = addr_width; ++ return nor->params.set_4byte(nor, addr_width == 4); ++} ++ + static int macronix_set_4byte(struct spi_nor *nor, bool enable) + { + if (nor->spimem) { +@@ -1259,6 +1275,10 @@ static int spi_nor_erase(struct mtd_info + if (ret) + return ret; + ++ ret = spi_nor_check_set_addr_width(nor, instr->addr + instr->len); ++ if (ret < 0) ++ return ret; ++ + /* whole-chip erase? */ + if (len == mtd->size && !(nor->flags & SNOR_F_NO_OP_CHIP_ERASE)) { + unsigned long timeout; +@@ -1315,6 +1335,7 @@ static int spi_nor_erase(struct mtd_info + write_disable(nor); + + erase_err: ++ spi_nor_check_set_addr_width(nor, 0); + spi_nor_unlock_and_unprep(nor, SPI_NOR_OPS_ERASE); + + return ret; +@@ -1621,7 +1642,9 @@ static int spi_nor_lock(struct mtd_info + if (ret) + return ret; + ++ spi_nor_check_set_addr_width(nor, ofs + len); + ret = nor->params.locking_ops->lock(nor, ofs, len); ++ spi_nor_check_set_addr_width(nor, 0); + + spi_nor_unlock_and_unprep(nor, SPI_NOR_OPS_UNLOCK); + return ret; +@@ -1636,7 +1659,9 @@ static int spi_nor_unlock(struct mtd_inf + if (ret) + return ret; + ++ spi_nor_check_set_addr_width(nor, ofs + len); + ret = nor->params.locking_ops->unlock(nor, ofs, len); ++ spi_nor_check_set_addr_width(nor, 0); + + spi_nor_unlock_and_unprep(nor, SPI_NOR_OPS_LOCK); + return ret; +@@ -1651,7 +1676,9 @@ static int spi_nor_is_locked(struct mtd_ + if (ret) + return ret; + ++ spi_nor_check_set_addr_width(nor, ofs + len); + ret = nor->params.locking_ops->is_locked(nor, ofs, len); ++ spi_nor_check_set_addr_width(nor, 0); + + spi_nor_unlock_and_unprep(nor, SPI_NOR_OPS_LOCK); + return ret; +@@ -2557,6 +2584,10 @@ static int spi_nor_read(struct mtd_info + if (ret) + return ret; + ++ ret = spi_nor_check_set_addr_width(nor, from + len); ++ if (ret < 0) ++ return ret; ++ + while (len) { + loff_t addr = from; + +@@ -2580,6 +2611,7 @@ static int spi_nor_read(struct mtd_info + ret = 0; + + read_err: ++ spi_nor_check_set_addr_width(nor, 0); + spi_nor_unlock_and_unprep(nor, SPI_NOR_OPS_READ); + return ret; + } +@@ -2597,6 +2629,10 @@ static int sst_write(struct mtd_info *mt + if (ret) + return ret; + ++ ret = spi_nor_check_set_addr_width(nor, to + len); ++ if (ret < 0) ++ return ret; ++ + write_enable(nor); + + nor->sst_write_second = false; +@@ -2659,6 +2695,7 @@ static int sst_write(struct mtd_info *mt + } + sst_write_err: + *retlen += actual; ++ spi_nor_check_set_addr_width(nor, 0); + spi_nor_unlock_and_unprep(nor, SPI_NOR_OPS_WRITE); + return ret; + } +@@ -2681,6 +2718,10 @@ static int spi_nor_write(struct mtd_info + if (ret) + return ret; + ++ ret = spi_nor_check_set_addr_width(nor, to + len); ++ if (ret < 0) ++ return ret; ++ + for (i = 0; i < len; ) { + ssize_t written; + loff_t addr = to + i; +@@ -2720,6 +2761,7 @@ static int spi_nor_write(struct mtd_info + } + + write_err: ++ spi_nor_check_set_addr_width(nor, 0); + spi_nor_unlock_and_unprep(nor, SPI_NOR_OPS_WRITE); + return ret; + } +@@ -4726,9 +4768,13 @@ static int spi_nor_init(struct spi_nor * + * reboots (e.g., crashes). Warn the user (or hopefully, system + * designer) that this is bad. + */ +- WARN_ONCE(nor->flags & SNOR_F_BROKEN_RESET, +- "enabling reset hack; may not recover from unexpected reboots\n"); +- nor->params.set_4byte(nor, true); ++ if (nor->flags & SNOR_F_BROKEN_RESET) { ++ dev_warn(nor->dev, ++ "enabling reset hack; may not recover from unexpected reboots\n"); ++ nor->addr_width = 3; ++ } else { ++ nor->params.set_4byte(nor, true); ++ } + } + + return 0; diff --git a/target/linux/ramips/Makefile b/target/linux/ramips/Makefile index 82576cf155..864cfa543d 100644 --- a/target/linux/ramips/Makefile +++ b/target/linux/ramips/Makefile @@ -13,6 +13,7 @@ SUBTARGETS:=mt7620 mt7621 mt76x8 rt288x rt305x rt3883 FEATURES:=squashfs gpio KERNEL_PATCHVER:=4.14 +KERNEL_TESTING_PATCHVER:=5.4 define Target/Description Build firmware images for Ralink RT288x/RT3xxx based boards. diff --git a/target/linux/ramips/dts/mt7620a.dtsi b/target/linux/ramips/dts/mt7620a.dtsi index 150c0e14ca..29d138c84e 100644 --- a/target/linux/ramips/dts/mt7620a.dtsi +++ b/target/linux/ramips/dts/mt7620a.dtsi @@ -116,7 +116,7 @@ #gpio-cells = <2>; ralink,gpio-base = <0>; - ralink,nr-gpio = <24>; + ralink,num-gpios = <24>; ralink,register-map = [ 00 04 08 0c 20 24 28 2c 30 34 ]; @@ -133,7 +133,7 @@ #gpio-cells = <2>; ralink,gpio-base = <24>; - ralink,nr-gpio = <16>; + ralink,num-gpios = <16>; ralink,register-map = [ 00 04 08 0c 10 14 18 1c 20 24 ]; @@ -152,7 +152,7 @@ #gpio-cells = <2>; ralink,gpio-base = <40>; - ralink,nr-gpio = <32>; + ralink,num-gpios = <32>; ralink,register-map = [ 00 04 08 0c 10 14 18 1c 20 24 ]; @@ -171,7 +171,7 @@ #gpio-cells = <2>; ralink,gpio-base = <72>; - ralink,nr-gpio = <1>; + ralink,num-gpios = <1>; ralink,register-map = [ 00 04 08 0c 10 14 18 1c 20 24 ]; @@ -315,113 +315,113 @@ pcm_i2s_pins: pcm_i2s { pcm_i2s { - ralink,group = "uartf"; - ralink,function = "pcm i2s"; + groups = "uartf"; + function = "pcm i2s"; }; }; uartf_gpio_pins: uartf_gpio { uartf_gpio { - ralink,group = "uartf"; - ralink,function = "gpio uartf"; + groups = "uartf"; + function = "gpio uartf"; }; }; gpio_i2s_pins: gpio_i2s { gpio_i2s { - ralink,group = "uartf"; - ralink,function = "gpio i2s"; + groups = "uartf"; + function = "gpio i2s"; }; }; spi_pins: spi_pins { spi_pins { - ralink,group = "spi"; - ralink,function = "spi"; + groups = "spi"; + function = "spi"; }; }; spi_cs1: spi1 { spi1 { - ralink,group = "spi refclk"; - ralink,function = "spi refclk"; + groups = "spi refclk"; + function = "spi refclk"; }; }; i2c_pins: i2c_pins { i2c_pins { - ralink,group = "i2c"; - ralink,function = "i2c"; + groups = "i2c"; + function = "i2c"; }; }; uartlite_pins: uartlite { uart { - ralink,group = "uartlite"; - ralink,function = "uartlite"; + groups = "uartlite"; + function = "uartlite"; }; }; mdio_pins: mdio { mdio { - ralink,group = "mdio"; - ralink,function = "mdio"; + groups = "mdio"; + function = "mdio"; }; }; mdio_refclk_pins: mdio_refclk { mdio_refclk { - ralink,group = "mdio"; - ralink,function = "refclk"; + groups = "mdio"; + function = "refclk"; }; }; ephy_pins: ephy { ephy { - ralink,group = "ephy"; - ralink,function = "ephy"; + groups = "ephy"; + function = "ephy"; }; }; wled_pins: wled { wled { - ralink,group = "wled"; - ralink,function = "wled"; + groups = "wled"; + function = "wled"; }; }; rgmii1_pins: rgmii1 { rgmii1 { - ralink,group = "rgmii1"; - ralink,function = "rgmii1"; + groups = "rgmii1"; + function = "rgmii1"; }; }; rgmii2_pins: rgmii2 { rgmii2 { - ralink,group = "rgmii2"; - ralink,function = "rgmii2"; + groups = "rgmii2"; + function = "rgmii2"; }; }; pcie_pins: pcie { pcie { - ralink,group = "pcie"; - ralink,function = "pcie rst"; + groups = "pcie"; + function = "pcie rst"; }; }; pa_pins: pa { pa { - ralink,group = "pa"; - ralink,function = "pa"; + groups = "pa"; + function = "pa"; }; }; sdhci_pins: sdhci { sdhci { - ralink,group = "nd_sd"; - ralink,function = "sd"; + groups = "nd_sd"; + function = "sd"; }; }; }; diff --git a/target/linux/ramips/dts/mt7620a_aigale_ai-br100.dts b/target/linux/ramips/dts/mt7620a_aigale_ai-br100.dts index 2ffe8431ee..3a84a30c61 100644 --- a/target/linux/ramips/dts/mt7620a_aigale_ai-br100.dts +++ b/target/linux/ramips/dts/mt7620a_aigale_ai-br100.dts @@ -99,8 +99,8 @@ &state_default { gpio { - ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "ephy", "wled", "nd_sd"; - ralink,function = "gpio"; + groups = "i2c", "uartf", "rgmii1", "rgmii2", "ephy", "wled", "nd_sd"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_alfa-network_ac1200rm.dts b/target/linux/ramips/dts/mt7620a_alfa-network_ac1200rm.dts index fa03d14814..47a8e5a180 100644 --- a/target/linux/ramips/dts/mt7620a_alfa-network_ac1200rm.dts +++ b/target/linux/ramips/dts/mt7620a_alfa-network_ac1200rm.dts @@ -125,8 +125,8 @@ &state_default { gpio { - ralink,group = "nd_sd", "spi refclk", "wled"; - ralink,function = "gpio"; + groups = "nd_sd", "spi refclk", "wled"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_alfa-network_r36m-e4g.dts b/target/linux/ramips/dts/mt7620a_alfa-network_r36m-e4g.dts index 4ba57dda41..b0ac4a37d4 100644 --- a/target/linux/ramips/dts/mt7620a_alfa-network_r36m-e4g.dts +++ b/target/linux/ramips/dts/mt7620a_alfa-network_r36m-e4g.dts @@ -156,8 +156,8 @@ &state_default { gpio { - ralink,group = "ephy", "pcie", "rgmii1", "wled"; - ralink,function = "gpio"; + groups = "ephy", "pcie", "rgmii1", "wled"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_alfa-network_tube-e4g.dts b/target/linux/ramips/dts/mt7620a_alfa-network_tube-e4g.dts index 4953c4c906..eec7d5883e 100644 --- a/target/linux/ramips/dts/mt7620a_alfa-network_tube-e4g.dts +++ b/target/linux/ramips/dts/mt7620a_alfa-network_tube-e4g.dts @@ -133,8 +133,8 @@ &state_default { gpio { - ralink,group = "ephy", "nd_sd", "pcie", "uartf"; - ralink,function = "gpio"; + groups = "ephy", "nd_sd", "pcie", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_asus_rp-n53.dts b/target/linux/ramips/dts/mt7620a_asus_rp-n53.dts index 4f92993064..c32c3f017d 100644 --- a/target/linux/ramips/dts/mt7620a_asus_rp-n53.dts +++ b/target/linux/ramips/dts/mt7620a_asus_rp-n53.dts @@ -150,8 +150,8 @@ &state_default { gpio { - ralink,group = "mdio", "rgmii1"; - ralink,function = "gpio"; + groups = "mdio", "rgmii1"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts b/target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts index 4acab8c032..a8c6a87577 100644 --- a/target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts +++ b/target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts @@ -127,8 +127,8 @@ &state_default { gpio { - ralink,group = "i2c", "wled", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "wled", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_bdcom_wap2100-sk.dts b/target/linux/ramips/dts/mt7620a_bdcom_wap2100-sk.dts index e77f39843d..64aafd0a52 100644 --- a/target/linux/ramips/dts/mt7620a_bdcom_wap2100-sk.dts +++ b/target/linux/ramips/dts/mt7620a_bdcom_wap2100-sk.dts @@ -144,7 +144,7 @@ &state_default { default { - ralink,group = "spi refclk", "uartf", "wled"; - ralink,function = "gpio"; + groups = "spi refclk", "uartf", "wled"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_buffalo_whr-1166d.dts b/target/linux/ramips/dts/mt7620a_buffalo_whr-1166d.dts index aed4ce1693..86420bf674 100644 --- a/target/linux/ramips/dts/mt7620a_buffalo_whr-1166d.dts +++ b/target/linux/ramips/dts/mt7620a_buffalo_whr-1166d.dts @@ -132,8 +132,8 @@ &state_default { gpio { - ralink,group = "i2c", "uartf", "wled", "nd_sd"; - ralink,function = "gpio"; + groups = "i2c", "uartf", "wled", "nd_sd"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_buffalo_whr-300hp2.dts b/target/linux/ramips/dts/mt7620a_buffalo_whr-300hp2.dts index eeb4ee67d4..60d6d62a4e 100644 --- a/target/linux/ramips/dts/mt7620a_buffalo_whr-300hp2.dts +++ b/target/linux/ramips/dts/mt7620a_buffalo_whr-300hp2.dts @@ -132,8 +132,8 @@ &state_default { gpio { - ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd"; - ralink,function = "gpio"; + groups = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_buffalo_whr-600d.dts b/target/linux/ramips/dts/mt7620a_buffalo_whr-600d.dts index 0800e3d78b..2cf26c7ddc 100644 --- a/target/linux/ramips/dts/mt7620a_buffalo_whr-600d.dts +++ b/target/linux/ramips/dts/mt7620a_buffalo_whr-600d.dts @@ -132,8 +132,8 @@ &state_default { gpio { - ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd"; - ralink,function = "gpio"; + groups = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_dlink_dch-m225.dts b/target/linux/ramips/dts/mt7620a_dlink_dch-m225.dts index 27056a668b..59d7b34331 100644 --- a/target/linux/ramips/dts/mt7620a_dlink_dch-m225.dts +++ b/target/linux/ramips/dts/mt7620a_dlink_dch-m225.dts @@ -163,13 +163,13 @@ &state_default { gpio { - ralink,group = "wdt", "rgmii1"; - ralink,function = "gpio"; + groups = "wdt", "rgmii1"; + function = "gpio"; }; gpio_i2s { - ralink,group = "uartf"; - ralink,function = "gpio i2s"; + groups = "uartf"; + function = "gpio i2s"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts b/target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts index 8a79d9a454..e8a8e65c7d 100644 --- a/target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts +++ b/target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts @@ -131,7 +131,7 @@ &state_default { default { - ralink,group = "i2c", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_dlink_dir-810l.dts b/target/linux/ramips/dts/mt7620a_dlink_dir-810l.dts index 0a22eee3b5..9e60b42f71 100644 --- a/target/linux/ramips/dts/mt7620a_dlink_dir-810l.dts +++ b/target/linux/ramips/dts/mt7620a_dlink_dir-810l.dts @@ -119,8 +119,8 @@ &state_default { gpio { - ralink,group = "i2c", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a1.dts b/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a1.dts index a69b17d739..a01ef25bfa 100644 --- a/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a1.dts +++ b/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a1.dts @@ -131,8 +131,8 @@ &state_default { default { - ralink,group = "ephy", "uartf", "spi refclk", "wled"; - ralink,function = "gpio"; + groups = "ephy", "uartf", "spi refclk", "wled"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a2.dts b/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a2.dts index 5134e9e1ca..d795c06b50 100644 --- a/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a2.dts +++ b/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a2.dts @@ -129,8 +129,8 @@ &state_default { default { - ralink,group = "ephy", "uartf", "spi refclk", "wled"; - ralink,function = "gpio"; + groups = "ephy", "uartf", "spi refclk", "wled"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_dlink_dwr-960.dts b/target/linux/ramips/dts/mt7620a_dlink_dwr-960.dts index 063d65a70d..71ed648d41 100644 --- a/target/linux/ramips/dts/mt7620a_dlink_dwr-960.dts +++ b/target/linux/ramips/dts/mt7620a_dlink_dwr-960.dts @@ -184,7 +184,7 @@ &state_default { default { - ralink,group = "i2c", "wled", "spi refclk", "uartf", "ephy"; - ralink,function = "gpio"; + groups = "i2c", "wled", "spi refclk", "uartf", "ephy"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_dovado_tiny-ac.dts b/target/linux/ramips/dts/mt7620a_dovado_tiny-ac.dts index 88bd514d53..d77a503d7a 100644 --- a/target/linux/ramips/dts/mt7620a_dovado_tiny-ac.dts +++ b/target/linux/ramips/dts/mt7620a_dovado_tiny-ac.dts @@ -154,8 +154,8 @@ &state_default { gpio { - ralink,group = "uartf", "nd_sd", "wled"; - ralink,function = "gpio"; + groups = "uartf", "nd_sd", "wled"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_edimax_br-6478ac-v2.dts b/target/linux/ramips/dts/mt7620a_edimax_br-6478ac-v2.dts index d34bc1b22b..c3267bb3c0 100644 --- a/target/linux/ramips/dts/mt7620a_edimax_br-6478ac-v2.dts +++ b/target/linux/ramips/dts/mt7620a_edimax_br-6478ac-v2.dts @@ -132,8 +132,8 @@ &state_default { gpio { - ralink,group = "i2c", "uartf", "nd_sd"; - ralink,function = "gpio"; + groups = "i2c", "uartf", "nd_sd"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_edimax_ew-7478apc.dts b/target/linux/ramips/dts/mt7620a_edimax_ew-7478apc.dts index e2765b1877..97a89b896c 100644 --- a/target/linux/ramips/dts/mt7620a_edimax_ew-7478apc.dts +++ b/target/linux/ramips/dts/mt7620a_edimax_ew-7478apc.dts @@ -117,8 +117,8 @@ &state_default { gpio { - ralink,group = "i2c", "uartf", "nd_sd"; - ralink,function = "gpio"; + groups = "i2c", "uartf", "nd_sd"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_edimax_ew-747x.dtsi b/target/linux/ramips/dts/mt7620a_edimax_ew-747x.dtsi index 1202ac1b69..14ac27f2ae 100644 --- a/target/linux/ramips/dts/mt7620a_edimax_ew-747x.dtsi +++ b/target/linux/ramips/dts/mt7620a_edimax_ew-747x.dtsi @@ -100,16 +100,16 @@ &state_default { gpio { - ralink,group = "i2c", "uartf", "nd_sd", "rgmii2"; - ralink,function = "gpio"; + groups = "i2c", "uartf", "nd_sd", "rgmii2"; + function = "gpio"; }; }; &pinctrl { phy_reset_pins: phy-reset { gpio { - ralink,group = "spi refclk"; - ralink,function = "gpio"; + groups = "spi refclk"; + function = "gpio"; }; }; }; diff --git a/target/linux/ramips/dts/mt7620a_engenius_esr600.dts b/target/linux/ramips/dts/mt7620a_engenius_esr600.dts index 3213132c43..d7dbb1bfa4 100644 --- a/target/linux/ramips/dts/mt7620a_engenius_esr600.dts +++ b/target/linux/ramips/dts/mt7620a_engenius_esr600.dts @@ -167,8 +167,8 @@ &state_default { gpio { - ralink,group = "i2c", "uartf", "nd_sd", "wled"; - ralink,function = "gpio"; + groups = "i2c", "uartf", "nd_sd", "wled"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_fon_fon2601.dts b/target/linux/ramips/dts/mt7620a_fon_fon2601.dts index 33329a1049..019274a0d3 100644 --- a/target/linux/ramips/dts/mt7620a_fon_fon2601.dts +++ b/target/linux/ramips/dts/mt7620a_fon_fon2601.dts @@ -100,16 +100,16 @@ &state_default { gpio { - ralink,group = "i2c", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "uartf"; + function = "gpio"; }; nd_sd { - ralink,group = "nd_sd"; - ralink,function = "sd"; + groups = "nd_sd"; + function = "sd"; }; spi_cs { - ralink,group = "spi refclk"; - ralink,function = "spi refclk"; + groups = "spi refclk"; + function = "spi refclk"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_glinet_gl-mt300a.dts b/target/linux/ramips/dts/mt7620a_glinet_gl-mt300a.dts index d66861c9ad..9a9d9f45ae 100644 --- a/target/linux/ramips/dts/mt7620a_glinet_gl-mt300a.dts +++ b/target/linux/ramips/dts/mt7620a_glinet_gl-mt300a.dts @@ -147,7 +147,7 @@ &state_default { gpio { - ralink,group = "wled","ephy","uartf","i2c"; - ralink,function = "gpio"; + groups = "wled","ephy","uartf","i2c"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_glinet_gl-mt300n.dts b/target/linux/ramips/dts/mt7620a_glinet_gl-mt300n.dts index 633253fadd..5291b5fcca 100644 --- a/target/linux/ramips/dts/mt7620a_glinet_gl-mt300n.dts +++ b/target/linux/ramips/dts/mt7620a_glinet_gl-mt300n.dts @@ -138,7 +138,7 @@ &state_default { gpio { - ralink,group = "wled","ephy","i2c"; - ralink,function = "gpio"; + groups = "wled","ephy","i2c"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_glinet_gl-mt750.dts b/target/linux/ramips/dts/mt7620a_glinet_gl-mt750.dts index e6b30449e8..9df5f464c7 100644 --- a/target/linux/ramips/dts/mt7620a_glinet_gl-mt750.dts +++ b/target/linux/ramips/dts/mt7620a_glinet_gl-mt750.dts @@ -153,7 +153,7 @@ &state_default { gpio { - ralink,group = "wled","ephy","uartf"; - ralink,function = "gpio"; + groups = "wled","ephy","uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_head-weblink_hdrm200.dts b/target/linux/ramips/dts/mt7620a_head-weblink_hdrm200.dts index 6395aa37f6..fbee809893 100644 --- a/target/linux/ramips/dts/mt7620a_head-weblink_hdrm200.dts +++ b/target/linux/ramips/dts/mt7620a_head-weblink_hdrm200.dts @@ -161,9 +161,9 @@ &state_default { default { - ralink,group = "i2c", "uartf", "pa", "spi refclk", + groups = "i2c", "uartf", "pa", "spi refclk", "wled"; - ralink,function = "gpio"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi b/target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi index 4f4fc4a725..82bc8c9957 100644 --- a/target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi +++ b/target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi @@ -127,7 +127,7 @@ &state_default { gpio { - ralink,group = "uartf", "wled"; - ralink,function = "gpio"; + groups = "uartf", "wled"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_hnet_c108.dts b/target/linux/ramips/dts/mt7620a_hnet_c108.dts index 49fa6b2c8e..15b2a12af7 100644 --- a/target/linux/ramips/dts/mt7620a_hnet_c108.dts +++ b/target/linux/ramips/dts/mt7620a_hnet_c108.dts @@ -174,8 +174,8 @@ &state_default { default { - ralink,group = "i2c", "uartf", "spi refclk", "ephy"; - ralink,function = "gpio"; + groups = "i2c", "uartf", "spi refclk", "ephy"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_iodata_wn-ac1167gr.dts b/target/linux/ramips/dts/mt7620a_iodata_wn-ac1167gr.dts index 200df6000e..1cc59e4bb6 100644 --- a/target/linux/ramips/dts/mt7620a_iodata_wn-ac1167gr.dts +++ b/target/linux/ramips/dts/mt7620a_iodata_wn-ac1167gr.dts @@ -186,8 +186,8 @@ &state_default { gpio { - ralink,group = "i2c", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_iodata_wn-ac733gr3.dts b/target/linux/ramips/dts/mt7620a_iodata_wn-ac733gr3.dts index 062ef93ed4..098aaa007f 100644 --- a/target/linux/ramips/dts/mt7620a_iodata_wn-ac733gr3.dts +++ b/target/linux/ramips/dts/mt7620a_iodata_wn-ac733gr3.dts @@ -167,8 +167,8 @@ &state_default { gpio { - ralink,group = "i2c", "uartf", "mdio"; - ralink,function = "gpio"; + groups = "i2c", "uartf", "mdio"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_iptime_a104ns.dts b/target/linux/ramips/dts/mt7620a_iptime_a104ns.dts index 14b5071007..28963edadc 100644 --- a/target/linux/ramips/dts/mt7620a_iptime_a104ns.dts +++ b/target/linux/ramips/dts/mt7620a_iptime_a104ns.dts @@ -53,7 +53,7 @@ &state_default { gpio { - ralink,group = "uartf", "spi refclk"; - ralink,function = "gpio"; + groups = "uartf", "spi refclk"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_kimax_u25awf-h1.dts b/target/linux/ramips/dts/mt7620a_kimax_u25awf-h1.dts index ef4dc233ea..ce73886ade 100644 --- a/target/linux/ramips/dts/mt7620a_kimax_u25awf-h1.dts +++ b/target/linux/ramips/dts/mt7620a_kimax_u25awf-h1.dts @@ -107,7 +107,7 @@ &state_default { default { - ralink,group = "uartf", "ephy", "wled"; - ralink,function = "gpio"; + groups = "uartf", "ephy", "wled"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_lava_lr-25g001.dts b/target/linux/ramips/dts/mt7620a_lava_lr-25g001.dts index e400ebcff0..c1406503eb 100644 --- a/target/linux/ramips/dts/mt7620a_lava_lr-25g001.dts +++ b/target/linux/ramips/dts/mt7620a_lava_lr-25g001.dts @@ -172,7 +172,7 @@ &state_default { gpio { - ralink,group = "uartf", "i2c"; - ralink,function = "gpio"; + groups = "uartf", "i2c"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dtsi b/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dtsi index 29832ac42b..bf83400957 100644 --- a/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dtsi +++ b/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dtsi @@ -101,7 +101,7 @@ &state_default { gpio { - ralink,group = "uartf", "wled", "nd_sd"; - ralink,function = "gpio"; + groups = "uartf", "wled", "nd_sd"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_linksys_e1700.dts b/target/linux/ramips/dts/mt7620a_linksys_e1700.dts index 799d660d3c..6efe9d2b06 100644 --- a/target/linux/ramips/dts/mt7620a_linksys_e1700.dts +++ b/target/linux/ramips/dts/mt7620a_linksys_e1700.dts @@ -99,8 +99,8 @@ &state_default { gpio { - ralink,group = "i2c", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_microduino_microwrt.dts b/target/linux/ramips/dts/mt7620a_microduino_microwrt.dts index 57f408a648..23d08ad3e4 100644 --- a/target/linux/ramips/dts/mt7620a_microduino_microwrt.dts +++ b/target/linux/ramips/dts/mt7620a_microduino_microwrt.dts @@ -99,7 +99,7 @@ &state_default { default { - ralink,group = "wled", "i2c", "wdt", "uartf"; - ralink,function = "gpio"; + groups = "wled", "i2c", "wdt", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_netgear_ex2700_wn3000rp-v3.dtsi b/target/linux/ramips/dts/mt7620a_netgear_ex2700_wn3000rp-v3.dtsi index 8199147165..2cd5da9b9c 100644 --- a/target/linux/ramips/dts/mt7620a_netgear_ex2700_wn3000rp-v3.dtsi +++ b/target/linux/ramips/dts/mt7620a_netgear_ex2700_wn3000rp-v3.dtsi @@ -56,7 +56,7 @@ &state_default { default { - ralink,group = "i2c", "uartf", "spi refclk"; - ralink,function = "gpio"; + groups = "i2c", "uartf", "spi refclk"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_netgear_ex3700_ex6130.dtsi b/target/linux/ramips/dts/mt7620a_netgear_ex3700_ex6130.dtsi index ec9b6c587e..697a661481 100644 --- a/target/linux/ramips/dts/mt7620a_netgear_ex3700_ex6130.dtsi +++ b/target/linux/ramips/dts/mt7620a_netgear_ex3700_ex6130.dtsi @@ -107,7 +107,7 @@ &state_default { default { - ralink,group = "i2c", "rgmii2", "spi refclk"; - ralink,function = "gpio"; + groups = "i2c", "rgmii2", "spi refclk"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_ohyeah_oy-0001.dts b/target/linux/ramips/dts/mt7620a_ohyeah_oy-0001.dts index 98dac3f5b6..b8f86fad50 100644 --- a/target/linux/ramips/dts/mt7620a_ohyeah_oy-0001.dts +++ b/target/linux/ramips/dts/mt7620a_ohyeah_oy-0001.dts @@ -95,8 +95,8 @@ &state_default { gpio { - ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled"; - ralink,function = "gpio"; + groups = "i2c", "uartf", "rgmii1", "rgmii2", "wled"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_phicomm_k2g.dts b/target/linux/ramips/dts/mt7620a_phicomm_k2g.dts index 5071aed165..63dde14975 100644 --- a/target/linux/ramips/dts/mt7620a_phicomm_k2g.dts +++ b/target/linux/ramips/dts/mt7620a_phicomm_k2g.dts @@ -95,8 +95,8 @@ &state_default { gpio { - ralink,group = "i2c", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts b/target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts index 92fcfdf68c..34dfc9976d 100644 --- a/target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts +++ b/target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts @@ -91,8 +91,8 @@ &state_default { gpio { - ralink,group = "i2c", "spi refclk", "wled"; - ralink,function = "gpio"; + groups = "i2c", "spi refclk", "wled"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_phicomm_psg1218a.dts b/target/linux/ramips/dts/mt7620a_phicomm_psg1218a.dts index 1474422a24..0d9ef767c4 100644 --- a/target/linux/ramips/dts/mt7620a_phicomm_psg1218a.dts +++ b/target/linux/ramips/dts/mt7620a_phicomm_psg1218a.dts @@ -36,8 +36,8 @@ &state_default { gpio { - ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd"; - ralink,function = "gpio"; + groups = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_phicomm_psg1218b.dts b/target/linux/ramips/dts/mt7620a_phicomm_psg1218b.dts index 15fb40fa7d..7f9fea2b07 100644 --- a/target/linux/ramips/dts/mt7620a_phicomm_psg1218b.dts +++ b/target/linux/ramips/dts/mt7620a_phicomm_psg1218b.dts @@ -36,8 +36,8 @@ &state_default { gpio { - ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd", "pa"; - ralink,function = "gpio"; + groups = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd", "pa"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_planex_cs-qr10.dts b/target/linux/ramips/dts/mt7620a_planex_cs-qr10.dts index 8390d18918..3998ea6019 100644 --- a/target/linux/ramips/dts/mt7620a_planex_cs-qr10.dts +++ b/target/linux/ramips/dts/mt7620a_planex_cs-qr10.dts @@ -118,12 +118,12 @@ &state_default { gpio { - ralink,group = "spi refclk", "rgmii1"; - ralink,function = "gpio"; + groups = "spi refclk", "rgmii1"; + function = "gpio"; }; wdt { - ralink,group = "wdt"; - ralink,function = "wdt refclk"; + groups = "wdt"; + function = "wdt refclk"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_planex_db-wrt01.dts b/target/linux/ramips/dts/mt7620a_planex_db-wrt01.dts index a7c614cc21..e9c2e295e4 100644 --- a/target/linux/ramips/dts/mt7620a_planex_db-wrt01.dts +++ b/target/linux/ramips/dts/mt7620a_planex_db-wrt01.dts @@ -82,8 +82,8 @@ &state_default { gpio { - ralink,group = "i2c", "spi refclk", "rgmii1"; - ralink,function = "gpio"; + groups = "i2c", "spi refclk", "rgmii1"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_planex_mzk-750dhp.dts b/target/linux/ramips/dts/mt7620a_planex_mzk-750dhp.dts index 6062a76f76..28473a52c6 100644 --- a/target/linux/ramips/dts/mt7620a_planex_mzk-750dhp.dts +++ b/target/linux/ramips/dts/mt7620a_planex_mzk-750dhp.dts @@ -102,8 +102,8 @@ &state_default { gpio { - ralink,group = "i2c", "spi refclk", "rgmii1", "nd_sd"; - ralink,function = "gpio"; + groups = "i2c", "spi refclk", "rgmii1", "nd_sd"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_planex_mzk-ex300np.dts b/target/linux/ramips/dts/mt7620a_planex_mzk-ex300np.dts index 3313c6c071..116d5874e1 100644 --- a/target/linux/ramips/dts/mt7620a_planex_mzk-ex300np.dts +++ b/target/linux/ramips/dts/mt7620a_planex_mzk-ex300np.dts @@ -122,8 +122,8 @@ &state_default { gpio { - ralink,group = "i2c", "spi refclk", "rgmii1", "wled"; - ralink,function = "gpio"; + groups = "i2c", "spi refclk", "rgmii1", "wled"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_planex_mzk-ex750np.dts b/target/linux/ramips/dts/mt7620a_planex_mzk-ex750np.dts index 4b64afd228..e25b969701 100644 --- a/target/linux/ramips/dts/mt7620a_planex_mzk-ex750np.dts +++ b/target/linux/ramips/dts/mt7620a_planex_mzk-ex750np.dts @@ -127,8 +127,8 @@ &state_default { gpio { - ralink,group = "uartf", "nd_sd", "rgmii2", "wled"; - ralink,function = "gpio"; + groups = "uartf", "nd_sd", "rgmii2", "wled"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_ralink_mt7620a-evb.dts b/target/linux/ramips/dts/mt7620a_ralink_mt7620a-evb.dts index 56f427aa8a..34f870906e 100644 --- a/target/linux/ramips/dts/mt7620a_ralink_mt7620a-evb.dts +++ b/target/linux/ramips/dts/mt7620a_ralink_mt7620a-evb.dts @@ -68,8 +68,8 @@ &state_default { gpio { - ralink,group = "i2c", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_ralink_mt7620a-mt7530-evb.dts b/target/linux/ramips/dts/mt7620a_ralink_mt7620a-mt7530-evb.dts index e106af402e..909fd7e0b2 100644 --- a/target/linux/ramips/dts/mt7620a_ralink_mt7620a-mt7530-evb.dts +++ b/target/linux/ramips/dts/mt7620a_ralink_mt7620a-mt7530-evb.dts @@ -49,8 +49,8 @@ &state_default { gpio { - ralink,group = "i2c", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_ralink_mt7620a-v22sg-evb.dts b/target/linux/ramips/dts/mt7620a_ralink_mt7620a-v22sg-evb.dts index 74c82341fe..ee148dbde3 100644 --- a/target/linux/ramips/dts/mt7620a_ralink_mt7620a-v22sg-evb.dts +++ b/target/linux/ramips/dts/mt7620a_ralink_mt7620a-v22sg-evb.dts @@ -62,8 +62,8 @@ &state_default { gpio { - ralink,group = "i2c", "uartf", "spi"; - ralink,function = "gpio"; + groups = "i2c", "uartf", "spi"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_sanlinking_d240.dts b/target/linux/ramips/dts/mt7620a_sanlinking_d240.dts index 35617c0880..2bbd68cf7a 100644 --- a/target/linux/ramips/dts/mt7620a_sanlinking_d240.dts +++ b/target/linux/ramips/dts/mt7620a_sanlinking_d240.dts @@ -179,8 +179,8 @@ &state_default { default { - ralink,group = "i2c", "uartf", "wled", "spi refclk", "pa"; - ralink,function = "gpio"; + groups = "i2c", "uartf", "wled", "spi refclk", "pa"; + function = "gpio"; }; /* @@ -193,8 +193,8 @@ * means during pinmux driver load. */ gpio_sd { - ralink,group = "nd_sd"; - ralink,function = "sd"; + groups = "nd_sd"; + function = "sd"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_sercomm_na930.dts b/target/linux/ramips/dts/mt7620a_sercomm_na930.dts index 952f371ce0..9313e6259f 100644 --- a/target/linux/ramips/dts/mt7620a_sercomm_na930.dts +++ b/target/linux/ramips/dts/mt7620a_sercomm_na930.dts @@ -116,13 +116,13 @@ &state_default { gpio { - ralink,group = "i2c", "rgmii2", "spi", "ephy"; - ralink,function = "gpio"; + groups = "i2c", "rgmii2", "spi", "ephy"; + function = "gpio"; }; uartf_gpio { - ralink,group = "uartf"; - ralink,function = "gpio uartf"; + groups = "uartf"; + function = "gpio uartf"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts b/target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts index efa83eb16d..d8146218c9 100644 --- a/target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts +++ b/target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts @@ -159,8 +159,8 @@ &state_default { gpio { - ralink,group = "i2c", "uartf", "wled", "ephy", "spi refclk"; - ralink,function = "gpio"; + groups = "i2c", "uartf", "wled", "ephy", "spi refclk"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts b/target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts index b1d3e23450..1d8f3316ad 100644 --- a/target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts +++ b/target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts @@ -65,8 +65,8 @@ &state_default { gpio { - ralink,group = "i2c", "uartf", "wled", "ephy", "spi refclk", "wdt"; - ralink,function = "gpio"; + groups = "i2c", "uartf", "wled", "ephy", "spi refclk", "wdt"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_tplink_archer-c20i.dts b/target/linux/ramips/dts/mt7620a_tplink_archer-c20i.dts index 7e05a2e1ea..b1cde57d77 100644 --- a/target/linux/ramips/dts/mt7620a_tplink_archer-c20i.dts +++ b/target/linux/ramips/dts/mt7620a_tplink_archer-c20i.dts @@ -49,8 +49,8 @@ &state_default { gpio { - ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd", "ephy", "spi refclk"; - ralink,function = "gpio"; + groups = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd", "ephy", "spi refclk"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_tplink_archer-c50-v1.dts b/target/linux/ramips/dts/mt7620a_tplink_archer-c50-v1.dts index ca03d2ed78..eb5d867a19 100644 --- a/target/linux/ramips/dts/mt7620a_tplink_archer-c50-v1.dts +++ b/target/linux/ramips/dts/mt7620a_tplink_archer-c50-v1.dts @@ -65,8 +65,8 @@ &state_default { gpio { - ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "ephy", "spi refclk", "mdio", "wdt", "nd_sd"; - ralink,function = "gpio"; + groups = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "ephy", "spi refclk", "mdio", "wdt", "nd_sd"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_tplink_archer-mr200.dts b/target/linux/ramips/dts/mt7620a_tplink_archer-mr200.dts index ea42ef2c54..cad83c125b 100644 --- a/target/linux/ramips/dts/mt7620a_tplink_archer-mr200.dts +++ b/target/linux/ramips/dts/mt7620a_tplink_archer-mr200.dts @@ -163,8 +163,8 @@ &state_default { gpio { - ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd", "ephy", "spi refclk"; - ralink,function = "gpio"; + groups = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd", "ephy", "spi refclk"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_tplink_re200-v1.dts b/target/linux/ramips/dts/mt7620a_tplink_re200-v1.dts index c8b2794714..b6e5518f53 100644 --- a/target/linux/ramips/dts/mt7620a_tplink_re200-v1.dts +++ b/target/linux/ramips/dts/mt7620a_tplink_re200-v1.dts @@ -53,8 +53,8 @@ &state_default { gpio { - ralink,group = "i2c", "uartf", "ephy", "wled", "rgmii1", "spi refclk"; - ralink,function = "gpio"; + groups = "i2c", "uartf", "ephy", "wled", "rgmii1", "spi refclk"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_tplink_re210-v1.dts b/target/linux/ramips/dts/mt7620a_tplink_re210-v1.dts index 49c56a8cb4..a1fa3330d7 100644 --- a/target/linux/ramips/dts/mt7620a_tplink_re210-v1.dts +++ b/target/linux/ramips/dts/mt7620a_tplink_re210-v1.dts @@ -56,8 +56,8 @@ &state_default { gpio { - ralink,group = "i2c", "uartf", "wled", "rgmii1"; - ralink,function = "gpio"; + groups = "i2c", "uartf", "wled", "rgmii1"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts b/target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts index d076e10ced..1442151063 100644 --- a/target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts +++ b/target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts @@ -154,7 +154,7 @@ &state_default { gpio { - ralink,group = "i2c", "rgmii1"; - ralink,function = "gpio"; + groups = "i2c", "rgmii1"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_youku_yk1.dts b/target/linux/ramips/dts/mt7620a_youku_yk1.dts index 641c05a628..a95f1e9320 100644 --- a/target/linux/ramips/dts/mt7620a_youku_yk1.dts +++ b/target/linux/ramips/dts/mt7620a_youku_yk1.dts @@ -112,8 +112,8 @@ &state_default { default { - ralink,group = "i2c", "rgmii1", "ephy", "wled"; - ralink,function = "gpio"; + groups = "i2c", "rgmii1", "ephy", "wled"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_yukai_bocco.dts b/target/linux/ramips/dts/mt7620a_yukai_bocco.dts index 94ac1dd4f9..389fa1b62f 100644 --- a/target/linux/ramips/dts/mt7620a_yukai_bocco.dts +++ b/target/linux/ramips/dts/mt7620a_yukai_bocco.dts @@ -141,8 +141,8 @@ &state_default { gpio { - ralink,group = "spi refclk", "rgmii1"; - ralink,function = "gpio"; + groups = "spi refclk", "rgmii1"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-ape522ii.dts b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-ape522ii.dts index cf9b91f564..c2c6b8b4bb 100644 --- a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-ape522ii.dts +++ b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-ape522ii.dts @@ -135,7 +135,7 @@ &state_default { gpio { - ralink,group = "wled", "i2c", "uartf", "wdt"; - ralink,function = "gpio"; + groups = "wled", "i2c", "uartf", "wdt"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026.dtsi b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026.dtsi index 3d971ba2c6..91bbd4a044 100644 --- a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026.dtsi +++ b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026.dtsi @@ -96,7 +96,7 @@ &state_default { default { - ralink,group = "i2c", "uartf", "spi refclk", "ephy", "wled"; - ralink,function = "gpio"; + groups = "i2c", "uartf", "spi refclk", "ephy", "wled"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826-e.dts b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826-e.dts index a7779a0071..40df9424a9 100644 --- a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826-e.dts +++ b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826-e.dts @@ -76,7 +76,7 @@ &state_default { default { - ralink,group = "i2c", "uartf", "wled"; - ralink,function = "gpio"; + groups = "i2c", "uartf", "wled"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826.dtsi b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826.dtsi index 82d5de4012..a2051efaad 100644 --- a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826.dtsi +++ b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826.dtsi @@ -84,8 +84,8 @@ &state_default { default { - ralink,group = "i2c", "uartf", "wled", "spi refclk", "pa"; - ralink,function = "gpio"; + groups = "i2c", "uartf", "wled", "spi refclk", "pa"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_zte_q7.dts b/target/linux/ramips/dts/mt7620a_zte_q7.dts index fc07b57418..182b7db905 100644 --- a/target/linux/ramips/dts/mt7620a_zte_q7.dts +++ b/target/linux/ramips/dts/mt7620a_zte_q7.dts @@ -91,8 +91,8 @@ &state_default { gpio { - ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "ephy", "wled"; - ralink,function = "gpio"; + groups = "i2c", "uartf", "rgmii1", "rgmii2", "ephy", "wled"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620a_zyxel_keenetic-viva.dts b/target/linux/ramips/dts/mt7620a_zyxel_keenetic-viva.dts index 563a159ffc..58c96cd197 100644 --- a/target/linux/ramips/dts/mt7620a_zyxel_keenetic-viva.dts +++ b/target/linux/ramips/dts/mt7620a_zyxel_keenetic-viva.dts @@ -130,8 +130,8 @@ &state_default { gpio { - ralink,group = "i2c", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n.dtsi b/target/linux/ramips/dts/mt7620n.dtsi index 54370a0c75..4717f6c043 100644 --- a/target/linux/ramips/dts/mt7620n.dtsi +++ b/target/linux/ramips/dts/mt7620n.dtsi @@ -101,7 +101,7 @@ #gpio-cells = <2>; ralink,gpio-base = <0>; - ralink,nr-gpio = <24>; + ralink,num-gpios = <24>; ralink,register-map = [ 00 04 08 0c 20 24 28 2c 30 34 ]; @@ -118,7 +118,7 @@ #gpio-cells = <2>; ralink,gpio-base = <24>; - ralink,nr-gpio = <16>; + ralink,num-gpios = <16>; ralink,register-map = [ 00 04 08 0c 10 14 18 1c 20 24 ]; @@ -137,7 +137,7 @@ #gpio-cells = <2>; ralink,gpio-base = <40>; - ralink,nr-gpio = <32>; + ralink,num-gpios = <32>; ralink,register-map = [ 00 04 08 0c 10 14 18 1c 20 24 ]; @@ -156,7 +156,7 @@ #gpio-cells = <2>; ralink,gpio-base = <72>; - ralink,nr-gpio = <1>; + ralink,num-gpios = <1>; ralink,register-map = [ 00 04 08 0c 10 14 18 1c 20 24 ]; @@ -250,36 +250,36 @@ ephy_pins: ephy { ephy { - ralink,group = "ephy"; - ralink,function = "ephy"; + groups = "ephy"; + function = "ephy"; }; }; spi_pins: spi_pins { spi_pins { - ralink,group = "spi"; - ralink,function = "spi"; + groups = "spi"; + function = "spi"; }; }; spi_cs1: spi1 { spi1 { - ralink,group = "spi refclk"; - ralink,function = "spi refclk"; + groups = "spi refclk"; + function = "spi refclk"; }; }; i2c_pins: i2c_pins { i2c_pins { - ralink,group = "i2c"; - ralink,function = "i2c"; + groups = "i2c"; + function = "i2c"; }; }; uartlite_pins: uartlite { uart { - ralink,group = "uartlite"; - ralink,function = "uartlite"; + groups = "uartlite"; + function = "uartlite"; }; }; }; diff --git a/target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts b/target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts index 801f4c50ec..04afb68061 100644 --- a/target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts +++ b/target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts @@ -118,7 +118,7 @@ &state_default { default { - ralink,group = "ephy", "wled", "i2c", "wdt", "pa", "spi refclk"; - ralink,function = "gpio"; + groups = "ephy", "wled", "i2c", "wdt", "pa", "spi refclk"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_asus_rt-n14u.dts b/target/linux/ramips/dts/mt7620n_asus_rt-n14u.dts index 2e7f8ea5f6..2ae2182862 100644 --- a/target/linux/ramips/dts/mt7620n_asus_rt-n14u.dts +++ b/target/linux/ramips/dts/mt7620n_asus_rt-n14u.dts @@ -131,7 +131,7 @@ &state_default { default { - ralink,group = "ephy", "wled", "i2c"; - ralink,function = "gpio"; + groups = "ephy", "wled", "i2c"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_buffalo_wmr-300.dts b/target/linux/ramips/dts/mt7620n_buffalo_wmr-300.dts index 9db47c814c..df5761664c 100644 --- a/target/linux/ramips/dts/mt7620n_buffalo_wmr-300.dts +++ b/target/linux/ramips/dts/mt7620n_buffalo_wmr-300.dts @@ -107,7 +107,7 @@ &state_default { default { - ralink,group = "i2c", "ephy"; - ralink,function = "gpio"; + groups = "i2c", "ephy"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_comfast_cf-wr800n.dts b/target/linux/ramips/dts/mt7620n_comfast_cf-wr800n.dts index 16eea14bdf..a2285ea707 100644 --- a/target/linux/ramips/dts/mt7620n_comfast_cf-wr800n.dts +++ b/target/linux/ramips/dts/mt7620n_comfast_cf-wr800n.dts @@ -116,7 +116,7 @@ &state_default { default { - ralink,group = "ephy", "wled", "spi refclk", "i2c"; - ralink,function = "gpio"; + groups = "ephy", "wled", "spi refclk", "i2c"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_dlink_dwr-116-a1.dts b/target/linux/ramips/dts/mt7620n_dlink_dwr-116-a1.dts index cac849c919..1c45c8e8cc 100644 --- a/target/linux/ramips/dts/mt7620n_dlink_dwr-116-a1.dts +++ b/target/linux/ramips/dts/mt7620n_dlink_dwr-116-a1.dts @@ -99,8 +99,8 @@ &state_default { default { - ralink,group = "i2c", "wled"; - ralink,function = "gpio"; + groups = "i2c", "wled"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_dlink_dwr-921-c1.dts b/target/linux/ramips/dts/mt7620n_dlink_dwr-921-c1.dts index 27703acc08..9103857f7a 100644 --- a/target/linux/ramips/dts/mt7620n_dlink_dwr-921-c1.dts +++ b/target/linux/ramips/dts/mt7620n_dlink_dwr-921-c1.dts @@ -143,7 +143,7 @@ &state_default { default { - ralink,group = "spi refclk", "i2c", "ephy", "wled"; - ralink,function = "gpio"; + groups = "spi refclk", "i2c", "ephy", "wled"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_dlink_dwr-922-e2.dts b/target/linux/ramips/dts/mt7620n_dlink_dwr-922-e2.dts index ebd9171415..61ef68c025 100644 --- a/target/linux/ramips/dts/mt7620n_dlink_dwr-922-e2.dts +++ b/target/linux/ramips/dts/mt7620n_dlink_dwr-922-e2.dts @@ -145,7 +145,7 @@ &state_default { default { - ralink,group = "spi refclk", "i2c", "ephy", "wled"; - ralink,function = "gpio"; + groups = "spi refclk", "i2c", "ephy", "wled"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_elecom_wrh-300cr.dts b/target/linux/ramips/dts/mt7620n_elecom_wrh-300cr.dts index a8d5b04b37..1d44049548 100644 --- a/target/linux/ramips/dts/mt7620n_elecom_wrh-300cr.dts +++ b/target/linux/ramips/dts/mt7620n_elecom_wrh-300cr.dts @@ -128,7 +128,7 @@ &state_default { default { - ralink,group = "i2c", "ephy", "wled"; - ralink,function = "gpio"; + groups = "i2c", "ephy", "wled"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_kimax_u35wf.dts b/target/linux/ramips/dts/mt7620n_kimax_u35wf.dts index c48560bb94..337abbb68e 100644 --- a/target/linux/ramips/dts/mt7620n_kimax_u35wf.dts +++ b/target/linux/ramips/dts/mt7620n_kimax_u35wf.dts @@ -107,7 +107,7 @@ &state_default { default { - ralink,group = "ephy", "wled"; - ralink,function = "gpio"; + groups = "ephy", "wled"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_kingston_mlw221.dts b/target/linux/ramips/dts/mt7620n_kingston_mlw221.dts index 6decec798d..2d7e39f912 100644 --- a/target/linux/ramips/dts/mt7620n_kingston_mlw221.dts +++ b/target/linux/ramips/dts/mt7620n_kingston_mlw221.dts @@ -123,7 +123,7 @@ &state_default { default { - ralink,group = "i2c", "ephy", "wled"; - ralink,function = "gpio"; + groups = "i2c", "ephy", "wled"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_kingston_mlwg2.dts b/target/linux/ramips/dts/mt7620n_kingston_mlwg2.dts index 75267c68b9..2385ca92f8 100644 --- a/target/linux/ramips/dts/mt7620n_kingston_mlwg2.dts +++ b/target/linux/ramips/dts/mt7620n_kingston_mlwg2.dts @@ -123,7 +123,7 @@ &state_default { default { - ralink,group = "i2c", "ephy", "wled"; - ralink,function = "gpio"; + groups = "i2c", "ephy", "wled"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_nexx_wt3020.dtsi b/target/linux/ramips/dts/mt7620n_nexx_wt3020.dtsi index cee1e04e81..a8d0a00441 100644 --- a/target/linux/ramips/dts/mt7620n_nexx_wt3020.dtsi +++ b/target/linux/ramips/dts/mt7620n_nexx_wt3020.dtsi @@ -53,7 +53,7 @@ &state_default { default { - ralink,group = "ephy", "wled", "pa", "i2c", "wdt", "uartf"; - ralink,function = "gpio"; + groups = "ephy", "wled", "pa", "i2c", "wdt", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_ravpower_wd03.dts b/target/linux/ramips/dts/mt7620n_ravpower_wd03.dts index 1740de16eb..381975d26f 100644 --- a/target/linux/ramips/dts/mt7620n_ravpower_wd03.dts +++ b/target/linux/ramips/dts/mt7620n_ravpower_wd03.dts @@ -109,7 +109,7 @@ &state_default { gpio { - ralink,group = "wled", "ephy"; - ralink,function = "gpio"; + groups = "wled", "ephy"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_vonets_var11n-300.dts b/target/linux/ramips/dts/mt7620n_vonets_var11n-300.dts index ddcfb1d9b5..cc817f78ef 100644 --- a/target/linux/ramips/dts/mt7620n_vonets_var11n-300.dts +++ b/target/linux/ramips/dts/mt7620n_vonets_var11n-300.dts @@ -91,7 +91,7 @@ &state_default { default { - ralink,group = "i2c"; - ralink,function = "gpio"; + groups = "i2c"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts b/target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts index 1c346856d1..8877f0f95f 100644 --- a/target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts +++ b/target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts @@ -96,7 +96,7 @@ &state_default { default { - ralink,group = "ephy", "wled", "pa", "i2c", "wdt", "uartf", "spi refclk"; - ralink,function = "gpio"; + groups = "ephy", "wled", "pa", "i2c", "wdt", "uartf", "spi refclk"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts index 7a646882f3..b2a3b0d61d 100644 --- a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts +++ b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts @@ -119,7 +119,7 @@ &state_default { default { - ralink,group = "i2c", "spi refclk", "wled"; - ralink,function = "gpio"; + groups = "i2c", "spi refclk", "wled"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wa05.dts b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wa05.dts index 41029440e8..f441e0fcb5 100644 --- a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wa05.dts +++ b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wa05.dts @@ -123,7 +123,7 @@ &state_default { default { - ralink,group = "i2c", "spi refclk", "wled"; - ralink,function = "gpio"; + groups = "i2c", "spi refclk", "wled"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-we2026.dts b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-we2026.dts index 725a070fd6..cc3e82ab4b 100644 --- a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-we2026.dts +++ b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-we2026.dts @@ -104,7 +104,7 @@ &state_default { default { - ralink,group = "i2c", "spi refclk", "wled"; - ralink,function = "gpio"; + groups = "i2c", "spi refclk", "wled"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wr8305rt.dts b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wr8305rt.dts index 12b1c5908b..c95c951d21 100644 --- a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wr8305rt.dts +++ b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wr8305rt.dts @@ -117,7 +117,7 @@ &state_default { default { - ralink,group = "i2c", "uartf", "spi refclk", "wled"; - ralink,function = "gpio"; + groups = "i2c", "uartf", "spi refclk", "wled"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni-ii.dts b/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni-ii.dts index c974c9b1d0..c8fcef1b3d 100644 --- a/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni-ii.dts +++ b/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni-ii.dts @@ -126,8 +126,8 @@ &state_default { gpio { - ralink,group = "i2c", "wdt", "pa", "spi refclk", "wled"; - ralink,function = "gpio"; + groups = "i2c", "wdt", "pa", "spi refclk", "wled"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni.dts b/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni.dts index 6e8a333069..34f3e7d371 100644 --- a/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni.dts +++ b/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni.dts @@ -126,8 +126,8 @@ &state_default { gpio { - ralink,group = "i2c", "wdt", "pa", "spi refclk", "wled"; - ralink,function = "gpio"; + groups = "i2c", "wdt", "pa", "spi refclk", "wled"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7621_d-team_newifi-d2.dts b/target/linux/ramips/dts/mt7621_d-team_newifi-d2.dts index c5548a673e..2a9e327fa4 100644 --- a/target/linux/ramips/dts/mt7621_d-team_newifi-d2.dts +++ b/target/linux/ramips/dts/mt7621_d-team_newifi-d2.dts @@ -96,7 +96,8 @@ m25p80@0 { compatible = "jedec,spi-nor"; reg = <0>; - spi-max-frequency = <10000000>; + spi-max-frequency = <45000000>; + broken-flash-reset; partitions { compatible = "fixed-partitions"; diff --git a/target/linux/ramips/dts/mt7621_d-team_pbr-m1.dts b/target/linux/ramips/dts/mt7621_d-team_pbr-m1.dts index 64170281ed..49d8648f8a 100644 --- a/target/linux/ramips/dts/mt7621_d-team_pbr-m1.dts +++ b/target/linux/ramips/dts/mt7621_d-team_pbr-m1.dts @@ -112,6 +112,7 @@ compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <10000000>; + broken-flash-reset; partitions { compatible = "fixed-partitions"; diff --git a/target/linux/ramips/dts/mt7621_gehua_ghl-r-001.dts b/target/linux/ramips/dts/mt7621_gehua_ghl-r-001.dts index 602fd846cb..8f7e273b10 100644 --- a/target/linux/ramips/dts/mt7621_gehua_ghl-r-001.dts +++ b/target/linux/ramips/dts/mt7621_gehua_ghl-r-001.dts @@ -52,6 +52,7 @@ compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <25000000>; + broken-flash-reset; m25p,fast-read; partitions { diff --git a/target/linux/ramips/dts/mt7621_gnubee_gb-pc1.dts b/target/linux/ramips/dts/mt7621_gnubee_gb-pc1.dts index 1cf121a7c3..6b1c9a8f9d 100644 --- a/target/linux/ramips/dts/mt7621_gnubee_gb-pc1.dts +++ b/target/linux/ramips/dts/mt7621_gnubee_gb-pc1.dts @@ -66,6 +66,7 @@ compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <80000000>; + broken-flash-reset; m25p,fast-read; partitions { diff --git a/target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts b/target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts index f279ccaae0..a015a5e84a 100644 --- a/target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts +++ b/target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts @@ -76,6 +76,7 @@ compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <80000000>; + broken-flash-reset; m25p,fast-read; partitions { diff --git a/target/linux/ramips/dts/mt7621_lenovo_newifi-d1.dts b/target/linux/ramips/dts/mt7621_lenovo_newifi-d1.dts index 711ddbf398..5654a6f196 100644 --- a/target/linux/ramips/dts/mt7621_lenovo_newifi-d1.dts +++ b/target/linux/ramips/dts/mt7621_lenovo_newifi-d1.dts @@ -79,8 +79,8 @@ m25p80@0 { compatible = "jedec,spi-nor"; reg = <0>; - spi-max-frequency = <25000000>; - m25p,fast-read; + spi-max-frequency = <45000000>; + broken-flash-reset; partitions { compatible = "fixed-partitions"; diff --git a/target/linux/ramips/dts/mt7621_xzwifi_creativebox-v1.dts b/target/linux/ramips/dts/mt7621_xzwifi_creativebox-v1.dts index 36ef348ec5..0db8b34474 100644 --- a/target/linux/ramips/dts/mt7621_xzwifi_creativebox-v1.dts +++ b/target/linux/ramips/dts/mt7621_xzwifi_creativebox-v1.dts @@ -94,6 +94,7 @@ compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <40000000>; + broken-flash-reset; partitions { compatible = "fixed-partitions"; diff --git a/target/linux/ramips/dts/mt7628an.dtsi b/target/linux/ramips/dts/mt7628an.dtsi index 61016c8b40..097fc3b4a1 100644 --- a/target/linux/ramips/dts/mt7628an.dtsi +++ b/target/linux/ramips/dts/mt7628an.dtsi @@ -81,36 +81,18 @@ interrupts = <3>; }; - gpio@600 { - #address-cells = <1>; - #size-cells = <0>; - - compatible = "mtk,mt7628-gpio", "mtk,mt7621-gpio"; + gpio: gpio@600 { + compatible = "mediatek,mt7621-gpio"; reg = <0x600 0x100>; interrupt-parent = <&intc>; interrupts = <6>; - gpio0: bank@0 { - reg = <0>; - compatible = "mtk,mt7621-gpio-bank"; - gpio-controller; - #gpio-cells = <2>; - }; + #interrupt-cells = <2>; + interrupt-controller; - gpio1: bank@1 { - reg = <1>; - compatible = "mtk,mt7621-gpio-bank"; - gpio-controller; - #gpio-cells = <2>; - }; - - gpio2: bank@2 { - reg = <2>; - compatible = "mtk,mt7621-gpio-bank"; - gpio-controller; - #gpio-cells = <2>; - }; + gpio-controller; + #gpio-cells = <2>; }; i2c: i2c@900 { @@ -284,85 +266,85 @@ spi_pins: spi_pins { spi_pins { - ralink,group = "spi"; - ralink,function = "spi"; + groups = "spi"; + function = "spi"; }; }; spi_cs1_pins: spi_cs1 { spi_cs1 { - ralink,group = "spi cs1"; - ralink,function = "spi cs1"; + groups = "spi cs1"; + function = "spi cs1"; }; }; i2c_pins: i2c_pins { i2c_pins { - ralink,group = "i2c"; - ralink,function = "i2c"; + groups = "i2c"; + function = "i2c"; }; }; i2s_pins: i2s { i2s { - ralink,group = "i2s"; - ralink,function = "i2s"; + groups = "i2s"; + function = "i2s"; }; }; uart0_pins: uartlite { uartlite { - ralink,group = "uart0"; - ralink,function = "uart0"; + groups = "uart0"; + function = "uart0"; }; }; uart1_pins: uart1 { uart1 { - ralink,group = "uart1"; - ralink,function = "uart1"; + groups = "uart1"; + function = "uart1"; }; }; uart2_pins: uart2 { uart2 { - ralink,group = "uart2"; - ralink,function = "uart2"; + groups = "uart2"; + function = "uart2"; }; }; sdxc_pins: sdxc { sdxc { - ralink,group = "sdmode"; - ralink,function = "sdxc"; + groups = "sdmode"; + function = "sdxc"; }; }; pwm0_pins: pwm0 { pwm0 { - ralink,group = "pwm0"; - ralink,function = "pwm0"; + groups = "pwm0"; + function = "pwm0"; }; }; pwm1_pins: pwm1 { pwm1 { - ralink,group = "pwm1"; - ralink,function = "pwm1"; + groups = "pwm1"; + function = "pwm1"; }; }; pcm_i2s_pins: pcm_i2s { pcm_i2s { - ralink,group = "i2s"; - ralink,function = "pcm"; + groups = "i2s"; + function = "pcm"; }; }; refclk_pins: refclk { refclk { - ralink,group = "refclk"; - ralink,function = "refclk"; + groups = "refclk"; + function = "refclk"; }; }; }; diff --git a/target/linux/ramips/dts/mt7628an_alfa-network_awusfree1.dts b/target/linux/ramips/dts/mt7628an_alfa-network_awusfree1.dts index 3c38cc7b46..ada00fa3f1 100644 --- a/target/linux/ramips/dts/mt7628an_alfa-network_awusfree1.dts +++ b/target/linux/ramips/dts/mt7628an_alfa-network_awusfree1.dts @@ -57,7 +57,7 @@ reset { label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -67,12 +67,12 @@ led_system: system { label = "awusfree1:orange:system"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; wlan { label = "awusfree1:blue:wlan"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; }; @@ -89,28 +89,24 @@ mtd-mac-address = <&factory 0x2e>; }; -&gpio1 { - status = "okay"; -}; - &ohci { status = "disabled"; }; &state_default { gpio { - ralink,group = "p0led_an", "wdt", "wled_an"; - ralink,function = "gpio"; + groups = "p0led_an", "wdt", "wled_an"; + function = "gpio"; }; ext_lna { - ralink,group = "uart1"; - ralink,function = "sw_r"; + groups = "uart1"; + function = "sw_r"; }; ext_pa { - ralink,group = "i2s"; - ralink,function = "antenna"; + groups = "i2s"; + function = "antenna"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts b/target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts index 25c3c403d2..b617e74264 100644 --- a/target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts +++ b/target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts @@ -21,20 +21,20 @@ aoss { label = "aoss"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + gpios = <&gpio 0 GPIO_ACTIVE_LOW>; linux,code = ; }; ap { label = "ap"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 11 GPIO_ACTIVE_LOW>; linux,code = ; linux,input-type = ; }; reset { label = "reset"; - gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; + gpios = <&gpio 46 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -44,42 +44,42 @@ router_o { label = "wcr-1166ds:orange:router"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; router_g { label = "wcr-1166ds:green:router"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; }; internet_o { label = "wcr-1166ds:orange:internet"; - gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; + gpios = <&gpio 39 GPIO_ACTIVE_LOW>; }; internet_g { label = "wcr-1166ds:green:internet"; - gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; + gpios = <&gpio 40 GPIO_ACTIVE_LOW>; }; wireless_o { label = "wcr-1166ds:orange:wireless"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; wireless_g { label = "wcr-1166ds:green:wireless"; - gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; diag { label = "wcr-1166ds:orange:diag"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; led_power: power { label = "wcr-1166ds:green:power"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; }; @@ -111,8 +111,8 @@ &state_default { gpio { - ralink,group = "uart1", "wled_an", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "wdt", "refclk", "gpio", "i2s"; - ralink,function = "gpio"; + groups = "uart1", "wled_an", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "wdt", "refclk", "gpio", "i2s"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_cudy_wr1000.dts b/target/linux/ramips/dts/mt7628an_cudy_wr1000.dts index 71aefcb525..c977d5c993 100644 --- a/target/linux/ramips/dts/mt7628an_cudy_wr1000.dts +++ b/target/linux/ramips/dts/mt7628an_cudy_wr1000.dts @@ -22,13 +22,13 @@ reset { label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; wps { label = "rfkill"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + gpios = <&gpio 0 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -38,28 +38,28 @@ lan1 { label = "wr1000:blue:lan1"; - gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; + gpios = <&gpio 40 GPIO_ACTIVE_LOW>; }; lan2 { label = "wr1000:blue:lan2"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; wan { label = "wr1000:blue:wan"; - gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; + gpios = <&gpio 39 GPIO_ACTIVE_LOW>; }; wlan2g { label = "wr1000:blue:wlan2g"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; led_wps: wps { label = "wr1000:blue:wps"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; }; }; @@ -106,9 +106,9 @@ &state_default { gpio { - ralink,group = "i2s", "refclk", "wdt", "p4led_an", + groups = "i2s", "refclk", "wdt", "p4led_an", "p3led_an", "p2led_an", "wled_an"; - ralink,function = "gpio"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_d-team_pbr-d1.dts b/target/linux/ramips/dts/mt7628an_d-team_pbr-d1.dts index bcc9d00519..d406bac0e8 100644 --- a/target/linux/ramips/dts/mt7628an_d-team_pbr-d1.dts +++ b/target/linux/ramips/dts/mt7628an_d-team_pbr-d1.dts @@ -29,14 +29,14 @@ usb { label = "pbr-d1:orange:usb"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + gpios = <&gpio 0 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; led_power: power { label = "pbr-d1:orange:power"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + gpios = <&gpio 14 GPIO_ACTIVE_LOW>; default-state = "on"; }; }; @@ -46,7 +46,7 @@ reset { label = "reset"; - gpios = <&gpio1 38 GPIO_ACTIVE_LOW>; + gpios = <&gpio 70 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -62,28 +62,28 @@ &state_default { gpio { - ralink,group = "gpio"; - ralink,function = "gpio"; + groups = "gpio"; + function = "gpio"; }; i2c { - ralink,group = "i2c"; - ralink,function = "gpio"; + groups = "i2c"; + function = "gpio"; }; i2s { - ralink,group = "i2s"; - ralink,function = "gpio"; + groups = "i2s"; + function = "gpio"; }; spis { - ralink,group = "spis"; - ralink,function = "gpio"; + groups = "spis"; + function = "gpio"; }; wdt { - ralink,group = "wdt"; - ralink,function = "gpio"; + groups = "wdt"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_duzun_dm06.dts b/target/linux/ramips/dts/mt7628an_duzun_dm06.dts index 83f93e0de5..4164bae184 100644 --- a/target/linux/ramips/dts/mt7628an_duzun_dm06.dts +++ b/target/linux/ramips/dts/mt7628an_duzun_dm06.dts @@ -14,13 +14,13 @@ reset { label = "reset"; - gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; + gpios = <&gpio 46 GPIO_ACTIVE_LOW>; linux,code = ; }; wps { label = "wps"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -50,15 +50,11 @@ &state_default { gpio { - ralink,group = "wdt", "uart1"; - ralink,function = "gpio"; + groups = "wdt", "uart1"; + function = "gpio"; }; }; -&gpio1 { - status = "okay"; -}; - &i2c { status = "okay"; diff --git a/target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts b/target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts index 533f3b0dc3..4dbacba8c6 100644 --- a/target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts +++ b/target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts @@ -27,17 +27,17 @@ led_power: power { label = "gl-mt300n-v2:green:power"; default-state = "on"; - gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; wan { label = "gl-mt300n-v2:green:wan"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; wlan { label = "gl-mt300n-v2:red:wlan"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; @@ -46,19 +46,19 @@ reset { label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; BTN_0 { label = "BTN_0"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + gpios = <&gpio 0 GPIO_ACTIVE_LOW>; linux,code = ; }; BTN_1 { label = "BTN_1"; - gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; + gpios = <&gpio 3 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -70,15 +70,15 @@ usb { gpio-export,name = "usb"; gpio-export,output = <1>; - gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; + gpios = <&gpio 11 GPIO_ACTIVE_HIGH>; }; }; }; &state_default { gpio { - ralink,group = "wdt", "gpio", "wled_an", "p0led_an", "p1led_an", "i2s"; - ralink,function = "gpio"; + groups = "wdt", "gpio", "wled_an", "p0led_an", "p1led_an", "i2s"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_glinet_vixmini_microuter.dtsi b/target/linux/ramips/dts/mt7628an_glinet_vixmini_microuter.dtsi index b88f9e7356..ea43a87372 100644 --- a/target/linux/ramips/dts/mt7628an_glinet_vixmini_microuter.dtsi +++ b/target/linux/ramips/dts/mt7628an_glinet_vixmini_microuter.dtsi @@ -24,12 +24,12 @@ led_power_blue: power { /* Name is set device-specific */ - gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; led_wlan_white: wlan { /* Name is set device-specific */ - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; }; @@ -39,7 +39,7 @@ reset { label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -47,8 +47,8 @@ &state_default { gpio { - ralink,group = "wdt", "wled_an", "p1led_an"; - ralink,function = "gpio"; + groups = "wdt", "wled_an", "p1led_an"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts b/target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts index d0df692a3b..ae085255b3 100644 --- a/target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts +++ b/target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts @@ -19,7 +19,7 @@ reset { label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -29,15 +29,15 @@ wlan { label = "hlk-7628n:green:wlan"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; }; &state_default { gpio { - ralink,group = "i2c"; - ralink,function = "gpio"; + groups = "i2c"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_hiwifi_hc5661a.dts b/target/linux/ramips/dts/mt7628an_hiwifi_hc5661a.dts index 3b6a92c01d..cd91b1587a 100644 --- a/target/linux/ramips/dts/mt7628an_hiwifi_hc5661a.dts +++ b/target/linux/ramips/dts/mt7628an_hiwifi_hc5661a.dts @@ -11,17 +11,17 @@ led_system: system { label = "hc5661a:blue:system"; - gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; + gpios = <&gpio 37 GPIO_ACTIVE_HIGH>; }; internet { label = "hc5661a:blue:internet"; - gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; + gpios = <&gpio 1 GPIO_ACTIVE_HIGH>; }; wlan2g { label = "hc5661a:blue:wlan2g"; - gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>; + gpios = <&gpio 44 GPIO_ACTIVE_HIGH>; linux,default-trigger = "phy0tpt"; }; }; @@ -29,8 +29,8 @@ &state_default { gpio { - ralink,group = "i2c", "refclk", "wdt", "wled_an"; - ralink,function = "gpio"; + groups = "i2c", "refclk", "wdt", "wled_an"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_hiwifi_hc5761a.dts b/target/linux/ramips/dts/mt7628an_hiwifi_hc5761a.dts index 903029d10d..cae42ceb14 100644 --- a/target/linux/ramips/dts/mt7628an_hiwifi_hc5761a.dts +++ b/target/linux/ramips/dts/mt7628an_hiwifi_hc5761a.dts @@ -12,23 +12,23 @@ led_system: system { label = "hc5761a:blue:system"; - gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; + gpios = <&gpio 37 GPIO_ACTIVE_HIGH>; }; internet { label = "hc5761a:blue:internet"; - gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; + gpios = <&gpio 1 GPIO_ACTIVE_HIGH>; }; wlan2g { label = "hc5761a:blue:wlan2g"; - gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>; + gpios = <&gpio 44 GPIO_ACTIVE_HIGH>; linux,default-trigger = "phy0tpt"; }; wlan5g { label = "hc5761a:blue:wlan5g"; - gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>; + gpios = <&gpio 40 GPIO_ACTIVE_HIGH>; linux,default-trigger = "phy1tpt"; }; }; @@ -40,15 +40,15 @@ usb_power { gpio-export,name = "usb_power"; gpio-export,output = <0>; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; }; }; &state_default { gpio { - ralink,group = "i2c", "refclk", "wdt", "p2led_an", "p3led_an", "wled_an"; - ralink,function = "gpio"; + groups = "i2c", "refclk", "wdt", "p2led_an", "p3led_an", "wled_an"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_hiwifi_hc5861b.dts b/target/linux/ramips/dts/mt7628an_hiwifi_hc5861b.dts index fbc8d9837a..b69214ed5d 100644 --- a/target/linux/ramips/dts/mt7628an_hiwifi_hc5861b.dts +++ b/target/linux/ramips/dts/mt7628an_hiwifi_hc5861b.dts @@ -11,12 +11,12 @@ led_system: system { label = "hc5861b:green:system"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; wlan2g { label = "hc5861b:green:wlan2g"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; }; @@ -24,8 +24,8 @@ &state_default { gpio { - ralink,group = "refclk", "wdt", "wled_an"; - ralink,function = "gpio"; + groups = "refclk", "wdt", "wled_an"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_hiwifi_hc5x61a.dtsi b/target/linux/ramips/dts/mt7628an_hiwifi_hc5x61a.dtsi index 7a6631d2e4..7bd394c346 100644 --- a/target/linux/ramips/dts/mt7628an_hiwifi_hc5x61a.dtsi +++ b/target/linux/ramips/dts/mt7628an_hiwifi_hc5x61a.dtsi @@ -24,7 +24,7 @@ reset { label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; }; diff --git a/target/linux/ramips/dts/mt7628an_iptime.dtsi b/target/linux/ramips/dts/mt7628an_iptime.dtsi index 8ee865ddff..8a33c37f7a 100644 --- a/target/linux/ramips/dts/mt7628an_iptime.dtsi +++ b/target/linux/ramips/dts/mt7628an_iptime.dtsi @@ -15,14 +15,14 @@ reset { label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; debounce-interval = <60>; }; wps { label = "wps"; - gpios = <&gpio1 13 GPIO_ACTIVE_LOW>; + gpios = <&gpio 45 GPIO_ACTIVE_LOW>; linux,code = ; debounce-interval = <60>; }; @@ -71,8 +71,8 @@ &state_default { gpio { - ralink,group = "uart1", "wdt"; - ralink,function = "gpio"; + groups = "uart1", "wdt"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_iptime_a3.dts b/target/linux/ramips/dts/mt7628an_iptime_a3.dts index a4d8458ded..6b124cc2c8 100644 --- a/target/linux/ramips/dts/mt7628an_iptime_a3.dts +++ b/target/linux/ramips/dts/mt7628an_iptime_a3.dts @@ -19,12 +19,12 @@ led_cpu: cpu { label = "a3:blue:cpu"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wlan { label = "a3:blue:wlan"; - gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; + gpios = <&gpio 46 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_iptime_a604m.dts b/target/linux/ramips/dts/mt7628an_iptime_a604m.dts index d9e0f8c593..661439f03b 100644 --- a/target/linux/ramips/dts/mt7628an_iptime_a604m.dts +++ b/target/linux/ramips/dts/mt7628an_iptime_a604m.dts @@ -19,18 +19,18 @@ wlan5g { label = "a604m:blue:wlan5g"; - gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; + gpios = <&gpio 5 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; led_cpu: cpu { label = "a604m:blue:cpu"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wlan2g { label = "a604m:blue:wlan2g"; - gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; + gpios = <&gpio 46 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; }; @@ -38,7 +38,7 @@ &state_default { gpio { - ralink,group = "i2c", "uart1", "wdt"; - ralink,function = "gpio"; + groups = "i2c", "uart1", "wdt"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_mediatek_linkit-smart-7688.dts b/target/linux/ramips/dts/mt7628an_mediatek_linkit-smart-7688.dts index 229843fe1c..ebc4c3d6f9 100644 --- a/target/linux/ramips/dts/mt7628an_mediatek_linkit-smart-7688.dts +++ b/target/linux/ramips/dts/mt7628an_mediatek_linkit-smart-7688.dts @@ -35,7 +35,7 @@ led_wifi: wifi { label = "linkit-smart-7688:orange:wifi"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; @@ -44,7 +44,7 @@ wps { label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -52,33 +52,33 @@ &state_default { gpio { - ralink,group = "gpio"; - ralink,function = "gpio"; + groups = "gpio"; + function = "gpio"; }; refclk { - ralink,group = "refclk"; - ralink,function = "gpio"; + groups = "refclk"; + function = "gpio"; }; i2s { - ralink,group = "i2s"; - ralink,function = "gpio"; + groups = "i2s"; + function = "gpio"; }; spis { - ralink,group = "spis"; - ralink,function = "gpio"; + groups = "spis"; + function = "gpio"; }; wled_an { - ralink,group = "wled_an"; - ralink,function = "gpio"; + groups = "wled_an"; + function = "gpio"; }; wdt { - ralink,group = "wdt"; - ralink,function = "gpio"; + groups = "wdt"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_mediatek_mt7628an-eval-board.dts b/target/linux/ramips/dts/mt7628an_mediatek_mt7628an-eval-board.dts index 5558892a22..260ac14c30 100644 --- a/target/linux/ramips/dts/mt7628an_mediatek_mt7628an-eval-board.dts +++ b/target/linux/ramips/dts/mt7628an_mediatek_mt7628an-eval-board.dts @@ -9,8 +9,8 @@ &state_default { gpio { - ralink,group = "i2c"; - ralink,function = "gpio"; + groups = "i2c"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts b/target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts index 22a8b566e2..560690d6de 100644 --- a/target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts +++ b/target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts @@ -25,7 +25,7 @@ led_status: status { label = "mac1200rv2:green:status"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; }; }; diff --git a/target/linux/ramips/dts/mt7628an_netgear_r6120.dts b/target/linux/ramips/dts/mt7628an_netgear_r6120.dts index dc9de9f4bf..f4fe73a526 100644 --- a/target/linux/ramips/dts/mt7628an_netgear_r6120.dts +++ b/target/linux/ramips/dts/mt7628an_netgear_r6120.dts @@ -22,7 +22,7 @@ reset { label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -32,32 +32,32 @@ lan { label = "r6120:green:lan"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; led_power: power { label = "r6120:green:power"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; wlan2g_green { label = "r6120:green:wlan2g"; - gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; wlan2g_orange { label = "r6120:orange:wlan2g"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; wan_green { label = "r6120:green:wan"; - gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; + gpios = <&gpio 40 GPIO_ACTIVE_LOW>; }; wan_orange { label = "r6120:orange:wan"; - gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; + gpios = <&gpio 39 GPIO_ACTIVE_LOW>; }; }; @@ -65,7 +65,7 @@ compatible = "regulator-fixed"; regulator-name = "USB-power"; - gpio = <&gpio1 13 GPIO_ACTIVE_HIGH>; + gpio = <&gpio 45 GPIO_ACTIVE_HIGH>; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; enable-active-high; @@ -76,10 +76,10 @@ &state_default { gpio { - ralink,group = "p0led_an", "p1led_an", "p2led_an", + groups = "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "wdt", "wled_an", "uart1"; - ralink,function = "gpio"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_onion_omega2.dtsi b/target/linux/ramips/dts/mt7628an_onion_omega2.dtsi index 89f00a3e67..f8fad35c05 100644 --- a/target/linux/ramips/dts/mt7628an_onion_omega2.dtsi +++ b/target/linux/ramips/dts/mt7628an_onion_omega2.dtsi @@ -21,7 +21,7 @@ compatible = "gpio-leds"; system_led: system { - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; @@ -30,7 +30,7 @@ reset { label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>; + gpios = <&gpio 38 GPIO_ACTIVE_HIGH>; linux,code = ; }; }; @@ -38,64 +38,56 @@ &state_default { gpio { - ralink,group = "gpio"; - ralink,function = "gpio"; + groups = "gpio"; + function = "gpio"; }; perst { - ralink,group = "perst"; - ralink,function = "gpio"; + groups = "perst"; + function = "gpio"; }; refclk { - ralink,group = "refclk"; - ralink,function = "gpio"; + groups = "refclk"; + function = "gpio"; }; i2s { - ralink,group = "i2s"; - ralink,function = "gpio"; + groups = "i2s"; + function = "gpio"; }; spis { - ralink,group = "spis"; - ralink,function = "gpio"; + groups = "spis"; + function = "gpio"; }; wled_kn { - ralink,group = "wled_kn"; - ralink,function = "gpio"; + groups = "wled_kn"; + function = "gpio"; }; wled_an { - ralink,group = "wled_an"; - ralink,function = "gpio"; + groups = "wled_an"; + function = "gpio"; }; wdt { - ralink,group = "wdt"; - ralink,function = "gpio"; + groups = "wdt"; + function = "gpio"; }; pwm0 { - ralink,group = "pwm0"; - ralink,function = "gpio"; + groups = "pwm0"; + function = "gpio"; }; pwm1 { - ralink,group = "pwm1"; - ralink,function = "gpio"; + groups = "pwm1"; + function = "gpio"; }; }; -&gpio1 { - status = "okay"; -}; - -&gpio2 { - status = "okay"; -}; - &spi0 { status = "okay"; diff --git a/target/linux/ramips/dts/mt7628an_rakwireless_rak633.dts b/target/linux/ramips/dts/mt7628an_rakwireless_rak633.dts index 01fe7025bb..2e8b45a046 100644 --- a/target/linux/ramips/dts/mt7628an_rakwireless_rak633.dts +++ b/target/linux/ramips/dts/mt7628an_rakwireless_rak633.dts @@ -15,15 +15,15 @@ wifi { label = "rak633:blue:wifi"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; }; &state_default { wled_an { - ralink,group = "wled_an"; - ralink,function = "gpio"; + groups = "wled_an"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_skylab_skw92a.dts b/target/linux/ramips/dts/mt7628an_skylab_skw92a.dts index 0efe14621a..a231985b9c 100644 --- a/target/linux/ramips/dts/mt7628an_skylab_skw92a.dts +++ b/target/linux/ramips/dts/mt7628an_skylab_skw92a.dts @@ -24,12 +24,12 @@ led_power: wps { label = "skw92a:green:wps"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; wlan { label = "skw92a:green:wlan"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; @@ -38,7 +38,7 @@ reset { label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -46,8 +46,8 @@ &state_default { gpio { - ralink,group = "wdt", "refclk", "wled_an"; - ralink,function = "gpio"; + groups = "wdt", "refclk", "wled_an"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tama_w06.dts b/target/linux/ramips/dts/mt7628an_tama_w06.dts index 782e2dcd7f..95a6e790fb 100644 --- a/target/linux/ramips/dts/mt7628an_tama_w06.dts +++ b/target/linux/ramips/dts/mt7628an_tama_w06.dts @@ -14,17 +14,17 @@ wps { label = "w06:green:wps"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wan { label = "w06:green:wan"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; wireless { label = "w06:green:wlan"; - gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; + gpios = <&gpio 46 GPIO_ACTIVE_LOW>; }; }; @@ -33,7 +33,7 @@ reset { label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -53,8 +53,8 @@ &state_default { gpio { - ralink,group = "uart1", "p0led_an", "wdt"; - ralink,function = "gpio"; + groups = "uart1", "p0led_an", "wdt"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_totolink_a3.dts b/target/linux/ramips/dts/mt7628an_totolink_a3.dts index 87dd8559b7..a5b8d91499 100644 --- a/target/linux/ramips/dts/mt7628an_totolink_a3.dts +++ b/target/linux/ramips/dts/mt7628an_totolink_a3.dts @@ -19,12 +19,12 @@ led_cpu: cpu { label = "a3:blue:cpu"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wlan { label = "a3:blue:wlan"; - gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; + gpios = <&gpio 46 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_totolink_lr1200.dts b/target/linux/ramips/dts/mt7628an_totolink_lr1200.dts index 55c1ff03e3..88bdbf5bbf 100644 --- a/target/linux/ramips/dts/mt7628an_totolink_lr1200.dts +++ b/target/linux/ramips/dts/mt7628an_totolink_lr1200.dts @@ -22,48 +22,48 @@ led_sys: sys { label = "lr1200:blue:sys"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; sms { label = "lr1200:blue:sms"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; wifi { label = "lr1200:blue:wifi"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; 3g { label = "lr1200:blue:3g"; - gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; + gpios = <&gpio 4 GPIO_ACTIVE_LOW>; }; 4g { label = "lr1200:blue:4g"; - gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; + gpios = <&gpio 5 GPIO_ACTIVE_LOW>; }; rssi1 { label = "lr1200:blue:rssi1"; - gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; + gpios = <&gpio 46 GPIO_ACTIVE_LOW>; }; rssi2 { label = "lr1200:blue:rssi2"; - gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; + gpios = <&gpio 3 GPIO_ACTIVE_LOW>; }; rssi3 { label = "lr1200:blue:rssi3"; - gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; + gpios = <&gpio 2 GPIO_ACTIVE_LOW>; }; rssi4 { label = "lr1200:blue:rssi4"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + gpios = <&gpio 0 GPIO_ACTIVE_LOW>; }; }; @@ -72,16 +72,16 @@ reset { label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; }; }; -&gpio1 { +&gpio { gpio_modem_reset { gpio-hog; - gpios = <13 GPIO_ACTIVE_HIGH>; + gpios = <45 GPIO_ACTIVE_HIGH>; output-high; line-name = "modem-reset"; }; @@ -89,8 +89,8 @@ &state_default { gpio { - ralink,group = "gpio", "i2c", "i2s", "refclk", "uart1", "wdt", "wled_an"; - ralink,function = "gpio"; + groups = "gpio", "i2c", "i2s", "refclk", "uart1", "wdt", "wled_an"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts b/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts index 9d0f6563c3..faba69cca4 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts @@ -18,39 +18,39 @@ lan { label = "archer-c20-v4:green:lan"; - gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; led_power: power { label = "archer-c20-v4:green:power"; - gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; + gpios = <&gpio 2 GPIO_ACTIVE_LOW>; }; wan { label = "archer-c20-v4:green:wan"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; wan_orange { label = "archer-c20-v4:orange:wan"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wlan5g { label = "archer-c20-v4:green:wlan5g"; - gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; + gpios = <&gpio 40 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; wlan2g { label = "archer-c20-v4:green:wlan2g"; - gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; + gpios = <&gpio 39 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; wps { label = "archer-c20-v4:green:wps"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; }; @@ -59,13 +59,13 @@ reset { label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; rfkill { label = "rfkill"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + gpios = <&gpio 37 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -81,8 +81,8 @@ &state_default { gpio { - ralink,group = "i2s", "gpio", "refclk", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "wdt"; - ralink,function = "gpio"; + groups = "i2s", "gpio", "refclk", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "wdt"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v5.dts b/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v5.dts index 9aca8429b4..6cff9c4070 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v5.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v5.dts @@ -19,13 +19,13 @@ reset { label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; rfkill { label = "rfkill"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + gpios = <&gpio 37 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -35,48 +35,48 @@ led_power: power { label = "archer-c20-v5:green:power"; - gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; + gpios = <&gpio 2 GPIO_ACTIVE_LOW>; }; wlan2g { label = "archer-c20-v5:green:wlan2g"; - gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; + gpios = <&gpio 39 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; wlan5g { label = "archer-c20-v5:green:wlan5g"; - gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; + gpios = <&gpio 40 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; lan { label = "archer-c20-v5:green:lan"; - gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; wan_green { label = "archer-c20-v5:green:wan"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; wan_orange { label = "archer-c20-v5:orange:wan"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wps { label = "archer-c20-v5:green:wps"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; }; }; &state_default { gpio { - ralink,group = "i2s", "gpio", "refclk", "p0led_an", "p1led_an", + groups = "i2s", "gpio", "refclk", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "wdt"; - ralink,function = "gpio"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts b/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts index 360466d56f..49a3bf7c7a 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts @@ -18,13 +18,13 @@ reset { label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; rfkill { label = "rfkill"; - gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; + gpios = <&gpio 5 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -34,46 +34,46 @@ lan { label = "archer-c50-v3:green:lan"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; led_power: power { label = "archer-c50-v3:green:power"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wan { label = "archer-c50-v3:green:wan"; - gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; + gpios = <&gpio 39 GPIO_ACTIVE_LOW>; }; wan_orange { label = "archer-c50-v3:orange:wan"; - gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; + gpios = <&gpio 40 GPIO_ACTIVE_LOW>; }; wlan { label = "archer-c50-v3:green:wlan2g"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; wlan5 { label = "archer-c50-v3:green:wlan5g"; - gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; wps { label = "archer-c50-v3:green:wps"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; }; }; &state_default { gpio { - ralink,group = "i2c", "gpio", "p0led_an", "p1led_an", "p2led_an", + groups = "i2c", "gpio", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "wdt", "wled_an"; - ralink,function = "gpio"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v4.dts b/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v4.dts index 8db4f21987..3216d38908 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v4.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v4.dts @@ -19,13 +19,13 @@ reset { label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; rfkill { label = "rfkill"; - gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; + gpios = <&gpio 5 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -35,46 +35,46 @@ led_power: power { label = "archer-c50-v4:green:power"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wlan2 { label = "archer-c50-v4:green:wlan2g"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; wlan5 { label = "archer-c50-v4:green:wlan5g"; - gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; lan { label = "archer-c50-v4:green:lan"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; wan { label = "archer-c50-v4:green:wan"; - gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; + gpios = <&gpio 39 GPIO_ACTIVE_LOW>; }; wan_orange { label = "archer-c50-v4:orange:wan"; - gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; + gpios = <&gpio 40 GPIO_ACTIVE_LOW>; }; wps { label = "archer-c50-v4:green:wps"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; }; }; &state_default { gpio { - ralink,group = "i2c", "p0led_an", "p1led_an", "p2led_an", + groups = "i2c", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "wdt", "wled_an"; - ralink,function = "gpio"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_re200-v2.dts b/target/linux/ramips/dts/mt7628an_tplink_re200-v2.dts index 54fd805cee..5b2b36fd4c 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_re200-v2.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_re200-v2.dts @@ -19,52 +19,52 @@ wps { label = "re200-v2:green:wps"; - gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; + gpios = <&gpio 5 GPIO_ACTIVE_LOW>; }; wifi { label = "re200-v2:green:wifi"; - gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; + gpios = <&gpio 4 GPIO_ACTIVE_LOW>; }; lan { label = "re200-v2:green:lan"; - gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; + gpios = <&gpio 39 GPIO_ACTIVE_LOW>; }; led_power: power { label = "re200-v2:green:power"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; wifi2g_green { label = "re200-v2:green:wifi2g"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + gpios = <&gpio 41 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; wifi5g_green { label = "re200-v2:green:wifi5g"; - gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + gpios = <&gpio 42 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; wifi2g_red { label = "re200-v2:red:wifi2g"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; wifi5g_red { label = "re200-v2:red:wifi5g"; - gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; + gpios = <&gpio 40 GPIO_ACTIVE_LOW>; }; }; }; &state_default { gpio { - ralink,group = "p4led_an", "p3led_an", "p2led_an", "p1led_an", + groups = "p4led_an", "p3led_an", "p2led_an", "p1led_an", "p0led_an", "wled_an", "i2c", "wdt", "refclk"; - ralink,function = "gpio"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_re200.dtsi b/target/linux/ramips/dts/mt7628an_tplink_re200.dtsi index 45d5b8ed76..a1acc556f2 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_re200.dtsi +++ b/target/linux/ramips/dts/mt7628an_tplink_re200.dtsi @@ -19,13 +19,13 @@ reset { label = "reset"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + gpios = <&gpio 37 GPIO_ACTIVE_LOW>; linux,code = ; }; wps { label = "wps"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_re305-v1.dts b/target/linux/ramips/dts/mt7628an_tplink_re305-v1.dts index d1adb1b38a..21d804f77c 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_re305-v1.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_re305-v1.dts @@ -27,13 +27,13 @@ reset { label = "reset"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + gpios = <&gpio 37 GPIO_ACTIVE_LOW>; linux,code = ; }; wps { label = "wps"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -43,29 +43,29 @@ led_power: power { label = "re305-v1:blue:power"; - gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; + gpios = <&gpio 39 GPIO_ACTIVE_LOW>; }; wlan2g { label = "re305-v1:blue:wlan2g"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + gpios = <&gpio 41 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; wlan5g { label = "re305-v1:blue:wlan5g"; - gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; + gpios = <&gpio 40 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; rssi1 { label = "re305-v1:red:rssi"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; rssi2 { label = "re305-v1:blue:rssi"; - gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; }; }; @@ -117,8 +117,8 @@ &state_default { gpio { - ralink,group = "refclk", "wdt", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an"; - ralink,function = "gpio"; + groups = "refclk", "wdt", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts index cf0f5eb796..d418eb9308 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts @@ -25,19 +25,19 @@ wps { label = "wps"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; modec1 { label = "sw1"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + gpios = <&gpio 41 GPIO_ACTIVE_LOW>; linux,code = ; }; modec2 { label = "sw2"; - gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + gpios = <&gpio 42 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -47,31 +47,31 @@ led_power: power { label = "tl-mr3020-v3:green:power"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + gpios = <&gpio 37 GPIO_ACTIVE_LOW>; default-state = "on"; }; wan { label = "tl-mr3020-v3:green:3g"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 43 GPIO_ACTIVE_LOW>; trigger-sources = <&ehci_port1>, <&ohci_port1>; linux,default-trigger = "usbport"; }; wlan { label = "tl-mr3020-v3:green:wlan"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; wps { label = "tl-mr3020-v3:green:wps"; - gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; + gpios = <&gpio 2 GPIO_ACTIVE_LOW>; }; lan { label = "tl-mr3020-v3:green:lan"; - gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; + gpios = <&gpio 3 GPIO_ACTIVE_LOW>; }; }; }; @@ -126,8 +126,8 @@ &state_default { gpio { - ralink,group = "i2s", "refclk", "wdt", "p2led_an", "p1led_an", "p0led_an", "wled_an"; - ralink,function = "gpio"; + groups = "i2s", "refclk", "wdt", "p2led_an", "p1led_an", "p0led_an", "wled_an"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-mr3420-v5.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-mr3420-v5.dts index ad60548678..67dfb81376 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-mr3420-v5.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-mr3420-v5.dts @@ -18,13 +18,13 @@ reset { label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; rfkill { label = "rfkill"; - gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; + gpios = <&gpio 46 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -34,39 +34,39 @@ lan { label = "tl-mr3420-v5:green:lan"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; led_power: power { label = "tl-mr3420-v5:green:power"; - gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; + gpios = <&gpio 2 GPIO_ACTIVE_LOW>; }; usb { label = "tl-mr3420-v5:green:usb"; - gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; + gpios = <&gpio 3 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; wan { label = "tl-mr3420-v5:green:wan"; - gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; + gpios = <&gpio 5 GPIO_ACTIVE_LOW>; }; wan_amber { label = "tl-mr3420-v5:amber:wan"; - gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; + gpios = <&gpio 4 GPIO_ACTIVE_LOW>; }; wlan { label = "tl-mr3420-v5:green:wlan"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; wps { label = "tl-mr3420-v5:green:wps"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; }; }; @@ -81,8 +81,8 @@ &state_default { gpio { - ralink,group = "i2c", "i2s", "p2led_an", "refclk", "uart1", "wdt", "wled_an"; - ralink,function = "gpio"; + groups = "i2c", "i2s", "p2led_an", "refclk", "uart1", "wdt", "wled_an"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wa801nd-v5.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wa801nd-v5.dts index 5485a04119..cc8fd3c352 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wa801nd-v5.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wa801nd-v5.dts @@ -18,13 +18,13 @@ reset { label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; wps { label = "wps"; - gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; + gpios = <&gpio 46 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -34,36 +34,36 @@ led_power: power { label = "tl-wa801nd-v5:green:power"; - gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; + gpios = <&gpio 36 GPIO_ACTIVE_LOW>; }; lan { label = "tl-wa801nd-v5:green:lan"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; wlan { label = "tl-wa801nd-v5:green:wlan"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; wps_red { label = "tl-wa801nd-v5:red:wps"; - gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>; + gpios = <&gpio 43 GPIO_ACTIVE_HIGH>; }; wps_green { label = "tl-wa801nd-v5:green:wps"; - gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; + gpios = <&gpio 42 GPIO_ACTIVE_HIGH>; }; }; }; &state_default { gpio { - ralink,group = "p0led_an", "p1led_an", "perst", "refclk", + groups = "p0led_an", "p1led_an", "perst", "refclk", "uart1", "wdt", "wled_an"; - ralink,function = "gpio"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr802n-v4.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr802n-v4.dts index 25444b1d3d..3b497ef0c9 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr802n-v4.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr802n-v4.dts @@ -19,7 +19,7 @@ reset { label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -29,15 +29,15 @@ led_power: power { label = "tl-wr802n-v4:green:power"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; }; }; &state_default { gpio { - ralink,group = "refclk", "wdt"; - ralink,function = "gpio"; + groups = "refclk", "wdt"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v4.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v4.dts index 5d7035bba4..c81793e2ef 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v4.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v4.dts @@ -18,7 +18,7 @@ reset { label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -28,35 +28,35 @@ lan { label = "tl-wr840n-v4:green:lan"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; led_power: power { label = "tl-wr840n-v4:green:power"; - gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; + gpios = <&gpio 36 GPIO_ACTIVE_LOW>; }; wan { label = "tl-wr840n-v4:green:wan"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; wlan { label = "tl-wr840n-v4:green:wlan"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; wps { label = "tl-wr840n-v4:green:wps"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; }; }; &state_default { gpio { - ralink,group = "p0led_an", "p2led_an", "perst", "refclk", "wdt", "wled_an"; - ralink,function = "gpio"; + groups = "p0led_an", "p2led_an", "perst", "refclk", "wdt", "wled_an"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v5.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v5.dts index 3de58a71f6..f6d26d1fae 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v5.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v5.dts @@ -25,7 +25,7 @@ reset { label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -36,12 +36,12 @@ led_power_green: power { label = "tl-wr840n-v5:green:power"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; orange { label = "tl-wr840n-v5:orange:power"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; }; }; @@ -103,7 +103,7 @@ &state_default { gpio { - ralink,group = "p0led_an", "p2led_an", "perst"; - ralink,function = "gpio"; + groups = "p0led_an", "p2led_an", "perst"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v13.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v13.dts index ca25ce643d..3b12098ada 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v13.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v13.dts @@ -18,13 +18,13 @@ reset { label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; rfkill { label = "rfkill"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + gpios = <&gpio 37 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -34,55 +34,55 @@ led_power: power { label = "tl-wr841n-v13:green:power"; - gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; + gpios = <&gpio 36 GPIO_ACTIVE_LOW>; }; wps { label = "tl-wr841n-v13:green:wps"; - gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; + gpios = <&gpio 46 GPIO_ACTIVE_LOW>; }; lan1 { label = "tl-wr841n-v13:green:lan1"; - gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; lan2 { label = "tl-wr841n-v13:green:lan2"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; lan3 { label = "tl-wr841n-v13:green:lan3"; - gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; + gpios = <&gpio 40 GPIO_ACTIVE_LOW>; }; lan4 { label = "tl-wr841n-v13:green:lan4"; - gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; + gpios = <&gpio 39 GPIO_ACTIVE_LOW>; }; wan_green { label = "tl-wr841n-v13:green:wan"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; wan_orange { label = "tl-wr841n-v13:orange:wan"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wlan { label = "tl-wr841n-v13:green:wlan"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; }; &state_default { gpio { - ralink,group = "gpio", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "perst", "refclk", "uart1", "wdt", "wled_an"; - ralink,function = "gpio"; + groups = "gpio", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "perst", "refclk", "uart1", "wdt", "wled_an"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v14.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v14.dts index 1654e1819f..eaac196c19 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v14.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v14.dts @@ -27,7 +27,7 @@ reset { label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -37,23 +37,23 @@ lan { label = "tl-wr841n-v14:green:lan"; - gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; + gpios = <&gpio 39 GPIO_ACTIVE_LOW>; }; wan_green { label = "tl-wr841n-v14:green:wan"; - gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; + gpios = <&gpio 40 GPIO_ACTIVE_LOW>; }; led_wlan: wlan { label = "tl-wr841n-v14:green:wlan"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + gpios = <&gpio 41 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; wan_orange { label = "tl-wr841n-v14:orange:wan"; - gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; }; }; @@ -117,15 +117,15 @@ &state_default { gpio { - ralink,group = "p4led_an", "p3led_an", "p2led_an", "p1led_an", "p0led_an", "wdt"; - ralink,function = "gpio"; + groups = "p4led_an", "p3led_an", "p2led_an", "p1led_an", "p0led_an", "wdt"; + function = "gpio"; }; }; -&gpio1 { +&gpio { led_wlan_enable { gpio-hog; - gpios = <11 GPIO_ACTIVE_HIGH>; + gpios = <43 GPIO_ACTIVE_HIGH>; output-high; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr842n-v5.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr842n-v5.dts index 50974fafe7..8f818bef62 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr842n-v5.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr842n-v5.dts @@ -18,13 +18,13 @@ reset { label = "reset"; - gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; + gpios = <&gpio 46 GPIO_ACTIVE_LOW>; linux,code = ; }; rfkill { label = "rfkill"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -34,39 +34,39 @@ lan { label = "tl-wr842n-v5:green:lan"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; led_power: power { label = "tl-wr842n-v5:green:power"; - gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; + gpios = <&gpio 2 GPIO_ACTIVE_LOW>; }; usb { label = "tl-wr842n-v5:green:usb"; - gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; + gpios = <&gpio 3 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; wan { label = "tl-wr842n-v5:green:wan"; - gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; + gpios = <&gpio 5 GPIO_ACTIVE_LOW>; }; wan_amber { label = "tl-wr842n-v5:amber:wan"; - gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; + gpios = <&gpio 4 GPIO_ACTIVE_LOW>; }; wlan { label = "tl-wr842n-v5:green:wlan"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; wps { label = "tl-wr842n-v5:green:wps"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; }; }; @@ -81,8 +81,8 @@ &state_default { gpio { - ralink,group = "i2c", "i2s", "p2led_an", "refclk", "uart1", "wdt", "wled_an"; - ralink,function = "gpio"; + groups = "i2c", "i2s", "p2led_an", "refclk", "uart1", "wdt", "wled_an"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v3.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v3.dts index 9d5dddbe4b..2f238189d4 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v3.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v3.dts @@ -18,25 +18,25 @@ reset { label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; sw1 { label = "sw1"; - gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; + gpios = <&gpio 2 GPIO_ACTIVE_LOW>; linux,code = ; }; sw2 { label = "sw2"; - gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; + gpios = <&gpio 3 GPIO_ACTIVE_LOW>; linux,code = ; }; wps { label = "wps"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + gpios = <&gpio 41 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -46,42 +46,42 @@ lan { label = "tl-wr902ac-v3:green:lan"; - gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>; + gpios = <&gpio 5 GPIO_ACTIVE_HIGH>; }; led_power: power { label = "tl-wr902ac-v3:green:power"; - gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; + gpios = <&gpio 46 GPIO_ACTIVE_LOW>; }; usb { label = "tl-wr902ac-v3:green:usb"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 43 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; wan { label = "tl-wr902ac-v3:green:wan"; - gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; + gpios = <&gpio 39 GPIO_ACTIVE_LOW>; }; wlan { label = "tl-wr902ac-v3:green:wlan"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; wps { label = "tl-wr902ac-v3:green:wps"; - gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; + gpios = <&gpio 4 GPIO_ACTIVE_LOW>; }; }; }; &state_default { gpio { - ralink,group = "i2c", "i2s", "p0led_an", "p2led_an", "p4led_an", "uart1", "wdt", "wled_an"; - ralink,function = "gpio"; + groups = "i2c", "i2s", "p0led_an", "p2led_an", "p4led_an", "uart1", "wdt", "wled_an"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_unielec_u7628-01.dtsi b/target/linux/ramips/dts/mt7628an_unielec_u7628-01.dtsi index afa7f18efc..69f371a724 100644 --- a/target/linux/ramips/dts/mt7628an_unielec_u7628-01.dtsi +++ b/target/linux/ramips/dts/mt7628an_unielec_u7628-01.dtsi @@ -56,7 +56,7 @@ reset { label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -66,56 +66,48 @@ led_power: power { label = "u7628-01:green:power"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; wlan { label = "u7628-01:green:wlan"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wan { label = "u7628-01:green:wan"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; lan1 { label = "u7628-01:green:lan1"; - gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; lan2 { label = "u7628-01:green:lan2"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; lan3 { label = "u7628-01:green:lan3"; - gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; + gpios = <&gpio 40 GPIO_ACTIVE_LOW>; }; lan4 { label = "u7628-01:green:lan4"; - gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; + gpios = <&gpio 39 GPIO_ACTIVE_LOW>; }; usb { label = "u7628-01:green:usb"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + gpios = <&gpio 37 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; }; }; -&gpio0 { - status = "okay"; -}; - -&gpio1 { - status = "okay"; -}; - &pcie { status = "okay"; }; @@ -130,7 +122,7 @@ &state_default { gpio { - ralink,group = "gpio", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "refclk", "wdt", "wled_an"; - ralink,function = "gpio"; + groups = "gpio", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "refclk", "wdt", "wled_an"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_vocore_vocore2-lite.dts b/target/linux/ramips/dts/mt7628an_vocore_vocore2-lite.dts index 12e45be574..421c8becc0 100644 --- a/target/linux/ramips/dts/mt7628an_vocore_vocore2-lite.dts +++ b/target/linux/ramips/dts/mt7628an_vocore_vocore2-lite.dts @@ -18,7 +18,7 @@ led_status: status { label = "vocore2lite:green:status"; - gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>; + gpios = <&gpio 44 GPIO_ACTIVE_HIGH>; }; }; }; diff --git a/target/linux/ramips/dts/mt7628an_vocore_vocore2.dts b/target/linux/ramips/dts/mt7628an_vocore_vocore2.dts index 2630f5261e..a275d8835e 100644 --- a/target/linux/ramips/dts/mt7628an_vocore_vocore2.dts +++ b/target/linux/ramips/dts/mt7628an_vocore_vocore2.dts @@ -18,7 +18,7 @@ led_status: status { label = "vocore2:fuchsia:status"; - gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>; + gpios = <&gpio 44 GPIO_ACTIVE_HIGH>; }; }; }; diff --git a/target/linux/ramips/dts/mt7628an_vocore_vocore2.dtsi b/target/linux/ramips/dts/mt7628an_vocore_vocore2.dtsi index 34664bde94..bffcdf67c6 100644 --- a/target/linux/ramips/dts/mt7628an_vocore_vocore2.dtsi +++ b/target/linux/ramips/dts/mt7628an_vocore_vocore2.dtsi @@ -16,8 +16,8 @@ &state_default { gpio { - ralink,group = "wled_an", "refclk", "wdt"; - ralink,function = "gpio"; + groups = "wled_an", "refclk", "wdt"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts index a38907400c..e1e9479c81 100644 --- a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts +++ b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts @@ -17,7 +17,7 @@ reset { label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -27,41 +27,41 @@ power { label = "wl-wn570ha1:green:power"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + gpios = <&gpio 37 GPIO_ACTIVE_LOW>; default-state = "keep"; }; wan { label = "wl-wn570ha1:green:wan"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; wifi-high { label = "wl-wn570ha1:green:wifi-high"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wifi-med { label = "wl-wn570ha1:green:wifi-med"; - gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; + gpios = <&gpio 5 GPIO_ACTIVE_LOW>; }; wifi-low { label = "wl-wn570ha1:green:wifi-low"; - gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; + gpios = <&gpio 4 GPIO_ACTIVE_LOW>; }; wifi { label = "wl-wn570ha1:green:wifi"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; }; &state_default { gpio { - ralink,group = "i2c", "wled_an", "p0led_an", "wdt", "refclk"; - ralink,function = "gpio"; + groups = "i2c", "wled_an", "p0led_an", "wdt", "refclk"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts index 330ae58074..bee13a9683 100644 --- a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts +++ b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts @@ -17,13 +17,13 @@ reset { label = "reset"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 43 GPIO_ACTIVE_LOW>; linux,code = ; }; wps { label = "wps"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -33,30 +33,30 @@ wifi-high { label = "wl-wn575a3:green:wifi-high"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; wifi-med { label = "wl-wn575a3:green:wifi-med"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wifi-low { label = "wl-wn575a3:green:wifi-low"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; wps { label = "wl-wn575a3:green:wps"; - gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; + gpios = <&gpio 4 GPIO_ACTIVE_LOW>; }; }; }; &state_default { gpio { - ralink,group = "i2c", "wled_an", "gpio", "refclk", "wdt", "p0led_an"; - ralink,function = "gpio"; + groups = "i2c", "wled_an", "gpio", "refclk", "wdt", "p0led_an"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_widora_neo.dtsi b/target/linux/ramips/dts/mt7628an_widora_neo.dtsi index f89342eb8f..252ffd71f5 100644 --- a/target/linux/ramips/dts/mt7628an_widora_neo.dtsi +++ b/target/linux/ramips/dts/mt7628an_widora_neo.dtsi @@ -32,7 +32,7 @@ wps { label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -48,43 +48,43 @@ &state_default { gpio { - ralink,group = "gpio"; - ralink,function = "gpio"; + groups = "gpio"; + function = "gpio"; }; perst { - ralink,group = "perst"; - ralink,function = "gpio"; + groups = "perst"; + function = "gpio"; }; refclk { - ralink,group = "refclk"; - ralink,function = "gpio"; + groups = "refclk"; + function = "gpio"; }; i2s { - ralink,group = "i2s"; - ralink,function = "gpio"; + groups = "i2s"; + function = "gpio"; }; spis { - ralink,group = "spis"; - ralink,function = "gpio"; + groups = "spis"; + function = "gpio"; }; wled_kn { - ralink,group = "wled_kn"; - ralink,function = "gpio"; + groups = "wled_kn"; + function = "gpio"; }; wled_an { - ralink,group = "wled_an"; - ralink,function = "wled_an"; + groups = "wled_an"; + function = "wled_an"; }; wdt { - ralink,group = "wdt"; - ralink,function = "gpio"; + groups = "wdt"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts b/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts index c3a37fad47..0aeff750e9 100644 --- a/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts +++ b/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts @@ -28,22 +28,22 @@ led_run: run { label = "wizfi630s:green:run"; - gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; + gpios = <&gpio 4 GPIO_ACTIVE_LOW>; }; ledwps { label = "wizfi630s:green:wps"; - gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; leduart1 { label = "wizfi630s:green:uart1"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + gpios = <&gpio 0 GPIO_ACTIVE_LOW>; }; leduart2 { label = "wizfi630s:green:uart2"; - gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; + gpios = <&gpio 3 GPIO_ACTIVE_LOW>; }; }; @@ -55,25 +55,25 @@ reset { label = "reset"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 11 GPIO_ACTIVE_LOW>; linux,code = ; }; wps { label = "wps"; - gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>; + gpios = <&gpio 32 GPIO_ACTIVE_HIGH>; linux,code = ; }; scm1 { label = "SCM1"; - gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; + gpios = <&gpio 5 GPIO_ACTIVE_LOW>; linux,code = ; }; scm2 { label = "SCM2"; - gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; + gpios = <&gpio 2 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -81,28 +81,28 @@ &state_default { gpio { - ralink,group = "gpio"; - ralink,function = "gpio"; + groups = "gpio"; + function = "gpio"; }; i2s { - ralink,group = "i2s"; - ralink,function = "gpio"; + groups = "i2s"; + function = "gpio"; }; wdt { - ralink,group = "wdt"; - ralink,function = "gpio"; + groups = "wdt"; + function = "gpio"; }; i2c { - ralink,group = "i2c"; - ralink,function = "gpio"; + groups = "i2c"; + function = "gpio"; }; refclk { - ralink,group = "refclk"; - ralink,function = "gpio"; + groups = "refclk"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi index 89b37f6b37..882a8838dd 100644 --- a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi +++ b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi @@ -15,7 +15,7 @@ reset { label = "reset"; - gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; + gpios = <&gpio 5 GPIO_ACTIVE_LOW>; linux,code = ; }; }; diff --git a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2p.dts b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2p.dts index 6ac44ec8ea..f2fec2815b 100644 --- a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2p.dts +++ b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2p.dts @@ -18,14 +18,14 @@ led_indicator: indicator { label = "wrtnode:blue:indicator"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; }; }; &state_default { gpio { - ralink,group = "i2c", "gpio"; - ralink,function = "gpio"; + groups = "i2c", "gpio"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2r.dts b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2r.dts index afd0c93595..a111a67560 100644 --- a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2r.dts +++ b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2r.dts @@ -21,23 +21,23 @@ led_indicator: indicator { label = "wrtnode:blue:indicator"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; }; &state_default { gpio { - ralink,group = "gpio"; - ralink,function = "gpio"; + groups = "gpio"; + function = "gpio"; }; }; &pinctrl { led_pins: led { gpio { - ralink,group = "wled_an"; - ralink,function = "gpio"; + groups = "wled_an"; + function = "gpio"; }; }; }; diff --git a/target/linux/ramips/dts/mt7628an_xiaomi_mir4a-100m.dts b/target/linux/ramips/dts/mt7628an_xiaomi_mir4a-100m.dts index fcbacf6db8..377f71186c 100644 --- a/target/linux/ramips/dts/mt7628an_xiaomi_mir4a-100m.dts +++ b/target/linux/ramips/dts/mt7628an_xiaomi_mir4a-100m.dts @@ -26,12 +26,12 @@ power_blue: power_blue { label = "mir4a-100m:blue:power"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; power_yellow: power_yellow { label = "mir4a-100m:yellow:power"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; @@ -40,7 +40,7 @@ reset { label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -119,8 +119,8 @@ &state_default { gpio { - ralink,group = "gpio", "wdt", "wled_an"; - ralink,function = "gpio"; + groups = "gpio", "wdt", "wled_an"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts b/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts index e502f273af..398d16817f 100644 --- a/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts +++ b/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts @@ -26,17 +26,17 @@ led_status_blue: status_blue { label = "miwifi-nano:blue:status"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; led_status_red: status_red { label = "miwifi-nano:red:status"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; led_status_amber: status_amber { label = "miwifi-nano:amber:status"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; @@ -45,7 +45,7 @@ reset { label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -53,8 +53,8 @@ &state_default { gpio { - ralink,group = "gpio", "refclk", "wdt", "wled_an"; - ralink,function = "gpio"; + groups = "gpio", "refclk", "wdt", "wled_an"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_zbtlink_zbt-we1226.dts b/target/linux/ramips/dts/mt7628an_zbtlink_zbt-we1226.dts index fb620eae3e..d674d6e9c1 100644 --- a/target/linux/ramips/dts/mt7628an_zbtlink_zbt-we1226.dts +++ b/target/linux/ramips/dts/mt7628an_zbtlink_zbt-we1226.dts @@ -24,7 +24,7 @@ reset { label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -34,30 +34,30 @@ wan { label = "zbt-we1226:green:wan"; - gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; + gpios = <&gpio 39 GPIO_ACTIVE_LOW>; }; lan1 { label = "zbt-we1226:green:lan1"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; lan2 { label = "zbt-we1226:green:lan2"; - gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; led_wlan: wlan { label = "zbt-we1226:green:wlan"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; }; &state_default { gpio { - ralink,group = "p0led_an", "p1led_an", "p4led_an", "wdt", "wled_an"; - ralink,function = "gpio"; + groups = "p0led_an", "p1led_an", "p4led_an", "wdt", "wled_an"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/mt7628an_zyxel_keenetic-extra-ii.dts b/target/linux/ramips/dts/mt7628an_zyxel_keenetic-extra-ii.dts index 0fd8c56d03..e31209f391 100644 --- a/target/linux/ramips/dts/mt7628an_zyxel_keenetic-extra-ii.dts +++ b/target/linux/ramips/dts/mt7628an_zyxel_keenetic-extra-ii.dts @@ -25,19 +25,19 @@ reset { label = "reset"; - gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; + gpios = <&gpio 2 GPIO_ACTIVE_LOW>; linux,code = ; }; wps { label = "wps"; - gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; + gpios = <&gpio 46 GPIO_ACTIVE_LOW>; linux,code = ; }; fn { label = "fn"; - gpios = <&gpio1 13 GPIO_ACTIVE_LOW>; + gpios = <&gpio 45 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -47,23 +47,23 @@ led_power: power { label = "keenetic-extra-ii:green:power"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio 11 GPIO_ACTIVE_LOW>; default-state = "keep"; }; internet { label = "keenetic-extra-ii:green:internet"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; wifi { label = "keenetic-extra-ii:green:wifi"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; usb { label = "keenetic-extra-ii:green:usb"; - gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; + gpios = <&gpio 1 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; @@ -76,7 +76,7 @@ usbpower { gpio-export,name = "usbpower"; gpio-export,output = <1>; - gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>; + gpios = <&gpio 6 GPIO_ACTIVE_HIGH>; }; }; }; @@ -203,7 +203,7 @@ &state_default { gpio { - ralink,group = "gpio", "i2s", "refclk", "spi cs1", "uart1", "wled_an"; - ralink,function = "gpio"; + groups = "gpio", "i2s", "refclk", "spi cs1", "uart1", "wled_an"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt2880.dtsi b/target/linux/ramips/dts/rt2880.dtsi index 762fe49e7c..321c1b14cf 100644 --- a/target/linux/ramips/dts/rt2880.dtsi +++ b/target/linux/ramips/dts/rt2880.dtsi @@ -80,7 +80,7 @@ #gpio-cells = <2>; ralink,gpio-base = <0>; - ralink,nr-gpio = <24>; + ralink,num-gpios = <24>; ralink,register-map = [ 00 04 08 0c 20 24 28 2c 30 34 ]; @@ -94,7 +94,7 @@ #gpio-cells = <2>; ralink,gpio-base = <24>; - ralink,nr-gpio = <16>; + ralink,num-gpios = <16>; ralink,register-map = [ 00 04 08 0c 10 14 18 1c 20 24 ]; @@ -110,7 +110,7 @@ #gpio-cells = <2>; ralink,gpio-base = <40>; - ralink,nr-gpio = <32>; + ralink,num-gpios = <32>; ralink,register-map = [ 00 04 08 0c 10 14 18 1c 20 24 ]; @@ -153,29 +153,29 @@ state_default: pinctrl0 { sdram { - ralink,group = "sdram"; - ralink,function = "sdram"; + groups = "sdram"; + function = "sdram"; }; }; i2c_pins: i2c_pins { i2c_pins { - ralink,group = "i2c"; - ralink,function = "i2c"; + groups = "i2c"; + function = "i2c"; }; }; spi_pins: spi_pins { spi_pins { - ralink,group = "spi"; - ralink,function = "spi"; + groups = "spi"; + function = "spi"; }; }; uartlite_pins: uartlite { uart { - ralink,group = "uartlite"; - ralink,function = "uartlite"; + groups = "uartlite"; + function = "uartlite"; }; }; }; diff --git a/target/linux/ramips/dts/rt2880_airlink101_ar670w.dts b/target/linux/ramips/dts/rt2880_airlink101_ar670w.dts index 8a472626bd..90196849ca 100644 --- a/target/linux/ramips/dts/rt2880_airlink101_ar670w.dts +++ b/target/linux/ramips/dts/rt2880_airlink101_ar670w.dts @@ -84,8 +84,8 @@ &state_default { gpio { - ralink,group = "i2c", "spi", "uartlite"; - ralink,function = "gpio"; + groups = "i2c", "spi", "uartlite"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt2880_airlink101_ar725w.dts b/target/linux/ramips/dts/rt2880_airlink101_ar725w.dts index 3e6691287b..5890f9958a 100644 --- a/target/linux/ramips/dts/rt2880_airlink101_ar725w.dts +++ b/target/linux/ramips/dts/rt2880_airlink101_ar725w.dts @@ -94,8 +94,8 @@ &state_default { gpio { - ralink,group = "i2c", "spi", "uartlite"; - ralink,function = "gpio"; + groups = "i2c", "spi", "uartlite"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt2880_asus_rt-n15.dts b/target/linux/ramips/dts/rt2880_asus_rt-n15.dts index 6830fc5bac..9bd080ea44 100644 --- a/target/linux/ramips/dts/rt2880_asus_rt-n15.dts +++ b/target/linux/ramips/dts/rt2880_asus_rt-n15.dts @@ -94,8 +94,8 @@ &state_default { gpio { - ralink,group = "i2c", "uartlite", "mdio"; - ralink,function = "gpio"; + groups = "i2c", "uartlite", "mdio"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt2880_belkin_f5d8235-v1.dts b/target/linux/ramips/dts/rt2880_belkin_f5d8235-v1.dts index 2f0475b33c..3d3a0e84e9 100644 --- a/target/linux/ramips/dts/rt2880_belkin_f5d8235-v1.dts +++ b/target/linux/ramips/dts/rt2880_belkin_f5d8235-v1.dts @@ -195,8 +195,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "mdio", "uartlite"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "mdio", "uartlite"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt2880_buffalo_wzr-agl300nh.dts b/target/linux/ramips/dts/rt2880_buffalo_wzr-agl300nh.dts index ff7660723a..9a8e052e12 100644 --- a/target/linux/ramips/dts/rt2880_buffalo_wzr-agl300nh.dts +++ b/target/linux/ramips/dts/rt2880_buffalo_wzr-agl300nh.dts @@ -115,8 +115,8 @@ &state_default { gpio { - ralink,group = "i2c", "uartlite", "mdio"; - ralink,function = "gpio"; + groups = "i2c", "uartlite", "mdio"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt2880_dlink_dap-1522-a1.dts b/target/linux/ramips/dts/rt2880_dlink_dap-1522-a1.dts index cf5a3cf2c8..ed44f10f93 100644 --- a/target/linux/ramips/dts/rt2880_dlink_dap-1522-a1.dts +++ b/target/linux/ramips/dts/rt2880_dlink_dap-1522-a1.dts @@ -119,8 +119,8 @@ &state_default { gpio { - ralink,group = "i2c", "uartlite", "pci"; - ralink,function = "gpio"; + groups = "i2c", "uartlite", "pci"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050.dtsi b/target/linux/ramips/dts/rt3050.dtsi index 84ddb061e6..c9cc9c432a 100644 --- a/target/linux/ramips/dts/rt3050.dtsi +++ b/target/linux/ramips/dts/rt3050.dtsi @@ -109,7 +109,7 @@ #gpio-cells = <2>; ralink,gpio-base = <0>; - ralink,nr-gpio = <24>; + ralink,num-gpios = <24>; ralink,register-map = [ 00 04 08 0c 20 24 28 2c 30 34 ]; @@ -129,7 +129,7 @@ #gpio-cells = <2>; ralink,gpio-base = <24>; - ralink,nr-gpio = <16>; + ralink,num-gpios = <16>; ralink,register-map = [ 00 04 08 0c 10 14 18 1c 20 24 ]; @@ -145,7 +145,7 @@ #gpio-cells = <2>; ralink,gpio-base = <40>; - ralink,nr-gpio = <12>; + ralink,num-gpios = <12>; ralink,register-map = [ 00 04 08 0c 10 14 18 1c 20 24 ]; @@ -245,36 +245,36 @@ state_default: pinctrl0 { sdram { - ralink,group = "sdram"; - ralink,function = "sdram"; + groups = "sdram"; + function = "sdram"; }; }; i2c_pins: i2c_pins { i2c_pins { - ralink,group = "i2c"; - ralink,function = "i2c"; + groups = "i2c"; + function = "i2c"; }; }; spi_pins: spi_pins { spi_pins { - ralink,group = "spi"; - ralink,function = "spi"; + groups = "spi"; + function = "spi"; }; }; rgmii_pins: rgmii { rgmii { - ralink,group = "rgmii"; - ralink,function = "rgmii"; + groups = "rgmii"; + function = "rgmii"; }; }; uartlite_pins: uartlite { uart { - ralink,group = "uartlite"; - ralink,function = "uartlite"; + groups = "uartlite"; + function = "uartlite"; }; }; }; diff --git a/target/linux/ramips/dts/rt3050_8devices_carambola.dts b/target/linux/ramips/dts/rt3050_8devices_carambola.dts index aa9cf5927f..69eea2c7b7 100644 --- a/target/linux/ramips/dts/rt3050_8devices_carambola.dts +++ b/target/linux/ramips/dts/rt3050_8devices_carambola.dts @@ -59,8 +59,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_allnet_all0256n.dtsi b/target/linux/ramips/dts/rt3050_allnet_all0256n.dtsi index 32fbe68f10..0f07e25685 100644 --- a/target/linux/ramips/dts/rt3050_allnet_all0256n.dtsi +++ b/target/linux/ramips/dts/rt3050_allnet_all0256n.dtsi @@ -43,8 +43,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_alphanetworks_asl26555.dtsi b/target/linux/ramips/dts/rt3050_alphanetworks_asl26555.dtsi index 1172c74831..be57cd8e57 100644 --- a/target/linux/ramips/dts/rt3050_alphanetworks_asl26555.dtsi +++ b/target/linux/ramips/dts/rt3050_alphanetworks_asl26555.dtsi @@ -83,8 +83,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_arcwireless_freestation5.dts b/target/linux/ramips/dts/rt3050_arcwireless_freestation5.dts index 0289e11104..9909fab0ae 100644 --- a/target/linux/ramips/dts/rt3050_arcwireless_freestation5.dts +++ b/target/linux/ramips/dts/rt3050_arcwireless_freestation5.dts @@ -90,8 +90,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_asus_rt-g32-b1.dts b/target/linux/ramips/dts/rt3050_asus_rt-g32-b1.dts index a4b1c98015..3603f163b8 100644 --- a/target/linux/ramips/dts/rt3050_asus_rt-g32-b1.dts +++ b/target/linux/ramips/dts/rt3050_asus_rt-g32-b1.dts @@ -69,8 +69,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_asus_wl-330n.dts b/target/linux/ramips/dts/rt3050_asus_wl-330n.dts index 3a34449166..36d80086dc 100644 --- a/target/linux/ramips/dts/rt3050_asus_wl-330n.dts +++ b/target/linux/ramips/dts/rt3050_asus_wl-330n.dts @@ -90,8 +90,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_asus_wl-330n3g.dts b/target/linux/ramips/dts/rt3050_asus_wl-330n3g.dts index 23f8457fd5..76de3063c4 100644 --- a/target/linux/ramips/dts/rt3050_asus_wl-330n3g.dts +++ b/target/linux/ramips/dts/rt3050_asus_wl-330n3g.dts @@ -95,8 +95,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_dlink_dcs-930.dts b/target/linux/ramips/dts/rt3050_dlink_dcs-930.dts index 679173c799..bfcdab6e08 100644 --- a/target/linux/ramips/dts/rt3050_dlink_dcs-930.dts +++ b/target/linux/ramips/dts/rt3050_dlink_dcs-930.dts @@ -92,8 +92,8 @@ &state_default { gpio { - ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_dlink_dir-300-b1.dts b/target/linux/ramips/dts/rt3050_dlink_dir-300-b1.dts index 945182e693..46988d2e9a 100644 --- a/target/linux/ramips/dts/rt3050_dlink_dir-300-b1.dts +++ b/target/linux/ramips/dts/rt3050_dlink_dir-300-b1.dts @@ -102,8 +102,8 @@ &state_default { gpio { - ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_dlink_dir-600-b1.dts b/target/linux/ramips/dts/rt3050_dlink_dir-600-b1.dts index 864f864517..7eabafc01c 100644 --- a/target/linux/ramips/dts/rt3050_dlink_dir-600-b1.dts +++ b/target/linux/ramips/dts/rt3050_dlink_dir-600-b1.dts @@ -102,8 +102,8 @@ &state_default { gpio { - ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_dlink_dir-615-d.dts b/target/linux/ramips/dts/rt3050_dlink_dir-615-d.dts index a9d0dc985c..2137aa2f88 100644 --- a/target/linux/ramips/dts/rt3050_dlink_dir-615-d.dts +++ b/target/linux/ramips/dts/rt3050_dlink_dir-615-d.dts @@ -112,7 +112,7 @@ &state_default { gpio { - ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_dlink_dir-620-a1.dts b/target/linux/ramips/dts/rt3050_dlink_dir-620-a1.dts index a0f3659128..48561835dc 100644 --- a/target/linux/ramips/dts/rt3050_dlink_dir-620-a1.dts +++ b/target/linux/ramips/dts/rt3050_dlink_dir-620-a1.dts @@ -107,8 +107,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_edimax_3g-6200n.dts b/target/linux/ramips/dts/rt3050_edimax_3g-6200n.dts index edd95a756a..d963aba25e 100644 --- a/target/linux/ramips/dts/rt3050_edimax_3g-6200n.dts +++ b/target/linux/ramips/dts/rt3050_edimax_3g-6200n.dts @@ -100,8 +100,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts b/target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts index 31d311f72e..11912d79c5 100644 --- a/target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts +++ b/target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts @@ -87,8 +87,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_huawei_d105.dts b/target/linux/ramips/dts/rt3050_huawei_d105.dts index ca30791d8d..1f5fbc9379 100644 --- a/target/linux/ramips/dts/rt3050_huawei_d105.dts +++ b/target/linux/ramips/dts/rt3050_huawei_d105.dts @@ -83,8 +83,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_jcg_jhr-n805r.dts b/target/linux/ramips/dts/rt3050_jcg_jhr-n805r.dts index 8709a21abf..9916efdb7c 100644 --- a/target/linux/ramips/dts/rt3050_jcg_jhr-n805r.dts +++ b/target/linux/ramips/dts/rt3050_jcg_jhr-n805r.dts @@ -39,8 +39,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_netcore_nw718.dts b/target/linux/ramips/dts/rt3050_netcore_nw718.dts index fe13d9ac9b..e17d5a8fcd 100644 --- a/target/linux/ramips/dts/rt3050_netcore_nw718.dts +++ b/target/linux/ramips/dts/rt3050_netcore_nw718.dts @@ -97,8 +97,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_sparklan_wcr-150gn.dts b/target/linux/ramips/dts/rt3050_sparklan_wcr-150gn.dts index 66abb4853f..b6308290e1 100644 --- a/target/linux/ramips/dts/rt3050_sparklan_wcr-150gn.dts +++ b/target/linux/ramips/dts/rt3050_sparklan_wcr-150gn.dts @@ -89,8 +89,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts b/target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts index 9532d922f9..280246cf9a 100644 --- a/target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts +++ b/target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts @@ -79,8 +79,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_tenda_w150m.dts b/target/linux/ramips/dts/rt3050_tenda_w150m.dts index 6e2ea916ed..9c28c2999d 100644 --- a/target/linux/ramips/dts/rt3050_tenda_w150m.dts +++ b/target/linux/ramips/dts/rt3050_tenda_w150m.dts @@ -107,8 +107,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3050_trendnet_tew-638apb-v2.dts b/target/linux/ramips/dts/rt3050_trendnet_tew-638apb-v2.dts index 66a6372065..a7c5f8342f 100644 --- a/target/linux/ramips/dts/rt3050_trendnet_tew-638apb-v2.dts +++ b/target/linux/ramips/dts/rt3050_trendnet_tew-638apb-v2.dts @@ -87,8 +87,8 @@ &state_default { gpio { - ralink,group = "uartf"; - ralink,function = "gpio"; + groups = "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_accton_wr6202.dts b/target/linux/ramips/dts/rt3052_accton_wr6202.dts index bc7a79c977..fa5f740e17 100644 --- a/target/linux/ramips/dts/rt3052_accton_wr6202.dts +++ b/target/linux/ramips/dts/rt3052_accton_wr6202.dts @@ -95,8 +95,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_alfa-network_w502u.dts b/target/linux/ramips/dts/rt3052_alfa-network_w502u.dts index 489b85338d..cbe04e321f 100644 --- a/target/linux/ramips/dts/rt3052_alfa-network_w502u.dts +++ b/target/linux/ramips/dts/rt3052_alfa-network_w502u.dts @@ -93,8 +93,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_argus_atp-52b.dts b/target/linux/ramips/dts/rt3052_argus_atp-52b.dts index 3170f88d90..6d466cd57d 100644 --- a/target/linux/ramips/dts/rt3052_argus_atp-52b.dts +++ b/target/linux/ramips/dts/rt3052_argus_atp-52b.dts @@ -85,8 +85,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_asiarf_awapn2403.dts b/target/linux/ramips/dts/rt3052_asiarf_awapn2403.dts index f3a21fadaa..23418ec5fc 100644 --- a/target/linux/ramips/dts/rt3052_asiarf_awapn2403.dts +++ b/target/linux/ramips/dts/rt3052_asiarf_awapn2403.dts @@ -79,8 +79,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_asus_rt-n13u.dts b/target/linux/ramips/dts/rt3052_asus_rt-n13u.dts index 20e287b1cc..7382980887 100644 --- a/target/linux/ramips/dts/rt3052_asus_rt-n13u.dts +++ b/target/linux/ramips/dts/rt3052_asus_rt-n13u.dts @@ -87,8 +87,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_aximcom_mr-102n.dts b/target/linux/ramips/dts/rt3052_aximcom_mr-102n.dts index cbb8b7b947..b364c3a865 100644 --- a/target/linux/ramips/dts/rt3052_aximcom_mr-102n.dts +++ b/target/linux/ramips/dts/rt3052_aximcom_mr-102n.dts @@ -104,8 +104,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_aztech_hw550-3g.dts b/target/linux/ramips/dts/rt3052_aztech_hw550-3g.dts index 8eb02f14c2..4541f99464 100644 --- a/target/linux/ramips/dts/rt3052_aztech_hw550-3g.dts +++ b/target/linux/ramips/dts/rt3052_aztech_hw550-3g.dts @@ -105,8 +105,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_belkin_f5d8235-v2.dts b/target/linux/ramips/dts/rt3052_belkin_f5d8235-v2.dts index af2a5bc9b5..b14a4fe5c1 100644 --- a/target/linux/ramips/dts/rt3052_belkin_f5d8235-v2.dts +++ b/target/linux/ramips/dts/rt3052_belkin_f5d8235-v2.dts @@ -111,8 +111,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_buffalo_whr-g300n.dts b/target/linux/ramips/dts/rt3052_buffalo_whr-g300n.dts index 90e7ee81c0..9e3d2d4d84 100644 --- a/target/linux/ramips/dts/rt3052_buffalo_whr-g300n.dts +++ b/target/linux/ramips/dts/rt3052_buffalo_whr-g300n.dts @@ -109,8 +109,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_dlink_dap-1350.dts b/target/linux/ramips/dts/rt3052_dlink_dap-1350.dts index 60ef24db25..a506b792ef 100644 --- a/target/linux/ramips/dts/rt3052_dlink_dap-1350.dts +++ b/target/linux/ramips/dts/rt3052_dlink_dap-1350.dts @@ -114,8 +114,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_engenius_esr-9753.dts b/target/linux/ramips/dts/rt3052_engenius_esr-9753.dts index 82ab9db6f7..99ce63ba5a 100644 --- a/target/linux/ramips/dts/rt3052_engenius_esr-9753.dts +++ b/target/linux/ramips/dts/rt3052_engenius_esr-9753.dts @@ -87,8 +87,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_fon_fonera-20n.dts b/target/linux/ramips/dts/rt3052_fon_fonera-20n.dts index 8ff73bdc58..37ae9438f7 100644 --- a/target/linux/ramips/dts/rt3052_fon_fonera-20n.dts +++ b/target/linux/ramips/dts/rt3052_fon_fonera-20n.dts @@ -95,8 +95,8 @@ &state_default { gpio { - ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_hauppauge_broadway.dts b/target/linux/ramips/dts/rt3052_hauppauge_broadway.dts index 0d94db8553..b954cdfa61 100644 --- a/target/linux/ramips/dts/rt3052_hauppauge_broadway.dts +++ b/target/linux/ramips/dts/rt3052_hauppauge_broadway.dts @@ -76,8 +76,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_huawei_hg255d.dts b/target/linux/ramips/dts/rt3052_huawei_hg255d.dts index 24eb32005e..ac60f2b7d2 100644 --- a/target/linux/ramips/dts/rt3052_huawei_hg255d.dts +++ b/target/linux/ramips/dts/rt3052_huawei_hg255d.dts @@ -121,8 +121,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_jcg_jhr-n825r.dts b/target/linux/ramips/dts/rt3052_jcg_jhr-n825r.dts index 936de03913..15eceec661 100644 --- a/target/linux/ramips/dts/rt3052_jcg_jhr-n825r.dts +++ b/target/linux/ramips/dts/rt3052_jcg_jhr-n825r.dts @@ -74,8 +74,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_jcg_jhr-n926r.dts b/target/linux/ramips/dts/rt3052_jcg_jhr-n926r.dts index 93ed7029d0..9a23ee63da 100644 --- a/target/linux/ramips/dts/rt3052_jcg_jhr-n926r.dts +++ b/target/linux/ramips/dts/rt3052_jcg_jhr-n926r.dts @@ -120,8 +120,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_mofinetwork_mofi3500-3gn.dts b/target/linux/ramips/dts/rt3052_mofinetwork_mofi3500-3gn.dts index 7f11bb57fd..7468441ae2 100644 --- a/target/linux/ramips/dts/rt3052_mofinetwork_mofi3500-3gn.dts +++ b/target/linux/ramips/dts/rt3052_mofinetwork_mofi3500-3gn.dts @@ -105,8 +105,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_netgear_wnce2001.dts b/target/linux/ramips/dts/rt3052_netgear_wnce2001.dts index 3954ce4e77..60f637f3c4 100644 --- a/target/linux/ramips/dts/rt3052_netgear_wnce2001.dts +++ b/target/linux/ramips/dts/rt3052_netgear_wnce2001.dts @@ -133,8 +133,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_nexaira_bc2.dts b/target/linux/ramips/dts/rt3052_nexaira_bc2.dts index 80fbfce07c..05f20cb863 100644 --- a/target/linux/ramips/dts/rt3052_nexaira_bc2.dts +++ b/target/linux/ramips/dts/rt3052_nexaira_bc2.dts @@ -71,8 +71,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_omnima_miniembwifi.dts b/target/linux/ramips/dts/rt3052_omnima_miniembwifi.dts index ac0e65be6d..0c2f46d885 100644 --- a/target/linux/ramips/dts/rt3052_omnima_miniembwifi.dts +++ b/target/linux/ramips/dts/rt3052_omnima_miniembwifi.dts @@ -81,8 +81,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_petatel_psr-680w.dts b/target/linux/ramips/dts/rt3052_petatel_psr-680w.dts index f57522571c..8f0a3567ce 100644 --- a/target/linux/ramips/dts/rt3052_petatel_psr-680w.dts +++ b/target/linux/ramips/dts/rt3052_petatel_psr-680w.dts @@ -80,8 +80,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_planex_mzk-w300nh2.dts b/target/linux/ramips/dts/rt3052_planex_mzk-w300nh2.dts index e21926ce1d..b3f00da2f6 100644 --- a/target/linux/ramips/dts/rt3052_planex_mzk-w300nh2.dts +++ b/target/linux/ramips/dts/rt3052_planex_mzk-w300nh2.dts @@ -104,8 +104,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_planex_mzk-wdpr.dts b/target/linux/ramips/dts/rt3052_planex_mzk-wdpr.dts index 00b479b7b6..83854b3e6c 100644 --- a/target/linux/ramips/dts/rt3052_planex_mzk-wdpr.dts +++ b/target/linux/ramips/dts/rt3052_planex_mzk-wdpr.dts @@ -69,8 +69,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_poray_ip2202.dts b/target/linux/ramips/dts/rt3052_poray_ip2202.dts index a754136198..c7126bc05f 100644 --- a/target/linux/ramips/dts/rt3052_poray_ip2202.dts +++ b/target/linux/ramips/dts/rt3052_poray_ip2202.dts @@ -81,8 +81,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_prolink_pwh2004.dts b/target/linux/ramips/dts/rt3052_prolink_pwh2004.dts index 7a8a85b5dd..24a8346bc8 100644 --- a/target/linux/ramips/dts/rt3052_prolink_pwh2004.dts +++ b/target/linux/ramips/dts/rt3052_prolink_pwh2004.dts @@ -81,8 +81,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_ralink_v22rw-2x2.dts b/target/linux/ramips/dts/rt3052_ralink_v22rw-2x2.dts index 6816305e27..17dee2d153 100644 --- a/target/linux/ramips/dts/rt3052_ralink_v22rw-2x2.dts +++ b/target/linux/ramips/dts/rt3052_ralink_v22rw-2x2.dts @@ -87,8 +87,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_sitecom_wl-351.dts b/target/linux/ramips/dts/rt3052_sitecom_wl-351.dts index 2b92f6bf12..c8a1b125ec 100644 --- a/target/linux/ramips/dts/rt3052_sitecom_wl-351.dts +++ b/target/linux/ramips/dts/rt3052_sitecom_wl-351.dts @@ -98,8 +98,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_skyline_sl-r7205.dts b/target/linux/ramips/dts/rt3052_skyline_sl-r7205.dts index 664bced348..e158cbee3c 100644 --- a/target/linux/ramips/dts/rt3052_skyline_sl-r7205.dts +++ b/target/linux/ramips/dts/rt3052_skyline_sl-r7205.dts @@ -82,8 +82,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_tenda_3g300m.dts b/target/linux/ramips/dts/rt3052_tenda_3g300m.dts index 8189297494..97b2be0885 100644 --- a/target/linux/ramips/dts/rt3052_tenda_3g300m.dts +++ b/target/linux/ramips/dts/rt3052_tenda_3g300m.dts @@ -112,8 +112,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_tenda_w306r-v2.dts b/target/linux/ramips/dts/rt3052_tenda_w306r-v2.dts index a25d2c56b9..54fd6d785e 100644 --- a/target/linux/ramips/dts/rt3052_tenda_w306r-v2.dts +++ b/target/linux/ramips/dts/rt3052_tenda_w306r-v2.dts @@ -81,8 +81,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_unbranded_wr512-3gn.dtsi b/target/linux/ramips/dts/rt3052_unbranded_wr512-3gn.dtsi index 2718946396..4994d65e1a 100644 --- a/target/linux/ramips/dts/rt3052_unbranded_wr512-3gn.dtsi +++ b/target/linux/ramips/dts/rt3052_unbranded_wr512-3gn.dtsi @@ -62,8 +62,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_unbranded_xdx-rn502j.dts b/target/linux/ramips/dts/rt3052_unbranded_xdx-rn502j.dts index d8739d7586..352459ab2a 100644 --- a/target/linux/ramips/dts/rt3052_unbranded_xdx-rn502j.dts +++ b/target/linux/ramips/dts/rt3052_unbranded_xdx-rn502j.dts @@ -81,8 +81,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_upvel_ur-326n4g.dts b/target/linux/ramips/dts/rt3052_upvel_ur-326n4g.dts index 489772940b..df447134c1 100644 --- a/target/linux/ramips/dts/rt3052_upvel_ur-326n4g.dts +++ b/target/linux/ramips/dts/rt3052_upvel_ur-326n4g.dts @@ -102,8 +102,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_upvel_ur-336un.dts b/target/linux/ramips/dts/rt3052_upvel_ur-336un.dts index 823913cfdb..042193fb57 100644 --- a/target/linux/ramips/dts/rt3052_upvel_ur-336un.dts +++ b/target/linux/ramips/dts/rt3052_upvel_ur-336un.dts @@ -102,8 +102,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_zyxel_keenetic.dts b/target/linux/ramips/dts/rt3052_zyxel_keenetic.dts index 436743cff3..b4e01b05d3 100644 --- a/target/linux/ramips/dts/rt3052_zyxel_keenetic.dts +++ b/target/linux/ramips/dts/rt3052_zyxel_keenetic.dts @@ -101,8 +101,8 @@ &state_default { gpio { - ralink,group = "uartf"; - ralink,function = "gpio"; + groups = "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3052_zyxel_nbg-419n.dts b/target/linux/ramips/dts/rt3052_zyxel_nbg-419n.dts index 608f21ddfc..9fd3b3eb32 100644 --- a/target/linux/ramips/dts/rt3052_zyxel_nbg-419n.dts +++ b/target/linux/ramips/dts/rt3052_zyxel_nbg-419n.dts @@ -87,8 +87,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3352.dtsi b/target/linux/ramips/dts/rt3352.dtsi index 548a6bb84a..7b7ef13e4b 100644 --- a/target/linux/ramips/dts/rt3352.dtsi +++ b/target/linux/ramips/dts/rt3352.dtsi @@ -107,7 +107,7 @@ #gpio-cells = <2>; ralink,gpio-base = <0>; - ralink,nr-gpio = <24>; + ralink,num-gpios = <24>; ralink,register-map = [ 00 04 08 0c 20 24 28 2c 30 34 ]; @@ -126,7 +126,7 @@ #gpio-cells = <2>; ralink,gpio-base = <24>; - ralink,nr-gpio = <16>; + ralink,num-gpios = <16>; ralink,register-map = [ 00 04 08 0c 10 14 18 1c 20 24 ]; @@ -142,7 +142,7 @@ #gpio-cells = <2>; ralink,gpio-base = <40>; - ralink,nr-gpio = <6>; + ralink,num-gpios = <6>; ralink,register-map = [ 00 04 08 0c 10 14 18 1c 20 24 ]; @@ -261,43 +261,43 @@ i2c_pins: i2c_pins { i2c_pins { - ralink,group = "i2c"; - ralink,function = "i2c"; + groups = "i2c"; + function = "i2c"; }; }; mdio_pins: mdio { mdio { - ralink,group = "mdio"; - ralink,function = "mdio"; + groups = "mdio"; + function = "mdio"; }; }; rgmii_pins: rgmii { rgmii { - ralink,group = "rgmii"; - ralink,function = "rgmii"; + groups = "rgmii"; + function = "rgmii"; }; }; spi_pins: spi_pins { spi_pins { - ralink,group = "spi"; - ralink,function = "spi"; + groups = "spi"; + function = "spi"; }; }; spi_cs1: spi1 { spi1 { - ralink,group = "spi_cs1"; - ralink,function = "spi_cs1"; + groups = "spi_cs1"; + function = "spi_cs1"; }; }; uartlite_pins: uartlite { uart { - ralink,group = "uartlite"; - ralink,function = "uartlite"; + groups = "uartlite"; + function = "uartlite"; }; }; }; diff --git a/target/linux/ramips/dts/rt3352_allnet_all5002.dts b/target/linux/ramips/dts/rt3352_allnet_all5002.dts index ea5386c5e4..8f66a7ea4d 100644 --- a/target/linux/ramips/dts/rt3352_allnet_all5002.dts +++ b/target/linux/ramips/dts/rt3352_allnet_all5002.dts @@ -91,8 +91,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3352_dlink_dir-615-h1.dts b/target/linux/ramips/dts/rt3352_dlink_dir-615-h1.dts index 72145b4e44..fa82246f31 100644 --- a/target/linux/ramips/dts/rt3352_dlink_dir-615-h1.dts +++ b/target/linux/ramips/dts/rt3352_dlink_dir-615-h1.dts @@ -107,8 +107,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3352_dlink_dir-620-d1.dts b/target/linux/ramips/dts/rt3352_dlink_dir-620-d1.dts index c85f72d019..e52a838b1f 100644 --- a/target/linux/ramips/dts/rt3352_dlink_dir-620-d1.dts +++ b/target/linux/ramips/dts/rt3352_dlink_dir-620-d1.dts @@ -84,8 +84,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3352_zyxel_nbg-419n-v2.dts b/target/linux/ramips/dts/rt3352_zyxel_nbg-419n-v2.dts index fde9b8198d..d70ddb2d4a 100644 --- a/target/linux/ramips/dts/rt3352_zyxel_nbg-419n-v2.dts +++ b/target/linux/ramips/dts/rt3352_zyxel_nbg-419n-v2.dts @@ -102,8 +102,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "rgmii", "mdio", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3662_asus_rt-n56u.dts b/target/linux/ramips/dts/rt3662_asus_rt-n56u.dts index 4f9bc9843a..ed3ac792c4 100644 --- a/target/linux/ramips/dts/rt3662_asus_rt-n56u.dts +++ b/target/linux/ramips/dts/rt3662_asus_rt-n56u.dts @@ -107,8 +107,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3662_dlink_dir-645.dts b/target/linux/ramips/dts/rt3662_dlink_dir-645.dts index 235bcf8793..5973e0e175 100644 --- a/target/linux/ramips/dts/rt3662_dlink_dir-645.dts +++ b/target/linux/ramips/dts/rt3662_dlink_dir-645.dts @@ -123,8 +123,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts b/target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts index 233a7d37cc..9f8298b0b3 100644 --- a/target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts +++ b/target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts @@ -123,8 +123,8 @@ &state_default { gpio { - ralink,group = "spi", "jtag", "uartf"; - ralink,function = "gpio"; + groups = "spi", "jtag", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3662_omnima_hpm.dts b/target/linux/ramips/dts/rt3662_omnima_hpm.dts index 7ac16cbf99..ee36547798 100644 --- a/target/linux/ramips/dts/rt3662_omnima_hpm.dts +++ b/target/linux/ramips/dts/rt3662_omnima_hpm.dts @@ -128,8 +128,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3662_samsung_cy-swr1100.dts b/target/linux/ramips/dts/rt3662_samsung_cy-swr1100.dts index aaa0985bf8..9b1c41cde0 100644 --- a/target/linux/ramips/dts/rt3662_samsung_cy-swr1100.dts +++ b/target/linux/ramips/dts/rt3662_samsung_cy-swr1100.dts @@ -115,8 +115,8 @@ &state_default { gpio { - ralink,group = "i2c", "spi"; - ralink,function = "gpio"; + groups = "i2c", "spi"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3883.dtsi b/target/linux/ramips/dts/rt3883.dtsi index fffac16911..35a1128bfc 100644 --- a/target/linux/ramips/dts/rt3883.dtsi +++ b/target/linux/ramips/dts/rt3883.dtsi @@ -116,7 +116,7 @@ #gpio-cells = <2>; ralink,gpio-base = <0>; - ralink,nr-gpio = <24>; + ralink,num-gpios = <24>; ralink,register-map = [ 00 04 08 0c 20 24 28 2c 30 34 ]; @@ -130,7 +130,7 @@ #gpio-cells = <2>; ralink,gpio-base = <24>; - ralink,nr-gpio = <16>; + ralink,num-gpios = <16>; ralink,register-map = [ 00 04 08 0c 10 14 18 1c 20 24 ]; @@ -146,7 +146,7 @@ #gpio-cells = <2>; ralink,gpio-base = <40>; - ralink,nr-gpio = <32>; + ralink,num-gpios = <32>; ralink,register-map = [ 00 04 08 0c 10 14 18 1c 20 24 ]; @@ -162,7 +162,7 @@ #gpio-cells = <2>; ralink,gpio-base = <72>; - ralink,nr-gpio = <24>; + ralink,num-gpios = <24>; ralink,register-map = [ 00 04 08 0c 10 14 18 1c 20 24 ]; @@ -281,36 +281,36 @@ i2c_pins: i2c_pins { i2c_pins { - ralink,group = "i2c"; - ralink,function = "i2c"; + groups = "i2c"; + function = "i2c"; }; }; spi_pins: spi_pins { spi_pins { - ralink,group = "spi"; - ralink,function = "spi"; + groups = "spi"; + function = "spi"; }; }; spi_cs1: spi1 { spi1 { - ralink,group = "pci"; - ralink,function = "pci-func"; + groups = "pci"; + function = "pci-func"; }; }; uartlite_pins: uartlite { uart { - ralink,group = "uartlite"; - ralink,function = "uartlite"; + groups = "uartlite"; + function = "uartlite"; }; }; pci_pins: pci { pci { - ralink,group = "pci"; - ralink,function = "pci-fnc"; + groups = "pci"; + function = "pci-fnc"; }; }; }; diff --git a/target/linux/ramips/dts/rt3883_belkin_f9k110x.dtsi b/target/linux/ramips/dts/rt3883_belkin_f9k110x.dtsi index 47e24c66d0..f1c9a1d52f 100644 --- a/target/linux/ramips/dts/rt3883_belkin_f9k110x.dtsi +++ b/target/linux/ramips/dts/rt3883_belkin_f9k110x.dtsi @@ -75,8 +75,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3883_sitecom_wlr-6000.dts b/target/linux/ramips/dts/rt3883_sitecom_wlr-6000.dts index b41bb74214..e43562d684 100644 --- a/target/linux/ramips/dts/rt3883_sitecom_wlr-6000.dts +++ b/target/linux/ramips/dts/rt3883_sitecom_wlr-6000.dts @@ -59,8 +59,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts b/target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts index 6830f736fa..118b3bb5b9 100644 --- a/target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts +++ b/target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts @@ -91,8 +91,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt3883_trendnet_tew-692gr.dts b/target/linux/ramips/dts/rt3883_trendnet_tew-692gr.dts index 6d234796d8..2c750eb1d7 100644 --- a/target/linux/ramips/dts/rt3883_trendnet_tew-692gr.dts +++ b/target/linux/ramips/dts/rt3883_trendnet_tew-692gr.dts @@ -90,8 +90,8 @@ &state_default { gpio { - ralink,group = "spi", "i2c", "jtag", "uartf"; - ralink,function = "gpio"; + groups = "spi", "i2c", "jtag", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350.dtsi b/target/linux/ramips/dts/rt5350.dtsi index 89a3903118..9be841f8cb 100644 --- a/target/linux/ramips/dts/rt5350.dtsi +++ b/target/linux/ramips/dts/rt5350.dtsi @@ -116,7 +116,7 @@ #gpio-cells = <2>; ralink,gpio-base = <0>; - ralink,nr-gpio = <22>; + ralink,num-gpios = <22>; ralink,register-map = [ 00 04 08 0c 20 24 28 2c 30 34 ]; @@ -133,7 +133,7 @@ #gpio-cells = <2>; ralink,gpio-base = <22>; - ralink,nr-gpio = <6>; + ralink,num-gpios = <6>; ralink,register-map = [ 00 04 08 0c 10 14 18 1c 20 24 ]; @@ -275,43 +275,43 @@ i2c_pins: i2c_pins { i2c_pins { - ralink,group = "i2c"; - ralink,function = "i2c"; + groups = "i2c"; + function = "i2c"; }; }; spi_pins: spi_pins { spi_pins { - ralink,group = "spi"; - ralink,function = "spi"; + groups = "spi"; + function = "spi"; }; }; phy_led_pins: phy_led { phy_led { - ralink,group = "led"; - ralink,function = "led"; + groups = "led"; + function = "led"; }; }; uartlite_pins: uartlite { uart { - ralink,group = "uartlite"; - ralink,function = "uartlite"; + groups = "uartlite"; + function = "uartlite"; }; }; uartf_pins: uartf { uartf { - ralink,group = "uartf"; - ralink,function = "uartf"; + groups = "uartf"; + function = "uartf"; }; }; spi_cs1: spi1 { spi1 { - ralink,group = "spi_cs1"; - ralink,function = "spi_cs1"; + groups = "spi_cs1"; + function = "spi_cs1"; }; }; }; diff --git a/target/linux/ramips/dts/rt5350_7links_px-4885.dtsi b/target/linux/ramips/dts/rt5350_7links_px-4885.dtsi index 6ce6c3f4ab..d9e1cb5397 100644 --- a/target/linux/ramips/dts/rt5350_7links_px-4885.dtsi +++ b/target/linux/ramips/dts/rt5350_7links_px-4885.dtsi @@ -43,8 +43,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_airlive_air3gii.dts b/target/linux/ramips/dts/rt5350_airlive_air3gii.dts index 50d08a8fec..f7be825d12 100644 --- a/target/linux/ramips/dts/rt5350_airlive_air3gii.dts +++ b/target/linux/ramips/dts/rt5350_airlive_air3gii.dts @@ -83,8 +83,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_allnet_all5003.dts b/target/linux/ramips/dts/rt5350_allnet_all5003.dts index 0571b89fb9..a5500c5c20 100644 --- a/target/linux/ramips/dts/rt5350_allnet_all5003.dts +++ b/target/linux/ramips/dts/rt5350_allnet_all5003.dts @@ -91,8 +91,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_asiarf_awm002-evb.dtsi b/target/linux/ramips/dts/rt5350_asiarf_awm002-evb.dtsi index 974a902e2d..7dafd0548a 100644 --- a/target/linux/ramips/dts/rt5350_asiarf_awm002-evb.dtsi +++ b/target/linux/ramips/dts/rt5350_asiarf_awm002-evb.dtsi @@ -53,8 +53,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag"; - ralink,function = "gpio"; + groups = "i2c", "jtag"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_belkin_f7c027.dts b/target/linux/ramips/dts/rt5350_belkin_f7c027.dts index 0869b43158..a89cbad80b 100644 --- a/target/linux/ramips/dts/rt5350_belkin_f7c027.dts +++ b/target/linux/ramips/dts/rt5350_belkin_f7c027.dts @@ -135,7 +135,7 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_dlink_dcs-930l-b1.dts b/target/linux/ramips/dts/rt5350_dlink_dcs-930l-b1.dts index c08a76d554..c52e75cab5 100644 --- a/target/linux/ramips/dts/rt5350_dlink_dcs-930l-b1.dts +++ b/target/linux/ramips/dts/rt5350_dlink_dcs-930l-b1.dts @@ -90,8 +90,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "uartf", "led"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "uartf", "led"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_dlink_dir-300-b7.dts b/target/linux/ramips/dts/rt5350_dlink_dir-300-b7.dts index b5e966cfdd..4fd2755d90 100644 --- a/target/linux/ramips/dts/rt5350_dlink_dir-300-b7.dts +++ b/target/linux/ramips/dts/rt5350_dlink_dir-300-b7.dts @@ -90,8 +90,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_dlink_dir-320-b1.dts b/target/linux/ramips/dts/rt5350_dlink_dir-320-b1.dts index c1eb2a8d1e..9556287760 100644 --- a/target/linux/ramips/dts/rt5350_dlink_dir-320-b1.dts +++ b/target/linux/ramips/dts/rt5350_dlink_dir-320-b1.dts @@ -112,8 +112,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_dlink_dir-610-a1.dts b/target/linux/ramips/dts/rt5350_dlink_dir-610-a1.dts index e791c9a5f2..d7dffd6c0c 100644 --- a/target/linux/ramips/dts/rt5350_dlink_dir-610-a1.dts +++ b/target/linux/ramips/dts/rt5350_dlink_dir-610-a1.dts @@ -90,8 +90,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_dlink_dwr-512-b.dts b/target/linux/ramips/dts/rt5350_dlink_dwr-512-b.dts index c5ccfd0c97..e467c82688 100644 --- a/target/linux/ramips/dts/rt5350_dlink_dwr-512-b.dts +++ b/target/linux/ramips/dts/rt5350_dlink_dwr-512-b.dts @@ -127,8 +127,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_easyacc_wizard-8800.dts b/target/linux/ramips/dts/rt5350_easyacc_wizard-8800.dts index c3e76cb132..c3016bcda3 100644 --- a/target/linux/ramips/dts/rt5350_easyacc_wizard-8800.dts +++ b/target/linux/ramips/dts/rt5350_easyacc_wizard-8800.dts @@ -57,8 +57,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_hame_mpr-a1.dts b/target/linux/ramips/dts/rt5350_hame_mpr-a1.dts index 88aec94711..043cdf4826 100644 --- a/target/linux/ramips/dts/rt5350_hame_mpr-a1.dts +++ b/target/linux/ramips/dts/rt5350_hame_mpr-a1.dts @@ -105,8 +105,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "uartf", "led"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "uartf", "led"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_hame_mpr-a2.dts b/target/linux/ramips/dts/rt5350_hame_mpr-a2.dts index c55fa68920..bcb828ac1c 100644 --- a/target/linux/ramips/dts/rt5350_hame_mpr-a2.dts +++ b/target/linux/ramips/dts/rt5350_hame_mpr-a2.dts @@ -101,8 +101,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_hilink_hlk-rm04.dts b/target/linux/ramips/dts/rt5350_hilink_hlk-rm04.dts index c6eda2e272..95d47e401b 100644 --- a/target/linux/ramips/dts/rt5350_hilink_hlk-rm04.dts +++ b/target/linux/ramips/dts/rt5350_hilink_hlk-rm04.dts @@ -94,13 +94,13 @@ &state_default { gpio { - ralink,group = "i2c", "jtag"; - ralink,function = "gpio"; + groups = "i2c", "jtag"; + function = "gpio"; }; uartf_gpio { - ralink,group = "uartf"; - ralink,function = "gpio uartf"; + groups = "uartf"; + function = "gpio uartf"; }; }; diff --git a/target/linux/ramips/dts/rt5350_hootoo_ht-tm02.dts b/target/linux/ramips/dts/rt5350_hootoo_ht-tm02.dts index 7f71e3fa3f..2c80536d94 100644 --- a/target/linux/ramips/dts/rt5350_hootoo_ht-tm02.dts +++ b/target/linux/ramips/dts/rt5350_hootoo_ht-tm02.dts @@ -95,8 +95,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_intenso_memory2move.dts b/target/linux/ramips/dts/rt5350_intenso_memory2move.dts index 57a9bec410..14794b510b 100644 --- a/target/linux/ramips/dts/rt5350_intenso_memory2move.dts +++ b/target/linux/ramips/dts/rt5350_intenso_memory2move.dts @@ -94,8 +94,8 @@ &state_default { gpio { - ralink,group = "i2c", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_nexx_wt1520.dtsi b/target/linux/ramips/dts/rt5350_nexx_wt1520.dtsi index 10b51d7c5f..ef445603cc 100644 --- a/target/linux/ramips/dts/rt5350_nexx_wt1520.dtsi +++ b/target/linux/ramips/dts/rt5350_nexx_wt1520.dtsi @@ -20,8 +20,8 @@ &state_default { gpio { - ralink,group = "jtag", "uartf"; - ralink,function = "gpio"; + groups = "jtag", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_nixcore_x1.dtsi b/target/linux/ramips/dts/rt5350_nixcore_x1.dtsi index 17f1497bfc..a0768587a4 100644 --- a/target/linux/ramips/dts/rt5350_nixcore_x1.dtsi +++ b/target/linux/ramips/dts/rt5350_nixcore_x1.dtsi @@ -127,8 +127,8 @@ &state_default { gpio { - ralink,group = "jtag", "led", "spi_cs1"; - ralink,function = "gpio"; + groups = "jtag", "led", "spi_cs1"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino.dtsi b/target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino.dtsi index 8665c7dd73..0a49e22de2 100644 --- a/target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino.dtsi +++ b/target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino.dtsi @@ -55,12 +55,12 @@ &state_default { gpio { - ralink,group = "jtag"; - ralink,function = "gpio"; + groups = "jtag"; + function = "gpio"; }; uartf_gpio { - ralink,group = "uartf"; - ralink,function = "gpio uartf"; + groups = "uartf"; + function = "gpio uartf"; }; }; diff --git a/target/linux/ramips/dts/rt5350_omnima_miniembplug.dts b/target/linux/ramips/dts/rt5350_omnima_miniembplug.dts index 4e7b6e267b..3e635d9082 100644 --- a/target/linux/ramips/dts/rt5350_omnima_miniembplug.dts +++ b/target/linux/ramips/dts/rt5350_omnima_miniembplug.dts @@ -57,8 +57,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_planex_mzk-dp150n.dts b/target/linux/ramips/dts/rt5350_planex_mzk-dp150n.dts index bddf7adb5f..bc92859880 100644 --- a/target/linux/ramips/dts/rt5350_planex_mzk-dp150n.dts +++ b/target/linux/ramips/dts/rt5350_planex_mzk-dp150n.dts @@ -91,8 +91,8 @@ &state_default { gpio { - ralink,group = "jtag", "uartf", "led"; - ralink,function = "gpio"; + groups = "jtag", "uartf", "led"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_poray_m3.dts b/target/linux/ramips/dts/rt5350_poray_m3.dts index 294cf3367f..6f23cd160d 100644 --- a/target/linux/ramips/dts/rt5350_poray_m3.dts +++ b/target/linux/ramips/dts/rt5350_poray_m3.dts @@ -86,8 +86,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_poray_m4.dtsi b/target/linux/ramips/dts/rt5350_poray_m4.dtsi index db39c77050..f6fb9011b3 100644 --- a/target/linux/ramips/dts/rt5350_poray_m4.dtsi +++ b/target/linux/ramips/dts/rt5350_poray_m4.dtsi @@ -36,8 +36,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_poray_x5.dts b/target/linux/ramips/dts/rt5350_poray_x5.dts index 4a65acc5c6..419d57487c 100644 --- a/target/linux/ramips/dts/rt5350_poray_x5.dts +++ b/target/linux/ramips/dts/rt5350_poray_x5.dts @@ -118,8 +118,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_poray_x8.dts b/target/linux/ramips/dts/rt5350_poray_x8.dts index b02056379b..db48a03407 100644 --- a/target/linux/ramips/dts/rt5350_poray_x8.dts +++ b/target/linux/ramips/dts/rt5350_poray_x8.dts @@ -79,8 +79,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_tenda_3g150b.dts b/target/linux/ramips/dts/rt5350_tenda_3g150b.dts index ece2db036c..06b632bc5b 100644 --- a/target/linux/ramips/dts/rt5350_tenda_3g150b.dts +++ b/target/linux/ramips/dts/rt5350_tenda_3g150b.dts @@ -101,8 +101,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "uartf", "led"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "uartf", "led"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_trendnet_tew-714tru.dts b/target/linux/ramips/dts/rt5350_trendnet_tew-714tru.dts index b485e1cefa..108d1f0389 100644 --- a/target/linux/ramips/dts/rt5350_trendnet_tew-714tru.dts +++ b/target/linux/ramips/dts/rt5350_trendnet_tew-714tru.dts @@ -100,8 +100,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_unbranded_a5-v11.dts b/target/linux/ramips/dts/rt5350_unbranded_a5-v11.dts index 8a3485971d..73cd4274f6 100644 --- a/target/linux/ramips/dts/rt5350_unbranded_a5-v11.dts +++ b/target/linux/ramips/dts/rt5350_unbranded_a5-v11.dts @@ -106,8 +106,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "uartf", "led"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "uartf", "led"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_vocore_vocore.dtsi b/target/linux/ramips/dts/rt5350_vocore_vocore.dtsi index f5642744d8..76ed58e8f6 100644 --- a/target/linux/ramips/dts/rt5350_vocore_vocore.dtsi +++ b/target/linux/ramips/dts/rt5350_vocore_vocore.dtsi @@ -166,8 +166,8 @@ &state_default { gpio { - ralink,group = "jtag", "uartf", "led"; - ralink,function = "gpio"; + groups = "jtag", "uartf", "led"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_wansview_ncs601w.dts b/target/linux/ramips/dts/rt5350_wansview_ncs601w.dts index 4d1093d832..7fb1fb93da 100644 --- a/target/linux/ramips/dts/rt5350_wansview_ncs601w.dts +++ b/target/linux/ramips/dts/rt5350_wansview_ncs601w.dts @@ -49,8 +49,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_wiznet_wizfi630a.dts b/target/linux/ramips/dts/rt5350_wiznet_wizfi630a.dts index ce747994d3..ceab5394e5 100644 --- a/target/linux/ramips/dts/rt5350_wiznet_wizfi630a.dts +++ b/target/linux/ramips/dts/rt5350_wiznet_wizfi630a.dts @@ -130,8 +130,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag" ; - ralink,function = "gpio"; + groups = "i2c", "jtag" ; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_zorlik_zl5900v2.dts b/target/linux/ramips/dts/rt5350_zorlik_zl5900v2.dts index 56e3f0854d..0dbdc6ea6d 100644 --- a/target/linux/ramips/dts/rt5350_zorlik_zl5900v2.dts +++ b/target/linux/ramips/dts/rt5350_zorlik_zl5900v2.dts @@ -84,8 +84,8 @@ &state_default { gpio { - ralink,group = "jtag", "uartf"; - ralink,function = "gpio"; + groups = "jtag", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/dts/rt5350_zyxel_keenetic-start.dts b/target/linux/ramips/dts/rt5350_zyxel_keenetic-start.dts index f96ad9092a..c50a08d98a 100644 --- a/target/linux/ramips/dts/rt5350_zyxel_keenetic-start.dts +++ b/target/linux/ramips/dts/rt5350_zyxel_keenetic-start.dts @@ -92,8 +92,8 @@ &state_default { gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "jtag", "uartf"; + function = "gpio"; }; }; diff --git a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/Kconfig b/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/Kconfig deleted file mode 100644 index 822806fd85..0000000000 --- a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/Kconfig +++ /dev/null @@ -1,70 +0,0 @@ -config NET_VENDOR_MEDIATEK - tristate "Mediatek/Ralink ethernet driver" - depends on RALINK - help - This driver supports the ethernet mac inside the Mediatek and Ralink WiSoCs - -config NET_MEDIATEK_SOC - def_tristate NET_VENDOR_MEDIATEK - -if NET_MEDIATEK_SOC -choice - prompt "MAC type" - -config NET_MEDIATEK_RT2880 - bool "RT2882" - depends on MIPS && SOC_RT288X - -config NET_MEDIATEK_RT3050 - bool "RT3050/MT7628" - depends on MIPS && (SOC_RT305X || SOC_MT7620) - -config NET_MEDIATEK_RT3883 - bool "RT3883" - depends on MIPS && SOC_RT3883 - -config NET_MEDIATEK_MT7620 - bool "MT7620" - depends on MIPS && SOC_MT7620 - -config NET_MEDIATEK_MT7621 - bool "MT7621" - depends on MIPS && SOC_MT7621 - -endchoice - -config NET_MEDIATEK_OFFLOAD - def_bool NET_MEDIATEK_SOC - depends on NET_MEDIATEK_MT7621 - -config NET_MEDIATEK_HW_QOS - def_bool NET_MEDIATEK_SOC - depends on NET_MEDIATEK_MT7623 - -config NET_MEDIATEK_MDIO - def_bool NET_MEDIATEK_SOC - depends on (NET_MEDIATEK_RT2880 || NET_MEDIATEK_RT3883 || NET_MEDIATEK_MT7620 || NET_MEDIATEK_MT7621) - select PHYLIB - -config NET_MEDIATEK_MDIO_RT2880 - def_bool NET_MEDIATEK_SOC - depends on (NET_MEDIATEK_RT2880 || NET_MEDIATEK_RT3883) - select NET_MEDIATEK_MDIO - -config NET_MEDIATEK_MDIO_MT7620 - def_bool NET_MEDIATEK_SOC - depends on (NET_MEDIATEK_MT7620 || NET_MEDIATEK_MT7621) - select NET_MEDIATEK_MDIO - -config NET_MEDIATEK_ESW_RT3050 - def_tristate NET_MEDIATEK_SOC - depends on NET_MEDIATEK_RT3050 - -config NET_MEDIATEK_GSW_MT7620 - def_tristate NET_MEDIATEK_SOC - depends on NET_MEDIATEK_MT7620 - -config NET_MEDIATEK_GSW_MT7621 - def_tristate NET_MEDIATEK_SOC - depends on NET_MEDIATEK_MT7621 -endif diff --git a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/Makefile b/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/Makefile deleted file mode 100644 index b038ae3699..0000000000 --- a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/Makefile +++ /dev/null @@ -1,22 +0,0 @@ -# -# Makefile for the Ralink SoCs built-in ethernet macs -# - -mtk-eth-soc-y += mtk_eth_soc.o ethtool.o - -mtk-eth-soc-$(CONFIG_NET_MEDIATEK_MDIO) += mdio.o -mtk-eth-soc-$(CONFIG_NET_MEDIATEK_MDIO_RT2880) += mdio_rt2880.o -mtk-eth-soc-$(CONFIG_NET_MEDIATEK_MDIO_MT7620) += mdio_mt7620.o - -mtk-eth-soc-$(CONFIG_NET_MEDIATEK_OFFLOAD) += mtk_offload.o mtk_debugfs.o - -mtk-eth-soc-$(CONFIG_NET_MEDIATEK_RT2880) += soc_rt2880.o -mtk-eth-soc-$(CONFIG_NET_MEDIATEK_RT3050) += soc_rt3050.o -mtk-eth-soc-$(CONFIG_NET_MEDIATEK_RT3883) += soc_rt3883.o -mtk-eth-soc-$(CONFIG_NET_MEDIATEK_MT7620) += soc_mt7620.o -mtk-eth-soc-$(CONFIG_NET_MEDIATEK_MT7621) += soc_mt7621.o - -obj-$(CONFIG_NET_MEDIATEK_ESW_RT3050) += esw_rt3050.o -obj-$(CONFIG_NET_MEDIATEK_GSW_MT7620) += gsw_mt7620.o mt7530.o -obj-$(CONFIG_NET_MEDIATEK_GSW_MT7621) += gsw_mt7621.o mt7530.o -obj-$(CONFIG_NET_MEDIATEK_SOC) += mtk-eth-soc.o diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/Kconfig b/target/linux/ramips/files/drivers/net/ethernet/ralink/Kconfig new file mode 100644 index 0000000000..51cace5333 --- /dev/null +++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/Kconfig @@ -0,0 +1,70 @@ +config NET_VENDOR_RALINK + tristate "Ralink ethernet driver" + depends on RALINK + help + This driver supports the ethernet mac inside Ralink WiSoCs + +config NET_RALINK_SOC + def_tristate NET_VENDOR_RALINK + +if NET_RALINK_SOC +choice + prompt "MAC type" + +config NET_RALINK_RT2880 + bool "RT2882" + depends on MIPS && SOC_RT288X + +config NET_RALINK_RT3050 + bool "RT3050/MT7628" + depends on MIPS && (SOC_RT305X || SOC_MT7620) + +config NET_RALINK_RT3883 + bool "RT3883" + depends on MIPS && SOC_RT3883 + +config NET_RALINK_MT7620 + bool "MT7620" + depends on MIPS && SOC_MT7620 + +config NET_RALINK_MT7621 + bool "MT7621" + depends on MIPS && SOC_MT7621 + +endchoice + +config NET_RALINK_OFFLOAD + def_bool NET_RALINK_SOC + depends on NET_RALINK_MT7621 + +config NET_RALINK_HW_QOS + def_bool NET_RALINK_SOC + depends on NET_RALINK_MT7623 + +config NET_RALINK_MDIO + def_bool NET_RALINK_SOC + depends on (NET_RALINK_RT2880 || NET_RALINK_RT3883 || NET_RALINK_MT7620 || NET_RALINK_MT7621) + select PHYLIB + +config NET_RALINK_MDIO_RT2880 + def_bool NET_RALINK_SOC + depends on (NET_RALINK_RT2880 || NET_RALINK_RT3883) + select NET_RALINK_MDIO + +config NET_RALINK_MDIO_MT7620 + def_bool NET_RALINK_SOC + depends on (NET_RALINK_MT7620 || NET_RALINK_MT7621) + select NET_RALINK_MDIO + +config NET_RALINK_ESW_RT3050 + def_tristate NET_RALINK_SOC + depends on NET_RALINK_RT3050 + +config NET_RALINK_GSW_MT7620 + def_tristate NET_RALINK_SOC + depends on NET_RALINK_MT7620 + +config NET_RALINK_GSW_MT7621 + def_tristate NET_RALINK_SOC + depends on NET_RALINK_MT7621 +endif diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/Makefile b/target/linux/ramips/files/drivers/net/ethernet/ralink/Makefile new file mode 100644 index 0000000000..eba21643b2 --- /dev/null +++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/Makefile @@ -0,0 +1,22 @@ +# +# Makefile for the Ralink SoCs built-in ethernet macs +# + +ralink-eth-y += mtk_eth_soc.o ethtool.o + +ralink-eth-$(CONFIG_NET_RALINK_MDIO) += mdio.o +ralink-eth-$(CONFIG_NET_RALINK_MDIO_RT2880) += mdio_rt2880.o +ralink-eth-$(CONFIG_NET_RALINK_MDIO_MT7620) += mdio_mt7620.o + +ralink-eth-$(CONFIG_NET_RALINK_OFFLOAD) += mtk_offload.o mtk_debugfs.o + +ralink-eth-$(CONFIG_NET_RALINK_RT2880) += soc_rt2880.o +ralink-eth-$(CONFIG_NET_RALINK_RT3050) += soc_rt3050.o +ralink-eth-$(CONFIG_NET_RALINK_RT3883) += soc_rt3883.o +ralink-eth-$(CONFIG_NET_RALINK_MT7620) += soc_mt7620.o +ralink-eth-$(CONFIG_NET_RALINK_MT7621) += soc_mt7621.o + +obj-$(CONFIG_NET_RALINK_ESW_RT3050) += esw_rt3050.o +obj-$(CONFIG_NET_RALINK_GSW_MT7620) += gsw_mt7620.o mt7530.o +obj-$(CONFIG_NET_RALINK_GSW_MT7621) += gsw_mt7621.o mt7530.o +obj-$(CONFIG_NET_RALINK_SOC) += ralink-eth.o diff --git a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/esw_rt3050.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3050.c similarity index 100% rename from target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/esw_rt3050.c rename to target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3050.c diff --git a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/esw_rt3050.h b/target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3050.h similarity index 95% rename from target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/esw_rt3050.h rename to target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3050.h index b757e5d639..bbc8fbd52a 100644 --- a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/esw_rt3050.h +++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3050.h @@ -15,7 +15,7 @@ #ifndef _RALINK_ESW_RT3052_H__ #define _RALINK_ESW_RT3052_H__ -#ifdef CONFIG_NET_MEDIATEK_ESW_RT3052 +#ifdef CONFIG_NET_RALINK_ESW_RT3052 int __init mtk_switch_init(void); void mtk_switch_exit(void); diff --git a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/ethtool.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/ethtool.c similarity index 100% rename from target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/ethtool.c rename to target/linux/ramips/files/drivers/net/ethernet/ralink/ethtool.c diff --git a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/ethtool.h b/target/linux/ramips/files/drivers/net/ethernet/ralink/ethtool.h similarity index 100% rename from target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/ethtool.h rename to target/linux/ramips/files/drivers/net/ethernet/ralink/ethtool.h diff --git a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/gsw_mt7620.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7620.c similarity index 100% rename from target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/gsw_mt7620.c rename to target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7620.c diff --git a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/gsw_mt7620.h b/target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7620.h similarity index 100% rename from target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/gsw_mt7620.h rename to target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7620.h diff --git a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/gsw_mt7621.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7621.c similarity index 100% rename from target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/gsw_mt7621.c rename to target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7621.c diff --git a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mdio.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/mdio.c similarity index 92% rename from target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mdio.c rename to target/linux/ramips/files/drivers/net/ethernet/ralink/mdio.c index ce27abf69c..74babc59a0 100644 --- a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mdio.c +++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/mdio.c @@ -88,8 +88,13 @@ int fe_connect_phy_node(struct fe_priv *priv, struct device_node *phy_node, int return -ENODEV; } +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 0) phydev->supported &= PHY_GBIT_FEATURES; phydev->advertising = phydev->supported; +#else + phy_set_max_speed(phydev, SPEED_1000); + linkmode_copy(phydev->advertising, phydev->supported); +#endif phydev->no_auto_carrier_off = 1; dev_info(priv->dev, @@ -110,9 +115,18 @@ static void phy_init(struct fe_priv *priv, struct phy_device *phy) phy->autoneg = AUTONEG_ENABLE; phy->speed = 0; phy->duplex = 0; - phy->supported &= IS_ENABLED(CONFIG_NET_MEDIATEK_MDIO_MT7620) ? + +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 0) + phy->supported &= IS_ENABLED(CONFIG_NET_RALINK_MDIO_MT7620) ? PHY_GBIT_FEATURES : PHY_BASIC_FEATURES; phy->advertising = phy->supported | ADVERTISED_Autoneg; +#else + phy_set_max_speed(phy, IS_ENABLED(CONFIG_NET_RALINK_MDIO_MT7620) ? + SPEED_1000 : + SPEED_100); + linkmode_copy(phy->advertising, phy->supported); + linkmode_set_bit(ETHTOOL_LINK_MODE_Autoneg_BIT, phy->advertising); +#endif phy_start_aneg(phy); } diff --git a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mdio.h b/target/linux/ramips/files/drivers/net/ethernet/ralink/mdio.h similarity index 96% rename from target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mdio.h rename to target/linux/ramips/files/drivers/net/ethernet/ralink/mdio.h index 78364e33a1..d4a2a40473 100644 --- a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mdio.h +++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/mdio.h @@ -15,7 +15,7 @@ #ifndef _RALINK_MDIO_H__ #define _RALINK_MDIO_H__ -#ifdef CONFIG_NET_MEDIATEK_MDIO +#ifdef CONFIG_NET_RALINK_MDIO int fe_mdio_init(struct fe_priv *priv); void fe_mdio_cleanup(struct fe_priv *priv); int fe_connect_phy_node(struct fe_priv *priv, diff --git a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mdio_mt7620.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/mdio_mt7620.c similarity index 100% rename from target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mdio_mt7620.c rename to target/linux/ramips/files/drivers/net/ethernet/ralink/mdio_mt7620.c diff --git a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mdio_rt2880.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/mdio_rt2880.c similarity index 100% rename from target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mdio_rt2880.c rename to target/linux/ramips/files/drivers/net/ethernet/ralink/mdio_rt2880.c diff --git a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mdio_rt2880.h b/target/linux/ramips/files/drivers/net/ethernet/ralink/mdio_rt2880.h similarity index 100% rename from target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mdio_rt2880.h rename to target/linux/ramips/files/drivers/net/ethernet/ralink/mdio_rt2880.h diff --git a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mt7530.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/mt7530.c similarity index 100% rename from target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mt7530.c rename to target/linux/ramips/files/drivers/net/ethernet/ralink/mt7530.c diff --git a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mt7530.h b/target/linux/ramips/files/drivers/net/ethernet/ralink/mt7530.h similarity index 100% rename from target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mt7530.h rename to target/linux/ramips/files/drivers/net/ethernet/ralink/mt7530.h diff --git a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_debugfs.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_debugfs.c similarity index 100% rename from target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_debugfs.c rename to target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_debugfs.c diff --git a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c similarity index 97% rename from target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_eth_soc.c rename to target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c index 00e84bbcfb..7191a7a382 100644 --- a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_eth_soc.c +++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c @@ -230,7 +230,7 @@ static void fe_clean_rx(struct fe_priv *priv) for (i = 0; i < ring->rx_ring_size; i++) if (ring->rx_data[i]) { if (ring->rx_dma && ring->rx_dma[i].rxd1) - dma_unmap_single(&priv->netdev->dev, + dma_unmap_single(priv->dev, ring->rx_dma[i].rxd1, ring->rx_buf_size, DMA_FROM_DEVICE); @@ -242,7 +242,7 @@ static void fe_clean_rx(struct fe_priv *priv) } if (ring->rx_dma) { - dma_free_coherent(&priv->netdev->dev, + dma_free_coherent(priv->dev, ring->rx_ring_size * sizeof(*ring->rx_dma), ring->rx_dma, ring->rx_phys); @@ -259,7 +259,6 @@ static void fe_clean_rx(struct fe_priv *priv) static int fe_alloc_rx(struct fe_priv *priv) { - struct net_device *netdev = priv->netdev; struct fe_rx_ring *ring = &priv->rx_ring; int i, pad; @@ -276,7 +275,7 @@ static int fe_alloc_rx(struct fe_priv *priv) goto no_rx_mem; } - ring->rx_dma = dma_alloc_coherent(&netdev->dev, + ring->rx_dma = dma_alloc_coherent(priv->dev, ring->rx_ring_size * sizeof(*ring->rx_dma), &ring->rx_phys, GFP_ATOMIC | __GFP_ZERO); @@ -288,11 +287,11 @@ static int fe_alloc_rx(struct fe_priv *priv) else pad = NET_IP_ALIGN; for (i = 0; i < ring->rx_ring_size; i++) { - dma_addr_t dma_addr = dma_map_single(&netdev->dev, + dma_addr_t dma_addr = dma_map_single(priv->dev, ring->rx_data[i] + NET_SKB_PAD + pad, ring->rx_buf_size, DMA_FROM_DEVICE); - if (unlikely(dma_mapping_error(&netdev->dev, dma_addr))) + if (unlikely(dma_mapping_error(priv->dev, dma_addr))) goto no_rx_mem; ring->rx_dma[i].rxd1 = (unsigned int)dma_addr; @@ -342,7 +341,7 @@ static void fe_txd_unmap(struct device *dev, struct fe_tx_buf *tx_buf) static void fe_clean_tx(struct fe_priv *priv) { int i; - struct device *dev = &priv->netdev->dev; + struct device *dev = priv->dev; struct fe_tx_ring *ring = &priv->tx_ring; if (ring->tx_buf) { @@ -378,7 +377,7 @@ static int fe_alloc_tx(struct fe_priv *priv) if (!ring->tx_buf) goto no_tx_mem; - ring->tx_dma = dma_alloc_coherent(&priv->netdev->dev, + ring->tx_dma = dma_alloc_coherent(priv->dev, ring->tx_ring_size * sizeof(*ring->tx_dma), &ring->tx_phys, GFP_ATOMIC | __GFP_ZERO); @@ -664,7 +663,7 @@ static int fe_tx_map_dma(struct sk_buff *skb, struct net_device *dev, { struct fe_priv *priv = netdev_priv(dev); struct fe_map_state st = { - .dev = &dev->dev, + .dev = priv->dev, .ring_idx = ring->tx_next_idx, }; struct sk_buff *head = skb; @@ -716,11 +715,19 @@ next_frag: /* TX SG offload */ nr_frags = skb_shinfo(skb)->nr_frags; for (i = 0; i < nr_frags; i++) { +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 0) struct skb_frag_struct *frag; +#else + skb_frag_t *frag; +#endif frag = &skb_shinfo(skb)->frags[i]; if (fe_tx_dma_map_page(ring, &st, skb_frag_page(frag), +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 0) frag->page_offset, skb_frag_size(frag))) +#else + skb_frag_off(frag), skb_frag_size(frag))) +#endif goto err_dma; } @@ -755,7 +762,11 @@ next_frag: netif_wake_queue(dev); } +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 2, 0) if (netif_xmit_stopped(netdev_get_tx_queue(dev, 0)) || !head->xmit_more) +#else + if (netif_xmit_stopped(netdev_get_tx_queue(dev, 0)) || !netdev_xmit_more()) +#endif fe_reg_w32(ring->tx_next_idx, FE_REG_TX_CTX_IDX0); return 0; @@ -764,7 +775,7 @@ err_dma: j = ring->tx_next_idx; for (i = 0; i < tx_num; i++) { /* unmap dma */ - fe_txd_unmap(&dev->dev, &ring->tx_buf[j]); + fe_txd_unmap(priv->dev, &ring->tx_buf[j]); ring->tx_dma[j].txd2 = TX_DMA_DESP2_DEF; j = NEXT_TX_DESP_IDX(j); @@ -814,14 +825,22 @@ static inline int fe_cal_txd_req(struct sk_buff *skb) { struct sk_buff *head = skb; int i, nfrags = 0; +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 0) struct skb_frag_struct *frag; +#else + skb_frag_t *frag; +#endif next_frag: nfrags++; if (skb_is_gso(skb)) { for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) { frag = &skb_shinfo(skb)->frags[i]; +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 0) nfrags += DIV_ROUND_UP(frag->size, TX_DMA_BUF_LEN); +#else + nfrags += DIV_ROUND_UP(skb_frag_size(frag), TX_DMA_BUF_LEN); +#endif } } else { nfrags += skb_shinfo(skb)->nr_frags; @@ -908,11 +927,11 @@ static int fe_poll_rx(struct napi_struct *napi, int budget, stats->rx_dropped++; goto release_desc; } - dma_addr = dma_map_single(&netdev->dev, + dma_addr = dma_map_single(priv->dev, new_data + NET_SKB_PAD + pad, ring->rx_buf_size, DMA_FROM_DEVICE); - if (unlikely(dma_mapping_error(&netdev->dev, dma_addr))) { + if (unlikely(dma_mapping_error(priv->dev, dma_addr))) { skb_free_frag(new_data); goto release_desc; } @@ -925,7 +944,7 @@ static int fe_poll_rx(struct napi_struct *napi, int budget, } skb_reserve(skb, NET_SKB_PAD + NET_IP_ALIGN); - dma_unmap_single(&netdev->dev, trxd.rxd1, + dma_unmap_single(priv->dev, trxd.rxd1, ring->rx_buf_size, DMA_FROM_DEVICE); pktlen = RX_DMA_GET_PLEN0(trxd.rxd2); skb->dev = netdev; @@ -941,14 +960,14 @@ static int fe_poll_rx(struct napi_struct *napi, int budget, __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), RX_DMA_VID(trxd.rxd3)); -#ifdef CONFIG_NET_MEDIATEK_OFFLOAD +#ifdef CONFIG_NET_RALINK_OFFLOAD if (mtk_offload_check_rx(priv, skb, trxd.rxd4) == 0) { #endif stats->rx_packets++; stats->rx_bytes += pktlen; napi_gro_receive(napi, skb); -#ifdef CONFIG_NET_MEDIATEK_OFFLOAD +#ifdef CONFIG_NET_RALINK_OFFLOAD } else { dev_kfree_skb(skb); } @@ -981,7 +1000,6 @@ static int fe_poll_tx(struct fe_priv *priv, int budget, u32 tx_intr, int *tx_again) { struct net_device *netdev = priv->netdev; - struct device *dev = &netdev->dev; unsigned int bytes_compl = 0; struct sk_buff *skb; struct fe_tx_buf *tx_buf; @@ -1004,7 +1022,7 @@ static int fe_poll_tx(struct fe_priv *priv, int budget, u32 tx_intr, done++; budget--; } - fe_txd_unmap(dev, tx_buf); + fe_txd_unmap(priv->dev, tx_buf); idx = NEXT_TX_DESP_IDX(idx); } ring->tx_free_idx = idx; @@ -1290,7 +1308,7 @@ static int fe_open(struct net_device *dev) napi_enable(&priv->rx_napi); fe_int_enable(priv->soc->tx_int | priv->soc->rx_int); netif_start_queue(dev); -#ifdef CONFIG_NET_MEDIATEK_OFFLOAD +#ifdef CONFIG_NET_RALINK_OFFLOAD mtk_ppe_probe(priv); #endif @@ -1329,7 +1347,7 @@ static int fe_stop(struct net_device *dev) fe_free_dma(priv); -#ifdef CONFIG_NET_MEDIATEK_OFFLOAD +#ifdef CONFIG_NET_RALINK_OFFLOAD mtk_ppe_remove(priv); #endif @@ -1493,7 +1511,7 @@ static int fe_change_mtu(struct net_device *dev, int new_mtu) return fe_open(dev); } -#ifdef CONFIG_NET_MEDIATEK_OFFLOAD +#ifdef CONFIG_NET_RALINK_OFFLOAD static int fe_flow_offload(enum flow_offload_type type, struct flow_offload *flow, struct flow_offload_hw_path *src, @@ -1527,7 +1545,7 @@ static const struct net_device_ops fe_netdev_ops = { #ifdef CONFIG_NET_POLL_CONTROLLER .ndo_poll_controller = fe_poll_controller, #endif -#ifdef CONFIG_NET_MEDIATEK_OFFLOAD +#ifdef CONFIG_NET_RALINK_OFFLOAD .ndo_flow_offload = fe_flow_offload, #endif }; diff --git a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_eth_soc.h b/target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.h similarity index 100% rename from target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_eth_soc.h rename to target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.h diff --git a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_offload.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_offload.c similarity index 99% rename from target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_offload.c rename to target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_offload.c index 6c23bbc036..2fd424f6e3 100644 --- a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_offload.c +++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_offload.c @@ -60,7 +60,7 @@ mtk_foe_prepare_v4(struct mtk_foe_entry *entry, entry->ipv4_hnapt.iblk2.dscp = 0; entry->ipv4_hnapt.iblk2.port_mg = 0x3f; entry->ipv4_hnapt.iblk2.port_ag = 0x1f; -#ifdef CONFIG_NET_MEDIATEK_HW_QOS +#ifdef CONFIG_NET_RALINK_HW_QOS entry->ipv4_hnapt.iblk2.qid = 1; entry->ipv4_hnapt.iblk2.fqos = 1; #endif @@ -202,7 +202,7 @@ int mtk_flow_offload(struct mtk_eth *eth, return 0; } -#ifdef CONFIG_NET_MEDIATEK_HW_QOS +#ifdef CONFIG_NET_RALINK_HW_QOS #define QDMA_TX_SCH_TX 0x1a14 @@ -393,7 +393,7 @@ static int mtk_ppe_start(struct mtk_eth *eth) dev_info(eth->dev, "PPE started\n"); -#ifdef CONFIG_NET_MEDIATEK_HW_QOS +#ifdef CONFIG_NET_RALINK_HW_QOS mtk_ppe_scheduler(eth, 0, 500000); mtk_ppe_scheduler(eth, 1, 500000); mtk_ppe_queue(eth, 0, 0, 7, 32, 250000, 0); diff --git a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_offload.h b/target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_offload.h similarity index 100% rename from target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_offload.h rename to target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_offload.h diff --git a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/soc_mt7620.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_mt7620.c similarity index 100% rename from target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/soc_mt7620.c rename to target/linux/ramips/files/drivers/net/ethernet/ralink/soc_mt7620.c diff --git a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/soc_mt7621.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_mt7621.c similarity index 100% rename from target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/soc_mt7621.c rename to target/linux/ramips/files/drivers/net/ethernet/ralink/soc_mt7621.c diff --git a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/soc_rt2880.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt2880.c similarity index 100% rename from target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/soc_rt2880.c rename to target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt2880.c diff --git a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/soc_rt3050.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt3050.c similarity index 100% rename from target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/soc_rt3050.c rename to target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt3050.c diff --git a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/soc_rt3883.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt3883.c similarity index 100% rename from target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/soc_rt3883.c rename to target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt3883.c diff --git a/target/linux/ramips/image/mt7620.mk b/target/linux/ramips/image/mt7620.mk index d5365ac70e..818fd12de7 100644 --- a/target/linux/ramips/image/mt7620.mk +++ b/target/linux/ramips/image/mt7620.mk @@ -687,6 +687,7 @@ define Device/nexx_wt3020-4m DEVICE_MODEL := WT3020 DEVICE_VARIANT := 4M SUPPORTED_DEVICES += wt3020 wt3020-4M + DEFAULT := n endef TARGET_DEVICES += nexx_wt3020-4m @@ -975,6 +976,7 @@ define Device/vonets_var11n-300 BLOCKSIZE := 4k DEVICE_VENDOR := Vonets DEVICE_MODEL := VAR11N-300 + DEFAULT := n endef TARGET_DEVICES += vonets_var11n-300 diff --git a/target/linux/ramips/image/mt76x8.mk b/target/linux/ramips/image/mt76x8.mk index e2890c98e6..76fcab8787 100644 --- a/target/linux/ramips/image/mt76x8.mk +++ b/target/linux/ramips/image/mt76x8.mk @@ -405,6 +405,7 @@ define Device/tplink_tl-wr840n-v5 TPLINK_HWREVADD := 0x5 IMAGES := sysupgrade.bin SUPPORTED_DEVICES += tl-wr840n-v5 + DEFAULT := n endef TARGET_DEVICES += tplink_tl-wr840n-v5 @@ -433,6 +434,7 @@ define Device/tplink_tl-wr841n-v14 TPLINK_HWREVADD := 0x14 IMAGES := sysupgrade.bin tftp-recovery.bin IMAGE/tftp-recovery.bin := pad-extra 64k | $$(IMAGE/factory.bin) + DEFAULT := n endef TARGET_DEVICES += tplink_tl-wr841n-v14 diff --git a/target/linux/ramips/image/rt288x.mk b/target/linux/ramips/image/rt288x.mk index 720ff65741..79a61860b8 100644 --- a/target/linux/ramips/image/rt288x.mk +++ b/target/linux/ramips/image/rt288x.mk @@ -21,6 +21,7 @@ define Device/airlink101_ar670w IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \ wrg-header wrgn16a_airlink_ar670w SUPPORTED_DEVICES += ar670w + DEFAULT := n endef TARGET_DEVICES += airlink101_ar670w @@ -32,6 +33,7 @@ define Device/airlink101_ar725w IMAGE/factory.bin := $$(sysupgrade_bin) | check-size 3328k | \ gemtek-header ar725w SUPPORTED_DEVICES += ar725w + DEFAULT := n endef TARGET_DEVICES += airlink101_ar725w @@ -42,6 +44,7 @@ define Device/asus_rt-n15 DEVICE_MODEL := RT-N15 DEVICE_PACKAGES := kmod-switch-rtl8366s SUPPORTED_DEVICES += rt-n15 + DEFAULT := n endef TARGET_DEVICES += asus_rt-n15 @@ -63,6 +66,7 @@ define Device/buffalo_wli-tx4-ag300n DEVICE_MODEL := WLI-TX4-AG300N DEVICE_PACKAGES := kmod-switch-ip17xx SUPPORTED_DEVICES += wli-tx4-ag300n + DEFAULT := n endef TARGET_DEVICES += buffalo_wli-tx4-ag300n @@ -73,6 +77,7 @@ define Device/buffalo_wzr-agl300nh DEVICE_MODEL := WZR-AGL300NH DEVICE_PACKAGES := kmod-switch-rtl8366s SUPPORTED_DEVICES += wzr-agl300nh + DEFAULT := n endef TARGET_DEVICES += buffalo_wzr-agl300nh @@ -88,6 +93,7 @@ define Device/dlink_dap-1522-a1 IMAGE/factory.bin := append-kernel | pad-offset $$$$(BLOCKSIZE) 96 | \ append-rootfs | pad-rootfs -x 96 | wrg-header wapnd01_dlink_dap1522 | \ check-size + DEFAULT := n endef TARGET_DEVICES += dlink_dap-1522-a1 @@ -97,5 +103,6 @@ define Device/ralink_v11st-fe DEVICE_VENDOR := Ralink DEVICE_MODEL := V11ST-FE SUPPORTED_DEVICES += v11st-fe + DEFAULT := n endef TARGET_DEVICES += ralink_v11st-fe diff --git a/target/linux/ramips/image/rt305x.mk b/target/linux/ramips/image/rt305x.mk index 819e9ac7cf..1a9f17c710 100644 --- a/target/linux/ramips/image/rt305x.mk +++ b/target/linux/ramips/image/rt305x.mk @@ -30,6 +30,7 @@ define Device/7links_px-4885-4m DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb2 kmod-usb-ohci \ kmod-usb-ledtrig-usbport kmod-leds-gpio SUPPORTED_DEVICES += px-4885-4M + DEFAULT := n endef TARGET_DEVICES += 7links_px-4885-4m @@ -71,6 +72,7 @@ define Device/airlive_air3gii DEVICE_VENDOR := AirLive DEVICE_MODEL := Air3GII SUPPORTED_DEVICES += air3gii + DEFAULT := n endef TARGET_DEVICES += airlive_air3gii @@ -91,6 +93,7 @@ define Device/allnet_all0256n-4m DEVICE_VARIANT := 4M DEVICE_PACKAGES := rssileds SUPPORTED_DEVICES += all0256n-4M + DEFAULT := n endef TARGET_DEVICES += allnet_all0256n-4m @@ -175,6 +178,7 @@ define Device/asiarf_awapn2403 DEVICE_VENDOR := AsiaRF DEVICE_MODEL := AWAPN2403 SUPPORTED_DEVICES += awapn2403 + DEFAULT := n endef TARGET_DEVICES += asiarf_awapn2403 @@ -186,6 +190,7 @@ define Device/asiarf_awm002-evb-4m DEVICE_VARIANT := 4M DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-i2c-gpio SUPPORTED_DEVICES += awm002-evb-4M + DEFAULT := n endef TARGET_DEVICES += asiarf_awm002-evb-4m @@ -208,6 +213,7 @@ define Device/asus_rt-g32-b1 DEVICE_MODEL := RT-G32 DEVICE_VARIANT := B1 SUPPORTED_DEVICES += rt-g32-b1 + DEFAULT := n endef TARGET_DEVICES += asus_rt-g32-b1 @@ -218,6 +224,7 @@ define Device/asus_rt-n10-plus DEVICE_VENDOR := Asus DEVICE_MODEL := RT-N10+ SUPPORTED_DEVICES += rt-n10-plus + DEFAULT := n endef TARGET_DEVICES += asus_rt-n10-plus @@ -238,6 +245,7 @@ define Device/asus_wl-330n DEVICE_VENDOR := Asus DEVICE_MODEL := WL-330N SUPPORTED_DEVICES += wl-330n + DEFAULT := n endef TARGET_DEVICES += asus_wl-330n @@ -249,6 +257,7 @@ define Device/asus_wl-330n3g DEVICE_MODEL := WL-330N3G DEVICE_PACKAGES := SUPPORTED_DEVICES += wl-330n3g + DEFAULT := n endef TARGET_DEVICES += asus_wl-330n3g @@ -304,6 +313,7 @@ define Device/buffalo_whr-g300n IMAGE/tftp.bin := $$(sysupgrade_bin) | check-size | \ buffalo-tftp-header SUPPORTED_DEVICES += whr-g300n + DEFAULT := n endef TARGET_DEVICES += buffalo_whr-g300n @@ -329,6 +339,7 @@ define Device/dlink_dcs-930 DEVICE_PACKAGES := kmod-video-core kmod-video-uvc kmod-sound-core \ kmod-usb-audio kmod-usb-dwc2 SUPPORTED_DEVICES += dcs-930 + DEFAULT := n endef TARGET_DEVICES += dlink_dcs-930 @@ -341,6 +352,7 @@ define Device/dlink_dcs-930l-b1 DEVICE_PACKAGES := kmod-video-core kmod-video-uvc kmod-sound-core \ kmod-usb-audio kmod-usb-ohci kmod-usb2 SUPPORTED_DEVICES += dcs-930l-b1 + DEFAULT := n endef TARGET_DEVICES += dlink_dcs-930l-b1 @@ -354,6 +366,7 @@ define Device/dlink_dir-300-b1 DEVICE_MODEL := DIR-300 DEVICE_VARIANT := B1 SUPPORTED_DEVICES += dir-300-b1 + DEFAULT := n endef TARGET_DEVICES += dlink_dir-300-b1 @@ -388,6 +401,7 @@ define Device/dlink_dir-600-b1 DEVICE_MODEL := DIR-600 DEVICE_VARIANT := B1/B2 SUPPORTED_DEVICES += dir-600-b1 dir-600-b2 + DEFAULT := n endef TARGET_DEVICES += dlink_dir-600-b1 @@ -403,6 +417,7 @@ define Device/dlink_dir-610-a1 DEVICE_VARIANT := A1 DEVICE_PACKAGES := kmod-ledtrig-netdev kmod-ledtrig-timer SUPPORTED_DEVICES += dir-610-a1 + DEFAULT := n endef TARGET_DEVICES += dlink_dir-610-a1 @@ -416,6 +431,7 @@ define Device/dlink_dir-615-d DEVICE_MODEL := DIR-615 DEVICE_VARIANT := D SUPPORTED_DEVICES += dir-615-d + DEFAULT := n endef TARGET_DEVICES += dlink_dir-615-d @@ -429,6 +445,7 @@ define Device/dlink_dir-615-h1 DEVICE_MODEL := DIR-615 DEVICE_VARIANT := H1 SUPPORTED_DEVICES += dir-615-h1 + DEFAULT := n endef TARGET_DEVICES += dlink_dir-615-h1 @@ -490,6 +507,7 @@ define Device/edimax_3g-6200n DEVICE_VENDOR := Edimax DEVICE_MODEL := 3g-6200n SUPPORTED_DEVICES += 3g-6200n + DEFAULT := n endef TARGET_DEVICES += edimax_3g-6200n @@ -502,6 +520,7 @@ define Device/edimax_3g-6200nl DEVICE_VENDOR := Edimax DEVICE_MODEL := 3g-6200nl SUPPORTED_DEVICES += 3g-6200nl + DEFAULT := n endef TARGET_DEVICES += edimax_3g-6200nl @@ -512,6 +531,7 @@ define Device/engenius_esr-9753 DEVICE_VENDOR := EnGenius DEVICE_MODEL := ESR-9753 SUPPORTED_DEVICES += esr-9753 + DEFAULT := n endef TARGET_DEVICES += engenius_esr-9753 @@ -538,6 +558,7 @@ define Device/hame_mpr-a1 DEVICE_VARIANT := A1 DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-ledtrig-netdev SUPPORTED_DEVICES += mpr-a1 + DEFAULT := n endef TARGET_DEVICES += hame_mpr-a1 @@ -573,6 +594,7 @@ define Device/hilink_hlk-rm04 DEVICE_VENDOR := Hi-Link DEVICE_MODEL := HLK-RM04 SUPPORTED_DEVICES += hlk-rm04 + DEFAULT := n endef TARGET_DEVICES += hilink_hlk-rm04 @@ -593,6 +615,7 @@ define Device/huawei_d105 DEVICE_VENDOR := Huawei DEVICE_MODEL := D105 SUPPORTED_DEVICES += d105 + DEFAULT := n endef TARGET_DEVICES += huawei_d105 @@ -626,6 +649,7 @@ define Device/jcg_jhr-n805r DEVICE_VENDOR := JCG DEVICE_MODEL := JHR-N805R SUPPORTED_DEVICES += jhr-n805r + DEFAULT := n endef TARGET_DEVICES += jcg_jhr-n805r @@ -638,6 +662,7 @@ define Device/jcg_jhr-n825r DEVICE_VENDOR := JCG DEVICE_MODEL := JHR-N825R SUPPORTED_DEVICES += jhr-n825r + DEFAULT := n endef TARGET_DEVICES += jcg_jhr-n825r @@ -650,6 +675,7 @@ define Device/jcg_jhr-n926r DEVICE_VENDOR := JCG DEVICE_MODEL := JHR-N926R SUPPORTED_DEVICES += jhr-n926r + DEFAULT := n endef TARGET_DEVICES += jcg_jhr-n926r @@ -669,6 +695,7 @@ define Device/netcore_nw718 DEVICE_VENDOR := Netcore DEVICE_MODEL := NW718 SUPPORTED_DEVICES += nw718 + DEFAULT := n endef TARGET_DEVICES += netcore_nw718 @@ -706,6 +733,7 @@ define Device/nexx_wt1520-4m DEVICE_MODEL := WT1520 DEVICE_VARIANT := 4M SUPPORTED_DEVICES += wt1520-4M + DEFAULT := n endef TARGET_DEVICES += nexx_wt1520-4m @@ -793,6 +821,7 @@ define Device/petatel_psr-680w DEVICE_VENDOR := Petatel DEVICE_MODEL := PSR-680W Wireless 3G Router SUPPORTED_DEVICES += psr-680w + DEFAULT := n endef TARGET_DEVICES += petatel_psr-680w @@ -804,6 +833,7 @@ define Device/planex_mzk-dp150n DEVICE_MODEL := MZK-DP150N DEVICE_PACKAGES := kmod-spi-dev SUPPORTED_DEVICES += mzk-dp150n + DEFAULT := n endef TARGET_DEVICES += planex_mzk-dp150n @@ -816,6 +846,7 @@ define Device/planex_mzk-w300nh2 DEVICE_VENDOR := Planex DEVICE_MODEL := MZK-W300NH2 SUPPORTED_DEVICES += mzk-w300nh2 + DEFAULT := n endef TARGET_DEVICES += planex_mzk-w300nh2 @@ -847,6 +878,7 @@ define Device/poray_m3 DEVICE_MODEL := M3 DEVICE_PACKAGES := kmod-usb2 kmod-ledtrig-netdev kmod-ledtrig-timer SUPPORTED_DEVICES += m3 + DEFAULT := n endef TARGET_DEVICES += poray_m3 @@ -861,6 +893,7 @@ define Device/poray_m4-4m DEVICE_VARIANT := 4M DEVICE_PACKAGES := kmod-usb2 kmod-ledtrig-netdev kmod-ledtrig-timer SUPPORTED_DEVICES += m4-4M + DEFAULT := n endef TARGET_DEVICES += poray_m4-4m @@ -921,6 +954,7 @@ define Device/ralink_v22rw-2x2 DEVICE_VENDOR := Ralink DEVICE_MODEL := AP-RT3052-V22RW-2X2 SUPPORTED_DEVICES += v22rw-2x2 + DEFAULT := n endef TARGET_DEVICES += ralink_v22rw-2x2 @@ -932,6 +966,7 @@ define Device/sitecom_wl-351 DEVICE_MODEL := WL-351 v1 DEVICE_PACKAGES := kmod-switch-rtl8366rb kmod-swconfig swconfig SUPPORTED_DEVICES += wl-351 + DEFAULT := n endef TARGET_DEVICES += sitecom_wl-351 @@ -942,6 +977,7 @@ define Device/skyline_sl-r7205 DEVICE_VENDOR := Skyline DEVICE_MODEL := SL-R7205 Wireless 3G Router SUPPORTED_DEVICES += sl-r7205 + DEFAULT := n endef TARGET_DEVICES += skyline_sl-r7205 @@ -952,6 +988,7 @@ define Device/sparklan_wcr-150gn DEVICE_VENDOR := Sparklan DEVICE_MODEL := WCR-150GN SUPPORTED_DEVICES += wcr-150gn + DEFAULT := n endef TARGET_DEVICES += sparklan_wcr-150gn @@ -974,6 +1011,7 @@ define Device/tenda_3g150b DEVICE_MODEL := 3G150B DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport SUPPORTED_DEVICES += 3g150b + DEFAULT := n endef TARGET_DEVICES += tenda_3g150b @@ -985,6 +1023,7 @@ define Device/tenda_3g300m DEVICE_MODEL := 3G300M DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport SUPPORTED_DEVICES += 3g300m + DEFAULT := n endef TARGET_DEVICES += tenda_3g300m @@ -995,6 +1034,7 @@ define Device/tenda_w150m DEVICE_VENDOR := Tenda DEVICE_MODEL := W150M SUPPORTED_DEVICES += w150m + DEFAULT := n endef TARGET_DEVICES += tenda_w150m @@ -1006,6 +1046,7 @@ define Device/tenda_w306r-v2 DEVICE_MODEL := W306R DEVICE_VARIANT := V2.0 SUPPORTED_DEVICES += w306r-v20 + DEFAULT := n endef TARGET_DEVICES += tenda_w306r-v2 @@ -1019,6 +1060,7 @@ define Device/trendnet_tew-638apb-v2 DEVICE_MODEL := TEW-638APB DEVICE_VARIANT := v2 SUPPORTED_DEVICES += tew-638apb-v2 + DEFAULT := n endef TARGET_DEVICES += trendnet_tew-638apb-v2 @@ -1041,6 +1083,7 @@ define Device/unbranded_a5-v11 DEVICE_MODEL := A5-V11 DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 SUPPORTED_DEVICES += a5-v11 + DEFAULT := n endef TARGET_DEVICES += unbranded_a5-v11 @@ -1051,6 +1094,7 @@ define Device/unbranded_wr512-3gn-4m DEVICE_MODEL := WR512-3GN DEVICE_VARIANT := 4M SUPPORTED_DEVICES += wr512-3gn-4M + DEFAULT := n endef TARGET_DEVICES += unbranded_wr512-3gn-4m @@ -1071,6 +1115,7 @@ define Device/unbranded_xdx-rn502j DEVICE_VENDOR := XDX DEVICE_MODEL := RN502J SUPPORTED_DEVICES += xdxrn502j + DEFAULT := n endef TARGET_DEVICES += unbranded_xdx-rn502j @@ -1082,6 +1127,7 @@ define Device/upvel_ur-326n4g DEVICE_MODEL := UR-326N4G DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport SUPPORTED_DEVICES += ur-326n4g + DEFAULT := n endef TARGET_DEVICES += upvel_ur-326n4g @@ -1163,6 +1209,7 @@ define Device/zyxel_keenetic-start IMAGE_SIZE := 3776k DEVICE_VENDOR := ZyXEL DEVICE_MODEL := Keenetic Start + DEFAULT := n endef TARGET_DEVICES += zyxel_keenetic-start @@ -1173,6 +1220,7 @@ define Device/zyxel_nbg-419n DEVICE_VENDOR := ZyXEL DEVICE_MODEL := NBG-419N SUPPORTED_DEVICES += nbg-419n + DEFAULT := n endef TARGET_DEVICES += zyxel_nbg-419n diff --git a/target/linux/ramips/mt7620/base-files/etc/board.d/02_network b/target/linux/ramips/mt7620/base-files/etc/board.d/02_network index d870b5c11c..44a9db6ece 100755 --- a/target/linux/ramips/mt7620/base-files/etc/board.d/02_network +++ b/target/linux/ramips/mt7620/base-files/etc/board.d/02_network @@ -40,8 +40,14 @@ ramips_setup_interfaces() alfa-network,tube-e4g|\ buffalo,wmr-300|\ dlink,dch-m225|\ + edimax,ew-7476rpc|\ + edimax,ew-7478ac|\ elecom,wrh-300cr|\ kimax,u25awf-h1|\ + kimax,u35wf|\ + kingston,mlw221|\ + kingston,mlwg2|\ + microduino,microwrt|\ netgear,ex2700|\ netgear,ex3700|\ netgear,ex6130|\ @@ -52,7 +58,12 @@ ramips_setup_interfaces() ravpower,wd03|\ sercomm,na930|\ tplink,re200-v1|\ - tplink,re210-v1) + tplink,re210-v1|\ + yukai,bocco|\ + zbtlink,zbt-cpe102|\ + zte,q7) + ucidef_add_switch "switch0" + ucidef_add_switch_attr "switch0" "enable" "false" ucidef_set_interface_lan "eth0" ;; asus,rp-n53) @@ -106,19 +117,10 @@ ramips_setup_interfaces() ;; edimax,br-6478ac-v2|\ tplink,archer-c2-v1) - ucidef_add_switch "switch1" \ - "1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "6@eth0" - ;; - edimax,ew-7476rpc|\ - edimax,ew-7478ac|\ - kimax,u35wf|\ - microduino,microwrt|\ - yukai,bocco|\ - zbtlink,zbt-cpe102|\ - zte,q7) ucidef_add_switch "switch0" ucidef_add_switch_attr "switch0" "enable" "false" - ucidef_set_interface_lan "eth0" + ucidef_add_switch "switch1" \ + "1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "6@eth0" ;; engenius,esr600) ucidef_add_switch "switch0" \ @@ -142,6 +144,8 @@ ramips_setup_interfaces() ;; iodata,wn-ac1167gr|\ iodata,wn-ac733gr3) + ucidef_add_switch "switch0" + ucidef_add_switch_attr "switch0" "enable" "false" ucidef_add_switch "switch1" \ "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "0:wan" "6@eth0" ;; @@ -149,12 +153,6 @@ ramips_setup_interfaces() ucidef_add_switch "switch0" \ "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "0:wan" "6@eth0" ;; - kingston,mlw221) - ucidef_set_interface_lan "eth0.2" - ;; - kingston,mlwg2) - ucidef_set_interface_lan "eth0.1" - ;; lava,lr-25g001) ucidef_add_switch "switch0" \ "1:lan" "2:lan" "3:lan" "4:lan" "5:wan" "0@eth0" @@ -170,6 +168,8 @@ ramips_setup_interfaces() ;; linksys,e1700|\ ralink,mt7620a-mt7530-evb) + ucidef_add_switch "switch0" + ucidef_add_switch_attr "switch0" "enable" "false" ucidef_add_switch "switch1" \ "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6@eth0" ;; diff --git a/target/linux/ramips/mt7620/config-4.14 b/target/linux/ramips/mt7620/config-4.14 index 92a7a2fd38..635b3c67f8 100644 --- a/target/linux/ramips/mt7620/config-4.14 +++ b/target/linux/ramips/mt7620/config-4.14 @@ -164,13 +164,13 @@ CONFIG_MTD_SPLIT_TPLINK_FW=y CONFIG_MTD_SPLIT_UIMAGE_FW=y CONFIG_NEED_DMA_MAP_STATE=y CONFIG_NEED_PER_CPU_KM=y -CONFIG_NET_MEDIATEK_GSW_MT7620=y -CONFIG_NET_MEDIATEK_MDIO=y -CONFIG_NET_MEDIATEK_MDIO_MT7620=y -CONFIG_NET_MEDIATEK_MT7620=y -# CONFIG_NET_MEDIATEK_RT3050 is not set -CONFIG_NET_MEDIATEK_SOC=y -CONFIG_NET_VENDOR_MEDIATEK=y +CONFIG_NET_RALINK_GSW_MT7620=y +CONFIG_NET_RALINK_MDIO=y +CONFIG_NET_RALINK_MDIO_MT7620=y +CONFIG_NET_RALINK_MT7620=y +# CONFIG_NET_RALINK_RT3050 is not set +CONFIG_NET_RALINK_SOC=y +CONFIG_NET_VENDOR_RALINK=y CONFIG_NO_GENERIC_PCI_IOPORT_MAP=y # CONFIG_NO_IOPORT_MAP is not set CONFIG_OF=y diff --git a/target/linux/ramips/mt7620/config-5.4 b/target/linux/ramips/mt7620/config-5.4 new file mode 100644 index 0000000000..edeff27472 --- /dev/null +++ b/target/linux/ramips/mt7620/config-5.4 @@ -0,0 +1,246 @@ +CONFIG_AR8216_PHY=y +CONFIG_ARCH_32BIT_OFF_T=y +CONFIG_ARCH_CLOCKSOURCE_DATA=y +CONFIG_ARCH_HAS_DMA_COHERENT_TO_PFN=y +CONFIG_ARCH_HAS_DMA_PREP_COHERENT=y +CONFIG_ARCH_HAS_DMA_WRITE_COMBINE=y +CONFIG_ARCH_HAS_ELF_RANDOMIZE=y +CONFIG_ARCH_HAS_RESET_CONTROLLER=y +CONFIG_ARCH_HAS_SYNC_DMA_FOR_DEVICE=y +CONFIG_ARCH_HAS_UNCACHED_SEGMENT=y +CONFIG_ARCH_HIBERNATION_POSSIBLE=y +CONFIG_ARCH_MMAP_RND_BITS_MAX=15 +CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=15 +CONFIG_ARCH_SUPPORTS_UPROBES=y +CONFIG_ARCH_SUSPEND_POSSIBLE=y +CONFIG_ARCH_USE_BUILTIN_BSWAP=y +CONFIG_ARCH_USE_MEMREMAP_PROT=y +CONFIG_ARCH_USE_QUEUED_RWLOCKS=y +CONFIG_ARCH_USE_QUEUED_SPINLOCKS=y +CONFIG_ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT=y +CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y +CONFIG_AT803X_PHY=y +CONFIG_BLK_MQ_PCI=y +CONFIG_CEVT_R4K=y +CONFIG_CEVT_SYSTICK_QUIRK=y +CONFIG_CLKDEV_LOOKUP=y +CONFIG_CLKEVT_RT3352=y +CONFIG_CLKSRC_MMIO=y +CONFIG_CLONE_BACKWARDS=y +CONFIG_CMDLINE="rootfstype=squashfs,jffs2" +CONFIG_CMDLINE_BOOL=y +# CONFIG_CMDLINE_OVERRIDE is not set +CONFIG_COMPAT_32BIT_TIME=y +CONFIG_CPU_GENERIC_DUMP_TLB=y +CONFIG_CPU_HAS_LOAD_STORE_LR=y +CONFIG_CPU_HAS_PREFETCH=y +CONFIG_CPU_HAS_RIXI=y +CONFIG_CPU_HAS_SYNC=y +CONFIG_CPU_LITTLE_ENDIAN=y +CONFIG_CPU_MIPS32=y +# CONFIG_CPU_MIPS32_R1 is not set +CONFIG_CPU_MIPS32_R2=y +CONFIG_CPU_MIPSR2=y +CONFIG_CPU_MIPSR2_IRQ_VI=y +CONFIG_CPU_NEEDS_NO_SMARTMIPS_OR_MICROMIPS=y +CONFIG_CPU_R4K_CACHE_TLB=y +CONFIG_CPU_SUPPORTS_32BIT_KERNEL=y +CONFIG_CPU_SUPPORTS_HIGHMEM=y +CONFIG_CPU_SUPPORTS_MSA=y +CONFIG_CRYPTO_RNG2=y +CONFIG_CSRC_R4K=y +CONFIG_DEBUG_PINCTRL=y +CONFIG_DMA_NONCOHERENT=y +CONFIG_DMA_NONCOHERENT_CACHE_SYNC=y +# CONFIG_DMA_RALINK is not set +# CONFIG_DTB_MT7620A_EVAL is not set +# CONFIG_DTB_OMEGA2P is not set +CONFIG_DTB_RT_NONE=y +# CONFIG_DTB_VOCORE2 is not set +CONFIG_DTC=y +CONFIG_EARLY_PRINTK=y +CONFIG_EFI_EARLYCON=y +CONFIG_ETHERNET_PACKET_MANGLE=y +CONFIG_FIXED_PHY=y +CONFIG_FONT_8x16=y +CONFIG_FONT_AUTOSELECT=y +CONFIG_FONT_SUPPORT=y +CONFIG_FW_LOADER_PAGED_BUF=y +CONFIG_GENERIC_ATOMIC64=y +CONFIG_GENERIC_CLOCKEVENTS=y +CONFIG_GENERIC_CMOS_UPDATE=y +CONFIG_GENERIC_CPU_AUTOPROBE=y +CONFIG_GENERIC_GETTIMEOFDAY=y +CONFIG_GENERIC_IOMAP=y +CONFIG_GENERIC_IRQ_CHIP=y +CONFIG_GENERIC_IRQ_EFFECTIVE_AFF_MASK=y +CONFIG_GENERIC_IRQ_SHOW=y +CONFIG_GENERIC_LIB_ASHLDI3=y +CONFIG_GENERIC_LIB_ASHRDI3=y +CONFIG_GENERIC_LIB_CMPDI2=y +CONFIG_GENERIC_LIB_LSHRDI3=y +CONFIG_GENERIC_LIB_UCMPDI2=y +CONFIG_GENERIC_PCI_IOMAP=y +CONFIG_GENERIC_PHY=y +CONFIG_GENERIC_PINCONF=y +CONFIG_GENERIC_SCHED_CLOCK=y +CONFIG_GENERIC_SMP_IDLE_THREAD=y +CONFIG_GENERIC_TIME_VSYSCALL=y +CONFIG_GPIOLIB=y +# CONFIG_GPIO_MT7621 is not set +CONFIG_GPIO_RALINK=y +CONFIG_GPIO_SYSFS=y +CONFIG_HANDLE_DOMAIN_IRQ=y +CONFIG_HARDWARE_WATCHPOINTS=y +CONFIG_HAS_DMA=y +CONFIG_HAS_IOMEM=y +CONFIG_HAS_IOPORT_MAP=y +CONFIG_HAVE_ARCH_COMPILER_H=y +CONFIG_HAVE_ARCH_JUMP_LABEL=y +CONFIG_HAVE_ARCH_KGDB=y +CONFIG_HAVE_ARCH_SECCOMP_FILTER=y +CONFIG_HAVE_ARCH_TRACEHOOK=y +CONFIG_HAVE_ASM_MODVERSIONS=y +CONFIG_HAVE_CLK=y +CONFIG_HAVE_CONTEXT_TRACKING=y +CONFIG_HAVE_COPY_THREAD_TLS=y +CONFIG_HAVE_C_RECORDMCOUNT=y +CONFIG_HAVE_DEBUG_KMEMLEAK=y +CONFIG_HAVE_DEBUG_STACKOVERFLOW=y +CONFIG_HAVE_DMA_CONTIGUOUS=y +CONFIG_HAVE_DYNAMIC_FTRACE=y +CONFIG_HAVE_FAST_GUP=y +CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y +CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y +CONFIG_HAVE_FUNCTION_TRACER=y +CONFIG_HAVE_GENERIC_VDSO=y +CONFIG_HAVE_IDE=y +CONFIG_HAVE_IOREMAP_PROT=y +CONFIG_HAVE_IRQ_EXIT_ON_IRQ_STACK=y +CONFIG_HAVE_IRQ_TIME_ACCOUNTING=y +CONFIG_HAVE_KVM=y +CONFIG_HAVE_LD_DEAD_CODE_DATA_ELIMINATION=y +CONFIG_HAVE_MEMBLOCK_NODE_MAP=y +CONFIG_HAVE_MOD_ARCH_SPECIFIC=y +CONFIG_HAVE_NET_DSA=y +CONFIG_HAVE_OPROFILE=y +CONFIG_HAVE_PCI=y +CONFIG_HAVE_PERF_EVENTS=y +CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y +CONFIG_HAVE_RSEQ=y +CONFIG_HAVE_SYSCALL_TRACEPOINTS=y +CONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=y +CONFIG_HZ=250 +CONFIG_HZ_250=y +CONFIG_HZ_PERIODIC=y +CONFIG_ICPLUS_PHY=y +CONFIG_INITRAMFS_SOURCE="" +CONFIG_IRQCHIP=y +CONFIG_IRQ_DOMAIN=y +CONFIG_IRQ_FORCED_THREADING=y +CONFIG_IRQ_INTC=y +CONFIG_IRQ_MIPS_CPU=y +CONFIG_IRQ_WORK=y +CONFIG_LIBFDT=y +CONFIG_LOCK_DEBUGGING_SUPPORT=y +CONFIG_MARVELL_PHY=y +CONFIG_MDIO_BUS=y +CONFIG_MDIO_DEVICE=y +CONFIG_MEMFD_CREATE=y +CONFIG_MFD_SYSCON=y +CONFIG_MIGRATION=y +CONFIG_MIPS=y +CONFIG_MIPS_ASID_BITS=8 +CONFIG_MIPS_ASID_SHIFT=0 +CONFIG_MIPS_CLOCK_VSYSCALL=y +# CONFIG_MIPS_CMDLINE_BUILTIN_EXTEND is not set +# CONFIG_MIPS_CMDLINE_DTB_EXTEND is not set +# CONFIG_MIPS_CMDLINE_FROM_BOOTLOADER is not set +CONFIG_MIPS_CMDLINE_FROM_DTB=y +# CONFIG_MIPS_ELF_APPENDED_DTB is not set +CONFIG_MIPS_L1_CACHE_SHIFT=5 +# CONFIG_MIPS_NO_APPENDED_DTB is not set +CONFIG_MIPS_RAW_APPENDED_DTB=y +CONFIG_MIPS_SPRAM=y +CONFIG_MODULES_USE_ELF_REL=y +# CONFIG_MT7621_WDT is not set +# CONFIG_MTD_CFI_INTELEXT is not set +CONFIG_MTD_CMDLINE_PARTS=y +CONFIG_MTD_PHYSMAP=y +CONFIG_MTD_SPI_NOR=y +CONFIG_MTD_SPI_NOR_USE_4K_SECTORS=y +CONFIG_MTD_SPI_NOR_USE_4K_SECTORS_LIMIT=16384 +CONFIG_MTD_SPLIT_JIMAGE_FW=y +CONFIG_MTD_SPLIT_SEAMA_FW=y +CONFIG_MTD_SPLIT_TPLINK_FW=y +CONFIG_MTD_SPLIT_UIMAGE_FW=y +CONFIG_NEED_DMA_MAP_STATE=y +CONFIG_NEED_PER_CPU_KM=y +CONFIG_NET_RALINK_GSW_MT7620=y +CONFIG_NET_RALINK_MDIO=y +CONFIG_NET_RALINK_MDIO_MT7620=y +CONFIG_NET_RALINK_MT7620=y +# CONFIG_NET_RALINK_RT3050 is not set +CONFIG_NET_RALINK_SOC=y +# CONFIG_NET_VENDOR_MEDIATEK is not set +CONFIG_NET_VENDOR_RALINK=y +CONFIG_NO_GENERIC_PCI_IOPORT_MAP=y +CONFIG_OF=y +CONFIG_OF_ADDRESS=y +CONFIG_OF_EARLY_FLATTREE=y +CONFIG_OF_FLATTREE=y +CONFIG_OF_GPIO=y +CONFIG_OF_IRQ=y +CONFIG_OF_KOBJ=y +CONFIG_OF_MDIO=y +CONFIG_OF_NET=y +CONFIG_PCI=y +CONFIG_PCI_DOMAINS=y +CONFIG_PCI_DRIVERS_LEGACY=y +# CONFIG_PCI_MT7621 is not set +# CONFIG_PCI_MT7621_PHY is not set +CONFIG_PERF_USE_VMALLOC=y +CONFIG_PGTABLE_LEVELS=2 +CONFIG_PHYLIB=y +CONFIG_PHY_RALINK_USB=y +CONFIG_PINCTRL=y +CONFIG_PINCTRL_RT2880=y +# CONFIG_PINCTRL_SINGLE is not set +CONFIG_RALINK=y +CONFIG_RALINK_WDT=y +CONFIG_REGMAP=y +CONFIG_REGMAP_MMIO=y +CONFIG_RESET_CONTROLLER=y +CONFIG_SERIAL_8250_RT288X=y +CONFIG_SERIAL_MCTRL_GPIO=y +CONFIG_SERIAL_OF_PLATFORM=y +CONFIG_SOC_MT7620=y +# CONFIG_SOC_MT7621 is not set +# CONFIG_SOC_RT288X is not set +# CONFIG_SOC_RT305X is not set +# CONFIG_SOC_RT3883 is not set +CONFIG_SPI=y +CONFIG_SPI_MASTER=y +CONFIG_SPI_MEM=y +# CONFIG_SPI_MT7621 is not set +CONFIG_SPI_RT2880=y +CONFIG_SRCU=y +CONFIG_SWCONFIG=y +CONFIG_SWCONFIG_LEDS=y +CONFIG_SWPHY=y +CONFIG_SYSCTL_EXCEPTION_TRACE=y +CONFIG_SYS_HAS_CPU_MIPS32_R1=y +CONFIG_SYS_HAS_CPU_MIPS32_R2=y +CONFIG_SYS_HAS_EARLY_PRINTK=y +CONFIG_SYS_SUPPORTS_32BIT_KERNEL=y +CONFIG_SYS_SUPPORTS_ARBIT_HZ=y +CONFIG_SYS_SUPPORTS_LITTLE_ENDIAN=y +CONFIG_SYS_SUPPORTS_MIPS16=y +CONFIG_TARGET_ISA_REV=2 +CONFIG_TICK_CPU_ACCOUNTING=y +CONFIG_TIMER_OF=y +CONFIG_TIMER_PROBE=y +CONFIG_TINY_SRCU=y +CONFIG_USB_SUPPORT=y +CONFIG_USE_OF=y +CONFIG_WATCHDOG_CORE=y diff --git a/target/linux/ramips/mt7621/config-5.4 b/target/linux/ramips/mt7621/config-5.4 index 9fb90b8625..2d887d776b 100644 --- a/target/linux/ramips/mt7621/config-5.4 +++ b/target/linux/ramips/mt7621/config-5.4 @@ -227,6 +227,7 @@ CONFIG_NET_FLOW_LIMIT=y CONFIG_NET_MEDIATEK_SOC=y CONFIG_NET_SWITCHDEV=y CONFIG_NET_VENDOR_MEDIATEK=y +# CONFIG_NET_VENDOR_RALINK is not set CONFIG_NR_CPUS=4 CONFIG_OF=y CONFIG_OF_ADDRESS=y 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 5230717506..a6543fd38f 100755 --- a/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network +++ b/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network @@ -11,11 +11,19 @@ ramips_setup_interfaces() case $board in alfa-network,awusfree1|\ d-team,pbr-d1|\ + mediatek,linkit-smart-7688|\ + onion,omega2p|\ + onion,omega2|\ tama,w06|\ tplink,re200-v2|\ tplink,re305-v1|\ tplink,tl-mr3020-v3|\ - tplink,tl-wr802n-v4) + tplink,tl-wr802n-v4|\ + tplink,tl-wa801nd-v5|\ + widora,neo-16m|\ + widora,neo-32m) + ucidef_add_switch "switch0" + ucidef_add_switch_attr "switch0" "enable" "false" ucidef_set_interface_lan "eth0" ;; buffalo,wcr-1166ds) @@ -81,16 +89,6 @@ ramips_setup_interfaces() ucidef_add_switch "switch0" \ "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "0:wan" "6@eth0" ;; - mediatek,linkit-smart-7688|\ - onion,omega2p|\ - onion,omega2|\ - tplink,tl-wa801nd-v5|\ - widora,neo-16m|\ - widora,neo-32m) - ucidef_add_switch "switch0" - ucidef_add_switch_attr "switch0" "enable" "false" - ucidef_set_interface_lan "eth0" - ;; netgear,r6120) ucidef_add_switch "switch0" \ "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "4:wan" "6@eth0" diff --git a/target/linux/ramips/mt76x8/config-4.14 b/target/linux/ramips/mt76x8/config-4.14 index 21cf070374..3fd8bd54a9 100644 --- a/target/linux/ramips/mt76x8/config-4.14 +++ b/target/linux/ramips/mt76x8/config-4.14 @@ -158,11 +158,11 @@ CONFIG_MTD_SPLIT_TRX_FW=y CONFIG_MTD_SPLIT_UIMAGE_FW=y CONFIG_NEED_DMA_MAP_STATE=y CONFIG_NEED_PER_CPU_KM=y -CONFIG_NET_MEDIATEK_ESW_RT3050=y -# CONFIG_NET_MEDIATEK_MT7620 is not set -CONFIG_NET_MEDIATEK_RT3050=y -CONFIG_NET_MEDIATEK_SOC=y -CONFIG_NET_VENDOR_MEDIATEK=y +CONFIG_NET_RALINK_ESW_RT3050=y +# CONFIG_NET_RALINK_MT7620 is not set +CONFIG_NET_RALINK_RT3050=y +CONFIG_NET_RALINK_SOC=y +CONFIG_NET_VENDOR_RALINK=y CONFIG_NO_GENERIC_PCI_IOPORT_MAP=y # CONFIG_NO_IOPORT_MAP is not set CONFIG_OF=y diff --git a/target/linux/ramips/mt76x8/config-5.4 b/target/linux/ramips/mt76x8/config-5.4 new file mode 100644 index 0000000000..cdc357e212 --- /dev/null +++ b/target/linux/ramips/mt76x8/config-5.4 @@ -0,0 +1,243 @@ +CONFIG_ARCH_32BIT_OFF_T=y +CONFIG_ARCH_CLOCKSOURCE_DATA=y +CONFIG_ARCH_HAS_DMA_COHERENT_TO_PFN=y +CONFIG_ARCH_HAS_DMA_PREP_COHERENT=y +CONFIG_ARCH_HAS_DMA_WRITE_COMBINE=y +CONFIG_ARCH_HAS_ELF_RANDOMIZE=y +CONFIG_ARCH_HAS_RESET_CONTROLLER=y +CONFIG_ARCH_HAS_SYNC_DMA_FOR_DEVICE=y +CONFIG_ARCH_HAS_UNCACHED_SEGMENT=y +CONFIG_ARCH_HIBERNATION_POSSIBLE=y +CONFIG_ARCH_MMAP_RND_BITS_MAX=15 +CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=15 +CONFIG_ARCH_SUPPORTS_UPROBES=y +CONFIG_ARCH_SUSPEND_POSSIBLE=y +CONFIG_ARCH_USE_BUILTIN_BSWAP=y +CONFIG_ARCH_USE_MEMREMAP_PROT=y +CONFIG_ARCH_USE_QUEUED_RWLOCKS=y +CONFIG_ARCH_USE_QUEUED_SPINLOCKS=y +CONFIG_ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT=y +CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y +CONFIG_AT803X_PHY=y +CONFIG_BLK_MQ_PCI=y +CONFIG_CEVT_R4K=y +CONFIG_CEVT_SYSTICK_QUIRK=y +CONFIG_CLKDEV_LOOKUP=y +CONFIG_CLKEVT_RT3352=y +CONFIG_CLKSRC_MMIO=y +CONFIG_CLONE_BACKWARDS=y +CONFIG_CMDLINE="rootfstype=squashfs,jffs2" +CONFIG_CMDLINE_BOOL=y +# CONFIG_CMDLINE_OVERRIDE is not set +CONFIG_COMPAT_32BIT_TIME=y +CONFIG_CPU_GENERIC_DUMP_TLB=y +CONFIG_CPU_HAS_LOAD_STORE_LR=y +CONFIG_CPU_HAS_PREFETCH=y +CONFIG_CPU_HAS_RIXI=y +CONFIG_CPU_HAS_SYNC=y +CONFIG_CPU_LITTLE_ENDIAN=y +CONFIG_CPU_MIPS32=y +# CONFIG_CPU_MIPS32_R1 is not set +CONFIG_CPU_MIPS32_R2=y +CONFIG_CPU_MIPSR2=y +CONFIG_CPU_MIPSR2_IRQ_VI=y +CONFIG_CPU_NEEDS_NO_SMARTMIPS_OR_MICROMIPS=y +CONFIG_CPU_R4K_CACHE_TLB=y +CONFIG_CPU_SUPPORTS_32BIT_KERNEL=y +CONFIG_CPU_SUPPORTS_HIGHMEM=y +CONFIG_CPU_SUPPORTS_MSA=y +CONFIG_CRYPTO_RNG2=y +CONFIG_CSRC_R4K=y +CONFIG_DEBUG_PINCTRL=y +CONFIG_DMA_NONCOHERENT=y +CONFIG_DMA_NONCOHERENT_CACHE_SYNC=y +# CONFIG_DMA_RALINK is not set +# CONFIG_DTB_MT7620A_EVAL is not set +# CONFIG_DTB_OMEGA2P is not set +CONFIG_DTB_RT_NONE=y +# CONFIG_DTB_VOCORE2 is not set +CONFIG_DTC=y +CONFIG_EARLY_PRINTK=y +CONFIG_EFI_EARLYCON=y +CONFIG_FIXED_PHY=y +CONFIG_FONT_8x16=y +CONFIG_FONT_AUTOSELECT=y +CONFIG_FONT_SUPPORT=y +CONFIG_FW_LOADER_PAGED_BUF=y +CONFIG_GENERIC_ATOMIC64=y +CONFIG_GENERIC_CLOCKEVENTS=y +CONFIG_GENERIC_CMOS_UPDATE=y +CONFIG_GENERIC_CPU_AUTOPROBE=y +CONFIG_GENERIC_GETTIMEOFDAY=y +CONFIG_GENERIC_IOMAP=y +CONFIG_GENERIC_IRQ_CHIP=y +CONFIG_GENERIC_IRQ_EFFECTIVE_AFF_MASK=y +CONFIG_GENERIC_IRQ_SHOW=y +CONFIG_GENERIC_LIB_ASHLDI3=y +CONFIG_GENERIC_LIB_ASHRDI3=y +CONFIG_GENERIC_LIB_CMPDI2=y +CONFIG_GENERIC_LIB_LSHRDI3=y +CONFIG_GENERIC_LIB_UCMPDI2=y +CONFIG_GENERIC_PCI_IOMAP=y +CONFIG_GENERIC_PHY=y +CONFIG_GENERIC_PINCONF=y +CONFIG_GENERIC_SCHED_CLOCK=y +CONFIG_GENERIC_SMP_IDLE_THREAD=y +CONFIG_GENERIC_TIME_VSYSCALL=y +CONFIG_GPIOLIB=y +CONFIG_GPIOLIB_IRQCHIP=y +CONFIG_GPIO_GENERIC=y +CONFIG_GPIO_MT7621=y +# CONFIG_GPIO_RALINK is not set +CONFIG_GPIO_SYSFS=y +CONFIG_HANDLE_DOMAIN_IRQ=y +CONFIG_HARDWARE_WATCHPOINTS=y +CONFIG_HAS_DMA=y +CONFIG_HAS_IOMEM=y +CONFIG_HAS_IOPORT_MAP=y +CONFIG_HAVE_ARCH_COMPILER_H=y +CONFIG_HAVE_ARCH_JUMP_LABEL=y +CONFIG_HAVE_ARCH_KGDB=y +CONFIG_HAVE_ARCH_SECCOMP_FILTER=y +CONFIG_HAVE_ARCH_TRACEHOOK=y +CONFIG_HAVE_ASM_MODVERSIONS=y +CONFIG_HAVE_CLK=y +CONFIG_HAVE_CONTEXT_TRACKING=y +CONFIG_HAVE_COPY_THREAD_TLS=y +CONFIG_HAVE_C_RECORDMCOUNT=y +CONFIG_HAVE_DEBUG_KMEMLEAK=y +CONFIG_HAVE_DEBUG_STACKOVERFLOW=y +CONFIG_HAVE_DMA_CONTIGUOUS=y +CONFIG_HAVE_DYNAMIC_FTRACE=y +CONFIG_HAVE_FAST_GUP=y +CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y +CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y +CONFIG_HAVE_FUNCTION_TRACER=y +CONFIG_HAVE_GENERIC_VDSO=y +CONFIG_HAVE_IDE=y +CONFIG_HAVE_IOREMAP_PROT=y +CONFIG_HAVE_IRQ_EXIT_ON_IRQ_STACK=y +CONFIG_HAVE_IRQ_TIME_ACCOUNTING=y +CONFIG_HAVE_KVM=y +CONFIG_HAVE_LD_DEAD_CODE_DATA_ELIMINATION=y +CONFIG_HAVE_MEMBLOCK_NODE_MAP=y +CONFIG_HAVE_MOD_ARCH_SPECIFIC=y +CONFIG_HAVE_NET_DSA=y +CONFIG_HAVE_OPROFILE=y +CONFIG_HAVE_PCI=y +CONFIG_HAVE_PERF_EVENTS=y +CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y +CONFIG_HAVE_RSEQ=y +CONFIG_HAVE_SYSCALL_TRACEPOINTS=y +CONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=y +CONFIG_HZ=250 +CONFIG_HZ_250=y +CONFIG_HZ_PERIODIC=y +CONFIG_ICPLUS_PHY=y +CONFIG_INITRAMFS_SOURCE="" +CONFIG_IRQCHIP=y +CONFIG_IRQ_DOMAIN=y +CONFIG_IRQ_FORCED_THREADING=y +CONFIG_IRQ_INTC=y +CONFIG_IRQ_MIPS_CPU=y +CONFIG_IRQ_WORK=y +CONFIG_LIBFDT=y +CONFIG_LOCK_DEBUGGING_SUPPORT=y +CONFIG_MDIO_BUS=y +CONFIG_MDIO_DEVICE=y +CONFIG_MEMFD_CREATE=y +CONFIG_MFD_SYSCON=y +CONFIG_MIGRATION=y +CONFIG_MIPS=y +CONFIG_MIPS_ASID_BITS=8 +CONFIG_MIPS_ASID_SHIFT=0 +CONFIG_MIPS_CLOCK_VSYSCALL=y +# CONFIG_MIPS_CMDLINE_BUILTIN_EXTEND is not set +# CONFIG_MIPS_CMDLINE_DTB_EXTEND is not set +# CONFIG_MIPS_CMDLINE_FROM_BOOTLOADER is not set +CONFIG_MIPS_CMDLINE_FROM_DTB=y +# CONFIG_MIPS_ELF_APPENDED_DTB is not set +CONFIG_MIPS_L1_CACHE_SHIFT=5 +# CONFIG_MIPS_NO_APPENDED_DTB is not set +CONFIG_MIPS_RAW_APPENDED_DTB=y +CONFIG_MIPS_SPRAM=y +CONFIG_MODULES_USE_ELF_REL=y +CONFIG_MT7621_WDT=y +# CONFIG_MTD_CFI_INTELEXT is not set +CONFIG_MTD_CMDLINE_PARTS=y +CONFIG_MTD_PHYSMAP=y +CONFIG_MTD_SPI_NOR=y +CONFIG_MTD_SPLIT_TPLINK_FW=y +CONFIG_MTD_SPLIT_TRX_FW=y +CONFIG_MTD_SPLIT_UIMAGE_FW=y +CONFIG_NEED_DMA_MAP_STATE=y +CONFIG_NEED_PER_CPU_KM=y +CONFIG_NET_RALINK_ESW_RT3050=y +# CONFIG_NET_RALINK_MT7620 is not set +CONFIG_NET_RALINK_RT3050=y +CONFIG_NET_RALINK_SOC=y +# CONFIG_NET_VENDOR_MEDIATEK is not set +CONFIG_NET_VENDOR_RALINK=y +CONFIG_NO_GENERIC_PCI_IOPORT_MAP=y +CONFIG_OF=y +CONFIG_OF_ADDRESS=y +CONFIG_OF_EARLY_FLATTREE=y +CONFIG_OF_FLATTREE=y +CONFIG_OF_GPIO=y +CONFIG_OF_IRQ=y +CONFIG_OF_KOBJ=y +CONFIG_OF_MDIO=y +CONFIG_OF_NET=y +CONFIG_PCI=y +CONFIG_PCI_DOMAINS=y +CONFIG_PCI_DRIVERS_LEGACY=y +# CONFIG_PCI_MT7621 is not set +# CONFIG_PCI_MT7621_PHY is not set +CONFIG_PERF_USE_VMALLOC=y +CONFIG_PGTABLE_LEVELS=2 +CONFIG_PHYLIB=y +CONFIG_PHY_RALINK_USB=y +CONFIG_PINCTRL=y +CONFIG_PINCTRL_RT2880=y +# CONFIG_PINCTRL_SINGLE is not set +CONFIG_RALINK=y +# CONFIG_RALINK_WDT is not set +CONFIG_REGMAP=y +CONFIG_REGMAP_MMIO=y +CONFIG_REGULATOR=y +CONFIG_REGULATOR_FIXED_VOLTAGE=y +CONFIG_RESET_CONTROLLER=y +CONFIG_SERIAL_8250_NR_UARTS=3 +CONFIG_SERIAL_8250_RUNTIME_UARTS=3 +CONFIG_SERIAL_MCTRL_GPIO=y +CONFIG_SERIAL_OF_PLATFORM=y +CONFIG_SOC_MT7620=y +# CONFIG_SOC_MT7621 is not set +# CONFIG_SOC_RT288X is not set +# CONFIG_SOC_RT305X is not set +# CONFIG_SOC_RT3883 is not set +CONFIG_SPI=y +CONFIG_SPI_MASTER=y +CONFIG_SPI_MEM=y +CONFIG_SPI_MT7621=y +# CONFIG_SPI_RT2880 is not set +CONFIG_SRCU=y +CONFIG_SWCONFIG=y +CONFIG_SWCONFIG_LEDS=y +CONFIG_SWPHY=y +CONFIG_SYSCTL_EXCEPTION_TRACE=y +CONFIG_SYS_HAS_CPU_MIPS32_R1=y +CONFIG_SYS_HAS_CPU_MIPS32_R2=y +CONFIG_SYS_HAS_EARLY_PRINTK=y +CONFIG_SYS_SUPPORTS_32BIT_KERNEL=y +CONFIG_SYS_SUPPORTS_ARBIT_HZ=y +CONFIG_SYS_SUPPORTS_LITTLE_ENDIAN=y +CONFIG_SYS_SUPPORTS_MIPS16=y +CONFIG_TARGET_ISA_REV=2 +CONFIG_TICK_CPU_ACCOUNTING=y +CONFIG_TIMER_OF=y +CONFIG_TIMER_PROBE=y +CONFIG_TINY_SRCU=y +CONFIG_USB_SUPPORT=y +CONFIG_USE_OF=y +CONFIG_WATCHDOG_CORE=y diff --git a/target/linux/ramips/mt76x8/target.mk b/target/linux/ramips/mt76x8/target.mk index e13a12cf58..4ecc19ff62 100644 --- a/target/linux/ramips/mt76x8/target.mk +++ b/target/linux/ramips/mt76x8/target.mk @@ -8,6 +8,7 @@ FEATURES+=usb ramdisk CPU_TYPE:=24kc DEFAULT_PACKAGES += kmod-mt7603 wpad-basic swconfig +KERNEL_PATCHVER:=5.4 define Target/Description Build firmware images for Ralink MT76x8 based boards. diff --git a/target/linux/ramips/patches-4.14/0025-pinctrl-ralink-add-pinctrl-driver.patch b/target/linux/ramips/patches-4.14/0025-pinctrl-ralink-add-pinctrl-driver.patch index a374e01b59..497110bb37 100644 --- a/target/linux/ramips/patches-4.14/0025-pinctrl-ralink-add-pinctrl-driver.patch +++ b/target/linux/ramips/patches-4.14/0025-pinctrl-ralink-add-pinctrl-driver.patch @@ -156,8 +156,8 @@ Signed-off-by: John Crispin + struct pinctrl_map **map) +{ + const char *function; -+ int func = of_property_read_string(np, "ralink,function", &function); -+ int grps = of_property_count_strings(np, "ralink,group"); ++ int func = of_property_read_string(np, "function", &function); ++ int grps = of_property_count_strings(np, "groups"); + int i; + + if (func || !grps) @@ -166,7 +166,7 @@ Signed-off-by: John Crispin + for (i = 0; i < grps; i++) { + const char *group; + -+ of_property_read_string_index(np, "ralink,group", i, &group); ++ of_property_read_string_index(np, "groups", i, &group); + + (*map)->type = PIN_MAP_TYPE_MUX_GROUP; + (*map)->name = function; @@ -186,7 +186,7 @@ Signed-off-by: John Crispin + struct device_node *np; + + for_each_child_of_node(np_config, np) { -+ int ret = of_property_count_strings(np, "ralink,group"); ++ int ret = of_property_count_strings(np, "groups"); + + if (ret >= 0) + max_maps += ret; @@ -482,7 +482,7 @@ Signed-off-by: John Crispin + if (!of_device_is_available(np)) + continue; + -+ ngpio = of_get_property(np, "ralink,nr-gpio", NULL); ++ ngpio = of_get_property(np, "ralink,num-gpios", NULL); + gpiobase = of_get_property(np, "ralink,gpio-base", NULL); + if (!ngpio || !gpiobase) { + dev_err(&pdev->dev, "failed to load chip info\n"); diff --git a/target/linux/ramips/patches-4.14/0026-DT-Add-documentation-for-gpio-ralink.patch b/target/linux/ramips/patches-4.14/0026-DT-Add-documentation-for-gpio-ralink.patch index 0bce0b433a..7d5f98f647 100644 --- a/target/linux/ramips/patches-4.14/0026-DT-Add-documentation-for-gpio-ralink.patch +++ b/target/linux/ramips/patches-4.14/0026-DT-Add-documentation-for-gpio-ralink.patch @@ -29,7 +29,7 @@ Cc: linux-gpio@vger.kernel.org +- reg : Physical base address and length of the controller's registers +- interrupt-parent: phandle to the INTC device node +- interrupts : Specify the INTC interrupt number -+- ralink,nr-gpio : Specify the number of GPIOs ++- ralink,num-gpios : Specify the number of GPIOs +- ralink,register-map : The register layout depends on the GPIO bank and actual + SoC type. Register offsets need to be in this order. + [ INT, EDGE, RENA, FENA, DATA, DIR, POL, SET, RESET, TOGGLE ] @@ -51,7 +51,7 @@ Cc: linux-gpio@vger.kernel.org + interrupts = <6>; + + ralink,gpio-base = <0>; -+ ralink,nr-gpio = <24>; ++ ralink,num-gpios = <24>; + ralink,register-map = [ 00 04 08 0c + 20 24 28 2c + 30 34 ]; diff --git a/target/linux/ramips/patches-4.14/0027-GPIO-MIPS-ralink-add-gpio-driver-for-ralink-SoC.patch b/target/linux/ramips/patches-4.14/0027-GPIO-MIPS-ralink-add-gpio-driver-for-ralink-SoC.patch index eaae0d3d02..35cedf61fd 100644 --- a/target/linux/ramips/patches-4.14/0027-GPIO-MIPS-ralink-add-gpio-driver-for-ralink-SoC.patch +++ b/target/linux/ramips/patches-4.14/0027-GPIO-MIPS-ralink-add-gpio-driver-for-ralink-SoC.patch @@ -371,7 +371,7 @@ Cc: linux-gpio@vger.kernel.org + return -EINVAL; + } + -+ ngpio = of_get_property(np, "ralink,nr-gpio", NULL); ++ ngpio = of_get_property(np, "ralink,num-gpios", NULL); + if (!ngpio) { + dev_err(&pdev->dev, "failed to read number of pins\n"); + return -EINVAL; diff --git a/target/linux/ramips/patches-4.14/200-add-ralink-eth.patch b/target/linux/ramips/patches-4.14/200-add-ralink-eth.patch new file mode 100644 index 0000000000..b662fe5e6f --- /dev/null +++ b/target/linux/ramips/patches-4.14/200-add-ralink-eth.patch @@ -0,0 +1,20 @@ +--- a/drivers/net/ethernet/Kconfig ++++ b/drivers/net/ethernet/Kconfig +@@ -159,6 +159,7 @@ source "drivers/net/ethernet/packetengin + source "drivers/net/ethernet/pasemi/Kconfig" + source "drivers/net/ethernet/qlogic/Kconfig" + source "drivers/net/ethernet/qualcomm/Kconfig" ++source "drivers/net/ethernet/ralink/Kconfig" + source "drivers/net/ethernet/realtek/Kconfig" + source "drivers/net/ethernet/renesas/Kconfig" + source "drivers/net/ethernet/rdc/Kconfig" +--- a/drivers/net/ethernet/Makefile ++++ b/drivers/net/ethernet/Makefile +@@ -70,6 +70,7 @@ obj-$(CONFIG_NET_PACKET_ENGINE) += packe + obj-$(CONFIG_NET_VENDOR_PASEMI) += pasemi/ + obj-$(CONFIG_NET_VENDOR_QLOGIC) += qlogic/ + obj-$(CONFIG_NET_VENDOR_QUALCOMM) += qualcomm/ ++obj-$(CONFIG_NET_VENDOR_RALINK) += ralink/ + obj-$(CONFIG_NET_VENDOR_REALTEK) += realtek/ + obj-$(CONFIG_NET_VENDOR_RENESAS) += renesas/ + obj-$(CONFIG_NET_VENDOR_RDC) += rdc/ diff --git a/target/linux/ramips/patches-5.4/0026-DT-Add-documentation-for-gpio-ralink.patch b/target/linux/ramips/patches-5.4/0026-DT-Add-documentation-for-gpio-ralink.patch index 0bce0b433a..7d5f98f647 100644 --- a/target/linux/ramips/patches-5.4/0026-DT-Add-documentation-for-gpio-ralink.patch +++ b/target/linux/ramips/patches-5.4/0026-DT-Add-documentation-for-gpio-ralink.patch @@ -29,7 +29,7 @@ Cc: linux-gpio@vger.kernel.org +- reg : Physical base address and length of the controller's registers +- interrupt-parent: phandle to the INTC device node +- interrupts : Specify the INTC interrupt number -+- ralink,nr-gpio : Specify the number of GPIOs ++- ralink,num-gpios : Specify the number of GPIOs +- ralink,register-map : The register layout depends on the GPIO bank and actual + SoC type. Register offsets need to be in this order. + [ INT, EDGE, RENA, FENA, DATA, DIR, POL, SET, RESET, TOGGLE ] @@ -51,7 +51,7 @@ Cc: linux-gpio@vger.kernel.org + interrupts = <6>; + + ralink,gpio-base = <0>; -+ ralink,nr-gpio = <24>; ++ ralink,num-gpios = <24>; + ralink,register-map = [ 00 04 08 0c + 20 24 28 2c + 30 34 ]; diff --git a/target/linux/ramips/patches-5.4/0027-GPIO-MIPS-ralink-add-gpio-driver-for-ralink-SoC.patch b/target/linux/ramips/patches-5.4/0027-GPIO-MIPS-ralink-add-gpio-driver-for-ralink-SoC.patch index 3d78ef40c6..eae507bcd7 100644 --- a/target/linux/ramips/patches-5.4/0027-GPIO-MIPS-ralink-add-gpio-driver-for-ralink-SoC.patch +++ b/target/linux/ramips/patches-5.4/0027-GPIO-MIPS-ralink-add-gpio-driver-for-ralink-SoC.patch @@ -357,7 +357,7 @@ Cc: linux-gpio@vger.kernel.org + return -EINVAL; + } + -+ ngpio = of_get_property(np, "ralink,nr-gpio", NULL); ++ ngpio = of_get_property(np, "ralink,num-gpios", NULL); + if (!ngpio) { + dev_err(&pdev->dev, "failed to read number of pins\n"); + return -EINVAL; diff --git a/target/linux/ramips/patches-5.4/200-add-ralink-eth.patch b/target/linux/ramips/patches-5.4/200-add-ralink-eth.patch new file mode 100644 index 0000000000..b8fd8e511d --- /dev/null +++ b/target/linux/ramips/patches-5.4/200-add-ralink-eth.patch @@ -0,0 +1,20 @@ +--- a/drivers/net/ethernet/Kconfig ++++ b/drivers/net/ethernet/Kconfig +@@ -159,6 +159,7 @@ source "drivers/net/ethernet/pasemi/Kcon + source "drivers/net/ethernet/pensando/Kconfig" + source "drivers/net/ethernet/qlogic/Kconfig" + source "drivers/net/ethernet/qualcomm/Kconfig" ++source "drivers/net/ethernet/ralink/Kconfig" + source "drivers/net/ethernet/rdc/Kconfig" + source "drivers/net/ethernet/realtek/Kconfig" + source "drivers/net/ethernet/renesas/Kconfig" +--- a/drivers/net/ethernet/Makefile ++++ b/drivers/net/ethernet/Makefile +@@ -72,6 +72,7 @@ obj-$(CONFIG_NET_VENDOR_PACKET_ENGINES) + obj-$(CONFIG_NET_VENDOR_PASEMI) += pasemi/ + obj-$(CONFIG_NET_VENDOR_QLOGIC) += qlogic/ + obj-$(CONFIG_NET_VENDOR_QUALCOMM) += qualcomm/ ++obj-$(CONFIG_NET_VENDOR_RALINK) += ralink/ + obj-$(CONFIG_NET_VENDOR_REALTEK) += realtek/ + obj-$(CONFIG_NET_VENDOR_RENESAS) += renesas/ + obj-$(CONFIG_NET_VENDOR_RDC) += rdc/ diff --git a/target/linux/ramips/patches-5.4/302-spi-nor-add-gd25q512.patch b/target/linux/ramips/patches-5.4/302-spi-nor-add-gd25q512.patch index 3e229bcc1b..52eeb3545b 100644 --- a/target/linux/ramips/patches-5.4/302-spi-nor-add-gd25q512.patch +++ b/target/linux/ramips/patches-5.4/302-spi-nor-add-gd25q512.patch @@ -1,6 +1,6 @@ --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/drivers/mtd/spi-nor/spi-nor.c -@@ -2238,6 +2238,11 @@ static const struct flash_info spi_nor_i +@@ -2265,6 +2265,11 @@ static const struct flash_info spi_nor_i SPI_NOR_4B_OPCODES | SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) .fixups = &gd25q256_fixups, }, diff --git a/target/linux/ramips/patches-5.4/990-NET-no-auto-carrier-off-support.patch b/target/linux/ramips/patches-5.4/990-NET-no-auto-carrier-off-support.patch new file mode 100644 index 0000000000..a31d1ac3a6 --- /dev/null +++ b/target/linux/ramips/patches-5.4/990-NET-no-auto-carrier-off-support.patch @@ -0,0 +1,47 @@ +From 0b6eb1e68290243d439ee330ea8d0b239a5aec69 Mon Sep 17 00:00:00 2001 +From: John Crispin +Date: Sun, 27 Jul 2014 09:38:50 +0100 +Subject: [PATCH 34/53] NET: multi phy support + +Signed-off-by: John Crispin +--- + drivers/net/phy/phy.c | 9 ++++++--- + include/linux/phy.h | 1 + + 2 files changed, 7 insertions(+), 3 deletions(-) + +--- a/drivers/net/phy/phy.c ++++ b/drivers/net/phy/phy.c +@@ -546,7 +546,10 @@ static int phy_check_link_status(struct + phy_link_up(phydev); + } else if (!phydev->link && phydev->state != PHY_NOLINK) { + phydev->state = PHY_NOLINK; +- phy_link_down(phydev, true); ++ if (!phydev->no_auto_carrier_off) ++ phy_link_down(phydev, true); ++ else ++ phy_link_down(phydev, false); + } + + return 0; +@@ -926,7 +929,10 @@ void phy_state_machine(struct work_struc + case PHY_HALTED: + if (phydev->link) { + phydev->link = 0; +- phy_link_down(phydev, true); ++ if (!phydev->no_auto_carrier_off) ++ phy_link_down(phydev, true); ++ else ++ phy_link_down(phydev, false); + } + do_suspend = true; + break; +--- a/include/linux/phy.h ++++ b/include/linux/phy.h +@@ -380,6 +380,7 @@ struct phy_device { + unsigned suspended_by_mdio_bus:1; + unsigned sysfs_links:1; + unsigned loopback_enabled:1; ++ unsigned no_auto_carrier_off:1; + + unsigned autoneg:1; + /* The most recently read link state */ diff --git a/target/linux/ramips/rt288x/config-4.14 b/target/linux/ramips/rt288x/config-4.14 index 9c713fd2bd..44b20edad6 100644 --- a/target/linux/ramips/rt288x/config-4.14 +++ b/target/linux/ramips/rt288x/config-4.14 @@ -149,11 +149,11 @@ CONFIG_MTD_SPLIT_UIMAGE_FW=y CONFIG_MTD_SPLIT_WRGG_FW=y CONFIG_NEED_DMA_MAP_STATE=y CONFIG_NEED_PER_CPU_KM=y -CONFIG_NET_MEDIATEK_MDIO=y -CONFIG_NET_MEDIATEK_MDIO_RT2880=y -CONFIG_NET_MEDIATEK_RT2880=y -CONFIG_NET_MEDIATEK_SOC=y -CONFIG_NET_VENDOR_MEDIATEK=y +CONFIG_NET_RALINK_MDIO=y +CONFIG_NET_RALINK_MDIO_RT2880=y +CONFIG_NET_RALINK_RT2880=y +CONFIG_NET_RALINK_SOC=y +CONFIG_NET_VENDOR_RALINK=y CONFIG_NLS=m CONFIG_NO_GENERIC_PCI_IOPORT_MAP=y # CONFIG_NO_IOPORT_MAP is not set diff --git a/target/linux/ramips/rt288x/config-5.4 b/target/linux/ramips/rt288x/config-5.4 new file mode 100644 index 0000000000..a999726d84 --- /dev/null +++ b/target/linux/ramips/rt288x/config-5.4 @@ -0,0 +1,228 @@ +CONFIG_ARCH_32BIT_OFF_T=y +CONFIG_ARCH_CLOCKSOURCE_DATA=y +CONFIG_ARCH_HAS_DMA_COHERENT_TO_PFN=y +CONFIG_ARCH_HAS_DMA_PREP_COHERENT=y +CONFIG_ARCH_HAS_DMA_WRITE_COMBINE=y +CONFIG_ARCH_HAS_ELF_RANDOMIZE=y +CONFIG_ARCH_HAS_RESET_CONTROLLER=y +CONFIG_ARCH_HAS_SYNC_DMA_FOR_DEVICE=y +CONFIG_ARCH_HAS_UNCACHED_SEGMENT=y +CONFIG_ARCH_HIBERNATION_POSSIBLE=y +CONFIG_ARCH_MMAP_RND_BITS_MAX=15 +CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=15 +CONFIG_ARCH_SUPPORTS_UPROBES=y +CONFIG_ARCH_SUSPEND_POSSIBLE=y +CONFIG_ARCH_USE_BUILTIN_BSWAP=y +CONFIG_ARCH_USE_MEMREMAP_PROT=y +CONFIG_ARCH_USE_QUEUED_RWLOCKS=y +CONFIG_ARCH_USE_QUEUED_SPINLOCKS=y +CONFIG_ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT=y +CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y +CONFIG_BLK_MQ_PCI=y +CONFIG_CEVT_R4K=y +CONFIG_CLKDEV_LOOKUP=y +CONFIG_CLONE_BACKWARDS=y +CONFIG_CMDLINE="rootfstype=squashfs,jffs2" +CONFIG_CMDLINE_BOOL=y +# CONFIG_CMDLINE_OVERRIDE is not set +CONFIG_COMPAT_32BIT_TIME=y +CONFIG_CPU_GENERIC_DUMP_TLB=y +CONFIG_CPU_HAS_LOAD_STORE_LR=y +CONFIG_CPU_HAS_PREFETCH=y +CONFIG_CPU_HAS_RIXI=y +CONFIG_CPU_HAS_SYNC=y +CONFIG_CPU_LITTLE_ENDIAN=y +CONFIG_CPU_MIPS32=y +# CONFIG_CPU_MIPS32_R1 is not set +CONFIG_CPU_MIPS32_R2=y +CONFIG_CPU_MIPSR2=y +CONFIG_CPU_NEEDS_NO_SMARTMIPS_OR_MICROMIPS=y +CONFIG_CPU_R4K_CACHE_TLB=y +CONFIG_CPU_SUPPORTS_32BIT_KERNEL=y +CONFIG_CPU_SUPPORTS_HIGHMEM=y +CONFIG_CPU_SUPPORTS_MSA=y +CONFIG_CRYPTO_RNG2=y +CONFIG_CSRC_R4K=y +CONFIG_DMA_NONCOHERENT=y +CONFIG_DMA_NONCOHERENT_CACHE_SYNC=y +# CONFIG_DTB_RT2880_EVAL is not set +CONFIG_DTB_RT_NONE=y +CONFIG_DTC=y +CONFIG_EARLY_PRINTK=y +CONFIG_EFI_EARLYCON=y +CONFIG_FIXED_PHY=y +CONFIG_FONT_8x16=y +CONFIG_FONT_AUTOSELECT=y +CONFIG_FONT_SUPPORT=y +CONFIG_FW_LOADER_PAGED_BUF=y +CONFIG_GENERIC_ALLOCATOR=y +CONFIG_GENERIC_ATOMIC64=y +CONFIG_GENERIC_CLOCKEVENTS=y +CONFIG_GENERIC_CMOS_UPDATE=y +CONFIG_GENERIC_CPU_AUTOPROBE=y +CONFIG_GENERIC_GETTIMEOFDAY=y +CONFIG_GENERIC_IOMAP=y +CONFIG_GENERIC_IRQ_CHIP=y +CONFIG_GENERIC_IRQ_EFFECTIVE_AFF_MASK=y +CONFIG_GENERIC_IRQ_SHOW=y +CONFIG_GENERIC_LIB_ASHLDI3=y +CONFIG_GENERIC_LIB_ASHRDI3=y +CONFIG_GENERIC_LIB_CMPDI2=y +CONFIG_GENERIC_LIB_LSHRDI3=y +CONFIG_GENERIC_LIB_UCMPDI2=y +CONFIG_GENERIC_PCI_IOMAP=y +CONFIG_GENERIC_PINCONF=y +CONFIG_GENERIC_SCHED_CLOCK=y +CONFIG_GENERIC_SMP_IDLE_THREAD=y +CONFIG_GENERIC_TIME_VSYSCALL=y +CONFIG_GPIOLIB=y +CONFIG_GPIO_RALINK=y +CONFIG_GPIO_SYSFS=y +CONFIG_HANDLE_DOMAIN_IRQ=y +CONFIG_HARDWARE_WATCHPOINTS=y +CONFIG_HAS_DMA=y +CONFIG_HAS_IOMEM=y +CONFIG_HAS_IOPORT_MAP=y +CONFIG_HAVE_ARCH_COMPILER_H=y +CONFIG_HAVE_ARCH_JUMP_LABEL=y +CONFIG_HAVE_ARCH_KGDB=y +CONFIG_HAVE_ARCH_SECCOMP_FILTER=y +CONFIG_HAVE_ARCH_TRACEHOOK=y +CONFIG_HAVE_ASM_MODVERSIONS=y +CONFIG_HAVE_CLK=y +CONFIG_HAVE_CONTEXT_TRACKING=y +CONFIG_HAVE_COPY_THREAD_TLS=y +CONFIG_HAVE_C_RECORDMCOUNT=y +CONFIG_HAVE_DEBUG_KMEMLEAK=y +CONFIG_HAVE_DEBUG_STACKOVERFLOW=y +CONFIG_HAVE_DMA_CONTIGUOUS=y +CONFIG_HAVE_DYNAMIC_FTRACE=y +CONFIG_HAVE_FAST_GUP=y +CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y +CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y +CONFIG_HAVE_FUNCTION_TRACER=y +CONFIG_HAVE_GENERIC_VDSO=y +CONFIG_HAVE_IDE=y +CONFIG_HAVE_IOREMAP_PROT=y +CONFIG_HAVE_IRQ_EXIT_ON_IRQ_STACK=y +CONFIG_HAVE_IRQ_TIME_ACCOUNTING=y +CONFIG_HAVE_KVM=y +CONFIG_HAVE_LD_DEAD_CODE_DATA_ELIMINATION=y +CONFIG_HAVE_MEMBLOCK_NODE_MAP=y +CONFIG_HAVE_MOD_ARCH_SPECIFIC=y +CONFIG_HAVE_NET_DSA=y +CONFIG_HAVE_OPROFILE=y +CONFIG_HAVE_PCI=y +CONFIG_HAVE_PERF_EVENTS=y +CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y +CONFIG_HAVE_RSEQ=y +CONFIG_HAVE_SYSCALL_TRACEPOINTS=y +CONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=y +CONFIG_HZ=250 +CONFIG_HZ_250=y +CONFIG_HZ_PERIODIC=y +CONFIG_INITRAMFS_SOURCE="" +CONFIG_IP17XX_PHY=y +CONFIG_IRQCHIP=y +CONFIG_IRQ_DOMAIN=y +CONFIG_IRQ_FORCED_THREADING=y +CONFIG_IRQ_INTC=y +CONFIG_IRQ_MIPS_CPU=y +CONFIG_IRQ_WORK=y +CONFIG_LIBFDT=y +CONFIG_LOCK_DEBUGGING_SUPPORT=y +CONFIG_MDIO_BUS=y +CONFIG_MDIO_DEVICE=y +CONFIG_MEMFD_CREATE=y +CONFIG_MIGRATION=y +CONFIG_MIPS=y +CONFIG_MIPS_ASID_BITS=8 +CONFIG_MIPS_ASID_SHIFT=0 +CONFIG_MIPS_CLOCK_VSYSCALL=y +# CONFIG_MIPS_CMDLINE_BUILTIN_EXTEND is not set +# CONFIG_MIPS_CMDLINE_DTB_EXTEND is not set +# CONFIG_MIPS_CMDLINE_FROM_BOOTLOADER is not set +CONFIG_MIPS_CMDLINE_FROM_DTB=y +# CONFIG_MIPS_ELF_APPENDED_DTB is not set +CONFIG_MIPS_L1_CACHE_SHIFT=4 +CONFIG_MIPS_L1_CACHE_SHIFT_4=y +# CONFIG_MIPS_NO_APPENDED_DTB is not set +CONFIG_MIPS_RAW_APPENDED_DTB=y +CONFIG_MIPS_SPRAM=y +CONFIG_MODULES_USE_ELF_REL=y +# CONFIG_MTD_CFI_INTELEXT is not set +CONFIG_MTD_CMDLINE_PARTS=y +CONFIG_MTD_PHYSMAP=y +CONFIG_MTD_SPI_NOR=y +CONFIG_MTD_SPLIT_LZMA_FW=y +CONFIG_MTD_SPLIT_UIMAGE_FW=y +CONFIG_MTD_SPLIT_WRGG_FW=y +CONFIG_NEED_DMA_MAP_STATE=y +CONFIG_NEED_PER_CPU_KM=y +CONFIG_NET_RALINK_MDIO=y +CONFIG_NET_RALINK_MDIO_RT2880=y +CONFIG_NET_RALINK_RT2880=y +CONFIG_NET_RALINK_SOC=y +CONFIG_NET_VENDOR_RALINK=y +CONFIG_NLS=m +CONFIG_NO_GENERIC_PCI_IOPORT_MAP=y +CONFIG_OF=y +CONFIG_OF_ADDRESS=y +CONFIG_OF_EARLY_FLATTREE=y +CONFIG_OF_FLATTREE=y +CONFIG_OF_GPIO=y +CONFIG_OF_IRQ=y +CONFIG_OF_KOBJ=y +CONFIG_OF_MDIO=y +CONFIG_OF_NET=y +CONFIG_PCI=y +CONFIG_PCI_DOMAINS=y +CONFIG_PCI_DRIVERS_LEGACY=y +# CONFIG_PCI_MT7621 is not set +# CONFIG_PCI_MT7621_PHY is not set +CONFIG_PERF_USE_VMALLOC=y +CONFIG_PGTABLE_LEVELS=2 +CONFIG_PHYLIB=y +# CONFIG_PHY_RALINK_USB is not set +CONFIG_PINCTRL=y +CONFIG_PINCTRL_RT2880=y +# CONFIG_PINCTRL_SINGLE is not set +CONFIG_RALINK=y +CONFIG_RALINK_WDT=y +CONFIG_RESET_CONTROLLER=y +CONFIG_SERIAL_8250_RT288X=y +CONFIG_SERIAL_MCTRL_GPIO=y +CONFIG_SERIAL_OF_PLATFORM=y +# CONFIG_SOC_MT7620 is not set +# CONFIG_SOC_MT7621 is not set +CONFIG_SOC_RT288X=y +# CONFIG_SOC_RT305X is not set +# CONFIG_SOC_RT3883 is not set +CONFIG_SPI=y +CONFIG_SPI_MASTER=y +CONFIG_SPI_MEM=y +# CONFIG_SPI_MT7621 is not set +CONFIG_SPI_RT2880=y +CONFIG_SRCU=y +CONFIG_SWCONFIG=y +CONFIG_SWPHY=y +CONFIG_SYSCTL_EXCEPTION_TRACE=y +CONFIG_SYS_HAS_CPU_MIPS32_R1=y +CONFIG_SYS_HAS_CPU_MIPS32_R2=y +CONFIG_SYS_HAS_EARLY_PRINTK=y +CONFIG_SYS_SUPPORTS_32BIT_KERNEL=y +CONFIG_SYS_SUPPORTS_ARBIT_HZ=y +CONFIG_SYS_SUPPORTS_LITTLE_ENDIAN=y +CONFIG_SYS_SUPPORTS_MIPS16=y +CONFIG_TARGET_ISA_REV=2 +CONFIG_TICK_CPU_ACCOUNTING=y +CONFIG_TINY_SRCU=y +CONFIG_USB=m +CONFIG_USB_COMMON=m +CONFIG_USB_EHCI_HCD=m +CONFIG_USB_EHCI_HCD_PLATFORM=m +CONFIG_USB_OHCI_HCD=m +CONFIG_USB_OHCI_HCD_PLATFORM=m +CONFIG_USB_SUPPORT=y +CONFIG_USE_OF=y +CONFIG_WATCHDOG_CORE=y diff --git a/target/linux/ramips/rt305x/base-files/etc/board.d/02_network b/target/linux/ramips/rt305x/base-files/etc/board.d/02_network index 5efcd53955..d6ba16f7a8 100755 --- a/target/linux/ramips/rt305x/base-files/etc/board.d/02_network +++ b/target/linux/ramips/rt305x/base-files/etc/board.d/02_network @@ -110,6 +110,8 @@ ramips_setup_interfaces() "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "4:wan:5" "6@eth0" ;; huawei,d105) + ucidef_add_switch "switch0" + ucidef_add_switch_attr "switch0" "enable" "false" ucidef_set_interface_lan "eth0" ;; huawei,hg255d) diff --git a/target/linux/ramips/rt305x/config-4.14 b/target/linux/ramips/rt305x/config-4.14 index 60197a1eb8..4f3234f497 100644 --- a/target/linux/ramips/rt305x/config-4.14 +++ b/target/linux/ramips/rt305x/config-4.14 @@ -140,10 +140,10 @@ CONFIG_MTD_SPLIT_SEAMA_FW=y CONFIG_MTD_SPLIT_UIMAGE_FW=y CONFIG_NEED_DMA_MAP_STATE=y CONFIG_NEED_PER_CPU_KM=y -CONFIG_NET_MEDIATEK_ESW_RT3050=y -CONFIG_NET_MEDIATEK_RT3050=y -CONFIG_NET_MEDIATEK_SOC=y -CONFIG_NET_VENDOR_MEDIATEK=y +CONFIG_NET_RALINK_ESW_RT3050=y +CONFIG_NET_RALINK_RT3050=y +CONFIG_NET_RALINK_SOC=y +CONFIG_NET_VENDOR_RALINK=y CONFIG_NO_GENERIC_PCI_IOPORT_MAP=y # CONFIG_NO_IOPORT_MAP is not set CONFIG_OF=y diff --git a/target/linux/ramips/rt305x/config-5.4 b/target/linux/ramips/rt305x/config-5.4 new file mode 100644 index 0000000000..82b842e6b5 --- /dev/null +++ b/target/linux/ramips/rt305x/config-5.4 @@ -0,0 +1,227 @@ +CONFIG_ARCH_32BIT_OFF_T=y +CONFIG_ARCH_CLOCKSOURCE_DATA=y +CONFIG_ARCH_HAS_DMA_COHERENT_TO_PFN=y +CONFIG_ARCH_HAS_DMA_PREP_COHERENT=y +CONFIG_ARCH_HAS_DMA_WRITE_COMBINE=y +CONFIG_ARCH_HAS_ELF_RANDOMIZE=y +CONFIG_ARCH_HAS_RESET_CONTROLLER=y +CONFIG_ARCH_HAS_SYNC_DMA_FOR_DEVICE=y +CONFIG_ARCH_HAS_UNCACHED_SEGMENT=y +CONFIG_ARCH_HIBERNATION_POSSIBLE=y +CONFIG_ARCH_MMAP_RND_BITS_MAX=15 +CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=15 +CONFIG_ARCH_SUPPORTS_UPROBES=y +CONFIG_ARCH_SUSPEND_POSSIBLE=y +CONFIG_ARCH_USE_BUILTIN_BSWAP=y +CONFIG_ARCH_USE_MEMREMAP_PROT=y +CONFIG_ARCH_USE_QUEUED_RWLOCKS=y +CONFIG_ARCH_USE_QUEUED_SPINLOCKS=y +CONFIG_ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT=y +CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y +CONFIG_CEVT_R4K=y +CONFIG_CEVT_SYSTICK_QUIRK=y +CONFIG_CLKDEV_LOOKUP=y +CONFIG_CLKEVT_RT3352=y +CONFIG_CLKSRC_MMIO=y +CONFIG_CLONE_BACKWARDS=y +CONFIG_CMDLINE="rootfstype=squashfs,jffs2" +CONFIG_CMDLINE_BOOL=y +# CONFIG_CMDLINE_OVERRIDE is not set +CONFIG_COMPAT_32BIT_TIME=y +CONFIG_CPU_GENERIC_DUMP_TLB=y +CONFIG_CPU_HAS_LOAD_STORE_LR=y +CONFIG_CPU_HAS_PREFETCH=y +CONFIG_CPU_HAS_RIXI=y +CONFIG_CPU_HAS_SYNC=y +CONFIG_CPU_LITTLE_ENDIAN=y +CONFIG_CPU_MIPS32=y +# CONFIG_CPU_MIPS32_R1 is not set +CONFIG_CPU_MIPS32_R2=y +CONFIG_CPU_MIPSR2=y +CONFIG_CPU_NEEDS_NO_SMARTMIPS_OR_MICROMIPS=y +CONFIG_CPU_R4K_CACHE_TLB=y +CONFIG_CPU_SUPPORTS_32BIT_KERNEL=y +CONFIG_CPU_SUPPORTS_HIGHMEM=y +CONFIG_CPU_SUPPORTS_MSA=y +CONFIG_CRYPTO_RNG2=y +CONFIG_CSRC_R4K=y +CONFIG_DEBUG_PINCTRL=y +CONFIG_DMA_NONCOHERENT=y +CONFIG_DMA_NONCOHERENT_CACHE_SYNC=y +# CONFIG_DMA_RALINK is not set +# CONFIG_DTB_RT305X_EVAL is not set +CONFIG_DTB_RT_NONE=y +CONFIG_DTC=y +CONFIG_EARLY_PRINTK=y +CONFIG_EFI_EARLYCON=y +CONFIG_FIXED_PHY=y +CONFIG_FONT_8x16=y +CONFIG_FONT_AUTOSELECT=y +CONFIG_FONT_SUPPORT=y +CONFIG_FW_LOADER_PAGED_BUF=y +CONFIG_GENERIC_ATOMIC64=y +CONFIG_GENERIC_CLOCKEVENTS=y +CONFIG_GENERIC_CMOS_UPDATE=y +CONFIG_GENERIC_CPU_AUTOPROBE=y +CONFIG_GENERIC_GETTIMEOFDAY=y +CONFIG_GENERIC_IOMAP=y +CONFIG_GENERIC_IRQ_CHIP=y +CONFIG_GENERIC_IRQ_EFFECTIVE_AFF_MASK=y +CONFIG_GENERIC_IRQ_SHOW=y +CONFIG_GENERIC_LIB_ASHLDI3=y +CONFIG_GENERIC_LIB_ASHRDI3=y +CONFIG_GENERIC_LIB_CMPDI2=y +CONFIG_GENERIC_LIB_LSHRDI3=y +CONFIG_GENERIC_LIB_UCMPDI2=y +CONFIG_GENERIC_PCI_IOMAP=y +CONFIG_GENERIC_PHY=y +CONFIG_GENERIC_PINCONF=y +CONFIG_GENERIC_SCHED_CLOCK=y +CONFIG_GENERIC_SMP_IDLE_THREAD=y +CONFIG_GENERIC_TIME_VSYSCALL=y +CONFIG_GPIOLIB=y +CONFIG_GPIO_RALINK=y +CONFIG_GPIO_SYSFS=y +CONFIG_HANDLE_DOMAIN_IRQ=y +CONFIG_HARDWARE_WATCHPOINTS=y +CONFIG_HAS_DMA=y +CONFIG_HAS_IOMEM=y +CONFIG_HAS_IOPORT_MAP=y +CONFIG_HAVE_ARCH_COMPILER_H=y +CONFIG_HAVE_ARCH_JUMP_LABEL=y +CONFIG_HAVE_ARCH_KGDB=y +CONFIG_HAVE_ARCH_SECCOMP_FILTER=y +CONFIG_HAVE_ARCH_TRACEHOOK=y +CONFIG_HAVE_ASM_MODVERSIONS=y +CONFIG_HAVE_CLK=y +CONFIG_HAVE_CONTEXT_TRACKING=y +CONFIG_HAVE_COPY_THREAD_TLS=y +CONFIG_HAVE_C_RECORDMCOUNT=y +CONFIG_HAVE_DEBUG_KMEMLEAK=y +CONFIG_HAVE_DEBUG_STACKOVERFLOW=y +CONFIG_HAVE_DMA_CONTIGUOUS=y +CONFIG_HAVE_DYNAMIC_FTRACE=y +CONFIG_HAVE_FAST_GUP=y +CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y +CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y +CONFIG_HAVE_FUNCTION_TRACER=y +CONFIG_HAVE_GENERIC_VDSO=y +CONFIG_HAVE_IDE=y +CONFIG_HAVE_IOREMAP_PROT=y +CONFIG_HAVE_IRQ_EXIT_ON_IRQ_STACK=y +CONFIG_HAVE_IRQ_TIME_ACCOUNTING=y +CONFIG_HAVE_KVM=y +CONFIG_HAVE_LD_DEAD_CODE_DATA_ELIMINATION=y +CONFIG_HAVE_MEMBLOCK_NODE_MAP=y +CONFIG_HAVE_MOD_ARCH_SPECIFIC=y +CONFIG_HAVE_NET_DSA=y +CONFIG_HAVE_OPROFILE=y +CONFIG_HAVE_PERF_EVENTS=y +CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y +CONFIG_HAVE_RSEQ=y +CONFIG_HAVE_SYSCALL_TRACEPOINTS=y +CONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=y +CONFIG_HZ=250 +CONFIG_HZ_250=y +CONFIG_HZ_PERIODIC=y +CONFIG_INITRAMFS_SOURCE="" +CONFIG_IRQCHIP=y +CONFIG_IRQ_DOMAIN=y +CONFIG_IRQ_FORCED_THREADING=y +CONFIG_IRQ_INTC=y +CONFIG_IRQ_MIPS_CPU=y +CONFIG_IRQ_WORK=y +CONFIG_LIBFDT=y +CONFIG_LOCK_DEBUGGING_SUPPORT=y +CONFIG_MDIO_BUS=y +CONFIG_MDIO_DEVICE=y +CONFIG_MEMFD_CREATE=y +CONFIG_MFD_SYSCON=y +CONFIG_MIGRATION=y +CONFIG_MIPS=y +CONFIG_MIPS_ASID_BITS=8 +CONFIG_MIPS_ASID_SHIFT=0 +CONFIG_MIPS_CLOCK_VSYSCALL=y +# CONFIG_MIPS_CMDLINE_BUILTIN_EXTEND is not set +# CONFIG_MIPS_CMDLINE_DTB_EXTEND is not set +# CONFIG_MIPS_CMDLINE_FROM_BOOTLOADER is not set +CONFIG_MIPS_CMDLINE_FROM_DTB=y +# CONFIG_MIPS_ELF_APPENDED_DTB is not set +CONFIG_MIPS_L1_CACHE_SHIFT=5 +# CONFIG_MIPS_NO_APPENDED_DTB is not set +CONFIG_MIPS_RAW_APPENDED_DTB=y +CONFIG_MIPS_SPRAM=y +CONFIG_MODULES_USE_ELF_REL=y +# CONFIG_MTD_CFI_INTELEXT is not set +CONFIG_MTD_CMDLINE_PARTS=y +CONFIG_MTD_PHYSMAP=y +CONFIG_MTD_SPI_NOR=y +CONFIG_MTD_SPI_NOR_USE_4K_SECTORS=y +CONFIG_MTD_SPI_NOR_USE_4K_SECTORS_LIMIT=16384 +CONFIG_MTD_SPLIT_JIMAGE_FW=y +CONFIG_MTD_SPLIT_SEAMA_FW=y +CONFIG_MTD_SPLIT_UIMAGE_FW=y +CONFIG_NEED_DMA_MAP_STATE=y +CONFIG_NEED_PER_CPU_KM=y +CONFIG_NET_RALINK_ESW_RT3050=y +CONFIG_NET_RALINK_RT3050=y +CONFIG_NET_RALINK_SOC=y +CONFIG_NET_VENDOR_RALINK=y +CONFIG_NO_GENERIC_PCI_IOPORT_MAP=y +CONFIG_OF=y +CONFIG_OF_ADDRESS=y +CONFIG_OF_EARLY_FLATTREE=y +CONFIG_OF_FLATTREE=y +CONFIG_OF_GPIO=y +CONFIG_OF_IRQ=y +CONFIG_OF_KOBJ=y +CONFIG_OF_MDIO=y +CONFIG_OF_NET=y +CONFIG_PCI_DRIVERS_LEGACY=y +# CONFIG_PCI_MT7621 is not set +# CONFIG_PCI_MT7621_PHY is not set +CONFIG_PERF_USE_VMALLOC=y +CONFIG_PGTABLE_LEVELS=2 +CONFIG_PHYLIB=y +CONFIG_PHY_RALINK_USB=y +CONFIG_PINCTRL=y +CONFIG_PINCTRL_RT2880=y +# CONFIG_PINCTRL_SINGLE is not set +CONFIG_RALINK=y +# CONFIG_RALINK_ILL_ACC is not set +CONFIG_RALINK_WDT=y +CONFIG_REGMAP=y +CONFIG_REGMAP_MMIO=y +CONFIG_RESET_CONTROLLER=y +CONFIG_SERIAL_8250_RT288X=y +CONFIG_SERIAL_MCTRL_GPIO=y +CONFIG_SERIAL_OF_PLATFORM=y +# CONFIG_SOC_MT7620 is not set +# CONFIG_SOC_MT7621 is not set +# CONFIG_SOC_RT288X is not set +CONFIG_SOC_RT305X=y +# CONFIG_SOC_RT3883 is not set +CONFIG_SPI=y +CONFIG_SPI_MASTER=y +CONFIG_SPI_MEM=y +# CONFIG_SPI_MT7621 is not set +CONFIG_SPI_RT2880=y +CONFIG_SRCU=y +CONFIG_SWCONFIG=y +CONFIG_SWPHY=y +CONFIG_SYSCTL_EXCEPTION_TRACE=y +CONFIG_SYS_HAS_CPU_MIPS32_R1=y +CONFIG_SYS_HAS_CPU_MIPS32_R2=y +CONFIG_SYS_HAS_EARLY_PRINTK=y +CONFIG_SYS_SUPPORTS_32BIT_KERNEL=y +CONFIG_SYS_SUPPORTS_ARBIT_HZ=y +CONFIG_SYS_SUPPORTS_LITTLE_ENDIAN=y +CONFIG_SYS_SUPPORTS_MIPS16=y +CONFIG_TARGET_ISA_REV=2 +CONFIG_TICK_CPU_ACCOUNTING=y +CONFIG_TIMER_OF=y +CONFIG_TIMER_PROBE=y +CONFIG_TINY_SRCU=y +CONFIG_USB_SUPPORT=y +CONFIG_USE_OF=y +CONFIG_WATCHDOG_CORE=y diff --git a/target/linux/ramips/rt3883/config-4.14 b/target/linux/ramips/rt3883/config-4.14 index f16b09deb0..2eda81f160 100644 --- a/target/linux/ramips/rt3883/config-4.14 +++ b/target/linux/ramips/rt3883/config-4.14 @@ -153,11 +153,11 @@ CONFIG_MTD_SPLIT_SEAMA_FW=y CONFIG_MTD_SPLIT_UIMAGE_FW=y CONFIG_NEED_DMA_MAP_STATE=y CONFIG_NEED_PER_CPU_KM=y -CONFIG_NET_MEDIATEK_MDIO=y -CONFIG_NET_MEDIATEK_MDIO_RT2880=y -CONFIG_NET_MEDIATEK_RT3883=y -CONFIG_NET_MEDIATEK_SOC=y -CONFIG_NET_VENDOR_MEDIATEK=y +CONFIG_NET_RALINK_MDIO=y +CONFIG_NET_RALINK_MDIO_RT2880=y +CONFIG_NET_RALINK_RT3883=y +CONFIG_NET_RALINK_SOC=y +CONFIG_NET_VENDOR_RALINK=y CONFIG_NO_GENERIC_PCI_IOPORT_MAP=y # CONFIG_NO_IOPORT_MAP is not set CONFIG_OF=y diff --git a/target/linux/ramips/rt3883/config-5.4 b/target/linux/ramips/rt3883/config-5.4 new file mode 100644 index 0000000000..356a57104d --- /dev/null +++ b/target/linux/ramips/rt3883/config-5.4 @@ -0,0 +1,230 @@ +CONFIG_AR8216_PHY=y +CONFIG_ARCH_32BIT_OFF_T=y +CONFIG_ARCH_CLOCKSOURCE_DATA=y +CONFIG_ARCH_HAS_DMA_COHERENT_TO_PFN=y +CONFIG_ARCH_HAS_DMA_PREP_COHERENT=y +CONFIG_ARCH_HAS_DMA_WRITE_COMBINE=y +CONFIG_ARCH_HAS_ELF_RANDOMIZE=y +CONFIG_ARCH_HAS_RESET_CONTROLLER=y +CONFIG_ARCH_HAS_SYNC_DMA_FOR_DEVICE=y +CONFIG_ARCH_HAS_UNCACHED_SEGMENT=y +CONFIG_ARCH_HIBERNATION_POSSIBLE=y +CONFIG_ARCH_MMAP_RND_BITS_MAX=15 +CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=15 +CONFIG_ARCH_SUPPORTS_UPROBES=y +CONFIG_ARCH_SUSPEND_POSSIBLE=y +CONFIG_ARCH_USE_BUILTIN_BSWAP=y +CONFIG_ARCH_USE_MEMREMAP_PROT=y +CONFIG_ARCH_USE_QUEUED_RWLOCKS=y +CONFIG_ARCH_USE_QUEUED_SPINLOCKS=y +CONFIG_ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT=y +CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y +CONFIG_BLK_MQ_PCI=y +CONFIG_CEVT_R4K=y +CONFIG_CLKDEV_LOOKUP=y +CONFIG_CLONE_BACKWARDS=y +CONFIG_CMDLINE="rootfstype=squashfs,jffs2" +CONFIG_CMDLINE_BOOL=y +# CONFIG_CMDLINE_OVERRIDE is not set +CONFIG_COMPAT_32BIT_TIME=y +CONFIG_CPU_GENERIC_DUMP_TLB=y +CONFIG_CPU_HAS_LOAD_STORE_LR=y +CONFIG_CPU_HAS_PREFETCH=y +CONFIG_CPU_HAS_RIXI=y +CONFIG_CPU_HAS_SYNC=y +CONFIG_CPU_LITTLE_ENDIAN=y +CONFIG_CPU_MIPS32=y +# CONFIG_CPU_MIPS32_R1 is not set +CONFIG_CPU_MIPS32_R2=y +CONFIG_CPU_MIPSR2=y +CONFIG_CPU_NEEDS_NO_SMARTMIPS_OR_MICROMIPS=y +CONFIG_CPU_R4K_CACHE_TLB=y +CONFIG_CPU_SUPPORTS_32BIT_KERNEL=y +CONFIG_CPU_SUPPORTS_HIGHMEM=y +CONFIG_CPU_SUPPORTS_MSA=y +CONFIG_CRYPTO_RNG2=y +CONFIG_CSRC_R4K=y +CONFIG_DEBUG_PINCTRL=y +CONFIG_DMA_NONCOHERENT=y +CONFIG_DMA_NONCOHERENT_CACHE_SYNC=y +# CONFIG_DMA_RALINK is not set +# CONFIG_DTB_RT3883_EVAL is not set +CONFIG_DTB_RT_NONE=y +CONFIG_DTC=y +CONFIG_EARLY_PRINTK=y +CONFIG_EFI_EARLYCON=y +CONFIG_ETHERNET_PACKET_MANGLE=y +CONFIG_FIXED_PHY=y +CONFIG_FONT_8x16=y +CONFIG_FONT_AUTOSELECT=y +CONFIG_FONT_SUPPORT=y +CONFIG_FW_LOADER_PAGED_BUF=y +CONFIG_GENERIC_ATOMIC64=y +CONFIG_GENERIC_CLOCKEVENTS=y +CONFIG_GENERIC_CMOS_UPDATE=y +CONFIG_GENERIC_CPU_AUTOPROBE=y +CONFIG_GENERIC_GETTIMEOFDAY=y +CONFIG_GENERIC_IOMAP=y +CONFIG_GENERIC_IRQ_CHIP=y +CONFIG_GENERIC_IRQ_EFFECTIVE_AFF_MASK=y +CONFIG_GENERIC_IRQ_SHOW=y +CONFIG_GENERIC_LIB_ASHLDI3=y +CONFIG_GENERIC_LIB_ASHRDI3=y +CONFIG_GENERIC_LIB_CMPDI2=y +CONFIG_GENERIC_LIB_LSHRDI3=y +CONFIG_GENERIC_LIB_UCMPDI2=y +CONFIG_GENERIC_PCI_IOMAP=y +CONFIG_GENERIC_PHY=y +CONFIG_GENERIC_PINCONF=y +CONFIG_GENERIC_SCHED_CLOCK=y +CONFIG_GENERIC_SMP_IDLE_THREAD=y +CONFIG_GENERIC_TIME_VSYSCALL=y +CONFIG_GPIOLIB=y +CONFIG_GPIO_RALINK=y +CONFIG_GPIO_SYSFS=y +CONFIG_HANDLE_DOMAIN_IRQ=y +CONFIG_HARDWARE_WATCHPOINTS=y +CONFIG_HAS_DMA=y +CONFIG_HAS_IOMEM=y +CONFIG_HAS_IOPORT_MAP=y +CONFIG_HAVE_ARCH_COMPILER_H=y +CONFIG_HAVE_ARCH_JUMP_LABEL=y +CONFIG_HAVE_ARCH_KGDB=y +CONFIG_HAVE_ARCH_SECCOMP_FILTER=y +CONFIG_HAVE_ARCH_TRACEHOOK=y +CONFIG_HAVE_ASM_MODVERSIONS=y +CONFIG_HAVE_CLK=y +CONFIG_HAVE_CONTEXT_TRACKING=y +CONFIG_HAVE_COPY_THREAD_TLS=y +CONFIG_HAVE_C_RECORDMCOUNT=y +CONFIG_HAVE_DEBUG_KMEMLEAK=y +CONFIG_HAVE_DEBUG_STACKOVERFLOW=y +CONFIG_HAVE_DMA_CONTIGUOUS=y +CONFIG_HAVE_DYNAMIC_FTRACE=y +CONFIG_HAVE_FAST_GUP=y +CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y +CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y +CONFIG_HAVE_FUNCTION_TRACER=y +CONFIG_HAVE_GENERIC_VDSO=y +CONFIG_HAVE_IDE=y +CONFIG_HAVE_IOREMAP_PROT=y +CONFIG_HAVE_IRQ_EXIT_ON_IRQ_STACK=y +CONFIG_HAVE_IRQ_TIME_ACCOUNTING=y +CONFIG_HAVE_KVM=y +CONFIG_HAVE_LD_DEAD_CODE_DATA_ELIMINATION=y +CONFIG_HAVE_MEMBLOCK_NODE_MAP=y +CONFIG_HAVE_MOD_ARCH_SPECIFIC=y +CONFIG_HAVE_NET_DSA=y +CONFIG_HAVE_OPROFILE=y +CONFIG_HAVE_PCI=y +CONFIG_HAVE_PERF_EVENTS=y +CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y +CONFIG_HAVE_RSEQ=y +CONFIG_HAVE_SYSCALL_TRACEPOINTS=y +CONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=y +CONFIG_HZ=250 +CONFIG_HZ_250=y +CONFIG_HZ_PERIODIC=y +CONFIG_INITRAMFS_SOURCE="" +CONFIG_IRQCHIP=y +CONFIG_IRQ_DOMAIN=y +CONFIG_IRQ_FORCED_THREADING=y +CONFIG_IRQ_INTC=y +CONFIG_IRQ_MIPS_CPU=y +CONFIG_IRQ_WORK=y +CONFIG_LIBFDT=y +CONFIG_LOCK_DEBUGGING_SUPPORT=y +CONFIG_MDIO_BUS=y +CONFIG_MDIO_DEVICE=y +CONFIG_MEMFD_CREATE=y +CONFIG_MFD_SYSCON=y +CONFIG_MIGRATION=y +CONFIG_MIPS=y +CONFIG_MIPS_ASID_BITS=8 +CONFIG_MIPS_ASID_SHIFT=0 +CONFIG_MIPS_CLOCK_VSYSCALL=y +# CONFIG_MIPS_CMDLINE_BUILTIN_EXTEND is not set +# CONFIG_MIPS_CMDLINE_DTB_EXTEND is not set +# CONFIG_MIPS_CMDLINE_FROM_BOOTLOADER is not set +CONFIG_MIPS_CMDLINE_FROM_DTB=y +# CONFIG_MIPS_ELF_APPENDED_DTB is not set +CONFIG_MIPS_L1_CACHE_SHIFT=5 +# CONFIG_MIPS_NO_APPENDED_DTB is not set +CONFIG_MIPS_RAW_APPENDED_DTB=y +CONFIG_MIPS_SPRAM=y +CONFIG_MODULES_USE_ELF_REL=y +# CONFIG_MTD_CFI_INTELEXT is not set +CONFIG_MTD_CMDLINE_PARTS=y +CONFIG_MTD_PHYSMAP=y +CONFIG_MTD_SPI_NOR=y +CONFIG_MTD_SPI_NOR_USE_4K_SECTORS=y +CONFIG_MTD_SPI_NOR_USE_4K_SECTORS_LIMIT=16384 +CONFIG_MTD_SPLIT_SEAMA_FW=y +CONFIG_MTD_SPLIT_UIMAGE_FW=y +CONFIG_NEED_DMA_MAP_STATE=y +CONFIG_NEED_PER_CPU_KM=y +CONFIG_NET_RALINK_MDIO=y +CONFIG_NET_RALINK_MDIO_RT2880=y +CONFIG_NET_RALINK_RT3883=y +CONFIG_NET_RALINK_SOC=y +CONFIG_NET_VENDOR_RALINK=y +CONFIG_NO_GENERIC_PCI_IOPORT_MAP=y +CONFIG_OF=y +CONFIG_OF_ADDRESS=y +CONFIG_OF_EARLY_FLATTREE=y +CONFIG_OF_FLATTREE=y +CONFIG_OF_GPIO=y +CONFIG_OF_IRQ=y +CONFIG_OF_KOBJ=y +CONFIG_OF_MDIO=y +CONFIG_OF_NET=y +CONFIG_PCI=y +CONFIG_PCI_DOMAINS=y +CONFIG_PCI_DRIVERS_LEGACY=y +# CONFIG_PCI_MT7621 is not set +# CONFIG_PCI_MT7621_PHY is not set +CONFIG_PERF_USE_VMALLOC=y +CONFIG_PGTABLE_LEVELS=2 +CONFIG_PHYLIB=y +CONFIG_PHY_RALINK_USB=y +CONFIG_PINCTRL=y +CONFIG_PINCTRL_RT2880=y +# CONFIG_PINCTRL_SINGLE is not set +CONFIG_RALINK=y +CONFIG_RALINK_WDT=y +CONFIG_REGMAP=y +CONFIG_REGMAP_MMIO=y +CONFIG_RESET_CONTROLLER=y +CONFIG_RTL8366_SMI=y +CONFIG_RTL8367B_PHY=y +CONFIG_RTL8367_PHY=y +CONFIG_SERIAL_8250_RT288X=y +CONFIG_SERIAL_MCTRL_GPIO=y +CONFIG_SERIAL_OF_PLATFORM=y +# CONFIG_SOC_MT7620 is not set +# CONFIG_SOC_MT7621 is not set +# CONFIG_SOC_RT288X is not set +# CONFIG_SOC_RT305X is not set +CONFIG_SOC_RT3883=y +CONFIG_SPI=y +CONFIG_SPI_MASTER=y +CONFIG_SPI_MEM=y +# CONFIG_SPI_MT7621 is not set +CONFIG_SPI_RT2880=y +CONFIG_SRCU=y +CONFIG_SWCONFIG=y +CONFIG_SWPHY=y +CONFIG_SYSCTL_EXCEPTION_TRACE=y +CONFIG_SYS_HAS_CPU_MIPS32_R1=y +CONFIG_SYS_HAS_CPU_MIPS32_R2=y +CONFIG_SYS_HAS_EARLY_PRINTK=y +CONFIG_SYS_SUPPORTS_32BIT_KERNEL=y +CONFIG_SYS_SUPPORTS_ARBIT_HZ=y +CONFIG_SYS_SUPPORTS_LITTLE_ENDIAN=y +CONFIG_SYS_SUPPORTS_MIPS16=y +CONFIG_TARGET_ISA_REV=2 +CONFIG_TICK_CPU_ACCOUNTING=y +CONFIG_TINY_SRCU=y +CONFIG_USB_SUPPORT=y +CONFIG_USE_OF=y +CONFIG_WATCHDOG_CORE=y