[OpenWrt-Devel] Review of 0012-pinctrl-lantiq-fix-up-pinmux.patch
Hi, here follows a little review of the 0012-pinctrl-lantiq-fix-up-pinmux.patch to get this stuff upstream: > From 25494c55a4007a1409f53ddbafd661636e47ea34 Mon Sep 17 00:00:00 2001 > From: John Crispin > Date: Fri, 9 Aug 2013 20:38:15 +0200 > Subject: [PATCH 12/36] pinctrl/lantiq: fix up pinmux > > We found out how to set the gphy led pinmuxing. > > Signed-off-by: John Crispin > --- > drivers/pinctrl/pinctrl-xway.c | 28 ++-- > 1 file changed, 26 insertions(+), 2 deletions(-) > > --- a/drivers/pinctrl/pinctrl-xway.c > +++ b/drivers/pinctrl/pinctrl-xway.c > @@ -609,10 +609,9 @@ static struct pinctrl_desc xway_pctrl_de > .confops= &xway_pinconf_ops, > }; > > -static inline int xway_mux_apply(struct pinctrl_dev *pctrldev, > +static int mux_apply(struct ltq_pinmux_info *info, > int pin, int mux) > { > -struct ltq_pinmux_info *info = pinctrl_dev_get_drvdata(pctrldev); > int port = PORT(pin); > u32 alt1_reg = GPIO_ALT1(pin); > > @@ -632,6 +631,14 @@ static inline int xway_mux_apply(struct > return 0; > } > > +static inline int xway_mux_apply(struct pinctrl_dev *pctrldev, > +int pin, int mux) > +{ > +struct ltq_pinmux_info *info = pinctrl_dev_get_drvdata(pctrldev); > + > +return mux_apply(info, pin, mux); > +} > + > static const struct ltq_cfg_param xway_cfg_params[] = { > {"lantiq,pull",LTQ_PINCONF_PARAM_PULL}, > {"lantiq,open-drain",LTQ_PINCONF_PARAM_OPEN_DRAIN}, What are these changes for? > @@ -676,6 +683,10 @@ static int xway_gpio_dir_out(struct gpio > { > struct ltq_pinmux_info *info = dev_get_drvdata(chip->dev); > > +if (PORT(pin) == PORT3) > +gpio_setbit(info->membase[0], GPIO3_OD, PORT_PIN(pin)); > +else > +gpio_setbit(info->membase[0], GPIO_OD(pin), PORT_PIN(pin)); > gpio_setbit(info->membase[0], GPIO_DIR(pin), PORT_PIN(pin)); > xway_gpio_set(chip, pin, val); > This fixes the GPIO Setup for GPIOs >= GPIO48 (GPIO Port3), right? > @@ -696,6 +707,18 @@ static void xway_gpio_free(struct gpio_c > pinctrl_free_gpio(gpio); > } > > +static int xway_gpio_to_irq(struct gpio_chip *chip, unsigned offset) > +{ > +struct ltq_pinmux_info *info = dev_get_drvdata(chip->dev); > +int i; > + > +for (i = 0; i < info->num_exin; i++) > +if (info->exin[i] == offset) > +return ltq_eiu_get_irq(i); > + > +return -1; > +} > + > static struct gpio_chip xway_chip = { > .label = "gpio-xway", > .direction_input = xway_gpio_dir_in, > @@ -704,6 +727,7 @@ static struct gpio_chip xway_chip = { > .set = xway_gpio_set, > .request = xway_gpio_req, > .free = xway_gpio_free, > +.to_irq = xway_gpio_to_irq, > .base = -1, > }; > This implements the IRQ Mapping for GPIOs. So which of these changes is related to gphy led pinmuxing? I think we can make 2 patches out of this one: [1/2] pinctrl/lantiq: Fix GPIO Setup for GPIO Port3 [2/2] pinctrl/lantiq: Implement gpio_chip.to_irq Martin ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] pinctrl/lantiq: split xway_mfp into dedicated tables
Hi, On 11/16/2015 at 9:28 PM, Hauke Mehrtens wrote: > Hi Martin, > > The get_maintainer.pl helps to find the correct mailing list, it > searches the MAINTAINERS file. > > ./scripts/get_maintainer.pl -f drivers/pinctrl/pinctrl-xway.c > Linus Walleij (maintainer:PIN CONTROL > SUBSYSTEM) > linux-g...@vger.kernel.org (open list:PIN CONTROL SUBSYSTEM) > linux-ker...@vger.kernel.org (open list) Thanks, John already told me to use the get_maintainer.pl script. > You should probably not send it to linux-ker...@vger.kernel.org. > In addition you should send it to blo...@openwrt.org as he is the main > author. > > I assume John is ok if you also send his patch > 0012-pinctrl-lantiq-fix-up-pinmux.patch upstream. When you use git > send-mail it should preserve the author name. I think we have to review this patch again, because it changes more than that what is stated in the comment. Maybe we have to split it up in several parts to get it upstream? > Can you please also add me in cc as well, thanks. Ok. > You changed the compatible string, this is considered ABI in the Linux > kernel and should stay compatible with older versions, so that you can > use an older DTS file with a recent kernel. Could you only add the new > names in of_device_id xway_match and not remove the old ones, so that > both will work. So I will leave the old stuff (pinctrl-xway and pinctrl-xr9), mark them as deprecated and add the new ones (pinctrl-danube, pinctrl-xrx100 and pinctrl-xrx200). Of course, the Documentation will also be updated. > > I send some patches to add basic support for the xrx300 upstream and it > is included in Linux 4.4, it boots. ;-) Ah, nice work! I want to use the USIF UART of the xRX200, so it was also on my todo list to adapt the Lantiq UGW PMU Patches to the free world. ;-) But maybe you overlooked some little details: The PMU_ASC0 should be removed from the "generic xway clocks" section. Instead, the PMU_ASC1 should go there because it is available on every XWAY SoC (even on the Amazon-SE). Also, the quotation marks should be removed from the second parameter of the clkdev_add_pmu("1da.usif", "NULL", 1, 0, PMU_USIF) calls. Looking forward to meet again on the next Summit, Martin ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 1/3] Added patch for GL-AR150 support
Thanks and re-submitted V2 On Mon, Nov 16, 2015 at 4:36 AM, Rafał Miłecki wrote: > On 13 November 2015 at 08:14, alzhao wrote: > > This is the patches for GL-AR150 router support. Tested on Trunk and it > works. > > Also grouped profiles of GL products to gli.mk > > Please use target-specific prefix for the commit message. In this case > it should be: > ar71xx: foo bar > > Make sure you sign off your changes. > > I think you could replace "Added patch for GL-AR150 support" with > something simpler like a "add GL-AR150 support" support, since your > commit also adds support in other places. It's not only about adding a > kernel patch. > > Please fix above and resend V2. > ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 2/3] ar71xx: add GL-AR300 support V2
Add support for GL-AR300 for latest trunk. Tested and works well. Signed-off-by: Alzhao --- .../ar71xx/base-files/etc/uci-defaults/01_leds | 4 + .../ar71xx/base-files/etc/uci-defaults/02_network | 6 ++ target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 + .../ar71xx/base-files/lib/upgrade/platform.sh | 1 + target/linux/ar71xx/config-4.1 | 1 + .../ar71xx/files/arch/mips/ath79/mach-gl-ar300.c | 106 + target/linux/ar71xx/generic/profiles/gli.mk| 11 +++ target/linux/ar71xx/image/Makefile | 9 ++ .../patches-4.1/912-MIPS-ath79-add-gl_ar300.patch | 39 9 files changed, 180 insertions(+) create mode 100644 target/linux/ar71xx/files/arch/mips/ath79/mach-gl-ar300.c create mode 100644 target/linux/ar71xx/patches-4.1/912-MIPS-ath79-add-gl_ar300.patch 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 25f9d13..5da1ef4 100644 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds @@ -215,6 +215,10 @@ gl-ar150) ucidef_set_led_wlan "wlan" "WLAN" "gl_ar150:wlan" "phy0tpt" ;; +gl-ar300) + ucidef_set_led_wlan "wlan" "WLAN" "gl_ar300:wlan" "phy0tpt" + ;; + gl-inet) ucidef_set_led_netdev "lan" "LAN" "gl-connect:green:lan" "eth1" ucidef_set_led_wlan "wlan" "WLAN" "gl-connect:red: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 2ba1fbd..628d710 100644 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network @@ -408,6 +408,12 @@ wpe72) ucidef_set_interfaces_lan_wan "eth1" "eth0" ;; +gl-ar300) + ucidef_set_interfaces_lan_wan "eth1" "eth0" + ucidef_add_switch "switch0" "1" "1" + ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 4" + ;; + wpj344) ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" ucidef_add_switch "switch0" "1" "1" diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 9848906..a64d005 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -481,6 +481,9 @@ ar71xx_board_detect() { *"GL AR150") name="gl-ar150" ;; + *"GL AR300") + name="gl-ar300" + ;; *"EnGenius EPG5000") name="epg5000" ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 8ea11b4..f06919f 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -220,6 +220,7 @@ platform_check_image() { ew-dorin | \ ew-dorin-router | \ gl-ar150 | \ + gl-ar300 | \ hiwifi-hc6361 | \ hornet-ub-x2 | \ mzk-w04nu | \ diff --git a/target/linux/ar71xx/config-4.1 b/target/linux/ar71xx/config-4.1 index 72b47eb..019d6d6 100644 --- a/target/linux/ar71xx/config-4.1 +++ b/target/linux/ar71xx/config-4.1 @@ -76,6 +76,7 @@ CONFIG_ATH79_MACH_ESR900=y CONFIG_ATH79_MACH_EW_DORIN=y CONFIG_ATH79_MACH_F9K1115V2=y CONFIG_ATH79_MACH_GL_AR150=y +CONFIG_ATH79_MACH_GL_AR300=y CONFIG_ATH79_MACH_GL_INET=y CONFIG_ATH79_MACH_GS_MINIBOX_V1=y CONFIG_ATH79_MACH_GS_OOLITE=y diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-ar300.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-ar300.c new file mode 100644 index 000..565267e --- /dev/null +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-ar300.c @@ -0,0 +1,106 @@ +/* + * Domino board support + * + * Copyright (C) 2011 dongyuqi <729650...@qq.com> + * Copyright (C) 2011-2012 Gabor Juhos + * Copyright (C) 2013 alzhao + * Copyright (C) 2014 Michel Stempin + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 as published + * by the Free Software Foundation. +*/ + +#include +#include +#include +#include +#include + +#include "common.h" +#include "dev-eth.h" +#include "dev-gpio-buttons.h" +#include "dev-leds-gpio.h" +#include "dev-m25p80.h" +#include "dev-usb.h" +#include "dev-wmac.h" +#include "machtypes.h" + +#define GL_AR300_GPIO_LED_WLAN 13 +#define GL_AR300_GPIO_LED_WAN 14 +#define GL_AR300_GPIO_BTN_RESET16 + + +#define GL_AR300_KEYS_POLL_INTERVAL20 /* msecs */ +#define GL_AR300_KEYS_DEBOUNCE_INTERVAL(3 * GL_AR300_KEYS_POLL_INTERVAL) + +#define GL_AR300_MAC0_OFFSET 0x +#defineGL_AR300_MAC1_OFFSET0x +#define GL_AR300_CALDATA_OFFSET0x1000 +#define GL_AR300_WMAC_MAC_OFFSET 0x + +static struct gpio_led
[OpenWrt-Devel] [PATCH 3/3] ar71xx: add GL-Domino Pi support V2
Added support for GL Domino Pi board. Tested in lastest trunk and works well. Signed-off-by: Alzhao --- .../ar71xx/base-files/etc/uci-defaults/01_leds | 4 + .../ar71xx/base-files/etc/uci-defaults/02_network | 1 + target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 + .../ar71xx/base-files/lib/upgrade/platform.sh | 1 + target/linux/ar71xx/config-4.1 | 1 + .../ar71xx/files/arch/mips/ath79/mach-gl-domino.c | 136 + target/linux/ar71xx/generic/profiles/gli.mk| 11 ++ target/linux/ar71xx/image/Makefile | 8 ++ .../913-MIPS-ath79-add-domino-support.patch| 39 ++ 9 files changed, 204 insertions(+) create mode 100644 target/linux/ar71xx/files/arch/mips/ath79/mach-gl-domino.c create mode 100644 target/linux/ar71xx/patches-4.1/913-MIPS-ath79-add-domino-support.patch 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 5da1ef4..e7bab29 100644 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds @@ -219,6 +219,10 @@ gl-ar300) ucidef_set_led_wlan "wlan" "WLAN" "gl_ar300:wlan" "phy0tpt" ;; +gl-domino) + ucidef_set_led_wlan "wlan" "WLAN" "domino:blue:wlan" "phy0tpt" + ;; + gl-inet) ucidef_set_led_netdev "lan" "LAN" "gl-connect:green:lan" "eth1" ucidef_set_led_wlan "wlan" "WLAN" "gl-connect:red: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 628d710..c3cfdb7 100644 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network @@ -397,6 +397,7 @@ alfa-ap96 |\ alfa-nx |\ ap83 |\ gl-ar150 |\ +gl-domino |\ gl-inet |\ jwap003 |\ pb42 |\ diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index a64d005..1c517cf 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -462,6 +462,9 @@ ar71xx_board_detect() { *"Dragino v2") name="dragino2" ;; + *"Domino Pi") + name="gl-domino" + ;; *"EAP300 v2") name="eap300v2" ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index f06919f..e329299 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -221,6 +221,7 @@ platform_check_image() { ew-dorin-router | \ gl-ar150 | \ gl-ar300 | \ + gl-domino | \ hiwifi-hc6361 | \ hornet-ub-x2 | \ mzk-w04nu | \ diff --git a/target/linux/ar71xx/config-4.1 b/target/linux/ar71xx/config-4.1 index 019d6d6..29e0f96 100644 --- a/target/linux/ar71xx/config-4.1 +++ b/target/linux/ar71xx/config-4.1 @@ -65,6 +65,7 @@ CONFIG_ATH79_MACH_DIR_825_B1=y CONFIG_ATH79_MACH_DIR_825_C1=y CONFIG_ATH79_MACH_DLAN_PRO_1200_AC=y CONFIG_ATH79_MACH_DLAN_PRO_500_WP=y +CONFIG_ATH79_MACH_GL_DOMINO=y CONFIG_ATH79_MACH_DRAGINO2=y CONFIG_ATH79_MACH_EAP300V2=y CONFIG_ATH79_MACH_EAP7660D=y diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-domino.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-domino.c new file mode 100644 index 000..a8a42ad --- /dev/null +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-domino.c @@ -0,0 +1,136 @@ +/* + * Domino board support + * + * Copyright (C) 2011 dongyuqi <729650...@qq.com> + * Copyright (C) 2011-2012 Gabor Juhos + * Copyright (C) 2013 alzhao + * Copyright (C) 2014 Michel Stempin + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 as published + * by the Free Software Foundation. +*/ + +#include + +#include + +#include "dev-eth.h" +#include "dev-gpio-buttons.h" +#include "dev-leds-gpio.h" +#include "dev-m25p80.h" +#include "dev-usb.h" +#include "dev-wmac.h" +#include "machtypes.h" + +#define DOMINO_GPIO_LED_WLAN 0 +#define DOMINO_GPIO_LED_WAN17 +#define DOMINO_GPIO_LED_USB1 +#define DOMINO_GPIO_LED_LAN1 13 +#define DOMINO_GPIO_LED_LAN2 14 +#define DOMINO_GPIO_LED_LAN3 15 +#define DOMINO_GPIO_LED_LAN4 16 +#define DOMINO_GPIO_LED_SYS27 +#define DOMINO_GPIO_LED_WPS26 +#define DOMINO_GPIO_USB_POWER 6 + +#define DOMINO_GPIO_BTN_RESET 11 +#define DOMINO_GPIO_BTN_WPS20 + +#define DOMINO_KEYS_POLL_INTERVAL 20 /* msecs */ +#define DOMINO_KEYS_DEBOUNCE_INTERVAL (3 * DOMINO_KEYS_POLL_INTERVAL) + +#define DOMINO_MAC0_OFFSET 0x +#de
[OpenWrt-Devel] [PATCH 1/3] ar71xx: add GL-AR150 support V2
Added GL-AR150 support to latest trunk. Tested and works good. Signed-off-by: Alzhao --- .../ar71xx/base-files/etc/uci-defaults/01_leds | 4 + .../ar71xx/base-files/etc/uci-defaults/02_network | 1 + target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 + .../ar71xx/base-files/lib/upgrade/platform.sh | 1 + target/linux/ar71xx/config-4.1 | 1 + .../ar71xx/files/arch/mips/ath79/mach-gl-ar150.c | 125 + target/linux/ar71xx/generic/profiles/gl-connect.mk | 17 --- target/linux/ar71xx/generic/profiles/gli.mk| 27 + target/linux/ar71xx/image/Makefile | 8 ++ .../patches-4.1/911-MIPS-ath79-add-gl_ar150.patch | 39 +++ 10 files changed, 209 insertions(+), 17 deletions(-) create mode 100644 target/linux/ar71xx/files/arch/mips/ath79/mach-gl-ar150.c delete mode 100644 target/linux/ar71xx/generic/profiles/gl-connect.mk create mode 100644 target/linux/ar71xx/generic/profiles/gli.mk create mode 100644 target/linux/ar71xx/patches-4.1/911-MIPS-ath79-add-gl_ar150.patch 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 39f472a..25f9d13 100644 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds @@ -211,6 +211,10 @@ dlan-pro-1200-ac) ucidef_set_led_trigger_gpio "plcr" "dLAN" "devolo:error:dlan" "16" "0" ;; +gl-ar150) + ucidef_set_led_wlan "wlan" "WLAN" "gl_ar150:wlan" "phy0tpt" + ;; + gl-inet) ucidef_set_led_netdev "lan" "LAN" "gl-connect:green:lan" "eth1" ucidef_set_led_wlan "wlan" "WLAN" "gl-connect:red: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 2765adb..2ba1fbd 100644 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network @@ -396,6 +396,7 @@ dir-505-a1) alfa-ap96 |\ alfa-nx |\ ap83 |\ +gl-ar150 |\ gl-inet |\ jwap003 |\ pb42 |\ diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 0e92ee7..9848906 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -478,6 +478,9 @@ ar71xx_board_detect() { name="gl-inet" gl_inet_board_detect ;; + *"GL AR150") +name="gl-ar150" +;; *"EnGenius EPG5000") name="epg5000" ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index b97c076..8ea11b4 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -219,6 +219,7 @@ platform_check_image() { esr900 | \ ew-dorin | \ ew-dorin-router | \ + gl-ar150 | \ hiwifi-hc6361 | \ hornet-ub-x2 | \ mzk-w04nu | \ diff --git a/target/linux/ar71xx/config-4.1 b/target/linux/ar71xx/config-4.1 index 08e252d..72b47eb 100644 --- a/target/linux/ar71xx/config-4.1 +++ b/target/linux/ar71xx/config-4.1 @@ -75,6 +75,7 @@ CONFIG_ATH79_MACH_ESR1750=y CONFIG_ATH79_MACH_ESR900=y CONFIG_ATH79_MACH_EW_DORIN=y CONFIG_ATH79_MACH_F9K1115V2=y +CONFIG_ATH79_MACH_GL_AR150=y CONFIG_ATH79_MACH_GL_INET=y CONFIG_ATH79_MACH_GS_MINIBOX_V1=y CONFIG_ATH79_MACH_GS_OOLITE=y diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-ar150.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-ar150.c new file mode 100644 index 000..310182c --- /dev/null +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-ar150.c @@ -0,0 +1,125 @@ +/* + * GL_ar150 board support + * + * Copyright (C) 2011 dongyuqi <729650...@qq.com> + * Copyright (C) 2011-2012 Gabor Juhos + * Copyright (C) 2013 alzhao + * Copyright (C) 2014 Michel Stempin + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 as published + * by the Free Software Foundation. +*/ + +#include + +#include + +#include "dev-eth.h" +#include "dev-gpio-buttons.h" +#include "dev-leds-gpio.h" +#include "dev-m25p80.h" +#include "dev-usb.h" +#include "dev-wmac.h" +#include "machtypes.h" + +#define GL_AR150_GPIO_LED_WLAN0 +#define GL_AR150_GPIO_LED_LAN 13 +#define GL_AR150_GPIO_LED_WAN 15 + +#define GL_AR150_GPIO_BIN_USB 6 +#define GL_AR150_GPIO_BTN_MANUAL 7 +#define GL_AR150_GPIO_BTN_AUTO8 +#define GL_AR150_GPIO_BTN_RESET 11 + +#define GL_AR150_KEYS_POLL_INTERVAL 20 /* msecs */ +#define GL_AR150_KEYS_DEBOUNCE_INTERVAL(3 * GL_AR150_KEYS_POLL_INTERVAL) + +#define GL_AR150_MAC0_OFFSET 0x +#define GL_AR150_MAC1_OFFSET 0x +#d
Re: [OpenWrt-Devel] [PATCH] mac80211: Add dependency on ip (iproute2) to cfg80211
On 2015-11-16 20:28, Ted Hess wrote: > Changes to netifd/wireless/mac80211.sh in r46832 invoke 'ip' when making > a client association. 'ip' is not automatically included with cfg80211 > custom builds -- association fails. > > Signed-off-by: Ted Hess NACK. These changes were added because the busybox ip applet was enabled by default recently. - Felix ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] pinctrl/lantiq: split xway_mfp into dedicated tables
Hi Martin, The get_maintainer.pl helps to find the correct mailing list, it searches the MAINTAINERS file. ./scripts/get_maintainer.pl -f drivers/pinctrl/pinctrl-xway.c Linus Walleij (maintainer:PIN CONTROL SUBSYSTEM) linux-g...@vger.kernel.org (open list:PIN CONTROL SUBSYSTEM) linux-ker...@vger.kernel.org (open list) You should probably not send it to linux-ker...@vger.kernel.org. In addition you should send it to blo...@openwrt.org as he is the main author. I assume John is ok if you also send his patch 0012-pinctrl-lantiq-fix-up-pinmux.patch upstream. When you use git send-mail it should preserve the author name. Can you please also add me in cc as well, thanks. You changed the compatible string, this is considered ABI in the Linux kernel and should stay compatible with older versions, so that you can use an older DTS file with a recent kernel. Could you only add the new names in of_device_id xway_match and not remove the old ones, so that both will work. I send some patches to add basic support for the xrx300 upstream and it is included in Linux 4.4, it boots. ;-) Hauke On 11/16/2015 11:20 AM, Martin Schiller wrote: > Hi, > > ok, I will split this patch into 2 patches: > > [1/2] pinctrl/lantiq: split xway_mfp into dedicated tables > [2/2] pinctrl/lantiq: adapt device-trees to new tables > > Would that be ok? > > To get the pinctrl patch upstream, we also have to send the > 0012-pinctrl-lantiq-fix-up-pinmux.patch upstream. > Should I do this in a patch series as well? > > To whom should this patch be sent? (maintainer/mailing-list?) > > Martin > > -Ursprüngliche Nachricht- > Von: openwrt-devel [mailto:openwrt-devel-boun...@lists.openwrt.org] Im > Auftrag von John Crispin > Gesendet: Montag, 16. November 2015 10:50 > An: openwrt-devel@lists.openwrt.org > Betreff: Re: [OpenWrt-Devel] [PATCH] pinctrl/lantiq: split xway_mfp into > dedicated tables > > Hi, > > the dts and kernel changes should be in separate patches. > > also please send the pinctrl patch upstream. > > John > > On 16/11/2015 10:42, Martin Schiller wrote: >> This patch splits the inadequate "pinctrl-xway" and "pinctrl-xr9" settings >> into dedicated "pinctrl-ase", "pinctrl-danube", "pinctrl-xrx100" and >> "pinctrl-xrx200" configuration tables. >> >> Based on the newest Lantiq Hardware Description it turend out, that there are >> some differences in the GPIO alternative functions of the Danube, xRX100 and >> xRX200 families, which makes it impossible to use only one xway_mfp table. >> >> This patch is also the first step to add support for the xRX300 family. >> >> Signed-off-by: Martin Schiller >> --- >> target/linux/lantiq/dts/BTHOMEHUBV2B.dts |2 +- >> target/linux/lantiq/dts/BTHOMEHUBV3A.dts |2 +- >> target/linux/lantiq/dts/EASY50712.dts |2 +- >> target/linux/lantiq/dts/EASY50810.dts |2 +- >> target/linux/lantiq/dts/EASY80920.dtsi |2 +- >> target/linux/lantiq/dts/GR7000.dts |2 +- >> target/linux/lantiq/dts/P2601HNFX.dts |2 +- >> target/linux/lantiq/dts/P2812HNUFX.dtsi|2 +- >> target/linux/lantiq/dts/VGV7519.dtsi |2 +- >> target/linux/lantiq/dts/ar9.dtsi |2 +- >> target/linux/lantiq/dts/danube.dtsi|2 +- >> target/linux/lantiq/dts/vr9.dtsi |2 +- >> .../patches-4.1/0150-lantiq-pinctrl-xway.patch | 1059 >> +++- >> 13 files changed, 1061 insertions(+), 22 deletions(-) >> >> diff --git a/target/linux/lantiq/dts/BTHOMEHUBV2B.dts >> b/target/linux/lantiq/dts/BTHOMEHUBV2B.dts >> index 9b3180c..e2d713e 100644 >> --- a/target/linux/lantiq/dts/BTHOMEHUBV2B.dts >> +++ b/target/linux/lantiq/dts/BTHOMEHUBV2B.dts >> @@ -102,7 +102,7 @@ >> }; >> >> gpio: pinmux@E100B10 { >> -compatible = "lantiq,pinctrl-xway"; >> +compatible = "lantiq,pinctrl-danube"; >> pinctrl-names = "default"; >> pinctrl-0 = <&state_default>; >> >> diff --git a/target/linux/lantiq/dts/BTHOMEHUBV3A.dts >> b/target/linux/lantiq/dts/BTHOMEHUBV3A.dts >> index 1ae9840..9383498 100644 >> --- a/target/linux/lantiq/dts/BTHOMEHUBV3A.dts >> +++ b/target/linux/lantiq/dts/BTHOMEHUBV3A.dts >> @@ -79,7 +79,7 @@ >> }; >> >> gpio: pinmux@E100B10 { >> -compatible = "lantiq,pinctrl-xr9"; >> +compatible = "lantiq,pinctrl-xrx100"; >> pinctrl-names = "default"; >> pinctrl-0 = <&state_default>; >> >> diff --git a/target/linux/lantiq/dts/EASY50712.dts >> b/target/linux/lantiq/dts/EASY50712.dts >> index e44267a..e0d5ed1 100644 >> --- a/target/linux/lantiq/dts/EASY50712.dts >> +++ b/target/linux/lantiq/dts/EASY50712.dts >> @@ -51,7 +51,7 @@ >> }; >> >> gpio: pinmux@E100B10 { >> -compatible = "lantiq,pinctrl-xway"; >> +compatible = "lantiq,pinctrl-danube"; >> pinctrl-names = "default"; >> pinctrl-0 = <&state_default>; >> >> diff --git a/target/linux/lantiq/dts/EASY50810.dts >> b/target/linux/lantiq/dts/EASY50810.dts >> i
[OpenWrt-Devel] [PATCH 5/6] brcm2708: add device detection and use it for network, leds and preinit
Signed-off-by: Álvaro Fernández Rojas --- target/linux/brcm2708/base-files.mk| 3 ++ target/linux/brcm2708/base-files/etc/diag.sh | 12 ++- .../base-files/etc/uci-defaults/02_network | 12 +-- target/linux/brcm2708/base-files/lib/brcm2708.sh | 41 ++ .../lib/preinit/03_preinit_do_brcm2708.sh | 10 ++ .../lib/preinit/05_set_preinit_iface_brcm2708 | 18 ++ target/linux/brcm2708/bcm2708/config-4.1 | 2 +- target/linux/brcm2708/bcm2709/config-4.1 | 2 +- 8 files changed, 95 insertions(+), 5 deletions(-) create mode 100644 target/linux/brcm2708/base-files.mk create mode 100644 target/linux/brcm2708/base-files/lib/brcm2708.sh create mode 100644 target/linux/brcm2708/base-files/lib/preinit/03_preinit_do_brcm2708.sh create mode 100644 target/linux/brcm2708/base-files/lib/preinit/05_set_preinit_iface_brcm2708 diff --git a/target/linux/brcm2708/base-files.mk b/target/linux/brcm2708/base-files.mk new file mode 100644 index 000..fdd2c71 --- /dev/null +++ b/target/linux/brcm2708/base-files.mk @@ -0,0 +1,3 @@ +define Package/base-files/install-target + rm -f $(1)/etc/config/network +endef diff --git a/target/linux/brcm2708/base-files/etc/diag.sh b/target/linux/brcm2708/base-files/etc/diag.sh index 55e68b1..3a8dc86 100644 --- a/target/linux/brcm2708/base-files/etc/diag.sh +++ b/target/linux/brcm2708/base-files/etc/diag.sh @@ -4,9 +4,19 @@ # . /lib/functions/leds.sh +. /lib/brcm2708.sh set_state() { - status_led="led0" + case "$(brcm2708_board_name)" in + rpi-b |\ + rpi-cm) + status_led="led0" + ;; + rpi-b-plus |\ + rpi-2-b) + status_led="led1" + ;; + esac case "$1" in preinit) diff --git a/target/linux/brcm2708/base-files/etc/uci-defaults/02_network b/target/linux/brcm2708/base-files/etc/uci-defaults/02_network index e7e35c5..1bb05b6 100644 --- a/target/linux/brcm2708/base-files/etc/uci-defaults/02_network +++ b/target/linux/brcm2708/base-files/etc/uci-defaults/02_network @@ -1,14 +1,22 @@ #!/bin/sh -# Copyright (C) 2014 OpenWrt.org +# Copyright (C) 2014-2015 OpenWrt.org [ -e /etc/config/network ] && exit 0 touch /etc/config/network . /lib/functions/uci-defaults.sh +. /lib/brcm2708.sh ucidef_set_interface_loopback -ucidef_set_interface_lan "eth0" + +case "$(brcm2708_board_name)" in +rpi-b |\ +rpi-b-plus |\ +rpi-2-b) + ucidef_set_interface_lan "eth0" + ;; +esac uci commit network diff --git a/target/linux/brcm2708/base-files/lib/brcm2708.sh b/target/linux/brcm2708/base-files/lib/brcm2708.sh new file mode 100644 index 000..7d6e458 --- /dev/null +++ b/target/linux/brcm2708/base-files/lib/brcm2708.sh @@ -0,0 +1,41 @@ +#!/bin/sh +# Copyright (C) 2015 OpenWrt.org + +ifname="" + +brcm2708_detect() { + local board_name model + + model=$(cat /proc/device-tree/model) + case "$model" in + "Raspberry Pi Model B"*) + board_name="rpi-b" + ;; + "Raspberry Pi Model B+"*) + board_name="rpi-b-plus" + ;; + "Raspberry Pi Compute Module"*) + board_name="rpi-cm" + ;; + "Raspberry Pi 2 Model B"*) + board_name="rpi-2-b" + ;; + *) + board_name="unknown" + ;; + esac + + [ -e "/tmp/sysinfo" ] || mkdir -p "/tmp/sysinfo" + + echo "$board_name" > /tmp/sysinfo/board_name + echo "$model" > /tmp/sysinfo/model +} + +brcm2708_board_name() { + local name + + [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name) + [ -n "$name" ] || name="unknown" + + echo $name +} diff --git a/target/linux/brcm2708/base-files/lib/preinit/03_preinit_do_brcm2708.sh b/target/linux/brcm2708/base-files/lib/preinit/03_preinit_do_brcm2708.sh new file mode 100644 index 000..2943648 --- /dev/null +++ b/target/linux/brcm2708/base-files/lib/preinit/03_preinit_do_brcm2708.sh @@ -0,0 +1,10 @@ +#!/bin/sh +# Copyright (C) 2015 OpenWrt.org + +do_brcm2708() { + . /lib/brcm2708.sh + + brcm2708_detect +} + +boot_hook_add preinit_main do_brcm2708 diff --git a/target/linux/brcm2708/base-files/lib/preinit/05_set_preinit_iface_brcm2708 b/target/linux/brcm2708/base-files/lib/preinit/05_set_preinit_iface_brcm2708 new file mode 100644 index 000..154b01c --- /dev/null +++ b/target/linux/brcm2708/base-files/lib/preinit/05_set_preinit_iface_brcm2708 @@ -0,0 +1,18 @@ +#!/bin/sh +# +# Copyright (C) 2015 OpenWrt.org +# + +. /lib/brcm2708.sh + +set_preinit_iface() { + case "$(brcm2708_board_name)" in + rpi-b |\ + rpi-b-plus |\ + rpi-2-b) + ifname=eth0 + ;; + esac +} + +boot_hook_add preinit_main set_preinit_iface diff --git a/target/linux/brcm2708/bcm2708/config-4.1 b/target/linux/brcm2708/bcm2
[OpenWrt-Devel] [PATCH 6/6] brcm2708: enable hard float ABI
Signed-off-by: Álvaro Fernández Rojas --- target/linux/brcm2708/Makefile | 4 +--- target/linux/brcm2708/bcm2708/target.mk | 2 ++ target/linux/brcm2708/bcm2709/target.mk | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/target/linux/brcm2708/Makefile b/target/linux/brcm2708/Makefile index f8c9347..0c3cee5 100644 --- a/target/linux/brcm2708/Makefile +++ b/target/linux/brcm2708/Makefile @@ -10,10 +10,8 @@ include $(INCLUDE_DIR)/host.mk ARCH:=arm BOARD:=brcm2708 BOARDNAME:=Broadcom BCM2708/BCM2709 -FEATURES:=ext4 audio usb usbgadget display gpio +FEATURES:=ext4 audio usb usbgadget display gpio fpu MAINTAINER:=Florian Fainelli -CPU_TYPE:=arm1176jzf-s -CPU_SUBTYPE:=vfp SUBTARGETS:=bcm2708 bcm2709 KERNEL_PATCHVER:=4.1 diff --git a/target/linux/brcm2708/bcm2708/target.mk b/target/linux/brcm2708/bcm2708/target.mk index 10fae2f..a35ec66 100644 --- a/target/linux/brcm2708/bcm2708/target.mk +++ b/target/linux/brcm2708/bcm2708/target.mk @@ -4,6 +4,8 @@ SUBTARGET:=bcm2708 BOARDNAME:=BCM2708 based boards +CPU_TYPE:=arm1176jzf-s +CPU_SUBTYPE:=vfp define Target/Description Build firmware image for Broadcom BCM2708 SoC devices. diff --git a/target/linux/brcm2708/bcm2709/target.mk b/target/linux/brcm2708/bcm2709/target.mk index 565c12a..c0679c7 100644 --- a/target/linux/brcm2708/bcm2709/target.mk +++ b/target/linux/brcm2708/bcm2709/target.mk @@ -5,7 +5,7 @@ SUBTARGET:=bcm2709 BOARDNAME:=BCM2709 based boards CPU_TYPE:=cortex-a7 -CPU_SUBTYPE:=vfp +CPU_SUBTYPE:=neon-vfpv4 define Target/Description Build firmware image for Broadcom BCM2709 SoC devices. -- 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 4/6] brcm2708: add support for multi-device images
Signed-off-by: Álvaro Fernández Rojas --- .../linux/brcm2708/bcm2708/profiles/RaspberryPi.mk | 34 -- target/linux/brcm2708/image/Makefile | 24 +++ target/linux/brcm2708/image/config.txt | 2 +- 3 files changed, 16 insertions(+), 44 deletions(-) diff --git a/target/linux/brcm2708/bcm2708/profiles/RaspberryPi.mk b/target/linux/brcm2708/bcm2708/profiles/RaspberryPi.mk index dcf6e05..9f698a7 100644 --- a/target/linux/brcm2708/bcm2708/profiles/RaspberryPi.mk +++ b/target/linux/brcm2708/bcm2708/profiles/RaspberryPi.mk @@ -5,34 +5,10 @@ # See /LICENSE for more information. # -define Profile/Default - NAME:=Raspberry Pi +define Profile/RaspberryPi + NAME:=Raspberry Pi Models B/B+/CM endef -define Profile/Default/Description - Raspberry Pi +define Profile/RaspberryPi/Description + Raspberry Pi Models B/B+/CM endef -$(eval $(call Profile,Default)) - -define Profile/RaspberryPi_B - NAME:=Raspberry Pi Model B -endef -define Profile/RaspberryPi_B/Description - Raspberry Pi Model B -endef -$(eval $(call Profile,RaspberryPi_B)) - -define Profile/RaspberryPi_BPlus - NAME:=Raspberry Pi Model B+ -endef -define Profile/RaspberryPi_BPlus/Description - Raspberry Pi Model B+ -endef -$(eval $(call Profile,RaspberryPi_BPlus)) - -define Profile/RaspberryPi_CM - NAME:=Raspberry Pi Compute Module -endef -define Profile/RaspberryPi_CM/Description - Raspberry Pi Model Compute Module -endef -$(eval $(call Profile,RaspberryPi_CM)) +$(eval $(call Profile,RaspberryPi)) diff --git a/target/linux/brcm2708/image/Makefile b/target/linux/brcm2708/image/Makefile index 22c1218..53e5f54 100644 --- a/target/linux/brcm2708/image/Makefile +++ b/target/linux/brcm2708/image/Makefile @@ -12,9 +12,9 @@ FAT32_BLOCK_SIZE=1024 FAT32_BLOCKS=$(shell echo $$(($(CONFIG_BRCM2708_SD_BOOT_PARTSIZE)*1024*1024/$(FAT32_BLOCK_SIZE ### Image scripts ### -define Build/gen-cfg - cat config.txt > $@.config - echo -e "\ndevice_tree=$(DEVICE_DTS).dtb" >> $@.config +define Build/kernel-img + perl $(LINUX_DIR)/scripts/mkknlimg $@ $@.tmp + mv $@.tmp $@ endef define Build/boot-img @@ -28,9 +28,9 @@ define Build/boot-img mcopy -i $@.boot $(KDIR)/fixup.dat :: mcopy -i $@.boot $(KDIR)/fixup_cd.dat :: mcopy -i $@.boot cmdline.txt :: - mcopy -i $@.boot $@.config ::config.txt + mcopy -i $@.boot config.txt :: mcopy -i $@.boot $(word 1,$^) ::kernel.img - mcopy -i $@.boot $(DTS_DIR)/$(DEVICE_DTS).dtb ::$(DEVICE_DTS).dtb + $(foreach dts,$(shell echo $(DEVICE_DTS)),mcopy -i $@.boot $(DTS_DIR)/$(dts).dtb ::) mmd -i $@.boot ::/overlays mcopy -i $@.boot $(DTS_DIR)/overlays/*.dtb ::/overlays/ mcopy -i $@.boot $(DTS_DIR)/overlays/README ::/overlays/ @@ -46,9 +46,9 @@ endef define Device/Default FILESYSTEMS := ext4 PROFILES = Default $$(DEVICE_PROFILE) - KERNEL := kernel-bin + KERNEL := kernel-bin | kernel-img IMAGES := sdcard.img - IMAGE/sdcard.img := gen-cfg | boot-img | sdcard-img + IMAGE/sdcard.img := boot-img | sdcard-img DEVICE_PROFILE := DEVICE_DTS := endef @@ -67,18 +67,14 @@ endef ### BCM2708/BCM2835 ### ifeq ($(SUBTARGET),bcm2708) - # Raspberry Pi Model B - $(eval $(call bcm270x,RaspberryPi_B,rpi-b,bcm2708-rpi-b)) - # Raspberry Pi Model B+ - $(eval $(call bcm270x,RaspberryPi_BPlus,rpi-b-plus,bcm2708-rpi-b-plus)) - # Raspberry Pi Compute Module - $(eval $(call bcm270x,RaspberryPi_CM,rpi-cm,bcm2708-rpi-cm)) + # Raspberry Pi Models B/B+/CM + $(eval $(call bcm270x,RaspberryPi,rpi,bcm2708-rpi-b bcm2708-rpi-b-plus bcm2708-rpi-cm)) endif ### BCM2709/BCM2836 ### ifeq ($(SUBTARGET),bcm2709) # Raspberry Pi 2 Model B - $(eval $(call bcm270x,RaspberryPi_2,rpi-2-b,bcm2709-rpi-2-b)) + $(eval $(call bcm270x,RaspberryPi_2,rpi-2,bcm2709-rpi-2-b)) endif $(eval $(call BuildImage)) diff --git a/target/linux/brcm2708/image/config.txt b/target/linux/brcm2708/image/config.txt index 1fb880f..75b1cab 100644 --- a/target/linux/brcm2708/image/config.txt +++ b/target/linux/brcm2708/image/config.txt @@ -476,7 +476,7 @@ ## Stop start.elf from filling in ATAGS (memory from 0x100) before ## launching kernel ## -disable_commandline_tags=1 +disable_commandline_tags=2 ## cmdline (string) ## Command line parameters. Can be used instead of cmdline.txt file -- 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/6] brcm2708: revert sd image extension to .img
Signed-off-by: Álvaro Fernández Rojas --- target/linux/brcm2708/image/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/brcm2708/image/Makefile b/target/linux/brcm2708/image/Makefile index ecf6f71..bfcb522 100644 --- a/target/linux/brcm2708/image/Makefile +++ b/target/linux/brcm2708/image/Makefile @@ -47,8 +47,8 @@ define Device/Default FILESYSTEMS := ext4 PROFILES = Default $$(DEVICE_PROFILE) KERNEL := kernel-bin - IMAGES := sdcard.bin - IMAGE/sdcard.bin := gen-cfg | boot-img | sdcard-img + IMAGES := sdcard.img + IMAGE/sdcard.img := gen-cfg | boot-img | sdcard-img DEVICE_PROFILE := DEVICE_DTS := endef -- 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/6] brcm2708: simplify gzip image generation
Signed-off-by: Álvaro Fernández Rojas --- target/linux/brcm2708/image/Makefile | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/target/linux/brcm2708/image/Makefile b/target/linux/brcm2708/image/Makefile index cf263bd..ecf6f71 100644 --- a/target/linux/brcm2708/image/Makefile +++ b/target/linux/brcm2708/image/Makefile @@ -11,16 +11,6 @@ include $(INCLUDE_DIR)/host.mk FAT32_BLOCK_SIZE=1024 FAT32_BLOCKS=$(shell echo $$(($(CONFIG_BRCM2708_SD_BOOT_PARTSIZE)*1024*1024/$(FAT32_BLOCK_SIZE -ifneq ($(CONFIG_TARGET_IMAGES_GZIP),) - define Image/gzip -gzip -9n -c $(1) > $(1).gz -mv $(1).gz $(BIN_DIR) - endef -else - define Image/gzip - endef -endif - ### Image scripts ### define Build/gen-cfg cat config.txt > $@.config @@ -49,7 +39,7 @@ endef define Build/sdcard-img ./gen_rpi_sdcard_img.sh $@ $@.boot $(word 2,$^) \ $(CONFIG_BRCM2708_SD_BOOT_PARTSIZE) $(CONFIG_TARGET_ROOTFS_PARTSIZE) - $(call Image/gzip,$@) + $(if $(CONFIG_TARGET_IMAGES_GZIP),gzip -9n -c $@ > $(BIN_DIR)/$(notdir $@).gz) endef ### Device macros ### -- 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 3/6] brcm2708: rename image device definition
Signed-off-by: Álvaro Fernández Rojas --- target/linux/brcm2708/image/Makefile | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/target/linux/brcm2708/image/Makefile b/target/linux/brcm2708/image/Makefile index bfcb522..22c1218 100644 --- a/target/linux/brcm2708/image/Makefile +++ b/target/linux/brcm2708/image/Makefile @@ -57,7 +57,7 @@ DEVICE_VARS += DEVICE_PROFILE DEVICE_DTS # $(1) = profile # $(2) = image name # $(3) = dts -define add_bcm2708 +define bcm270x define Device/$(2) DEVICE_PROFILE := $(1) DEVICE_DTS := $(3) @@ -68,17 +68,17 @@ endef ### BCM2708/BCM2835 ### ifeq ($(SUBTARGET),bcm2708) # Raspberry Pi Model B - $(eval $(call add_bcm2708,RaspberryPi_B,rpi-b,bcm2708-rpi-b)) + $(eval $(call bcm270x,RaspberryPi_B,rpi-b,bcm2708-rpi-b)) # Raspberry Pi Model B+ - $(eval $(call add_bcm2708,RaspberryPi_BPlus,rpi-b-plus,bcm2708-rpi-b-plus)) + $(eval $(call bcm270x,RaspberryPi_BPlus,rpi-b-plus,bcm2708-rpi-b-plus)) # Raspberry Pi Compute Module - $(eval $(call add_bcm2708,RaspberryPi_CM,rpi-cm,bcm2708-rpi-cm)) + $(eval $(call bcm270x,RaspberryPi_CM,rpi-cm,bcm2708-rpi-cm)) endif ### BCM2709/BCM2836 ### ifeq ($(SUBTARGET),bcm2709) # Raspberry Pi 2 Model B - $(eval $(call add_bcm2708,RaspberryPi_2,rpi-2-b,bcm2709-rpi-2-b)) + $(eval $(call bcm270x,RaspberryPi_2,rpi-2-b,bcm2709-rpi-2-b)) endif $(eval $(call BuildImage)) -- 1.9.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Belkin F5D8233 OpenWrt
Hello there, I have the Belkin F5D8233 and wanted to know if there is any *working* patch for an Openwrt version.I found this one: [OpenWrt-Devel] [PATCH] [ramips] Add support for Belkin F5D8233-4 V4 wireless router(yes I read the second page) I can not get this to work. Indeed I fail at patching the repository of Openwrt 12.9. Could anyone give me advice, what version of Openwrt to use, how to patch the repo correctly and how to build the whole thing at the end? Thanks in advanceBest regardsFabian___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] mac80211: Add dependency on ip (iproute2) to cfg80211
Changes to netifd/wireless/mac80211.sh in r46832 invoke 'ip' when making a client association. 'ip' is not automatically included with cfg80211 custom builds -- association fails. Signed-off-by: Ted Hess --- package/kernel/mac80211/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile index f2427de..8d5c302 100644 --- a/package/kernel/mac80211/Makefile +++ b/package/kernel/mac80211/Makefile @@ -78,7 +78,7 @@ endef define KernelPackage/cfg80211 $(call KernelPackage/mac80211/Default) TITLE:=cfg80211 - wireless configuration API - DEPENDS+= +iw + DEPENDS+= +iw +ip FILES:= \ $(PKG_BUILD_DIR)/compat/compat.ko \ $(PKG_BUILD_DIR)/net/wireless/cfg80211.ko -- 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] ramips: reset m25p80 when shutdown
Instead of use the set_4byte function in spi-nor.c, I use this patch for simplest modification. In fact, set_4byte also send 0xe9 command to the spi flash. Signed-off-by: Shonn Lu --- .../0064-reset-m25p80-when-shutdown.patch | 27 ++ 1 file changed, 27 insertions(+) create mode 100644 target/linux/ramips/patches-3.18/0064-reset-m25p80-when-shutdown.patch diff --git a/target/linux/ramips/patches-3.18/0064-reset-m25p80-when-shutdown.patch b/target/linux/ramips/patches-3.18/0064-reset-m25p80-when-shutdown.patch new file mode 100644 index 000..aca758d --- /dev/null +++ b/target/linux/ramips/patches-3.18/0064-reset-m25p80-when-shutdown.patch @@ -0,0 +1,27 @@ +--- a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c +@@ -322,6 +322,16 @@ + { + struct m25p *flash = spi_get_drvdata(spi); + ++ if ((&flash->spi_nor)->addr_width > 3) { ++ printk(KERN_INFO "m25p80: exit 4-byte address mode\n"); ++ flash->command[0] = SPINOR_OP_EX4B; // exit 4-byte address mode: 0xe9 ++ spi_write(flash->spi, flash->command, 1); ++ flash->command[0] = 0x66; // enable reset ++ spi_write(flash->spi, flash->command, 1); ++ flash->command[0] = 0x99; // reset ++ spi_write(flash->spi, flash->command, 1); ++ } ++ + /* Clean up MTD stuff. */ + return mtd_device_unregister(&flash->mtd); + } +@@ -385,6 +395,7 @@ + .id_table = m25p_ids, + .probe = m25p_probe, + .remove = m25p_remove, ++ .shutdown = m25p_remove, // add shutdown method to reset spi flash + + /* REVISIT: many of these chips have deep power-down modes, which +* should clearly be entered on suspend() to minimize power use. -- 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] ramips: reset m25p80 when shutdown
Signed-off-by: Shonn Lu --- .../0064-reset-m25p80-when-shutdown.patch | 27 ++ 1 file changed, 27 insertions(+) create mode 100644 target/linux/ramips/patches-3.18/0064-reset-m25p80-when-shutdown.patch diff --git a/target/linux/ramips/patches-3.18/0064-reset-m25p80-when-shutdown.patch b/target/linux/ramips/patches-3.18/0064-reset-m25p80-when-shutdown.patch new file mode 100644 index 000..aca758d --- /dev/null +++ b/target/linux/ramips/patches-3.18/0064-reset-m25p80-when-shutdown.patch @@ -0,0 +1,27 @@ +--- a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c +@@ -322,6 +322,16 @@ + { + struct m25p *flash = spi_get_drvdata(spi); + ++ if ((&flash->spi_nor)->addr_width > 3) { ++ printk(KERN_INFO "m25p80: exit 4-byte address mode\n"); ++ flash->command[0] = SPINOR_OP_EX4B; // exit 4-byte address mode: 0xe9 ++ spi_write(flash->spi, flash->command, 1); ++ flash->command[0] = 0x66; // enable reset ++ spi_write(flash->spi, flash->command, 1); ++ flash->command[0] = 0x99; // reset ++ spi_write(flash->spi, flash->command, 1); ++ } ++ + /* Clean up MTD stuff. */ + return mtd_device_unregister(&flash->mtd); + } +@@ -385,6 +395,7 @@ + .id_table = m25p_ids, + .probe = m25p_probe, + .remove = m25p_remove, ++ .shutdown = m25p_remove, // add shutdown method to reset spi flash + + /* REVISIT: many of these chips have deep power-down modes, which +* should clearly be entered on suspend() to minimize power use. -- 1.9.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH v2 1/2] pinctrl/lantiq: split xway_mfp into dedicated tables
On Mon, Nov 16, 2015 at 2:55 PM, Martin Schiller wrote: > On Mon, Nov 16, 2015 at 2:06 PM, Jonas Gorski > wrote: >> On Mon, Nov 16, 2015 at 12:01 PM, Martin Schiller >> wrote: >> > This patch splits the inadequate "pinctrl-xway" and "pinctrl-xr9" >> > settings into dedicated "pinctrl-ase", "pinctrl-danube", >> > "pinctrl-xrx100" and "pinctrl-xrx200" configuration tables. >> > >> > Based on the newest Lantiq Hardware Description it turend out, that >> > there are some differences in the GPIO alternative functions of the >> > Danube, xRX100 and xRX200 families, which makes it impossible to use >> only one xway_mfp table. >> > >> > This patch is also the first step to add support for the xRX300 >> family. >> > >> > Signed-off-by: Martin Schiller >> > --- >> > .../patches-3.18/0150-lantiq-pinctrl-xway.patch| 1059 >> +++- >> > .../patches-4.1/0150-lantiq-pinctrl-xway.patch | 1059 >> +++- >> > 2 files changed, 2098 insertions(+), 20 deletions(-) >> > >> > diff --git >> > a/target/linux/lantiq/patches-3.18/0150-lantiq-pinctrl-xway.patch >> > b/target/linux/lantiq/patches-3.18/0150-lantiq-pinctrl-xway.patch >> > index 84adbe6..3fc0432 100644 >> > --- a/target/linux/lantiq/patches-3.18/0150-lantiq-pinctrl-xway.patch >> > +++ b/target/linux/lantiq/patches-3.18/0150-lantiq-pinctrl-xway.patch >> > @@ -1,15 +1,1054 @@ >> > --- a/drivers/pinctrl/pinctrl-xway.c >> > +++ b/drivers/pinctrl/pinctrl-xway.c >> >> (snip) >> >> > +@@ -769,9 +1153,10 @@ static struct pinctrl_gpio_range xway_gp }; >> > + >> > + static const struct of_device_id xway_match[] = { >> > +- { .compatible = "lantiq,pinctrl-xway", .data = &soc_cfg[0]}, >> > +- { .compatible = "lantiq,pinctrl-xr9", .data = &soc_cfg[1]}, >> > +- { .compatible = "lantiq,pinctrl-ase", .data = &soc_cfg[2]}, >> > ++ { .compatible = "lantiq,pinctrl-ase", .data = &soc_cfg[0]}, >> > ++ { .compatible = "lantiq,pinctrl-danube", .data = >> &soc_cfg[1]}, >> > ++ { .compatible = "lantiq,pinctrl-xrx100", .data = >> &soc_cfg[2]}, >> > ++ { .compatible = "lantiq,pinctrl-xrx200", .data = >> &soc_cfg[3]}, >> >> Unfortunately that ship has sailed, and "lantiq,pinctrl-xway" etc are >> the Documented bindings for it in upstream linux; you can't just drop >> support for the older bindings. At least you will never get this >> accepted upstream. Also if you update bindings, you need to update the >> documentation in Documentation/devicetree/bindings as well. > > OK, you are right. We also need to patch the bindings and the Documentation. > > "that ship has sailed": Do you mean, it's impossible to bring this changes > upstream? > > Or would it be a solution to let the pinctrl-xway and pinctrl-xr9 in the code > and mark it as deprecated somehow? Device tree blobs using the old bindings must still work with newer kernels. So adding support for new bindings and deprecating the old ones is possible, but you can't drop support for them. Jonas ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH v2 1/2] pinctrl/lantiq: split xway_mfp into dedicated tables
Hi, Mit freundlichen Grüßen, Kind regards Martin Schiller Dipl.-Inf. FH Entwicklung Development TDT GmbH Tel. +49 (0) 8703 929 00 Siemensstr. 18 Fax +49 (0) 8703 929 201 84051 Essenbach E-Mailmschil...@tdt.de Germany Internet www.tdt.de -- Die gesetzlichen Pflichtangaben finden Sie unter http://www.tdt.de/imprint -- On Mon, Nov 16, 2015 at 2:06 PM, Jonas Gorski wrote: > On Mon, Nov 16, 2015 at 12:01 PM, Martin Schiller > wrote: > > This patch splits the inadequate "pinctrl-xway" and "pinctrl-xr9" > > settings into dedicated "pinctrl-ase", "pinctrl-danube", > > "pinctrl-xrx100" and "pinctrl-xrx200" configuration tables. > > > > Based on the newest Lantiq Hardware Description it turend out, that > > there are some differences in the GPIO alternative functions of the > > Danube, xRX100 and xRX200 families, which makes it impossible to use > only one xway_mfp table. > > > > This patch is also the first step to add support for the xRX300 > family. > > > > Signed-off-by: Martin Schiller > > --- > > .../patches-3.18/0150-lantiq-pinctrl-xway.patch| 1059 > +++- > > .../patches-4.1/0150-lantiq-pinctrl-xway.patch | 1059 > +++- > > 2 files changed, 2098 insertions(+), 20 deletions(-) > > > > diff --git > > a/target/linux/lantiq/patches-3.18/0150-lantiq-pinctrl-xway.patch > > b/target/linux/lantiq/patches-3.18/0150-lantiq-pinctrl-xway.patch > > index 84adbe6..3fc0432 100644 > > --- a/target/linux/lantiq/patches-3.18/0150-lantiq-pinctrl-xway.patch > > +++ b/target/linux/lantiq/patches-3.18/0150-lantiq-pinctrl-xway.patch > > @@ -1,15 +1,1054 @@ > > --- a/drivers/pinctrl/pinctrl-xway.c > > +++ b/drivers/pinctrl/pinctrl-xway.c > > (snip) > > > +@@ -769,9 +1153,10 @@ static struct pinctrl_gpio_range xway_gp }; > > + > > + static const struct of_device_id xway_match[] = { > > +- { .compatible = "lantiq,pinctrl-xway", .data = &soc_cfg[0]}, > > +- { .compatible = "lantiq,pinctrl-xr9", .data = &soc_cfg[1]}, > > +- { .compatible = "lantiq,pinctrl-ase", .data = &soc_cfg[2]}, > > ++ { .compatible = "lantiq,pinctrl-ase", .data = &soc_cfg[0]}, > > ++ { .compatible = "lantiq,pinctrl-danube", .data = > &soc_cfg[1]}, > > ++ { .compatible = "lantiq,pinctrl-xrx100", .data = > &soc_cfg[2]}, > > ++ { .compatible = "lantiq,pinctrl-xrx200", .data = > &soc_cfg[3]}, > > Unfortunately that ship has sailed, and "lantiq,pinctrl-xway" etc are > the Documented bindings for it in upstream linux; you can't just drop > support for the older bindings. At least you will never get this > accepted upstream. Also if you update bindings, you need to update the > documentation in Documentation/devicetree/bindings as well. OK, you are right. We also need to patch the bindings and the Documentation. "that ship has sailed": Do you mean, it's impossible to bring this changes upstream? Or would it be a solution to let the pinctrl-xway and pinctrl-xr9 in the code and mark it as deprecated somehow? > > > > + {}, > > + }; > > + MODULE_DEVICE_TABLE(of, xway_match); Martin ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH v2 1/2] pinctrl/lantiq: split xway_mfp into dedicated tables
Hi, On Mon, Nov 16, 2015 at 12:01 PM, Martin Schiller wrote: > This patch splits the inadequate "pinctrl-xway" and "pinctrl-xr9" settings > into dedicated "pinctrl-ase", "pinctrl-danube", "pinctrl-xrx100" and > "pinctrl-xrx200" configuration tables. > > Based on the newest Lantiq Hardware Description it turend out, that there are > some differences in the GPIO alternative functions of the Danube, xRX100 and > xRX200 families, which makes it impossible to use only one xway_mfp table. > > This patch is also the first step to add support for the xRX300 family. > > Signed-off-by: Martin Schiller > --- > .../patches-3.18/0150-lantiq-pinctrl-xway.patch| 1059 > +++- > .../patches-4.1/0150-lantiq-pinctrl-xway.patch | 1059 > +++- > 2 files changed, 2098 insertions(+), 20 deletions(-) > > diff --git a/target/linux/lantiq/patches-3.18/0150-lantiq-pinctrl-xway.patch > b/target/linux/lantiq/patches-3.18/0150-lantiq-pinctrl-xway.patch > index 84adbe6..3fc0432 100644 > --- a/target/linux/lantiq/patches-3.18/0150-lantiq-pinctrl-xway.patch > +++ b/target/linux/lantiq/patches-3.18/0150-lantiq-pinctrl-xway.patch > @@ -1,15 +1,1054 @@ > --- a/drivers/pinctrl/pinctrl-xway.c > +++ b/drivers/pinctrl/pinctrl-xway.c (snip) > +@@ -769,9 +1153,10 @@ static struct pinctrl_gpio_range xway_gp > + }; > + > + static const struct of_device_id xway_match[] = { > +- { .compatible = "lantiq,pinctrl-xway", .data = &soc_cfg[0]}, > +- { .compatible = "lantiq,pinctrl-xr9", .data = &soc_cfg[1]}, > +- { .compatible = "lantiq,pinctrl-ase", .data = &soc_cfg[2]}, > ++ { .compatible = "lantiq,pinctrl-ase", .data = &soc_cfg[0]}, > ++ { .compatible = "lantiq,pinctrl-danube", .data = &soc_cfg[1]}, > ++ { .compatible = "lantiq,pinctrl-xrx100", .data = &soc_cfg[2]}, > ++ { .compatible = "lantiq,pinctrl-xrx200", .data = &soc_cfg[3]}, Unfortunately that ship has sailed, and "lantiq,pinctrl-xway" etc are the Documented bindings for it in upstream linux; you can't just drop support for the older bindings. At least you will never get this accepted upstream. Also if you update bindings, you need to update the documentation in Documentation/devicetree/bindings as well. > + {}, > + }; > + MODULE_DEVICE_TABLE(of, xway_match); Jonas ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH v2 2/2] pinctrl/lantiq: adapt device-trees to new tables
This patch adapts the "pinctrl-xway" and "pinctrl-xr9" settings in the dts files into dedicated "pinctrl-ase", "pinctrl-danube", "pinctrl-xrx100" and "pinctrl-xrx200" settings. Signed-off-by: Martin Schiller --- target/linux/lantiq/dts/BTHOMEHUBV2B.dts | 2 +- target/linux/lantiq/dts/BTHOMEHUBV3A.dts | 2 +- target/linux/lantiq/dts/EASY50712.dts| 2 +- target/linux/lantiq/dts/EASY50810.dts| 2 +- target/linux/lantiq/dts/EASY80920.dtsi | 2 +- target/linux/lantiq/dts/GR7000.dts | 2 +- target/linux/lantiq/dts/P2601HNFX.dts| 2 +- target/linux/lantiq/dts/P2812HNUFX.dtsi | 2 +- target/linux/lantiq/dts/VGV7519.dtsi | 2 +- target/linux/lantiq/dts/ar9.dtsi | 2 +- target/linux/lantiq/dts/danube.dtsi | 2 +- target/linux/lantiq/dts/vr9.dtsi | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/target/linux/lantiq/dts/BTHOMEHUBV2B.dts b/target/linux/lantiq/dts/BTHOMEHUBV2B.dts index 9b3180c..e2d713e 100644 --- a/target/linux/lantiq/dts/BTHOMEHUBV2B.dts +++ b/target/linux/lantiq/dts/BTHOMEHUBV2B.dts @@ -102,7 +102,7 @@ }; gpio: pinmux@E100B10 { - compatible = "lantiq,pinctrl-xway"; + compatible = "lantiq,pinctrl-danube"; pinctrl-names = "default"; pinctrl-0 = <&state_default>; diff --git a/target/linux/lantiq/dts/BTHOMEHUBV3A.dts b/target/linux/lantiq/dts/BTHOMEHUBV3A.dts index 1ae9840..9383498 100644 --- a/target/linux/lantiq/dts/BTHOMEHUBV3A.dts +++ b/target/linux/lantiq/dts/BTHOMEHUBV3A.dts @@ -79,7 +79,7 @@ }; gpio: pinmux@E100B10 { - compatible = "lantiq,pinctrl-xr9"; + compatible = "lantiq,pinctrl-xrx100"; pinctrl-names = "default"; pinctrl-0 = <&state_default>; diff --git a/target/linux/lantiq/dts/EASY50712.dts b/target/linux/lantiq/dts/EASY50712.dts index e44267a..e0d5ed1 100644 --- a/target/linux/lantiq/dts/EASY50712.dts +++ b/target/linux/lantiq/dts/EASY50712.dts @@ -51,7 +51,7 @@ }; gpio: pinmux@E100B10 { - compatible = "lantiq,pinctrl-xway"; + compatible = "lantiq,pinctrl-danube"; pinctrl-names = "default"; pinctrl-0 = <&state_default>; diff --git a/target/linux/lantiq/dts/EASY50810.dts b/target/linux/lantiq/dts/EASY50810.dts index 5f4b733..73f31ea 100644 --- a/target/linux/lantiq/dts/EASY50810.dts +++ b/target/linux/lantiq/dts/EASY50810.dts @@ -51,7 +51,7 @@ }; gpio: pinmux@E100B10 { - compatible = "lantiq,pinctrl-xr9"; + compatible = "lantiq,pinctrl-xrx100"; pinctrl-names = "default"; pinctrl-0 = <&state_default>; diff --git a/target/linux/lantiq/dts/EASY80920.dtsi b/target/linux/lantiq/dts/EASY80920.dtsi index 4013610..0600d36 100644 --- a/target/linux/lantiq/dts/EASY80920.dtsi +++ b/target/linux/lantiq/dts/EASY80920.dtsi @@ -71,7 +71,7 @@ }; gpio: pinmux@E100B10 { - compatible = "lantiq,pinctrl-xr9"; + compatible = "lantiq,pinctrl-xrx200"; pinctrl-names = "default"; pinctrl-0 = <&state_default>; diff --git a/target/linux/lantiq/dts/GR7000.dts b/target/linux/lantiq/dts/GR7000.dts index fcc27eb..bc95f1f 100644 --- a/target/linux/lantiq/dts/GR7000.dts +++ b/target/linux/lantiq/dts/GR7000.dts @@ -42,7 +42,7 @@ }; gpio: pinmux@E100B10 { - compatible = "lantiq,pinctrl-xr9"; + compatible = "lantiq,pinctrl-xrx100"; pinctrl-names = "default"; pinctrl-0 = <&state_default>; diff --git a/target/linux/lantiq/dts/P2601HNFX.dts b/target/linux/lantiq/dts/P2601HNFX.dts index bb9193e..c22c547 100644 --- a/target/linux/lantiq/dts/P2601HNFX.dts +++ b/target/linux/lantiq/dts/P2601HNFX.dts @@ -50,7 +50,7 @@ }; gpio: pinmux@E100B10 { - compatible = "lantiq,pinctrl-xr9"; + compatible = "lantiq,pinctrl-xrx100"; pinctrl-names = "default"; pinctrl-0 = <&state_default>; diff --git a/target/linux/lantiq/dts/P2812HNUFX.dtsi b/target/linux/lantiq/dts/P2812HNUFX.dtsi index d93e862..1dd13ac 100644 --- a/target/linux/lantiq/dts/P2812HNUFX.dtsi +++ b/target/linux/lantiq/dts/P2812HNUFX.dtsi @@ -25,7 +25,7 @@ }; gpio: pinmux@E100B10 { - compatible = "lantiq,pinctrl-xr9"; + compatible = "lantiq,pinctrl-xrx200"; pinctrl-names = "default"; pinctrl-0 = <&state
[OpenWrt-Devel] [PATCH v2 1/2] pinctrl/lantiq: split xway_mfp into dedicated tables
This patch splits the inadequate "pinctrl-xway" and "pinctrl-xr9" settings into dedicated "pinctrl-ase", "pinctrl-danube", "pinctrl-xrx100" and "pinctrl-xrx200" configuration tables. Based on the newest Lantiq Hardware Description it turend out, that there are some differences in the GPIO alternative functions of the Danube, xRX100 and xRX200 families, which makes it impossible to use only one xway_mfp table. This patch is also the first step to add support for the xRX300 family. Signed-off-by: Martin Schiller --- .../patches-3.18/0150-lantiq-pinctrl-xway.patch| 1059 +++- .../patches-4.1/0150-lantiq-pinctrl-xway.patch | 1059 +++- 2 files changed, 2098 insertions(+), 20 deletions(-) diff --git a/target/linux/lantiq/patches-3.18/0150-lantiq-pinctrl-xway.patch b/target/linux/lantiq/patches-3.18/0150-lantiq-pinctrl-xway.patch index 84adbe6..3fc0432 100644 --- a/target/linux/lantiq/patches-3.18/0150-lantiq-pinctrl-xway.patch +++ b/target/linux/lantiq/patches-3.18/0150-lantiq-pinctrl-xway.patch @@ -1,15 +1,1054 @@ --- a/drivers/pinctrl/pinctrl-xway.c +++ b/drivers/pinctrl/pinctrl-xway.c -@@ -152,10 +152,10 @@ static const struct ltq_mfp_pin xway_mfp - MFP_XWAY(GPIO41, GPIO, NONE, NONE, NONE), - MFP_XWAY(GPIO42, GPIO, MDIO, NONE, NONE), - MFP_XWAY(GPIO43, GPIO, MDIO, NONE, NONE), +@@ -7,6 +7,7 @@ + * publishhed by the Free Software Foundation. + * + * Copyright (C) 2012 John Crispin ++ * Copyright (C) 2015 Martin Schiller + */ + + #include +@@ -80,17 +81,18 @@ + #define FUNC_MUX(f, m)\ + { .func = f, .mux = XWAY_MUX_##m, } + +-#define XWAY_MAX_PIN 32 +-#define XR9_MAX_PIN 56 +- + enum xway_mux { + XWAY_MUX_GPIO = 0, + XWAY_MUX_SPI, + XWAY_MUX_ASC, ++ XWAY_MUX_USIF, + XWAY_MUX_PCI, ++ XWAY_MUX_CBUS, + XWAY_MUX_CGU, + XWAY_MUX_EBU, ++ XWAY_MUX_EBU2, + XWAY_MUX_JTAG, ++ XWAY_MUX_MCD, + XWAY_MUX_EXIN, + XWAY_MUX_TDM, + XWAY_MUX_STP, +@@ -103,68 +105,12 @@ enum xway_mux { + XWAY_MUX_DFE, + XWAY_MUX_SDIO, + XWAY_MUX_GPHY, ++ XWAY_MUX_SSI, + XWAY_MUX_NONE = 0x, + }; + +-static const struct ltq_mfp_pin xway_mfp[] = { +- /* pinf0 f1 f2 f3 */ +- MFP_XWAY(GPIO0, GPIO, EXIN, NONE, TDM), +- MFP_XWAY(GPIO1, GPIO, EXIN, NONE, NONE), +- MFP_XWAY(GPIO2, GPIO, CGU,EXIN, GPHY), +- MFP_XWAY(GPIO3, GPIO, CGU,NONE, PCI), +- MFP_XWAY(GPIO4, GPIO, STP,NONE, ASC), +- MFP_XWAY(GPIO5, GPIO, STP,NONE, GPHY), +- MFP_XWAY(GPIO6, GPIO, STP,GPT,ASC), +- MFP_XWAY(GPIO7, GPIO, CGU,PCI,GPHY), +- MFP_XWAY(GPIO8, GPIO, CGU,NMI,NONE), +- MFP_XWAY(GPIO9, GPIO, ASC,SPI,EXIN), +- MFP_XWAY(GPIO10, GPIO, ASC,SPI,NONE), +- MFP_XWAY(GPIO11, GPIO, ASC,PCI,SPI), +- MFP_XWAY(GPIO12, GPIO, ASC,NONE, NONE), +- MFP_XWAY(GPIO13, GPIO, EBU,SPI,NONE), +- MFP_XWAY(GPIO14, GPIO, CGU,PCI,NONE), +- MFP_XWAY(GPIO15, GPIO, SPI,JTAG, NONE), +- MFP_XWAY(GPIO16, GPIO, SPI,NONE, JTAG), +- MFP_XWAY(GPIO17, GPIO, SPI,NONE, JTAG), +- MFP_XWAY(GPIO18, GPIO, SPI,NONE, JTAG), +- MFP_XWAY(GPIO19, GPIO, PCI,NONE, NONE), +- MFP_XWAY(GPIO20, GPIO, JTAG, NONE, NONE), +- MFP_XWAY(GPIO21, GPIO, PCI,EBU,GPT), +- MFP_XWAY(GPIO22, GPIO, SPI,NONE, NONE), +- MFP_XWAY(GPIO23, GPIO, EBU,PCI,STP), +- MFP_XWAY(GPIO24, GPIO, EBU,TDM,PCI), +- MFP_XWAY(GPIO25, GPIO, TDM,NONE, ASC), +- MFP_XWAY(GPIO26, GPIO, EBU,NONE, TDM), +- MFP_XWAY(GPIO27, GPIO, TDM,NONE, ASC), +- MFP_XWAY(GPIO28, GPIO, GPT,NONE, NONE), +- MFP_XWAY(GPIO29, GPIO, PCI,NONE, NONE), +- MFP_XWAY(GPIO30, GPIO, PCI,NONE, NONE), +- MFP_XWAY(GPIO31, GPIO, EBU,PCI,NONE), +- MFP_XWAY(GPIO32, GPIO, NONE, NONE, EBU), +- MFP_XWAY(GPIO33, GPIO, NONE, NONE, EBU), +- MFP_XWAY(GPIO34, GPIO, NONE, NONE, EBU), +- MFP_XWAY(GPIO35, GPIO, NONE, NONE, EBU), +- MFP_XWAY(GPIO36, GPIO, SIN,NONE, EBU), +- MFP_XWAY(GPIO37, GPIO, PCI,NONE, NONE), +- MFP_XWAY(GPIO38, GPIO, PCI,NONE, NONE), +- MFP_XWAY(GPIO39, GPIO, EXIN, NONE, NONE), +- MFP_XWAY(GPIO40, GPIO, NONE, NONE, NONE), +- MFP_XWAY(GPIO41, GPIO, NONE, NONE, NONE), +- MFP_XWAY(GPIO42, GPIO, MDIO, NONE, NONE), +- MFP_XWAY(GPIO43, GPIO, MDIO, NONE, NONE), - MFP_XWAY(GPIO44, GPIO, NONE, GPHY, SIN), -+ MFP_XWAY(GPIO44, GPIO, MII,SIN,GPHY), - MFP_XWAY(GPIO45, GPIO, NONE, GPHY, SIN), - MFP_XWAY(GPIO46, GPIO, NONE, NONE, EXIN), +- MFP_XWAY(GPIO45, GPIO,
Re: [OpenWrt-Devel] [PATCH] pinctrl/lantiq: split xway_mfp into dedicated tables
Hi, ok, I will split this patch into 2 patches: [1/2] pinctrl/lantiq: split xway_mfp into dedicated tables [2/2] pinctrl/lantiq: adapt device-trees to new tables Would that be ok? To get the pinctrl patch upstream, we also have to send the 0012-pinctrl-lantiq-fix-up-pinmux.patch upstream. Should I do this in a patch series as well? To whom should this patch be sent? (maintainer/mailing-list?) Martin -Ursprüngliche Nachricht- Von: openwrt-devel [mailto:openwrt-devel-boun...@lists.openwrt.org] Im Auftrag von John Crispin Gesendet: Montag, 16. November 2015 10:50 An: openwrt-devel@lists.openwrt.org Betreff: Re: [OpenWrt-Devel] [PATCH] pinctrl/lantiq: split xway_mfp into dedicated tables Hi, the dts and kernel changes should be in separate patches. also please send the pinctrl patch upstream. John On 16/11/2015 10:42, Martin Schiller wrote: > This patch splits the inadequate "pinctrl-xway" and "pinctrl-xr9" settings > into dedicated "pinctrl-ase", "pinctrl-danube", "pinctrl-xrx100" and > "pinctrl-xrx200" configuration tables. > > Based on the newest Lantiq Hardware Description it turend out, that there are > some differences in the GPIO alternative functions of the Danube, xRX100 and > xRX200 families, which makes it impossible to use only one xway_mfp table. > > This patch is also the first step to add support for the xRX300 family. > > Signed-off-by: Martin Schiller > --- > target/linux/lantiq/dts/BTHOMEHUBV2B.dts |2 +- > target/linux/lantiq/dts/BTHOMEHUBV3A.dts |2 +- > target/linux/lantiq/dts/EASY50712.dts |2 +- > target/linux/lantiq/dts/EASY50810.dts |2 +- > target/linux/lantiq/dts/EASY80920.dtsi |2 +- > target/linux/lantiq/dts/GR7000.dts |2 +- > target/linux/lantiq/dts/P2601HNFX.dts |2 +- > target/linux/lantiq/dts/P2812HNUFX.dtsi|2 +- > target/linux/lantiq/dts/VGV7519.dtsi |2 +- > target/linux/lantiq/dts/ar9.dtsi |2 +- > target/linux/lantiq/dts/danube.dtsi|2 +- > target/linux/lantiq/dts/vr9.dtsi |2 +- > .../patches-4.1/0150-lantiq-pinctrl-xway.patch | 1059 > +++- > 13 files changed, 1061 insertions(+), 22 deletions(-) > > diff --git a/target/linux/lantiq/dts/BTHOMEHUBV2B.dts > b/target/linux/lantiq/dts/BTHOMEHUBV2B.dts > index 9b3180c..e2d713e 100644 > --- a/target/linux/lantiq/dts/BTHOMEHUBV2B.dts > +++ b/target/linux/lantiq/dts/BTHOMEHUBV2B.dts > @@ -102,7 +102,7 @@ > }; > > gpio: pinmux@E100B10 { > -compatible = "lantiq,pinctrl-xway"; > +compatible = "lantiq,pinctrl-danube"; > pinctrl-names = "default"; > pinctrl-0 = <&state_default>; > > diff --git a/target/linux/lantiq/dts/BTHOMEHUBV3A.dts > b/target/linux/lantiq/dts/BTHOMEHUBV3A.dts > index 1ae9840..9383498 100644 > --- a/target/linux/lantiq/dts/BTHOMEHUBV3A.dts > +++ b/target/linux/lantiq/dts/BTHOMEHUBV3A.dts > @@ -79,7 +79,7 @@ > }; > > gpio: pinmux@E100B10 { > -compatible = "lantiq,pinctrl-xr9"; > +compatible = "lantiq,pinctrl-xrx100"; > pinctrl-names = "default"; > pinctrl-0 = <&state_default>; > > diff --git a/target/linux/lantiq/dts/EASY50712.dts > b/target/linux/lantiq/dts/EASY50712.dts > index e44267a..e0d5ed1 100644 > --- a/target/linux/lantiq/dts/EASY50712.dts > +++ b/target/linux/lantiq/dts/EASY50712.dts > @@ -51,7 +51,7 @@ > }; > > gpio: pinmux@E100B10 { > -compatible = "lantiq,pinctrl-xway"; > +compatible = "lantiq,pinctrl-danube"; > pinctrl-names = "default"; > pinctrl-0 = <&state_default>; > > diff --git a/target/linux/lantiq/dts/EASY50810.dts > b/target/linux/lantiq/dts/EASY50810.dts > index 5f4b733..73f31ea 100644 > --- a/target/linux/lantiq/dts/EASY50810.dts > +++ b/target/linux/lantiq/dts/EASY50810.dts > @@ -51,7 +51,7 @@ > }; > > gpio: pinmux@E100B10 { > -compatible = "lantiq,pinctrl-xr9"; > +compatible = "lantiq,pinctrl-xrx100"; > pinctrl-names = "default"; > pinctrl-0 = <&state_default>; > > diff --git a/target/linux/lantiq/dts/EASY80920.dtsi > b/target/linux/lantiq/dts/EASY80920.dtsi > index 4013610..0600d36 100644 > --- a/target/linux/lantiq/dts/EASY80920.dtsi > +++ b/target/linux/lantiq/dts/EASY80920.dtsi > @@ -71,7 +71,7 @@ > }; > > gpio: pinmux@E100B10 { > -compatible = "lantiq,pinctrl-xr9"; > +compatible = "lantiq,pinctrl-xrx200"; > pinctrl-names = "default"; > pinctrl-0 = <&state_default>; > > diff --git a/target/linux/lantiq/dts/GR7000.dts > b/target/linux/lantiq/dts/GR7000.dts > index fcc27eb..bc95f1f 100644 > --- a/target/linux/lantiq/dts/GR7000.dts > +++ b/target/linux/lantiq/dts/GR7000.dts > @@ -42,7 +42,7 @@ > }; > > gpio: pinmux@E100B10 { > -compatible = "lantiq,pinctrl-xr9"; > +compatible = "lantiq,pinctrl-xrx100"; > pinctrl-names = "default"; > pinctrl-0 = <&state_default>; > > diff --git a/target/linux/lantiq/dts/P2601HNFX.dts > b/target/linux/lantiq/dts/P2601HNFX.dts > index bb9193e..c22c547 100644 > --- a/target
Re: [OpenWrt-Devel] [PATCH] pinctrl/lantiq: split xway_mfp into dedicated tables
Hi, the dts and kernel changes should be in separate patches. also please send the pinctrl patch upstream. John On 16/11/2015 10:42, Martin Schiller wrote: > This patch splits the inadequate "pinctrl-xway" and "pinctrl-xr9" settings > into dedicated "pinctrl-ase", "pinctrl-danube", "pinctrl-xrx100" and > "pinctrl-xrx200" configuration tables. > > Based on the newest Lantiq Hardware Description it turend out, that there are > some differences in the GPIO alternative functions of the Danube, xRX100 and > xRX200 families, which makes it impossible to use only one xway_mfp table. > > This patch is also the first step to add support for the xRX300 family. > > Signed-off-by: Martin Schiller > --- > target/linux/lantiq/dts/BTHOMEHUBV2B.dts |2 +- > target/linux/lantiq/dts/BTHOMEHUBV3A.dts |2 +- > target/linux/lantiq/dts/EASY50712.dts |2 +- > target/linux/lantiq/dts/EASY50810.dts |2 +- > target/linux/lantiq/dts/EASY80920.dtsi |2 +- > target/linux/lantiq/dts/GR7000.dts |2 +- > target/linux/lantiq/dts/P2601HNFX.dts |2 +- > target/linux/lantiq/dts/P2812HNUFX.dtsi|2 +- > target/linux/lantiq/dts/VGV7519.dtsi |2 +- > target/linux/lantiq/dts/ar9.dtsi |2 +- > target/linux/lantiq/dts/danube.dtsi|2 +- > target/linux/lantiq/dts/vr9.dtsi |2 +- > .../patches-4.1/0150-lantiq-pinctrl-xway.patch | 1059 > +++- > 13 files changed, 1061 insertions(+), 22 deletions(-) > > diff --git a/target/linux/lantiq/dts/BTHOMEHUBV2B.dts > b/target/linux/lantiq/dts/BTHOMEHUBV2B.dts > index 9b3180c..e2d713e 100644 > --- a/target/linux/lantiq/dts/BTHOMEHUBV2B.dts > +++ b/target/linux/lantiq/dts/BTHOMEHUBV2B.dts > @@ -102,7 +102,7 @@ > }; > > gpio: pinmux@E100B10 { > - compatible = "lantiq,pinctrl-xway"; > + compatible = "lantiq,pinctrl-danube"; > pinctrl-names = "default"; > pinctrl-0 = <&state_default>; > > diff --git a/target/linux/lantiq/dts/BTHOMEHUBV3A.dts > b/target/linux/lantiq/dts/BTHOMEHUBV3A.dts > index 1ae9840..9383498 100644 > --- a/target/linux/lantiq/dts/BTHOMEHUBV3A.dts > +++ b/target/linux/lantiq/dts/BTHOMEHUBV3A.dts > @@ -79,7 +79,7 @@ > }; > > gpio: pinmux@E100B10 { > - compatible = "lantiq,pinctrl-xr9"; > + compatible = "lantiq,pinctrl-xrx100"; > pinctrl-names = "default"; > pinctrl-0 = <&state_default>; > > diff --git a/target/linux/lantiq/dts/EASY50712.dts > b/target/linux/lantiq/dts/EASY50712.dts > index e44267a..e0d5ed1 100644 > --- a/target/linux/lantiq/dts/EASY50712.dts > +++ b/target/linux/lantiq/dts/EASY50712.dts > @@ -51,7 +51,7 @@ > }; > > gpio: pinmux@E100B10 { > - compatible = "lantiq,pinctrl-xway"; > + compatible = "lantiq,pinctrl-danube"; > pinctrl-names = "default"; > pinctrl-0 = <&state_default>; > > diff --git a/target/linux/lantiq/dts/EASY50810.dts > b/target/linux/lantiq/dts/EASY50810.dts > index 5f4b733..73f31ea 100644 > --- a/target/linux/lantiq/dts/EASY50810.dts > +++ b/target/linux/lantiq/dts/EASY50810.dts > @@ -51,7 +51,7 @@ > }; > > gpio: pinmux@E100B10 { > - compatible = "lantiq,pinctrl-xr9"; > + compatible = "lantiq,pinctrl-xrx100"; > pinctrl-names = "default"; > pinctrl-0 = <&state_default>; > > diff --git a/target/linux/lantiq/dts/EASY80920.dtsi > b/target/linux/lantiq/dts/EASY80920.dtsi > index 4013610..0600d36 100644 > --- a/target/linux/lantiq/dts/EASY80920.dtsi > +++ b/target/linux/lantiq/dts/EASY80920.dtsi > @@ -71,7 +71,7 @@ > }; > > gpio: pinmux@E100B10 { > - compatible = "lantiq,pinctrl-xr9"; > + compatible = "lantiq,pinctrl-xrx200"; > pinctrl-names = "default"; > pinctrl-0 = <&state_default>; > > diff --git a/target/linux/lantiq/dts/GR7000.dts > b/target/linux/lantiq/dts/GR7000.dts > index fcc27eb..bc95f1f 100644 > --- a/target/linux/lantiq/dts/GR7000.dts > +++ b/target/linux/lantiq/dts/GR7000.dts > @@ -42,7 +42,7 @@ > }; > > gpio: pinmux@E100B10 { > - compatible = "lantiq,pinctrl-xr9"; > + compatible = "lantiq,pinctrl-xrx100"; > pinctrl-names = "default"; > pinctrl-0 = <&state_default>; > > diff --git a/target/linux/lantiq/dts/P2601HNFX.dts > b/target/linux/lantiq/dts/P2601HNFX.dts > index bb9193e..c22c547 100644 > --- a/target/linux/lantiq/dt
[OpenWrt-Devel] [PATCH] pinctrl/lantiq: split xway_mfp into dedicated tables
This patch splits the inadequate "pinctrl-xway" and "pinctrl-xr9" settings into dedicated "pinctrl-ase", "pinctrl-danube", "pinctrl-xrx100" and "pinctrl-xrx200" configuration tables. Based on the newest Lantiq Hardware Description it turend out, that there are some differences in the GPIO alternative functions of the Danube, xRX100 and xRX200 families, which makes it impossible to use only one xway_mfp table. This patch is also the first step to add support for the xRX300 family. Signed-off-by: Martin Schiller --- target/linux/lantiq/dts/BTHOMEHUBV2B.dts |2 +- target/linux/lantiq/dts/BTHOMEHUBV3A.dts |2 +- target/linux/lantiq/dts/EASY50712.dts |2 +- target/linux/lantiq/dts/EASY50810.dts |2 +- target/linux/lantiq/dts/EASY80920.dtsi |2 +- target/linux/lantiq/dts/GR7000.dts |2 +- target/linux/lantiq/dts/P2601HNFX.dts |2 +- target/linux/lantiq/dts/P2812HNUFX.dtsi|2 +- target/linux/lantiq/dts/VGV7519.dtsi |2 +- target/linux/lantiq/dts/ar9.dtsi |2 +- target/linux/lantiq/dts/danube.dtsi|2 +- target/linux/lantiq/dts/vr9.dtsi |2 +- .../patches-4.1/0150-lantiq-pinctrl-xway.patch | 1059 +++- 13 files changed, 1061 insertions(+), 22 deletions(-) diff --git a/target/linux/lantiq/dts/BTHOMEHUBV2B.dts b/target/linux/lantiq/dts/BTHOMEHUBV2B.dts index 9b3180c..e2d713e 100644 --- a/target/linux/lantiq/dts/BTHOMEHUBV2B.dts +++ b/target/linux/lantiq/dts/BTHOMEHUBV2B.dts @@ -102,7 +102,7 @@ }; gpio: pinmux@E100B10 { - compatible = "lantiq,pinctrl-xway"; + compatible = "lantiq,pinctrl-danube"; pinctrl-names = "default"; pinctrl-0 = <&state_default>; diff --git a/target/linux/lantiq/dts/BTHOMEHUBV3A.dts b/target/linux/lantiq/dts/BTHOMEHUBV3A.dts index 1ae9840..9383498 100644 --- a/target/linux/lantiq/dts/BTHOMEHUBV3A.dts +++ b/target/linux/lantiq/dts/BTHOMEHUBV3A.dts @@ -79,7 +79,7 @@ }; gpio: pinmux@E100B10 { - compatible = "lantiq,pinctrl-xr9"; + compatible = "lantiq,pinctrl-xrx100"; pinctrl-names = "default"; pinctrl-0 = <&state_default>; diff --git a/target/linux/lantiq/dts/EASY50712.dts b/target/linux/lantiq/dts/EASY50712.dts index e44267a..e0d5ed1 100644 --- a/target/linux/lantiq/dts/EASY50712.dts +++ b/target/linux/lantiq/dts/EASY50712.dts @@ -51,7 +51,7 @@ }; gpio: pinmux@E100B10 { - compatible = "lantiq,pinctrl-xway"; + compatible = "lantiq,pinctrl-danube"; pinctrl-names = "default"; pinctrl-0 = <&state_default>; diff --git a/target/linux/lantiq/dts/EASY50810.dts b/target/linux/lantiq/dts/EASY50810.dts index 5f4b733..73f31ea 100644 --- a/target/linux/lantiq/dts/EASY50810.dts +++ b/target/linux/lantiq/dts/EASY50810.dts @@ -51,7 +51,7 @@ }; gpio: pinmux@E100B10 { - compatible = "lantiq,pinctrl-xr9"; + compatible = "lantiq,pinctrl-xrx100"; pinctrl-names = "default"; pinctrl-0 = <&state_default>; diff --git a/target/linux/lantiq/dts/EASY80920.dtsi b/target/linux/lantiq/dts/EASY80920.dtsi index 4013610..0600d36 100644 --- a/target/linux/lantiq/dts/EASY80920.dtsi +++ b/target/linux/lantiq/dts/EASY80920.dtsi @@ -71,7 +71,7 @@ }; gpio: pinmux@E100B10 { - compatible = "lantiq,pinctrl-xr9"; + compatible = "lantiq,pinctrl-xrx200"; pinctrl-names = "default"; pinctrl-0 = <&state_default>; diff --git a/target/linux/lantiq/dts/GR7000.dts b/target/linux/lantiq/dts/GR7000.dts index fcc27eb..bc95f1f 100644 --- a/target/linux/lantiq/dts/GR7000.dts +++ b/target/linux/lantiq/dts/GR7000.dts @@ -42,7 +42,7 @@ }; gpio: pinmux@E100B10 { - compatible = "lantiq,pinctrl-xr9"; + compatible = "lantiq,pinctrl-xrx100"; pinctrl-names = "default"; pinctrl-0 = <&state_default>; diff --git a/target/linux/lantiq/dts/P2601HNFX.dts b/target/linux/lantiq/dts/P2601HNFX.dts index bb9193e..c22c547 100644 --- a/target/linux/lantiq/dts/P2601HNFX.dts +++ b/target/linux/lantiq/dts/P2601HNFX.dts @@ -50,7 +50,7 @@ }; gpio: pinmux@E100B10 { - compatible = "lantiq,pinctrl-xr9"; + compatible = "lantiq,pinctrl-xrx100"; pinctrl-names = "default";
Re: [OpenWrt-Devel] [PATCH] kernel: fix building RTC drivers
On 2015-11-15 23:24, Hauke Mehrtens wrote: > On 11/09/2015 06:05 PM, Helmut Schaa wrote: >> All RTC drivers require the kernel to be built with CONFIG_RTC_CLASS=y. >> Set it accordingly. >> >> Tested only with DS1307. >> >> Signed-off-by: Helmut Schaa >> --- >> package/kernel/linux/modules/other.mk | 24 >> 1 file changed, 16 insertions(+), 8 deletions(-) >> > > With this patch the OpenWrt releases would contain the RTC_CLASS code > for all targets which would increase the size of the kernel. Currently > only some targets are activating CONFIG_RTC_CLASS. > > Have you measured how much bigger the kernel would be with this option? > > On which target do you need this? Those RTC drivers already depend on the 'rtc' feature flag, which is only used by a few targets. This patch will not add bloat to space constrained targets. - Felix ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel