Commit Graph

606 Commits (1aa774053b597fba2b4ea46c43146490220d45ab)

Author SHA1 Message Date
John Crispin 8c80e915a0 lantiq: Add the xbar to vr9.dts
linux 4.4 (since commit 08b3c894e56580b8ed3e601212a25bda974c3cc2
"MIPS: lantiq: Disable xbar fpi burst mode") requires that the xbar is
defined in the .dts of vrx200 (VR9) SoCs.

SVN-Revision: 48056
9 years ago
John Crispin 6f95d749d6 lantiq: match default xdsl mode and default wan interface
Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 48047
9 years ago
John Crispin a9896bf106 lantiq: convert vendorid into human readable form
Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 48046
9 years ago
John Crispin 436fdee272 lantiq: add the current profile to the stats output
Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 48045
9 years ago
John Crispin 28a700de9b lantiq: TDW8980 - use devicename:colour:function led naming scheme
Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 48044
9 years ago
John Crispin c584aed6b1 lantiq: P2812HNUFX - move usb leds to P2812HNU-F1
The P2812HNU-F3 doesn't have usb leds. Only the P2812HNU-F1 has those
leds.

Reported-by: Sylwester Petela <sscapi@gmail.com>
Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 48043
9 years ago
John Crispin 3cbfc74cde lantiq: use devicename:colour:function led naming scheme
The leds of the following boards are not renamed due to lack of
manuals/informations:

- ARV7519PW
- ARV7510PW22
- ARV4510PW

The leds of the ARV4518PWR01* boards are unchanged, since the leds doesn't
match the leds from the manual or pictures (e.g. there shouldn't be a wps led).

Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 48042
9 years ago
John Crispin 4cf3fd49fc lantiq: add support for indicating the boot state using three leds
The BTHOMEHUBV5A has a RGB power led, where every colour is perfect to
indicate the current boot state. This patch adds support for such cases.

The existing led sequences should be the same as before.

Boards which are using a led different from power (like TDW89x0) are
changed to switch of the led after boot

Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 48041
9 years ago
John Crispin ebc71a4d16 lantiq: use dsl led defined in DTS
dsl_control (dsl_notify.sh) is the only process which is aware of the
state of the atm/ptm interface. Use the dsl led exclusive for the dsl
line state.

On boards which don't have a distinct internet and a dsl led, let the
netdev status of the atm interface trigger the shared led.

Triggering the shared led according to the status of the ppp interface
isn't suitable, since the led would be switched of if the ppp
connection goes down, but the line is still in sync.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 48040
9 years ago
John Crispin a3c3b2a9a8 lantiq: use power leds defined in DTS
Use the power leds defined in the dts file instead of hardcoded led names.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 48039
9 years ago
John Crispin d7a5d66ea1 lantiq: use default leds defined in DTS
Remove all now double defined leds from the led board file. Use pppoe
as default for all broadband connections, since it's the default in
OpenWrt now.

Rename the the wifi leds to make sure, the not applicable default
values get overwritten.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 48038
9 years ago
John Crispin a3042500ab lantiq: define default leds in dts files
- ARV7525PW: use the power led as dsl led as done by the stock firmware
- FRITZ3370: use the info led as internet led
- FRITZ7320: use the power led as dsl led as done by the stock firmware

Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 48037
9 years ago
John Crispin 5b6f0250f6 lantiq: ARV752DPW - fix dts file
Use the same led logic and labels as the OEM firmware (red = okay,
blue = failure).

Add the red internet led.

Remove missing usb led workaround. The workaround shouldn't be in the
default configuration.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 48036
9 years ago
John Crispin aa99acdb46 lantiq: ARV752DPW22 - fix dts file
No need to switch (and keep) on all leds at boot. Use the same led
logic and labels as the OEM firmware (red = okay, blue = failure).

Add the red internet led.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 48035
9 years ago
John Crispin 2eead1c891 lantiq: DGN1000B - fix typo in dts file
Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 48034
9 years ago
John Crispin e557011041 lantiq: ARV4518PWR01* move redundant parts to dtsi
Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 48033
9 years ago
John Crispin b6b128f63d lantiq: BTHOMEHUBV2B - remove missing usb led workaround
The workaround shouldn't be in the default configuration.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 48032
9 years ago
John Crispin 56fa6d8241 lantiq: P2812HNUFX - move leds to dtsi
Beside the used labels, they are the same on both boards.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 48031
9 years ago
John Crispin 8d5ac2d0f1 lantiq: fix Image Builder
Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 48002
9 years ago
John Crispin c01ca020ea lantiq: fix PCI_DEVICE_ID_LANTIQ_PCIE
It's not necessary to define PCI_* if pci_ids.h is included a few
lines above.

The change to pci_ids.h doesn't look intentional to me, especially
since the former value is added to the top of ifxmips_fixup_pcie.c.

Both changes were introduced with the kernel 4.1 support patches and
were not present in the 3.18 patches.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 47996
9 years ago
John Crispin e33aa71045 lantiq: TDW89x0 - increase spi frequency
Use the same max spi frequency as set in u-boot.

According to the datasheets, the Q64-104HIP as well as the Winbond
25Q64FVSIG support spi frequencies up to 50 MHz. During my tests, the
Q64-104HIP couldn't be recognized/initialized if the frequency
was > 40MHz.

Both chips do support fast read as well.

While touching the dts file, I fixed the dtc compiler warnings.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 47994
9 years ago
John Crispin 3af2cf661b lantiq: disable SW_PORTMAP usage in the ethernet driver
using the special tag in this way lead to port mirroring for certain types of traffic.
fallback to using th PMAC_EWAN register for the wan portmap.

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 47993
9 years ago
John Crispin 5e10f67b67 lantiq: Configure LED polarity for TDW8970 and TDW8980.
This patch configures the correct ath9k WLAN LED polarity for the TDW8970,
and for the TDW8980 as well.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>

SVN-Revision: 47969
9 years ago
John Crispin 21493c984a lantiq: fix ARV7519RW22 buttons
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 47918
9 years ago
John Crispin 0a6a37be83 lantiq: add the TDW8980 5GHz led
Still unused, but u-boot doesn't take care of the led, which results in a
permanent switched on 5GHz LED.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 47915
9 years ago
John Crispin ab77d4bcb9 lantiq: Fix LED handling.
- Use common OpenWrt blink patterns instead of custom ones
- Add preinit_regular hook
- Handle the TDW89X0 that does not have a configurable power LED

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>

SVN-Revision: 47914
9 years ago
John Crispin 34934609f9 lantiq: Configure LED polarity for TDW8970.
This patch configures the correct ath9k WLAN LED polarity for the TDW8970.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>

SVN-Revision: 47913
9 years ago
John Crispin ec21c9821c lantiq: Configure disabled WLAN bands for TDW89X0.
The TDW8970 has a AR9381, which is the bgn 3x3:3 variant of the AR938x family.

The TDW8980 has a AR9287, which is the bgn 2x2:2 variant of the AR928x family.

This means that the chip for both routers is 2.4 GHz only.

Anyway, the manufacturer didn't disable the 5 GHz band in the EEPROM partition
(at least on my TDW8970).

So this patch disables the 5 GHz band.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>

SVN-Revision: 47912
9 years ago
John Crispin f2fd516d72 lantiq: Allow configuration of ath9k disabled bands and LED polarity from the device tree.
Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>

SVN-Revision: 47911
9 years ago
Jo-Philipp Wich 67e1c87012 all: drop old uci-defaults.sh
Replace former uci-defaults.sh implementation with the uci-defaults-new.sh one
and update all users accordingly.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 47867
9 years ago
John Crispin 0938233fcd lantiq: get rid of ltq-vdsl-fw
Because of dsl-vrx200-firmware-xdsl-* there's no need anymore to
download a dsl firmware at runtime.

Signed-off-by: Andre Heider <a.heider@gmail.com>

SVN-Revision: 47851
9 years ago
John Crispin 787120e3a3 lantiq: fix led setup after switch to uci-defaults-new.sh
The switch to uci-defaults-new.sh revealed a bug in the former used
uci-defaults.sh, which failed to add leds with colons in the led name.

This bug isn't any longer present in uci-defaults-new.sh and therefore
all via DT defined leds will be added to /etc/config/system with their initial
on/off state, regardless whether they are already added by the board specific
led mappings.

This results for a BTHOMEHUBV5A into the following led configuration:

- soc:blue:power is added as led_power with the initial state "switched on"
- soc:blue:power is added as led_soc_blue_power with the initial state "switched off"

With the final result of a switched off power led after boot.

The only led that needs to be added is the BTHOMEHUBV5A specific dimmed led.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 47850
9 years ago
Jo-Philipp Wich 9157360ac5 lantiq: fix logic error in dsl board.d code
Starting with r47755 the pppoe wan interface section isn't any longer added to
the network config on firstboot, using the default configuration. Since the
commit message does not mention such a change, I assume that this wasn't
intentionally.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 47793
9 years ago
Felix Fietkau ec1b121769 lantiq: add VDSL2 vectoring status information
Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 47785
9 years ago
Felix Fietkau e82404ce6c lantiq: get rid of the dsl_fw mtd partition
Now that we have redistributable vdsl/adsl firmware blobs in /lib/firmware,
we can drop the dsl_fw partition and extend the firmware partition.

Signed-off-by: Andre Heider <a.heider@gmail.com>

SVN-Revision: 47783
9 years ago
Felix Fietkau fff859a1f6 lantiq: remove 3.18 support
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47774
9 years ago
Felix Fietkau 8b30afb005 lantiq: fix a race condition in the SPI driver leading to rx FIFO overflows (and subsequent timeouts)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47770
9 years ago
Felix Fietkau 9330296932 lantiq: re-enable spi-xway for TD-W89X0 now that it is fixed
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47768
9 years ago
Felix Fietkau b963cec01c lantiq: fix xway spi driver timeout issues
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47767
9 years ago
Felix Fietkau ae10274239 lantiq: clean up the xrx200 ethernet driver and fix stability issues
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47766
9 years ago
Felix Fietkau 435e7fb295 lantiq: move esi calls to dsl_cpe_control scripts to fix ordering wrt. loading vr9 drivers
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47764
9 years ago
Jo-Philipp Wich 5ebc5de49d lantiq: switch from uci-defaults to board.d
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 47755
9 years ago
Felix Fietkau 46112609d0 lantiq: fix up m25p80 device ids (#20975)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47690
9 years ago
Hauke Mehrtens 34e0d3cb5a lantiq: fix compile error
This fixes a problem introduced in r47624.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 47628
9 years ago
Felix Fietkau bb1c915f1e kernel: update m25p80 in 4.1 to the latest version from 4.4-rc1
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47624
9 years ago
John Crispin 570c35a599 lantiq: add phy led config support over devicetree bindings
This patch adds the posibility to config the led behaviour of the lantiq phys
over the devicetree bindings.It patches the 0023-NET-PHY-adds-driver-for-lantiq-PHY11G
for 3.18 and 4.1. I have also added a register description overview for
applicable values. This goes to the documentation folder in the linux kernel.

Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>

SVN-Revision: 47566
9 years ago
John Crispin 0206a400cf lantiq: tweak DWC2 default parameters
This patch improves the default configuration of DWC2 on lantiq SoCs
somewhat:
 * Set maximum packet count to largest allowed value by the DWC2 (511)
 * Use 16-bit DMA bursts
 * Divide fifo buffers more evenly

Default fifo buffer sizes from original ltq-hcd driver seem really
irrational. For example according to DWC2 data book rxfifo size of 240
will not fit even a single full length USB packet. On the other hand
non-periodic tx fifo size of 240 is more than enough to fit one complete
packet.

Change the sizes around to improve the situation and to fix some issues
especially with isochronous USB transfers.

Signed-off-by: Antti Seppälä <a.seppala@gmail.com>

SVN-Revision: 47563
9 years ago
Hauke Mehrtens ff64ae8293 lantiq: add clk_round_rate()
This adds a basic implementation of clk_round_rate()
The clk_round_rate() function is called by multiple drivers and
subsystems now and the lantiq clk driver is supposed to export this,
but doesn't do so, this causes linking problems like this one:
ERROR: "clk_round_rate" [drivers/media/v4l2-core/videodev.ko] undefined!

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 47254
9 years ago
Hauke Mehrtens da94b00df5 kernel: update kernel 4.1 to version 4.1.11
https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.1.11

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 47252
9 years ago
John Crispin e1d585d99f lantiq: Synchronize access to the DSL command pipe
Whenever two processes were executing different commands at the same
time then one of the commands sometimes got the response of the other
command.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 47213
9 years ago