From: Sean Wang
This patch is the preparation patch in order to adapt into various
hardware through adding platform data which holds specific characteristics
among MediaTek SoCs and introducing the unified clock handler for those
distinct clock requirements depending on different features such as
From: Sean Wang
This patch adds the driver for ethernet controller on MT7622 SoC. It has
the similar handling logic as the previously MT7623 does, but there are
additions against with MT7623 SoC, the shared SGMII given for the dual
GMACs and including 5-ports 10/100 embedded switch support (ESW)
From: Sean Wang
Sean and Nelson work for MediaTek on maintaining the MediaTek ethernet
driver for the existing SoCs and adding support for the following SoCs.
In the past, Sean has been active at making most of the qualifications
, stress test and submitting a lot of patches for the driver while
From: Sean Wang
The patch adds the supplements in the dt-binding document for MediaTek
MT7622 SoC with extra SGMII system controller and relevant clock consumers
listed as the requirements for those SoCs equipped with the SGMII circuit.
Also, add the missing binding information for MT7623 SoC her
From: Sean Wang
Changes since v2:
- update John's mail
Changes since v1:
- add refinement for ethernet clock management
- take out the code block for ESW, add it until ESW driver is actually
introduced
The series adds the driver for ethernet controller found on MT7622 SoC.
There are additions
From: Sean Wang
Update the binding document for enabling SCPSYS on MediaTek MT7622 SoC.
Signed-off-by: Sean Wang
Signed-off-by: Chen Zhong
Acked-by: Rob Herring
---
Documentation/devicetree/bindings/soc/mediatek/scpsys.txt | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Documentation/
From: Chen Zhong
Add relevant header files required for dt-bindings of SCPSYS power domain
control for all subsystems found on MT7622 SoC.
Signed-off-by: Chen Zhong
Signed-off-by: Sean Wang
---
include/dt-bindings/power/mt7622-power.h | 22 ++
1 file changed, 22 insertions
From: Sean Wang
Changes since v2:
- reduce code duplication of scpsys_probe across all SoCs
Changes since v1:
- rebase to Linux v4.13-rc1
There are four power domains on MediaTek MT7622 SoC which are respectively
ETHSYS for Ethernet including extra embedded switch, HIF0SYS for PCI-E and
SATA, H
From: Sean Wang
Add SCPSYS power domain driver for MT7622 SoC having four power domains
which are respectively ETHSYS for Ethernet including embedded switch,
WBSYS for WIFI and Bluetooth, HIF0SYS for PCI-E and SATA, and HIF1SYS for
USB. Those functions could be selectively powered gated when the
From: Sean Wang
Reduce code duplication of scpsys_probe_mt across all SoCs using
the more generic scpsys_probe all covering all cases to avoid starting
to bloat the driver when more MediaTek SoCs supported are added.
Suggested-by: Matthias Brugger
Signed-off-by: Sean Wang
---
drivers/soc/
From: Sean Wang
Add cpufreq support to MT7622 SoC and also include some cleanups
with the generic naming to explicitly support all MediaTek SoCs.
Sean Wang (2):
cpufreq: mediatek: add cleanups with the more generic naming
cpufreq: mediatek: add support of cpufreq to MT7622 SoC
drivers/cpuf
From: Sean Wang
MT7622 is a 64-bit ARMv8 based dual-core SoC (2 * Cortex-A53) with a
single cluster. The hardware is also compatible with the current driver,
so add MT7622 as one of the compatible string list.
Signed-off-by: Sean Wang
---
drivers/cpufreq/mediatek-cpufreq.c | 1 +
1 file change
From: Sean Wang
Since more MediaTek SoCs can be supported with the cpufreq driver and not
limited to MT8173, a couple of cleanups are done here with renaming those
functions and related structures with "mtk" instead of "mt8173".
Signed-off-by: Sean Wang
---
drivers/cpufreq/mediatek-cpufreq.c |
From: Sean Wang
This updates dt-binding documentation for MediaTek MT7622 and
MT7623 SoC. For the both SoCs supported all rely on the fallback
binding of the case with "mediatek,mt6589-wdt".
Signed-off-by: Sean Wang
Acked-by: Rob Herring
---
Documentation/devicetree/bindings/watchdog/mtk-wdt.
From: Sean Wang
Add MediaTek MT6380 regulator becoming one of PMIC wrapper slave
and also add extra new regmap_config of 32-bit mode for MT6380
since old regmap_config of 16-bit mode can't be fit into the need.
Signed-off-by: Chenglin Xu
Signed-off-by: Chen Zhong
Signed-off-by: Sean Wang
---
From: Sean Wang
Some regulators such as MediaTek MT6380 has to be read in 32-bit mode.
So the patch adds pwrap_read32, rename old pwrap_read into pwrap_read16
and one function pointer is introduced for increasing flexibility allowing
the determination which mode is used by the pwrap slave detecti
From: Sean Wang
pwrap initialization is highly associated with the base SoC, so
update here for allowing pwrap_init without slave program which would be
used to those PMICs without extra encryption on bus such as MT6380.
Signed-off-by: Chenglin Xu
Signed-off-by: Chen Zhong
Signed-off-by: Sean
From: Sean Wang
fixup those warnings such as lines over 80 words and parenthesis
alignment which would be complained by checkpatch.pl.
Signed-off-by: Sean Wang
---
drivers/soc/mediatek/mtk-pmic-wrap.c | 20 +---
1 file changed, 13 insertions(+), 7 deletions(-)
diff --git a/dri
From: Chenglin Xu
Add the registers, callbacks and data structures required to make the
PMIC wrapper work on MT7622.
Signed-off-by: Chenglin Xu
Signed-off-by: Chen Zhong
Signed-off-by: Sean Wang
---
drivers/soc/mediatek/mtk-pmic-wrap.c | 180 +++
1 file change
From: Sean Wang
Some regulators such as MediaTek MT6380 also has to be written in
32-bit mode. So the patch adds pwrap_write32, rename old pwrap_write
into pwrap_write16 and one additional function pointer is introduced
for increasing flexibility allowing the determination which mode is
used by t
From: Chenglin Xu
The MT6380 is a regulator found those boards with MediaTek MT7622 SoC
It is connected as a slave to the SoC using MediaTek PMIC wrapper which
is the common interface connecting with Mediatek made various PMICs.
Signed-off-by: Chenglin Xu
Signed-off-by: Sean Wang
---
drivers/
From: Sean Wang
add dt-binding document for MediaTek MT6380 PMIC
Signed-off-by: Chenglin Xu
Signed-off-by: Sean Wang
---
.../bindings/regulator/mt6380-regulator.txt| 89 ++
1 file changed, 89 insertions(+)
create mode 100644
Documentation/devicetree/bindings/regu
From: Sean Wang
Signed-off-by: Chenglin Xu
Signed-off-by: Sean Wang
Acked-by: Rob Herring
---
Documentation/devicetree/bindings/soc/mediatek/pwrap.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/soc/mediatek/pwrap.txt
b/Documentation/devicetree/bindi
From: Sean Wang
Changes since v2:
- for patch 1/2, enhance the document as the suggestions from v2.
- for patch 3, constify the table with struct regulator_ops, also fix that
regulator doesn't have modesetting facilities it just shouldn't have the ops
and finally fix copy+paste mistake in warrant
From: Sean Wang
DT bindings shouldn't reference drivers and they should be OS-agnostic.
Signed-off-by: Sean Wang
---
Documentation/devicetree/bindings/regulator/mt6397-regulator.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/regulator/
From: Sean Wang
DT bindings shouldn't reference drivers and they should be OS-agnostic.
Signed-off-by: Sean Wang
---
Documentation/devicetree/bindings/regulator/mt6323-regulator.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/regulator/
From: Sean Wang
DT bindings shouldn't reference drivers and they should be OS-agnostic.
Signed-off-by: Sean Wang
---
Documentation/devicetree/bindings/regulator/mt6311-regulator.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/regulator/
From: Sean Wang
Changes since v1:
- rebase to Linux v4.13-rc1
There are four power domains on MediaTek MT7622 SoC which are respectively
ETHSYS for Ethernet including extra embedded switch, HIF0SYS for PCI-E and
SATA, HIF1SYS for USB and WBSYS for WIFI and Bluetooth.
Those functions could be se
From: Sean Wang
Update the binding document for enabling SCPSYS on MediaTek MT7622 SoC.
Signed-off-by: Sean Wang
Signed-off-by: Chen Zhong
---
Documentation/devicetree/bindings/soc/mediatek/scpsys.txt | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Documentation/devicetree/bindings/soc
From: Chen Zhong
Add SCPSYS power domain driver for MT7622 SoC having four power domains
which are respectively ETHSYS for Ethernet including embedded switch,
WBSYS for WIFI and Bluetooth, HIF0SYS for PCI-E and SATA, and HIF1SYS for
USB. Those functions could be selectively powered gated when the
From: Chen Zhong
Add relevant header files required for dt-bindings of SCPSYS power domain
control for all subsystems found on MT7622 SoC.
Signed-off-by: Chen Zhong
Signed-off-by: Sean Wang
---
include/dt-bindings/power/mt7622-power.h | 22 ++
1 file changed, 22 insertions
From: Sean Wang
This patchset introduces the support for MediaTek BTIF controller.
MediaTek BTIF controller is the serial interface similar to UART but it
works only as the digital device which is mainly used to communicate with
the connectivity module also called CONNSYS inside the SoC which co
From: Sean Wang
MediaTek BTIF controller is the serial interface similar to UART but it
works only as the digital device which is mainly used to communicate with
the connectivity module also called CONNSYS inside the SoC which could be
mostly found on those MediaTek SoCs with Bluetooth feature.
From: Sean Wang
Document the devicetree bindings for MediaTek BTIF controller
which could be found on MT7622 and MT7623 SoC.
Signed-off-by: Sean Wang
---
.../devicetree/bindings/serial/mtk-btif.txt| 26 ++
1 file changed, 26 insertions(+)
create mode 100644 Documen
From: Sean Wang
The bananapi-r2 board has an SD-card controller and built-in
EMMC storage so enables those devices in the devicetree. Also
cleanup nodes in alphabetical order in the patch.
Signed-off-by: Matthias Brugger
Signed-off-by: Sean Wang
Signed-off-by: Ryder Lee
---
arch/arm/boot/dts
From: Sean Wang
fixup build error from no such file as the following complains
from branch v4.12-next/dts64 in linux mediatek tree
arch/arm64/boot/dts/mediatek/mt6797.dtsi:15:44: fatal error:
dt-bindings/power/mt6797-power.h: No such file or directory
#include
Fixes: 003f5d0c3462 ("arm64: dts
From: Sean Wang
Add the support for the MT7622 reference board variant 1 from
MediaTek.
Signed-off-by: Sean Wang
---
arch/arm64/boot/dts/mediatek/Makefile| 1 +
arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 27 +++
2 files changed, 28 insertions(+)
create mod
From: Sean Wang
Changes since v4:
- redefine the two dummy clocks with the correct frequency
which is 25MHz and 280MHz respectively.
Changes since v3:
- get rid of those accepted patches
- rebased to branch v4.12-next/dts64 in Matthias' tree
- fixed uart node in dts with two clocks as describe
From: Sean Wang
add basic nodes into the mt7622.dtsi for the system
bring-up which includes ARM CPU, GIC, timer, MediaTek
UART, SYSIRQ and one reserved memory region for ATF.
Signed-off-by: Sean Wang
---
arch/arm64/boot/dts/mediatek/mt7622.dtsi | 110 +++
1 file cha
From: Sean Wang
Lockdep found an inconsistent lock state when mtk_get_stats64 is called
in user context while NAPI updates MAC statistics in softirq.
Use spin_trylock_bh/spin_unlock_bh fix following lockdep warning.
[ 81.321030] WARNING: inconsistent lock state
[ 81.325266] 4.12.0-rc1-00035
From: Sean Wang
Update binding document with adding operating-points-v2 as the required
property and the cooling level as the optional properties and adding more
examples guiding people how to use MediaTek cpufreq driver for MediaTek
SoCs.
Signed-off-by: Sean Wang
---
.../bindings/cpufreq/cpuf
From: Sean Wang
The old place is Documentation/devicetree/bindings/clock/ that would
let people hard to find how to use MediaTek cpufreq driver, so moving
it to the appropriate place as other cpufreq drivers done would be
better.
Signed-off-by: Sean Wang
---
.../bindings/{clock/mt8173-cpu-dvfs
From: Sean Wang
MT2701/MT7623 is a 32-bit ARMv7 based quad-core (4 * Cortex-A7) with
single cluster and this hardware is also compatible with the existing
driver through enabling CPU frequency feature with operating-points-v2
bindings. Also, this driver actually supports all MediaTek SoCs, the
Kc
From: Sean Wang
Changes since v1:
- drop those patches already accepted
- refine the commit messages and Kconfig dependency
- Kconfig menu entry and file name itself are updated with more
generic name to drop "MT8173" since this driver actually supports
all MediaTek SoCs.
- generate patchset agai
From: Sean Wang
I work for MediaTek on maintaining the existing MediaTek SoC whose target
to home gateway such as MT7622 and MT7623 that is reusing MT2701 related
files and will keep adding support for the following such kinds of SoCs
in the future.
Signed-off-by: Sean Wang
---
MAINTAINERS | 1
From: Sean Wang
The patchset adds support for pinctrl on MT7622 SoC.
patch 1: describe the hardware, also including the defintion for pins,
groups and function.
patch 2: add cleanup for keep drivers inside the independent menu.
patch 3/4: add support for mt7622 SoC.
The IO core found o
From: Sean Wang
Since lots of MediaTek drivers had been added, it seems slightly better
for that adding cleanup for placing MediaTek pinctrl drivers under the
independent menu as other kinds of drivers usually was done.
Signed-off-by: Sean Wang
---
drivers/pinctrl/mediatek/Kconfig | 5 +++--
1
From: Sean Wang
Add devicetree bindings for MediaTek MT7622 pinctrl driver.
Signed-off-by: Sean Wang
---
.../devicetree/bindings/pinctrl/pinctrl-mt7622.txt | 330 +
1 file changed, 330 insertions(+)
create mode 100644 Documentation/devicetree/bindings/pinctrl/pinctrl-mt762
From: Sean Wang
Add support for pinctrl on MT7622 SoC. The IO core found on the SoC has
the registers for pinctrl, pinconf and gpio mixed up in the same register
range. However, the IO core for the MT7622 SoC is completely distinct from
anyone of previous MediaTek SoCs which already had support,
From: Sean Wang
MT7530 can treat each port as either VLAN-unware port or VLAN-ware port
through the implementation of port matrix mode or port security mode on
the ingress port, respectively. On one hand, Each port has been acting as
the VLAN-unware one whenever the device is created in the initi
From: Sean Wang
In order to let MT7530 switch can recognize well those packets
having both special tag and VLAN tag, the information about
the special tag should be carried on the existing VLAN tag.
Signed-off-by: Sean Wang
---
net/dsa/tag_mtk.c | 38 +-
1 f
From: Sean Wang
The patchset extends DSA MT7530 to VLAN support through filling required
callbacks in patch 1 and merging the special tag with VLAN tag in patch 2
for allowing that the hardware can handle these packets with VID from the
CPU port.
Sean Wang (3):
net: dsa: mediatek: add VLAN sup
From: Sean Wang
I work for MediaTek and maintain SoC targeting to home gateway and
also will keep extending and testing the function from MediaTek
switch.
Signed-off-by: Sean Wang
---
MAINTAINERS | 7 +++
1 file changed, 7 insertions(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index c0edf30
From: Sean Wang
The current mmc related nodes should be falling back to MT2701
as the dt-binding defines and which has more appropriate setup
for MT7623.
Signed-off-by: Sean Wang
---
arch/arm/boot/dts/mt7623.dtsi | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/
From: Sean Wang
Fix that bananapi-r2 booting from SD-card would fail since incorrect
polarity is applied to the previous setup with GPIO_ACTIVE_HIGH.
Cc: sta...@vger.kernel.org
Fixes: 0eed8d097612 ("arm: dts: mt7623: Add SD-card and EMMC to bananapi-r2")
Signed-off-by: Sean Wang
Tested-by: Matt
From: Sean Wang
Changes since v1:
- add tag from the feedback of v1
- enhance dt-binding documentation
Just add some fixes up for the current MT7623 support
Patch 1) complement the missing dt-bindings definitions
Patch 2) pick up the proper falling back as patch 1 defines.
Patch 3) SD-card dete
From: Sean Wang
Add the devicetree binding for MT7623 SoC using MT2701 as the fallback.
Cc: devicet...@vger.kernel.org
Signed-off-by: Sean Wang
Acked-by: Rob Herring
---
Documentation/devicetree/bindings/mmc/mtk-sd.txt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/device
From: Sean Wang
Add device-tree binding for MediaTek SoC based RTC
Cc: devicet...@vger.kernel.org
Signed-off-by: Sean Wang
Acked-by: Rob Herring
---
.../devicetree/bindings/rtc/rtc-mt7622.txt | 21 +
1 file changed, 21 insertions(+)
create mode 100644 Documentati
From: Sean Wang
Changes since v2:
- Remove time extension with yr_base
- Add fixup that ensures all time fields in hardware keeping consistency
inside the mtk_rtc_get_alarm_or_time call
- Add validity for time range should be between 2001 to 2099
- Enhance comments with aligned style and explana
From: Sean Wang
This patch introduces the driver for the RTC on MT7622 SoC.
Signed-off-by: Sean Wang
---
drivers/rtc/Kconfig | 10 ++
drivers/rtc/Makefile | 1 +
drivers/rtc/rtc-mt7622.c | 422 +++
3 files changed, 433 insertions(+)
crea
From: Sean Wang
I work for MediaTek on maintaining the MediaTek SoC based RTC driver for
the existing SoCs and keep adding support for the following SoCs in the
future.
Cc: Eddie Huang
Signed-off-by: Sean Wang
---
MAINTAINERS | 3 +++
1 file changed, 3 insertions(+)
diff --git a/MAINTAINERS
From: Sean Wang
Give a better description for original MediaTek RTC driver as PMIC based
RTC in order to distinguish SoC based RTC. Also turning all words with
Mediatek to MediaTek here.
Cc: Eddie Huang
Signed-off-by: Sean Wang
Acked-by: Eddie Huang
---
drivers/rtc/Kconfig | 8
1 fi
From: Sean Wang
Fix that bananapi-r2 booting from SD-card would fail since incorrect
polarity is applied to the previous setup with GPIO_ACTIVE_HIGH.
Cc: sta...@vger.kernel.org # v4.14+
Fixes: 0eed8d097612 ("arm: dts: mt7623: Add SD-card and EMMC to bananapi-r2")
Signed-off-by: Sean Wang
---
a
From: Sean Wang
The current mmc related nodes should be falling back to MT2701
as the dt-binding defines and which has more appropriate setup
for MT7623.
Signed-off-by: Sean Wang
---
arch/arm/boot/dts/mt7623.dtsi | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/
From: Sean Wang
Add the devicetree binding for MT7623 SoC using MT2701 as the fallback.
Cc: devicet...@vger.kernel.org
Signed-off-by: Sean Wang
---
Documentation/devicetree/bindings/mmc/mtk-sd.txt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/mmc/mtk-s
From: Sean Wang
Just add some fixes up for the current MT7623 support
Patch 1) complement the missing dt-bindings definitions
Patch 2) pick up the proper falling back as patch 1 defines.
Patch 3) SD-card detection issue caused by the wrong polarity is being fixed up
Sean Wang (3):
mmc: dt-bin
701 - 766 of 766 matches
Mail list logo