[PATCH] arm64: dts: mt8173: add MT8173 display PWM driver support node

2015-10-06 Thread YH Huang
Add display PWM node in mt8173-evb.dts and mt8173.dtsi. Signed-off-by: YH Huang --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 13 + arch/arm64/boot/dts/mediatek/mt8173.dtsi| 22 ++ 2 files changed, 35 insertions(+) diff --git a/arch/arm64/boot/dts

Re: [PATCH v7 0/3] Add MediaTek display PWM driver

2015-09-14 Thread YH Huang
On Tue, 2015-08-18 at 15:27 +0800, YH Huang wrote: > This patch series add the use of display PWM driver, documentation > and device tree for Mediatek SoCs. The driver is used to support > the backlight of the panel. This is based on v4.2-rc1. > > The clock definitions (CLK_MM

[PATCH v7 1/3] dt-bindings: pwm: add MediaTek display PWM bindings

2015-08-18 Thread YH Huang
Document the device-tree binding of MediaTek display PWM. The PWM has one channel to control the backlight brightness for display. It supports MT8173 and MT6595. Signed-off-by: YH Huang --- .../devicetree/bindings/pwm/pwm-mtk-disp.txt | 42 1 file changed, 42

[PATCH v7 3/3] arm64: dts: mt8173: add MT8173 display PWM driver support node

2015-08-18 Thread YH Huang
Add display PWM node in mt8173-evb.dts and mt8173.dtsi. Signed-off-by: YH Huang --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 13 + arch/arm64/boot/dts/mediatek/mt8173.dtsi| 22 ++ 2 files changed, 35 insertions(+) diff --git a/arch/arm64/boot/dts

[PATCH v7 2/3] pwm: add MediaTek display PWM driver support

2015-08-18 Thread YH Huang
Add display PWM driver support to modify backlight for MT8173 and MT6595. The PWM has one channel to control the brightness of the display. When the (high_width / period) is closer to 1, the screen is brighter; otherwise, it is darker. Signed-off-by: YH Huang --- drivers/pwm/Kconfig

[PATCH v7 0/3] Add MediaTek display PWM driver

2015-08-18 Thread YH Huang
tk-disp". 3. Disable clocks in the error path. 4. Change the shift values in decimal instead of hex. 5. Rename and add some variables or function name for consistency and readability. 6. Drop unnecessary parentheses, spaces, variables and add newlines to make the code easiler to read. YH Huan

Re: [PATCH v6 2/3] pwm: add MediaTek display PWM driver support

2015-08-17 Thread YH Huang
On Mon, 2015-08-17 at 15:23 +0200, Thierry Reding wrote: > On Mon, Jul 20, 2015 at 04:17:16PM +0800, YH Huang wrote: > > Add display PWM driver support to modify backlight for MT8173 and MT6595. > > The PWM has one channel to control the brightness of the display. > > When the

Re: [PATCH v6 1/3] dt-bindings: pwm: add MediaTek display PWM bindings

2015-08-17 Thread YH Huang
On Mon, 2015-08-17 at 15:23 +0200, Thierry Reding wrote: > On Mon, Jul 20, 2015 at 04:17:15PM +0800, YH Huang wrote: > > Document the device-tree binding of MediatTek display PWM. > > I already mentioned this a while back: s/MediatTek/MediaTek/. > Sorry, I will correct it to &q

Re: [PATCH v6 0/3] Add MediaTek display PWM driver

2015-08-02 Thread YH Huang
On Fri, 2015-07-24 at 17:10 +0800, YH Huang wrote: > On Fri, 2015-07-24 at 10:42 +0200, Matthias Brugger wrote: > > On Monday, July 20, 2015 04:17:14 PM YH Huang wrote: > > > This patch series add the use of display PWM driver, documentation > > > and device tree for M

Re: [PATCH v6 0/3] Add MediaTek display PWM driver

2015-07-28 Thread YH Huang
On Fri, 2015-07-24 at 17:10 +0800, YH Huang wrote: > On Fri, 2015-07-24 at 10:42 +0200, Matthias Brugger wrote: > > On Monday, July 20, 2015 04:17:14 PM YH Huang wrote: > > > This patch series add the use of display PWM driver, documentation > > > and device tree for M

Re: [PATCH v6 0/3] Add MediaTek display PWM driver

2015-07-24 Thread YH Huang
On Fri, 2015-07-24 at 10:42 +0200, Matthias Brugger wrote: > On Monday, July 20, 2015 04:17:14 PM YH Huang wrote: > > This patch series add the use of display PWM driver, documentation > > and device tree for Mediatek SoCs. The driver is used to support > > the backlight

[PATCH v6 2/3] pwm: add MediaTek display PWM driver support

2015-07-20 Thread YH Huang
Add display PWM driver support to modify backlight for MT8173 and MT6595. The PWM has one channel to control the brightness of the display. When the (high_width / period) is closer to 1, the screen is brighter; otherwise, it is darker. Signed-off-by: YH Huang --- drivers/pwm/Kconfig

[PATCH v6 3/3] arm64: dts: mt8173: add MT8173 display PWM driver support node

2015-07-20 Thread YH Huang
Add display PWM node in mt8173-evb.dts and mt8173.dtsi. Signed-off-by: YH Huang --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 15 +++ arch/arm64/boot/dts/mediatek/mt8173.dtsi| 22 ++ 2 files changed, 37 insertions(+) diff --git a/arch/arm64/boot/dts

[PATCH v6 1/3] dt-bindings: pwm: add MediaTek display PWM bindings

2015-07-20 Thread YH Huang
Document the device-tree binding of MediatTek display PWM. The PWM has one channel to control the backlight brightness for display. It supports MT8173 and MT6595. Signed-off-by: YH Huang --- .../devicetree/bindings/pwm/pwm-mtk-disp.txt | 42 ++ 1 file changed, 42

[PATCH v6 0/3] Add MediaTek display PWM driver

2015-07-20 Thread YH Huang
ystem clocks of MT8173 Change in v6: 1. Enable clocks in the pwm_enable function 2. Remove suspend/resume code since pwm-backlight driver has done the same things 3. Revise some code to make it easier to read YH Huang (3): dt-bindings: pwm: add MediaTek display PWM bindings pwm: add MediaTek di

Re: [PATCH v5 2/3] pwm: add MediaTek display PWM driver support

2015-07-17 Thread YH Huang
On Fri, 2015-07-17 at 14:59 +0800, Daniel Kurtz wrote: > On Fri, Jul 17, 2015 at 2:35 PM, YH Huang wrote: > > > > On Fri, 2015-07-17 at 01:18 +0800, Daniel Kurtz wrote: > > > On Fri, Jul 17, 2015 at 12:44 AM, YH Huang wrote: > > > > On Thu, 2015-07-1

Re: [PATCH v5 2/3] pwm: add MediaTek display PWM driver support

2015-07-16 Thread YH Huang
On Fri, 2015-07-17 at 01:18 +0800, Daniel Kurtz wrote: > On Fri, Jul 17, 2015 at 12:44 AM, YH Huang wrote: > > On Thu, 2015-07-16 at 23:21 +0800, Daniel Kurtz wrote: > >> On Thu, Jul 16, 2015 at 3:17 PM, YH Huang wrote: > >> > On Thu, 2015-07-16 at 14:54 +0800, Dani

Re: [PATCH v5 2/3] pwm: add MediaTek display PWM driver support

2015-07-16 Thread YH Huang
On Thu, 2015-07-16 at 23:21 +0800, Daniel Kurtz wrote: > On Thu, Jul 16, 2015 at 3:17 PM, YH Huang wrote: > > On Thu, 2015-07-16 at 14:54 +0800, Daniel Kurtz wrote: > >> On Thu, Jul 16, 2015 at 1:38 PM, YH Huang wrote: > >> > On Wed, 2015-07-15 at 23:59 +0800,

Re: [PATCH v5 2/3] pwm: add MediaTek display PWM driver support

2015-07-16 Thread YH Huang
On Thu, 2015-07-16 at 14:54 +0800, Daniel Kurtz wrote: > On Thu, Jul 16, 2015 at 1:38 PM, YH Huang wrote: > > On Wed, 2015-07-15 at 23:59 +0800, YH Huang wrote: > >> On Mon, 2015-07-13 at 18:19 +0800, Daniel Kurtz wrote: > >> > On Mon, Jul 13, 2015 at 5:04 PM,

Re: [PATCH v5 2/3] pwm: add MediaTek display PWM driver support

2015-07-15 Thread YH Huang
On Wed, 2015-07-15 at 23:59 +0800, YH Huang wrote: > On Mon, 2015-07-13 at 18:19 +0800, Daniel Kurtz wrote: > > On Mon, Jul 13, 2015 at 5:04 PM, YH Huang wrote: > > > Add display PWM driver support to modify backlight for MT8173 and MT6595. > > > The PWM has one channe

Re: [PATCH v5 2/3] pwm: add MediaTek display PWM driver support

2015-07-15 Thread YH Huang
On Mon, 2015-07-13 at 18:19 +0800, Daniel Kurtz wrote: > On Mon, Jul 13, 2015 at 5:04 PM, YH Huang wrote: > > Add display PWM driver support to modify backlight for MT8173 and MT6595. > > The PWM has one channel to control the brightness of the display. > > When the (hi

Re: [PATCH v5 1/3] dt-bindings: pwm: add MediaTek display PWM bindings

2015-07-15 Thread YH Huang
On Mon, 2015-07-13 at 18:20 +0800, Daniel Kurtz wrote: > On Mon, Jul 13, 2015 at 5:04 PM, YH Huang wrote: > > Document the device-tree binding of MediatTek display PWM. > > The PWM has one channel to control the backlight brightness for display. > > It supports MT8173 and M

[PATCH v5 0/3] Add MediaTek display PWM driver

2015-07-13 Thread YH Huang
ystem clocks of MT8173 Change in v5: 1. Configure PWM output via pinctrl 2. Fix the parameter name in dtsi YH Huang (3): dt-bindings: pwm: add MediaTek display PWM bindings pwm: add MediaTek display PWM driver support arm64: dts: mt8173: add MT8173 display PWM driver support node .../devic

[PATCH v5 1/3] dt-bindings: pwm: add MediaTek display PWM bindings

2015-07-13 Thread YH Huang
Document the device-tree binding of MediatTek display PWM. The PWM has one channel to control the backlight brightness for display. It supports MT8173 and MT6595. Signed-off-by: YH Huang --- .../devicetree/bindings/pwm/pwm-mtk-disp.txt | 29 ++ 1 file changed, 29

[PATCH v5 2/3] pwm: add MediaTek display PWM driver support

2015-07-13 Thread YH Huang
Add display PWM driver support to modify backlight for MT8173 and MT6595. The PWM has one channel to control the brightness of the display. When the (high_width / period) is closer to 1, the screen is brighter; otherwise, it is darker. Signed-off-by: YH Huang --- drivers/pwm/Kconfig

[PATCH v5 3/3] arm64: dts: mt8173: add MT8173 display PWM driver support node

2015-07-13 Thread YH Huang
Add display PWM node in mt8173-evb.dts and mt8173.dtsi. Signed-off-by: YH Huang --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 15 +++ arch/arm64/boot/dts/mediatek/mt8173.dtsi| 22 ++ 2 files changed, 37 insertions(+) diff --git a/arch/arm64/boot/dts

Re: [PATCH v4 1/3] dt-bindings: pwm: add MediaTek display PWM bindings

2015-07-08 Thread YH Huang
On Thu, 2015-07-09 at 12:47 +0800, Daniel Kurtz wrote: > On Thu, Jul 9, 2015 at 10:45 AM, YH Huang wrote: > > > > On Wed, 2015-07-08 at 20:11 +0800, Daniel Kurtz wrote: > > > On Mon, Jul 6, 2015 at 9:29 PM, YH Huang wrote: > > > > Document the device-t

Re: [PATCH v4 1/3] dt-bindings: pwm: add MediaTek display PWM bindings

2015-07-08 Thread YH Huang
On Wed, 2015-07-08 at 20:11 +0800, Daniel Kurtz wrote: > On Mon, Jul 6, 2015 at 9:29 PM, YH Huang wrote: > > Document the device-tree binding of MediatTek display PWM. > > The PWM has one channel to control the backlight brightness for display. > > It supports MT8173 and M

Re: [PATCH v4 3/3] arm64: dts: mt8173: add MT8173 display PWM driver support dtsi

2015-07-06 Thread YH Huang
On Mon, 2015-07-06 at 21:38 +0800, Daniel Kurtz wrote: > On Mon, Jul 6, 2015 at 9:29 PM, YH Huang wrote: > > Add display PWM node in mt8173.dtsi. > > > > Signed-off-by: YH Huang > > --- > > arch/arm64/boot/dts/mediatek/mt8173.dtsi | 22 ++ &

[PATCH v4 3/3] arm64: dts: mt8173: add MT8173 display PWM driver support dtsi

2015-07-06 Thread YH Huang
Add display PWM node in mt8173.dtsi. Signed-off-by: YH Huang --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index 0696f8f..e4ffd9d

[PATCH v4 2/3] pwm: add MediaTek display PWM driver support

2015-07-06 Thread YH Huang
Add display PWM driver support to modify backlight for MT8173 and MT6595. The PWM has one channel to control the brightness of the display. When the (high_width / period) is closer to 1, the screen is brighter; otherwise, it is darker. Signed-off-by: YH Huang --- drivers/pwm/Kconfig

[PATCH v4 1/3] dt-bindings: pwm: add MediaTek display PWM bindings

2015-07-06 Thread YH Huang
Document the device-tree binding of MediatTek display PWM. The PWM has one channel to control the backlight brightness for display. It supports MT8173 and MT6595. Signed-off-by: YH Huang --- .../devicetree/bindings/pwm/pwm-mtk-disp.txt | 24 ++ 1 file changed, 24

[PATCH v4 0/3] Add MediaTek display PWM driver

2015-07-06 Thread YH Huang
ystem clocks of MT8173 Change in v4: 1. Codebase is on v4.2-rc1 2. Add the PWM node in dtsi 3. Change the dependency in Kconfig 4. Rewrite some code for readability YH Huang (3): dt-bindings: pwm: add MediaTek display PWM bindings pwm: add MediaTek display PWM driver support arm64: dts: mt8173

Re: [PATCH v3 0/2] Add MediaTek display PWM driver

2015-07-06 Thread YH Huang
Hi Daniel, I will add PWM dtsi in the next patch and also fix the code with your suggestions in other mails. Regards, YH Huang On Tue, 2015-06-30 at 14:35 +0800, Daniel Kurtz wrote: > Hi YH, > > Please also include a patch that adds PWM bindings to mt8173.dtsi. > The clock

Re: [PATCH v3 1/2] dt-bindings: pwm: add MediaTek display PWM bindings

2015-06-29 Thread YH Huang
I am sorry for forgetting to remove Change-Id in [PATCH v3 1/2] and [PATCH v3 1/2]. Regards, YH Huang On Mon, 2015-06-29 at 23:03 +0800, YH Huang wrote: > Document the device-tree binding of MediatTek display PWM. > The clock "main" and "mm" are used to generate PWM

[PATCH v3 2/2] pwm: add MediaTek display PWM driver support

2015-06-29 Thread YH Huang
-off-by: YH Huang --- drivers/pwm/Kconfig| 10 ++ drivers/pwm/Makefile | 1 + drivers/pwm/pwm-mtk-disp.c | 256 + 3 files changed, 267 insertions(+) create mode 100644 drivers/pwm/pwm-mtk-disp.c diff --git a/drivers/pwm/Kconfig b

[PATCH v3 1/2] dt-bindings: pwm: add MediaTek display PWM bindings

2015-06-29 Thread YH Huang
Document the device-tree binding of MediatTek display PWM. The clock "main" and "mm" are used to generate PWM signals. The PWM has one channel to control the backlight brightness for display. It supports MT8173 and MT6595. Change-Id: I194ca88b4e4cd01a28b8701e07e86ea6941e52

[PATCH v3 0/2] Add MediaTek display PWM driver

2015-06-29 Thread YH Huang
This patch series add the use of display PWM driver and documentation for Mediatek SoCs. The driver is used to support the backlight of the panel. This is based on v4.1-rc1. Change in v3: 1. Add suspend/resume function 2. Fix the formula for high_width calculation 3. Rewrite some code to make it

Re: [PATCH v2 2/2] pwm: add MediaTek display PWM driver support

2015-06-18 Thread YH Huang
On Fri, 2015-06-12 at 12:20 +0200, Thierry Reding wrote: > On Thu, May 21, 2015 at 09:29:24PM +0800, YH Huang wrote: > > Add display PWM driver support to modify backlight for MT8173. > > > > Signed-off-by: YH Huang > > --- > > drivers/pwm/Kconfig|

Re: [PATCH v2 2/2] pwm: add MediaTek display PWM driver support

2015-06-18 Thread YH Huang
On Fri, 2015-06-12 at 12:25 +0200, Thierry Reding wrote: > On Thu, May 21, 2015 at 09:29:24PM +0800, YH Huang wrote: > > Add display PWM driver support to modify backlight for MT8173. > > The driver also claims compatibility with MT6595, so you should mention > that here as we

Re: [PATCH v2 1/2] dt-bindings: pwm: add MediaTek display PWM bindings

2015-06-18 Thread YH Huang
On Fri, 2015-06-12 at 12:23 +0200, Thierry Reding wrote: > On Thu, May 21, 2015 at 09:29:23PM +0800, YH Huang wrote: > > Document the device-tree binding of MediatTek display PWM. > > s/MediatTek/MediaTek/ > > > > > Signed-off-by: YH Huang > > This could us

Re: [PATCH v2 0/2] Add MediaTek display PWM driver

2015-06-05 Thread YH Huang
On Fri, 2015-06-05 at 10:39 +0200, Matthias Brugger wrote: > Hi YH, > > 2015-06-05 8:15 GMT+02:00 YH Huang : > > On Mon, 2015-05-25 at 10:14 +0800, Yingjoe Chen wrote: > >> On Thu, 2015-05-21 at 21:29 +0800, YH Huang wrote: > > > > This patch series a

Re: [PATCH v2 0/2] Add MediaTek display PWM driver

2015-06-04 Thread YH Huang
On Mon, 2015-05-25 at 10:14 +0800, Yingjoe Chen wrote: > On Thu, 2015-05-21 at 21:29 +0800, YH Huang wrote: This patch series add the use of display PWM driver and documentation for Mediatek SoCs. The driver is used to support the backlight of the panel. This is based on v4.1-rc1. >

[PATCH v2 1/2] dt-bindings: pwm: add MediaTek display PWM bindings

2015-05-21 Thread YH Huang
Document the device-tree binding of MediatTek display PWM. Signed-off-by: YH Huang --- .../devicetree/bindings/pwm/pwm-mtk-disp.txt | 25 ++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/pwm-mtk-disp.txt diff --git a

[PATCH v2 2/2] pwm: add MediaTek display PWM driver support

2015-05-21 Thread YH Huang
Add display PWM driver support to modify backlight for MT8173. Signed-off-by: YH Huang --- drivers/pwm/Kconfig| 10 ++ drivers/pwm/Makefile | 1 + drivers/pwm/pwm-mtk-disp.c | 228 + 3 files changed, 239 insertions(+) create mode

[PATCH v2 0/2] Add MediaTek display PWM driver

2015-05-21 Thread YH Huang
YH Huang (2): dt-bindings: pwm: add MediaTek display PWM bindings pwm: add MediaTek display PWM driver support .../devicetree/bindings/pwm/pwm-mtk-disp.txt | 25 +++ drivers/pwm/Kconfig| 10 + drivers/pwm/Makefile | 1

Re: [PATCH 2/2] pwm: add Mediatek display PWM driver support

2015-05-21 Thread YH Huang
On Mon, 2015-05-18 at 11:42 +0800, Daniel Kurtz wrote: > On Mon, May 11, 2015 at 5:26 PM, YH Huang wrote: > > Add display PWM driver support to modify backlight for MT8173/MT6595. > > > > Signed-off-by: YH Huang > > --- > > drivers/pwm/Kconfig |