[PATCH] crypto: mediatek - Add empty messages check in GCM mode

2017-08-16 Thread Ryder Lee
Currently, empty messages are not supported in GCM mode, hence add a check to prevent producing incorrect results. Signed-off-by: Ryder Lee --- drivers/crypto/mediatek/mtk-aes.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/crypto/mediatek/mtk-aes.c b/drivers/crypto/mediatek

Re: [PATCH] crypto: mediatek - Add empty messages check in GCM mode

2017-08-16 Thread Ryder Lee
Hi, On Wed, 2017-08-16 at 14:18 +0200, Stephan Mueller wrote: > Am Mittwoch, 16. August 2017, 13:19:48 CEST schrieb Ryder Lee: > > Hi Ryder, > > > Currently, empty messages are not supported in GCM mode, hence add > > a check to prevent producing incorrect results. >

[PATCH] pinctrl: mediatek: update PCIe pinmux data

2017-08-17 Thread Ryder Lee
Update pinmux data so that PCIe function can work normally. Signed-off-by: Ryder Lee --- drivers/pinctrl/mediatek/pinctrl-mtk-mt2701.h | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-mt2701.h b/drivers/pinctrl

Re: [PATCH] pinctrl: mediatek: update PCIe pinmux data

2017-08-17 Thread Ryder Lee
Hi Linus, Please ignore this wrong patch. Sorry for the inconvenience. On Thu, 2017-08-17 at 16:57 +0800, Ryder Lee wrote: > Update pinmux data so that PCIe function can work normally. > > Signed-off-by: Ryder Lee > --- > drivers/pinctrl/mediatek/pinctrl-mt

[PATCH v4 0/2] Add support for MediaTek AHCI SATA

2017-08-17 Thread Ryder Lee
ol_get_optional() by devm_reset_control_get_optional_exclusive(). changes since v1: - update binding text: add missing "specifier pairs" descriptions. - fix kbuild test warning: fix the error handling. Ryder Lee (2): ata: mediatek: add support for MediaTek SATA controller dt-bind

[PATCH v4 1/2] ata: mediatek: add support for MediaTek SATA controller

2017-08-17 Thread Ryder Lee
This adds support the AHCI-compliant Serial ATA controller present on MediaTek SoCs. Signed-off-by: Ryder Lee Acked-by: Tejun Heo --- drivers/ata/Kconfig| 10 +++ drivers/ata/Makefile | 1 + drivers/ata/ahci_mtk.c | 196 + 3 files

[PATCH v4 2/2] dt-bindings: ata: add DT bindings for MediaTek SATA controller

2017-08-17 Thread Ryder Lee
Add DT bindings for the onboard SATA controller present on the MediaTek SoCs. Signed-off-by: Ryder Lee Acked-by: Rob Herring --- Documentation/devicetree/bindings/ata/ahci-mtk.txt | 51 ++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree

[PATCH v1 1/2] ASoC: mediatek: Add interrupt-names property in binding text

2017-08-17 Thread Ryder Lee
Add interrupt-names property in DT - if future revisions of the IP have different sets of interrupts the binding can adapt gracefully. Signed-off-by: Ryder Lee CC: Garlic Tseng --- Documentation/devicetree/bindings/sound/mt2701-afe-pcm.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion

[PATCH v1 2/2] ASoC: mediatek: switch to use platform_get_irq_byname()

2017-08-17 Thread Ryder Lee
Switch to use platform_get_irq_byname() so that binding can be agnostic of the IRQ order. Signed-off-by: Ryder Lee CC: Garlic Tseng --- sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/sound/soc/mediatek/mt2701/mt2701

[PATCH] pinctrl: mediatek: update PCIe mux data for MT7623

2017-08-17 Thread Ryder Lee
MT2701 shares the same driver with MT7623, but there is a slight difference between their pin functions (e.g., PCIe), so we update the different parts in pinmux table. Doing so, SoC could choose the correct mux setting via their own pinfun.h. Signed-off-by: Ryder Lee CC: Biao Huang

[PATCH 1/2] crypto: mediatek - remove redundant clock setting

2017-05-26 Thread Ryder Lee
This patch removes redundant clock setting for 'clk_ethif', which is the parent for 'clk_cryp'. Hence, we just need to handle its child. Signed-off-by: Ryder Lee --- drivers/crypto/mediatek/mtk-platform.c | 10 +- drivers/crypto/mediatek/mtk-platform.h | 2 --

[PATCH 2/2] crypto: mediatek - update DT binding documentation

2017-05-26 Thread Ryder Lee
This patch removes unnecessary clock in binding file. Signed-off-by: Ryder Lee --- Documentation/devicetree/bindings/crypto/mediatek-crypto.txt | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/crypto/mediatek-crypto.txt b

Re: [RFC resend 1/4] dt-bindings: display: mediatek: add drm binding

2017-10-19 Thread Ryder Lee
Hi Matthias, Should I base on your changes and resend this patch series https://patchwork.kernel.org/patch/9980061/ ? I add a similar node - display_components, but your approach is better than mine. Thanks. On Thu, 2017-10-19 at 13:26 +0200, Matthias Brugger wrote: > DRM subysystem and clock d

Re: [PATCH v3 05/10] arm: dts: mt7623: update pio, usb and crypto nodes

2017-10-19 Thread Ryder Lee
Hi On Thu, 2017-10-19 at 18:29 +0200, Matthias Brugger wrote: > > On 10/02/2017 03:54 AM, Ryder Lee wrote: > > This patch updates pio, usb and crypto nodes to make them be consistent > > with the binding documents. > > > > Signed-off-by: Ryder Lee > > --

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

2018-07-31 Thread Ryder Lee
Hi Matthias, Sorry for the late reply. On Tue, 2018-07-31 at 16:17 +0800, Ryder Lee (李庚諺) wrote: > Hi Ryder, > > On 16/07/18 16:59, Ryder Lee wrote: > > Add some misc nodes support - timer and ARM CCI-400. > > > > Signed-off-by: Ryder Lee > > --- > > a

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

2018-07-31 Thread Ryder Lee
On Tue, 2018-07-31 at 16:43 +0800, Ryder Lee wrote: > Hi Matthias, > > Sorry for the late reply. > > On Tue, 2018-07-31 at 16:17 +0800, Ryder Lee (李庚諺) wrote: > > Hi Ryder, > > > > On 16/07/18 16:59, Ryder Lee wrote: > > > Add some misc nodes support -

Re: [PATCH v3 2/2] dt-bindings: pcie: Add documentation for Mediatek PCIe

2017-05-11 Thread Ryder Lee
On Thu, 2017-05-11 at 09:17 +0200, Arnd Bergmann wrote: > On Thu, May 11, 2017 at 4:44 AM, Ryder Lee wrote: > > On Wed, 2017-05-10 at 12:01 +0200, Arnd Bergmann wrote: > >> On Wed, May 10, 2017 at 11:31 AM, Ryder Lee wrote: > >> > On Wed, 2017-05-10 at 10

Re: [PATCH v3 2/2] dt-bindings: pcie: Add documentation for Mediatek PCIe

2017-05-11 Thread Ryder Lee
Hi Arnd, I want to further explain what I have discussed in previous mail. On Thu, 2017-05-11 at 17:08 +0800, Ryder Lee wrote: > On Thu, 2017-05-11 at 09:17 +0200, Arnd Bergmann wrote: > > On Thu, May 11, 2017 at 4:44 AM, Ryder Lee wrote: > > > On Wed, 2017-05-10 at 12:01 +0

Re: [PATCH v3 2/2] dt-bindings: pcie: Add documentation for Mediatek PCIe

2017-05-13 Thread Ryder Lee
Hi Arnd, Sorry to bother you again. On Thu, 2017-05-11 at 20:11 +0800, Ryder Lee wrote: > > interrupt-map-mask = <0xff800 0 0 0>; > > interrupt-map = <0x 0 0 0 &gic GIC_SPI 193 IRQ_TYPE_NONE>, > > <0x0800 0 0 0 &gic GIC_SPI 194 IRQ_T

[PATCH v4 0/2] Add PCIe host driver support for Mediatek SoCs

2017-05-14 Thread Ryder Lee
ed(). - add .map_bus() and change to use pci_generic_config_read/pci_generic_config_write. - revise dt-binding document and move nonstandard properties to root node. - change compatible string. - use interrupt-map property and replace mtk_pcie_map_irq() with of_irq_parse_and_map_pci(). - use the new pci_register_

[PATCH v4 1/2] PCI: mediatek: Add Mediatek PCIe host controller support

2017-05-14 Thread Ryder Lee
Add support for the Mediatek PCIe Gen2 controller which can be found on MT7623 series SoCs. Signed-off-by: Ryder Lee --- drivers/pci/host/Kconfig | 11 + drivers/pci/host/Makefile| 1 + drivers/pci/host/pcie-mediatek.c | 559 +++ 3 files

[PATCH v4 2/2] dt-bindings: pcie: Add documentation for Mediatek PCIe

2017-05-14 Thread Ryder Lee
Add documentation for PCIe host driver available in MT7623 series SoCs. Signed-off-by: Ryder Lee Acked-by: Rob Herring --- .../bindings/pci/mediatek,mt7623-pcie.txt | 130 + 1 file changed, 130 insertions(+) create mode 100644 Documentation/devicetree/bindings

[PATCH 2/2] dt-bindings: PCI: MediaTek: Correct the interrupt-map properties

2018-01-30 Thread Ryder Lee
Move the interrupt-map properties from the child nodes to the root node and update each entry accordingly. Signed-off-by: Ryder Lee --- .../devicetree/bindings/pci/mediatek-pcie.txt | 28 -- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/Documentation

[PATCH 1/2] of_pci_irq: add a check to fallback to standard device tree parsing

2018-01-30 Thread Ryder Lee
x this by adding a check to fallback to standard device tree parsing. Signed-off-by: Ryder Lee --- Please refer to the previous discussion thread: https://patchwork.ozlabs.org/patch/829108/ --- drivers/of/of_pci_irq.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --g

[PATCH v2 5/5] arm: dts: mediatek: add audio-subsystem node for both MT2701 and MT7623

2018-01-30 Thread Ryder Lee
Add audio-subsystem node and its clock support for both MT2701/MT7623. Then modify afe node to adapt it. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt2701.dtsi | 192 - arch/arm/boot/dts/mt7623.dtsi | 193 +- 2

[PATCH v2 3/5] clk: mediatek: add audsys support for MT2701

2018-01-30 Thread Ryder Lee
Add clock driver support for MT2701 audsys. Signed-off-by: Ryder Lee --- drivers/clk/mediatek/Kconfig | 6 ++ drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt2701-aud.c | 175 ++ 3 files changed, 182 insertions(+) create mode

[PATCH v2 4/5] dt-bindings: clock: mediatek: update audsys documentation to adapt MFD device

2018-01-30 Thread Ryder Lee
accordingly. Signed-off-by: Ryder Lee --- .../bindings/arm/mediatek/mediatek,audsys.txt | 37 ++ 1 file changed, 30 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.txt b/Documentation/devicetree/bindings/arm/mediatek

[PATCH v2 1/5] clk: mediatek: update missing clock data for MT7622 audsys

2018-01-30 Thread Ryder Lee
Add missing clock data 'CLK_AUDIO_AFE_CONN' for MT7622 audsys. Signed-off-by: Ryder Lee --- drivers/clk/mediatek/clk-mt7622-aud.c | 1 + include/dt-bindings/clock/mt7622-clk.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/clk/mediatek/clk-mt762

[PATCH v2 0/5] add MFD support for MediaTek audio subsystem

2018-01-30 Thread Ryder Lee
mfd/mtk-audsys.c in v1. Ryder Lee (5): clk: mediatek: update missing clock data for MT7622 audsys clk: mediatek: modify MT7622 audsys to adapt MFD device clk: mediatek: add audsys support for MT2701 dt-bindings: clock: mediatek: update audsys documentation to adapt MFD device arm

[PATCH v2 2/5] clk: mediatek: modify MT7622 audsys to adapt MFD device

2018-01-30 Thread Ryder Lee
As the new MFD parent is in place, switch probing method to adapt it. Signed-off-by: Ryder Lee --- drivers/clk/mediatek/clk-mt7622-aud.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/mediatek/clk-mt7622-aud.c b/drivers/clk/mediatek/clk-mt7622-aud.c index

[PATCH] ASoC: mediatek: fix double free in mt2701_afe_pcm_dev_probe()

2018-01-22 Thread Ryder Lee
s a helper mt2701_afe_add_component() to setup component. Reported-by: Dan Carpenter Signed-off-by: Ryder Lee --- sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 32 +- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/sound/soc/mediatek/mt2701/mt2701-af

[PATCH] arm: dts: mediatek: add audsys node for both MT2701 and MT7623

2018-01-04 Thread Ryder Lee
Add audsys support for both MT2701/MT7623. Then modify afe node to adapt it. Signed-off-by: Ryder Lee --- This patch is dependent on https://www.spinics.net/lists/arm-kernel/msg626503.html --- arch/arm/boot/dts/mt2701.dtsi | 188 - arch/arm/boot/dts

Re: [PATCH v1 4/6] dt-bindings: clock: mediatek: add "simple-mfd" in audsys documentation

2018-01-07 Thread Ryder Lee
On Fri, 2018-01-05 at 13:02 -0600, Rob Herring wrote: > On Thu, Jan 04, 2018 at 03:44:20PM +0800, Ryder Lee wrote: > > Add "simple-mfd" to support MFD device and add a compatible string for > > MT2701. > > > > Signed-off-by: Ryder Lee > > --- > &g

[RFC PATCH] of_pci_irq: add a check to fallback to device tree parsing

2018-01-10 Thread Ryder Lee
ate 'devfn' but didn't obtain the actual slot numbers from device tree, this patch add a check to fallback to use device tree parsing if needed. Signed-off-by: Ryder Lee --- Discussion thread: https://patchwork.ozlabs.org/patch/829108/ --- drivers/of/of_pci_irq.c | 14 --

[PATCH v4 0/6] Fix the overlapping registers issue for the MediTek audio system

2018-03-06 Thread Ryder Lee
/mtk-audsys.c in v1. Ryder Lee (6): clk: mediatek: update missing clock data for MT7622 audsys clk: mediatek: add devm_of_platform_populate() for MT7622 audsys clk: mediatek: add audsys support for MT2701 dt-bindings: clock: mediatek: update audsys documentation to adapt MFD device

[PATCH v4 1/6] clk: mediatek: update missing clock data for MT7622 audsys

2018-03-06 Thread Ryder Lee
Add missing clock data 'CLK_AUDIO_AFE_CONN' for MT7622 audsys. Signed-off-by: Ryder Lee Reviewed-by: Rob Herring Reviewed-by: Matthias Brugger --- drivers/clk/mediatek/clk-mt7622-aud.c | 1 + include/dt-bindings/clock/mt7622-clk.h | 3 ++- 2 files changed, 3 insertions(+),

[PATCH v4 4/6] dt-bindings: clock: mediatek: update audsys documentation to adapt MFD device

2018-03-06 Thread Ryder Lee
to illustrate child nodes. Signed-off-by: Ryder Lee --- .../bindings/arm/mediatek/mediatek,audsys.txt | 19 ++- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.txt b/Documentation/devicetree

[PATCH v4 3/6] clk: mediatek: add audsys support for MT2701

2018-03-06 Thread Ryder Lee
Add clock driver support for MT2701 audsys. Signed-off-by: Ryder Lee --- drivers/clk/mediatek/Kconfig | 6 ++ drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt2701-aud.c | 177 ++ 3 files changed, 184 insertions(+) create mode

[PATCH v4 2/6] clk: mediatek: add devm_of_platform_populate() for MT7622 audsys

2018-03-06 Thread Ryder Lee
Add devm_of_platform_populate() to populate devices which are children of the root node. Signed-off-by: Ryder Lee --- drivers/clk/mediatek/clk-mt7622-aud.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/clk/mediatek/clk-mt7622-aud.c b/drivers/clk/mediatek

[PATCH v4 5/6] dt-bindings: clock: mediatek: add audsys support for MT2701

2018-03-06 Thread Ryder Lee
This patch adds a compatible string for MT2701. Signed-off-by: Ryder Lee --- Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.txt b/Documentation/devicetree

[PATCH v4 6/6] arm: dts: mediatek: modify audio related nodes for both MT2701 and MT7623

2018-03-06 Thread Ryder Lee
Modify audio related nodes to reflect the actual usage in binding documents. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt2701.dtsi | 188 - arch/arm/boot/dts/mt7623.dtsi | 190 -- 2 files changed, 182

[PATCH] ASoC: mediatek: remove "simple-mfd" in the example

2018-03-26 Thread Ryder Lee
Remove compatible string "simple-mfd" in the example as we have already added devm_of_platform_populate() in the parent driver. Signed-off-by: Ryder Lee --- Documentation/devicetree/bindings/sound/mt2701-afe-pcm.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

[PATCH 2/2] clk: mediatek: add audsys support for MT2701

2018-03-19 Thread Ryder Lee
Add clock driver support for MT2701 audsys. Signed-off-by: Ryder Lee --- drivers/clk/mediatek/Kconfig | 6 ++ drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt2701-aud.c | 186 ++ 3 files changed, 193 insertions(+) create mode

[PATCH 1/2] clk: mediatek: add devm_of_platform_populate() for MT7622 audsys

2018-03-19 Thread Ryder Lee
Add devm_of_platform_populate() to populate devices which are children of the root node. Signed-off-by: Ryder Lee --- drivers/clk/mediatek/clk-mt7622-aud.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/clk/mediatek/clk-mt7622-aud.c b/drivers/clk

Re: [PATCH v4 3/6] clk: mediatek: add audsys support for MT2701

2018-03-19 Thread Ryder Lee
On Mon, 2018-03-19 at 13:31 -0700, Stephen Boyd wrote: > Quoting Ryder Lee (2018-03-06 01:09:28) > > + > > +static const struct of_device_id of_match_clk_mt2701_aud[] = { > > + { .compatible = "mediatek,mt2701-audsys", }, > > + {} > > +};

[PATCH] [media] vcodec: fix error return value from mtk_jpeg_clk_init()

2018-03-22 Thread Ryder Lee
The error return value should be fixed as it may return EPROBE_DEFER. Cc: Rick Chang Cc: Bin Liu Signed-off-by: Ryder Lee --- drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c

Re: [PATCH v1] arm: dts: mt7623: add PCIe related nodes

2018-03-13 Thread Ryder Lee
Hi Matthias, Just a gentle ping on this patch. Thanks On Wed, 2018-02-14 at 11:27 +0800, Ryder Lee (李庚諺) wrote: > This patch adds some device nodes for the PCIe function block and updates > related pinmux. > > Moreover, we add interrupt-map properties in both parent and children a

Re: [PATCH v5 4/9] PCI: mediatek: Convert to use pci_host_probe()

2018-09-28 Thread Ryder Lee
On Fri, 2018-09-28 at 18:04 +0800, honghui.zh...@mediatek.com wrote: > From: Honghui Zhang > > Part of mtk_pcie_register_host is an open-coded version of > pci_host_probe(). So instead of duplicating this code, use > pci_host_probe() directly and remove mtk_pcie_register_host. > > Signed-off-by:

Re: [PATCH v5 4/9] PCI: mediatek: Convert to use pci_host_probe()

2018-09-28 Thread Ryder Lee
On Sat, 2018-09-29 at 08:16 +0800, Honghui Zhang wrote: > On Fri, 2018-09-28 at 23:41 +0800, Ryder Lee wrote: > > On Fri, 2018-09-28 at 18:04 +0800, honghui.zh...@mediatek.com wrote: > > > From: Honghui Zhang > > > > > > Part of mtk_pcie_regis

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

2018-09-28 Thread Ryder Lee
t; after mtk_pcie_setup_irq > PCI: mediatek: Enable msi after clock enabled > PCI: mediatek: Add system pm support for MT2712 and 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 | 326 > + > 2 files changed, 210 insertions(+), 118 deletions(-) > Acked-by: Ryder Lee for the whole series.

Re: [PATCH v1 3/3] arm64: dts: mt7622: Drop the general purpose timer node

2018-11-25 Thread Ryder Lee
On Fri, 2018-11-23 at 18:07 +0100, Matthias Brugger wrote: > > On 12/11/2018 02:28, Ryder Lee wrote: > > The crash http://termbin.com/zitb is caused by the timer register > > into system in early pahse during kernel boot, but the clock > > sources didn't get ready at

Re: [PATCH v2] PCI: mediatek: Use devm_of_pci_get_host_bridge_resources() to parse DT

2018-11-20 Thread Ryder Lee
> - return err; > - > - err = devm_pci_remap_iospace(dev, &pcie->pio, pcie->io.start); > - if (err < 0) > - return err; > - > - return 0; > -} > - > static int mtk_pcie_probe(struct platform_device *pdev) > { > struct device *dev = &pdev->dev; > @@ -1169,11 +1124,6 @@ static int mtk_pcie_probe(struct platform_device *pdev) > if (err) > return err; > > - err = mtk_pcie_request_resources(pcie); > - if (err) > - goto put_resources; > - > - host->busnr = pcie->busn.start; > host->dev.parent = pcie->dev; > host->ops = pcie->soc->ops; > host->map_irq = of_irq_parse_and_map_pci; Acked-by: Ryder Lee

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

2018-11-28 Thread Ryder Lee
This updates bindings for the MT7629 SPI-NOR controller. Signed-off-by: Ryder Lee --- Documentation/devicetree/bindings/mtd/mtk-quadspi.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt b/Documentation/devicetree

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

2018-11-28 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 --- drivers/mtd/spi-nor/Kconfig | 16 drivers/mtd/spi-nor/Makefile | 2 +- 2 files changed, 9 insertions(+), 9 deletions

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

2018-11-28 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 Tested-by: Ryder Lee --- drivers/mtd/spi-nor/mtk-quadspi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion

[RESEND PATCH 2/4] mtd: spi-nor: mtk-quadspi: use ofpart for parsing partitions

2018-11-28 Thread Ryder Lee
From: Guochun Mao Replace mtd_device_register with mtd_device_parse_register for parsing partitions and add ofpart support. Signed-off-by: Guochun Mao Tested-by: Ryder Lee --- drivers/mtd/spi-nor/mtk-quadspi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mtd

Re: [resend PATCH 1/3] pwm: mediatek: drop flag 'has_clks'

2018-11-14 Thread Ryder Lee
On Wed, 2018-11-14 at 14:27 +0100, John Crispin wrote: > On 14/11/2018 13:47, Thierry Reding wrote: > > On Tue, Nov 13, 2018 at 10:08:22AM +0800, Ryder Lee wrote: > >> The flag 'has_clks' and related checks are superfluous as the CCF > >> subsystem does this

[PATCH 2/4] mtd: spi-nor: mtk-quadspi: use ofpart for parsing partitions

2018-11-14 Thread Ryder Lee
From: Guochun Mao Replace mtd_device_register with mtd_device_parse_register for parsing partitions. Add ofpart support. Signed-off-by: Guochun Mao Tested-by: Ryder Lee --- drivers/mtd/spi-nor/mtk-quadspi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mtd

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

2018-11-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 3/4] mtd: spi-nor: mtk-quadspi: add SNOR_HWCAPS_READ for capcity setting

2018-11-14 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 Tested-by: Ryder Lee --- drivers/mtd/spi-nor/mtk-quadspi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion

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

2018-11-14 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 --- drivers/mtd/spi-nor/Kconfig | 16 drivers/mtd/spi-nor/Makefile | 2 +- 2 files changed, 9 insertions(+), 9 deletions

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

2018-11-14 Thread Ryder Lee
This updates bindings for the MT7629 SPI-NOR controller. Signed-off-by: Ryder Lee --- Documentation/devicetree/bindings/mtd/mtk-quadspi.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt b/Documentation/devicetree

Re: [PATCH 1/4] dt-bindings: pwm: update bindings for MT7629 SoC

2018-11-14 Thread Ryder Lee
On Thu, 2018-11-15 at 14:26 +0800, Ryder Lee wrote: > 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/dev

[PATCH v1 1/3] arm64: dts: mt7622: fix no more console output on rfb1

2018-11-11 Thread Ryder Lee
The issue was found 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") Signed-off-by: Ryder Lee Tes

[PATCH v1 2/3] arm64: dts: mt7622: fix no more console output on BPI-R64 board

2018-11-11 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") Signed-off-by: Ryder Lee --- Changes since v1: revise commit msg --- arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts | 7 +++

[PATCH v1 3/3] arm64: dts: mt7622: Drop the general purpose timer node

2018-11-11 Thread Ryder Lee
ss in MT7622. So we drop it. Fixes: 9cc7f0de9e67 ("arm64: dts: mt7622: add timer, CCI-400 and PMU nodes") Cc: sta...@vger.kernel.org Signed-off-by: Ryder Lee --- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 10 -- 1 file changed, 10 deletions(-) diff --git a/arch/arm64/boot/dts/

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

2018-11-11 Thread Ryder Lee
This updates bindings for MT7629 pinctrl driver. Signed-off-by: Ryder Lee --- Changes since v1: -add new function for wifi. -add more descriptions. --- .../devicetree/bindings/pinctrl/pinctrl-mt7622.txt | 131 + 1 file changed, 131 insertions(+) diff --git a/Documentation

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

2018-11-11 Thread Ryder Lee
This adds MT7629 pinctrl driver based on MediaTek pinctrl-moore core. Signed-off-by: Ryder Lee --- Changes since v1: -add a new function for wifi. -drop useless 'ext' groups and its groups. --- drivers/pinctrl/mediatek/Kconfig | 6 + drivers/pinctrl/mediatek/Makefile

Re: [PATCH v1 3/3] arm64: dts: mt7622: Drop the general purpose timer node

2018-11-11 Thread Ryder Lee
On Sun, 2018-11-11 at 21:45 -0500, Sasha Levin wrote: > On Mon, Nov 12, 2018 at 09:28:08AM +0800, Ryder Lee wrote: > >The crash http://termbin.com/zitb is caused by the timer register > >into system in early pahse during kernel boot, but the clock > >sources didn't get re

Re: [PATCH v1 3/3] arm64: dts: mt7622: Drop the general purpose timer node

2018-11-11 Thread Ryder Lee
On Mon, 2018-11-12 at 11:33 +0800, Ryder Lee wrote: > On Sun, 2018-11-11 at 21:45 -0500, Sasha Levin wrote: > > On Mon, Nov 12, 2018 at 09:28:08AM +0800, Ryder Lee wrote: > > >The crash http://termbin.com/zitb is caused by the timer register > > >into system in early pa

[PATCH v1 2/3] pwm: mediatek: add pwm support for MT7629 SoC

2018-11-11 Thread Ryder Lee
This adds pwm controller support for MT7629 SoC. Signed-off-by: Ryder Lee --- drivers/pwm/pwm-mediatek.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/pwm/pwm-mediatek.c b/drivers/pwm/pwm-mediatek.c index 9400c41..4ed95e5 100644 --- a/drivers/pwm/pwm-mediatek.c +++ b/drivers

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

2018-11-11 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 v1 1/3] pwm: mediatek: drop flag 'has_clks'

2018-11-11 Thread Ryder Lee
The flag 'has_clks' and related checks are superfluous as the CCF subsystem does this for you. Cc: John Crispin Signed-off-by: Ryder Lee --- drivers/pwm/pwm-mediatek.c | 20 +--- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/drivers/pwm/pwm-mediatek.c

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

2018-11-12 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

[resend PATCH 2/3] pwm: mediatek: add pwm support for MT7629 SoC

2018-11-12 Thread Ryder Lee
This adds pwm controller support for MT7629 SoC. Signed-off-by: Ryder Lee --- drivers/pwm/pwm-mediatek.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/pwm/pwm-mediatek.c b/drivers/pwm/pwm-mediatek.c index 9400c41..4ed95e5 100644 --- a/drivers/pwm/pwm-mediatek.c +++ b/drivers

[resend PATCH 1/3] pwm: mediatek: drop flag 'has_clks'

2018-11-12 Thread Ryder Lee
The flag 'has_clks' and related checks are superfluous as the CCF subsystem does this for you. Cc: John Crispin Signed-off-by: Ryder Lee --- drivers/pwm/pwm-mediatek.c | 20 +--- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/drivers/pwm/pwm-mediatek.c

[PATCH] clk: mediatek: fix the PCIe MAC clock parent

2018-12-04 Thread Ryder Lee
The PCIe function doesn't work as the clock tree of MAC layer is wrong. Hence fix the clock table. Fixes: 3b5e748615e7 ("clk: mediatek: add clock support for MT7629 SoC") Signed-off-by: Ryder Lee --- drivers/clk/mediatek/clk-mt7629.c | 4 ++-- 1 file changed, 2 insertions(

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

2018-12-05 Thread Ryder Lee
/pci_ids.h | 1 + > 3 files changed, 28 insertions(+) > Acked-by: Ryder Lee for the series.

Re: [PATCH v2 0/4] PCI: mediatek: fixup find_port, enable_msi and add pm, module support

2018-07-01 Thread Ryder Lee
ish the link when resumed. > -Rebase on the previous two patches. > > The fourth patch add loadable kernel module support. > > Some of those patches was already reviewed-by Ryder Lee > , > so I just add the Reviewed-by tags in those patches. > > [1] https://patchwork.

[PATCH 1/2] arm: dts: mt7623: cleanup MT7623N NAND dts file

2018-07-09 Thread Ryder Lee
Normally, we didn't release this kind of baord to user. This specific board exists only in the early stage of development inside MediaTek - and that may confuse peoples. Hence this patch removes related files accordingly. Cc: John Crispin Cc: Sean Wang Signed-off-by: Ryder Lee --- arc

[PATCH 2/2] dt-bindings: arm: mediatek: cleanup MT7623N reference boards

2018-07-09 Thread Ryder Lee
Cleanup binding document to get rid of unsupported reference boards for MT7623N. Cc: John Crispin Cc: Sean Wang Signed-off-by: Ryder Lee --- Documentation/devicetree/bindings/arm/mediatek.txt | 3 --- 1 file changed, 3 deletions(-) diff --git a/Documentation/devicetree/bindings/arm

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

2018-07-10 Thread Ryder Lee
The input clock of UART0 should be CLK_PERI_UART0_PD. Signed-off-by: Ryder Lee --- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi index 8cdec52

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

2018-07-10 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

Re: [PATCH] PCI: mediatek: Add system pm support for MT2712

2018-05-30 Thread Ryder Lee
and the related control register values should > be re-set after system resume. > > Signed-off-by: Honghui Zhang > CC: Ryder Lee > --- > drivers/pci/host/pcie-mediatek.c | 82 > > 1 file changed, 82 insertions(+) > > diff

[PATCH 5/5] dt-bindings: arm: mediatek: add support for bananapi BPI-R64 board

2018-08-14 Thread Ryder Lee
Update binding document for bananapi BPI-R64 board being supported. Signed-off-by: Ryder Lee --- Documentation/devicetree/bindings/arm/mediatek.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.txt b/Documentation/devicetree/bindings/arm

[PATCH 4/5] arm64: dts: mt7622: add bananapi BPI-R64 board

2018-08-14 Thread Ryder Lee
Add support for the bananapi R64 (BPI-R64) development board from BIPAI KEJI. Detailed hardware information for BPI-R64 which could be found on http://wiki.banana-pi.org/Banana_Pi_BPI-R64 Signed-off-by: Ryder Lee --- arch/arm64/boot/dts/mediatek/Makefile | 1 + .../boot/dts

[PATCH 2/5] arm64: dts: mt7622: add a bluetooth 5 device node

2018-08-14 Thread Ryder Lee
Add a built-in bluetooth 5 support for MT7622. Signed-off-by: Ryder Lee --- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi index b235df7..f8c3495 100644

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

2018-08-14 Thread Ryder Lee
Add timer and CCI-400 device nodes for MT7622. Signed-off-by: Ryder Lee --- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 48 1 file changed, 48 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi index

[PATCH 3/5] arm64: dts: mt7622: fix ram size for rfb1

2018-08-14 Thread Ryder Lee
Fix ram size and sort nodes in alphabetical order. Signed-off-by: Ryder Lee --- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 196 +-- 1 file changed, 98 insertions(+), 98 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts b/arch/arm64/boot/dts

[PATCH v1 1/5] arm64: dts: mt7622: add timer, CCI-400 and PMU nodes

2018-08-18 Thread Ryder Lee
Add device tree entries for timer, ARM CCI-400 and its PMU. Otherwise, we add a cortex-a53-pmu node to enable hw perfevents. Signed-off-by: Ryder Lee --- change since v1: - add a pmu node. --- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 55 1 file changed, 55

[PATCH v1 3/5] arm64: dts: mt7622: fix ram size for rfb1

2018-08-18 Thread Ryder Lee
Fix ram size to 512 megabytes and sort nodes in alphabetical order. Signed-off-by: Ryder Lee Acked-by: Sean Wang --- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 196 +-- 1 file changed, 98 insertions(+), 98 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek

[PATCH v1 5/5] dt-bindings: arm: mediatek: add support for bananapi BPI-R64 board

2018-08-18 Thread Ryder Lee
Update binding document for bananapi BPI-R64 board being supported. Signed-off-by: Ryder Lee Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/arm/mediatek.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.txt b

[PATCH v1 4/5] arm64: dts: mt7622: add bananapi BPI-R64 board

2018-08-18 Thread Ryder Lee
Add support for the bananapi R64 (BPI-R64) development board from BIPAI KEJI. Detailed hardware information for BPI-R64 which could be found on http://wiki.banana-pi.org/Banana_Pi_BPI-R64 Signed-off-by: Ryder Lee --- changes since v1: - add missing sata nodes. - fix pinctrl-0 for pcie@1,0

[PATCH v1 2/5] arm64: dts: mt7622: add a bluetooth 5 device node

2018-08-18 Thread Ryder Lee
Add a built-in bluetooth 5 support for MT7622. Signed-off-by: Ryder Lee Acked-by: Sean Wang --- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi index d297100

[PATCH] pinctrl: mediatek: improve dependencies for PINCTRL_MTK_MOORE

2018-12-12 Thread Ryder Lee
Improve dependencies for the pinctrl drivers which select PINCTRL_MTK_MOORE as its core layer. --- drivers/pinctrl/mediatek/Kconfig | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/pinctrl/mediatek/Kconfig b/drivers/pinctrl/mediatek/Kconfig index d8cb584..3

[PATCH v1] pinctrl: mediatek: improve Kconfig dependencies

2018-12-12 Thread Ryder Lee
Remove prompts to make all pinctrl cores to non-visible symbols and make sure the target SoCs would be coupled with the corresponding cores. Signed-off-by: Ryder Lee --- Changes since v1: - Revise commit message - Change all pinctrl cores to non-visible symbols - Drop EINT_MTK in

Re: [PATCH 2/2] PCI: mediatek: Add controller support for MT7629

2018-12-12 Thread Ryder Lee
Hi, On Thu, 2018-12-06 at 09:09 +0800, Jianjun Wang wrote: > MT7629 is an arm platform SoC which has the same PCIe IP with MT7622. > > The read value of BAR0 is 0x_, it's size will be calculated as 4GB > in arm64 but bogus alignment values at arm32, the pcie device and devices > behind th

[PATCH] tty: serial: don't do termios for BTIF

2018-12-12 Thread Ryder Lee
The MediaTek BTIF controller doesn't need to set termios so add a new capability 'UART_CAP_NMOD' for the unsupported case. Signed-off-by: Sean Wang Signed-off-by: Ryder Lee --- drivers/tty/serial/8250/8250.h | 1 + drivers/tty/serial/8250/8250_port.c | 7 ++- 2 f

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

2018-12-16 Thread Ryder Lee
Hi Matthias, On Sun, 2018-12-16 at 11:31 +0100, Matthias Brugger wrote: > > On 07/11/2018 08:10, Ryder Lee wrote: > > This updates dt-binding documentation for MT7629 SoC > > > > Signed-off-by: Ryder Lee > > Acked-by: Matthias Brugger > > > ---

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

2018-12-16 Thread Ryder Lee
On Sun, 2018-12-16 at 19:53 -0800, Guenter Roeck wrote: > On 12/16/18 7:39 PM, Ryder Lee wrote: > > Hi Matthias, > > > > On Sun, 2018-12-16 at 11:31 +0100, Matthias Brugger wrote: > >> > >> On 07/11/2018 08:10, Ryder Lee wrote: > >>> T

  1   2   3   4   5   >