[PATCH v6 1/3] dt-bindings: auxadc: Add binding document for Mediatek auxadc.

2016-07-27 Thread Zhiyong Tao
<r...@kernel.org> Signed-off-by: Zhiyong Tao <zhiyong@mediatek.com> --- .../auxadc.txt => iio/adc/mt6577_auxadc.txt} | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) rename Documentation/devicetree/bindings/{soc/mediatek/auxadc.txt => iio/adc

[PATCH v6 0/3] AUXADC: Mediatek auxadc driver

2016-07-27 Thread Zhiyong Tao
NFO_OFFSET' and 'IIO_CHAN_INFO_SCALE' in 'MT65XX_AUXADC_CHANNEL' channel type. 6).Add check case when auxadc power on failure. if auxadc power on failure, clk_disable_unprepare should be executed. 7).Put 'platform_set_drvdata' before 'iio_device_register'. 8).Fix coding style and spelling error

[PATCH v6 3/3] arm: dts: mt2701: Add auxadc node.

2016-07-27 Thread Zhiyong Tao
The commit adds auxadc nodes to the Mediatek MT2701 dtsi file. Signed-off-by: Zhiyong Tao <zhiyong@mediatek.com> --- This patch dependents on "Add clock support for Mediatek MT2701"[1]. Please accept this patch together with [1]. [1]http://lists.infradead.org/pipermail/lin

[PATCH v6 2/3] iio: adc: mt2701: Add Mediatek auxadc driver for mt2701.

2016-07-27 Thread Zhiyong Tao
-by: Zhiyong Tao <zhiyong@mediatek.com> --- drivers/iio/adc/Kconfig | 13 ++ drivers/iio/adc/Makefile|1 + drivers/iio/adc/mt6577_auxadc.c | 291 +++ 3 files changed, 305 insertions(+) create mode 100644 drivers/iio/adc/mt6577_auxadc.c

Re: [PATCH v5 3/3] arm: dts: mt2701: Add auxadc node.

2016-07-21 Thread zhiyong tao
ystem] > > url: > https://github.com/0day-ci/linux/commits/Zhiyong-Tao/AUXADC-Mediatek-auxadc-driver/20160722-041141 > base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git > for-next > config: arm-at91_dt_defconfig (attached as .config) > compiler: arm-

[PATCH v5 1/3] dt-bindings: auxadc: Add binding document for Mediatek auxadc.

2016-07-21 Thread Zhiyong Tao
<r...@kernel.org> Signed-off-by: Zhiyong Tao <zhiyong@mediatek.com> --- .../auxadc.txt => iio/adc/mt6577_auxadc.txt} | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) rename Documentation/devicetree/bindings/{soc/mediatek/auxadc.txt => iio/adc

[PATCH v5 3/3] arm: dts: mt2701: Add auxadc node.

2016-07-21 Thread Zhiyong Tao
The commit adds auxadc nodes to the Mediatek MT2701 dtsi file. Signed-off-by: Zhiyong Tao <zhiyong@mediatek.com> --- arch/arm/boot/dts/mt2701.dtsi |9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi index 4

[PATCH v5 2/3] iio: adc: mt2701: Add Mediatek auxadc driver for mt2701.

2016-07-21 Thread Zhiyong Tao
-by: Zhiyong Tao <zhiyong@mediatek.com> --- drivers/iio/adc/Kconfig | 13 ++ drivers/iio/adc/Makefile|1 + drivers/iio/adc/mt6577_auxadc.c | 289 +++ 3 files changed, 303 insertions(+) create mode 100644 drivers/iio/adc/mt6577_auxadc.c

[PATCH v5 0/3] AUXADC: Mediatek auxadc driver

2016-07-21 Thread Zhiyong Tao
'platform_set_drvdata' before 'iio_device_register'. 8).Fix coding style and spelling error. Zhiyong Tao (3): dt-bindings: auxadc: Add binding document for Mediatek auxadc. iio: adc: mt2701: Add Mediatek auxadc driver for mt2701. arm: dts: mt2701: Add auxadc node. .../auxadc.txt => iio/

Re: [PATCH v4 2/3] iio: adc: mt2701: Add Mediatek auxadc driver for mt2701.

2016-07-20 Thread zhiyong tao
On Mon, 2016-07-18 at 18:12 +0100, Jonathan Cameron wrote: > On 11/07/16 07:39, Zhiyong Tao wrote: > > Add Mediatek auxadc driver based on iio. > > It will register a device in iio and support iio. > > So thermal can read auxadc channel to sample data by iio device. > >

Re: [PATCH v4 2/3] iio: adc: mt2701: Add Mediatek auxadc driver for mt2701.

2016-07-20 Thread zhiyong tao
On Wed, 2016-07-20 at 14:02 +0800, zhiyong tao wrote: > On Mon, 2016-07-18 at 18:12 +0100, Jonathan Cameron wrote: > > On 11/07/16 07:39, Zhiyong Tao wrote: > > > Add Mediatek auxadc driver based on iio. > > > It will register a device in iio and support iio. >

Re: [PATCH v4 1/3] dt-bindings: auxadc: Add binding document for Mediatek auxadc.

2016-07-11 Thread zhiyong tao
On Mon, 2016-07-11 at 14:39 +0800, Zhiyong Tao wrote: > The commit adds the device tree binding documentation for the mediatek > auxadc found on Mediatek MT2701. > Thermal gets auxadc sample data by iio device. > So the commit changes auxadc device tree binding documentation from >

[PATCH v2 0/3] AUXADC: Mediatek auxadc driver

2016-07-04 Thread Zhiyong Tao
' and 'IIO_CHAN_INFO_SCALE' in 'MT65XX_AUXADC_CHANNEL' channel type. 6).Add check case when auxadc power on failure. if auxadc power on failure, clk_disable_unprepare should be executed. 7).Put 'platform_set_drvdata' before 'iio_device_register'. 8).Fix coding style and spelling error. Zhiyong Tao (3): dt-bindings

[PATCH v2 1/3] dt-bindings: auxadc: Add binding document for Mediatek auxadc.

2016-07-04 Thread Zhiyong Tao
The commit adds the device tree binding documentation for the mediatek auxadc found on Mediatek MT2701. Thermal gets auxadc sample data by iio device. So the commit changes auxadc device tree binding documentation from /soc/mediatek/auxadc.txt to /iio/adc/mt65xx_auxadc.txt. Signed-off-by: Zhiyong

[PATCH v2 2/3] auxadc: Add Mediatek auxadc driver for mt2701.

2016-07-04 Thread Zhiyong Tao
-by: Zhiyong Tao <zhiyong@mediatek.com> --- drivers/iio/adc/Kconfig | 13 ++ drivers/iio/adc/Makefile|1 + drivers/iio/adc/mt6577_auxadc.c | 301 +++ 3 files changed, 315 insertions(+) create mode 100644 drivers/iio/adc/mt6577_auxadc.c

[PATCH v2 3/3] arm: dts: auxadc: Add auxadc node.

2016-07-04 Thread Zhiyong Tao
The commit adds auxadc nodes to the Mediatek MT2701 dtsi file. Signed-off-by: Zhiyong Tao <zhiyong@mediatek.com> --- arch/arm/boot/dts/mt2701.dtsi |9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi index 4

[PATCH v3 2/2] iio: adc: mt2701: Add Mediatek auxadc driver for mt2701.

2016-07-10 Thread Zhiyong Tao
-by: Zhiyong Tao <zhiyong@mediatek.com> --- drivers/iio/adc/Kconfig | 26 +++--- drivers/iio/adc/Makefile|2 +- drivers/iio/adc/mt6577_auxadc.c | 186 +++ 3 files changed, 104 insertions(+), 110 deletions(-) diff --git a/drivers/i

[PATCH v3 0/2] AUXADC: Mediatek auxadc driver

2016-07-10 Thread Zhiyong Tao
. 6).Add check case when auxadc power on failure. if auxadc power on failure, clk_disable_unprepare should be executed. 7).Put 'platform_set_drvdata' before 'iio_device_register'. 8).Fix coding style and spelling error. Zhiyong Tao (2): dt-bindings: auxadc: Add binding document for Mediatek

[PATCH v3 1/2] dt-bindings: auxadc: Add binding document for Mediatek auxadc.

2016-07-10 Thread Zhiyong Tao
The commit adds the device tree binding documentation for the mediatek auxadc found on Mediatek MT2701. Thermal gets auxadc sample data by iio device. So the commit changes auxadc device tree binding documentation from /soc/mediatek/auxadc.txt to /iio/adc/mt65xx_auxadc.txt. Signed-off-by: Zhiyong

[PATCH v4 0/3] AUXADC: Mediatek auxadc driver

2016-07-11 Thread Zhiyong Tao
on failure. if auxadc power on failure, clk_disable_unprepare should be executed. 7).Put 'platform_set_drvdata' before 'iio_device_register'. 8).Fix coding style and spelling error. Zhiyong Tao (3): dt-bindings: auxadc: Add binding document for Mediatek auxadc. iio: adc: mt2701: Add Mediatek auxadc

[PATCH v4 3/3] arm: dts: mt2701: Add auxadc node.

2016-07-11 Thread Zhiyong Tao
The commit adds auxadc nodes to the Mediatek MT2701 dtsi file. Signed-off-by: Zhiyong Tao <zhiyong@mediatek.com> --- arch/arm/boot/dts/mt2701.dtsi |9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi index 4

[PATCH v4 2/3] iio: adc: mt2701: Add Mediatek auxadc driver for mt2701.

2016-07-11 Thread Zhiyong Tao
-by: Zhiyong Tao <zhiyong@mediatek.com> --- drivers/iio/adc/Kconfig | 13 ++ drivers/iio/adc/Makefile|1 + drivers/iio/adc/mt6577_auxadc.c | 294 +++ 3 files changed, 308 insertions(+) create mode 100644 drivers/iio/adc/mt6577_auxadc.c

[PATCH v4 1/3] dt-bindings: auxadc: Add binding document for Mediatek auxadc.

2016-07-11 Thread Zhiyong Tao
The commit adds the device tree binding documentation for the mediatek auxadc found on Mediatek MT2701. Thermal gets auxadc sample data by iio device. So the commit changes auxadc device tree binding documentation from /soc/mediatek/auxadc.txt to /iio/adc/mt6577_auxadc.txt. Signed-off-by: Zhiyong

Re: [PATCH v7 3/3] arm: dts: mt2701: Add auxadc node.

2016-08-22 Thread zhiyong tao
On Sun, 2016-08-21 at 19:58 +0100, Jonathan Cameron wrote: > On 18/08/16 08:11, Zhiyong Tao wrote: > > The commit adds auxadc nodes to the Mediatek MT2701 dtsi file. > > > > Signed-off-by: Zhiyong Tao <zhiyong@mediatek.com> > > --- > > This patch depend

[PATCH v7 2/3] iio: adc: mt2701: Add Mediatek auxadc driver for mt2701.

2016-08-18 Thread Zhiyong Tao
-by: Zhiyong Tao <zhiyong@mediatek.com> --- drivers/iio/adc/Kconfig | 13 ++ drivers/iio/adc/Makefile|1 + drivers/iio/adc/mt6577_auxadc.c | 291 +++ 3 files changed, 305 insertions(+) create mode 100644 drivers/iio/adc/mt6577_auxadc.c

[PATCH v7 1/3] dt-bindings: auxadc: Add binding document for Mediatek auxadc.

2016-08-18 Thread Zhiyong Tao
<r...@kernel.org> Signed-off-by: Zhiyong Tao <zhiyong@mediatek.com> --- .../auxadc.txt => iio/adc/mt6577_auxadc.txt} | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) rename Documentation/devicetree/bindings/{soc/mediatek/auxadc.txt => iio/adc

[PATCH v7 3/3] arm: dts: mt2701: Add auxadc node.

2016-08-18 Thread Zhiyong Tao
The commit adds auxadc nodes to the Mediatek MT2701 dtsi file. Signed-off-by: Zhiyong Tao <zhiyong@mediatek.com> --- This patch dependents on "Add clock support for Mediatek MT2701"[1]. Please accept this patch together with [1]. [1]http://lists.infradead.org/pipermail/lin

[PATCH v7 0/3] AUXADC: Mediatek auxadc driver

2016-08-18 Thread Zhiyong Tao
ta' before 'iio_device_register'. 8).Fix coding style and spelling error. Zhiyong Tao (3): dt-bindings: auxadc: Add binding document for Mediatek auxadc. iio: adc: mt2701: Add Mediatek auxadc driver for mt2701. arm: dts: mt2701: Add auxadc node. .../auxadc.txt => iio/adc/mt6577_auxadc.txt} |

[PATCH 1/3] dt-bindings: pinctrl: mt2712: add binding document

2017-07-31 Thread Zhiyong Tao
The commit adds mt2712 compatible node in binding document. Signed-off-by: Zhiyong Tao <zhiyong@mediatek.com> --- .../devicetree/bindings/pinctrl/pinctrl-mt65xx.txt |1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.

[PATCH 3/3] pinctrl: add mt2712 pinctrl driver

2017-07-31 Thread Zhiyong Tao
" and add "spec_dir_get" in "pinctrl-mt2701.c" and "pinctrl-mtk-common.c". 5)Change "port_mask" from "7" to "6" for EINT. 6)Remove generic pull config condition in "mtk_pconf_set_pull_select". 7)Change "arg"

[PATCH 0/3] PINCTRL: Mediatek pinctrl driver for mt2712

2017-07-31 Thread Zhiyong Tao
This series includes three patches: 1.Add mt2712 compatible node in binding document. 2.Add mt2712 pinctrl device node. 3.Add mt2712 pinctrl driver. Zhiyong Tao (3): dt-bindings: pinctrl: mt2712: add binding document arm64: dts: mt2712: add pintcrl device node. pinctrl: add mt2712 pinctrl

[PATCH 2/3] arm64: dts: mt2712: add pintcrl device node.

2017-07-31 Thread Zhiyong Tao
The commit includes two change: 1)add pintcrl device node for mt2712. 2)add pinfunc file for mt2712. Signed-off-by: Zhiyong Tao <zhiyong@mediatek.com> --- arch/arm64/boot/dts/mediatek/mt2712-pinfunc.h | 1014 + arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 1

Re: [PATCH 3/3] pinctrl: add mt2712 pinctrl driver

2017-08-02 Thread Zhiyong Tao
On Tue, 2017-08-01 at 17:14 +0800, Yingjoe Chen wrote: > > Hi Zhiyong, > > > > On Mon, 2017-07-31 at 16:22 +0800, Zhiyong Tao wrote: > <...> > > 3)Add "spec_dir_set" and "spec_dir_get" in "mtk_pinctrl_devdata". > >

Re: [PATCH 0/3] PINCTRL: Mediatek pinctrl driver for mt2712

2017-08-01 Thread Zhiyong Tao
On Tue, 2017-08-01 at 16:44 +0800, Yingjoe Chen wrote: > On Mon, 2017-07-31 at 16:22 +0800, Zhiyong Tao wrote: > > This series includes three patches: > > 1.Add mt2712 compatible node in binding document. > > 2.Add mt2712 pinctrl device node. > > 3.Add mt2712 pinctrl d

[PATCH 1/3] dt-bindings: adc: mt7622: add binding document

2017-06-21 Thread Zhiyong Tao
The commit adds mt7622 compatible node in binding document. Signed-off-by: Zhiyong Tao <zhiyong@mediatek.com> --- .../devicetree/bindings/iio/adc/mt6577_auxadc.txt |1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/iio/adc/mt6577_auxadc.

[PATCH 2/3] iio: adc: mt7622: add support for suspend/resume.

2017-06-21 Thread Zhiyong Tao
This patch supports auxadc suspend/resume flow. Disable auxadc clk and power in suspend function. Enable axuadc clk and power in resume function. Signed-off-by: Zhiyong Tao <zhiyong@mediatek.com> --- drivers/iio/adc/mt6577_auxadc.c | 37 + 1 file c

[PATCH 3/3] iio: adc: mt7622: Add compatible node for mt7622.

2017-06-21 Thread Zhiyong Tao
This commit adds mt7622 compatible node. Signed-off-by: Zhiyong Tao <zhiyong@mediatek.com> --- drivers/iio/adc/mt6577_auxadc.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iio/adc/mt6577_auxadc.c b/drivers/iio/adc/mt6577_auxadc.c index 2dd7c74..4a2cd9e 100644 --- a/d

[PATCH 0/3] ADC: Mediatek auxadc driver for mt7622

2017-06-21 Thread Zhiyong Tao
These patches are first version of Mediatek auxadc driver for mt7622. These patches include three patches. The First patch adds mt7622 compatible node in binding document. The second patch adds support for suspend/resume. The last patch adds mt7622 compatible node in auxadc driver. Zhiyong Tao (3

[PATCH v2 1/3] dt-bindings: adc: mt7622: add binding document

2017-06-26 Thread Zhiyong Tao
The commit adds mt7622 compatible node in binding document. Signed-off-by: Zhiyong Tao <zhiyong@mediatek.com> --- .../devicetree/bindings/iio/adc/mt6577_auxadc.txt |1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/iio/adc/mt6577_auxadc.

[PATCH v2 0/3] ADC: Mediatek auxadc driver for mt7622

2017-06-26 Thread Zhiyong Tao
ed" for suspend/resume. 3).Change "dev_pm_ops" to "SIMPLE_DEV_PM_OPS". Zhiyong Tao (3): dt-bindings: adc: mt7622: add binding document iio: adc: mt7622: add support for suspend/resume. iio: adc: mt7622: Add compatible node for mt7622. .../devicetree/bindings/iio/

[PATCH v2 2/3] iio: adc: mt7622: add support for suspend/resume.

2017-06-26 Thread Zhiyong Tao
This patch supports auxadc suspend/resume flow. Disable auxadc clk and power in suspend function. Enable axuadc clk and power in resume function. Signed-off-by: Zhiyong Tao <zhiyong@mediatek.com> --- drivers/iio/adc/mt6577_auxadc.c | 38 ++

[PATCH v2 3/3] iio: adc: mt7622: Add compatible node for mt7622.

2017-06-26 Thread Zhiyong Tao
This commit adds mt7622 compatible node. Signed-off-by: Zhiyong Tao <zhiyong@mediatek.com> --- drivers/iio/adc/mt6577_auxadc.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iio/adc/mt6577_auxadc.c b/drivers/iio/adc/mt6577_auxadc.c index c174b73..4224fc0 100644 --- a/d

Re: [PATCH 3/3] iio: adc: mt7622: Add compatible node for mt7622.

2017-06-25 Thread zhiyong tao
On Sat, 2017-06-24 at 21:02 +0100, Jonathan Cameron wrote: > On Thu, 22 Jun 2017 13:44:34 +0800 > Zhiyong Tao <zhiyong@mediatek.com> wrote: > > > This commit adds mt7622 compatible node. > > > > Signed-off-by: Zhiyong Tao <zhiyong@mediat

Re: [PATCH 2/3] iio: adc: mt7622: add support for suspend/resume.

2017-06-25 Thread zhiyong tao
On Sat, 2017-06-24 at 21:00 +0100, Jonathan Cameron wrote: > On Thu, 22 Jun 2017 13:44:33 +0800 > Zhiyong Tao <zhiyong@mediatek.com> wrote: > > > This patch supports auxadc suspend/resume flow. > > Disable auxadc clk and power in suspend function. > > Enab

Re: [PATCH 1/3] dt-bindings: adc: mt7622: add binding document

2017-06-26 Thread Zhiyong Tao
On Sat, 2017-06-24 at 21:02 +0100, Jonathan Cameron wrote: > On Thu, 22 Jun 2017 13:44:32 +0800 > Zhiyong Tao <zhiyong@mediatek.com> wrote: > > > The commit adds mt7622 compatible node in binding document. > > > > Signed-off-by: Zhiy

[PATCH 1/3] dt-bindings: adc: mt2712: add binding document

2017-09-20 Thread Zhiyong Tao
The commit adds mt2712 compatible node in binding document. Signed-off-by: Zhiyong Tao <zhiyong@mediatek.com> --- .../devicetree/bindings/iio/adc/mt6577_auxadc.txt |1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/iio/adc/mt6577_auxadc.

[PATCH 2/3] iio: adc: mt2712: Add compatible node for mt2712.

2017-09-20 Thread Zhiyong Tao
This commit adds mt2712 compatible node. Signed-off-by: Zhiyong Tao <zhiyong@mediatek.com> --- drivers/iio/adc/mt6577_auxadc.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iio/adc/mt6577_auxadc.c b/drivers/iio/adc/mt6577_auxadc.c index 414cf44..70bfa1e 100644 --- a/d

[PATCH 3/3] arm64: dts: mt2712: Add auxadc device node.

2017-09-20 Thread Zhiyong Tao
Add auxadc device node for MT2712. Signed-off-by: Zhiyong Tao <zhiyong@mediatek.com> --- This patch dependents on "Mediatek MT2712 clock and scpsys support"[1]. Please accept this patch together with [1]. [1]http://lists.infradead.org/pipermail/linux-mediatek/2017-Septe

[PATCH 0/3] AUXADC: Mediatek auxadc driver for mt2712

2017-09-20 Thread Zhiyong Tao
This series includes three patches: 1.Add mt2712 auxadc compatible node in binding document. 2.Add mt2712 auxadc compatible node in "mt6577_auxadc.c". 2.Add mt2712 auxadc device node. Zhiyong Tao (3): dt-bindings: adc: mt2712: add binding document iio: adc: mt2712: Add compa

Re: [PATCH 3/3] pinctrl: add mt2712 pinctrl driver

2017-09-21 Thread Zhiyong Tao
On Thu, 2017-08-03 at 10:00 +0800, Yingjoe Chen wrote: > On Wed, 2017-08-02 at 14:03 +0800, Zhiyong Tao wrote: > > On Tue, 2017-08-01 at 17:14 +0800, Yingjoe Chen wrote: > > > > > > Hi Zhiyong, > > > > > > > > > > > > On Mon, 2017

[PATCH v2 1/4] arm64: dts: mt2712: add pintcrl file

2018-02-26 Thread Zhiyong Tao
This patch adds pinctrl file for mt2712. Signed-off-by: Zhiyong Tao <zhiyong@mediatek.com> --- arch/arm64/boot/dts/mediatek/mt2712-pinfunc.h | 1129 + 1 file changed, 1129 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt2712-pinfunc.h diff

[PATCH v2 0/4] PINCTRL: Mediatek pinctrl driver for mt2712

2018-02-26 Thread Zhiyong Tao
)GPIO16~17 direction setting is changed as generic pins in mt2712 E2, So remove GPIO16~17 special direction setting and remove apmixedsys node in pinctrl device node. 3)Add pinmux define in "mt2712-pinfunc.h" and "pinctrl-mtk-mt2712.h" for mt2712 E2 design. Zhiyong Tao (4): arm

[PATCH v2 3/4] pinctrl: add mt2712 pinctrl driver

2018-02-26 Thread Zhiyong Tao
The commit includes mt2712 pinctrl driver. Signed-off-by: Zhiyong Tao <zhiyong@mediatek.com> --- drivers/pinctrl/mediatek/Kconfig |7 + drivers/pinctrl/mediatek/Makefile |1 + drivers/pinctrl/mediatek/pinctrl-mt2712.c | 639 drivers/p

[PATCH v2 2/4] arm64: dts: mt2712: add pintcrl device node.

2018-02-26 Thread Zhiyong Tao
This patch adds pintcrl device node for mt2712. Signed-off-by: Zhiyong Tao <zhiyong@mediatek.com> --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/me

[PATCH v2 4/4] pintcrl: support bias-disable of generic and special pins simultaneously

2018-02-26 Thread Zhiyong Tao
For generic pins, parameter "arg" is 0 or 1. For special pins, bias-disable is set by R0R1, so we need transmited "00" to set bias-disable When we set "bias-disable" as high-z property, the parameter should be "MTK_PUPD_SET_R1R0_00". Signed-off-b

Re: [PATCH v2 4/4] pintcrl: support bias-disable of generic and special pins simultaneously

2018-02-28 Thread Zhiyong Tao
On Wed, 2018-02-28 at 15:49 +0800, Zhiyong Tao wrote: > On Wed, 2018-02-28 at 15:33 +0800, Sean Wang wrote: > > On Mon, 2018-02-26 at 16:34 +0800, Zhiyong Tao wrote: > > > For generic pins, parameter "arg" is 0 or 1. > > > For special pins, bias-disable is set

[PATCH v4 3/5] pinctrl: add mt2712 pinctrl driver

2018-03-21 Thread Zhiyong Tao
The commit includes mt2712 pinctrl driver. Signed-off-by: Zhiyong Tao <zhiyong@mediatek.com> --- drivers/pinctrl/mediatek/Kconfig |7 + drivers/pinctrl/mediatek/Makefile |1 + drivers/pinctrl/mediatek/pinctrl-mt2712.c | 634 + drivers/p

[PATCH v4 4/5] pintcrl: support bias-disable of generic and special pins simultaneously

2018-03-21 Thread Zhiyong Tao
For generic pins, parameter "arg" is 0 or 1. For special pins, bias-disable is set by R0R1, so we need transmited "00" to set bias-disable When we set "bias-disable" as high-z property, the parameter should be "MTK_PUPD_SET_R1R0_00". Signed-off-b

[PATCH v4 1/5] arm64: dts: mt2712: add pintcrl file

2018-03-21 Thread Zhiyong Tao
This patch adds pinctrl file for mt2712. Signed-off-by: Zhiyong Tao <zhiyong@mediatek.com> Reviewed-by: Rob Herring <r...@kernel.org> --- arch/arm64/boot/dts/mediatek/mt2712-pinfunc.h | 1123 + 1 file changed, 1123 insertions(+) create mode 100644 arch/ar

[PATCH v4 2/5] arm64: dts: mt2712: add pintcrl device node.

2018-03-21 Thread Zhiyong Tao
This patch adds pintcrl device node for mt2712. Signed-off-by: Zhiyong Tao <zhiyong@mediatek.com> --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/me

[PATCH v4 0/5] PINCTRL: Mediatek pinctrl driver for mt2712

2018-03-21 Thread Zhiyong Tao
in pinctrl device node. 3)Add pinmux define in "mt2712-pinfunc.h" and "pinctrl-mtk-mt2712.h" for mt2712 E2 design. Zhiyong Tao (5): arm64: dts: mt2712: add pintcrl file arm64: dts: mt2712: add pintcrl device node. pinctrl: add mt2712 pinctrl driver pintcrl: support bia

Re: [PATCH v2 4/4] pintcrl: support bias-disable of generic and special pins simultaneously

2018-03-04 Thread Zhiyong Tao
On Thu, 2018-03-01 at 15:43 +0800, Sean Wang wrote: > On Thu, 2018-03-01 at 11:47 +0800, Zhiyong Tao wrote: > > On Wed, 2018-02-28 at 15:49 +0800, Zhiyong Tao wrote: > > > On Wed, 2018-02-28 at 15:33 +0800, Sean Wang wrote: > > > > On Mon, 2018-02-26 at

[PATCH v3 1/4] arm64: dts: mt2712: add pintcrl file

2018-03-05 Thread Zhiyong Tao
This patch adds pinctrl file for mt2712. Signed-off-by: Zhiyong Tao <zhiyong@mediatek.com> --- arch/arm64/boot/dts/mediatek/mt2712-pinfunc.h | 1123 + 1 file changed, 1123 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt2712-pinfunc.h diff

[PATCH v3 0/4] PINCTRL: Mediatek pinctrl driver for mt2712

2018-03-05 Thread Zhiyong Tao
of generic and special pins. 2)GPIO16~17 direction setting is changed as generic pins in mt2712 E2, So remove GPIO16~17 special direction setting and remove apmixedsys node in pinctrl device node. 3)Add pinmux define in "mt2712-pinfunc.h" and "pinctrl-mtk-mt2712.h" for mt2712 E2 des

[PATCH v3 3/4] pinctrl: add mt2712 pinctrl driver

2018-03-05 Thread Zhiyong Tao
The commit includes mt2712 pinctrl driver. Signed-off-by: Zhiyong Tao <zhiyong@mediatek.com> --- drivers/pinctrl/mediatek/Kconfig |7 + drivers/pinctrl/mediatek/Makefile |1 + drivers/pinctrl/mediatek/pinctrl-mt2712.c | 632 drivers/p

[PATCH v3 4/4] pintcrl: support bias-disable of generic and special pins simultaneously

2018-03-05 Thread Zhiyong Tao
For generic pins, parameter "arg" is 0 or 1. For special pins, bias-disable is set by R0R1, so we need transmited "00" to set bias-disable When we set "bias-disable" as high-z property, the parameter should be "MTK_PUPD_SET_R1R0_00". Signed-off-b

[PATCH v3 2/4] arm64: dts: mt2712: add pintcrl device node.

2018-03-05 Thread Zhiyong Tao
This patch adds pintcrl device node for mt2712. Signed-off-by: Zhiyong Tao <zhiyong@mediatek.com> --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/me

Re: [PATCH v2 3/4] pinctrl: add mt2712 pinctrl driver

2018-02-27 Thread Zhiyong Tao
On Wed, 2018-02-28 at 15:14 +0800, Sean Wang wrote: > Hi, Zhiyong > > all seems better than v1, but some nitpicking is addressed as below > > Sean > > On Mon, 2018-02-26 at 16:34 +0800, Zhiyong Tao wrote: > > The commit includes mt2712 pinctrl driver. > >

Re: [PATCH v2 1/4] arm64: dts: mt2712: add pintcrl file

2018-02-27 Thread Zhiyong Tao
On Wed, 2018-02-28 at 14:42 +0800, Sean Wang wrote: > On Mon, 2018-02-26 at 16:33 +0800, Zhiyong Tao wrote: > > This patch adds pinctrl file for mt2712. > > > > Signed-off-by: Zhiyong Tao <zhiyong@mediatek.com> > > --- > > arch/arm64/bo

Re: [PATCH v2 4/4] pintcrl: support bias-disable of generic and special pins simultaneously

2018-02-27 Thread Zhiyong Tao
On Wed, 2018-02-28 at 15:33 +0800, Sean Wang wrote: > On Mon, 2018-02-26 at 16:34 +0800, Zhiyong Tao wrote: > > For generic pins, parameter "arg" is 0 or 1. > > For special pins, bias-disable is set by R0R1, > > so we need transmited "00" to set bias-disab

Re: [PATCH v2 4/4] pintcrl: support bias-disable of generic and special pins simultaneously

2018-02-28 Thread Zhiyong Tao
On Wed, 2018-02-28 at 15:49 +0800, Zhiyong Tao wrote: > On Wed, 2018-02-28 at 15:33 +0800, Sean Wang wrote: > > On Mon, 2018-02-26 at 16:34 +0800, Zhiyong Tao wrote: > > > For generic pins, parameter "arg" is 0 or 1. > > > For special pins, bias-disable is set

[PATCH v4 1/5] arm64: dts: mt2712: add pintcrl file

2018-03-21 Thread Zhiyong Tao
This patch adds pinctrl file for mt2712. Signed-off-by: Zhiyong Tao Reviewed-by: Rob Herring --- arch/arm64/boot/dts/mediatek/mt2712-pinfunc.h | 1123 + 1 file changed, 1123 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt2712-pinfunc.h diff --git

[PATCH v4 2/5] arm64: dts: mt2712: add pintcrl device node.

2018-03-21 Thread Zhiyong Tao
This patch adds pintcrl device node for mt2712. Signed-off-by: Zhiyong Tao --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi index d7688bc

[PATCH v4 0/5] PINCTRL: Mediatek pinctrl driver for mt2712

2018-03-21 Thread Zhiyong Tao
in pinctrl device node. 3)Add pinmux define in "mt2712-pinfunc.h" and "pinctrl-mtk-mt2712.h" for mt2712 E2 design. Zhiyong Tao (5): arm64: dts: mt2712: add pintcrl file arm64: dts: mt2712: add pintcrl device node. pinctrl: add mt2712 pinctrl driver pintcrl: support bia

[PATCH v4 3/5] pinctrl: add mt2712 pinctrl driver

2018-03-21 Thread Zhiyong Tao
The commit includes mt2712 pinctrl driver. Signed-off-by: Zhiyong Tao --- drivers/pinctrl/mediatek/Kconfig |7 + drivers/pinctrl/mediatek/Makefile |1 + drivers/pinctrl/mediatek/pinctrl-mt2712.c | 634 + drivers/pinctrl/mediatek/pinctrl-mtk-mt2712.h

[PATCH v4 4/5] pintcrl: support bias-disable of generic and special pins simultaneously

2018-03-21 Thread Zhiyong Tao
For generic pins, parameter "arg" is 0 or 1. For special pins, bias-disable is set by R0R1, so we need transmited "00" to set bias-disable When we set "bias-disable" as high-z property, the parameter should be "MTK_PUPD_SET_R1R0_00". Signed-off-by: Zh

[PATCH 3/3] pinctrl: add mt2712 pinctrl driver

2017-07-31 Thread Zhiyong Tao
" and add "spec_dir_get" in "pinctrl-mt2701.c" and "pinctrl-mtk-common.c". 5)Change "port_mask" from "7" to "6" for EINT. 6)Remove generic pull config condition in "mtk_pconf_set_pull_select". 7)Change "arg" to &q

[PATCH 0/3] PINCTRL: Mediatek pinctrl driver for mt2712

2017-07-31 Thread Zhiyong Tao
This series includes three patches: 1.Add mt2712 compatible node in binding document. 2.Add mt2712 pinctrl device node. 3.Add mt2712 pinctrl driver. Zhiyong Tao (3): dt-bindings: pinctrl: mt2712: add binding document arm64: dts: mt2712: add pintcrl device node. pinctrl: add mt2712 pinctrl

[PATCH 2/3] arm64: dts: mt2712: add pintcrl device node.

2017-07-31 Thread Zhiyong Tao
The commit includes two change: 1)add pintcrl device node for mt2712. 2)add pinfunc file for mt2712. Signed-off-by: Zhiyong Tao --- arch/arm64/boot/dts/mediatek/mt2712-pinfunc.h | 1014 + arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 18 + 2 files changed, 1032

[PATCH 1/3] dt-bindings: pinctrl: mt2712: add binding document

2017-07-31 Thread Zhiyong Tao
The commit adds mt2712 compatible node in binding document. Signed-off-by: Zhiyong Tao --- .../devicetree/bindings/pinctrl/pinctrl-mt65xx.txt |1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt b/Documentation/devicetree/bindings

Re: [PATCH 3/3] pinctrl: add mt2712 pinctrl driver

2017-09-21 Thread Zhiyong Tao
On Thu, 2017-08-03 at 10:00 +0800, Yingjoe Chen wrote: > On Wed, 2017-08-02 at 14:03 +0800, Zhiyong Tao wrote: > > On Tue, 2017-08-01 at 17:14 +0800, Yingjoe Chen wrote: > > > > > > Hi Zhiyong, > > > > > > > > > > > > On Mon, 2017

[PATCH 1/3] dt-bindings: adc: mt2712: add binding document

2017-09-20 Thread Zhiyong Tao
The commit adds mt2712 compatible node in binding document. Signed-off-by: Zhiyong Tao --- .../devicetree/bindings/iio/adc/mt6577_auxadc.txt |1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/iio/adc/mt6577_auxadc.txt b/Documentation/devicetree/bindings

[PATCH 2/3] iio: adc: mt2712: Add compatible node for mt2712.

2017-09-20 Thread Zhiyong Tao
This commit adds mt2712 compatible node. Signed-off-by: Zhiyong Tao --- drivers/iio/adc/mt6577_auxadc.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iio/adc/mt6577_auxadc.c b/drivers/iio/adc/mt6577_auxadc.c index 414cf44..70bfa1e 100644 --- a/drivers/iio/adc/mt6577_auxadc.c

[PATCH 3/3] arm64: dts: mt2712: Add auxadc device node.

2017-09-20 Thread Zhiyong Tao
Add auxadc device node for MT2712. Signed-off-by: Zhiyong Tao --- This patch dependents on "Mediatek MT2712 clock and scpsys support"[1]. Please accept this patch together with [1]. [1]http://lists.infradead.org/pipermail/linux-mediatek/2017-September/010461.html --- arch/arm6

[PATCH 0/3] AUXADC: Mediatek auxadc driver for mt2712

2017-09-20 Thread Zhiyong Tao
This series includes three patches: 1.Add mt2712 auxadc compatible node in binding document. 2.Add mt2712 auxadc compatible node in "mt6577_auxadc.c". 2.Add mt2712 auxadc device node. Zhiyong Tao (3): dt-bindings: adc: mt2712: add binding document iio: adc: mt2712: Add compa

Re: [PATCH 0/3] PINCTRL: Mediatek pinctrl driver for mt2712

2017-08-01 Thread Zhiyong Tao
On Tue, 2017-08-01 at 16:44 +0800, Yingjoe Chen wrote: > On Mon, 2017-07-31 at 16:22 +0800, Zhiyong Tao wrote: > > This series includes three patches: > > 1.Add mt2712 compatible node in binding document. > > 2.Add mt2712 pinctrl device node. > > 3.Add mt2712 pinctrl d

Re: [PATCH 3/3] pinctrl: add mt2712 pinctrl driver

2017-08-02 Thread Zhiyong Tao
On Tue, 2017-08-01 at 17:14 +0800, Yingjoe Chen wrote: > > Hi Zhiyong, > > > > On Mon, 2017-07-31 at 16:22 +0800, Zhiyong Tao wrote: > <...> > > 3)Add "spec_dir_set" and "spec_dir_get" in "mtk_pinctrl_devdata". > >

[PATCH v2 4/4] pintcrl: support bias-disable of generic and special pins simultaneously

2018-02-26 Thread Zhiyong Tao
For generic pins, parameter "arg" is 0 or 1. For special pins, bias-disable is set by R0R1, so we need transmited "00" to set bias-disable When we set "bias-disable" as high-z property, the parameter should be "MTK_PUPD_SET_R1R0_00". Signed-off-by: Zh

[PATCH v2 0/4] PINCTRL: Mediatek pinctrl driver for mt2712

2018-02-26 Thread Zhiyong Tao
)GPIO16~17 direction setting is changed as generic pins in mt2712 E2, So remove GPIO16~17 special direction setting and remove apmixedsys node in pinctrl device node. 3)Add pinmux define in "mt2712-pinfunc.h" and "pinctrl-mtk-mt2712.h" for mt2712 E2 design. Zhiyong Tao (4): arm

[PATCH v2 3/4] pinctrl: add mt2712 pinctrl driver

2018-02-26 Thread Zhiyong Tao
The commit includes mt2712 pinctrl driver. Signed-off-by: Zhiyong Tao --- drivers/pinctrl/mediatek/Kconfig |7 + drivers/pinctrl/mediatek/Makefile |1 + drivers/pinctrl/mediatek/pinctrl-mt2712.c | 639 drivers/pinctrl/mediatek/pinctrl-mtk-mt2712.h

[PATCH v2 1/4] arm64: dts: mt2712: add pintcrl file

2018-02-26 Thread Zhiyong Tao
This patch adds pinctrl file for mt2712. Signed-off-by: Zhiyong Tao --- arch/arm64/boot/dts/mediatek/mt2712-pinfunc.h | 1129 + 1 file changed, 1129 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt2712-pinfunc.h diff --git a/arch/arm64/boot/dts/mediatek

[PATCH v2 2/4] arm64: dts: mt2712: add pintcrl device node.

2018-02-26 Thread Zhiyong Tao
This patch adds pintcrl device node for mt2712. Signed-off-by: Zhiyong Tao --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi index d7688bc

Re: [PATCH v2 4/4] pintcrl: support bias-disable of generic and special pins simultaneously

2018-03-04 Thread Zhiyong Tao
On Thu, 2018-03-01 at 15:43 +0800, Sean Wang wrote: > On Thu, 2018-03-01 at 11:47 +0800, Zhiyong Tao wrote: > > On Wed, 2018-02-28 at 15:49 +0800, Zhiyong Tao wrote: > > > On Wed, 2018-02-28 at 15:33 +0800, Sean Wang wrote: > > > > On Mon, 2018-02-26 at

[PATCH v3 0/4] PINCTRL: Mediatek pinctrl driver for mt2712

2018-03-05 Thread Zhiyong Tao
of generic and special pins. 2)GPIO16~17 direction setting is changed as generic pins in mt2712 E2, So remove GPIO16~17 special direction setting and remove apmixedsys node in pinctrl device node. 3)Add pinmux define in "mt2712-pinfunc.h" and "pinctrl-mtk-mt2712.h" for mt2712 E2 des

[PATCH v3 1/4] arm64: dts: mt2712: add pintcrl file

2018-03-05 Thread Zhiyong Tao
This patch adds pinctrl file for mt2712. Signed-off-by: Zhiyong Tao --- arch/arm64/boot/dts/mediatek/mt2712-pinfunc.h | 1123 + 1 file changed, 1123 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt2712-pinfunc.h diff --git a/arch/arm64/boot/dts/mediatek

[PATCH v3 3/4] pinctrl: add mt2712 pinctrl driver

2018-03-05 Thread Zhiyong Tao
The commit includes mt2712 pinctrl driver. Signed-off-by: Zhiyong Tao --- drivers/pinctrl/mediatek/Kconfig |7 + drivers/pinctrl/mediatek/Makefile |1 + drivers/pinctrl/mediatek/pinctrl-mt2712.c | 632 drivers/pinctrl/mediatek/pinctrl-mtk-mt2712.h

[PATCH v3 2/4] arm64: dts: mt2712: add pintcrl device node.

2018-03-05 Thread Zhiyong Tao
This patch adds pintcrl device node for mt2712. Signed-off-by: Zhiyong Tao --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi index d7688bc

[PATCH v3 4/4] pintcrl: support bias-disable of generic and special pins simultaneously

2018-03-05 Thread Zhiyong Tao
For generic pins, parameter "arg" is 0 or 1. For special pins, bias-disable is set by R0R1, so we need transmited "00" to set bias-disable When we set "bias-disable" as high-z property, the parameter should be "MTK_PUPD_SET_R1R0_00". Signed-off-by: Zh

Re: [PATCH v2 3/4] pinctrl: add mt2712 pinctrl driver

2018-02-27 Thread Zhiyong Tao
On Wed, 2018-02-28 at 15:14 +0800, Sean Wang wrote: > Hi, Zhiyong > > all seems better than v1, but some nitpicking is addressed as below > > Sean > > On Mon, 2018-02-26 at 16:34 +0800, Zhiyong Tao wrote: > > The commit includes mt2712 pinctrl driver. > >

Re: [PATCH v2 1/4] arm64: dts: mt2712: add pintcrl file

2018-02-27 Thread Zhiyong Tao
On Wed, 2018-02-28 at 14:42 +0800, Sean Wang wrote: > On Mon, 2018-02-26 at 16:33 +0800, Zhiyong Tao wrote: > > This patch adds pinctrl file for mt2712. > > > > Signed-off-by: Zhiyong Tao > > --- > > arch/arm64/boot/dts/mediatek/mt2712-pinfunc.h | 1129 > >

  1   2   3   >