Re: [PATCH] dt-bindings: watchdog: update bindings for MT7629 SoC

2018-12-11 Thread Ryder Lee
Hi Guenter, Just a gentle ping! On Mon, 2018-11-12 at 17:37 -0600, Rob Herring wrote: > On Wed, 7 Nov 2018 15:10:36 +0800, Ryder Lee wrote: > > This updates dt-binding documentation for MT7629 SoC > > > > Signed-off-by: Ryder Lee > > --- > > Documentation

[PATCH 1/2] arm64: dts: mt7622: fix console output issue on rfb1

2018-11-06 Thread Ryder Lee
The issue was introduced by Kernel CI: https://kernelci.org/boot/id/5bbdcbad59b5146fc5b43592/ Fix this by using a 'stdout-path' property that points to the device. Fixes: c0d9f9ad4f76 ("arm64: dts: mt7622: add earlycon to mt7622-rfb1 board") Cc: sta...@vger.kernel.org Sign

[PATCH 2/2] arm64: dts: mt7622: fix console output issue on BPI-R64 board

2018-11-06 Thread Ryder Lee
Fix this by using a 'stdout-path' property that points to the device. Fixes: 0b6286dd96c0 ("arm64: dts: mt7622: add bananapi BPI-R64 board") Cc: sta...@vger.kernel.org Signed-off-by: Ryder Lee --- arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts | 7 ++- 1 file c

[PATCH] dt-bindings: watchdog: update bindings for MT7629 SoC

2018-11-06 Thread Ryder Lee
This updates dt-binding documentation for MT7629 SoC Signed-off-by: Ryder Lee --- Documentation/devicetree/bindings/watchdog/mtk-wdt.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt b/Documentation/devicetree/bindings/watchdog/mtk

[PATCH] dt-bindings: rng: update bindings for MT7629 SoC

2018-11-06 Thread Ryder Lee
This updates bindings for MT7629 RNG driver. Signed-off-by: Ryder Lee --- Documentation/devicetree/bindings/rng/mtk-rng.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/rng/mtk-rng.txt b/Documentation/devicetree/bindings/rng/mtk

Re: [PATCH v7 0/9] PCI: mediatek: fixup find_port, enable_msi and add PM, module support

2018-10-14 Thread Ryder Lee
nd MT7622 > PCI: mediatek: Save the GIC IRQ in mtk_pcie_port > PCI: mediatek: Add loadable kernel module support > > drivers/pci/controller/Kconfig | 2 +- > drivers/pci/controller/pcie-mediatek.c | 319 > + > 2 files changed, 204 insertions(+), 117 deletions(-) You forgot to add my Acked-by tags in v7. Acked-by: Ryder Lee for the series. Thanks.

[PATCH 2/2] dt-bindings: arm: mediatek: document clk bindings for MT7629

2018-11-05 Thread Ryder Lee
This patch adds the binding documentation for apmixedsys, infracfg, pciesys, pericfg, topckgen, ethsys, sgmiisys and ssusbsys for MT7629. Signed-off-by: Ryder Lee --- Documentation/devicetree/bindings/arm/mediatek/mediatek,apmixedsys.txt | 1 + Documentation/devicetree/bindings/arm/mediatek

[PATCH 1/2] pinctrl: mediatek: add pinctrl support for MT7629 SoC

2018-11-05 Thread Ryder Lee
This adds MT7629 pinctrl driver based on MediaTek pinctrl-moore core. Cc: Sean Wang Signed-off-by: Ryder Lee --- drivers/pinctrl/mediatek/Kconfig | 6 + drivers/pinctrl/mediatek/Makefile | 1 + drivers/pinctrl/mediatek/pinctrl-mt7629.c | 512

[PATCH 2/2] dt-bindings: pinctrl: update bindings for MT7629 SoC

2018-11-05 Thread Ryder Lee
This updates bindings for MT7629 pinctrl driver. Cc: Sean Wang Signed-off-by: Ryder Lee --- .../devicetree/bindings/pinctrl/pinctrl-mt7622.txt | 128 + 1 file changed, 128 insertions(+) diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-mt7622.txt b

[PATCH 1/2] clk: mediatek: add clock support for MT7629 SoC

2018-11-05 Thread Ryder Lee
Add all supported clocks exported from every susbystem found on MT7629 SoC. Signed-off-by: Wenzhen Yu Signed-off-by: Ryder Lee --- drivers/clk/mediatek/Kconfig | 23 ++ drivers/clk/mediatek/Makefile | 3 + drivers/clk/mediatek/clk-mt7629-eth.c | 159 drivers/clk

[PATCH v1 1/2] arm64: dts: mt7622: add some misc device nodes

2018-07-16 Thread Ryder Lee
Add some misc nodes support - timer and ARM CCI-400. Signed-off-by: Ryder Lee --- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 36 1 file changed, 36 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi

[PATCH v1 2/2] arm64: dts: mt7622: update a clock property for UART0

2018-07-16 Thread Ryder Lee
The input clock of UART0 should be CLK_PERI_UART0_PD. Fixes: 13f36c326cef ("arm64: dts: mt7622: turn uart0 clock to real ones") Signed-off-by: Ryder Lee --- change since v1: - add Fixes tag. --- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletio

Re: [PATCH 2/2] arm64: dts: mt7622: update a clock property for UART0

2018-07-16 Thread Ryder Lee
Hi, On Mon, 2018-07-16 at 15:55 +0200, Matthias Brugger wrote: > Hi Ryder, > > On 10/07/18 09:55, Ryder Lee wrote: > > The input clock of UART0 should be CLK_PERI_UART0_PD. > > > > Signed-off-by: Ryder Lee > > Can you provide a "Fixes" tag with the

Re: [PATCH v6 0/2] PCI: mediatek: Fixups for the IRQ handle routine and MT7622's class code

2018-04-29 Thread Ryder Lee
D and class type for MT7622 > PCI: mediatek: Using chained IRQ to setup IRQ handle > > drivers/pci/host/pcie-mediatek.c | 220 > +++++++ > include/linux/pci_ids.h | 2 + > 2 files changed, 133 insertions(+), 89 deletions(-) Acked-by: Ryder Lee for the series. Thanks

Re: [PATCH] spi: mediatek: Use of_device_get_match_data()

2018-04-30 Thread Ryder Lee
Hi Mark, Is it okay with you? On Mon, 2018-04-16 at 10:33 +0800, Ryder Lee (李庚?V) wrote: > The usage of of_device_get_match_data() reduce the code size a bit. > > Also, the only way to call mtk_spi_probe() is to match an entry in > mtk_spi_of_match[], so of_id cannot be NULL. >

[PATCH] ASoC: mediatek: add the .probe() callback in mt2701_afe_pcm_dai_component

2018-04-30 Thread Ryder Lee
: Ryder Lee --- sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 31 ++ 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c b/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c index d6eeb4c..828d11c 100644 --- a/sound/soc

[PATCH 3/6] ASoC: mediatek: Add MTK_STREAM_NUM to mtk-base-afe.h

2018-04-24 Thread Ryder Lee
Add MTK_STREAM_NUM to common header and modify related stuff so that the other SoCs can reuse it. Signed-off-by: Ryder Lee Reviewed-by: Garlic Tseng --- sound/soc/mediatek/common/mtk-base-afe.h | 2 + sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.c | 15 +++-- sound/soc/mediatek

[PATCH 1/6] ASoC: mediatek: use snd_soc_dai_get_drvdata() to get the private data

2018-04-24 Thread Ryder Lee
Reduce the boilerplate code to retrieve the private data. No functional change intended. Signed-off-by: Ryder Lee Reviewed-by: Garlic Tseng --- sound/soc/mediatek/common/mtk-afe-fe-dai.c | 20 +++ sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 86 +++--- sound/soc

[PATCH 2/6] ASoC: mediatek: simplify the control logic of MT2701 I2S

2018-04-24 Thread Ryder Lee
This patch adjusts the mt2701_afe_i2s_ops to simplify the control logic of the I2S path. Signed-off-by: Ryder Lee Reviewed-by: Garlic Tseng --- sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.c | 39 sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.h | 13 ++- sound/soc/mediatek

[PATCH 6/6] ASoC: mediatek: switch to SPDX license tag

2018-04-24 Thread Ryder Lee
Add SPDX identifiers to all remaining files in sound/soc/mediatek/ Signed-off-by: Ryder Lee --- sound/soc/mediatek/Makefile | 1 + sound/soc/mediatek/common/Makefile | 14 +- sound/soc/mediatek/common/mtk-afe-fe-dai.c | 10

[PATCH 4/6] ASoC: mediatek: add MT7622 AFE support

2018-04-24 Thread Ryder Lee
ract could help in the long run. Cc: Jia Zeng Signed-off-by: Ryder Lee Reviewed-by: Garlic Tseng --- sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.c | 2 +- sound/soc/mediatek/mt2701/mt2701-afe-common.h | 11 +++-- sound/soc/mediatek/mt2701/mt2701-afe-pcm.c| 49 ++--

[PATCH 5/6] ASoC: mediatek: add MT7622 AFE compatible in documentation

2018-04-24 Thread Ryder Lee
Add support for MT7622 AFE which shares the same binding with MT2701. Cc: devicet...@vger.kernel.org Signed-off-by: Ryder Lee --- Documentation/devicetree/bindings/sound/mt2701-afe-pcm.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings

Re: [v2 PATCH] PCI: mediatek: get optional clock by devm_clk_get_optional()

2019-04-01 Thread Ryder Lee
On Sun, 2019-03-31 at 20:41 +0800, Chunfeng Yun wrote: > Use devm_clk_get_optional() to get optional clock > > Cc: Ryder Lee > Cc: Honghui Zhang > Signed-off-by: Chunfeng Yun Acked-by: Ryder Lee > --- > v2: > 1. cc Ryder and Honghui > 2. fix up omitted '

[PATCH] mt76: change the retun type of mt76_dma_attach()

2019-02-10 Thread Ryder Lee
There is no need to retun 0 in mt76_dma_attach(), so switch it to void. Signed-off-by: Ryder Lee --- drivers/net/wireless/mediatek/mt76/dma.c | 3 +-- drivers/net/wireless/mediatek/mt76/dma.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/mediatek

Re: [PATCH] mt76: change the retun type of mt76_dma_attach()

2019-02-11 Thread Ryder Lee
On Mon, 2019-02-11 at 11:38 +0300, Sergei Shtylyov wrote: > Hello! > > On 11.02.2019 5:13, Ryder Lee wrote: > > > There is no need to retun 0 in mt76_dma_attach(), so switch it to void. >^ r missing :-) > > > > Signed-off-by: Ryder Le

[PATCH v2] mt76: fix some checkpatch warnings

2019-08-20 Thread Ryder Lee
This fixes the following checkpatch warnings: CHECK: Alignment should match open parenthesis CHECK: No space is necessary after a cast Signed-off-by: Ryder Lee --- Changes since v2: remove false positive checkpatch warnings. Changes since v1: none. --- drivers/net/wireless/mediatek/mt76/agg

Re: [PATCH V5 0/8] make mt7623 clock of hdmi stable

2019-02-19 Thread Ryder Lee
drivers/gpu/drm/mediatek/mtk_hdmi_phy.c| 34 > drivers/gpu/drm/mediatek/mtk_hdmi_phy.h| 7 +--- > drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c | 56 > +++--- > drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c | 23 +++++++ > 8 files changed, 102 insertions(+), 52 deletions(-) > I could see the Debian Gnome desktop on my MT7623 R2. Tested-by: Ryder Lee

Re: [v1,0/2] PCI: mediatek: Add support for MT7629

2019-01-21 Thread Ryder Lee
support for MT7629 > > .../devicetree/bindings/pci/mediatek-pcie.txt | 1 + > drivers/pci/controller/pcie-mediatek.c| 28 +++ > include/linux/pci_ids.h | 1 + > 3 files changed, 30 insertions(+) > Acked-by: Ryder Lee

Re: PCI: mediatek: Remove MSI inner domain

2019-01-21 Thread Ryder Lee
On Mon, 2019-01-21 at 19:59 +0800, Jianjun Wang wrote: > There is no need to create the inner domain as a parent for MSI domian, > some feature has been implemented by MSI framework. > > Remove the inner domain and its irq chip, it will be more closer to the > hardware implementation. > > Signed-

Re: [PATCH v1] pinctrl: mediatek: improve Kconfig dependencies

2019-01-22 Thread Ryder Lee
CC: sta...@vger.kernel.org On Fri, 2018-12-21 at 18:17 +0800, Linus Walleij wrote: > On Thu, Dec 13, 2018 at 3:28 AM Ryder Lee wrote: > > > Remove prompts to make all pinctrl cores to non-visible symbols and > > make sure the target SoCs would be coupled with the corre

[PATCH 1/7] Revert "ARM: mediatek: add MT7623a smp bringup code"

2019-01-28 Thread Ryder Lee
This reverts commit 3b99ab7deca1e5f4229b4bdecd005d71e22cfc60. The compatible "mediatek,mt7623a" is useless, so remove it. Signed-off-by: Ryder Lee --- arch/arm/mach-mediatek/mediatek.c | 2 -- arch/arm/mach-mediatek/platsmp.c | 1 - 2 files changed, 3 deletions(-) diff --git a/arc

[PATCH 2/7] dt-bindings: arm: mediatek: remove unused "mediatek,mt7623a"

2019-01-28 Thread Ryder Lee
As we fallback to use "mediatek,mt7623" for MT7623a, remove unused root node property "mediatek,mt7623a" in the document. Signed-off-by: Ryder Lee --- Documentation/devicetree/bindings/arm/mediatek.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff -

[PATCH 5/7] dt-bindings: interrupt-controller: update bindings for MT7623

2019-01-28 Thread Ryder Lee
This adds missing bindings for MT7623 sysirq. Signed-off-by: Ryder Lee --- .../devicetree/bindings/interrupt-controller/mediatek,sysirq.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/interrupt-controller/mediatek,sysirq.txt b/Documentation

[PATCH 3/7] dt-bindings: arm: mediatek: add support for MT7622 BPI-R64 and MT7629 RFB

2019-01-28 Thread Ryder Lee
Update binding document for MT7622 BPI-R64 and MT7629 reference board. Signed-off-by: Ryder Lee --- Documentation/devicetree/bindings/arm/mediatek.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.txt b/Documentation/devicetree

[PATCH 4/7] dt-bindings: mediatek: update bindings for MT7629 SoC

2019-01-28 Thread Ryder Lee
This updates bindings for MT7629 SoC, which includes very basic items such as system timer, UART, sysirq and scpsys unit. Signed-off-by: Ryder Lee --- .../devicetree/bindings/interrupt-controller/mediatek,sysirq.txt | 5 +++-- Documentation/devicetree/bindings/serial/mtk-uart.txt

[PATCH 6/7] arm: mediatek: add MT7629 smp bring up code

2019-01-28 Thread Ryder Lee
Add support for booting secondary CPUs on MT7629. Signed-off-by: Ryder Lee --- arch/arm/mach-mediatek/Kconfig| 4 arch/arm/mach-mediatek/mediatek.c | 1 + arch/arm/mach-mediatek/platsmp.c | 1 + 3 files changed, 6 insertions(+) diff --git a/arch/arm/mach-mediatek/Kconfig b/arch/arm

[PATCH 7/7] arm: dts: mediatek: add basic support for MT7629 SoC

2019-01-28 Thread Ryder Lee
This adds basic support for MT7629 reference board. Signed-off-by: Ryder Lee --- The I2C node depends on https://patchwork.kernel.org/patch/10772837/ The PCIe node depends on https://patchwork.kernel.org/patch/10773637/ --- arch/arm/boot/dts/Makefile| 1 + arch/arm/boot/dts

[PATCH v2 1/3] dt-bindings: mtd: mtk-quadspi: update bindings for MT7629 SoC

2019-01-15 Thread Ryder Lee
This updates bindings for the MT7629 SPI-NOR controller. Signed-off-by: Ryder Lee Reviewed-by: Rob Herring --- Changes since v2: none. Changes since v1: add a Reviewed-by tag. --- Documentation/devicetree/bindings/mtd/mtk-quadspi.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion

[PATCH v2 2/3] mtd: spi-nor: mtk-quadspi: add SNOR_HWCAPS_READ to spi_nor_hwcaps mask

2019-01-15 Thread Ryder Lee
From: Guochun Mao SNOR_HWCAPS_READ should be supported by this controller, so add this flag to spi_nor_hwcaps mask. Signed-off-by: Guochun Mao Signed-off-by: Ryder Lee --- Changes since v2: Revise commit msg. Changes since v1: none. --- drivers/mtd/spi-nor/mtk-quadspi.c | 3 ++- 1 file

[PATCH v2 3/3] mtd: spi-nor: mtk-quadspi: rename config to a common one

2019-01-15 Thread Ryder Lee
The quadspi is a generic communication interface which could be shared with other MediaTek SoCs. Hence rename it to a common one. Signed-off-by: Ryder Lee --- Changes since v2: -rebase to v5.0-rc1. -sort the config in an alphabetical order. Changes since v1: none. --- drivers/mtd/spi-nor

Re: [PATCH 1/5] pwm: mediatek: add a property "mediatek,num-pwms"

2019-01-17 Thread Ryder Lee
On Mon, 2019-01-14 at 12:16 +0100, Matthias Brugger wrote: > > On 14/01/2019 09:21, Ryder Lee wrote: > > This adds a property "mediatek,num-pwms" to avoid having an endless > > list of compatibles with no other differences for the same driver. >

[PATCH v1 4/5] arm: dts: mt7623: add a property "mediatek,num-pwms" for PWM

2019-01-17 Thread Ryder Lee
This add a property "mediatek,num-pwms" for PWM controller. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi index 0253691..9d59c28 100644 --- a/arch/arm/boot/

[PATCH v1 2/5] dt-bindings: pwm: add a property "mediatek,num-pwms"

2019-01-17 Thread Ryder Lee
This adds a property "mediatek,num-pwms" in example so that we could set the number of PWM channels via device tree. Signed-off-by: Ryder Lee Reviewed-by: Matthias Brugger --- Changes since v1: add a Reviewed-by tag. --- Documentation/devicetree/bindings/pwm/pwm-mediatek.txt | 2

[PATCH v1 1/5] pwm: mediatek: add a property "mediatek,num-pwms"

2019-01-17 Thread Ryder Lee
This adds a property "mediatek,num-pwms" to avoid having an endless list of compatibles with no differences for the same driver. Thus, the driver should have backwards compatibility to older DTs. Signed-off-by: Ryder Lee --- Changes since v1: add some checks for backwards com

[PATCH v1 5/5] dt-bindings: pwm: update bindings for MT7629 SoC

2019-01-17 Thread Ryder Lee
This updates bindings for MT7629 pwm controller. Signed-off-by: Ryder Lee Reviewed-by: Matthias Brugger --- Changes since v1: add a Reviewed-by tag. --- Documentation/devicetree/bindings/pwm/pwm-mediatek.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings

[PATCH v1 3/5] arm64: dts: mt7622: add a property "mediatek,num-pwms" for PWM

2019-01-17 Thread Ryder Lee
This add a property "mediatek,num-pwms" for PWM controller. Signed-off-by: Ryder Lee --- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi index 8fc4aa

[PATCH v1 2/3] mtd: spi-nor: mtk-quadspi: add SNOR_HWCAPS_READ for capcity setting

2019-01-13 Thread Ryder Lee
From: Guochun Mao SNOR_HWCAPS_READ is a basic read mode for both flash and controller, it should be supported, so add the capcity for mtk-quadspi. Signed-off-by: Guochun Mao --- Changes since v1: none. --- drivers/mtd/spi-nor/mtk-quadspi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(

[PATCH v1 1/3] dt-bindings: mtd: mtk-quadspi: update bindings for MT7629 SoC

2019-01-13 Thread Ryder Lee
This updates bindings for the MT7629 SPI-NOR controller. Signed-off-by: Ryder Lee Reviewed-by: Rob Herring --- Changes since v1: add a Reviewed-by tag. --- Documentation/devicetree/bindings/mtd/mtk-quadspi.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation

[PATCH v1 3/3] mtd: spi-nor: mtk-quadspi: rename config to a common one

2019-01-13 Thread Ryder Lee
The quadspi is a generic communication interface which could be shared with other MediaTek SoCs. Hence rename it to a common one. Signed-off-by: Ryder Lee --- Changes since v1: rebase to v5.0-rc1. --- drivers/mtd/spi-nor/Kconfig | 16 drivers/mtd/spi-nor/Makefile | 2 +- 2

[PATCH 3/5] arm64: dts: mt7622: add a property "mediatek,num-pwms" for PWM

2019-01-14 Thread Ryder Lee
This adds a property "mediatek,num-pwms" for PWM controller. Signed-off-by: Ryder Lee --- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi index 8fc4aa

[PATCH 5/5] dt-bindings: pwm: update bindings for MT7629 SoC

2019-01-14 Thread Ryder Lee
This updates bindings for MT7629 pwm controller. Signed-off-by: Ryder Lee --- Documentation/devicetree/bindings/pwm/pwm-mediatek.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt b/Documentation/devicetree/bindings/pwm/pwm

[PATCH 2/5] dt-bindings: pwm: add a property "mediatek,num-pwms"

2019-01-14 Thread Ryder Lee
This adds a property "mediatek,num-pwms" in example so that we could set the number of PWM channels via device tree. Signed-off-by: Ryder Lee --- Documentation/devicetree/bindings/pwm/pwm-mediatek.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bi

[PATCH 1/5] pwm: mediatek: add a property "mediatek,num-pwms"

2019-01-14 Thread Ryder Lee
This adds a property "mediatek,num-pwms" to avoid having an endless list of compatibles with no other differences for the same driver. Signed-off-by: Ryder Lee --- drivers/pwm/pwm-mediatek.c | 25 +++-- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git

[PATCH 4/5] arm: dts: mt7623: add a property "mediatek,num-pwms" for PWM

2019-01-14 Thread Ryder Lee
This adds a property "mediatek,num-pwms" for PWM controller. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi index 98f1159..2dd2f93 100644 --- a/arch/arm/boot/

Re: [PATCH v1 3/3] mtd: spi-nor: mtk-quadspi: rename config to a common one

2019-01-14 Thread Ryder Lee
On Tue, 2019-01-15 at 07:34 +, tudor.amba...@microchip.com wrote: > Hi, Ryder, > > On 01/14/2019 07:12 AM, Ryder Lee wrote: > > The quadspi is a generic communication interface which could be shared > > with other MediaTek SoCs. Hence rename it to a common one. > >

Re: [PATCH v1 1/5] pwm: mediatek: add a property "mediatek,num-pwms"

2019-01-18 Thread Ryder Lee
On Fri, 2019-01-18 at 08:59 +0100, Uwe Kleine-König wrote: > Hello, > > On Fri, Jan 18, 2019 at 11:24:41AM +0800, Ryder Lee wrote: > > This adds a property "mediatek,num-pwms" to avoid having an endless > > list of compatibles with no differences for the same dr

Re: [PATCH v1 1/5] pwm: mediatek: add a property "mediatek,num-pwms"

2019-01-18 Thread Ryder Lee
On Fri, 2019-01-18 at 09:05 +0100, Uwe Kleine-König wrote: > Hello, > > just realized another issue while looking up a driver detail ... > > On Fri, Jan 18, 2019 at 11:24:41AM +0800, Ryder Lee wrote: > > This adds a property "mediatek,num-pwms" to avoid having an

Re: [PATCH v1 1/5] pwm: mediatek: add a property "mediatek,num-pwms"

2019-01-18 Thread Ryder Lee
On Fri, 2019-01-18 at 10:53 +0100, Uwe Kleine-König wrote: > Hello Ryder, > > On Fri, Jan 18, 2019 at 05:42:54PM +0800, Ryder Lee wrote: > > On Fri, 2019-01-18 at 08:59 +0100, Uwe Kleine-König wrote: > > > Hello, > > > > > > On Fri, Jan 18, 2019 at 11:24

Re: [PATCH v1 1/5] pwm: mediatek: add a property "mediatek,num-pwms"

2019-01-18 Thread Ryder Lee
On Fri, 2019-01-18 at 09:43 +0100, Matthias Brugger wrote: > > On 18/01/2019 04:24, Ryder Lee wrote: > > This adds a property "mediatek,num-pwms" to avoid having an endless > > list of compatibles with no differences for the same driver. > > > >

Re: [PATCH v1 1/5] pwm: mediatek: add a property "mediatek,num-pwms"

2019-01-24 Thread Ryder Lee
+John HI John, On Mon, 2019-01-21 at 16:49 +0800, Uwe Kleine-König wrote: > On Sat, Jan 19, 2019 at 10:54:47AM +0800, Ryder Lee wrote: > > On Fri, 2019-01-18 at 09:43 +0100, Matthias Brugger wrote: > > > > > > On 18/01/2019 04:24, Ryder Lee wrote: > > > >

Re: [PATCH v1 1/5] pwm: mediatek: add a property "mediatek,num-pwms"

2019-01-24 Thread Ryder Lee
+John HI John, On Mon, 2019-01-21 at 16:49 +0800, Uwe Kleine-König wrote: > On Sat, Jan 19, 2019 at 10:54:47AM +0800, Ryder Lee wrote: > > On Fri, 2019-01-18 at 09:43 +0100, Matthias Brugger wrote: > > > > > > On 18/01/2019 04:24, Ryder Lee wrote: > > > >

Re: [PATCH] PCI: mediatek: get optional clock by devm_clk_get_optional()

2019-03-31 Thread Ryder Lee
On Sat, 2019-03-30 at 18:00 +0800, Chunfeng Yun wrote: > Use devm_clk_get_optional() to get optional clock > > Signed-off-by: Chunfeng Yun > --- > drivers/pci/controller/pcie-mediatek.c | 46 ++ > 1 file changed, 11 insertions(+), 35 deletions(-) > > diff --git a/drivers

Re: [PATCH v2 10/10] arm: dts: mediatek: add mt7629 pwm support

2019-08-14 Thread Ryder Lee
On Wed, 2019-08-14 at 18:43 +0800, Sam Shih wrote: > From: sam shih > > This adds pwm support for MT7629. > > Signed-off-by: Sam Shih > --- > arch/arm/boot/dts/mt7629.dtsi | 14 ++ > drivers/pwm/pwm-mediatek.c| 7 +++ > 2 files changed, 21 insertions(+) Split dts and driv

Re: [PATCH v2 9/10] dt-bindings: pwm: update bindings for MT7628 SoC

2019-08-14 Thread Ryder Lee
On Wed, 2019-08-14 at 18:43 +0800, Sam Shih wrote: > From: sam shih > > This updates bindings for MT7628 pwm controller. > > Signed-off-by: Sam Shih > --- > .../devicetree/bindings/pwm/pwm-mediatek.txt | 14 ++ > 1 file changed, 14 insertions(+) > > diff --git a/Documentatio

[PATCH] mt76: switch to SPDX tag instead of verbose boilerplate text

2019-07-22 Thread Ryder Lee
Add SPDX identifiers to all remaining files in mt76/ Signed-off-by: Ryder Lee --- drivers/net/wireless/mediatek/mt76/agg-rx.c | 13 + drivers/net/wireless/mediatek/mt76/debugfs.c| 13 + drivers/net/wireless/mediatek/mt76/dma.c| 13

Re: [PATCH] mt76: switch to SPDX tag instead of verbose boilerplate text

2019-07-23 Thread Ryder Lee
d that - copy paste mistake. And I will fold this one into 'fix many checkpatch.pl warnings' series then send v1. Ryder > On Tue, Jul 23, 2019 at 2:45 PM Ryder Lee wrote: > > > > Add SPDX identifiers to all remaining files in mt76/ > > > > Signed-off-by: Ryder Lee > > ---

[PATCH v1 2/6] mt76: mt7603: fix some checkpatch warnings

2019-07-24 Thread Ryder Lee
This fixes the following checkpatch warnings: WARNING: Improper SPDX comment style CHECK: No space is necessary after a cast Signed-off-by: Ryder Lee --- drivers/net/wireless/mediatek/mt76/mt7603/beacon.c | 2 +- drivers/net/wireless/mediatek/mt76/mt7603/core.c| 2 +- drivers/net/wireless

[PATCH v1 1/6] mt76: Add paragraphs to describe the config symbols fully

2019-07-24 Thread Ryder Lee
Update the help text to fix a checkpatch warning: WARNING: please write a paragraph that describes the config symbol fully Signed-off-by: Ryder Lee --- drivers/net/wireless/mediatek/mt76/mt7603/Kconfig | 6 -- drivers/net/wireless/mediatek/mt76/mt7615/Kconfig | 7 ++- drivers/net

[PATCH v1 3/6] mt76: mt7615: fix some checkpatch warnings

2019-07-24 Thread Ryder Lee
This fixes the following checkpatch warnings: WARNING: Improper SPDX comment style Fix blank lines. Signed-off-by: Ryder Lee --- drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c | 2 +- drivers/net/wireless/mediatek/mt76/mt7615/mac.c | 5 +++-- drivers/net/wireless/mediatek/mt76/mt7615

[PATCH v1 4/6] mt76: mt76x02: fix some checkpatch warnings

2019-07-24 Thread Ryder Lee
hould start on a tabstop WARNING: Unnecessary space before function pointer arguments Signed-off-by: Ryder Lee --- .../wireless/mediatek/mt76/mt76x0/mt76x0.h| 2 +- .../net/wireless/mediatek/mt76/mt76x0/phy.c | 40 ++- .../net/wireless/mediatek/mt76/mt76x0/phy.h

[PATCH v1 0/6] fix many checkpatch.pl warnings

2019-07-24 Thread Ryder Lee
This gathers many subsets to fix checkpatch.pl warnings and switches to use SPDX tags. I still keep some warnings there due to readability. The most of them are networking block comments or Macro argument reuse... Changes since v1: - fix misspellings. - fix a header convention error. Ryder Lee

[PATCH v1 5/6] mt76: fix some checkpatch warnings

2019-07-24 Thread Ryder Lee
This fixes the following checkpatch warnings: ERROR: Macros with complex values should be enclosed in parentheses CHECK: Alignment should match open parenthesis CHECK: No space is necessary after a cast Signed-off-by: Ryder Lee --- drivers/net/wireless/mediatek/mt76/agg-rx.c | 21

[PATCH v1 6/6] mt76: switch to SPDX tag instead of verbose boilerplate text

2019-07-24 Thread Ryder Lee
No functional change intended. Add SPDX identifiers to all remaining files in /mt76. Signed-off-by: Ryder Lee --- drivers/net/wireless/mediatek/mt76/agg-rx.c | 13 + drivers/net/wireless/mediatek/mt76/debugfs.c| 13 + drivers/net/wireless/mediatek/mt76

Re: [PATCH] mt76: mt7615: add support for per-chain signal strength reporting

2019-06-09 Thread Ryder Lee
MT_RXV4_RCPI2, rxdg4) - > 220) / 2; > status->chain_signal[3] = (FIELD_GET(MT_RXV4_RCPI3, rxdg4) - > 220) / 2; > Am 09.06.2019 um 11:09 schrieb Ryder Lee: > > Fill in RX status->chain_signal to avoid empty value. > > > > Signed-off-by: Ryder Lee &g

Re: [PATCH] mt76: mt7615: add support for per-chain signal strength reporting

2019-06-09 Thread Ryder Lee
On Mon, 2019-06-10 at 10:09 +0800, Ryder Lee wrote: > On Sun, 2019-06-09 at 16:44 +0200, Sebastian Gottschall wrote: > > according to my findings > > > > MT_RXV4_RCPI1 is part of rx descriptor 4 and not 3 > > so it must be rxdg4 = rxd[4] etc. > > RXV start from

Re: [PATCH] mt76: mt7615: add support for per-chain signal strength reporting

2019-06-10 Thread Ryder Lee
BRSSI is obtained from packet's L-STF portion and MTK HW PD (packet detection) will take it as a reference. (with variation more or less) As for RCPI which is calculated from packet's data portion. The other MTK chipsets may use IBRSSI as their baseband couldn't report RCPI. Ryder >

Re: [PATCH 1/3] add doc and MAINTAINERS for poweroff

2019-07-02 Thread Ryder Lee
+Sean On Tue, 2019-07-02 at 11:40 +0200, Frank Wunderlich wrote: > From: Josef Friedl > > poweroff for BPI-R2 > Suggested-by: Frank Wunderlich > > Signed-off-by: Josef Friedl > --- > .../devicetree/bindings/mfd/mt6397.txt| 10 ++- > .../bindings/power/reset/mt6323-poweroff.txt |

Re: [PATCH v3 1/2] mt76: mt7615: enable support for mesh

2019-06-06 Thread Ryder Lee
On Thu, 2019-06-06 at 12:14 +0200, Sebastian Gottschall wrote: > in addition you should take care about this problem which is raised up > if SAE is used. since AES-CMAC required tid to be non zero > > WARNING: CPU: 2 PID: 15324 at > /home/seg/DEV/mt7621/src/router/private/compat-wireless-2017-09

[PATCH] mt76: mt7615: add support for per-chain signal strength reporting

2019-06-09 Thread Ryder Lee
Fill in RX status->chain_signal to avoid empty value. Signed-off-by: Ryder Lee --- .../net/wireless/mediatek/mt76/mt7615/mac.c | 30 ++- .../net/wireless/mediatek/mt76/mt7615/mac.h | 5 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/drivers/net/wirel

Re: [PATCH v1] arm: dts: mediatek: add basic support for MT7629 SoC

2019-06-29 Thread Ryder Lee
On Fri, 2019-06-28 at 16:32 -0700, Kevin Hilman wrote: > writes: > > > From: Ryder Lee > > > > This adds basic support for MT7629 reference board. > > > > Signed-off-by: Ryder Lee > > Just noticing this is not upstream yet. > > I did a ba

[PATCH 2/3] mt76: mt7615: add 4 WMM sets support

2019-07-18 Thread Ryder Lee
MT7615 hardware supoorts 4 WMM sets, so this patch adds them accordingly. Also remove incorrect queue mapping in .conf_tx Signed-off-by: Ryder Lee --- drivers/net/wireless/mediatek/mt76/mt7615/mac.c | 5 +++-- drivers/net/wireless/mediatek/mt76/mt7615/main.c | 16 ++-- .../net

[PATCH 3/3] mt76: mt7615: add cwmin/cwmax initial values

2019-07-18 Thread Ryder Lee
Add initial values in mt7615_mcu_set_wmm() to cleanup setup flow. Signed-off-by: Ryder Lee --- drivers/net/wireless/mediatek/mt76/mt7615/mcu.c | 17 ++--- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c b/drivers/net

[PATCH 1/3] mt76: fix checkpatch warnings and errors

2019-07-18 Thread Ryder Lee
Fix warnings and errors as much as possible. Signed-off-by: Ryder Lee --- drivers/net/wireless/mediatek/mt76/agg-rx.c | 21 + drivers/net/wireless/mediatek/mt76/dma.c | 2 +- drivers/net/wireless/mediatek/mt76/mac80211.c | 30 ++-- drivers/net/wireless/mediatek/mt76/mt76

Re: [PATCH 2/3] mt76: mt7615: add 4 WMM sets support

2019-07-19 Thread Ryder Lee
On Fri, 2019-07-19 at 15:05 +0800, Roy Luo wrote: > > > > On Fri, Jul 19, 2019 at 2:55 PM Ryder Lee > wrote: > > MT7615 hardware supoorts 4 WMM sets, so this patch adds them > accordingly. > Also remove incorrect queue mapping in .conf_tx

Re: [PATCH 3/3] mt76: mt7615: add cwmin/cwmax initial values

2019-07-19 Thread Ryder Lee
On Fri, 2019-07-19 at 14:55 +0800, Ryder Lee wrote: > Add initial values in mt7615_mcu_set_wmm() to cleanup setup flow. > > Signed-off-by: Ryder Lee > --- > drivers/net/wireless/mediatek/mt76/mt7615/mcu.c | 17 ++--- > 1 file changed, 6 insertions(+), 11 deletions(

[PATCH] pinctrl: mediatek: fix build errors for moore core when CONFIG_OF is not enabled

2019-01-08 Thread Ryder Lee
bindings); ^ ../drivers/pinctrl/mediatek/pinctrl-moore.c: At top level: ../drivers/pinctrl/mediatek/pinctrl-moore.c:22:44: warning: 'mtk_custom_bindings' defined but not used [-Wunused-variable] static const struct pinconf_generic_params mtk_custom_bindings[] =

[PATCH 3/3] dt-bindings: timer: mediatek: update bindings for MT7629 SoC

2019-02-17 Thread Ryder Lee
From: Ryder Lee Update the binding for MT7629 SoC, which uses fallback compatible to MT6765 SYST, so add more descriptions to distinguish it from the other SoCs that use GPT. Signed-off-by: Ryder Lee Cc: Daniel Lezcano --- .../devicetree/bindings/timer/mediatek,mtk-timer.txt | 11

[PATCH 2/3] dt-bindings: soc: fix a typo for MT7623A

2019-02-17 Thread Ryder Lee
From: Ryder Lee This fixes a typo for MT7623A Signed-off-by: Ryder Lee --- Documentation/devicetree/bindings/soc/mediatek/scpsys.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/soc/mediatek/scpsys.txt b/Documentation/devicetree

[PATCH 1/3] dt-bindings: mediatek: update bindings for MT7629 SoC

2019-02-17 Thread Ryder Lee
From: Ryder Lee This updates bindings for MT7629 SoC, which includes very basic items such as system timer, UART, sysirq and scpsys unit. Signed-off-by: Ryder Lee Cc: Marc Zyngier Cc: Greg Kroah-Hartman --- .../devicetree/bindings/interrupt-controller/mediatek,sysirq.txt | 5

Re: [Resend PATCH 5/5] arm: dts: mt7623: add display subsystem related device nodes

2018-09-25 Thread Ryder Lee
On Wed, 2018-09-26 at 09:37 +0800, CK Hu wrote: > Hi, Ryder: > > On Wed, 2018-09-05 at 22:09 +0800, Ryder Lee wrote: > > Add display subsystem related device nodes for MT7623. > > > > Cc: CK Hu > > Signed-off-by: chunhui dai > > Signed-off-by: Bi

Re: [Resend PATCH 5/5] arm: dts: mt7623: add display subsystem related device nodes

2018-09-25 Thread Ryder Lee
On Tue, 2018-09-25 at 17:48 +0200, Matthias Brugger wrote: > > On 05/09/2018 16:09, Ryder Lee wrote: > > Add display subsystem related device nodes for MT7623. > > > > Cc: CK Hu > > Signed-off-by: chunhui dai > > Signed-off-by: Bibby Hsieh > > Signed-

Re: [Resend PATCH 5/5] arm: dts: mt7623: add display subsystem related device nodes

2018-09-26 Thread Ryder Lee
On Wed, 2018-09-26 at 10:50 +0200, Matthias Brugger wrote: > > On 26/09/2018 07:21, CK Hu wrote: > > Hi, Ryder: > > > > On Wed, 2018-09-26 at 10:38 +0800, Ryder Lee wrote: > >> On Wed, 2018-09-26 at 09:37 +0800, CK Hu wrote: > >>> Hi, Ryder: > &g

Re: [Resend PATCH 5/5] arm: dts: mt7623: add display subsystem related device nodes

2018-09-26 Thread Ryder Lee
On Wed, 2018-09-26 at 17:20 +0800, CK Hu wrote: > Hi, Ryder: > > More inline comment. > > On Wed, 2018-09-05 at 22:09 +0800, Ryder Lee wrote: > > Add display subsystem related device nodes for MT7623. > > > > Cc: CK Hu > > Signed-off-by: chunhui dai >

[PATCH 4/5] arm: dts: mt7623: add jpeg decoder device node

2018-09-05 Thread Ryder Lee
Add a jpeg decoder device node for MT7623. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi index a46987b..d01bdee 100644 --- a/arch/arm/boot/dts/mt7623

[PATCH 2/5] arm: dts: mt7623: update subsystem clock controller device nodes

2018-09-05 Thread Ryder Lee
Update MT7623 subsystem clock controllers, inlcuding mmsys, imgsys, vdecsys, g3dsys and bdpsys. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 41 + 1 file changed, 41 insertions(+) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot

[PATCH 5/5] arm: dts: mt7623: add display subsystem related device nodes

2018-09-05 Thread Ryder Lee
Add display subsystem related device nodes for MT7623. Cc: CK Hu Signed-off-by: chunhui dai Signed-off-by: Bibby Hsieh Signed-off-by: Ryder Lee --- This patch depends on the series: https://lkml.org/lkml/2018/9/5/223 Hi Matthias, I know you're working on broken MMSYS - just want t

[PATCH 1/5] arm: dts: mt7623: add a performance counter unit device node

2018-09-05 Thread Ryder Lee
Add ARM PMU device node to enable hardware perf events. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi index 1cdc346..8c43bd0 100644 --- a/arch/arm/boot/dts

[PATCH 3/5] arm: dts: mt7623: add iommu/smi device nodes

2018-09-05 Thread Ryder Lee
Add iommu/smi device nodes for MT7623. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 59 +++ 1 file changed, 59 insertions(+) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi index b7ccf8b..a46987b 100644 --- a

[Resend PATCH 5/5] arm: dts: mt7623: add display subsystem related device nodes

2018-09-05 Thread Ryder Lee
Add display subsystem related device nodes for MT7623. Cc: CK Hu Signed-off-by: chunhui dai Signed-off-by: Bibby Hsieh Signed-off-by: Ryder Lee --- I forgot to sort nodes in my previous mail. Sorry for the inconvenience. This patch depends on the series: https://lkml.org/lkml/2018/9/5/223

[PATCH] pinctrl: mediatek: update pinmux defintions for MT7623

2018-04-15 Thread Ryder Lee
Fulfill the pinmux macros for MT7623 Signed-off-by: Ryder Lee --- include/dt-bindings/pinctrl/mt7623-pinfunc.h | 90 +++- 1 file changed, 87 insertions(+), 3 deletions(-) diff --git a/include/dt-bindings/pinctrl/mt7623-pinfunc.h b/include/dt-bindings/pinctrl/mt7623

<    1   2   3   4   5   >