[PATCH 4/4] clk: mediatek: add clocks dt-bindings required header for MT7622 SoC

2017-09-20 Thread sean.wang
From: Chen Zhong Add the required header for the entire clocks dt-bindings exported from topckgen, apmixedsys, infracfg, pericfg, ethsys, pciesys, ssusbsys and audsys which could be found on MT7622 SoC. Signed-off-by: Chen Zhong Signed-off-by:

[PATCH 1/4] dt-bindings: clock: mediatek: document clk bindings for MediaTek MT7622 SoC

2017-09-20 Thread sean.wang
From: Sean Wang This patch adds the binding documentation for apmixedsys, ethsys, hifsys, infracfg, pericfg, topckgen and audsys for MT7622. Signed-off-by: Chen Zhong Signed-off-by: Sean Wang ---

[PATCH 2/4] clk: mediatek: add the option for determining PLL source clock

2017-09-20 Thread sean.wang
From: Chen Zhong Since the previous setup always sets the PLL using crystal 26MHz, this doesn't always happen in every MediaTek platform. So the patch added flexibility for assigning extra member for determining the PLL source clock. Signed-off-by: Chen Zhong

[PATCH 0/4] add support of clock driver on MediaTek MT7622

2017-09-20 Thread sean.wang
From: Sean Wang Add clock driver required by each function driver on MT7622 SoC with adding all clocks exported from every hardware subsystem such as topckgen, apmixedsys, infracfg, pericfg , pciessys, ssusbsys, ethsys and audsys. Chen Zhong (2): clk: mediatek: add the

[PATCH] reset: mediatek: add reset controller dt-bindings required header for MT7622 SoC

2017-09-20 Thread sean.wang
From: Sean Wang Add the reset controller dt-bindings exported from infracfg, pericfg, hifsys and ethsys which could be found on MT7622 SoC. So that we can reference them from within a device-tree file. Signed-off-by: Sean Wang ---

[PATCH 0/4] rtc: mediatek: add support for SoC based RTC on MT7622

2017-09-21 Thread sean.wang
From: Sean Wang This patchset introduces support for MediaTek SoC based real time clock (RTC) Currently, the driver is already tested successfully with hwclock and wakealarm on MT7622 SoC. And it should also be workable on other similar MediaTek SoCs. And patch 3 is a

[PATCH 2/4] rtc: mediatek: add driver for RTC on MT7622 SoC

2017-09-21 Thread sean.wang
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-mediatek.c | 398

[PATCH 1/4] dt-bindings: rtc: mediatek: add bindings for MediaTek SoC based RTC

2017-09-21 Thread sean.wang
From: Sean Wang Add device-tree binding for MediaTek SoC based RTC Cc: devicet...@vger.kernel.org Signed-off-by: Sean Wang --- .../devicetree/bindings/rtc/rtc-mediatek.txt| 21 + 1 file changed, 21 insertions(+)

[PATCH 4/4] rtc: mediatek: update MAINTAINERS entry with MediaTek RTC driver

2017-09-21 Thread sean.wang
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 ---

[PATCH 3/4] rtc: mediatek: enhance the description for MediaTek PMIC based RTC

2017-09-21 Thread sean.wang
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

[PATCH] soc: mediatek: turn MTK_PMIC_WRAP into visible symbols

2017-09-21 Thread sean.wang
From: Sean Wang MTK_PMIC_WRAP is the basic and required configuration for those various MediaTek PMICs, so turning MTK_PMIC_WRAP into visible symbols easily allows users tending to have the enablement for those PMICs. Signed-off-by: Sean Wang ---

[PATCH v4 4/7] soc: mediatek: pwrap: update pwrap_init without slave programming

2017-09-21 Thread sean.wang
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

[PATCH v4 1/7] dt-bindings: arm: mediatek: add MT7622 string to the PMIC wrapper doc

2017-09-21 Thread sean.wang
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

[PATCH v4 3/7] soc: mediatek: pwrap: add pwrap_write32 for writing in 32-bit mode

2017-09-21 Thread sean.wang
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

[PATCH v4 5/7] soc: mediatek: pwrap: add MediaTek MT6380 as one slave of pwrap

2017-09-21 Thread sean.wang
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

[PATCH v4 7/7] soc: mediatek: pwrap: fixup warnings from coding style

2017-09-21 Thread sean.wang
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,

[PATCH v4 6/7] soc: mediatek: pwrap: add support for MT7622 SoC

2017-09-21 Thread sean.wang
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

[PATCH v4 0/7] Add PMIC support to MediaTek MT7622 SoC

2017-09-21 Thread sean.wang
From: Sean Wang Changes since v3 - rebase into Linux 4.14-rc1 - removed those patches already applied 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

[PATCH v4 2/7] soc: mediatek: pwrap: add pwrap_read32 for reading in 32-bit mode

2017-09-21 Thread 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

[PATCH] soc: mediatek: place Kconfig for all SoC driver under menu

2017-09-21 Thread sean.wang
From: Sean Wang Add cleanup for placing all Kconfig for all MediaTek SoC drivers under the independent menu as other SoCs vendor usually did. Signed-off-by: Sean Wang --- drivers/soc/mediatek/Kconfig | 4 1 file changed, 4 insertions(+)

[PATCH v2 1/4] dt-bindings: clock: mediatek: document clk bindings for MediaTek MT7622 SoC

2017-10-04 Thread sean.wang
From: Sean Wang This patch adds the binding documentation for apmixedsys, ethsys, hifsys, infracfg, pericfg, topckgen and audsys for MT7622. Signed-off-by: Chen Zhong Signed-off-by: Sean Wang Acked-by: Rob Herring

[PATCH v2 4/4] clk: mediatek: add clocks dt-bindings required header for MT7622 SoC

2017-10-04 Thread sean.wang
From: Chen Zhong Add the required header for the entire clocks dt-bindings exported from topckgen, apmixedsys, infracfg, pericfg, ethsys, pciesys, ssusbsys and audsys which could be found on MT7622 SoC. Signed-off-by: Chen Zhong Signed-off-by:

[PATCH v2 0/4] add support of clock driver on MediaTek MT7622

2017-10-04 Thread sean.wang
From: Sean Wang Changes since v1: - fix up the makefile target for clk-mt7622-aud.o Add clock driver required by each function driver on MT7622 SoC with adding all clocks exported from every hardware subsystem such as topckgen, apmixedsys, infracfg, pericfg , pciessys,

[PATCH v2 3/4] clk: mediatek: add clock support for MT7622 SoC

2017-10-04 Thread sean.wang
From: Sean Wang Add all supported clocks exported from every susbystem found on MT7622 SoC such as topckgen, apmixedsys, infracfg, pericfg , pciessys, ssusbsys, ethsys and audsys. Signed-off-by: Chen Zhong Signed-off-by: Sean Wang

[PATCH v2 2/4] clk: mediatek: add the option for determining PLL source clock

2017-10-04 Thread sean.wang
From: Chen Zhong Since the previous setup always sets the PLL using crystal 26MHz, this doesn't always happen in every MediaTek platform. So the patch added flexibility for assigning extra member for determining the PLL source clock. Signed-off-by: Chen Zhong

[PATCH v2] soc: mediatek: place Kconfig for all SoC drivers under menu

2017-10-04 Thread sean.wang
From: Sean Wang Add cleanup for placing all Kconfig for all MediaTek SoC drivers under the independent menu as other SoCs vendor usually did. Since the menu would be shown depending on "ARCH_MEDIATEK || COMPILE_TEST" selected and MTK_PMIC_WRAP is still safe compiling with

[PATCH v5 6/7] soc: mediatek: pwrap: add support for MT7622 SoC

2017-10-16 Thread sean.wang
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

[PATCH v5 2/7] soc: mediatek: pwrap: add pwrap_read32 for reading in 32-bit mode

2017-10-16 Thread 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

[PATCH v5 4/7] soc: mediatek: pwrap: refactor pwrap_init for the various PMIC types

2017-10-16 Thread sean.wang
From: Sean Wang pwrap initialization is highly associated with the base SoC and the target PMICs, so slight refactorization is made here for allowing pwrap_init to run on those PMICs with different capability from the previous MediaTek PMICs and the determination for the

[PATCH v5 3/7] soc: mediatek: pwrap: add pwrap_write32 for writing in 32-bit mode

2017-10-16 Thread sean.wang
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

[PATCH v5 1/7] dt-bindings: arm: mediatek: add MT7622 string to the PMIC wrapper doc

2017-10-16 Thread sean.wang
From: Sean Wang Signed-off-by: Chenglin Xu Signed-off-by: Sean Wang Acked-by: Rob Herring --- Documentation/devicetree/bindings/soc/mediatek/pwrap.txt | 6 +- 1 file changed, 5 insertions(+), 1

[PATCH v5 5/7] soc: mediatek: pwrap: add MediaTek MT6380 as one slave of pwrap

2017-10-16 Thread sean.wang
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

[PATCH v5 7/7] soc: mediatek: pwrap: fixup warnings from coding style

2017-10-16 Thread sean.wang
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,

[PATCH v5 0/7] Add PMIC support to MediaTek MT7622 SoC

2017-10-16 Thread sean.wang
From: Sean Wang Changes since v4: - for patch 1/7 and 5/7, add the description about how to bind pmic wrapper with MT6380. - for patch 3/7, add more comments explaining why additional pwrap_read is required in the pwrap_write32. - for patch 4/7 and 5/7, refactoring

[PATCH v2 0/4] rtc: mediatek: add support for SoC based RTC on MT7622

2017-10-17 Thread sean.wang
From: Sean Wang Changes since v1: - Rename to rtc-mt7622.c from rtc-mediatek.c - Use [readl,writel]_relaxed instead of __raw_* version - Remove redundant register reading in mtk_rtc_get_alarm_or_time() - Stop alarm when alarm is really expired in mtk_rtc_alarmirq() -

[PATCH v2 4/4] rtc: mediatek: update MAINTAINERS entry with MediaTek RTC driver

2017-10-17 Thread sean.wang
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 ---

[PATCH v2 1/4] dt-bindings: rtc: mediatek: add bindings for MediaTek SoC based RTC

2017-10-17 Thread sean.wang
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-mediatek.txt| 21 +

[PATCH v2 2/4] rtc: mediatek: add driver for RTC on MT7622 SoC

2017-10-17 Thread sean.wang
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 | 418

[PATCH v2 3/4] rtc: mediatek: enhance the description for MediaTek PMIC based RTC

2017-10-17 Thread sean.wang
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

[PATCH] MAINTAINERS: add entry for MediaTek PMIC LED driver

2017-09-09 Thread sean.wang
From: Sean Wang Add me as maintainers to support existing SoCs and push forward following MediaTek PMICs with LEDs to reuse the driver. Signed-off-by: Sean Wang --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH v2 1/2] dt-bindings: serial: 8250: Add MediaTek BTIF controller bindings

2017-08-19 Thread sean.wang
From: Sean Wang Document the devicetree bindings in 8250.txt for MediaTek BTIF controller which could be found on MT7622 and MT7623 SoC. Signed-off-by: Sean Wang --- Documentation/devicetree/bindings/serial/8250.txt | 3 +++ 1 file changed, 3

[PATCH v2 0/2]

2017-08-19 Thread sean.wang
From: Sean Wang Since v2: - reusing 8250_of since the original driver has almost the same logic 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

[PATCH v2 2/2] serial: 8250: of: Add new port type for MediaTek BTIF controller on MT7622/23 SoC

2017-08-19 Thread sean.wang
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 called CONNSYS inside the SoC which could be mostly found on those MediaTek SoCs with

[PATCH v6 3/7] soc: mediatek: pwrap: add pwrap_write32 for writing in 32-bit mode

2017-10-18 Thread sean.wang
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

[PATCH v6 6/7] soc: mediatek: pwrap: add common way for setup CS timing extenstion

2017-10-18 Thread sean.wang
From: Sean Wang Multiple platforms would always use their own way handling CS timing extension on the bus which leads to a little bit code duplication. Therefore, the patch groups the similar logic to handle CS timing extension into the common function which allows the

[PATCH v6 7/7] soc: mediatek: pwrap: add support for MT7622 SoC

2017-10-18 Thread sean.wang
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

[PATCH v6 0/7] Add PMIC support to MediaTek MT7622 SoC

2017-10-18 Thread sean.wang
From: Sean Wang Changes since v5: - drop the merged patch - add a patch for common way handling for setup CS timing extension - unify the comment style Changes since v4: - for patch 1/7 and 5/7, add the description about how to bind pmic wrapper with MT6380. - for patch

[PATCH v6 5/7] soc: mediatek: pwrap: add MediaTek MT6380 as one slave of pwrap

2017-10-18 Thread sean.wang
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

[PATCH v6 4/7] soc: mediatek: pwrap: refactor pwrap_init for the various PMIC types

2017-10-18 Thread sean.wang
From: Sean Wang pwrap initialization is highly associated with the base SoC and the target PMICs, so slight refactorization is made here for allowing pwrap_init to run on those PMICs with different capability from the previous MediaTek PMICs and the determination for the

[PATCH v6 2/7] soc: mediatek: pwrap: add pwrap_read32 for reading in 32-bit mode

2017-10-18 Thread 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

[PATCH v6 1/7] dt-bindings: arm: mediatek: add MT7622 string to the PMIC wrapper doc

2017-10-18 Thread sean.wang
From: Sean Wang Signed-off-by: Chenglin Xu Signed-off-by: Sean Wang Acked-by: Rob Herring --- Documentation/devicetree/bindings/soc/mediatek/pwrap.txt | 6 +- 1 file changed, 5 insertions(+), 1

[PATCH] arm64: mediatek: cleanup message for platform selection

2017-10-19 Thread sean.wang
From: Sean Wang The latest kernel tree already can support more MediaTek platforms such as MT2712 and MT7622, so additional descriptions for those platforms are added and certain cleanups are also being made here. Signed-off-by: Sean Wang ---

[PATCH v3 1/4] dt-bindings: rtc: mediatek: add bindings for MediaTek SoC based RTC

2017-10-23 Thread sean.wang
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 +

[PATCH v3 0/4] rtc: mediatek: add support for SoC based RTC on MT7622

2017-10-23 Thread sean.wang
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

[PATCH 4/4] pinctrl: mediatek: update MAINTAINERS entry with MediaTek pinctrl driver

2017-11-27 Thread sean.wang
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

[PATCH 0/4] add support of pinctrl to MT7622 SoC

2017-11-27 Thread sean.wang
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

[PATCH 3/4] pinctrl: mediatek: add pinctrl driver for MT7622 SoC

2017-11-27 Thread sean.wang
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

[PATCH 1/4] dt-bindings: pinctrl: add bindings for MediaTek MT7622 SoC

2017-11-27 Thread sean.wang
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

[PATCH 2/4] pinctrl: mediatek: cleanup for placing all drivers under the menu

2017-11-27 Thread sean.wang
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

[PATCH 3/3] arm: dts: mt7623: fix card detection issue on bananapi-r2

2017-11-29 Thread sean.wang
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")

[PATCH 0/3] Misc fixes up for MT7623 mmc

2017-11-29 Thread sean.wang
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

[PATCH 1/3] mmc: dt-bindings: add mmc support to MT7623 SoC

2017-11-29 Thread sean.wang
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

[PATCH 2/3] arm: dts: mt7623: update mmc related nodes with the appropriate fallback

2017-11-29 Thread sean.wang
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

[PATCH] ARM: mediatek: use more generic prompts for SoCs with ARMv7

2017-12-18 Thread sean.wang
From: Sean Wang Supported MediaTek SoCs with ARMv7 are not limited within MT65xx or MT81xx and thus use more generic words to prompt users as the other vendors usually use. Signed-off-by: Sean Wang --- arch/arm/mach-mediatek/Kconfig | 2 +- 1

[PATCH net] net: mediatek: setup proper state for disabled GMAC on the default

2017-12-18 Thread sean.wang
From: Sean Wang The current solution would setup fixed and force link of 1Gbps to the both GMAC on the default. However, The GMAC should always be put to link down state when the GMAC is disabled on certain target boards. Otherwise, the driver possibly receives unexpected

[PATCH v3 net-next 1/3] net: dsa: mediatek: add VLAN support for MT7530

2017-12-14 Thread sean.wang
From: Sean Wang MT7530 can treat each port as either VLAN-unaware port or VLAN-aware 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-unaware one whenever the

[PATCH v3 net-next 3/3] net: dsa: mediatek: update MAINTAINERS entry with MediaTek switch driver

2017-12-14 Thread sean.wang
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 Reviewed-by: Andrew Lunn --- MAINTAINERS | 7

[PATCH v3 net-next 0/3] add VLAN support to DSA MT7530

2017-12-14 Thread sean.wang
From: Sean Wang Changes sicne v2: update to the latest code base from net-next and fix up all building errors with -Werror. Changes since v1: - fix up the typo - prefer ordering declarations longest to shortest - update that vlan_prepare callback should not change any

[PATCH v3 net-next 2/3] net: dsa: mediatek: combine MediaTek tag with VLAN tag

2017-12-14 Thread sean.wang
From: Sean Wang In order to let MT7530 switch can recognize well those egress packets having both special tag and VLAN tag, the information about the special tag should be carried on the existing VLAN tag. On the other hand, it's unnecessary for extra handling for ingress

[PATCH v2 net-next 1/3] net: dsa: mediatek: add VLAN support for MT7530

2017-12-12 Thread sean.wang
From: Sean Wang MT7530 can treat each port as either VLAN-unaware port or VLAN-aware 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-unaware one whenever the

[PATCH v2 net-next 3/3] net: dsa: mediatek: update MAINTAINERS entry with MediaTek switch driver

2017-12-12 Thread sean.wang
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 Reviewed-by: Andrew Lunn --- MAINTAINERS | 7

[PATCH v2 net-next 0/3] add VLAN support to DSA MT7530

2017-12-12 Thread sean.wang
From: Sean Wang Changes since v1: - fix up the typo - prefer ordering declarations longest to shortest - update that vlan_prepare callback should not change any state - use lower case letter for function naming The patchset extends DSA MT7530 to VLAN support through

[PATCH v2 net-next 2/3] net: dsa: mediatek: combine MediaTek tag with VLAN tag

2017-12-12 Thread sean.wang
From: Sean Wang In order to let MT7530 switch can recognize well those egress packets having both special tag and VLAN tag, the information about the special tag should be carried on the existing VLAN tag. On the other hand, it's unnecessary for extra handling for ingress

[PATCH net 1/2] dt-bindings: net: mediatek: add condition to property mediatek,pctl

2017-12-20 Thread sean.wang
From: Sean Wang The property "mediatek,pctl" is only required for SoCs such as MT2701 and MT7623, so adding a few words for stating the condition. Signed-off-by: Sean Wang --- Documentation/devicetree/bindings/net/mediatek-net.txt | 2 +- 1 file

[PATCH net 2/2] net: mediatek: remove superfluous pin setup for MT7622 SoC

2017-12-20 Thread sean.wang
From: Sean Wang Remove superfluous pin setup to get out of accessing invalid I/O pin registers because the way for pin configuring tends to be different from various SoCs and thus it should be better being managed and controlled by the pinctrl driver which MT7622 already

[PATCH 1/2] clk: mediatek: group drivers under indpendent menu

2017-12-19 Thread sean.wang
From: Sean Wang Getting much MediaTek clock driver have been added to CCF, so it's better adding the cleanup for grouping drivers under the independent menu to simplify configuration selection. In addition, really trivial fixups for typos are added in the same patch.

[PATCH 2/2] clk: mediatek: fixup test-building of MediaTek clock drivers

2017-12-19 Thread sean.wang
From: Sean Wang Let the build system looking into the directiory where the clock drivers resides for the COMPILE_TEST alternative dependency allows test-building the drivers. Signed-off-by: Sean Wang --- drivers/clk/Makefile | 2 +- 1 file

[PATCH net-next 1/3] net: dsa: mediatek: add VLAN support for MT7530

2017-12-06 Thread sean.wang
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

[PATCH net-next 2/3] net: dsa: mediatek: combine MediaTek tag with VLAN tag

2017-12-06 Thread sean.wang
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

[PATCH v2 0/3] Misc fixes up for MT7623 mmc

2017-12-06 Thread sean.wang
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

[PATCH v2 1/3] mmc: dt-bindings: add mmc support to MT7623 SoC

2017-12-06 Thread sean.wang
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 ++

[PATCH v2 3/3] arm: dts: mt7623: fix card detection issue on bananapi-r2

2017-12-06 Thread sean.wang
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:

[PATCH v2 2/3] arm: dts: mt7623: update mmc related nodes with the appropriate fallback

2017-12-06 Thread sean.wang
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

[PATCH net-next 0/3] add VLAN support to DSA MT7530

2017-12-06 Thread sean.wang
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:

[PATCH net-next 3/3] net: dsa: mediatek: update MAINTAINERS entry with MediaTek switch driver

2017-12-06 Thread sean.wang
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(+)

[PATCH v2 2/4] pinctrl: mediatek: cleanup for placing all drivers under the menu

2017-12-11 Thread sean.wang
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

[PATCH v2 3/4] pinctrl: mediatek: add pinctrl driver for MT7622 SoC

2017-12-11 Thread sean.wang
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

[PATCH v2 1/4] dt-bindings: pinctrl: add bindings for MediaTek MT7622 SoC

2017-12-11 Thread sean.wang
From: Sean Wang Add devicetree bindings for MediaTek MT7622 pinctrl driver. Signed-off-by: Sean Wang Reviewed-by: Biao Huang --- .../devicetree/bindings/pinctrl/pinctrl-mt7622.txt | 351 + 1 file

[PATCH v2 0/4] add support of pinctrl to MT7622 SoC

2017-12-11 Thread sean.wang
From: Sean Wang Changes since v1: - add changes for the suggestion in v1. - fix up the names for pin 14, 15, 71, 72, 93 and 94. - add function "watchdog". - change pin groups used by ethernet, i2s, led, pcie, spic, tdm and watchdog for refining the naming and reflecting

[PATCH v2 4/4] pinctrl: mediatek: update MAINTAINERS entry with MediaTek pinctrl driver

2017-12-11 Thread sean.wang
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

[PATCH v2 3/6] dt-bindings: clock: mediatek: add entry for Mali-450 node to refer

2018-04-27 Thread sean.wang
From: Sean Wang Just add binding for a required clock referenced by Mali-450 on MT7623 or MT2701 SoC. Cc: devicet...@vger.kernel.org Signed-off-by: Sean Wang --- include/dt-bindings/clock/mt2701-clk.h | 4 1 file changed, 4 insertions(+)

[PATCH v2 5/6] clk: mediatek: add g3dsys support for MT2701 and MT7623

2018-04-27 Thread sean.wang
From: Sean Wang Add clock driver support for g3dsys on MT2701 and MT7623, which is providing essential clock gate and reset controller to Mali-450. Signed-off-by: Sean Wang --- drivers/clk/mediatek/Kconfig | 6 +++

[PATCH v2 6/6] arm: dts: mt7623: add Mali-450 and related device nodes

2018-04-27 Thread sean.wang
From: Sean Wang Add nodes for Mali-450 device, g3dsys device providing required clock gate and reset control and larb3 offering an arbiter through iommu for controlling access to external memory requested from Mali-450. Signed-off-by: Sean Wang

[PATCH v2 0/6] add Mali-450 support to MT7623 SoC

2018-04-27 Thread sean.wang
From: Sean Wang v2: changes from v1 to v2: - Add Reviewed-by tag from v1 result - Split out the changes for dt-bindings .h from the changes for driver - Fix up the typo in g3dsys dt-bindings documentation v1: Hi, The series adds a required

[PATCH v2 1/6] dt-bindings: gpu: mali-utgard: add mediatek,mt7623-mali compatible

2018-04-27 Thread sean.wang
From: Sean Wang The MediaTek MT7623 SoC contains a Mali-450, so add a compatible for it and define its own vendor-specific properties. Reviewed-by: Rob Herring Signed-off-by: Sean Wang ---

[PATCH v2 2/6] dt-bindings: clock: mediatek: add g3dsys bindings

2018-04-27 Thread sean.wang
From: Sean Wang Add bindings to g3dsys providing necessary clock and reset control to Mali-450. Signed-off-by: Sean Wang --- .../bindings/arm/mediatek/mediatek,g3dsys.txt | 30 ++ 1 file changed, 30 insertions(+) create

[PATCH v2 4/6] dt-bindings: reset: mediatek: add entry for Mali-450 node to refer

2018-04-27 Thread sean.wang
From: Sean Wang Just add binding for a required reset referenced by Mali-450 on MT7623 or MT2701 SoC. Cc: devicet...@vger.kernel.org Signed-off-by: Sean Wang --- include/dt-bindings/reset/mt2701-resets.h | 3 +++ 1 file changed, 3 insertions(+)

[PATCH] soc: mediatek: remove unneeded semicolon

2018-05-09 Thread sean.wang
From: Sean Wang Fix up drivers/soc/mediatek/mtk-scpsys.c:255:2-3: Unneeded semicolon accidently being added in commit f9e2f65dd561 ("soc: mediatek: add a fixed wait for SRAM stable"). Fixes: f9e2f65dd561 ("soc: mediatek: add a fixed wait for SRAM stable") Reported-by:

[PATCH v1 0/7] add external interrupt support to MT7622 pinctrl

2018-05-20 Thread sean.wang
From: Sean Wang The series is to add external interrupt support to MT7622 pinctrl. Before we can freely do that in pinctrl-mt7622.c with patch 3, a refactor work has to be done with patch 2 to split EINT-related code from a specific driver and then allows pintrl-mt7622.c

[PATCH v1 6/7] MAINTAINERS: update entry for PIN CONTROLLER - MEDIATEK

2018-05-20 Thread sean.wang
From: Sean Wang Add new files for the entry Signed-off-by: Sean Wang --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9051a9c..7f3cced 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11193,6

<    1   2   3   4   5   6   7   8   9   10   >