aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek/files
Commit message (Collapse)AuthorAgeFilesLines
* mediatek: remove mt753x driverFelix Fietkau2023-04-2916-3970/+0
| | | | | | It is unused Signed-off-by: Felix Fietkau <nbd@nbd.name>
* generic: move ledbar driver from mediatek targetSven Wegener2022-09-111-255/+0
| | | | | | This moves the ledbar driver to generic, to be also used by the ramips target. Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
* mediatek: add led countSven Wegener2022-09-111-1/+7
| | | | | | | | | The LEDs connected to the MCU are so-called smart LEDs and their signal is daisy-chained. Because of this, the MCU needs to be told how many LEDs are connected. It also means the LEDs could be individually controlled, if the MCU has a command for this. Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
* mediatek: add initialization after resetSven Wegener2022-09-111-0/+14
| | | | | | | | During GPIO initialization the pin state flips and triggers a reset of the ledbar MCU. It needs to be moved through an initialization sequence before working correctly. Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
* mediatek: add support for reset gpioSven Wegener2022-09-111-0/+26
| | | | | | | Some versions of the ledbar MCU have a reset pin. It needs to be correctly initialized or we might keep the MCU in reset state. Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
* mediatek: support reading more than one byte of responseSven Wegener2022-09-111-7/+8
| | | | | | There are commands that return more than one byte of response. Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
* mediatek: cast literal value to charSven Wegener2022-09-111-1/+1
| | | | | | | | | | Or the comparison against a signed char is always true, because the literal 0xaa is treated as an unsigned int, to which the signed char is casted during comparison. 0xaa is above the positive values of a signed char and negative signed char values result in values larger than 0xaa when casted to unsigned int. Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
* mediatek: correctly log i2c responseSven Wegener2022-09-111-2/+2
| | | | | | | The read response is in the i2c_response variable. Also use %hhx format, because we're dealing with a single char. Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
* mediatek: remove gpiod_direction_output()Sven Wegener2022-09-111-2/+0
| | | | | | It's already set to output with GPIOD_OUT_LOW. Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
* mediatek: do not use gpiod_set_raw_value()Sven Wegener2022-09-111-2/+2
| | | | | | The polarity of the signal is set in the device dts. Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
* mediatek: drop spi-nand driver from mtkChuanhong Guo2022-04-2810-3979/+0
| | | | Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
* mediatek: add patches for 5.15 and kernel config for mt7622Felix Fietkau2022-03-27152-0/+102071
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mediatek: bump to v4.14John Crispin2018-02-1414-7031/+0
| | | | | | | This drops support for all the !emmc EVB and adds banannaPi-R2 Also drop mtkhnat until the nftables offoad driver is ready Signed-off-by: John Crispin <john@phrozen.org>
* mediatek: update to latest kernel patchset from v4.13-rcJohn Crispin2017-08-1813-70/+4776
| | | | | | Signed-off-by: Muciri Gatimu <muciri@openmesh.com> Signed-off-by: Shashidhar Lakkavalli <shashidhar.lakkavalli@openmesh.com> Signed-off-by: John Crispin <john@phrozen.org>
* mediatek: fix sysupgrade on eMMC boardsJohn Crispin2017-05-031-0/+1
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* mediatek: fix mt7530 mcm resetJohn Crispin2017-04-293-3/+12
| | | | | | | Early SoC versions with an ECO of 1 required the gpio reset. Mass production SoCs no longer need this work around. Signed-off-by: John Crispin <john@phrozen.org>
* mediatek: add support for the NAND-ePHY boardJohn Crispin2017-04-241-0/+527
| | | | | | This is the same as the NAND board but gmac1 is wired to an external phy. Signed-off-by: John Crispin <john@phrozen.org>
* mediatek: fix support for gmac1 using external PHYJohn Crispin2017-04-242-2/+84
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* mediatek: various fixes for v4.9John Crispin2017-04-074-112/+263
| | | | | | | | | | | | | | | * adds MT7530 DSA support * backport latest ethernet driver * add PMIC leds * add auxadc support * add efuse support * add thermal sensor support * add irq affinity support for ethernet still todo * DSA multi cpu support Signed-off-by: John Crispin <john@phrozen.org>
* mediatek: bump to v4.9John Crispin2017-02-161-1/+1
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* mediatek: update the ethernet compat stringJohn Crispin2017-01-251-1/+1
| | | | | | | mt2701 is an earlier version of the ip core, so use that compat string as baseline. Signed-off-by: John Crispin <john@phrozen.org>
* medaitek: convert the NAND target to UBIJohn Crispin2016-06-171-2/+1
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* mediatek: update patchesJohn Crispin2016-05-233-3/+659
| | | | | | | * fixes NAND * adds latest ethernet patches Signed-off-by: John Crispin <john@phrozen.org>
* mediatek: sync and patches add support for several boardsJohn Crispin2016-04-282-0/+900
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 49263