diff mbox

[OpenWrt-Devel] Add support for AVM Fritzbox 7360 SL

Message ID 2d877322-9bf3-7144-3620-589f652f75ef@animeland.de
State Changes Requested
Delegated to: John Crispin
Headers show

Commit Message

Sebastian Ortwein May 15, 2016, 1:44 p.m. UTC
Am 08.05.2016 um 18:40 schrieb Martin Blumenstingl:
> On Sun, May 8, 2016 at 5:49 PM, Sebastian Ortwein <kron@animeland.de> wrote:
>> can I add it the following way ?
>>          mdio@0 {
>>                  #address-cells = <1>;
>>                  #size-cells = <0>;
>>                  compatible = "lantiq,xrx200-mdio";
>>                  phy0: ethernet-phy@0 {
>>                          reg = <0x0>;
>>                          compatible = "lantiq,phy11g",
>> "ethernet-phy-ieee802.3-c22";
>>                          gpios = <&gpio 37 0>;
>>                  };
>>                  phy1: ethernet-phy@1 {
>>                          reg = <0x1>;
>>                          compatible = "lantiq,phy11g",
>> "ethernet-phy-ieee802.3-c22";
>>                          gpios = <&gpio 44 0>;
>>                  };
>>                  phy11: ethernet-phy@11 {
>>                          reg = <0x11>;
>>                          compatible = "lantiq,phy11g",
>> "ethernet-phy-ieee802.3-c22";
>>                  };
>>                  phy13: ethernet-phy@13 {
>>                          reg = <0x13>;
>>                          compatible = "lantiq,phy11g",
>> "ethernet-phy-ieee802.3-c22";
>>                  };
> I think you have to name the property "reset-gpios", but apart from
> that it looks good.
I have try it like you sayed. But without success.
I think the gpios are defined here, but it won't working.

                                 phy-rst {
                                         lantiq,pins = "io37", "io44";
                                         lantiq,pull = <0>;
                                         lantiq,open-drain = <0>;
                                         lantiq,output = <1>;
                                 };

>>> I cannot see any ath9k messages in your kernel log - are you sure it's
>>> being installed (/lib/modules/*/ath9k.ko)?
>>> Your first patch lists kmod-ath9k, but if you added that after you
>>> generated your .config then you're probably still missing it.
>>> Please check "grep kmod-ath9k .config" and enable (set it to
>>> =y/built-in) it if it's missing.
>> I have not disable the ath9k driver. it is present and loaded.
> I think I see the problem after looking at your .dts again:
> you *must* specify the ath,pci-slot property, otherwise the fixup is
> not executed.
> It seems that the wifi part is similar to the TD-W8980 (AR9287 behind
> the PCIe-to-PCI bridge), so "0" should be the right value.
> (otherwise it's pretty easy to find out by looking at sysfs:
> /sys/bus/pci/devices/0000\:00\:0e.0/ -> that's where the ath9k device
> on HH5A can be found, there we use ath,pci-slot = <0xe>;)
>
>
> Martin
>
>
> [0] https://github.com/openwrt/openwrt/blob/master/target/linux/lantiq/patches-4.4/0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch#L178

USB, WLAN and LAN works now. The only think what would not work is phy0 
& phy1.
I have attached my lastet patch.

dmesg

[    0.000000] Linux version 4.4.7 (sebastian@sebastian-desktop) (gcc 
version 5.3.0 (OpenWrt GCC 5.3.0 r49377) ) #1 Sun May 15 13:18:03 UTC 2016
[    0.000000] SoC: xRX200 rev 1.1
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019555 (MIPS 34Kc)
[    0.000000] MIPS: machine is FRITZ7360SL - 1&1 HomeServer
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 
0x0000000000000000-0x0000000007ffffff]
[    0.000000] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat 804d6390, node_mem_map 
81007b60
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 
bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, 
linesize 32 bytes
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  
Total pages: 32512
[    0.000000] Kernel command line: console=ttyLTQ0,115200 init=/etc/preinit
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 
bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00074200
[    0.000000] Readback ErrCtl register=00074200
[    0.000000] Memory: 123372K/131072K available (3764K kernel code, 
164K rwdata, 1144K rodata, 1184K init, 211K bss, 7700K reserved, 0K 
cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:256
[    0.000000] CPU Clock: 500MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 
0xffffffff, max_idle_ns: 7645041786 ns
[    0.000011] sched_clock: 32 bits at 250MHz, resolution 4ns, wraps 
every 8589934590ns
[    0.007861] Calibrating delay loop... 332.54 BogoMIPS (lpj=665088)
[    0.042318] pid_max: default: 32768 minimum: 301
[    0.047172] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.053732] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 
bytes)
[    0.066701] clocksource: jiffies: mask: 0xffffffff max_cycles: 
0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.076483] pinctrl core: initialized pinctrl subsystem
[    0.082366] NET: Registered protocol family 16
[    0.091505] pinctrl-xway 1e100b10.pinmux: Init done
[    0.097056] dma-xway 1e104100.dma: Init done - hw rev: 7, ports: 7, 
channels: 28
[    0.207159] dcdc-xrx200 1f106a00.dcdc: Core Voltage : 1016 mV
[    0.333371] ath9k,eeprom ath9k_eep: failed to load eeprom address
[    0.354429] usbcore: registered new interface driver usbfs
[    0.359938] usbcore: registered new interface driver hub
[    0.365292] usbcore: registered new device driver usb
[    0.370641] PCI host bridge to bus 0000:00
[    0.374631] pci_bus 0000:00: root bus resource [mem 
0x1c000000-0x1cffffff]
[    0.381545] pci_bus 0000:00: root bus resource [io 0x1d800000-0x1d8fffff]
[    0.388488] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.395343] pci_bus 0000:00: No busn resource found for root bus, 
will use [bus 00-ff]
[    0.403373] pci 0000:00:00.0: [15d1:0011] type 01 class 0x060000
[    0.403410] ifx_pcie_rc_class_early_fixup: fixed pcie host bridge to 
pci-pci bridge
[    0.421054] ifx_pcie_fixup_resource: fixup host controller 
0000:00:00.0 (15d1:0011)
[    0.428645] pci 0000:00:00.0: PME# supported from D0 D3hot
[    0.429208] pci 0000:01:00.0: [168c:ff1c] type 00 class 0x020000
[    0.429298] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x0000ffff 64bit]
[    0.429454] pci 0000:01:00.0: supports D1
[    0.429475] pci 0000:01:00.0: PME# supported from D0 D1 D3hot
[    0.429773] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.429814] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 01
[    0.429870] pci 0000:00:00.0: BAR 8: assigned [mem 0x1c000000-0x1c0fffff]
[    0.436557] pci 0000:01:00.0: BAR 0: assigned [mem 
0x1c000000-0x1c00ffff 64bit]
[    0.443919] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.448935] pci 0000:00:00.0:   bridge window [mem 0x1c000000-0x1c0fffff]
[    0.455810] ifx_pcie_bios_map_irq port 0 dev 0000:00:00.0 slot 0 pin 1
[    0.462461] ifx_pcie_bios_map_irq dev 0000:00:00.0 irq 144 assigned
[    0.468815] ifx_pcie_bios_map_irq port 0 dev 0000:01:00.0 slot 0 pin 1
[    0.475481] ifx_pcie_bios_map_irq dev 0000:01:00.0 irq 144 assigned
[    0.482864] clocksource: Switched to clocksource MIPS
[    0.489513] NET: Registered protocol family 2
[    0.494738] TCP established hash table entries: 1024 (order: 0, 4096 
bytes)
[    0.501634] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.508012] TCP: Hash tables configured (established 1024 bind 1024)
[    0.514529] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.520367] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.526969] NET: Registered protocol family 1
[    0.531315] PCI: CLS 0 bytes, default 32
[    0.531770] gptu: totally 6 16-bit timers/counters
[    0.536615] gptu: misc_register on minor 63
[    0.540712] gptu: succeeded to request irq 126
[    0.545201] gptu: succeeded to request irq 127
[    0.549715] gptu: succeeded to request irq 128
[    0.554229] gptu: succeeded to request irq 129
[    0.558742] gptu: succeeded to request irq 130
[    0.563259] gptu: succeeded to request irq 131
[    0.568633] phy-xrx200 gphy-xrx200: requesting lantiq/vr9_phy11g_a1x.bin
[    0.575912] phy-xrx200 gphy-xrx200: booting GPHY0 firmware at 7960000
[    0.582260] phy-xrx200 gphy-xrx200: booting GPHY1 firmware at 7960000
[    0.689806] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.723154] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.728894] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) 
(CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.742291] io scheduler noop registered
[    0.746134] io scheduler deadline registered (default)
[    0.751978] 1e100c00.serial: ttyLTQ0 at MMIO 0x1e100c00 (irq = 112, 
base_baud = 0) is a lantiq,asc
[    0.760881] console [ttyLTQ0] enabled
[    0.768206] bootconsole [early0] disabled
[    0.777268] lantiq nor flash device: 01000000 at 10000000
[    0.781402] ltq_nor: Found 1 x16 devices at 0x0 in 16-bit bank. 
Manufacturer ID 0x000001 Chip ID 0x002101
[    0.790840] Amd/Fujitsu Extended Query Table at 0x0040
[    0.795967]   Amd/Fujitsu Extended Query version 1.3.
[    0.801004] number of CFI chips: 1
[    0.804436] 4 ofpart partitions found on MTD device ltq_nor
[    0.809969] Creating 4 MTD partitions on "ltq_nor":
[    0.814852] 0x000000000000-0x000000020000 : "urlader"
[    0.823305] 0x000000020000-0x000000f80000 : "firmware"
[    0.844284] 2 eva-fw partitions found on MTD device firmware
[    0.848534] 0x000000020000-0x0000001bfa70 : "kernel"
[    0.855348] 0x0000001c0100-0x000000f80000 : "rootfs"
[    0.860994] mtd: device 3 (rootfs) set to be root filesystem
[    0.865302] 1 squashfs-split partitions found on MTD device rootfs
[    0.871420] 0x0000003e0000-0x000000f80000 : "rootfs_data"
[    0.879057] 0x000000f80000-0x000000fc0000 : "tffs (1)"
[    0.884936] 0x000000fc0000-0x000001000000 : "tffs (2)"
[    0.993675] libphy: lantiq,xrx200-mdio: probed
[    1.004257] eth0: attached PHY [Generic PHY] (phy_addr=0:00, irq=-1)
[    1.009606] eth0: attached PHY [Generic PHY] (phy_addr=0:01, irq=-1)
[    1.079564] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.4] 
(phy_addr=0:11, irq=-1)
[    1.147555] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.4] 
(phy_addr=0:13, irq=-1)
[    1.155438] wdt 1f8803f0.watchdog: Init done
[    1.161244] NET: Registered protocol family 10
[    1.169748] NET: Registered protocol family 17
[    1.172899] bridge: automatic filtering via arp/ip/ip6tables has been 
deprecated. Update your scripts to load br_netfilter if you need this.
[    1.185425] 8021q: 802.1Q VLAN Support v1.8
[    1.189680] found entry name -> annex=B
[    1.193440] found entry name -> maca=BC:05:43:D7:1E:7C
[    1.198534] found entry name -> macb=BC:05:43:D7:1E:7D
[    1.203673] found entry name -> macwlan=BC:05:43:D7:1E:7E
[    1.209066] found entry name -> macdsl=BC:05:43:D7:1E:7F
[    1.214430] found entry name -> macwlan2=BC:05:43:D7:1E:81
[    1.219861] found entry name -> wlan_key=4004584479108575
[    1.228307] ath9k,eeprom ath9k_eep: endian check enabled.
[    1.232282] ath9k,eeprom ath9k_eep: using random mac
[    1.237274] ath9k,eeprom ath9k_eep: pci slot: 0
[    1.241777] pci 0000:01:00.0: fixup device configuration
[    1.247149] PCI: Enabling device 0000:01:00.0 (0000 -> 0002)
[    1.254428] pci 0000:01:00.0: fixup info: [168c:002e] revision 01 
class 0x028000
[    1.260435] ath9k,eeprom ath9k_eep: loaded ath9k eeprom
[    1.270378] UBIFS error (pid: 1): cannot open "ubi0:rootfs", error -19
[    1.280211] VFS: Mounted root (squashfs filesystem) readonly on 
device 31:3.
[    1.287767] Freeing unused kernel memory: 1184K (804f8000 - 80620000)
[    2.468013] init: Console is alive
[    2.470263] init: - watchdog -
[    3.884244] dwc2 1e101000.ifxhcd: Configuration mismatch. Forcing 
host mode
[    4.035028] eth0: port 0 got link
[    4.747073] dwc2 1e101000.ifxhcd: DWC OTG Controller
[    4.750648] dwc2 1e101000.ifxhcd: new USB bus registered, assigned 
bus number 1
[    4.757999] dwc2 1e101000.ifxhcd: irq 62, io mem 0x00000000
[    4.763516] dwc2 1e101000.ifxhcd: Hardware does not support 
descriptor DMA mode -
[    4.770953] dwc2 1e101000.ifxhcd: falling back to buffer DMA mode.
[    4.778435] hub 1-0:1.0: USB hub found
[    4.781398] hub 1-0:1.0: 1 port detected
[    4.785460] dwc2 1e106000.ifxhcd: Configuration mismatch. Forcing 
host mode
[    5.647060] dwc2 1e106000.ifxhcd: DWC OTG Controller
[    5.650655] dwc2 1e106000.ifxhcd: new USB bus registered, assigned 
bus number 2
[    5.657970] dwc2 1e106000.ifxhcd: irq 91, io mem 0x00000000
[    5.663499] dwc2 1e106000.ifxhcd: Hardware does not support 
descriptor DMA mode -
[    5.670938] dwc2 1e106000.ifxhcd: falling back to buffer DMA mode.
[    5.678440] hub 2-0:1.0: USB hub found
[    5.681390] hub 2-0:1.0: 1 port detected
[    5.687615] init: - preinit -
[    6.192804] random: procd urandom read with 26 bits of entropy available
[    8.569614] jffs2: notice: (370) jffs2_build_xattr_subsystem: 
complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) 
and 0 of xref (0 dead, 0 orphan) found.
[    8.585353] mount_root: switching to jffs2 overlay
[    8.606254] procd: - early -
[    8.607917] procd: - watchdog -
[    9.348938] procd: - ubus -
[    9.403903] procd: - init -
[   10.231370] IFXOS, Version 1.5.19 (c) Copyright 2009, Lantiq 
Deutschland GmbH
[   10.241461] NET: Registered protocol family 8
[   10.244431] NET: Registered protocol family 20
[   10.255629] PPP generic driver version 2.4.2
[   10.266429] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   10.291707] Lantiq (VRX) DSL CPE MEI driver, version 1.4.8.5, (c) 
2013 Lantiq Deutschland GmbH
[   10.291707]
[   10.291707] Lantiq CPE API Driver version: DSL CPE API V4.16.6.3
[   10.312794]
[   10.312794] Predefined debug level: 3
[   10.323452] Loading modules backported from Linux version 
v4.4-rc5-1913-gc8fdf68
[   10.329464] Backport generated by backports.git 
backports-20151218-0-g2f58d9d
[   10.340031] ip_tables: (C) 2000-2006 Netfilter Core Team
[   10.351117] Infineon Technologies DEU driver version 2.0.0
[   10.357203] IFX DEU DES initialized (multiblock).
[   10.361497] IFX DEU AES initialized (multiblock).
[   10.365620] IFX DEU ARC4 initialized (multiblock).
[   10.370239] IFX DEU SHA1 initialized.
[   10.373843] IFX DEU MD5 initialized.
[   10.377438] IFX DEU SHA1_HMAC initialized.
[   10.381556] IFX DEU MD5_HMAC initialized.
[   10.391907] nf_conntrack version 0.5.0 (1946 buckets, 7784 max)
[   10.418114] NET: Registered protocol family 24
[   10.443723] xt_time: kernel timezone is -0000
[   10.539595] PCI: Enabling device 0000:01:00.0 (0140 -> 0142)
[   10.550629] ath: EEPROM regdomain: 0x8114
[   10.550653] ath: EEPROM indicates we should expect a country code
[   10.550667] ath: doing EEPROM country->regdmn map search
[   10.550679] ath: country maps to regdmn code: 0x37
[   10.550692] ath: Country alpha2 being used: DE
[   10.550704] ath: Regpair used: 0x37
[   10.564122] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   10.567111] ieee80211 phy0: Atheros AR9287 Rev:2 mem=0xbc000000, irq=144
[   19.477228] device eth0.1 entered promiscuous mode
[   19.480651] device eth0 entered promiscuous mode
[   19.500394] br-lan: port 1(eth0.1) entered forwarding state
[   19.504638] br-lan: port 1(eth0.1) entered forwarding state
[   21.506873] br-lan: port 1(eth0.1) entered forwarding state
[   31.802908] random: nonblocking pool is initialized


logread

hu May 12 05:36:24 2016 kern.info kernel: [    0.381545] pci_bus 
0000:00: root bus resource [io  0x1d800000-0x1d8fffff]
Thu May 12 05:36:24 2016 kern.info kernel: [    0.388488] pci_bus 
0000:00: root bus resource [??? 0x00000000 flags 0x0]
Thu May 12 05:36:24 2016 kern.info kernel: [    0.395343] pci_bus 
0000:00: No busn resource found for root bus, will use [bus 00-ff]
Thu May 12 05:36:24 2016 kern.debug kernel: [    0.403373] pci 
0000:00:00.0: [15d1:0011] type 01 class 0x060000
Thu May 12 05:36:24 2016 kern.info kernel: [    0.403410] 
ifx_pcie_rc_class_early_fixup: fixed pcie host bridge to pci-pci bridge
Thu May 12 05:36:24 2016 kern.warn kernel: [    0.421054] 
ifx_pcie_fixup_resource: fixup host controller 0000:00:00.0 (15d1:0011)
Thu May 12 05:36:24 2016 kern.debug kernel: [    0.428645] pci 
0000:00:00.0: PME# supported from D0 D3hot
Thu May 12 05:36:24 2016 kern.debug kernel: [    0.429208] pci 
0000:01:00.0: [168c:ff1c] type 00 class 0x020000
Thu May 12 05:36:24 2016 kern.debug kernel: [    0.429298] pci 
0000:01:00.0: reg 0x10: [mem 0x00000000-0x0000ffff 64bit]
Thu May 12 05:36:24 2016 kern.debug kernel: [    0.429454] pci 
0000:01:00.0: supports D1
Thu May 12 05:36:24 2016 kern.debug kernel: [    0.429475] pci 
0000:01:00.0: PME# supported from D0 D1 D3hot
Thu May 12 05:36:24 2016 kern.debug kernel: [    0.429773] pci_bus 
0000:01: busn_res: [bus 01-ff] end is updated to 01
Thu May 12 05:36:24 2016 kern.debug kernel: [    0.429814] pci_bus 
0000:00: busn_res: [bus 00-ff] end is updated to 01
Thu May 12 05:36:24 2016 kern.info kernel: [    0.429870] pci 
0000:00:00.0: BAR 8: assigned [mem 0x1c000000-0x1c0fffff]
Thu May 12 05:36:24 2016 kern.info kernel: [    0.436557] pci 
0000:01:00.0: BAR 0: assigned [mem 0x1c000000-0x1c00ffff 64bit]
Thu May 12 05:36:24 2016 kern.info kernel: [    0.443919] pci 
0000:00:00.0: PCI bridge to [bus 01]
Thu May 12 05:36:24 2016 kern.info kernel: [    0.448935] pci 
0000:00:00.0:   bridge window [mem 0x1c000000-0x1c0fffff]
Thu May 12 05:36:24 2016 kern.warn kernel: [    0.455810] 
ifx_pcie_bios_map_irq port 0 dev 0000:00:00.0 slot 0 pin 1
Thu May 12 05:36:24 2016 kern.warn kernel: [    0.462461] 
ifx_pcie_bios_map_irq dev 0000:00:00.0 irq 144 assigned
Thu May 12 05:36:24 2016 kern.warn kernel: [    0.468815] 
ifx_pcie_bios_map_irq port 0 dev 0000:01:00.0 slot 0 pin 1
Thu May 12 05:36:24 2016 kern.warn kernel: [    0.475481] 
ifx_pcie_bios_map_irq dev 0000:01:00.0 irq 144 assigned
Thu May 12 05:36:24 2016 kern.info kernel: [    0.482864] clocksource: 
Switched to clocksource MIPS
Thu May 12 05:36:24 2016 kern.info kernel: [    0.489513] NET: 
Registered protocol family 2
Thu May 12 05:36:24 2016 kern.info kernel: [    0.494738] TCP 
established hash table entries: 1024 (order: 0, 4096 bytes)
Thu May 12 05:36:24 2016 kern.info kernel: [    0.501634] TCP bind hash 
table entries: 1024 (order: 0, 4096 bytes)
Thu May 12 05:36:24 2016 kern.info kernel: [    0.508012] TCP: Hash 
tables configured (established 1024 bind 1024)
Thu May 12 05:36:24 2016 kern.info kernel: [    0.514529] UDP hash table 
entries: 256 (order: 0, 4096 bytes)
Thu May 12 05:36:24 2016 kern.info kernel: [    0.520367] UDP-Lite hash 
table entries: 256 (order: 0, 4096 bytes)
Thu May 12 05:36:24 2016 kern.info kernel: [    0.526969] NET: 
Registered protocol family 1
Thu May 12 05:36:24 2016 kern.debug kernel: [    0.531315] PCI: CLS 0 
bytes, default 32
Thu May 12 05:36:24 2016 kern.info kernel: [    0.531770] gptu: totally 
6 16-bit timers/counters
Thu May 12 05:36:24 2016 kern.info kernel: [    0.536615] gptu: 
misc_register on minor 63
Thu May 12 05:36:24 2016 kern.info kernel: [    0.540712] gptu: 
succeeded to request irq 126
Thu May 12 05:36:24 2016 kern.info kernel: [    0.545201] gptu: 
succeeded to request irq 127
Thu May 12 05:36:24 2016 kern.info kernel: [    0.549715] gptu: 
succeeded to request irq 128
Thu May 12 05:36:24 2016 kern.info kernel: [    0.554229] gptu: 
succeeded to request irq 129
Thu May 12 05:36:24 2016 kern.info kernel: [    0.558742] gptu: 
succeeded to request irq 130
Thu May 12 05:36:24 2016 kern.info kernel: [    0.563259] gptu: 
succeeded to request irq 131
Thu May 12 05:36:24 2016 kern.info kernel: [    0.568633] phy-xrx200 
gphy-xrx200: requesting lantiq/vr9_phy11g_a1x.bin
Thu May 12 05:36:24 2016 kern.info kernel: [    0.575912] phy-xrx200 
gphy-xrx200: booting GPHY0 firmware at 7960000
Thu May 12 05:36:24 2016 kern.info kernel: [    0.582260] phy-xrx200 
gphy-xrx200: booting GPHY1 firmware at 7960000
Thu May 12 05:36:24 2016 kern.info kernel: [    0.689806] futex hash 
table entries: 256 (order: -1, 3072 bytes)
Thu May 12 05:36:24 2016 kern.info kernel: [    0.723154] squashfs: 
version 4.0 (2009/01/31) Phillip Lougher
Thu May 12 05:36:24 2016 kern.info kernel: [    0.728894] jffs2: version 
2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red 
Hat, Inc.
Thu May 12 05:36:24 2016 kern.info kernel: [    0.742291] io scheduler 
noop registered
Thu May 12 05:36:24 2016 kern.info kernel: [    0.746134] io scheduler 
deadline registered (default)
Thu May 12 05:36:24 2016 kern.info kernel: [    0.751978] 
1e100c00.serial: ttyLTQ0 at MMIO 0x1e100c00 (irq = 112, base_baud = 0) 
is a lantiq,asc
Thu May 12 05:36:24 2016 kern.info kernel: [    0.760881] console 
[ttyLTQ0] enabled
Thu May 12 05:36:24 2016 kern.info kernel: [    0.768206] bootconsole 
[early0] disabled
Thu May 12 05:36:24 2016 kern.notice kernel: [    0.777268] lantiq nor 
flash device: 01000000 at 10000000
Thu May 12 05:36:24 2016 kern.info kernel: [    0.781402] ltq_nor: Found 
1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000001 Chip ID 
0x002101
Thu May 12 05:36:24 2016 kern.info kernel: [    0.790840] Amd/Fujitsu 
Extended Query Table at 0x0040
Thu May 12 05:36:24 2016 kern.info kernel: [    0.795967] Amd/Fujitsu 
Extended Query version 1.3.
Thu May 12 05:36:24 2016 kern.notice kernel: [    0.801004] number of 
CFI chips: 1
Thu May 12 05:36:24 2016 kern.notice kernel: [    0.804436] 4 ofpart 
partitions found on MTD device ltq_nor
Thu May 12 05:36:24 2016 kern.notice kernel: [    0.809969] Creating 4 
MTD partitions on "ltq_nor":
Thu May 12 05:36:24 2016 kern.notice kernel: [    0.814852] 
0x000000000000-0x000000020000 : "urlader"
Thu May 12 05:36:24 2016 kern.notice kernel: [    0.823305] 
0x000000020000-0x000000f80000 : "firmware"
Thu May 12 05:36:24 2016 kern.notice kernel: [    0.844284] 2 eva-fw 
partitions found on MTD device firmware
Thu May 12 05:36:24 2016 kern.notice kernel: [    0.848534] 
0x000000020000-0x0000001bfa70 : "kernel"
Thu May 12 05:36:24 2016 kern.notice kernel: [    0.855348] 
0x0000001c0100-0x000000f80000 : "rootfs"
Thu May 12 05:36:24 2016 kern.notice kernel: [    0.860994] mtd: device 
3 (rootfs) set to be root filesystem
Thu May 12 05:36:24 2016 kern.notice kernel: [    0.865302] 1 
squashfs-split partitions found on MTD device rootfs
Thu May 12 05:36:24 2016 kern.notice kernel: [    0.871420] 
0x0000003e0000-0x000000f80000 : "rootfs_data"
Thu May 12 05:36:24 2016 kern.notice kernel: [    0.879057] 
0x000000f80000-0x000000fc0000 : "tffs (1)"
Thu May 12 05:36:24 2016 kern.notice kernel: [    0.884936] 
0x000000fc0000-0x000001000000 : "tffs (2)"
Thu May 12 05:36:24 2016 kern.info kernel: [    0.993675] libphy: 
lantiq,xrx200-mdio: probed
Thu May 12 05:36:24 2016 kern.info kernel: [    1.004257] eth0: attached 
PHY [Generic PHY] (phy_addr=0:00, irq=-1)
Thu May 12 05:36:24 2016 kern.info kernel: [    1.009606] eth0: attached 
PHY [Generic PHY] (phy_addr=0:01, irq=-1)
Thu May 12 05:36:24 2016 kern.info kernel: [    1.079564] eth0: attached 
PHY [Lantiq XWAY VR9 GPHY 11G v1.4] (phy_addr=0:11, irq=-1)
Thu May 12 05:36:24 2016 kern.info kernel: [    1.147555] eth0: attached 
PHY [Lantiq XWAY VR9 GPHY 11G v1.4] (phy_addr=0:13, irq=-1)
Thu May 12 05:36:24 2016 kern.info kernel: [    1.155438] wdt 
1f8803f0.watchdog: Init done
Thu May 12 05:36:24 2016 kern.info kernel: [    1.161244] NET: 
Registered protocol family 10
Thu May 12 05:36:24 2016 kern.info kernel: [    1.169748] NET: 
Registered protocol family 17
Thu May 12 05:36:24 2016 kern.info kernel: [    1.172899] bridge: 
automatic filtering via arp/ip/ip6tables has been deprecated. Update 
your scripts to load br_netfilter if you need this.
Thu May 12 05:36:24 2016 kern.info kernel: [    1.185425] 8021q: 802.1Q 
VLAN Support v1.8
Thu May 12 05:36:24 2016 kern.info kernel: [    1.189680] found entry 
name -> annex=B
Thu May 12 05:36:24 2016 kern.info kernel: [    1.193440] found entry 
name -> maca=BC:05:43:D7:1E:7C
Thu May 12 05:36:24 2016 kern.info kernel: [    1.198534] found entry 
name -> macb=BC:05:43:D7:1E:7D
Thu May 12 05:36:24 2016 kern.info kernel: [    1.203673] found entry 
name -> macwlan=BC:05:43:D7:1E:7E
Thu May 12 05:36:24 2016 kern.info kernel: [    1.209066] found entry 
name -> macdsl=BC:05:43:D7:1E:7F
Thu May 12 05:36:24 2016 kern.info kernel: [    1.214430] found entry 
name -> macwlan2=BC:05:43:D7:1E:81
Thu May 12 05:36:24 2016 kern.info kernel: [    1.219861] found entry 
name -> wlan_key=4004584479108575
Thu May 12 05:36:24 2016 kern.info kernel: [    1.228307] ath9k,eeprom 
ath9k_eep: endian check enabled.
Thu May 12 05:36:24 2016 kern.warn kernel: [    1.232282] ath9k,eeprom 
ath9k_eep: using random mac
Thu May 12 05:36:24 2016 kern.info kernel: [    1.237274] ath9k,eeprom 
ath9k_eep: pci slot: 0
Thu May 12 05:36:24 2016 kern.info kernel: [    1.241777] pci 
0000:01:00.0: fixup device configuration
Thu May 12 05:36:24 2016 kern.warn kernel: [    1.247149] PCI: Enabling 
device 0000:01:00.0 (0000 -> 0002)
Thu May 12 05:36:24 2016 kern.info kernel: [    1.254428] pci 
0000:01:00.0: fixup info: [168c:002e] revision 01 class 0x028000
Thu May 12 05:36:24 2016 kern.info kernel: [    1.260435] ath9k,eeprom 
ath9k_eep: loaded ath9k eeprom
Thu May 12 05:36:24 2016 kern.err kernel: [    1.270378] UBIFS error 
(pid: 1): cannot open "ubi0:rootfs", error -19
Thu May 12 05:36:24 2016 kern.info kernel: [    1.280211] VFS: Mounted 
root (squashfs filesystem) readonly on device 31:3.
Thu May 12 05:36:24 2016 kern.info kernel: [    1.287767] Freeing unused 
kernel memory: 1184K (804f8000 - 80620000)
Thu May 12 05:36:24 2016 user.info kernel: [    2.468013] init: Console 
is alive
Thu May 12 05:36:24 2016 user.info kernel: [    2.470263] init: - watchdog -
Thu May 12 05:36:24 2016 kern.warn kernel: [    3.884244] dwc2 
1e101000.ifxhcd: Configuration mismatch. Forcing host mode
Thu May 12 05:36:24 2016 kern.info kernel: [    4.035028] eth0: port 0 
got link
Thu May 12 05:36:24 2016 kern.info kernel: [    4.747073] dwc2 
1e101000.ifxhcd: DWC OTG Controller
Thu May 12 05:36:24 2016 kern.info kernel: [    4.750648] dwc2 
1e101000.ifxhcd: new USB bus registered, assigned bus number 1
Thu May 12 05:36:24 2016 kern.info kernel: [    4.757999] dwc2 
1e101000.ifxhcd: irq 62, io mem 0x00000000
Thu May 12 05:36:24 2016 kern.err kernel: [    4.763516] dwc2 
1e101000.ifxhcd: Hardware does not support descriptor DMA mode -
Thu May 12 05:36:24 2016 kern.err kernel: [    4.770953] dwc2 
1e101000.ifxhcd: falling back to buffer DMA mode.
Thu May 12 05:36:24 2016 kern.info kernel: [    4.778435] hub 1-0:1.0: 
USB hub found
Thu May 12 05:36:24 2016 kern.info kernel: [    4.781398] hub 1-0:1.0: 1 
port detected
Thu May 12 05:36:24 2016 kern.warn kernel: [    4.785460] dwc2 
1e106000.ifxhcd: Configuration mismatch. Forcing host mode
Thu May 12 05:36:24 2016 kern.info kernel: [    5.647060] dwc2 
1e106000.ifxhcd: DWC OTG Controller
Thu May 12 05:36:24 2016 kern.info kernel: [    5.650655] dwc2 
1e106000.ifxhcd: new USB bus registered, assigned bus number 2
Thu May 12 05:36:24 2016 kern.info kernel: [    5.657970] dwc2 
1e106000.ifxhcd: irq 91, io mem 0x00000000
Thu May 12 05:36:24 2016 kern.err kernel: [    5.663499] dwc2 
1e106000.ifxhcd: Hardware does not support descriptor DMA mode -
Thu May 12 05:36:24 2016 kern.err kernel: [    5.670938] dwc2 
1e106000.ifxhcd: falling back to buffer DMA mode.
Thu May 12 05:36:24 2016 kern.info kernel: [    5.678440] hub 2-0:1.0: 
USB hub found
Thu May 12 05:36:24 2016 kern.info kernel: [    5.681390] hub 2-0:1.0: 1 
port detected
Thu May 12 05:36:24 2016 user.info kernel: [    5.687615] init: - preinit -
Thu May 12 05:36:24 2016 kern.notice kernel: [    6.192804] random: 
procd urandom read with 26 bits of entropy available
Thu May 12 05:36:24 2016 kern.notice kernel: [    8.569614] jffs2: 
notice: (370) jffs2_build_xattr_subsystem: complete building xattr 
subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 
orphan) found.
Thu May 12 05:36:24 2016 user.info kernel: [    8.585353] mount_root: 
switching to jffs2 overlay
Thu May 12 05:36:24 2016 user.info kernel: [    8.606254] procd: - early -
Thu May 12 05:36:24 2016 user.info kernel: [    8.607917] procd: - 
watchdog -
Thu May 12 05:36:24 2016 user.info kernel: [    9.348938] procd: - ubus -
Thu May 12 05:36:24 2016 user.info kernel: [    9.403903] procd: - init -
Thu May 12 05:36:24 2016 kern.info kernel: [   10.231370] IFXOS, Version 
1.5.19 (c) Copyright 2009, Lantiq Deutschland GmbH
Thu May 12 05:36:24 2016 kern.info kernel: [   10.241461] NET: 
Registered protocol family 8
Thu May 12 05:36:24 2016 kern.info kernel: [   10.244431] NET: 
Registered protocol family 20
Thu May 12 05:36:24 2016 kern.info kernel: [   10.255629] PPP generic 
driver version 2.4.2
Thu May 12 05:36:24 2016 kern.info kernel: [   10.266429] ip6_tables: 
(C) 2000-2006 Netfilter Core Team
Thu May 12 05:36:24 2016 kern.info kernel: [   10.291707] Lantiq (VRX) 
DSL CPE MEI driver, version 1.4.8.5, (c) 2013 Lantiq Deutschland GmbH
Thu May 12 05:36:24 2016 kern.info kernel: [   10.291707]
Thu May 12 05:36:24 2016 kern.info kernel: [   10.291707] Lantiq CPE API 
Driver version: DSL CPE API V4.16.6.3
Thu May 12 05:36:24 2016 kern.warn kernel: [   10.312794]
Thu May 12 05:36:24 2016 kern.warn kernel: [   10.312794] Predefined 
debug level: 3
Thu May 12 05:36:24 2016 kern.info kernel: [   10.323452] Loading 
modules backported from Linux version v4.4-rc5-1913-gc8fdf68
Thu May 12 05:36:24 2016 kern.info kernel: [   10.329464] Backport 
generated by backports.git backports-20151218-0-g2f58d9d
Thu May 12 05:36:24 2016 kern.info kernel: [   10.340031] ip_tables: (C) 
2000-2006 Netfilter Core Team
Thu May 12 05:36:24 2016 kern.info kernel: [   10.351117] Infineon 
Technologies DEU driver version 2.0.0
Thu May 12 05:36:24 2016 kern.notice kernel: [   10.357203] IFX DEU DES 
initialized (multiblock).
Thu May 12 05:36:24 2016 kern.notice kernel: [   10.361497] IFX DEU AES 
initialized (multiblock).
Thu May 12 05:36:24 2016 kern.notice kernel: [   10.365620] IFX DEU ARC4 
initialized (multiblock).
Thu May 12 05:36:24 2016 kern.notice kernel: [   10.370239] IFX DEU SHA1 
initialized.
Thu May 12 05:36:24 2016 kern.notice kernel: [   10.373843] IFX DEU MD5 
initialized.
Thu May 12 05:36:24 2016 kern.notice kernel: [   10.377438] IFX DEU 
SHA1_HMAC initialized.
Thu May 12 05:36:24 2016 kern.notice kernel: [   10.381556] IFX DEU 
MD5_HMAC initialized.
Thu May 12 05:36:24 2016 kern.info kernel: [   10.391907] nf_conntrack 
version 0.5.0 (1946 buckets, 7784 max)
Thu May 12 05:36:24 2016 kern.info kernel: [   10.418114] NET: 
Registered protocol family 24
Thu May 12 05:36:24 2016 kern.info kernel: [   10.443723] xt_time: 
kernel timezone is -0000
Thu May 12 05:36:24 2016 kern.warn kernel: [   10.539595] PCI: Enabling 
device 0000:01:00.0 (0140 -> 0142)
Thu May 12 05:36:24 2016 kern.debug kernel: [   10.550629] ath: EEPROM 
regdomain: 0x8114
Thu May 12 05:36:24 2016 kern.debug kernel: [   10.550653] ath: EEPROM 
indicates we should expect a country code
Thu May 12 05:36:24 2016 kern.debug kernel: [   10.550667] ath: doing 
EEPROM country->regdmn map search
Thu May 12 05:36:24 2016 kern.debug kernel: [   10.550679] ath: country 
maps to regdmn code: 0x37
Thu May 12 05:36:24 2016 kern.debug kernel: [   10.550692] ath: Country 
alpha2 being used: DE
Thu May 12 05:36:24 2016 kern.debug kernel: [   10.550704] ath: Regpair 
used: 0x37
Thu May 12 05:36:24 2016 kern.debug kernel: [   10.564122] ieee80211 
phy0: Selected rate control algorithm 'minstrel_ht'
Thu May 12 05:36:24 2016 kern.info kernel: [   10.567111] ieee80211 
phy0: Atheros AR9287 Rev:2 mem=0xbc000000, irq=144
Thu May 12 05:36:25 2016 user.notice : 'radio0' is disabled
Thu May 12 05:36:25 2016 user.notice : 'radio0' is disabled
Thu May 12 05:36:26 2016 user.notice : firmware for annex a not found
Thu May 12 05:36:28 2016 authpriv.info dropbear[840]: Not backgrounding
Thu May 12 05:36:28 2016 user.notice : setting up led wifi
Thu May 12 05:36:28 2016 user.notice : setting up led dsl
Thu May 12 05:36:28 2016 user.notice : setting up led internet
Thu May 12 05:36:29 2016 daemon.info procd: - init complete -
Thu May 12 05:36:30 2016 kern.info kernel: [   19.477228] device eth0.1 
entered promiscuous mode
Thu May 12 05:36:30 2016 kern.info kernel: [   19.480651] device eth0 
entered promiscuous mode
Thu May 12 05:36:30 2016 kern.info kernel: [   19.500394] br-lan: port 
1(eth0.1) entered forwarding state
Thu May 12 05:36:30 2016 kern.info kernel: [   19.504638] br-lan: port 
1(eth0.1) entered forwarding state
Thu May 12 05:36:30 2016 daemon.notice netifd: Interface 'lan' is enabled
Thu May 12 05:36:30 2016 daemon.notice netifd: Interface 'lan' is 
setting up now
Thu May 12 05:36:30 2016 daemon.notice netifd: Interface 'lan' is now up
Thu May 12 05:36:30 2016 daemon.notice netifd: Interface 'loopback' is 
enabled
Thu May 12 05:36:30 2016 daemon.notice netifd: Interface 'loopback' is 
setting up now
Thu May 12 05:36:30 2016 daemon.notice netifd: Interface 'loopback' is 
now up
Thu May 12 05:36:30 2016 daemon.notice netifd: Bridge 'br-lan' link is up
Thu May 12 05:36:30 2016 daemon.notice netifd: Interface 'lan' has link 
connectivity
Thu May 12 05:36:30 2016 daemon.notice netifd: Network device 'eth0' 
link is up
Thu May 12 05:36:30 2016 daemon.notice netifd: VLAN 'eth0.1' link is up
Thu May 12 05:36:30 2016 daemon.notice netifd: Network device 'lo' link 
is up
Thu May 12 05:36:30 2016 daemon.notice netifd: Interface 'loopback' has 
link connectivity
Thu May 12 05:36:30 2016 user.notice firewall: Reloading firewall due to 
ifup of lan (br-lan)
Thu May 12 05:36:32 2016 kern.info kernel: [   21.506873] br-lan: port 
1(eth0.1) entered forwarding state
Thu May 12 05:36:35 2016 daemon.info dnsmasq[989]: started, version 2.75 
cachesize 150
Thu May 12 05:36:35 2016 daemon.info dnsmasq[989]: compile time options: 
IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP 
no-conntrack no-ipset no-auth no-DNSSEC loop-detect inotify
Thu May 12 05:36:35 2016 daemon.info dnsmasq[989]: DNS service limited 
to local subnets
Thu May 12 05:36:35 2016 daemon.info dnsmasq-dhcp[989]: DHCP, IP range 
192.168.2.100 -- 192.168.2.249, lease time 12h
Thu May 12 05:36:35 2016 daemon.info dnsmasq[989]: using local addresses 
only for domain lan
Thu May 12 05:36:35 2016 daemon.warn dnsmasq[989]: no servers found in 
/tmp/resolv.conf.auto, will retry
Thu May 12 05:36:35 2016 daemon.info dnsmasq[989]: read /etc/hosts - 4 
addresses
Thu May 12 05:36:35 2016 daemon.info dnsmasq[989]: read /tmp/hosts/dhcp 
- 2 addresses
Thu May 12 05:36:35 2016 daemon.info dnsmasq-dhcp[989]: read /etc/ethers 
- 0 addresses
Thu May 12 05:36:42 2016 kern.notice kernel: [   31.802908] random: 
nonblocking pool is initialized

Comments

Martin Blumenstingl May 15, 2016, 3:37 p.m. UTC | #1
On Sun, May 15, 2016 at 3:44 PM, Sebastian Ortwein <kron@animeland.de> wrote:
> USB, WLAN and LAN works now. The only think what would not work is phy0 &
> phy1.
> I have attached my lastet patch.
if you google around a bit you'll find an AR8035 datasheet: that phy
is from the same series as the AR8030.
It defines that the RST pin is "active low" -> meaning you have to
pull it high to ensure that the PHY is not being reset:
http://lxr.free-electrons.com/source/Documentation/devicetree/bindings/pinctrl/lantiq,pinctrl-xway.txt?v=4.4#L61
This means you should probably use:
lantiq,output = <1>;
lantiq,pull = <2>;
lantiq,open-drain;

> [ 0.993675] libphy: lantiq,xrx200-mdio: probed
> [    1.004257] eth0: attached PHY [Generic PHY] (phy_addr=0:00, irq=-1)
> [    1.009606] eth0: attached PHY [Generic PHY] (phy_addr=0:01, irq=-1)
> [    1.079564] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.4]
> (phy_addr=0:11, irq=-1)
> [    1.147555] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.4]
> (phy_addr=0:13, irq=-1)
"Generic PHY" means that no specific driver for this PHY is loaded.
Make sure you enable CONFIG_AT803X_PHY in target/linux/lantiq/config-4.4

Additionally you should check the phy-mode:
You are setting phy-mode = "rgmii", but Atheros says that the AR8030
is an "Ultra low-power single RMII Fast Ethernet PHY".
Thus you should probably change "rgmii" to "rmii".


Martin

On Sun, May 15, 2016 at 3:44 PM, Sebastian Ortwein <kron@animeland.de> wrote:
> Am 08.05.2016 um 18:40 schrieb Martin Blumenstingl:
>>
>> On Sun, May 8, 2016 at 5:49 PM, Sebastian Ortwein <kron@animeland.de>
>> wrote:
>>>
>>> can I add it the following way ?
>>>          mdio@0 {
>>>                  #address-cells = <1>;
>>>                  #size-cells = <0>;
>>>                  compatible = "lantiq,xrx200-mdio";
>>>                  phy0: ethernet-phy@0 {
>>>                          reg = <0x0>;
>>>                          compatible = "lantiq,phy11g",
>>> "ethernet-phy-ieee802.3-c22";
>>>                          gpios = <&gpio 37 0>;
>>>                  };
>>>                  phy1: ethernet-phy@1 {
>>>                          reg = <0x1>;
>>>                          compatible = "lantiq,phy11g",
>>> "ethernet-phy-ieee802.3-c22";
>>>                          gpios = <&gpio 44 0>;
>>>                  };
>>>                  phy11: ethernet-phy@11 {
>>>                          reg = <0x11>;
>>>                          compatible = "lantiq,phy11g",
>>> "ethernet-phy-ieee802.3-c22";
>>>                  };
>>>                  phy13: ethernet-phy@13 {
>>>                          reg = <0x13>;
>>>                          compatible = "lantiq,phy11g",
>>> "ethernet-phy-ieee802.3-c22";
>>>                  };
>>
>> I think you have to name the property "reset-gpios", but apart from
>> that it looks good.
>
> I have try it like you sayed. But without success.
> I think the gpios are defined here, but it won't working.
>
>                                 phy-rst {
>                                         lantiq,pins = "io37", "io44";
>                                         lantiq,pull = <0>;
>                                         lantiq,open-drain = <0>;
>                                         lantiq,output = <1>;
>                                 };
>
>>>> I cannot see any ath9k messages in your kernel log - are you sure it's
>>>> being installed (/lib/modules/*/ath9k.ko)?
>>>> Your first patch lists kmod-ath9k, but if you added that after you
>>>> generated your .config then you're probably still missing it.
>>>> Please check "grep kmod-ath9k .config" and enable (set it to
>>>> =y/built-in) it if it's missing.
>>>
>>> I have not disable the ath9k driver. it is present and loaded.
>>
>> I think I see the problem after looking at your .dts again:
>> you *must* specify the ath,pci-slot property, otherwise the fixup is
>> not executed.
>> It seems that the wifi part is similar to the TD-W8980 (AR9287 behind
>> the PCIe-to-PCI bridge), so "0" should be the right value.
>> (otherwise it's pretty easy to find out by looking at sysfs:
>> /sys/bus/pci/devices/0000\:00\:0e.0/ -> that's where the ath9k device
>> on HH5A can be found, there we use ath,pci-slot = <0xe>;)
>>
>>
>> Martin
>>
>>
>> [0]
>> https://github.com/openwrt/openwrt/blob/master/target/linux/lantiq/patches-4.4/0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch#L178
>
>
> USB, WLAN and LAN works now. The only think what would not work is phy0 &
> phy1.
> I have attached my lastet patch.
>
> dmesg
>
> [    0.000000] Linux version 4.4.7 (sebastian@sebastian-desktop) (gcc
> version 5.3.0 (OpenWrt GCC 5.3.0 r49377) ) #1 Sun May 15 13:18:03 UTC 2016
> [    0.000000] SoC: xRX200 rev 1.1
> [    0.000000] bootconsole [early0] enabled
> [    0.000000] CPU0 revision is: 00019555 (MIPS 34Kc)
> [    0.000000] MIPS: machine is FRITZ7360SL - 1&1 HomeServer
> [    0.000000] Determined physical RAM map:
> [    0.000000]  memory: 08000000 @ 00000000 (usable)
> [    0.000000] Initrd not found or empty - disabling initrd
> [    0.000000] Zone ranges:
> [    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
> [    0.000000] Movable zone start for each node
> [    0.000000] Early memory node ranges
> [    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
> [    0.000000] Initmem setup node 0 [mem
> 0x0000000000000000-0x0000000007ffffff]
> [    0.000000] On node 0 totalpages: 32768
> [    0.000000] free_area_init_node: node 0, pgdat 804d6390, node_mem_map
> 81007b60
> [    0.000000]   Normal zone: 256 pages used for memmap
> [    0.000000]   Normal zone: 0 pages reserved
> [    0.000000]   Normal zone: 32768 pages, LIFO batch:7
> [    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32
> bytes.
> [    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize
> 32 bytes
> [    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
> [    0.000000] pcpu-alloc: [0] 0
> [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total
> pages: 32512
> [    0.000000] Kernel command line: console=ttyLTQ0,115200 init=/etc/preinit
> [    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
> [    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536
> bytes)
> [    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
> [    0.000000] Writing ErrCtl register=00074200
> [    0.000000] Readback ErrCtl register=00074200
> [    0.000000] Memory: 123372K/131072K available (3764K kernel code, 164K
> rwdata, 1144K rodata, 1184K init, 211K bss, 7700K reserved, 0K cma-reserved)
> [    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
> [    0.000000] NR_IRQS:256
> [    0.000000] CPU Clock: 500MHz
> [    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff,
> max_idle_ns: 7645041786 ns
> [    0.000011] sched_clock: 32 bits at 250MHz, resolution 4ns, wraps every
> 8589934590ns
> [    0.007861] Calibrating delay loop... 332.54 BogoMIPS (lpj=665088)
> [    0.042318] pid_max: default: 32768 minimum: 301
> [    0.047172] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
> [    0.053732] Mountpoint-cache hash table entries: 1024 (order: 0, 4096
> bytes)
> [    0.066701] clocksource: jiffies: mask: 0xffffffff max_cycles:
> 0xffffffff, max_idle_ns: 7645041785100000 ns
> [    0.076483] pinctrl core: initialized pinctrl subsystem
> [    0.082366] NET: Registered protocol family 16
> [    0.091505] pinctrl-xway 1e100b10.pinmux: Init done
> [    0.097056] dma-xway 1e104100.dma: Init done - hw rev: 7, ports: 7,
> channels: 28
> [ 0.207159] dcdc-xrx200 1f106a00.dcdc: Core Voltage : 1016 mV
> [ 0.333371] ath9k,eeprom ath9k_eep: failed to load eeprom address
> [ 0.354429] usbcore: registered new interface driver usbfs
> [ 0.359938] usbcore: registered new interface driver hub
> [ 0.365292] usbcore: registered new device driver usb
> [ 0.370641] PCI host bridge to bus 0000:00
> [ 0.374631] pci_bus 0000:00: root bus resource [mem 0x1c000000-0x1cffffff]
> [ 0.381545] pci_bus 0000:00: root bus resource [io 0x1d800000-0x1d8fffff]
> [ 0.388488] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
> [ 0.395343] pci_bus 0000:00: No busn resource found for root bus, will use
> [bus 00-ff]
> [ 0.403373] pci 0000:00:00.0: [15d1:0011] type 01 class 0x060000
> [ 0.403410] ifx_pcie_rc_class_early_fixup: fixed pcie host bridge to pci-pci
> bridge
> [ 0.421054] ifx_pcie_fixup_resource: fixup host controller 0000:00:00.0
> (15d1:0011)
> [ 0.428645] pci 0000:00:00.0: PME# supported from D0 D3hot
> [ 0.429208] pci 0000:01:00.0: [168c:ff1c] type 00 class 0x020000
> [ 0.429298] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x0000ffff 64bit]
> [ 0.429454] pci 0000:01:00.0: supports D1
> [ 0.429475] pci 0000:01:00.0: PME# supported from D0 D1 D3hot
> [ 0.429773] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
> [ 0.429814] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 01
> [ 0.429870] pci 0000:00:00.0: BAR 8: assigned [mem 0x1c000000-0x1c0fffff]
> [ 0.436557] pci 0000:01:00.0: BAR 0: assigned [mem 0x1c000000-0x1c00ffff
> 64bit]
> [ 0.443919] pci 0000:00:00.0: PCI bridge to [bus 01]
> [ 0.448935] pci 0000:00:00.0:   bridge window [mem 0x1c000000-0x1c0fffff]
> [ 0.455810] ifx_pcie_bios_map_irq port 0 dev 0000:00:00.0 slot 0 pin 1
> [ 0.462461] ifx_pcie_bios_map_irq dev 0000:00:00.0 irq 144 assigned
> [ 0.468815] ifx_pcie_bios_map_irq port 0 dev 0000:01:00.0 slot 0 pin 1
> [ 0.475481] ifx_pcie_bios_map_irq dev 0000:01:00.0 irq 144 assigned
> [ 0.482864] clocksource: Switched to clocksource MIPS
> [ 0.489513] NET: Registered protocol family 2
> [ 0.494738] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
> [    0.501634] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
> [ 0.508012] TCP: Hash tables configured (established 1024 bind 1024)
> [ 0.514529] UDP hash table entries: 256 (order: 0, 4096 bytes)
> [ 0.520367] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
> [ 0.526969] NET: Registered protocol family 1
> [ 0.531315] PCI: CLS 0 bytes, default 32
> [ 0.531770] gptu: totally 6 16-bit timers/counters
> [ 0.536615] gptu: misc_register on minor 63
> [ 0.540712] gptu: succeeded to request irq 126
> [ 0.545201] gptu: succeeded to request irq 127
> [ 0.549715] gptu: succeeded to request irq 128
> [ 0.554229] gptu: succeeded to request irq 129
> [ 0.558742] gptu: succeeded to request irq 130
> [ 0.563259] gptu: succeeded to request irq 131
> [ 0.568633] phy-xrx200 gphy-xrx200: requesting lantiq/vr9_phy11g_a1x.bin
> [ 0.575912] phy-xrx200 gphy-xrx200: booting GPHY0 firmware at 7960000
> [ 0.582260] phy-xrx200 gphy-xrx200: booting GPHY1 firmware at 7960000
> [ 0.689806] futex hash table entries: 256 (order: -1, 3072 bytes)
> [ 0.723154] squashfs: version 4.0 (2009/01/31) Phillip Lougher
> [ 0.728894] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME)
> (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
> [ 0.742291] io scheduler noop registered
> [ 0.746134] io scheduler deadline registered (default)
> [    0.751978] 1e100c00.serial: ttyLTQ0 at MMIO 0x1e100c00 (irq = 112,
> base_baud = 0) is a lantiq,asc
> [ 0.760881] console [ttyLTQ0] enabled
> [ 0.768206] bootconsole [early0] disabled
> [ 0.777268] lantiq nor flash device: 01000000 at 10000000
> [ 0.781402] ltq_nor: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer
> ID 0x000001 Chip ID 0x002101
> [ 0.790840] Amd/Fujitsu Extended Query Table at 0x0040
> [ 0.795967]   Amd/Fujitsu Extended Query version 1.3.
> [    0.801004] number of CFI chips: 1
> [ 0.804436] 4 ofpart partitions found on MTD device ltq_nor
> [ 0.809969] Creating 4 MTD partitions on "ltq_nor":
> [    0.814852] 0x000000000000-0x000000020000 : "urlader"
> [    0.823305] 0x000000020000-0x000000f80000 : "firmware"
> [ 0.844284] 2 eva-fw partitions found on MTD device firmware
> [    0.848534] 0x000000020000-0x0000001bfa70 : "kernel"
> [    0.855348] 0x0000001c0100-0x000000f80000 : "rootfs"
> [ 0.860994] mtd: device 3 (rootfs) set to be root filesystem
> [ 0.865302] 1 squashfs-split partitions found on MTD device rootfs
> [    0.871420] 0x0000003e0000-0x000000f80000 : "rootfs_data"
> [    0.879057] 0x000000f80000-0x000000fc0000 : "tffs (1)"
> [    0.884936] 0x000000fc0000-0x000001000000 : "tffs (2)"
> [ 0.993675] libphy: lantiq,xrx200-mdio: probed
> [    1.004257] eth0: attached PHY [Generic PHY] (phy_addr=0:00, irq=-1)
> [    1.009606] eth0: attached PHY [Generic PHY] (phy_addr=0:01, irq=-1)
> [    1.079564] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.4]
> (phy_addr=0:11, irq=-1)
> [    1.147555] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.4]
> (phy_addr=0:13, irq=-1)
> [    1.155438] wdt 1f8803f0.watchdog: Init done
> [    1.161244] NET: Registered protocol family 10
> [    1.169748] NET: Registered protocol family 17
> [    1.172899] bridge: automatic filtering via arp/ip/ip6tables has been
> deprecated. Update your scripts to load br_netfilter if you need this.
> [    1.185425] 8021q: 802.1Q VLAN Support v1.8
> [    1.189680] found entry name -> annex=B
> [    1.193440] found entry name -> maca=BC:05:43:D7:1E:7C
> [    1.198534] found entry name -> macb=BC:05:43:D7:1E:7D
> [    1.203673] found entry name -> macwlan=BC:05:43:D7:1E:7E
> [    1.209066] found entry name -> macdsl=BC:05:43:D7:1E:7F
> [    1.214430] found entry name -> macwlan2=BC:05:43:D7:1E:81
> [    1.219861] found entry name -> wlan_key=4004584479108575
> [    1.228307] ath9k,eeprom ath9k_eep: endian check enabled.
> [    1.232282] ath9k,eeprom ath9k_eep: using random mac
> [    1.237274] ath9k,eeprom ath9k_eep: pci slot: 0
> [    1.241777] pci 0000:01:00.0: fixup device configuration
> [    1.247149] PCI: Enabling device 0000:01:00.0 (0000 -> 0002)
> [    1.254428] pci 0000:01:00.0: fixup info: [168c:002e] revision 01 class
> 0x028000
> [    1.260435] ath9k,eeprom ath9k_eep: loaded ath9k eeprom
> [    1.270378] UBIFS error (pid: 1): cannot open "ubi0:rootfs", error -19
> [    1.280211] VFS: Mounted root (squashfs filesystem) readonly on device
> 31:3.
> [    1.287767] Freeing unused kernel memory: 1184K (804f8000 - 80620000)
> [    2.468013] init: Console is alive
> [    2.470263] init: - watchdog -
> [    3.884244] dwc2 1e101000.ifxhcd: Configuration mismatch. Forcing host
> mode
> [    4.035028] eth0: port 0 got link
> [    4.747073] dwc2 1e101000.ifxhcd: DWC OTG Controller
> [    4.750648] dwc2 1e101000.ifxhcd: new USB bus registered, assigned bus
> number 1
> [    4.757999] dwc2 1e101000.ifxhcd: irq 62, io mem 0x00000000
> [    4.763516] dwc2 1e101000.ifxhcd: Hardware does not support descriptor
> DMA mode -
> [    4.770953] dwc2 1e101000.ifxhcd: falling back to buffer DMA mode.
> [    4.778435] hub 1-0:1.0: USB hub found
> [    4.781398] hub 1-0:1.0: 1 port detected
> [    4.785460] dwc2 1e106000.ifxhcd: Configuration mismatch. Forcing host
> mode
> [    5.647060] dwc2 1e106000.ifxhcd: DWC OTG Controller
> [    5.650655] dwc2 1e106000.ifxhcd: new USB bus registered, assigned bus
> number 2
> [    5.657970] dwc2 1e106000.ifxhcd: irq 91, io mem 0x00000000
> [    5.663499] dwc2 1e106000.ifxhcd: Hardware does not support descriptor
> DMA mode -
> [    5.670938] dwc2 1e106000.ifxhcd: falling back to buffer DMA mode.
> [    5.678440] hub 2-0:1.0: USB hub found
> [    5.681390] hub 2-0:1.0: 1 port detected
> [    5.687615] init: - preinit -
> [    6.192804] random: procd urandom read with 26 bits of entropy available
> [    8.569614] jffs2: notice: (370) jffs2_build_xattr_subsystem: complete
> building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref
> (0 dead, 0 orphan) found.
> [    8.585353] mount_root: switching to jffs2 overlay
> [    8.606254] procd: - early -
> [    8.607917] procd: - watchdog -
> [    9.348938] procd: - ubus -
> [    9.403903] procd: - init -
> [   10.231370] IFXOS, Version 1.5.19 (c) Copyright 2009, Lantiq Deutschland
> GmbH
> [   10.241461] NET: Registered protocol family 8
> [   10.244431] NET: Registered protocol family 20
> [   10.255629] PPP generic driver version 2.4.2
> [   10.266429] ip6_tables: (C) 2000-2006 Netfilter Core Team
> [   10.291707] Lantiq (VRX) DSL CPE MEI driver, version 1.4.8.5, (c) 2013
> Lantiq Deutschland GmbH
> [   10.291707]
> [   10.291707] Lantiq CPE API Driver version: DSL CPE API V4.16.6.3
> [   10.312794]
> [   10.312794] Predefined debug level: 3
> [   10.323452] Loading modules backported from Linux version
> v4.4-rc5-1913-gc8fdf68
> [   10.329464] Backport generated by backports.git
> backports-20151218-0-g2f58d9d
> [   10.340031] ip_tables: (C) 2000-2006 Netfilter Core Team
> [   10.351117] Infineon Technologies DEU driver version 2.0.0
> [   10.357203] IFX DEU DES initialized (multiblock).
> [   10.361497] IFX DEU AES initialized (multiblock).
> [   10.365620] IFX DEU ARC4 initialized (multiblock).
> [   10.370239] IFX DEU SHA1 initialized.
> [   10.373843] IFX DEU MD5 initialized.
> [   10.377438] IFX DEU SHA1_HMAC initialized.
> [   10.381556] IFX DEU MD5_HMAC initialized.
> [   10.391907] nf_conntrack version 0.5.0 (1946 buckets, 7784 max)
> [   10.418114] NET: Registered protocol family 24
> [   10.443723] xt_time: kernel timezone is -0000
> [   10.539595] PCI: Enabling device 0000:01:00.0 (0140 -> 0142)
> [   10.550629] ath: EEPROM regdomain: 0x8114
> [   10.550653] ath: EEPROM indicates we should expect a country code
> [   10.550667] ath: doing EEPROM country->regdmn map search
> [   10.550679] ath: country maps to regdmn code: 0x37
> [   10.550692] ath: Country alpha2 being used: DE
> [   10.550704] ath: Regpair used: 0x37
> [   10.564122] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
> [   10.567111] ieee80211 phy0: Atheros AR9287 Rev:2 mem=0xbc000000, irq=144
> [   19.477228] device eth0.1 entered promiscuous mode
> [   19.480651] device eth0 entered promiscuous mode
> [   19.500394] br-lan: port 1(eth0.1) entered forwarding state
> [   19.504638] br-lan: port 1(eth0.1) entered forwarding state
> [   21.506873] br-lan: port 1(eth0.1) entered forwarding state
> [   31.802908] random: nonblocking pool is initialized
>
>
> logread
>
> hu May 12 05:36:24 2016 kern.info kernel: [ 0.381545] pci_bus 0000:00: root
> bus resource [io  0x1d800000-0x1d8fffff]
> Thu May 12 05:36:24 2016 kern.info kernel: [ 0.388488] pci_bus 0000:00: root
> bus resource [??? 0x00000000 flags 0x0]
> Thu May 12 05:36:24 2016 kern.info kernel: [ 0.395343] pci_bus 0000:00: No
> busn resource found for root bus, will use [bus 00-ff]
> Thu May 12 05:36:24 2016 kern.debug kernel: [ 0.403373] pci 0000:00:00.0:
> [15d1:0011] type 01 class 0x060000
> Thu May 12 05:36:24 2016 kern.info kernel: [ 0.403410]
> ifx_pcie_rc_class_early_fixup: fixed pcie host bridge to pci-pci bridge
> Thu May 12 05:36:24 2016 kern.warn kernel: [ 0.421054]
> ifx_pcie_fixup_resource: fixup host controller 0000:00:00.0 (15d1:0011)
> Thu May 12 05:36:24 2016 kern.debug kernel: [ 0.428645] pci 0000:00:00.0:
> PME# supported from D0 D3hot
> Thu May 12 05:36:24 2016 kern.debug kernel: [ 0.429208] pci 0000:01:00.0:
> [168c:ff1c] type 00 class 0x020000
> Thu May 12 05:36:24 2016 kern.debug kernel: [ 0.429298] pci 0000:01:00.0:
> reg 0x10: [mem 0x00000000-0x0000ffff 64bit]
> Thu May 12 05:36:24 2016 kern.debug kernel: [ 0.429454] pci 0000:01:00.0:
> supports D1
> Thu May 12 05:36:24 2016 kern.debug kernel: [ 0.429475] pci 0000:01:00.0:
> PME# supported from D0 D1 D3hot
> Thu May 12 05:36:24 2016 kern.debug kernel: [ 0.429773] pci_bus 0000:01:
> busn_res: [bus 01-ff] end is updated to 01
> Thu May 12 05:36:24 2016 kern.debug kernel: [ 0.429814] pci_bus 0000:00:
> busn_res: [bus 00-ff] end is updated to 01
> Thu May 12 05:36:24 2016 kern.info kernel: [ 0.429870] pci 0000:00:00.0: BAR
> 8: assigned [mem 0x1c000000-0x1c0fffff]
> Thu May 12 05:36:24 2016 kern.info kernel: [ 0.436557] pci 0000:01:00.0: BAR
> 0: assigned [mem 0x1c000000-0x1c00ffff 64bit]
> Thu May 12 05:36:24 2016 kern.info kernel: [ 0.443919] pci 0000:00:00.0: PCI
> bridge to [bus 01]
> Thu May 12 05:36:24 2016 kern.info kernel: [ 0.448935] pci 0000:00:00.0:
> bridge window [mem 0x1c000000-0x1c0fffff]
> Thu May 12 05:36:24 2016 kern.warn kernel: [ 0.455810] ifx_pcie_bios_map_irq
> port 0 dev 0000:00:00.0 slot 0 pin 1
> Thu May 12 05:36:24 2016 kern.warn kernel: [ 0.462461] ifx_pcie_bios_map_irq
> dev 0000:00:00.0 irq 144 assigned
> Thu May 12 05:36:24 2016 kern.warn kernel: [ 0.468815] ifx_pcie_bios_map_irq
> port 0 dev 0000:01:00.0 slot 0 pin 1
> Thu May 12 05:36:24 2016 kern.warn kernel: [ 0.475481] ifx_pcie_bios_map_irq
> dev 0000:01:00.0 irq 144 assigned
> Thu May 12 05:36:24 2016 kern.info kernel: [ 0.482864] clocksource: Switched
> to clocksource MIPS
> Thu May 12 05:36:24 2016 kern.info kernel: [ 0.489513] NET: Registered
> protocol family 2
> Thu May 12 05:36:24 2016 kern.info kernel: [ 0.494738] TCP established hash
> table entries: 1024 (order: 0, 4096 bytes)
> Thu May 12 05:36:24 2016 kern.info kernel: [    0.501634] TCP bind hash
> table entries: 1024 (order: 0, 4096 bytes)
> Thu May 12 05:36:24 2016 kern.info kernel: [ 0.508012] TCP: Hash tables
> configured (established 1024 bind 1024)
> Thu May 12 05:36:24 2016 kern.info kernel: [ 0.514529] UDP hash table
> entries: 256 (order: 0, 4096 bytes)
> Thu May 12 05:36:24 2016 kern.info kernel: [ 0.520367] UDP-Lite hash table
> entries: 256 (order: 0, 4096 bytes)
> Thu May 12 05:36:24 2016 kern.info kernel: [ 0.526969] NET: Registered
> protocol family 1
> Thu May 12 05:36:24 2016 kern.debug kernel: [ 0.531315] PCI: CLS 0 bytes,
> default 32
> Thu May 12 05:36:24 2016 kern.info kernel: [ 0.531770] gptu: totally 6
> 16-bit timers/counters
> Thu May 12 05:36:24 2016 kern.info kernel: [ 0.536615] gptu: misc_register
> on minor 63
> Thu May 12 05:36:24 2016 kern.info kernel: [ 0.540712] gptu: succeeded to
> request irq 126
> Thu May 12 05:36:24 2016 kern.info kernel: [ 0.545201] gptu: succeeded to
> request irq 127
> Thu May 12 05:36:24 2016 kern.info kernel: [ 0.549715] gptu: succeeded to
> request irq 128
> Thu May 12 05:36:24 2016 kern.info kernel: [ 0.554229] gptu: succeeded to
> request irq 129
> Thu May 12 05:36:24 2016 kern.info kernel: [ 0.558742] gptu: succeeded to
> request irq 130
> Thu May 12 05:36:24 2016 kern.info kernel: [ 0.563259] gptu: succeeded to
> request irq 131
> Thu May 12 05:36:24 2016 kern.info kernel: [ 0.568633] phy-xrx200
> gphy-xrx200: requesting lantiq/vr9_phy11g_a1x.bin
> Thu May 12 05:36:24 2016 kern.info kernel: [ 0.575912] phy-xrx200
> gphy-xrx200: booting GPHY0 firmware at 7960000
> Thu May 12 05:36:24 2016 kern.info kernel: [ 0.582260] phy-xrx200
> gphy-xrx200: booting GPHY1 firmware at 7960000
> Thu May 12 05:36:24 2016 kern.info kernel: [ 0.689806] futex hash table
> entries: 256 (order: -1, 3072 bytes)
> Thu May 12 05:36:24 2016 kern.info kernel: [ 0.723154] squashfs: version 4.0
> (2009/01/31) Phillip Lougher
> Thu May 12 05:36:24 2016 kern.info kernel: [ 0.728894] jffs2: version 2.2
> (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
> Thu May 12 05:36:24 2016 kern.info kernel: [ 0.742291] io scheduler noop
> registered
> Thu May 12 05:36:24 2016 kern.info kernel: [ 0.746134] io scheduler deadline
> registered (default)
> Thu May 12 05:36:24 2016 kern.info kernel: [    0.751978] 1e100c00.serial:
> ttyLTQ0 at MMIO 0x1e100c00 (irq = 112, base_baud = 0) is a lantiq,asc
> Thu May 12 05:36:24 2016 kern.info kernel: [ 0.760881] console [ttyLTQ0]
> enabled
> Thu May 12 05:36:24 2016 kern.info kernel: [ 0.768206] bootconsole [early0]
> disabled
> Thu May 12 05:36:24 2016 kern.notice kernel: [ 0.777268] lantiq nor flash
> device: 01000000 at 10000000
> Thu May 12 05:36:24 2016 kern.info kernel: [ 0.781402] ltq_nor: Found 1 x16
> devices at 0x0 in 16-bit bank. Manufacturer ID 0x000001 Chip ID 0x002101
> Thu May 12 05:36:24 2016 kern.info kernel: [ 0.790840] Amd/Fujitsu Extended
> Query Table at 0x0040
> Thu May 12 05:36:24 2016 kern.info kernel: [ 0.795967] Amd/Fujitsu Extended
> Query version 1.3.
> Thu May 12 05:36:24 2016 kern.notice kernel: [    0.801004] number of CFI
> chips: 1
> Thu May 12 05:36:24 2016 kern.notice kernel: [ 0.804436] 4 ofpart partitions
> found on MTD device ltq_nor
> Thu May 12 05:36:24 2016 kern.notice kernel: [ 0.809969] Creating 4 MTD
> partitions on "ltq_nor":
> Thu May 12 05:36:24 2016 kern.notice kernel: [    0.814852]
> 0x000000000000-0x000000020000 : "urlader"
> Thu May 12 05:36:24 2016 kern.notice kernel: [    0.823305]
> 0x000000020000-0x000000f80000 : "firmware"
> Thu May 12 05:36:24 2016 kern.notice kernel: [ 0.844284] 2 eva-fw partitions
> found on MTD device firmware
> Thu May 12 05:36:24 2016 kern.notice kernel: [    0.848534]
> 0x000000020000-0x0000001bfa70 : "kernel"
> Thu May 12 05:36:24 2016 kern.notice kernel: [    0.855348]
> 0x0000001c0100-0x000000f80000 : "rootfs"
> Thu May 12 05:36:24 2016 kern.notice kernel: [ 0.860994] mtd: device 3
> (rootfs) set to be root filesystem
> Thu May 12 05:36:24 2016 kern.notice kernel: [ 0.865302] 1 squashfs-split
> partitions found on MTD device rootfs
> Thu May 12 05:36:24 2016 kern.notice kernel: [    0.871420]
> 0x0000003e0000-0x000000f80000 : "rootfs_data"
> Thu May 12 05:36:24 2016 kern.notice kernel: [    0.879057]
> 0x000000f80000-0x000000fc0000 : "tffs (1)"
> Thu May 12 05:36:24 2016 kern.notice kernel: [    0.884936]
> 0x000000fc0000-0x000001000000 : "tffs (2)"
> Thu May 12 05:36:24 2016 kern.info kernel: [ 0.993675] libphy:
> lantiq,xrx200-mdio: probed
> Thu May 12 05:36:24 2016 kern.info kernel: [    1.004257] eth0: attached PHY
> [Generic PHY] (phy_addr=0:00, irq=-1)
> Thu May 12 05:36:24 2016 kern.info kernel: [    1.009606] eth0: attached PHY
> [Generic PHY] (phy_addr=0:01, irq=-1)
> Thu May 12 05:36:24 2016 kern.info kernel: [    1.079564] eth0: attached PHY
> [Lantiq XWAY VR9 GPHY 11G v1.4] (phy_addr=0:11, irq=-1)
> Thu May 12 05:36:24 2016 kern.info kernel: [    1.147555] eth0: attached PHY
> [Lantiq XWAY VR9 GPHY 11G v1.4] (phy_addr=0:13, irq=-1)
> Thu May 12 05:36:24 2016 kern.info kernel: [    1.155438] wdt
> 1f8803f0.watchdog: Init done
> Thu May 12 05:36:24 2016 kern.info kernel: [    1.161244] NET: Registered
> protocol family 10
> Thu May 12 05:36:24 2016 kern.info kernel: [    1.169748] NET: Registered
> protocol family 17
> Thu May 12 05:36:24 2016 kern.info kernel: [    1.172899] bridge: automatic
> filtering via arp/ip/ip6tables has been deprecated. Update your scripts to
> load br_netfilter if you need this.
> Thu May 12 05:36:24 2016 kern.info kernel: [    1.185425] 8021q: 802.1Q VLAN
> Support v1.8
> Thu May 12 05:36:24 2016 kern.info kernel: [    1.189680] found entry name
> -> annex=B
> Thu May 12 05:36:24 2016 kern.info kernel: [    1.193440] found entry name
> -> maca=BC:05:43:D7:1E:7C
> Thu May 12 05:36:24 2016 kern.info kernel: [    1.198534] found entry name
> -> macb=BC:05:43:D7:1E:7D
> Thu May 12 05:36:24 2016 kern.info kernel: [    1.203673] found entry name
> -> macwlan=BC:05:43:D7:1E:7E
> Thu May 12 05:36:24 2016 kern.info kernel: [    1.209066] found entry name
> -> macdsl=BC:05:43:D7:1E:7F
> Thu May 12 05:36:24 2016 kern.info kernel: [    1.214430] found entry name
> -> macwlan2=BC:05:43:D7:1E:81
> Thu May 12 05:36:24 2016 kern.info kernel: [    1.219861] found entry name
> -> wlan_key=4004584479108575
> Thu May 12 05:36:24 2016 kern.info kernel: [    1.228307] ath9k,eeprom
> ath9k_eep: endian check enabled.
> Thu May 12 05:36:24 2016 kern.warn kernel: [    1.232282] ath9k,eeprom
> ath9k_eep: using random mac
> Thu May 12 05:36:24 2016 kern.info kernel: [    1.237274] ath9k,eeprom
> ath9k_eep: pci slot: 0
> Thu May 12 05:36:24 2016 kern.info kernel: [    1.241777] pci 0000:01:00.0:
> fixup device configuration
> Thu May 12 05:36:24 2016 kern.warn kernel: [    1.247149] PCI: Enabling
> device 0000:01:00.0 (0000 -> 0002)
> Thu May 12 05:36:24 2016 kern.info kernel: [    1.254428] pci 0000:01:00.0:
> fixup info: [168c:002e] revision 01 class 0x028000
> Thu May 12 05:36:24 2016 kern.info kernel: [    1.260435] ath9k,eeprom
> ath9k_eep: loaded ath9k eeprom
> Thu May 12 05:36:24 2016 kern.err kernel: [    1.270378] UBIFS error (pid:
> 1): cannot open "ubi0:rootfs", error -19
> Thu May 12 05:36:24 2016 kern.info kernel: [    1.280211] VFS: Mounted root
> (squashfs filesystem) readonly on device 31:3.
> Thu May 12 05:36:24 2016 kern.info kernel: [    1.287767] Freeing unused
> kernel memory: 1184K (804f8000 - 80620000)
> Thu May 12 05:36:24 2016 user.info kernel: [    2.468013] init: Console is
> alive
> Thu May 12 05:36:24 2016 user.info kernel: [    2.470263] init: - watchdog -
> Thu May 12 05:36:24 2016 kern.warn kernel: [    3.884244] dwc2
> 1e101000.ifxhcd: Configuration mismatch. Forcing host mode
> Thu May 12 05:36:24 2016 kern.info kernel: [    4.035028] eth0: port 0 got
> link
> Thu May 12 05:36:24 2016 kern.info kernel: [    4.747073] dwc2
> 1e101000.ifxhcd: DWC OTG Controller
> Thu May 12 05:36:24 2016 kern.info kernel: [    4.750648] dwc2
> 1e101000.ifxhcd: new USB bus registered, assigned bus number 1
> Thu May 12 05:36:24 2016 kern.info kernel: [    4.757999] dwc2
> 1e101000.ifxhcd: irq 62, io mem 0x00000000
> Thu May 12 05:36:24 2016 kern.err kernel: [    4.763516] dwc2
> 1e101000.ifxhcd: Hardware does not support descriptor DMA mode -
> Thu May 12 05:36:24 2016 kern.err kernel: [    4.770953] dwc2
> 1e101000.ifxhcd: falling back to buffer DMA mode.
> Thu May 12 05:36:24 2016 kern.info kernel: [    4.778435] hub 1-0:1.0: USB
> hub found
> Thu May 12 05:36:24 2016 kern.info kernel: [    4.781398] hub 1-0:1.0: 1
> port detected
> Thu May 12 05:36:24 2016 kern.warn kernel: [    4.785460] dwc2
> 1e106000.ifxhcd: Configuration mismatch. Forcing host mode
> Thu May 12 05:36:24 2016 kern.info kernel: [    5.647060] dwc2
> 1e106000.ifxhcd: DWC OTG Controller
> Thu May 12 05:36:24 2016 kern.info kernel: [    5.650655] dwc2
> 1e106000.ifxhcd: new USB bus registered, assigned bus number 2
> Thu May 12 05:36:24 2016 kern.info kernel: [    5.657970] dwc2
> 1e106000.ifxhcd: irq 91, io mem 0x00000000
> Thu May 12 05:36:24 2016 kern.err kernel: [    5.663499] dwc2
> 1e106000.ifxhcd: Hardware does not support descriptor DMA mode -
> Thu May 12 05:36:24 2016 kern.err kernel: [    5.670938] dwc2
> 1e106000.ifxhcd: falling back to buffer DMA mode.
> Thu May 12 05:36:24 2016 kern.info kernel: [    5.678440] hub 2-0:1.0: USB
> hub found
> Thu May 12 05:36:24 2016 kern.info kernel: [    5.681390] hub 2-0:1.0: 1
> port detected
> Thu May 12 05:36:24 2016 user.info kernel: [    5.687615] init: - preinit -
> Thu May 12 05:36:24 2016 kern.notice kernel: [    6.192804] random: procd
> urandom read with 26 bits of entropy available
> Thu May 12 05:36:24 2016 kern.notice kernel: [    8.569614] jffs2: notice:
> (370) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of
> xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
> Thu May 12 05:36:24 2016 user.info kernel: [    8.585353] mount_root:
> switching to jffs2 overlay
> Thu May 12 05:36:24 2016 user.info kernel: [    8.606254] procd: - early -
> Thu May 12 05:36:24 2016 user.info kernel: [    8.607917] procd: - watchdog
> -
> Thu May 12 05:36:24 2016 user.info kernel: [    9.348938] procd: - ubus -
> Thu May 12 05:36:24 2016 user.info kernel: [    9.403903] procd: - init -
> Thu May 12 05:36:24 2016 kern.info kernel: [   10.231370] IFXOS, Version
> 1.5.19 (c) Copyright 2009, Lantiq Deutschland GmbH
> Thu May 12 05:36:24 2016 kern.info kernel: [   10.241461] NET: Registered
> protocol family 8
> Thu May 12 05:36:24 2016 kern.info kernel: [   10.244431] NET: Registered
> protocol family 20
> Thu May 12 05:36:24 2016 kern.info kernel: [   10.255629] PPP generic driver
> version 2.4.2
> Thu May 12 05:36:24 2016 kern.info kernel: [   10.266429] ip6_tables: (C)
> 2000-2006 Netfilter Core Team
> Thu May 12 05:36:24 2016 kern.info kernel: [   10.291707] Lantiq (VRX) DSL
> CPE MEI driver, version 1.4.8.5, (c) 2013 Lantiq Deutschland GmbH
> Thu May 12 05:36:24 2016 kern.info kernel: [   10.291707]
> Thu May 12 05:36:24 2016 kern.info kernel: [   10.291707] Lantiq CPE API
> Driver version: DSL CPE API V4.16.6.3
> Thu May 12 05:36:24 2016 kern.warn kernel: [   10.312794]
> Thu May 12 05:36:24 2016 kern.warn kernel: [   10.312794] Predefined debug
> level: 3
> Thu May 12 05:36:24 2016 kern.info kernel: [   10.323452] Loading modules
> backported from Linux version v4.4-rc5-1913-gc8fdf68
> Thu May 12 05:36:24 2016 kern.info kernel: [   10.329464] Backport generated
> by backports.git backports-20151218-0-g2f58d9d
> Thu May 12 05:36:24 2016 kern.info kernel: [   10.340031] ip_tables: (C)
> 2000-2006 Netfilter Core Team
> Thu May 12 05:36:24 2016 kern.info kernel: [   10.351117] Infineon
> Technologies DEU driver version 2.0.0
> Thu May 12 05:36:24 2016 kern.notice kernel: [   10.357203] IFX DEU DES
> initialized (multiblock).
> Thu May 12 05:36:24 2016 kern.notice kernel: [   10.361497] IFX DEU AES
> initialized (multiblock).
> Thu May 12 05:36:24 2016 kern.notice kernel: [   10.365620] IFX DEU ARC4
> initialized (multiblock).
> Thu May 12 05:36:24 2016 kern.notice kernel: [   10.370239] IFX DEU SHA1
> initialized.
> Thu May 12 05:36:24 2016 kern.notice kernel: [   10.373843] IFX DEU MD5
> initialized.
> Thu May 12 05:36:24 2016 kern.notice kernel: [   10.377438] IFX DEU
> SHA1_HMAC initialized.
> Thu May 12 05:36:24 2016 kern.notice kernel: [   10.381556] IFX DEU MD5_HMAC
> initialized.
> Thu May 12 05:36:24 2016 kern.info kernel: [   10.391907] nf_conntrack
> version 0.5.0 (1946 buckets, 7784 max)
> Thu May 12 05:36:24 2016 kern.info kernel: [   10.418114] NET: Registered
> protocol family 24
> Thu May 12 05:36:24 2016 kern.info kernel: [   10.443723] xt_time: kernel
> timezone is -0000
> Thu May 12 05:36:24 2016 kern.warn kernel: [   10.539595] PCI: Enabling
> device 0000:01:00.0 (0140 -> 0142)
> Thu May 12 05:36:24 2016 kern.debug kernel: [   10.550629] ath: EEPROM
> regdomain: 0x8114
> Thu May 12 05:36:24 2016 kern.debug kernel: [   10.550653] ath: EEPROM
> indicates we should expect a country code
> Thu May 12 05:36:24 2016 kern.debug kernel: [   10.550667] ath: doing EEPROM
> country->regdmn map search
> Thu May 12 05:36:24 2016 kern.debug kernel: [   10.550679] ath: country maps
> to regdmn code: 0x37
> Thu May 12 05:36:24 2016 kern.debug kernel: [   10.550692] ath: Country
> alpha2 being used: DE
> Thu May 12 05:36:24 2016 kern.debug kernel: [   10.550704] ath: Regpair
> used: 0x37
> Thu May 12 05:36:24 2016 kern.debug kernel: [   10.564122] ieee80211 phy0:
> Selected rate control algorithm 'minstrel_ht'
> Thu May 12 05:36:24 2016 kern.info kernel: [   10.567111] ieee80211 phy0:
> Atheros AR9287 Rev:2 mem=0xbc000000, irq=144
> Thu May 12 05:36:25 2016 user.notice : 'radio0' is disabled
> Thu May 12 05:36:25 2016 user.notice : 'radio0' is disabled
> Thu May 12 05:36:26 2016 user.notice : firmware for annex a not found
> Thu May 12 05:36:28 2016 authpriv.info dropbear[840]: Not backgrounding
> Thu May 12 05:36:28 2016 user.notice : setting up led wifi
> Thu May 12 05:36:28 2016 user.notice : setting up led dsl
> Thu May 12 05:36:28 2016 user.notice : setting up led internet
> Thu May 12 05:36:29 2016 daemon.info procd: - init complete -
> Thu May 12 05:36:30 2016 kern.info kernel: [   19.477228] device eth0.1
> entered promiscuous mode
> Thu May 12 05:36:30 2016 kern.info kernel: [   19.480651] device eth0
> entered promiscuous mode
> Thu May 12 05:36:30 2016 kern.info kernel: [   19.500394] br-lan: port
> 1(eth0.1) entered forwarding state
> Thu May 12 05:36:30 2016 kern.info kernel: [   19.504638] br-lan: port
> 1(eth0.1) entered forwarding state
> Thu May 12 05:36:30 2016 daemon.notice netifd: Interface 'lan' is enabled
> Thu May 12 05:36:30 2016 daemon.notice netifd: Interface 'lan' is setting up
> now
> Thu May 12 05:36:30 2016 daemon.notice netifd: Interface 'lan' is now up
> Thu May 12 05:36:30 2016 daemon.notice netifd: Interface 'loopback' is
> enabled
> Thu May 12 05:36:30 2016 daemon.notice netifd: Interface 'loopback' is
> setting up now
> Thu May 12 05:36:30 2016 daemon.notice netifd: Interface 'loopback' is now
> up
> Thu May 12 05:36:30 2016 daemon.notice netifd: Bridge 'br-lan' link is up
> Thu May 12 05:36:30 2016 daemon.notice netifd: Interface 'lan' has link
> connectivity
> Thu May 12 05:36:30 2016 daemon.notice netifd: Network device 'eth0' link is
> up
> Thu May 12 05:36:30 2016 daemon.notice netifd: VLAN 'eth0.1' link is up
> Thu May 12 05:36:30 2016 daemon.notice netifd: Network device 'lo' link is
> up
> Thu May 12 05:36:30 2016 daemon.notice netifd: Interface 'loopback' has link
> connectivity
> Thu May 12 05:36:30 2016 user.notice firewall: Reloading firewall due to
> ifup of lan (br-lan)
> Thu May 12 05:36:32 2016 kern.info kernel: [   21.506873] br-lan: port
> 1(eth0.1) entered forwarding state
> Thu May 12 05:36:35 2016 daemon.info dnsmasq[989]: started, version 2.75
> cachesize 150
> Thu May 12 05:36:35 2016 daemon.info dnsmasq[989]: compile time options:
> IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP
> no-conntrack no-ipset no-auth no-DNSSEC loop-detect inotify
> Thu May 12 05:36:35 2016 daemon.info dnsmasq[989]: DNS service limited to
> local subnets
> Thu May 12 05:36:35 2016 daemon.info dnsmasq-dhcp[989]: DHCP, IP range
> 192.168.2.100 -- 192.168.2.249, lease time 12h
> Thu May 12 05:36:35 2016 daemon.info dnsmasq[989]: using local addresses
> only for domain lan
> Thu May 12 05:36:35 2016 daemon.warn dnsmasq[989]: no servers found in
> /tmp/resolv.conf.auto, will retry
> Thu May 12 05:36:35 2016 daemon.info dnsmasq[989]: read /etc/hosts - 4
> addresses
> Thu May 12 05:36:35 2016 daemon.info dnsmasq[989]: read /tmp/hosts/dhcp - 2
> addresses
> Thu May 12 05:36:35 2016 daemon.info dnsmasq-dhcp[989]: read /etc/ethers - 0
> addresses
> Thu May 12 05:36:42 2016 kern.notice kernel: [   31.802908] random:
> nonblocking pool is initialized
>
>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
diff mbox

Patch

diff -burN openwrt.orig/target/linux/lantiq/base-files/etc/board.d/02_network openwrt.7360SL/target/linux/lantiq/base-files/etc/board.d/02_network
--- openwrt.orig/target/linux/lantiq/base-files/etc/board.d/02_network	2016-05-15 10:06:31.043640910 +0200
+++ openwrt.7360SL/target/linux/lantiq/base-files/etc/board.d/02_network	2016-05-15 10:06:49.083299502 +0200
@@ -62,6 +62,11 @@ 
 	ucidef_set_interface_lan 'eth0'
 	;;
 
+FRITZ7360SL)
+	ucidef_add_switch "switch0" \
+		"4:lan:1" "2:lan:2" "0:lan:3" "1:lan:4" "6t@eth0"
+	;;
+
 DGN3500*)
 	ucidef_add_switch "switch0" \
 		"3:lan:1" "2:lan:2" "1:lan:3" "0:lan:4" "5t@eth0"
diff -burN openwrt.orig/target/linux/lantiq/dts/FRITZ7360SL.dts openwrt.7360SL/target/linux/lantiq/dts/FRITZ7360SL.dts
--- openwrt.orig/target/linux/lantiq/dts/FRITZ7360SL.dts	1970-01-01 01:00:00.000000000 +0100
+++ openwrt.7360SL/target/linux/lantiq/dts/FRITZ7360SL.dts	2016-05-15 15:32:44.025926729 +0200
@@ -0,0 +1,217 @@ 
+/dts-v1/;
+
+/include/ "vr9.dtsi"
+
+/ {
+	model = "FRITZ7360SL - 1&1 HomeServer";
+
+	chosen {
+		bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+
+		leds {
+			boot = &power_green;
+			failsafe = &power_red;
+			running = &power_green;
+
+			internet = &info_green;
+			dsl = &power_green;
+			wifi = &wifi;
+		};
+	};
+
+	memory@0 {
+		reg = <0x0 0x8000000>;
+	};
+
+	fpi@10000000 {
+		localbus@0 {
+			nor-boot@0 {
+				compatible = "lantiq,nor";
+				bank-width = <2>;
+				reg = <0 0x0 0x1000000>;
+				#address-cells = <1>;
+				#size-cells = <1>;
+				partitions {
+					compatible = "fixed-partitions";
+					#address-cells = <1>;
+					#size-cells = <1>;
+					urlader: partition@0 {
+						label = "urlader";
+						reg = <0x00000 0x20000>;
+						read-only;
+					};
+
+					partition@20000 {
+						label = "firmware";
+						reg = <0x20000 0xf60000>;
+					};
+
+					partition@f80000 {
+						label = "tffs (1)";
+						reg = <0xf80000 0x40000>;
+						read-only;
+					};
+
+					partition@fc0000 {
+						label = "tffs (2)";
+						reg = <0xfc0000 0x40000>;
+						read-only;
+					};
+				};
+			};
+		};
+
+		gpio: pinmux@E100B10 {
+			pinctrl-names = "default";
+			pinctrl-0 = <&state_default>;
+
+			state_default: pinmux {
+				mdio {
+					lantiq,groups = "mdio";
+					lantiq,function = "mdio";
+				};
+				phy-rst {
+					lantiq,pins = "io37", "io44";
+					lantiq,pull = <0>;
+					lantiq,open-drain = <0>;
+					lantiq,output = <1>;
+				};
+				pcie-rst {
+					lantiq,pins = "io38";
+					lantiq,pull = <0>;
+					lantiq,output = <1>;
+				};
+			};
+		};
+
+		ifxhcd@E101000 {
+			status = "okay";
+				lantiq,portmask = <0x3>;
+		};
+
+		ifxhcd@E106000 {
+			status = "okay";
+		};
+	};
+
+	ath9k_eep {
+		compatible = "ath9k,eeprom";
+		ath,eep-flash = <&urlader 0x985>;
+		ath,eep-endian;
+		ath,eep-swap;
+		ath,pci-slot = <0>;
+	};
+
+	gphy-xrx200 {
+		compatible = "lantiq,phy-xrx200";
+		firmware = "lantiq/vr9_phy11g_a1x.bin";
+		phys = [ 00 01 ];
+	};
+
+	gpio-keys-polled {
+		compatible = "gpio-keys-polled";
+		#address-cells = <1>;
+		#size-cells = <0>;
+		poll-interval = <100>;
+		dect {
+			label = "power";
+			gpios = <&gpio 1 0>;
+			linux,code = <0x102>;
+		};
+		wifi {
+			label = "wifi";
+			gpios = <&gpio 29 0>;
+			linux,code = <0x101>;
+		};
+	};
+
+	gpio-leds {
+		compatible = "gpio-leds";
+
+		power_green: power {
+			label = "fritz7360:green:power";
+			gpios = <&gpio 32 1>;
+			default-state = "keep";
+		};
+		power_red: power2 {
+			label = "fritz7360:red:power";
+			gpios = <&gpio 33 1>;
+		};
+		info_red {
+			label = "fritz7360:red:info";
+ 			gpios = <&gpio 34 1>;
+		};
+		info_green: info_green {
+			label = "fritz7360:green:info";
+			gpios = <&gpio 47 1>;
+		};
+		wifi: wifi {
+			label = "fritz7360:green:wlan";
+			gpios = <&gpio 36 1>;
+		};
+		dect {
+			label = "fritz7360:green:dect";
+			gpios = <&gpio 35 1>;
+		};
+	};
+};
+
+&eth0 {
+	lan: interface@0 {
+		compatible = "lantiq,xrx200-pdi";
+		#address-cells = <1>;
+		#size-cells = <0>;
+		reg = <0>;
+		mac-address = [ 00 11 22 33 44 55 ];
+		lantiq,switch;
+
+		ethernet@0 {
+			compatible = "lantiq,xrx200-pdi-port";
+			reg = <0>;
+			phy-mode = "rgmii";
+			phy-handle = <&phy0>;
+			// gpios = <&gpio 37 0>;
+		};
+		ethernet@1 {
+			compatible = "lantiq,xrx200-pdi-port";
+			reg = <1>;
+			phy-mode = "rgmii";
+			phy-handle = <&phy1>;
+			// gpios = <&gpio 44 0>;
+		};
+		ethernet@2 {
+			compatible = "lantiq,xrx200-pdi-port";
+			reg = <2>;
+			phy-mode = "gmii";
+			phy-handle = <&phy11>;
+		};
+		ethernet@3 {
+			compatible = "lantiq,xrx200-pdi-port";
+			reg = <4>;
+			phy-mode = "gmii";
+			phy-handle = <&phy13>;
+		};
+	};
+
+	mdio@0 {
+		#address-cells = <1>;
+		#size-cells = <0>;
+		compatible = "lantiq,xrx200-mdio";
+		phy0: ethernet-phy@0 {
+			reg = <0x0>;
+			compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
+		};
+		phy1: ethernet-phy@1 {
+			reg = <0x1>;
+			compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
+		};
+		phy11: ethernet-phy@11 {
+			reg = <0x11>;
+			compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
+		};
+		phy13: ethernet-phy@13 {
+			reg = <0x13>;
+			compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
+		};
+	};
+};
diff -burN openwrt.orig/target/linux/lantiq/image/Makefile openwrt.7360SL/target/linux/lantiq/image/Makefile
--- openwrt.orig/target/linux/lantiq/image/Makefile	2016-05-15 10:06:31.046974180 +0200
+++ openwrt.7360SL/target/linux/lantiq/image/Makefile	2016-05-15 10:06:49.086632771 +0200
@@ -414,6 +414,9 @@ 
 Image/BuildKernel/Profile/FRITZ3370=$(call Image/BuildKernelEVA/Template,FRITZ3370)
 Image/Build/Profile/FRITZ3370=$(call Image/BuildEVA/$(1),$(1),FRITZ3370)
 
+Image/BuildKernel/Profile/FRITZ7360SL=$(call Image/BuildKernelEVA/Template,FRITZ7360SL)
+Image/Build/Profile/FRITZ7360SL=$(call Image/BuildEVA/$(1),$(1),FRITZ7360SL)
+
 Image/BuildKernel/Profile/VG3503J=$(call Image/BuildKernelLoader/Template,VG3503J)
 Image/Build/Profile/VG3503J=$(call Image/BuildLoader/$(1),$(1),VG3503J)
 
diff -burN openwrt.orig/target/linux/lantiq/xrx200/profiles/avm.mk openwrt.7360SL/target/linux/lantiq/xrx200/profiles/avm.mk
--- openwrt.orig/target/linux/lantiq/xrx200/profiles/avm.mk	2016-05-15 10:06:31.050307451 +0200
+++ openwrt.7360SL/target/linux/lantiq/xrx200/profiles/avm.mk	2016-05-15 10:06:49.086632771 +0200
@@ -7,3 +7,10 @@ 
 FRITZ3370_UBI_OPTS:="-m 2048 -p 128KiB -s 512"
 
 $(eval $(call Profile,FRITZ3370))
+
+define Profile/FRITZ7360SL
+  NAME:=1&1 HomeServer - FRITZ7360SL
+  PACKAGES:=kmod-ath9k wpad-mini kmod-usb-dwc2
+endef
+
+$(eval $(call Profile,FRITZ7360SL))