[PATCH 3/4] ASoC: mediatek: cleanup audio driver for MT2701

2017-12-25 Thread Ryder Lee
Cleanup unused code such as 'i2s_num' guard, headers, indentation and some defines. Signed-off-by: Ryder Lee --- sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.c | 14 +--- sound/soc/mediatek/mt2701/mt2701-afe-common.h | 20 + sound/soc/mediatek/mt2701/mt2701-afe-pcm.c

[PATCH 4/4] ASoC: mediatek: update clock properties for mt2701

2017-12-25 Thread Ryder Lee
7; to make them more generic so that other chips can reuse gracefully. Signed-off-by: Ryder Lee Tested-by: Garlic Tseng --- .../devicetree/bindings/sound/mt2701-afe-pcm.txt | 199 ++--- 1 file changed, 93 insertions(+), 106 deletions(-) diff --git a/Documentation/devicetree/b

Re: [PATCH v4 2/2] PCI: mediatek: Set up class type and vendor ID for MT7622

2017-12-25 Thread Ryder Lee
On Fri, 2017-12-22 at 13:39 +0800, honghui.zh...@mediatek.com wrote: > From: Honghui Zhang > > The hardware default value of IDs and class type is not correct, > fix that by setup the correct values before start up. > > Signed-off-by: Honghui Zhang > --- > drivers/pci/host/pcie-mediatek.c | 12

Re: [PATCH 1/4] ASoC: mediatek: fix error handling in mt2701_afe_pcm_dev_probe()

2017-12-28 Thread Ryder Lee
Sorry, please ignore this series. I will send new ones later. On Mon, 2017-12-25 at 16:28 +0800, Ryder Lee wrote: > Fix unbalanced error handling path which will get incorrect counts > if probe failed. The .remove() should be adjusted accordingly. > > Signed-off-by: Ryder Lee > -

[PATCH 00/12] mediatek: rework audio subsystem driver

2018-01-02 Thread Ryder Lee
, audio and clock to adapt the new subsystem. Ryder Lee (12): ASoC: mediatek: fix error handling in mt2701_afe_pcm_dev_probe() ASoC: mediatek: rework clock functions for MT2701 ASoC: mediatek: cleanup audio driver for MT2701 ASoC: mediatek: update clock related properties of MT2701 AFE mfd

[PATCH 02/12] ASoC: mediatek: rework clock functions for MT2701

2018-01-02 Thread Ryder Lee
this patch moves I2S clocks to the struct mt2701_i2s_data so that we can easily manage them when calls .prepare() and .shutdown(). Signed-off-by: Ryder Lee Tested-by: Garlic Tseng --- sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.c | 518 +++--- sound/soc/mediatek/mt2701/mt2701

[PATCH 07/12] ASoC: mediatek: modify MT2701 AFE driver to adapt subsystem wrapper

2018-01-02 Thread Ryder Lee
As the new audio subsystem wrapper is in place, modify MT2701 AFE driver to adapt it. Signed-off-by: Ryder Lee --- sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 42 -- sound/soc/mediatek/mt2701/mt2701-reg.h | 1 - 2 files changed, 17 insertions(+), 26 deletions

[PATCH 10/12] clk: mediatek: switch to use dev_get_regmap() for MT7622 audsys

2018-01-02 Thread Ryder Lee
As the new audsys wrapper driver is in place, switch to use dev_get_regmap() to obtain the regmap from its parent. This patch also add missing clock data 'CLK_AUDIO_AFE_CONN'. Signed-off-by: Ryder Lee --- drivers/clk/mediatek/clk-mt7622-aud.c | 11 +-- include/dt-bindings/cl

[PATCH 12/12] dt-bindings: clock: mediatek: update audsys bindings to adapt the wrapper

2018-01-02 Thread Ryder Lee
Update the DT binding to adapt the new audio subsystem wrapper. Also add a compatible string for MT2701. Signed-off-by: Ryder Lee --- .../bindings/arm/mediatek/mediatek,audsys.txt | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/Documentation

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

2018-01-02 Thread Ryder Lee
Add clock driver support for MT2701 audio subsystem. Signed-off-by: Ryder Lee --- drivers/clk/mediatek/Kconfig | 6 ++ drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt2701-aud.c | 180 ++ 3 files changed, 187 insertions

[PATCH 08/12] ASoC: mediatek: modify documentation to adapt subsystem wrapper

2018-01-02 Thread Ryder Lee
As the new audio subsystem wrapper is in place, modify documentation to adapt it. Signed-off-by: Ryder Lee --- .../devicetree/bindings/sound/mt2701-afe-pcm.txt | 160 +++-- 1 file changed, 82 insertions(+), 78 deletions(-) diff --git a/Documentation/devicetree/bindings/sound

[PATCH 09/12] clk: mediatek: move part of mtk_clk_register_gates() to the new function

2018-01-02 Thread Ryder Lee
In some subsystems, the regmap has already been initialized from its parent, so there is no need to map it again. To keep flexible, we move some parts to the new function - mtk_clk_register_num_gates(), and then use it for those subsystems. Signed-off-by: Ryder Lee --- drivers/clk/mediatek/clk

[PATCH 06/12] mfd: add DT bindings for MedaiTek audio subsystem

2018-01-02 Thread Ryder Lee
This patch adds documentation of the DT bindings for the MediaTek audio subsystem wrapper. Signed-off-by: Ryder Lee --- .../devicetree/bindings/mfd/mtk-audsys.txt | 109 + 1 file changed, 109 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/mtk

[PATCH 05/12] mfd: mtk-audsys: add MediaTek audio subsystem driver

2018-01-02 Thread Ryder Lee
Add a common driver for the top block of the MediaTek audio subsystem. This is a wrapper which manages resources for audio components. Signed-off-by: Ryder Lee --- drivers/mfd/Kconfig | 9 drivers/mfd/Makefile | 2 + drivers/mfd/mtk-audsys.c | 138

[PATCH 01/12] ASoC: mediatek: fix error handling in mt2701_afe_pcm_dev_probe()

2018-01-02 Thread Ryder Lee
Fix unbalanced error handling path which will get incorrect counts if probe failed. The .remove() should be adjusted accordingly. Signed-off-by: Ryder Lee Tested-by: Garlic Tseng --- sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 31 ++ 1 file changed, 14 insertions

[PATCH 04/12] ASoC: mediatek: update clock related properties of MT2701 AFE

2018-01-02 Thread Ryder Lee
that other chips can reuse gracefully. Signed-off-by: Ryder Lee --- .../devicetree/bindings/sound/mt2701-afe-pcm.txt | 207 + 1 file changed, 91 insertions(+), 116 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/mt2701-afe-pcm.txt b/Documentation/devic

[PATCH 03/12] ASoC: mediatek: cleanup audio driver for MT2701

2018-01-02 Thread Ryder Lee
Cleanup unused code such as 'i2s_num' guard, headers, indentation and some defines. Signed-off-by: Ryder Lee --- sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.c | 14 +--- sound/soc/mediatek/mt2701/mt2701-afe-common.h | 20 + sound/soc/mediatek/mt2701/mt2701-afe-pcm.c

Re: [PATCH 05/12] mfd: mtk-audsys: add MediaTek audio subsystem driver

2018-01-03 Thread Ryder Lee
On Tue, 2018-01-02 at 16:31 +, Lee Jones wrote: > On Tue, 02 Jan 2018, Ryder Lee wrote: > > > Add a common driver for the top block of the MediaTek audio subsystem. > > This is a wrapper which manages resources for audio components. > > > > Signed-off-by: Ryder

[PATCH v1 0/6] add "simple-mfd" support for MediaTek audio subsystem

2018-01-03 Thread Ryder Lee
T7622. changes since v1: - To avoid writing an MFD driver, we add "simple-mfd" in the audsys binding. - Move three top clocks to audio driver [1] as we remove mfd/mtk-audsys.c in v1. Ryder Lee (6): ASoC: mediatek: add some core clocks for MT2701 AFE ASoC: mediatek: modify MT2701 AFE d

[PATCH v1 2/6] ASoC: mediatek: modify MT2701 AFE driver to adapt mfd device

2018-01-03 Thread Ryder Lee
As the new MFD parent is in place, modify MT2701 AFE driver to adapt it. Signed-off-by: Ryder Lee --- sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 45 +- sound/soc/mediatek/mt2701/mt2701-reg.h | 1 - 2 files changed, 20 insertions(+), 26 deletions(-) diff --git

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

2018-01-03 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 | 174 ++ 3 files changed, 181 insertions(+) create mode

[PATCH v1 1/6] ASoC: mediatek: add some core clocks for MT2701 AFE

2018-01-03 Thread Ryder Lee
Add three core clocks for MT2701 AFE. Signed-off-by: Ryder Lee --- sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.c | 30 ++- sound/soc/mediatek/mt2701/mt2701-afe-common.h | 3 +++ 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/sound/soc/mediatek/mt2701

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

2018-01-03 Thread Ryder Lee
Add "simple-mfd" to support MFD device and add a compatible string for MT2701. Signed-off-by: Ryder Lee --- .../bindings/arm/mediatek/mediatek,audsys.txt | 21 +++-- 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bi

[PATCH v1 5/6] clk: mediatek: update missing clock data for MT7622 audsys

2018-01-03 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 | 3 ++- include/dt-bindings/clock/mt7622-clk.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/clk/mediatek/clk-mt762

[PATCH v1 3/6] ASoC: mediatek: update MT2701 AFE documentation to adapt mfd device

2018-01-03 Thread Ryder Lee
As the new MFD parent is in place, modify MT2701 AFE documentation to adapt it. Also add three core clocks in example. Signed-off-by: Ryder Lee --- .../devicetree/bindings/sound/mt2701-afe-pcm.txt | 171 +++-- 1 file changed, 93 insertions(+), 78 deletions(-) diff --git a

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

2017-08-10 Thread Ryder Lee
On Thu, 2017-08-10 at 15:51 -0500, Rob Herring wrote: > On Mon, Aug 07, 2017 at 05:52:21PM +0800, Ryder Lee wrote: > > Add DT bindings for the onboard SATA controller present on the MediaTek > > SoCs. > > > > Signed-off-by: Ryder Lee > > --- > > Doc

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

2017-08-10 Thread Ryder Lee
Hi Rob, Sorry for the noise letter. On Fri, 2017-08-11 at 10:25 +0800, Ryder Lee wrote: > > > +Required properties: > > > + - compatible : Must be "mediatek,ahci". > > > > SoC specific compatible strings please. > > Okay. I took a look at ./

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

2017-08-28 Thread Ryder Lee
On Mon, 2017-08-28 at 10:55 -0700, Tejun Heo wrote: > On Fri, Aug 18, 2017 at 09:13:07AM +0800, Ryder Lee wrote: > > This adds support the AHCI-compliant Serial ATA controller present > > on MediaTek SoCs. > > > > Signed-off-by: Ryder Lee > > Acked-by: Tejun Heo

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

2017-08-22 Thread Ryder Lee
Hi, On Tue, 2017-08-22 at 15:01 +0800, Herbert Xu wrote: > On Wed, Aug 16, 2017 at 07:19:48PM +0800, Ryder Lee wrote: > > Currently, empty messages are not supported in GCM mode, hence add > > a check to prevent producing incorrect results. > > > > Signed-off-by: Ryde

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

2017-08-22 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 --- changes since v1: - fix build erro: add a missing semicolon. drivers/crypto/mediatek/mtk-aes.c | 5 + 1 file changed, 5 insertions(+) diff --git

Re: [PATCH v2 0/3] PCI: mediatek: Add MSI support for MT2712 and MT7622

2017-08-22 Thread Ryder Lee
++++++++-- > > 1 file changed, 151 insertions(+), 6 deletions(-) > > Just waiting for an ack from Ryder... For whole series: Acked-by: Ryder Lee

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

2017-08-25 Thread Ryder Lee
Hi Tejun, Just a gentle ping. I think others are okay with both :D Thanks. On Fri, 2017-08-18 at 09:13 +0800, Ryder Lee wrote: > Hi, > > This patch series add support for AHCI compatible SATA controller, and it is > compliant with the ahci 1.3 and sata 3.0 specification. Th

[PATCH v1 1/4] arm: dts: mediatek: update audio node for mt2701 and mt7623

2017-09-18 Thread Ryder Lee
This patch adds interrupt-names property in audio node so that binding can be agnostic of the IRQ order [1][2]. Signed-off-by: Ryder Lee CC: Garlic Tseng CC: Erin Lo CC: Sean Wang --- [1]https://patchwork.kernel.org/patch/9901225/ [2]https://lkml.org/lkml/2017/8/18/292 --- --- arch/arm/boot

[PATCH v1 3/4] arm: dts: mt7623: add display related nodes

2017-09-18 Thread Ryder Lee
This patch adds the device nodes for the display function block. Also, we add some missing pin macros in mt7623-pinfunc.h. Signed-off-by: Ryder Lee CC: Linus Walleij Acked-by: Linus Walleij --- arch/arm/boot/dts/mt7623.dtsi | 210 ++ arch/arm/boot/dts

[PATCH v1 0/4] update MT7623 and MT2701 dts

2017-09-18 Thread Ryder Lee
Hi, This series corrects some nodes for both MT7623 and MT2701, adds display and PCIe support for MT7623. changes since v1: - rebase to v4.14. - sort nodes in alphabetical order. Ryder Lee (4): arm: dts: mediatek: update audio node for mt2701 and mt7623 arm: dts: mt7623: update pio, usb and

[PATCH v1 2/4] arm: dts: mt7623: update pio, usb and crypto nodes

2017-09-18 Thread Ryder Lee
This patch updates pio, usb and crypto nodes to make them be consistent with the binding documents. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 52 ++- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/arch/arm/boot/dts

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

2017-09-18 Thread Ryder Lee
This patch adds devices nodes and updates pinmux setting for the PICe function block. Just note that PCIe port2 PHY is shared with U3 port. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 108 ++ arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts

[PATCH 2/4] arm: dts: mt7623: update pio, usb and crypto nodes

2017-08-20 Thread Ryder Lee
This patch updates pio, usb and crypto nodes to make them be consistent with the binding documents. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 52 ++- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/arch/arm/boot/dts

[PATCH 4/4] arm: dts: mt7623: add PCIe related nodes

2017-08-20 Thread Ryder Lee
This patch adds devices nodes and updates pinmux setting for the PICe function block. Just note that PCIe port2 PHY is shared with U3 port. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 108 ++ arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts

[PATCH 3/4] arm: dts: mt7623: add display related nodes

2017-08-20 Thread Ryder Lee
This patch adds the device nodes for the display function block. Also, we add some missing pin macros in mt7623-pinfunc.h. Signed-off-by: Ryder Lee CC: Linus Walleij --- arch/arm/boot/dts/mt7623.dtsi | 210 ++ arch/arm/boot/dts/mt7623n-bananapi-bpi-r2

[PATCH 1/4] arm: dts: mediatek: update audio node for mt2701 and mt7623

2017-08-20 Thread Ryder Lee
This patch adds interrupt-names property in audio node so that binding can be agnostic of the IRQ order [1][2]. Signed-off-by: Ryder Lee CC: Garlic Tseng CC: Erin Lo CC: Sean Wang --- [1]https://patchwork.kernel.org/patch/9901225/ [2]https://lkml.org/lkml/2017/8/18/292 --- --- arch/arm/boot

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

2017-05-09 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 | 149 + 1 file changed, 149 insertions(+) create mode 100644 Documentation/devicetree/bindings

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

2017-05-09 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 | 563 +++ 3 files

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

2017-05-09 Thread Ryder Lee
onstandard 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_host_bridge() method instead of pci_scan_root_bus(). Ryder Lee (2): PCI: mediatek: Add Mediatek PCIe host controller su

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

2017-05-10 Thread Ryder Lee
On Wed, 2017-05-10 at 09:58 +0200, Matthias Brugger wrote: > > On 10/05/17 04:07, Ryder Lee wrote: > > Add documentation for PCIe host driver available in MT7623 > > series SoCs. > > > > Signed-off-by: Ryder Lee > > Acked-by: Rob Herring > > --- >

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

2017-05-10 Thread Ryder Lee
On Wed, 2017-05-10 at 10:08 +0200, Arnd Bergmann wrote: > On Wed, May 10, 2017 at 4:07 AM, Ryder Lee wrote: > > > +- ranges: > > + - The first three entries are expected to translate the addresses for > > the root > > +port registers, which are refere

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

2017-05-10 Thread Ryder Lee
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:08 +0200, Arnd Bergmann wrote: > >> On Wed, May 10, 2017 at 4:07 AM, Ryder Lee wrote: > >> > >> > +- ranges: > >

[PATCH] PCI: mediatek: change to use pci_scan_root_bus_bridge()

2017-06-26 Thread Ryder Lee
_root_bus_bridge(). Signed-off-by: Ryder Lee --- drivers/pci/host/pcie-mediatek.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/pci/host/pcie-mediatek.c b/drivers/pci/host/pcie-mediatek.c index 3baafa8..514ef34 100644 --- a/drivers/pci/host/pcie-mediatek.c +++ b/drive

[PATCH] critical patch to fix build bot failed

2017-06-26 Thread Ryder Lee
Do you have better idea to handle this situation? I'm really not sure how to fix it in proper ways. Thanks a lot. Ryder Ryder Lee (1): PCI: mediatek: change to use pci_scan_root_bus_bridge() drivers/pci/host/pcie-mediatek.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) -- 1.9.1

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

2017-05-31 Thread Ryder Lee
On Wed, 2017-05-31 at 13:46 -0500, Rob Herring wrote: > On Fri, May 26, 2017 at 05:43:09PM +0800, Ryder Lee wrote: > > This patch removes unnecessary clock in binding file. > > Why is the clock unnecessary? A h/w block either has a clock or doesn't. > > The subject ne

[PATCH v1 0/2] remove mediatek ethif clock in crypto driver

2017-05-31 Thread Ryder Lee
This patch series only remove redundant clock setting in mediatek crypto driver. Changes since v1: -rework the commit message. Ryder Lee (2): crypto: mediatek - remove redundant clock setting dt-bindings: crypto: remove mediatek ethif clock Documentation/devicetree/bindings/crypto/mediatek

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

2017-05-31 Thread Ryder Lee
This patch removes redundant clock setting for 'clk_ethif', which is the parent of '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 v1 2/2] dt-bindings: crypto: remove mediatek ethif clock

2017-05-31 Thread Ryder Lee
This patch removes the parent clock 'ethif' in bindings, since we don't need to control the parent of a clock in current clock framework. Moreover, the clocks are get by name in the driver, thus this change does not break backwards compatibility. Signed-off-by: Ryder Lee Review

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

2017-05-20 Thread Ryder Lee
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_host_bridge() method ins

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

2017-05-20 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 | 553 +++ 3 files

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

2017-05-20 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 v2 0/2] Add PCIe phy driver for some Mediatek SoCs

2017-05-20 Thread Ryder Lee
nd add vendor prefix. Ryder Lee (2): phy: add PCIe PHY driver for mt7623 SoCs families dt-bindings: phy: Add documentation for Mediatek PCIe PHY .../devicetree/bindings/phy/phy-mt7623-pcie.txt| 63 + drivers/phy/Kconfig| 8 +

[PATCH v2 1/2] phy: add PCIe PHY driver for mt7623 SoCs families

2017-05-20 Thread Ryder Lee
support PCIe PHY of MT7623 SoCs families Signed-off-by: Ryder Lee --- drivers/phy/Kconfig | 8 ++ drivers/phy/Makefile | 1 + drivers/phy/phy-mt7623-pcie.c | 290 ++ 3 files changed, 299 insertions(+) create mode 100644 drivers/phy

[PATCH v2 2/2] dt-bindings: phy: Add documentation for Mediatek PCIe PHY

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

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

2017-05-21 Thread Ryder Lee
On Sat, 2017-05-20 at 15:46 -0400, Paul Gortmaker wrote: > On Tue, May 9, 2017 at 10:06 PM, Ryder Lee wrote: > > Add support for the Mediatek PCIe Gen2 controller which can > > be found on MT7623 series SoCs. > > > > Signed-off-by: Ryder Lee > > --- > >

[PATCH v1 0/2] Add PCIe phy driver for some Mediatek SoCs

2017-05-04 Thread Ryder Lee
Hi, This patch series add PCIe phy driver and related dt-binding file for Mediatek mt7623 SoCs families. Changes since v1: - revise binding document: drop 'status' properties. add a description to 'phy-switch' property and add vendor prefix. Ryder Lee (2): phy: add

[PATCH v1 2/2] dt-bindings: phy: Add documentation for Mediatek PCIe PHY

2017-05-04 Thread Ryder Lee
Add documentation for PCIe PHY available in MT7623 series SoCs. Signed-off-by: Ryder Lee --- .../devicetree/bindings/phy/phy-mt7623-pcie.txt| 63 ++ 1 file changed, 63 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/phy-mt7623-pcie.txt diff --git

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

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

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

2017-05-04 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 | 563 +++ 3 files

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

2017-05-04 Thread Ryder Lee
ing. - use interrupt-map property and replace mtk_pcie_map_irq() with of_irq_parse_and_map_pci(). - use the new pci_register_host_bridge() method instead of pci_scan_root_bus(). Ryder Lee (2): PCI: mediatek: Add Mediatek PCIe host controller support dt-bindings: pcie: Add documentation for Med

[PATCH v1 1/2] phy: add PCIe PHY driver for mt7623 SoCs families

2017-05-04 Thread Ryder Lee
support PCIe PHY of MT7623 SoCs families Signed-off-by: Ryder Lee --- drivers/phy/Kconfig | 9 ++ drivers/phy/Makefile | 1 + drivers/phy/phy-mt7623-pcie.c | 290 ++ 3 files changed, 300 insertions(+) create mode 100644 drivers/phy

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

2017-05-02 Thread Ryder Lee
On Fri, 2017-04-28 at 16:09 -0500, Rob Herring wrote: > On Fri, Apr 28, 2017 at 05:10:34PM +0800, Ryder Lee wrote: > > Add binding document for Mediatek PCIe Gen2 v1 host controller driver. > > > > Signed-off-by: Ryder Lee > > --- > > .../bindings/pci/mediat

Re: [PATCH 2/2] dt-bindings: phy: Add documentation for Mediatek PCIe PHY

2017-05-02 Thread Ryder Lee
On Fri, 2017-04-28 at 12:52 -0500, Rob Herring wrote: > On Sun, Apr 23, 2017 at 04:17:33PM +0800, Ryder Lee wrote: > > Add documentation for PCIe PHY available in MT7623 series SoCs. > > > > Signed-off-by: Ryder Lee > > --- > > .../devicetree/binding

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

2017-05-02 Thread Ryder Lee
Hi Arnd, > 2017-04-28 19:41 GMT+08:00 Arnd Bergmann : > > On Fri, Apr 28, 2017 at 4:46 AM, Ryder Lee > wrote: > > On Thu, 2017-04-27 at 21:06 +0200, Arnd Bergmann wrote: > >> On Wed, Apr 26, 2017 at 10:10 AM, Ryder Lee >

Re: [PATCH v3 00/10] update MT7623 and MT2701 dts

2017-10-11 Thread Ryder Lee
Hi Matthias, How does this series look to you? On Mon, 2017-10-02 at 09:54 +0800, Ryder Lee wrote: > Hi Matthias, > > This patch series adds/corrects some device nodes for both MT7623 and MT2701. > > changes since v3: > - revert PIO register space. > > changes since

[PATCH v2 09/10] arm: dts: mt7623: enable bananapi-r2 display function

2017-09-25 Thread Ryder Lee
This patch adds missing MIPI pin macros in mt7623-pinfunc.h and enables pwm backlight support for bananapi-r2. Signed-off-by: Ryder Lee Acked-by: Linus Walleij --- arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 41 +-- include/dt-bindings/pinctrl/mt7623-pinfunc.h | 12

[PATCH v2 01/10] arm: dts: mt2701: add pwm backlight device node

2017-09-25 Thread Ryder Lee
From: Weiqing Kong This patch adds the device node for MT2701 pwm backlight. Signed-off-by: Weiqing Kong Signed-off-by: Erin Lo Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt2701.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm

[PATCH v2 04/10] arm: dts: mediatek: update audio node for mt2701 and mt7623

2017-09-25 Thread Ryder Lee
This patch adds interrupt-names property in audio node so that binding can be agnostic of the IRQ order. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt2701.dtsi | 4 +++- arch/arm/boot/dts/mt7623.dtsi | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts

[PATCH v2 03/10] arm: dts: mt2701: add display subsystem related nodes

2017-09-25 Thread Ryder Lee
From: YT Shen This patch adds the device nodes for MT2701 DISP function blocks. Signed-off-by: YT Shen Signed-off-by: Erin Lo Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt2701.dtsi | 75 +++ 1 file changed, 75 insertions(+) diff --git a/arch/arm

[PATCH v2 10/10] arm: dts: mt7623: add PCIe related nodes

2017-09-25 Thread Ryder Lee
This patch adds devices nodes and updates pinmux setting for the PICe function block. Just note that PCIe port2 PHY is shared with U3 port. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 108 ++ arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts

[PATCH v2 08/10] arm: dts: mt7623: add display subsystem related nodes

2017-09-25 Thread Ryder Lee
This patch adds the device nodes for the display function blocks. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 94 +++ 1 file changed, 94 insertions(+) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi index

[PATCH v2 06/10] arm: dts: mt7623: add subsystem clock controller nodes

2017-09-25 Thread Ryder Lee
This patch adds missing susbsystem clock controllers nodes for MT7623. (e.g., mmsys, imgsys, vdecsys and bdpsys) Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 32 1 file changed, 32 insertions(+) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch

[PATCH v2 07/10] arm: dts: mt7623: add iommmu and jpecdec nodes

2017-09-25 Thread Ryder Lee
This patch adds iommu and jpecdec nodes for MT7623. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 74 +++ 1 file changed, 74 insertions(+) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi index ca672bd..c3ce0b0

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

2017-09-25 Thread Ryder Lee
This patch updates pio, usb and crypto nodes to make them be consistent with the binding documents. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 52 ++- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/arch/arm/boot/dts

[PATCH v2 00/10] update MT7623 and MT2701 dts

2017-09-25 Thread Ryder Lee
nodes in alphabetical order. Ryder Lee (7): arm: dts: mediatek: update audio node for mt2701 and mt7623 arm: dts: mt7623: update pio, usb and crypto nodes arm: dts: mt7623: add subsystem clock controller nodes arm: dts: mt7623: add iommmu and jpecdec nodes arm: dts: mt7623: add display

[PATCH v2 02/10] arm: dts: mt2701: enable display pwm backlight

2017-09-25 Thread Ryder Lee
From: Weiqing Kong This patch adds board related config for MT2701 pwm backlight. Signed-off-by: Weiqing Kong Signed-off-by: Erin Lo Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt2701-evb.dts | 23 +++ 1 file changed, 23 insertions(+) diff --git a/arch/arm/boot/dts

[PATCH v3 09/10] arm: dts: mt7623: enable bananapi-r2 display function

2017-10-01 Thread Ryder Lee
This patch adds missing MIPI pin macros in mt7623-pinfunc.h and enables pwm backlight support for bananapi-r2. Signed-off-by: Ryder Lee Acked-by: Linus Walleij --- arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 41 +-- include/dt-bindings/pinctrl/mt7623-pinfunc.h | 12

[PATCH v3 01/10] arm: dts: mt2701: add pwm backlight device node

2017-10-01 Thread Ryder Lee
From: Weiqing Kong This patch adds the device node for MT2701 pwm backlight. Signed-off-by: Weiqing Kong Signed-off-by: Erin Lo Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt2701.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm

[PATCH v3 10/10] arm: dts: mt7623: add PCIe related nodes

2017-10-01 Thread Ryder Lee
This patch adds devices nodes and updates pinmux setting for the PICe function block. Just note that PCIe port2 PHY is shared with U3 port. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 108 ++ arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts

[PATCH v3 08/10] arm: dts: mt7623: add display subsystem related nodes

2017-10-01 Thread Ryder Lee
This patch adds the device nodes for the display function blocks. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 94 +++ 1 file changed, 94 insertions(+) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi index

[PATCH v3 03/10] arm: dts: mt2701: add display subsystem related nodes

2017-10-01 Thread Ryder Lee
From: YT Shen This patch adds the device nodes for MT2701 DISP function blocks. Signed-off-by: YT Shen Signed-off-by: Erin Lo Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt2701.dtsi | 75 +++ 1 file changed, 75 insertions(+) diff --git a/arch/arm

[PATCH v3 00/10] update MT7623 and MT2701 dts

2017-10-01 Thread Ryder Lee
MT2701. changes since v1: - rebase to v4.14. - sort nodes in alphabetical order Ryder Lee (7): arm: dts: mediatek: update audio node for mt2701 and mt7623 arm: dts: mt7623: update pio, usb and crypto nodes arm: dts: mt7623: add subsystem clock controller nodes arm: dts: mt7623: add iommu and

[PATCH v3 04/10] arm: dts: mediatek: update audio node for mt2701 and mt7623

2017-10-01 Thread Ryder Lee
This patch adds interrupt-names property in audio node so that binding can be agnostic of the IRQ order. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt2701.dtsi | 4 +++- arch/arm/boot/dts/mt7623.dtsi | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts

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

2017-10-01 Thread Ryder Lee
This patch updates pio, usb and crypto nodes to make them be consistent with the binding documents. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 26 ++ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch

[PATCH v3 02/10] arm: dts: mt2701: enable display pwm backlight

2017-10-01 Thread Ryder Lee
From: Weiqing Kong This patch adds board related config for MT2701 pwm backlight. Signed-off-by: Weiqing Kong Signed-off-by: Erin Lo Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt2701-evb.dts | 23 +++ 1 file changed, 23 insertions(+) diff --git a/arch/arm/boot/dts

[PATCH v3 06/10] arm: dts: mt7623: add subsystem clock controller nodes

2017-10-01 Thread Ryder Lee
This patch adds missing susbsystem clock controllers nodes for MT7623. (e.g., mmsys, imgsys, vdecsys and bdpsys) Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 32 1 file changed, 32 insertions(+) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch

[PATCH v3 07/10] arm: dts: mt7623: add iommu and jpecdec nodes

2017-10-01 Thread Ryder Lee
This patch adds iommu and jpecdec nodes for MT7623. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 74 +++ 1 file changed, 74 insertions(+) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi index a877f9a..b257715

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

2017-09-26 Thread Ryder Lee
On Tue, 2017-09-26 at 18:17 +0800, Yingjoe Chen wrote: > On Tue, 2017-09-26 at 10:02 +0800, 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: [PATCH v1 3/4] arm: dts: mt7623: add display related nodes

2017-09-21 Thread Ryder Lee
On Tue, 2017-09-19 at 23:26 +0800, CK Hu wrote: > Hi, Ryder: > > Some comment inline. > > On Tue, 2017-09-19 at 14:27 +0800, Ryder Lee wrote: > > This patch adds the device nodes for the display function block. > > Also, we add some missing pin macros in mt7623-pinfun

Re: [PATCH v1 3/4] arm: dts: mt7623: add display related nodes

2017-09-21 Thread Ryder Lee
On Wed, 2017-09-20 at 09:11 +0800, CK Hu wrote: > Hi, Ryder: > > Mode comment inline. > > On Tue, 2017-09-19 at 14:27 +0800, Ryder Lee wrote: > > > + smi_common: smi@1000c000 { > > + compatible = "mediatek,mt7623-smi-common", > >

[PATCH] PCI: mediatek: fix error handling in mtk_pcie_parse_and_add_res()

2017-06-04 Thread Ryder Lee
The 'linkup' variable would always increment by one whether the link status is true or not. Therefore, this patch fixes the return value in mtk_pcie_parse_and_add_res() and removes unnecessary 'linkup' variable. Signed-off-by: Ryder Lee --- drivers/pci/host/pcie-mediatek.c

Re: [PATCH v2 4/5] PCI: mediatek: Add new generation controller support

2017-08-04 Thread Ryder Lee
Hi Honghui, Bjorn, On Fri, 2017-08-04 at 08:18 -0500, Bjorn Helgaas wrote: > On Fri, Aug 04, 2017 at 04:39:36PM +0800, Honghui Zhang wrote: > > On Thu, 2017-08-03 at 17:42 -0500, Bjorn Helgaas wrote: > > > > + > > > > +static struct mtk_pcie_port *mtk_pcie_find_port(struct mtk_pcie *pcie, > > > >

Re: [PATCH v2 4/5] PCI: mediatek: Add new generation controller support

2017-08-04 Thread Ryder Lee
On Sat, 2017-08-05 at 12:52 +0800, Ryder Lee wrote: > Hi Honghui, Bjorn, > > On Fri, 2017-08-04 at 08:18 -0500, Bjorn Helgaas wrote: > > On Fri, Aug 04, 2017 at 04:39:36PM +0800, Honghui Zhang wrote: > > > On Thu, 2017-08-03 at 17:42 -0500, Bjorn Helgaas wrote: >

Re: [PATCH v3 5/6] PCI: mediatek: Add new generation controller support

2017-08-05 Thread Ryder Lee
Hi Honghui, If you plan to send next version, then I would suggest some minor changes. On Fri, 2017-08-04 at 20:06 +0800, honghui.zh...@mediatek.com wrote: > +#define PCIE_CRSTB BIT(3) > +#define PCIE_PERSTB BIT(8) > +#define PCI_LINKDOWN_RST_EN GENMASK(15, 13) PCIE_LINKDOWN_

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

2017-07-28 Thread Ryder Lee
On Fri, 2017-07-28 at 12:20 +0300, Sergei Shtylyov wrote: > > +Required properties: > > + - compatible : Must be "mediatek,ahci". > > + - reg: Physical base addresses and length of register > > sets. > > + - interrupts : Interrupt associated with the SATA device. >

<    1   2   3   4   5   >