Re: [OpenWrt-Devel] [PATCH netifd] bridge: allow enabling or disabling the multicast querier independently of IGMP snooping
On 17/02/2015 18:16, Matthias Schiffer wrote: On 01/28/2015 11:00 PM, John Crispin wrote: On 28/01/2015 21:31, Matthias Schiffer wrote: On 01/28/2015 11:54 AM, John Crispin wrote: [...] this should not break anything with multiple ubus calls. the default behavior also wont change as we set cfg-multicast_querier = true; Please make those changes to the patch and resend it. I just re-read the whole function and noticed why I made my change like this in the first place: all values in bridge_config are always reset to their defaults at the top of bridge_apply_settings() anyways, not regarding if the blobmsg contains a new value for the options or not. yep, i will cook up a patch tomorrow ... Hi, any news on this? i did make a patch, apparently i never pushed it. will go searching during the day ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] ar71xx: TL-WA7210n v2 support
On 17.02.2015 21:14, Hendrik Frenzel wrote: This patch adds support for TP-Link TL-WA7210n[0] [0] http://www.tplink.com/en/products/details/?model=TL-WA7210N ./scripts/checkpatch.pl complains several times about: - WARNING: please, no space before tabs - WARNING: line over 80 characters - ERROR: code indent should use tabs where possible - ERROR: do not use C99 // comments ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] ar71xx: TL-WA7210n v2 support
On Wed, Feb 18, 2015 at 10:25:18AM +0100, Dirk Neukirchen wrote: On 17.02.2015 21:14, Hendrik Frenzel wrote: This patch adds support for TP-Link TL-WA7210n[0] [0] http://www.tplink.com/en/products/details/?model=TL-WA7210N ./scripts/checkpatch.pl complains several times about: - WARNING: please, no space before tabs - WARNING: line over 80 characters - ERROR: code indent should use tabs where possible - ERROR: do not use C99 // comments Thanks you or reviewig this, I was not aware of this script. Now I fixed all errors and most warnings. Signed-off-by: Hendrik Frenzel hfren...@scunc.net --- .../ar71xx/base-files/etc/uci-defaults/01_leds | 9 ++ .../ar71xx/base-files/etc/uci-defaults/02_network | 1 + target/linux/ar71xx/base-files/lib/ar71xx.sh | 6 + .../ar71xx/base-files/lib/upgrade/platform.sh | 1 + target/linux/ar71xx/config-3.18| 1 + .../files/arch/mips/ath79/mach-tl-wa7210n-v2.c | 125 + target/linux/ar71xx/generic/profiles/tp-link.mk| 10 ++ target/linux/ar71xx/image/Makefile | 2 + .../610-MIPS-ath79-openwrt-machines.patch | 18 ++- tools/firmware-utils/src/mktplinkfw.c | 6 + 10 files changed, 176 insertions(+), 3 deletions(-) create mode 100644 target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wa7210n-v2.c diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds index a4838d6..a83a4fc 100644 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds @@ -298,6 +298,15 @@ tl-mr3420-v2) ucidef_set_led_usbdev usb USB tp-link:green:3g 1-1 ;; +tl-wa7210n-v2) + ucidef_set_led_netdev lan LAN tp-link:green:lan eth0 + ucidef_set_rssimon wlan0 4 1 + ucidef_set_led_rssi rssilow RSSILOW tp-link:green:signal1 wlan0 1 100 0 13 + ucidef_set_led_rssi rssimediumlow RSSIMEDIUMLOW tp-link:green:signal2 wlan0 26 100 -25 13 + ucidef_set_led_rssi rssimediumhigh RSSIMEDIUMHIGH tp-link:green:signal3 wlan0 51 100 -50 13 + ucidef_set_led_rssi rssihigh RSSIHIGH tp-link:green:signal4 wlan0 76 100 -75 13 + ;; + tl-wa750re) ucidef_set_led_netdev lan LAN tp-link:orange:lan eth0 ucidef_set_led_wlan wlan WLAN tp-link:orange:wlan phy0tpt diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network index efc212e..fdefb5a 100644 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network @@ -325,6 +325,7 @@ tl-mr3020 |\ tl-mr3040 |\ tl-mr3040-v2 |\ tl-wa701nd-v2 |\ +tl-wa7210n-v2 |\ tl-wa750re |\ tl-wa850re |\ tl-wa830re-v2 |\ diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 6247f86..52acc6b 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -130,6 +130,9 @@ tplink_board_detect() { 075000*) model=TP-Link TL-WA750RE ;; + 721000*) + model=TP-Link TL-WA7210N + ;; 751000*) model=TP-Link TL-WA7510N ;; @@ -651,6 +654,9 @@ ar71xx_board_detect() { *TL-WA701ND v2) name=tl-wa701nd-v2 ;; + *TL-WA7210N v2) + name=tl-wa7210n-v2 + ;; *TL-WA750RE) name=tl-wa750re ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index f81c0ff..15fcf89 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -312,6 +312,7 @@ platform_check_image() { tl-mr3420 | \ tl-mr3420-v2 | \ tl-wa701nd-v2 | \ + tl-wa7210n-v2 | \ tl-wa7510n | \ tl-wa750re | \ tl-wa850re | \ diff --git a/target/linux/ar71xx/config-3.18 b/target/linux/ar71xx/config-3.18 index eefbf05..9386b4e 100644 --- a/target/linux/ar71xx/config-3.18 +++ b/target/linux/ar71xx/config-3.18 @@ -98,6 +98,7 @@ CONFIG_ATH79_MACH_TL_MR13U=y CONFIG_ATH79_MACH_TL_MR3020=y CONFIG_ATH79_MACH_TL_MR3X20=y CONFIG_ATH79_MACH_TL_WA701ND_V2=y +CONFIG_ATH79_MACH_TL_WA7210N_V2=y CONFIG_ATH79_MACH_TL_WA830RE_V2=y CONFIG_ATH79_MACH_TL_WA901ND=y CONFIG_ATH79_MACH_TL_WA901ND_V2=y diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wa7210n-v2.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wa7210n-v2.c new file mode 100644 index 000..276353a --- /dev/null +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wa7210n-v2.c @@ -0,0 +1,125 @@ +/* + * TP-LINK TL-WA7210N v2.1 board support + * + * Copyright (C) 2011 dongyuqi 729650...@qq.com + *
Re: [OpenWrt-Devel] What should I do if I want to use the RGMII interface on Ralink RT3052?
Hi! On 19 Feb 2015, at 04:14, 郭传鈜 gch981...@gmail.com wrote: Hello,everyone! There is a kind of Huawei HG255D which has an RTL8211CL Gigabit PHY and We are trying to add support for it. But I can't find anything about the RGMII and mdio-bus in any dts file of rt305x-based devices:-( The only device I found which used the interface is WL-351 with an RTL8366 switch but it doesn't use the MDIO interface to control it. I tried to copy the fpa2 and fct2 value from WL-351.dts but ,of course, it doesn't work. Then I tried to do the following: https://github.com/981213/openwrt/commit/47fa84df4dcc9b8bfe49ed2211d463ed014e2df2 https://github.com/981213/openwrt/commit/47fa84df4dcc9b8bfe49ed2211d463ed014e2df2 Yes, there's that and then you need to configure registers for gdma2 in the ethernet driver... Register a second netdev and map packets, to the corresponding netdev/gdma (in/out) interface, by dma descriptors. OR In the dst file under the esw, change the value of portmap to 3f. XD but it doesn't work too. Could someone please tell me what should I do in the dts file and how can I reset the PHY? Sorry for my bad English:-) ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel signature.asc Description: Message signed with OpenPGP using GPGMail ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 2/2] kernel: Add a selectable option for ar8xxx
On 2015-02-19 12:25, Mathieu Olivari wrote: AR8xxx driver covers all the QCA switch families. Most architectures usually build it in the kernel, but it may be valuable for some targets to build it as a module for more flexibility. Signed-off-by: Mathieu Olivari math...@codeaurora.org On what targets would this be useful, and why? - Felix ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] What should I do if I want to use the RGMII interface on Ralink RT3052?
Portmap?This value is only for the default VLAN config of the switch right? But the problem I'm facing is that the link status of port 5 is always link down even if I plugged in the network cable:-( 2015-02-19 15:24 GMT+08:00 Mikko Hissa mikko.hi...@werzek.com: Hi! On 19 Feb 2015, at 04:14, 郭传鈜 gch981...@gmail.com wrote: Hello,everyone! There is a kind of Huawei HG255D which has an RTL8211CL Gigabit PHY and We are trying to add support for it. But I can't find anything about the RGMII and mdio-bus in any dts file of rt305x-based devices:-( The only device I found which used the interface is WL-351 with an RTL8366 switch but it doesn't use the MDIO interface to control it. I tried to copy the fpa2 and fct2 value from WL-351.dts but ,of course, it doesn't work. Then I tried to do the following: https://github.com/981213/openwrt/commit/47fa84df4dcc9b8bfe49ed2211d463ed014e2df2 Yes, there's that and then you need to configure registers for gdma2 in the ethernet driver... Register a second netdev and map packets, to the corresponding netdev/gdma (in/out) interface, by dma descriptors. OR In the dst file under the esw, change the value of portmap to 3f. XD but it doesn't work too. Could someone please tell me what should I do in the dts file and how can I reset the PHY? Sorry for my bad English:-) ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 0/3] at91: fixes for 3.18 kernel update
On 19/02/2015 03:29, Owen Kirby wrote: The following are some fixes from testing the v3.18 update to the at91 target. In particular, I found that the drivers for the poweroff and reset controllers were missing (they were built implicitly in 3.14), which would cause the router to hang when trying to reboot. The AT91 USB gadget driver was broken from changes in clock registration in 3.18, so I have backported a patch to the at91_udc driver posted to the linux-arm-kernel mailing list a few months ago. This was tested on an AT91SAM9G20-EK and an Exegin Q5x board. Nice, i also built a few patches last night to get some of the iio stuff built, add some uci-defaults, sysupgrade, i'll hopefully get those ready during the day. Owen Kirby (3): at91: Enable power and reset controller drivers. at91: USB gadget subsystem cleanup and driver fix. at91: Add dts for Exegin Q5x boards. target/linux/at91/Makefile | 4 +- target/linux/at91/config-default | 16 +- .../at91/files/arch/arm/boot/dts/at91-q5xr5.dts| 193 + target/linux/at91/image/Makefile | 4 + target/linux/at91/modules.mk | 18 ++ .../100-ARM-at91-build-dtb-for-LMU5000.patch | 2 +- .../patches/101-ARM-at91-build-dtb-for-q5xr5.patch | 10 ++ .../200-ARM-at91-udc-clockfix-backport.patch | 82 + 8 files changed, 318 insertions(+), 11 deletions(-) create mode 100644 target/linux/at91/files/arch/arm/boot/dts/at91-q5xr5.dts create mode 100644 target/linux/at91/patches/101-ARM-at91-build-dtb-for-q5xr5.patch create mode 100644 target/linux/at91/patches/200-ARM-at91-udc-clockfix-backport.patch ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Freifunk GSoC 2015 - Participation and Ideas List
* Weimarnetz e.V., Vorstand/Schatzmeister: Andreas Braeu a...@andi95.de [13.02.2015 20:03]: http://wiki.freifunk.net/Ideas i added 3 ideas, but i'am unsure who can mentor it: OLSRv2 roaming support uHTTPd compression-support uHTTPd HTTP2-support bye, bastian ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] ar71xx update to v3.18
tplink archer c5 is working fine 2h. Tested: boot, ethernet, switch, wifi. Best Christian ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] openwrt support RTL8211CL Gigabit Driver?
hg255d RTL8211CL Gigabit chip integrated model, but without the support of the official network openwrt the following code can be used to start but it doesn't, where's the code error? printk(Setting up RTL8211CL PHY...); *(unsigned long *)(0xb060) = ~(1 9); //set RGMII to Normal mode *(unsigned long *)(0xb01100C8) = ~(129); //disable port 5auto-polling *(unsigned long *)(0xb01100C8) |= 0x3fff; //force 1000M full duplex *(unsigned long *)(0xb01100C8) = ~(0xf20); //rxclk_skew,txclk_skew = 0 rt305x_mii_write(esw,0x1f, 0x0, 0xa9a0); /*Reset PHY*/ rt305x_mii_write(esw,0x1f, 0x0, 0x03e1); /*SoftReset PHY*/ rt305x_mii_write(esw,0x1f, 0x0, 0x3100); /*Auto negotiation*/ rt305x_mii_write(esw,0x1f, 0x4, 0x03e1); rt305x_mii_write(esw,0x1f, 0x12, 0x6400); rt305x_mii_write(esw,0x1f, 0x1f, 0x0); ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] kernel: Fix USB gadget modules for v3.18
The directory layout of the USB gadget subsystem changed between kernels 3.14 and 3.18, so the makefile for kmod-usb-eth-gadget and kmod-usb-serial-gadget need to be adjusted to match. Signed-off-by: Owen Kirby o...@exegin.com --- package/kernel/linux/modules/usb.mk | 28 ++-- target/linux/generic/config-3.18| 1 + 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk index 6faa437..ef58b9d 100644 --- a/package/kernel/linux/modules/usb.mk +++ b/package/kernel/linux/modules/usb.mk @@ -254,15 +254,15 @@ define KernelPackage/usb-eth-gadget CONFIG_USB_ETH_RNDIS=y \ CONFIG_USB_ETH_EEM=n DEPENDS:=+kmod-usb-gadget +kmod-usb-lib-composite -ifneq ($(wildcard $(LINUX_DIR)/drivers/usb/gadget/u_ether.ko),) +ifneq ($(wildcard $(LINUX_DIR)/drivers/usb/gadget/function/u_ether.ko),) FILES:= \ - $(LINUX_DIR)/drivers/usb/gadget/u_ether.ko \ - $(LINUX_DIR)/drivers/usb/gadget/usb_f_ecm.ko \ - $(LINUX_DIR)/drivers/usb/gadget/usb_f_ecm_subset.ko \ - $(LINUX_DIR)/drivers/usb/gadget/usb_f_rndis.ko \ - $(LINUX_DIR)/drivers/usb/gadget/g_ether.ko - ifneq ($(wildcard $(LINUX_DIR)/drivers/usb/gadget/u_rndis.ko),) -FILES+=$(LINUX_DIR)/drivers/usb/gadget/u_rndis.ko + $(LINUX_DIR)/drivers/usb/gadget/function/u_ether.ko \ + $(LINUX_DIR)/drivers/usb/gadget/function/usb_f_ecm.ko \ + $(LINUX_DIR)/drivers/usb/gadget/function/usb_f_ecm_subset.ko \ + $(LINUX_DIR)/drivers/usb/gadget/function/usb_f_rndis.ko \ + $(LINUX_DIR)/drivers/usb/gadget/legacy/g_ether.ko + ifneq ($(wildcard $(LINUX_DIR)/drivers/usb/gadget/function/u_rndis.ko),) +FILES+=$(LINUX_DIR)/drivers/usb/gadget/function/u_rndis.ko endif AUTOLOAD:=$(call AutoLoad,52,usb_f_ecm g_ether) else @@ -283,13 +283,13 @@ define KernelPackage/usb-serial-gadget TITLE:=USB Serial Gadget support KCONFIG:=CONFIG_USB_G_SERIAL DEPENDS:=+kmod-usb-gadget +kmod-usb-lib-composite -ifneq ($(wildcard $(LINUX_DIR)/drivers/usb/gadget/u_serial.ko),) +ifneq ($(wildcard $(LINUX_DIR)/drivers/usb/gadget/function/u_serial.ko),) FILES:= \ - $(LINUX_DIR)/drivers/usb/gadget/u_serial.ko \ - $(LINUX_DIR)/drivers/usb/gadget/usb_f_acm.ko \ - $(LINUX_DIR)/drivers/usb/gadget/usb_f_obex.ko \ - $(LINUX_DIR)/drivers/usb/gadget/usb_f_serial.ko \ - $(LINUX_DIR)/drivers/usb/gadget/g_serial.ko + $(LINUX_DIR)/drivers/usb/gadget/function/u_serial.ko \ + $(LINUX_DIR)/drivers/usb/gadget/function/usb_f_acm.ko \ + $(LINUX_DIR)/drivers/usb/gadget/function/usb_f_obex.ko \ + $(LINUX_DIR)/drivers/usb/gadget/function/usb_f_serial.ko \ + $(LINUX_DIR)/drivers/usb/gadget/legacy/g_serial.ko AUTOLOAD:=$(call AutoLoad,52,usb_f_acm g_serial) else FILES:=$(LINUX_DIR)/drivers/usb/gadget/g_serial.ko diff --git a/target/linux/generic/config-3.18 b/target/linux/generic/config-3.18 index e8ae342..7ad0efc 100644 --- a/target/linux/generic/config-3.18 +++ b/target/linux/generic/config-3.18 @@ -4055,6 +4055,7 @@ CONFIG_USB_EZUSB=y # CONFIG_USB_GADGET_DEBUG_FS is not set CONFIG_USB_GADGET_STORAGE_NUM_BUFFERS=2 CONFIG_USB_GADGET_VBUS_DRAW=2 +# CONFIG_USB_GADGET_XILINX is not set # CONFIG_USB_GL860 is not set # CONFIG_USB_GOKU is not set # CONFIG_USB_GPIO_VBUS is not set -- 1.9.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 1/3] at91: Enable power and reset controller drivers.
Signed-off-by: Owen Kirby o...@exegin.com --- target/linux/at91/config-default | 8 1 file changed, 8 insertions(+) diff --git a/target/linux/at91/config-default b/target/linux/at91/config-default index 89a9fc2..6972e80 100644 --- a/target/linux/at91/config-default +++ b/target/linux/at91/config-default @@ -171,6 +171,14 @@ CONFIG_PINCTRL=y CONFIG_PINCTRL_AT91=y # CONFIG_PINCTRL_SINGLE is not set CONFIG_PINMUX=y +CONFIG_POWER_SUPPLY=y +CONFIG_POWER_RESET=y +CONFIG_POWER_RESET_AT91_POWEROFF=y +CONFIG_POWER_RESET_AT91_RESET=y +# CONFIG_POWER_RESET_GPIO is not set +# CONFIG_POWER_RESET_GPIO_RESTART is not set +# CONFIG_POWER_RESET_LTC2952 is not set +# CONFIG_POWER_RESET_SYSCON is not set # CONFIG_PL310_ERRATA_588369 is not set # CONFIG_PL310_ERRATA_727915 is not set # CONFIG_PL310_ERRATA_753970 is not set -- 1.9.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 2/3] at91: USB gadget subsystem cleanup and driver fix.
Signed-off-by: Owen Kirby o...@exegin.com --- target/linux/at91/Makefile | 4 +- target/linux/at91/config-default | 8 --- target/linux/at91/modules.mk | 18 + .../100-ARM-at91-build-dtb-for-LMU5000.patch | 2 +- .../200-ARM-at91-udc-clockfix-backport.patch | 82 ++ 5 files changed, 103 insertions(+), 11 deletions(-) create mode 100644 target/linux/at91/patches/200-ARM-at91-udc-clockfix-backport.patch diff --git a/target/linux/at91/Makefile b/target/linux/at91/Makefile index 040df33..e1c771a 100644 --- a/target/linux/at91/Makefile +++ b/target/linux/at91/Makefile @@ -10,13 +10,13 @@ ARCH:=arm BOARD:=at91 MAINTAINER:=Claudio Mignanti c.migna...@gmail.com BOARDNAME:=Atmel AT91 -FEATURES:=squashfs targz ext2 usb +FEATURES:=squashfs targz ext2 usb usbgadget ubifs SUBTARGETS:=legacy sama5d3 KERNEL_PATCHVER:=3.18 include $(INCLUDE_DIR)/target.mk -DEFAULT_PACKAGES += kmod-usb-ohci +DEFAULT_PACKAGES += kmod-usb-ohci kmod-at91-udc kmod-usb-eth-gadget $(eval $(call BuildTarget)) diff --git a/target/linux/at91/config-default b/target/linux/at91/config-default index 6972e80..85cacd8 100644 --- a/target/linux/at91/config-default +++ b/target/linux/at91/config-default @@ -215,15 +215,7 @@ CONFIG_UID16=y CONFIG_UIDGID_CONVERTED=y CONFIG_UNCOMPRESS_INCLUDE=mach/uncompress.h # CONFIG_USB_ARCH_HAS_XHCI is not set -CONFIG_USB_AT91=y # CONFIG_USB_ATMEL_USBA is not set -CONFIG_USB_COMMON=y -CONFIG_USB_ETH=y -# CONFIG_USB_ETH_EEM is not set -CONFIG_USB_ETH_RNDIS=y -CONFIG_USB_GADGET=y -# CONFIG_USB_GADGET_XILINX is not set -CONFIG_USB_LIBCOMPOSITE=y CONFIG_USB_SUPPORT=y CONFIG_USE_OF=y CONFIG_VECTORS_BASE=0x diff --git a/target/linux/at91/modules.mk b/target/linux/at91/modules.mk index 7f98233..6cfc3e4 100644 --- a/target/linux/at91/modules.mk +++ b/target/linux/at91/modules.mk @@ -50,6 +50,24 @@ endef $(eval $(call KernelPackage,at91-adc)) +define KernelPackage/at91-udc + SUBMENU:=$(USB_MENU) + TITLE:=USB Device Controller on atmel SoC + DEPENDS:=@TARGET_at91 +kmod-usb-gadget + KCONFIG:=CONFIG_USB_AT91 +ifneq ($(wildcard $(LINUX_DIR)/drivers/usb/gadget/udc/at91_udc.ko),) + FILES:=$(LINUX_DIR)/drivers/usb/gadget/udc/at91_udc.ko +else + FILES:=$(LINUX_DIR)/drivers/usb/gadget/at91_udc.ko +endif + AUTOLOAD:=$(call AutoLoad,51,at91_udc) +endef + +define KernelPackage/at91-adc/description + Kernel module to use the USB Device controller for Atmel AT91 +endef + +$(eval $(call KernelPackage,at91-udc)) I2C_AT91_MODULES:=\ CONFIG_I2C_AT91:drivers/i2c/busses/i2c-at91 diff --git a/target/linux/at91/patches/100-ARM-at91-build-dtb-for-LMU5000.patch b/target/linux/at91/patches/100-ARM-at91-build-dtb-for-LMU5000.patch index e8cc68d..8852b6a 100644 --- a/target/linux/at91/patches/100-ARM-at91-build-dtb-for-LMU5000.patch +++ b/target/linux/at91/patches/100-ARM-at91-build-dtb-for-LMU5000.patch @@ -1,6 +1,6 @@ --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile -@@ -26,6 +26,7 @@ dtb-$(CONFIG_ARCH_AT91) += usb_a9g20.dtb +@@ -28,6 +28,7 @@ dtb-$(CONFIG_ARCH_AT91) += usb_a9g20.dtb dtb-$(CONFIG_ARCH_AT91) += usb_a9g20_lpw.dtb # sam9g45 dtb-$(CONFIG_ARCH_AT91) += at91sam9m10g45ek.dtb diff --git a/target/linux/at91/patches/200-ARM-at91-udc-clockfix-backport.patch b/target/linux/at91/patches/200-ARM-at91-udc-clockfix-backport.patch new file mode 100644 index 000..1aec3d0 --- /dev/null +++ b/target/linux/at91/patches/200-ARM-at91-udc-clockfix-backport.patch @@ -0,0 +1,82 @@ +--- a/drivers/usb/gadget/udc/at91_udc.c b/drivers/usb/gadget/udc/at91_udc.c +@@ -870,8 +870,6 @@ + return; + udc-clocked = 1; + +- if (IS_ENABLED(CONFIG_COMMON_CLK)) +- clk_enable(udc-uclk); + clk_enable(udc-iclk); + clk_enable(udc-fclk); + } +@@ -884,8 +882,6 @@ + udc-gadget.speed = USB_SPEED_UNKNOWN; + clk_disable(udc-fclk); + clk_disable(udc-iclk); +- if (IS_ENABLED(CONFIG_COMMON_CLK)) +- clk_disable(udc-uclk); + } + + /* +@@ -1766,27 +1762,18 @@ + udc_reinit(udc); + + /* get interface and function clocks */ +- udc-iclk = clk_get(dev, udc_clk); +- udc-fclk = clk_get(dev, udpck); +- if (IS_ENABLED(CONFIG_COMMON_CLK)) +- udc-uclk = clk_get(dev, usb_clk); +- if (IS_ERR(udc-iclk) || IS_ERR(udc-fclk) || +- (IS_ENABLED(CONFIG_COMMON_CLK) IS_ERR(udc-uclk))) { ++ udc-iclk = clk_get(dev, pclk); ++ udc-fclk = clk_get(dev, hclk); ++ if (IS_ERR(udc-iclk) || IS_ERR(udc-fclk)) { + DBG(clocks missing\n); + retval = -ENODEV; + goto fail1; + } + +- /* don't do anything until we have both gadget driver and VBUS */ +- if (IS_ENABLED(CONFIG_COMMON_CLK)) { +- clk_set_rate(udc-uclk, 4800); +- retval = clk_prepare(udc-uclk); +- if (retval) +-
[OpenWrt-Devel] [PATCH 3/3] at91: Add dts for Exegin Q5x boards.
Signed-off-by: Owen Kirby o...@exegin.com --- .../at91/files/arch/arm/boot/dts/at91-q5xr5.dts| 193 + target/linux/at91/image/Makefile | 4 + .../patches/101-ARM-at91-build-dtb-for-q5xr5.patch | 10 ++ 3 files changed, 207 insertions(+) create mode 100644 target/linux/at91/files/arch/arm/boot/dts/at91-q5xr5.dts create mode 100644 target/linux/at91/patches/101-ARM-at91-build-dtb-for-q5xr5.patch diff --git a/target/linux/at91/files/arch/arm/boot/dts/at91-q5xr5.dts b/target/linux/at91/files/arch/arm/boot/dts/at91-q5xr5.dts new file mode 100644 index 000..2aa04ca --- /dev/null +++ b/target/linux/at91/files/arch/arm/boot/dts/at91-q5xr5.dts @@ -0,0 +1,193 @@ +/* + * q5xr5.dts - Device Tree file for Exegin Q5xR5 board + * + * Copyright (C) 2014 Owen Kirby o...@exegin.com + * + * Licensed under GPLv2. + */ +/dts-v1/; +#include at91sam9g20.dtsi + +/ { + model = Exegin Q5x (rev5); + compatible = exegin,q5xr5, atmel,at91sam9g20, atmel,at91sam9; + + chosen { + bootargs = console=ttyS0,115200 rootfstype=squashfs,jffs2; + }; + + memory { + reg = 0x2000 0x0; + }; + + clocks { + #address-cells = 1; + #size-cells = 1; + ranges; + + main_clock: clock@0 { + compatible = atmel,osc, fixed-clock; + clock-frequency = 18432000; + }; + + slow_xtal { + clock-frequency = 32768; + }; + + main_xtal { + clock-frequency = 18432000; + }; + }; + + ahb { + apb { + pinctrl@f400 { + board { + pinctrl_pck0_as_mck: pck0_as_mck { + atmel,pins = 2 1 0x2 0x0; /* PC1 periph B */ + }; + pinctrl_spi0_npcs0: spi0_npcs0 { + atmel,pins = 0 3 0x1 0x0; /* PA3 periph A */ + }; + pinctrl_spi0_npcs1: spi0_npcs1 { + atmel,pins = 2 11 0x2 0x0; /* PC11 periph B */ + }; + pinctrl_spi1_npcs0: spi1_npcs0 { + atmel,pins = 1 3 0x1 0x0; /* PB3 periph A */ + }; + pinctrl_spi1_npcs1: spi1_npcs1 { + atmel,pins = 2 5 0x2 0x0; /* PC5 periph B */ + }; + }; + + spi0 { + pinctrl_spi0: spi0-0 { + atmel,pins = + 0 0 0x1 0x0/* PA0 periph A SPI0_MISO pin */ +0 1 0x1 0x0/* PA1 periph A SPI0_MOSI pin */ +0 2 0x1 0x0; /* PA2 periph A SPI0_SPCK pin */ + }; + }; + + spi1 { + pinctrl_spi1: spi1-0 { + atmel,pins = + 1 0 0x1 0x0/* PB0 periph A SPI1_MISO pin */ +1 1 0x1 0x0/* PB1 periph A SPI1_MOSI pin */ +1 2 0x1 0x0; /* PB2 periph A SPI1_SPCK pin */ + }; + }; + }; + + dbgu: serial@f200 { + status = okay; + }; + + usart0: serial@fffb { + pinctrl-0 = + pinctrl_usart0 +pinctrl_usart0_rts +pinctrl_usart0_cts +pinctrl_usart0_dtr_dsr +pinctrl_usart0_dcd +pinctrl_usart0_ri; + status = okay; + }; + + macb0: ethernet@fffc4000 { + phy-mode = mii; + status = okay; + }; + + usb1: gadget@fffa4000 { + status = okay; + }; + +
[OpenWrt-Devel] What should I do if I want to use the RGMII interface on Ralink RT3052?
Hello,everyone! There is a kind of Huawei HG255D which has an RTL8211CL Gigabit PHY and We are trying to add support for it. But I can't find anything about the RGMII and mdio-bus in any dts file of rt305x-based devices:-( The only device I found which used the interface is WL-351 with an RTL8366 switch but it doesn't use the MDIO interface to control it. I tried to copy the fpa2 and fct2 value from WL-351.dts but ,of course, it doesn't work. Then I tried to do the following: https://github.com/981213/openwrt/commit/47fa84df4dcc9b8bfe49ed2211d463ed014e2df2 but it doesn't work too. Could someone please tell me what should I do in the dts file and how can I reset the PHY? Sorry for my bad English:-) ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] ipq806x: delete config-3.14 file
ipq806x target has been upgraded to 3.14. There is no need to maintain this file anymore. Signed-off-by: Mathieu Olivari math...@codeaurora.org --- target/linux/ipq806x/config-3.14 | 360 --- 1 file changed, 360 deletions(-) delete mode 100644 target/linux/ipq806x/config-3.14 diff --git a/target/linux/ipq806x/config-3.14 b/target/linux/ipq806x/config-3.14 deleted file mode 100644 index 9d10716..000 --- a/target/linux/ipq806x/config-3.14 +++ /dev/null @@ -1,360 +0,0 @@ -# CONFIG_AHCI_QCOM is not set -CONFIG_ALIGNMENT_TRAP=y -# CONFIG_AMBA_PL08X is not set -# CONFIG_APM_EMULATION is not set -CONFIG_ARCH_BINFMT_ELF_RANDOMIZE_PIE=y -CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE=y -CONFIG_ARCH_HAS_TICK_BROADCAST=y -CONFIG_ARCH_HAVE_CUSTOM_GPIO_H=y -CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y -# CONFIG_ARCH_MSM is not set -CONFIG_ARCH_MSM8960=y -CONFIG_ARCH_MSM8974=y -CONFIG_ARCH_MSM8X60=y -CONFIG_ARCH_MULTIPLATFORM=y -# CONFIG_ARCH_MULTI_CPU_AUTO is not set -CONFIG_ARCH_MULTI_V6_V7=y -CONFIG_ARCH_MULTI_V7=y -# CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED is not set -CONFIG_ARCH_NR_GPIO=0 -CONFIG_ARCH_QCOM=y -CONFIG_ARCH_REQUIRE_GPIOLIB=y -# CONFIG_ARCH_SELECT_MEMORY_MODEL is not set -# CONFIG_ARCH_SPARSEMEM_DEFAULT is not set -CONFIG_ARCH_SUSPEND_POSSIBLE=y -CONFIG_ARCH_USE_BUILTIN_BSWAP=y -CONFIG_ARCH_USE_CMPXCHG_LOCKREF=y -CONFIG_ARCH_WANT_GENERAL_HUGETLB=y -CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y -CONFIG_ARM=y -CONFIG_ARM_AMBA=y -CONFIG_ARM_ARCH_TIMER=y -CONFIG_ARM_ARCH_TIMER_EVTSTREAM=y -CONFIG_ARM_CPU_SUSPEND=y -CONFIG_ARM_GIC=y -CONFIG_ARM_L1_CACHE_SHIFT=6 -CONFIG_ARM_L1_CACHE_SHIFT_6=y -# CONFIG_ARM_LPAE is not set -CONFIG_ARM_NR_BANKS=8 -CONFIG_ARM_PATCH_PHYS_VIRT=y -# CONFIG_ARM_SP805_WATCHDOG is not set -CONFIG_ARM_THUMB=y -# CONFIG_ARM_THUMBEE is not set -CONFIG_ARM_UNWIND=y -CONFIG_ARM_VIRT_EXT=y -CONFIG_AUTO_ZRELADDR=y -# CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set -CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0 -CONFIG_BOUNCE=y -# CONFIG_CACHE_L2X0 is not set -CONFIG_CLEANCACHE=y -CONFIG_CLKDEV_LOOKUP=y -CONFIG_CLKSRC_OF=y -CONFIG_CLKSRC_QCOM=y -CONFIG_CLONE_BACKWARDS=y -CONFIG_COMMON_CLK=y -CONFIG_COMMON_CLK_QCOM=y -CONFIG_COMPACTION=y -CONFIG_COREDUMP=y -CONFIG_CPU_32v6K=y -CONFIG_CPU_32v7=y -CONFIG_CPU_ABRT_EV7=y -# CONFIG_CPU_BPREDICT_DISABLE is not set -CONFIG_CPU_CACHE_V7=y -CONFIG_CPU_CACHE_VIPT=y -CONFIG_CPU_COPY_V6=y -CONFIG_CPU_CP15=y -CONFIG_CPU_CP15_MMU=y -CONFIG_CPU_HAS_ASID=y -# CONFIG_CPU_ICACHE_DISABLE is not set -CONFIG_CPU_PABRT_V7=y -CONFIG_CPU_PM=y -CONFIG_CPU_RMAP=y -CONFIG_CPU_TLB_V7=y -CONFIG_CPU_V7=y -CONFIG_CRC16=y -# CONFIG_CRC32_SARWATE is not set -CONFIG_CRC32_SLICEBY8=y -CONFIG_CROSS_MEMORY_ATTACH=y -CONFIG_CRYPTO_XZ=y -CONFIG_DCACHE_WORD_ACCESS=y -CONFIG_DEBUG_BUGVERBOSE=y -CONFIG_DEBUG_GPIO=y -CONFIG_DEBUG_LL_INCLUDE=mach/debug-macro.S -CONFIG_DEBUG_PREEMPT=y -# CONFIG_DEBUG_UART_8250 is not set -# CONFIG_DEBUG_UART_PL01X is not set -# CONFIG_DEBUG_USER is not set -CONFIG_DECOMPRESS_GZIP=y -CONFIG_DMADEVICES=y -CONFIG_DMA_ENGINE=y -CONFIG_DMA_OF=y -CONFIG_DMA_VIRTUAL_CHANNELS=y -CONFIG_DTC=y -# CONFIG_DW_DMAC_CORE is not set -# CONFIG_DW_DMAC_PCI is not set -CONFIG_DYNAMIC_DEBUG=y -CONFIG_FREEZER=y -CONFIG_GENERIC_BUG=y -CONFIG_GENERIC_CLOCKEVENTS=y -CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y -CONFIG_GENERIC_CLOCKEVENTS_BUILD=y -CONFIG_GENERIC_IDLE_POLL_SETUP=y -CONFIG_GENERIC_IO=y -CONFIG_GENERIC_IRQ_SHOW=y -CONFIG_GENERIC_NET_UTILS=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_STRNCPY_FROM_USER=y -CONFIG_GENERIC_STRNLEN_USER=y -CONFIG_GPIOLIB=y -CONFIG_GPIO_DEVRES=y -# CONFIG_GPIO_MSM_V2 is not set -CONFIG_GPIO_SYSFS=y -CONFIG_HARDIRQS_SW_RESEND=y -CONFIG_HAS_DMA=y -CONFIG_HAS_IOMEM=y -CONFIG_HAS_IOPORT=y -# CONFIG_HAVE_64BIT_ALIGNED_ACCESS is not set -CONFIG_HAVE_ARCH_JUMP_LABEL=y -CONFIG_HAVE_ARCH_KGDB=y -CONFIG_HAVE_ARCH_PFN_VALID=y -CONFIG_HAVE_ARCH_SECCOMP_FILTER=y -CONFIG_HAVE_ARCH_TRACEHOOK=y -CONFIG_HAVE_ARM_ARCH_TIMER=y -# CONFIG_HAVE_BOOTMEM_INFO_NODE is not set -CONFIG_HAVE_BPF_JIT=y -CONFIG_HAVE_CC_STACKPROTECTOR=y -CONFIG_HAVE_CLK=y -CONFIG_HAVE_CLK_PREPARE=y -CONFIG_HAVE_CONTEXT_TRACKING=y -CONFIG_HAVE_C_RECORDMCOUNT=y -CONFIG_HAVE_DEBUG_KMEMLEAK=y -CONFIG_HAVE_DMA_API_DEBUG=y -CONFIG_HAVE_DMA_ATTRS=y -CONFIG_HAVE_DMA_CONTIGUOUS=y -CONFIG_HAVE_DYNAMIC_FTRACE=y -CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y -CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y -CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y -CONFIG_HAVE_FUNCTION_TRACER=y -CONFIG_HAVE_GENERIC_DMA_COHERENT=y -CONFIG_HAVE_HW_BREAKPOINT=y -CONFIG_HAVE_IDE=y -CONFIG_HAVE_IRQ_TIME_ACCOUNTING=y -CONFIG_HAVE_KERNEL_GZIP=y -CONFIG_HAVE_KERNEL_LZ4=y -CONFIG_HAVE_KERNEL_LZMA=y -CONFIG_HAVE_KERNEL_LZO=y -CONFIG_HAVE_KERNEL_XZ=y -CONFIG_HAVE_MEMBLOCK=y -CONFIG_HAVE_MOD_ARCH_SPECIFIC=y -CONFIG_HAVE_NET_DSA=y -CONFIG_HAVE_OPROFILE=y -CONFIG_HAVE_PERF_EVENTS=y -CONFIG_HAVE_PERF_REGS=y
[OpenWrt-Devel] [PATCH 3/3] ipq806x: add ap148 bootargs to DT
This will simplify the boot process by avoiding the bootloader bootargs configuration process. Signed-off-by: Mathieu Olivari math...@codeaurora.org --- .../ipq806x/patches/004-add-ap148-bootargs.patch | 86 ++ 1 file changed, 86 insertions(+) create mode 100644 target/linux/ipq806x/patches/004-add-ap148-bootargs.patch diff --git a/target/linux/ipq806x/patches/004-add-ap148-bootargs.patch b/target/linux/ipq806x/patches/004-add-ap148-bootargs.patch new file mode 100644 index 000..0b2ccec --- /dev/null +++ b/target/linux/ipq806x/patches/004-add-ap148-bootargs.patch @@ -0,0 +1,86 @@ +--- a/arch/arm/boot/dts/qcom-ipq8064-ap148.dts b/arch/arm/boot/dts/qcom-ipq8064-ap148.dts +@@ -14,6 +14,10 @@ + }; + }; + ++ chosen { ++ bootargs = console=ttyMSM0,115200 root=/dev/mtdblock12 rootfstype=squashfs,jffs2; ++ }; ++ + soc { + pinmux@80 { + i2c4_pins: i2c4_pinmux { +@@ -70,13 +74,68 @@ + reg = 0; + + partition@0 { +- label = rootfs; +- reg = 0x0 0x100; ++ label = 0:SBL1; ++ reg = 0x0 0x2; + }; + + partition@1 { +- label = scratch; +- reg = 0x100 0x100; ++ label = 0:MIBIB; ++ reg = 0x2 0x2; ++ }; ++ ++ partition@2 { ++ label = 0:SBL2; ++ reg = 0x4 0x4; ++ }; ++ ++ partition@3 { ++ label = 0:DDR; ++ reg = 0x8 0x1; ++ }; ++ ++ partition@4 { ++ label = 0:DDRCONFIG; ++ reg = 0x9 0x1; ++ }; ++ ++ partition@5 { ++ label = 0:SSD; ++ reg = 0xa 0x1; ++ }; ++ ++ partition@6 { ++ label = 0:TZ; ++ reg = 0xb 0x8; ++ }; ++ ++ partition@7 { ++ label = 0:RPM; ++ reg = 0x13 0x8; ++ }; ++ ++ partition@8 { ++ label = 0:APSSBL; ++ reg = 0x1b 0x8; ++ }; ++ ++ partition@9 { ++ label = 0:APSSBLENV; ++ reg = 0x23 0x4; ++ }; ++ ++ partition@a { ++ label = 0:ART; ++ reg = 0x27 0x4; ++ }; ++ ++ partition@b { ++ label = 0:HLOS; ++ reg = 0x2b 0x30; ++ }; ++ ++ partition@c { ++ label = rootfs; ++ reg = 0x5b 0x1a5; + }; + }; + }; -- 1.9.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 1/3] ipq806x: enable watchdog kernel option
Some bootloaders seem to trigger the watchdog during the boot process, therefore the lack of watchdog driver trigger a reboot a few seconds after boot. So we'll enable it here to avoid it. Signed-off-by: Mathieu Olivari math...@codeaurora.org --- target/linux/ipq806x/config-3.18 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/linux/ipq806x/config-3.18 b/target/linux/ipq806x/config-3.18 index 22d8092..7cda416 100644 --- a/target/linux/ipq806x/config-3.18 +++ b/target/linux/ipq806x/config-3.18 @@ -290,7 +290,7 @@ CONFIG_PROC_PAGE_MONITOR=y CONFIG_QCOM_BAM_DMA=y CONFIG_QCOM_GSBI=y CONFIG_QCOM_SCM=y -# CONFIG_QCOM_WDT is not set +CONFIG_QCOM_WDT=y # CONFIG_RCU_BOOST is not set CONFIG_RCU_CPU_STALL_TIMEOUT=21 CONFIG_RCU_CPU_STALL_VERBOSE=y @@ -357,6 +357,7 @@ CONFIG_VECTORS_BASE=0x CONFIG_VFP=y CONFIG_VFPv3=y CONFIG_VM_EVENT_COUNTERS=y +CONFIG_WATCHDOG_CORE=y # CONFIG_WIZNET_W5100 is not set # CONFIG_WIZNET_W5300 is not set # CONFIG_WL_TI is not set -- 1.9.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 0/2] kernel: make ar8216 driver selectable as a package
The two changes below aims at making the (currently called) ar8216 driver selectable as an OpenWrt package. Currently, and unlike some other switches, this driver must be built-in the kernel if we want to enable it. This is currently impossible for 2 reasons: *there is no openwrt package to select it *even if there was one, the 2 objects built by the kernel (ar8216.o and ar8327.o) are interdependent, therefore build fails at the end of the kernel build. The 2 changes below fix this issue by renaming the module into ar8xxx.ko, and marking ar8216.o and ar8327.o as dependencies of this .ko. The name ar8xxx is also more inline with the current driver structure and where the implementation seems to be going. Mathieu Olivari (2): kernel: rename ar8216.ko into ar8xxx.ko kernel: Add a selectable option for ar8xxx package/kernel/linux/modules/netdevices.mk | 16 target/linux/ar71xx/config-3.14| 2 +- target/linux/atheros/config-3.14 | 2 +- target/linux/generic/config-3.10 | 4 +-- target/linux/generic/config-3.13 | 4 +-- target/linux/generic/config-3.14 | 4 +-- target/linux/generic/config-3.18 | 4 +-- target/linux/generic/config-3.19 | 4 +-- target/linux/generic/config-3.8| 2 +- .../linux/generic/files/drivers/net/phy/ar8327.c | 6 ++--- .../generic/patches-3.10/724-phy_ar8216.patch | 24 - .../generic/patches-3.10/724-phy_ar8xxx.patch | 30 ++ .../generic/patches-3.10/725-phy_rtl8306.patch | 2 +- .../generic/patches-3.10/726-phy_rtl8366.patch | 2 +- .../generic/patches-3.13/724-phy_ar8216.patch | 24 - .../generic/patches-3.13/724-phy_ar8xxx.patch | 30 ++ .../generic/patches-3.13/725-phy_rtl8306.patch | 2 +- .../generic/patches-3.13/726-phy_rtl8366.patch | 2 +- .../generic/patches-3.14/724-phy_ar8216.patch | 24 - .../generic/patches-3.14/724-phy_ar8xxx.patch | 30 ++ .../generic/patches-3.14/725-phy_rtl8306.patch | 2 +- .../generic/patches-3.14/726-phy_rtl8366.patch | 2 +- .../generic/patches-3.14/733-phy_mvsw61xx.patch| 2 +- .../generic/patches-3.18/724-phy_ar8216.patch | 24 - .../generic/patches-3.18/724-phy_ar8xxx.patch | 30 ++ .../generic/patches-3.18/725-phy_rtl8306.patch | 4 +-- .../generic/patches-3.18/726-phy_rtl8366.patch | 2 +- .../patches-3.18/732-phy-ar8216-led-support.patch | 13 -- .../patches-3.18/732-phy-ar8xxx-led-support.patch | 13 ++ .../generic/patches-3.18/733-phy_mvsw61xx.patch| 2 +- .../generic/patches-3.19/724-phy_ar8216.patch | 24 - .../generic/patches-3.19/724-phy_ar8xxx.patch | 30 ++ .../generic/patches-3.19/725-phy_rtl8306.patch | 2 +- .../generic/patches-3.19/726-phy_rtl8366.patch | 2 +- .../generic/patches-3.19/733-phy_mvsw61xx.patch| 2 +- .../linux/generic/patches-3.8/724-phy_ar8216.patch | 24 - .../linux/generic/patches-3.8/724-phy_ar8xxx.patch | 30 ++ .../generic/patches-3.8/725-phy_rtl8306.patch | 2 +- .../generic/patches-3.8/726-phy_rtl8366.patch | 2 +- target/linux/lantiq/xrx200/config-3.14 | 2 +- target/linux/lantiq/xrx200/config-default | 2 +- target/linux/lantiq/xway/config-3.14 | 2 +- target/linux/lantiq/xway/config-default| 2 +- target/linux/mpc85xx/config-3.14 | 4 +-- target/linux/ramips/rt3883/config-3.18 | 2 +- 45 files changed, 248 insertions(+), 196 deletions(-) delete mode 100644 target/linux/generic/patches-3.10/724-phy_ar8216.patch create mode 100644 target/linux/generic/patches-3.10/724-phy_ar8xxx.patch delete mode 100644 target/linux/generic/patches-3.13/724-phy_ar8216.patch create mode 100644 target/linux/generic/patches-3.13/724-phy_ar8xxx.patch delete mode 100644 target/linux/generic/patches-3.14/724-phy_ar8216.patch create mode 100644 target/linux/generic/patches-3.14/724-phy_ar8xxx.patch delete mode 100644 target/linux/generic/patches-3.18/724-phy_ar8216.patch create mode 100644 target/linux/generic/patches-3.18/724-phy_ar8xxx.patch delete mode 100644 target/linux/generic/patches-3.18/732-phy-ar8216-led-support.patch create mode 100644 target/linux/generic/patches-3.18/732-phy-ar8xxx-led-support.patch delete mode 100644 target/linux/generic/patches-3.19/724-phy_ar8216.patch create mode 100644 target/linux/generic/patches-3.19/724-phy_ar8xxx.patch delete mode 100644 target/linux/generic/patches-3.8/724-phy_ar8216.patch create mode 100644 target/linux/generic/patches-3.8/724-phy_ar8xxx.patch -- 1.9.1 ___ openwrt-devel mailing list
[OpenWrt-Devel] [PATCH 1/2] kernel: rename ar8216.ko into ar8xxx.ko
ar8216 driver can no longer be built as a loadable kernel module, since it's been splitted up into 2 pieces (ar8216 and ar8327), and these two pieces are interdependent. This patch is fixing this by renaming the loadable kernel module into ar8xxx.ko, which will include the 2 objects above. In order to keep the option name consistent, we're also renaming the kernel option CONFIG_AR8XXX_PHY, which ends-up propagating the change into the patches-* folders and the different kernel configs. Signed-off-by: Mathieu Olivari math...@codeaurora.org --- target/linux/ar71xx/config-3.14| 2 +- target/linux/atheros/config-3.14 | 2 +- target/linux/generic/config-3.10 | 4 +-- target/linux/generic/config-3.13 | 4 +-- target/linux/generic/config-3.14 | 4 +-- target/linux/generic/config-3.18 | 4 +-- target/linux/generic/config-3.19 | 4 +-- target/linux/generic/config-3.8| 2 +- .../linux/generic/files/drivers/net/phy/ar8327.c | 6 ++--- .../generic/patches-3.10/724-phy_ar8216.patch | 24 - .../generic/patches-3.10/724-phy_ar8xxx.patch | 30 ++ .../generic/patches-3.10/725-phy_rtl8306.patch | 2 +- .../generic/patches-3.10/726-phy_rtl8366.patch | 2 +- .../generic/patches-3.13/724-phy_ar8216.patch | 24 - .../generic/patches-3.13/724-phy_ar8xxx.patch | 30 ++ .../generic/patches-3.13/725-phy_rtl8306.patch | 2 +- .../generic/patches-3.13/726-phy_rtl8366.patch | 2 +- .../generic/patches-3.14/724-phy_ar8216.patch | 24 - .../generic/patches-3.14/724-phy_ar8xxx.patch | 30 ++ .../generic/patches-3.14/725-phy_rtl8306.patch | 2 +- .../generic/patches-3.14/726-phy_rtl8366.patch | 2 +- .../generic/patches-3.14/733-phy_mvsw61xx.patch| 2 +- .../generic/patches-3.18/724-phy_ar8216.patch | 24 - .../generic/patches-3.18/724-phy_ar8xxx.patch | 30 ++ .../generic/patches-3.18/725-phy_rtl8306.patch | 4 +-- .../generic/patches-3.18/726-phy_rtl8366.patch | 2 +- .../patches-3.18/732-phy-ar8216-led-support.patch | 13 -- .../patches-3.18/732-phy-ar8xxx-led-support.patch | 13 ++ .../generic/patches-3.18/733-phy_mvsw61xx.patch| 2 +- .../generic/patches-3.19/724-phy_ar8216.patch | 24 - .../generic/patches-3.19/724-phy_ar8xxx.patch | 30 ++ .../generic/patches-3.19/725-phy_rtl8306.patch | 2 +- .../generic/patches-3.19/726-phy_rtl8366.patch | 2 +- .../generic/patches-3.19/733-phy_mvsw61xx.patch| 2 +- .../linux/generic/patches-3.8/724-phy_ar8216.patch | 24 - .../linux/generic/patches-3.8/724-phy_ar8xxx.patch | 30 ++ .../generic/patches-3.8/725-phy_rtl8306.patch | 2 +- .../generic/patches-3.8/726-phy_rtl8366.patch | 2 +- target/linux/lantiq/xrx200/config-3.14 | 2 +- target/linux/lantiq/xrx200/config-default | 2 +- target/linux/lantiq/xway/config-3.14 | 2 +- target/linux/lantiq/xway/config-default| 2 +- target/linux/mpc85xx/config-3.14 | 4 +-- target/linux/ramips/rt3883/config-3.18 | 2 +- 44 files changed, 232 insertions(+), 196 deletions(-) delete mode 100644 target/linux/generic/patches-3.10/724-phy_ar8216.patch create mode 100644 target/linux/generic/patches-3.10/724-phy_ar8xxx.patch delete mode 100644 target/linux/generic/patches-3.13/724-phy_ar8216.patch create mode 100644 target/linux/generic/patches-3.13/724-phy_ar8xxx.patch delete mode 100644 target/linux/generic/patches-3.14/724-phy_ar8216.patch create mode 100644 target/linux/generic/patches-3.14/724-phy_ar8xxx.patch delete mode 100644 target/linux/generic/patches-3.18/724-phy_ar8216.patch create mode 100644 target/linux/generic/patches-3.18/724-phy_ar8xxx.patch delete mode 100644 target/linux/generic/patches-3.18/732-phy-ar8216-led-support.patch create mode 100644 target/linux/generic/patches-3.18/732-phy-ar8xxx-led-support.patch delete mode 100644 target/linux/generic/patches-3.19/724-phy_ar8216.patch create mode 100644 target/linux/generic/patches-3.19/724-phy_ar8xxx.patch delete mode 100644 target/linux/generic/patches-3.8/724-phy_ar8216.patch create mode 100644 target/linux/generic/patches-3.8/724-phy_ar8xxx.patch diff --git a/target/linux/ar71xx/config-3.14 b/target/linux/ar71xx/config-3.14 index b78d4d2..c6f4c70 100644 --- a/target/linux/ar71xx/config-3.14 +++ b/target/linux/ar71xx/config-3.14 @@ -2,7 +2,7 @@ CONFIG_AG71XX=y CONFIG_AG71XX_AR8216_SUPPORT=y # CONFIG_AG71XX_DEBUG is not set # CONFIG_AG71XX_DEBUG_FS is not set -CONFIG_AR8216_PHY=y +CONFIG_AR8XXX_PHY=y CONFIG_ARCH_BINFMT_ELF_RANDOMIZE_PIE=y CONFIG_ARCH_DISCARD_MEMBLOCK=y
[OpenWrt-Devel] [PATCH 0/3] at91: fixes for 3.18 kernel update
The following are some fixes from testing the v3.18 update to the at91 target. In particular, I found that the drivers for the poweroff and reset controllers were missing (they were built implicitly in 3.14), which would cause the router to hang when trying to reboot. The AT91 USB gadget driver was broken from changes in clock registration in 3.18, so I have backported a patch to the at91_udc driver posted to the linux-arm-kernel mailing list a few months ago. This was tested on an AT91SAM9G20-EK and an Exegin Q5x board. Owen Kirby (3): at91: Enable power and reset controller drivers. at91: USB gadget subsystem cleanup and driver fix. at91: Add dts for Exegin Q5x boards. target/linux/at91/Makefile | 4 +- target/linux/at91/config-default | 16 +- .../at91/files/arch/arm/boot/dts/at91-q5xr5.dts| 193 + target/linux/at91/image/Makefile | 4 + target/linux/at91/modules.mk | 18 ++ .../100-ARM-at91-build-dtb-for-LMU5000.patch | 2 +- .../patches/101-ARM-at91-build-dtb-for-q5xr5.patch | 10 ++ .../200-ARM-at91-udc-clockfix-backport.patch | 82 + 8 files changed, 318 insertions(+), 11 deletions(-) create mode 100644 target/linux/at91/files/arch/arm/boot/dts/at91-q5xr5.dts create mode 100644 target/linux/at91/patches/101-ARM-at91-build-dtb-for-q5xr5.patch create mode 100644 target/linux/at91/patches/200-ARM-at91-udc-clockfix-backport.patch -- 1.9.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 2/3] ipq806x: fix restart
Add an out of tree patch to fix reset on IPQ806x. Patch is available on codeaurora.org but needs to be cleaned-up and upstreamed properly at some point. Signed-off-by: Mathieu Olivari math...@codeaurora.org --- .../003-HACK-qcom-make-restart-work-w-IPQ.patch| 65 ++ 1 file changed, 65 insertions(+) create mode 100644 target/linux/ipq806x/patches/003-HACK-qcom-make-restart-work-w-IPQ.patch diff --git a/target/linux/ipq806x/patches/003-HACK-qcom-make-restart-work-w-IPQ.patch b/target/linux/ipq806x/patches/003-HACK-qcom-make-restart-work-w-IPQ.patch new file mode 100644 index 000..6a82ac4 --- /dev/null +++ b/target/linux/ipq806x/patches/003-HACK-qcom-make-restart-work-w-IPQ.patch @@ -0,0 +1,65 @@ +From 1e09cb4ab430cac62687bd1e5cf796a654f4d78d Mon Sep 17 00:00:00 2001 +From: Josh Cartwright jo...@codeaurora.org +Date: Mon, 8 Sep 2014 00:15:40 -0500 +Subject: [PATCH] HACK: qcom: make restart work w/ IPQ + +Make use of the watchdog to trigger a reset. This is hacky for a +variety of reasons: + - Other mechanisms should be used on other systems proper PS_HOLD + handling + - This doesn't belong in the board file. It should belong in a + watchdog driver. + - As a proper driver, it should make use of device tree to query the + start of the register region + +Change-Id: Ib5ca21a42ac64e0812186d31a87c8d63d49976c2 +Signed-off-by: Josh Cartwright jo...@codeaurora.org +--- + arch/arm/mach-qcom/board.c | 29 + + 1 file changed, 29 insertions(+) + +diff --git a/arch/arm/mach-qcom/board.c b/arch/arm/mach-qcom/board.c +index 6d8bbf7..7c6891d 100644 +--- a/arch/arm/mach-qcom/board.c b/arch/arm/mach-qcom/board.c +@@ -11,8 +11,37 @@ + */ + + #include linux/init.h ++#include linux/io.h ++#include linux/kernel.h + + #include asm/mach/arch.h ++#include asm/system_misc.h ++ ++static void __iomem *wdt; ++ ++#define WDT0_RST 0x38 ++#define WDT0_EN 0x40 ++#define WDT0_BARK_TIME0x4C ++#define WDT0_BITE_TIME0x5C ++ ++static void wdt_restart(enum reboot_mode reboot_mode, const char *cmd) ++{ ++ writel_relaxed(1, wdt + WDT0_RST); ++ writel_relaxed(5*0x31F3, wdt + WDT0_BARK_TIME); ++ writel_relaxed(0x31F3, wdt + WDT0_BITE_TIME); ++ writel_relaxed(1, wdt + WDT0_EN); ++} ++ ++static int wdt_init(void) ++{ ++ wdt = ioremap(0x0200A000, 4096); ++ if (!wdt) ++ return -EINVAL; ++ ++ arm_pm_restart = wdt_restart; ++ return 0; ++} ++late_initcall(wdt_init); + + static const char * const qcom_dt_match[] __initconst = { + qcom,apq8064, +-- +1.9.1 + -- 1.9.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 2/2] kernel: Add a selectable option for ar8xxx
AR8xxx driver covers all the QCA switch families. Most architectures usually build it in the kernel, but it may be valuable for some targets to build it as a module for more flexibility. Signed-off-by: Mathieu Olivari math...@codeaurora.org --- package/kernel/linux/modules/netdevices.mk | 16 1 file changed, 16 insertions(+) diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules/netdevices.mk index b5dc92f..cce1b90 100644 --- a/package/kernel/linux/modules/netdevices.mk +++ b/package/kernel/linux/modules/netdevices.mk @@ -165,6 +165,22 @@ endef $(eval $(call KernelPackage,swconfig)) +define KernelPackage/switch-ar8xxx + SUBMENU:=$(NETWORK_DEVICES_MENU) + TITLE:=Qualcomm Atheros AR82XX/AR83XX switch support + DEPENDS:=+kmod-swconfig + KCONFIG:=CONFIG_AR8XXX_PHY + FILES:=$(LINUX_DIR)/drivers/net/phy/ar8xxx.ko + AUTOLOAD:=$(call AutoLoad,42,ar8xxx) +endef + +define KernelPackage/switch-ar8xxx/description + Qualcomm atheros AR82XX/AR83XX switch support +endef + +$(eval $(call KernelPackage,switch-ar8xxx)) + + define KernelPackage/switch-ip17xx SUBMENU:=$(NETWORK_DEVICES_MENU) TITLE:=IC+ IP17XX switch support -- 1.9.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel