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 bias-di
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
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 a
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
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
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
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
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
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
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
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
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
> >
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.
> >
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
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
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
)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
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
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
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
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 compatibl
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
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
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".
> > 4)Change
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
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
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
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
" 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
On Sat, 2017-06-24 at 21:02 +0100, Jonathan Cameron wrote:
> On Thu, 22 Jun 2017 13:44:32 +0800
> Zhiyong Tao wrote:
>
> > The commit adds mt7622 compatible node in binding document.
> >
> > Signed-off-by: Zhiyong Tao
> > ---
> > .../devicetree/bin
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
---
drivers/iio/adc/mt6577_auxadc.c | 38 ++
1 file changed, 38 insertions(+)
diff
This commit adds mt7622 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 c174b73..4224fc0 100644
--- a/drivers/iio/adc/mt6577_auxadc.c
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/
The commit adds mt7622 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
On Sat, 2017-06-24 at 21:00 +0100, Jonathan Cameron wrote:
> On Thu, 22 Jun 2017 13:44:33 +0800
> Zhiyong Tao wrote:
>
> > This patch supports auxadc suspend/resume flow.
> > Disable auxadc clk and power in suspend function.
> > Enable axuadc clk and power in resume fu
On Sat, 2017-06-24 at 21:02 +0100, Jonathan Cameron wrote:
> On Thu, 22 Jun 2017 13:44:34 +0800
> Zhiyong Tao wrote:
>
> > This commit adds mt7622 compatible node.
> >
> > Signed-off-by: Zhiyong Tao
> > ---
> > drivers/iio/adc/mt6577_auxadc.c |
This commit adds mt7622 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 2dd7c74..4a2cd9e 100644
--- a/drivers/iio/adc/mt6577_auxadc.c
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
The commit adds mt7622 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
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
---
drivers/iio/adc/mt6577_auxadc.c | 37 +
1 file changed, 37 insertions(+)
diff
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
> > ---
> > This patch dependents on "Add clock suppo
SCALE and OFFSET. use channel type
'IIO_CHAN_INFO_PROCESSED' instead of 'IIO_CHAN_INFO_RAW'.
5).Remove 'IIO_CHAN_INFO_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
: Zhiyong Tao
---
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
diff --git a/drivers/iio/adc
Signed-off-by: Zhiyong Tao
---
.../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/mt6577_auxadc.txt} (46%)
diff --git a/Documen
The commit adds auxadc nodes to the Mediatek MT2701 dtsi file.
Signed-off-by: Zhiyong Tao
---
This patch dependents on "Add clock support for Mediatek MT2701"[1].
Please accept this patch together with [1].
[1]http://lists.infradead.org/pipermail/linux-mediatek/2016-August/006620.html
Signed-off-by: Zhiyong Tao
---
.../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/mt6577_auxadc.txt} (46%)
diff --git a/Documen
77_auxadc.c.
2).Add 'depends on ARCH_MEDIATEK || COMPILE_TEST and HAS_IOMEM' for
MEDIATEK_MT65XX_AUXADC config.
3).Add check case for return value of 'readl_poll_timeout'.
4).Remove returning 1 and 0 for SCALE and OFFSET. use channel type
'IIO_CHAN_INFO_PROCESSED'
The commit adds auxadc nodes to the Mediatek MT2701 dtsi file.
Signed-off-by: Zhiyong Tao
---
This patch dependents on "Add clock support for Mediatek MT2701"[1].
Please accept this patch together with [1].
[1]http://lists.infradead.org/pipermail/linux-mediatek/2016-June/005969.html
: Zhiyong Tao
---
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
diff --git a/drivers/iio/adc
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-
The commit adds auxadc nodes to the Mediatek MT2701 dtsi file.
Signed-off-by: Zhiyong Tao
---
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 42d5a37..c0a2644 100644
--- a/arch/arm
Signed-off-by: Zhiyong Tao
---
.../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/mt6577_auxadc.txt} (46%)
diff --git a/Documen
: Zhiyong Tao
---
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
diff --git a/drivers/iio/adc
ESSED' instead of 'IIO_CHAN_INFO_RAW'.
5).Remove 'IIO_CHAN_INFO_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 execut
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.
>
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.
> >
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
>
: Zhiyong Tao
---
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
diff --git a/drivers/iio/adc
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
The commit adds auxadc nodes to the Mediatek MT2701 dtsi file.
Signed-off-by: Zhiyong Tao
---
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 42d5a37..c0a2644 100644
--- a/arch/arm
0 for SCALE and OFFSET. use channel type
'IIO_CHAN_INFO_PROCESSED' instead of 'IIO_CHAN_INFO_RAW'.
5).Remove 'IIO_CHAN_INFO_OFFSET' and 'IIO_CHAN_INFO_SCALE' in
'MT65XX_AUXADC_CHANNEL' channel type.
6).Add check case when auxadc power on failure. if
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
: Zhiyong Tao
---
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/iio/adc/Kconfig b/drivers/iio/adc
IO_CHAN_INFO_PROCESSED' instead of 'IIO_CHAN_INFO_RAW'.
5).Remove 'IIO_CHAN_INFO_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_unpr
The commit adds auxadc nodes to the Mediatek MT2701 dtsi file.
Signed-off-by: Zhiyong Tao
---
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 42d5a37..464c86a 100644
--- a/arch/arm
: Zhiyong Tao
---
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
diff --git a/drivers/iio/adc
7;.
5).Remove 'IIO_CHAN_INFO_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_devi
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
101 - 168 of 168 matches
Mail list logo