[PATCH net-next v3 2/4] net-next: mediatek: add platform data to adapt into various hardware

2017-07-31 Thread sean.wang
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

[PATCH net-next v3 3/4] net-next: mediatek: add support for MediaTek MT7622 SoC

2017-07-31 Thread sean.wang
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)

[PATCH net-next v3 4/4] MAINTAINERS: add Sean/Nelson as MediaTek ethernet maintainers

2017-07-31 Thread sean.wang
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

[PATCH net-next v3 1/4] dt-bindings: net: mediatek: add support for MediaTek MT7623 and MT7622 SoC

2017-07-31 Thread sean.wang
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

[PATCH net-next v3 0/4] net-next: mediatek: add support for ethernet on MT7622 SoC

2017-07-31 Thread sean.wang
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

[PATCH v3 1/4] dt-bindings: soc: update the binding document for SCPSYS on MediaTek MT7622 SoC

2017-08-07 Thread sean.wang
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/

[PATCH v3 3/4] soc: mediatek: add header files required for MT7622 SCPSYS dt-binding

2017-08-07 Thread sean.wang
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

[PATCH v3 0/4] add support of SCPSYS power domain for MediaTek MT7622

2017-08-07 Thread sean.wang
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

[PATCH v3 4/4] soc: mediatek: add SCPSYS power domain driver for MediaTek MT7622 SoC

2017-08-07 Thread sean.wang
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

[PATCH v3 2/4] soc: mediatek: reduce code duplication of scpsys_probe across all SoCs

2017-08-07 Thread sean.wang
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/

[PATCH 0/2] add cpufreq support to MT7622

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

[PATCH 2/2] cpufreq: mediatek: add support of cpufreq to MT7622 SoC

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

[PATCH 1/2] cpufreq: mediatek: add cleanups with the more generic naming

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

[PATCH v2] dt-bindings: watchdog: mediatek: add support for MediaTek MT7623 and MT7622 SoC

2017-08-14 Thread sean.wang
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.

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

2017-08-15 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 Signed-off-by: Chen Zhong Signed-off-by: Sean Wang ---

[PATCH v3 4/9] soc: mediatek: pwrap: add pwrap_read32 for reading in 32-bit mode

2017-08-15 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 by the pwrap slave detecti

[PATCH v3 6/9] soc: mediatek: pwrap: update pwrap_init without slave programming

2017-08-15 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 Signed-off-by: Chen Zhong Signed-off-by: Sean

[PATCH v3 9/9] soc: mediatek: pwrap: fixup warnings from coding style

2017-08-15 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, 13 insertions(+), 7 deletions(-) diff --git a/dri

[PATCH v3 8/9] soc: mediatek: pwrap: add support for MT7622 SoC

2017-08-15 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 --- drivers/soc/mediatek/mtk-pmic-wrap.c | 180 +++ 1 file change

[PATCH v3 5/9] soc: mediatek: pwrap: add pwrap_write32 for writing in 32-bit mode

2017-08-15 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 determination which mode is used by t

[PATCH v3 3/9] regulator: mt6380: Add support for MT6380

2017-08-15 Thread sean.wang
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/

[PATCH v3 2/9] dt-bindings: regulator: Add document for MediaTek MT6380 regulator

2017-08-15 Thread sean.wang
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

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

2017-08-15 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 a/Documentation/devicetree/bindings/soc/mediatek/pwrap.txt b/Documentation/devicetree/bindi

[PATCH v3 0/9] Add PMIC support to MediaTek MT7622 SoC

2017-08-15 Thread sean.wang
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

[PATCH 3/3] dt-bindings: regulator: add fixes with MT6397 dt-bindings shouldn't reference driver

2017-08-15 Thread sean.wang
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/

[PATCH 2/3] dt-bindings: regulator: add fixes with MT6323 dt-bindings shouldn't reference driver

2017-08-15 Thread sean.wang
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/

[PATCH 1/3] dt-bindings: regulator: add fixes with MT6311 dt-bindings shouldn't reference driver

2017-08-15 Thread sean.wang
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/

[PATCH v2 0/3] add support of SCPSYS power domain for MediaTek MT7622

2017-08-01 Thread sean.wang
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

[PATCH v2 1/3] dt-bindings: soc: update the binding document for SCPSYS on MediaTek MT7622 SoC

2017-08-01 Thread sean.wang
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

[PATCH v2 3/3] soc: mediatek: add SCPSYS power domain driver for MediaTek MT7622 SoC

2017-08-01 Thread sean.wang
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

[PATCH v2 2/3] soc: mediatek: add header files required for MT7622 SCPSYS dt-binding

2017-08-01 Thread sean.wang
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

[PATCH 0/2] serial: 8250: add support for MediaTek BTIF controller

2017-08-02 Thread sean.wang
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

[PATCH 2/2] tty: serial: 8250: Add MediaTek BTIF controller on MT7622 and MT7623 SoC

2017-08-02 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 also called CONNSYS inside the SoC which could be mostly found on those MediaTek SoCs with Bluetooth feature.

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

2017-08-02 Thread sean.wang
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

[PATCH v3] arm: dts: mt7623: Add SD-card and EMMC to bananapi-r2

2017-08-03 Thread sean.wang
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

[PATCH] arm64: dts: mt6797: fixup build breakage from no such file

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

[PATCH v5 2/2] arm64: dts: mt7622: add dts file for MT7622 reference board variant 1

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

[PATCH v5 0/2] Add Basic SoC support for MT7622

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

[PATCH v5 1/2] arm64: dts: mt7622: add basic nodes to the mt7622.dtsi file

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

[PATCH] net: ethernet: mediatek: fixed deadlock captured by lockdep

2017-07-03 Thread sean.wang
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

[PATCH v2 3/3] dt-bindings: cpufreq: enhance MediaTek cpufreq dt-binding document

2017-07-04 Thread sean.wang
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

[PATCH v2 2/3] dt-bindings: cpufreq: move MediaTek cpufreq dt-bindings document to proper place

2017-07-04 Thread sean.wang
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

[PATCH v2 1/3] cpufreq: mediatek: Add support of cpufreq to MT2701/MT7623 SoC

2017-07-04 Thread sean.wang
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

[PATCH v2 0/3] some fixups for MediaTek cpufreq driver

2017-07-04 Thread sean.wang
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

[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 Wang --- MAINTAINERS | 1

[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 SoC. The IO core found o

[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 --- drivers/pinctrl/mediatek/Kconfig | 5 +++-- 1

[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 Documentation/devicetree/bindings/pinctrl/pinctrl-mt762

[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 which already had support,

[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 device is created in the initi

[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 | 38 +- 1 f

[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: dsa: mediatek: add VLAN sup

[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(+) diff --git a/MAINTAINERS b/MAINTAINERS index c0edf30

[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 insertions(+), 2 deletions(-) diff --git a/arch/arm/

[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: Sean Wang Tested-by: Matt

[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 defines. Patch 3) SD-card dete

[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 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/device

[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 + 1 file changed, 21 insertions(+) create mode 100644 Documentati

[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 aligned style and explana

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

2017-10-23 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 | 422 +++ 3 files changed, 433 insertions(+) crea

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

2017-10-23 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 --- MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MAINTAINERS

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

2017-10-23 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 Acked-by: Eddie Huang --- drivers/rtc/Kconfig | 8 1 fi

[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") Signed-off-by: Sean Wang --- a

[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 insertions(+), 2 deletions(-) diff --git a/arch/arm/

[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 --git a/Documentation/devicetree/bindings/mmc/mtk-s

[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 Sean Wang (3): mmc: dt-bin

<    3   4   5   6   7   8