[PATCH v2] ARM: dts: am33xx: rtc node

2012-10-30 Thread Afzal Mohammed
Add am33xx rtc node. Signed-off-by: Afzal Mohammed af...@ti.com --- Hi Benoit, This is based on your for_3.8/dts branch. This has been tested on Beagle Bone. Bindings along with driver changes for DT has been picked by Andrew Morton and is now present in linux-next. Regards Afzal v2 1

Re: [PATCH] arm/dts: am33xx rtc node

2012-10-30 Thread Afzal Mohammed
Hi Benoit, On Friday 19 October 2012 04:20 PM, Afzal Mohammed wrote: add am33xx rtc node. Signed-off-by: Afzal Mohammedaf...@ti.com --- Based on v3.7-rc1, Dependent on series rtc: omap dt support (for am33xx), (https://lkml.org/lkml/2012/10/19/163) The dependent series has been merged

Re: [PATCH v2] ARM: dts: am33xx: rtc node

2012-10-31 Thread Afzal Mohammed
On Wednesday 31 October 2012 04:37 PM, Benoit Cousson wrote: I've just applied it in the branch with a slight change in the subject. Thanks Benoit Regards Afzal -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More

[PATCH] ARM: dts: AM33XX: Add usbss node

2012-11-04 Thread Afzal Mohammed
, Damodar damodar.santhap...@ti.com Signed-off-by: Ravi Babu ravib...@ti.com Signed-off-by: Afzal Mohammed af...@ti.com --- Hi Benoit, This is based on your for_3.8/dts branch. This is made on top of usb: musb: am335x support (http://marc.info/?l=linux-omapm=135187391904863w=2) and has been tested

[PATCH v4 1/5] rtc: omap: kicker mechanism support

2012-10-19 Thread Afzal Mohammed
is being used. While at it, replace __raw_writeb/__raw_readb with writeb/readb; this driver is used on ARMv7 (AM335X SoC) Signed-off-by: Afzal Mohammed af...@ti.com Acked-by: Sekhar Nori nsek...@ti.com --- v4: Resolve build error during module build v3: Use readb/writeb instead of __raw_* variants

[PATCH v4 4/5] rtc: omap: depend on am33xx

2012-10-19 Thread Afzal Mohammed
rtc-omap driver can be reused for AM33xx RTC. Provide dependency in Kconfig. Signed-off-by: Afzal Mohammed af...@ti.com Acked-by: Sekhar Nori nsek...@ti.com --- v2: Modify Kconfig help, resolve checkpatch warning drivers/rtc/Kconfig | 10 ++ 1 file changed, 6 insertions(+), 4

[PATCH v4 3/5] rtc: omap: dt support

2012-10-19 Thread Afzal Mohammed
enhance rtc-omap driver with DT capability Signed-off-by: Afzal Mohammed af...@ti.com Acked-by: Sekhar Nori nsek...@ti.com --- v4: Proper devicetree documentation v2: Use compatible as ti,da830-rtc instead of ti,am1808-rtc Documentation/devicetree/bindings/rtc/rtc-omap.txt | 17

[PATCH v4 5/5] rtc: omap: Add runtime pm support

2012-10-19 Thread Afzal Mohammed
covert this driver to runtime pm, which internally handles rest. af...@ti.com: handle error path Signed-off-by: Vaibhav Hiremath hvaib...@ti.com Signed-off-by: Afzal Mohammed af...@ti.com Acked-by: Sekhar Nori nsek...@ti.com --- drivers/rtc/rtc-omap.c | 18 ++ 1 file changed, 18

[PATCH v4 0/5] rtc: omap dt support (for am33xx)

2012-10-19 Thread Afzal Mohammed
name made similar to that existing in the driver Better commit message description Modify Kconfig help, resolve checkpatch warning Afzal Mohammed (4): rtc: omap: kicker mechanism support ARM: davinci: remove rtc kicker release rtc: omap: dt support rtc: omap: depend on am33xx Vaibhav

[PATCH v4 2/5] ARM: davinci: remove rtc kicker release

2012-10-19 Thread Afzal Mohammed
rtc-omap driver is now capable of handling kicker mechanism, hence remove kicker handling at platform level, instead provide proper device name so that driver can handle kicker mechanism by itself Signed-off-by: Afzal Mohammed af...@ti.com Acked-by: Sekhar Nori nsek...@ti.com --- v2: Use device

[PATCH] arm/dts: am33xx rtc node

2012-10-19 Thread Afzal Mohammed
add am33xx rtc node. Signed-off-by: Afzal Mohammed af...@ti.com --- Based on v3.7-rc1, Dependent on series rtc: omap dt support (for am33xx), (https://lkml.org/lkml/2012/10/19/163) Tested on Beagle Bone. arch/arm/boot/dts/am33xx.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git

Re: [PATCH v3 0/6] omap-am33xx rtc dt support

2012-10-09 Thread Afzal Mohammed
Hi Andrew, On Monday 27 August 2012 01:05 PM, Mohammed, Afzal wrote: On Sat, Aug 11, 2012 at 01:27:11, Nori, Sekhar wrote: On 7/27/2012 5:53 PM, Afzal Mohammed wrote: This series makes rtc-omap driver DT capable, adds AM33xx RTC DT support along with a few enchancments to the driver. rtc

Re: [PATCH] ARM: OMAP2+: gpmc: Fix kernel BUG for DT boot mode

2012-10-10 Thread Afzal Mohammed
On Tuesday 09 October 2012 02:27 PM, Vaibhav Hiremath wrote: This patch adds of_have_populated_dt() check before creating Signed-off-by: Vaibhav Hiremathhvaib...@ti.com Cc: Afzal Mohammedaf...@ti.com Reviewed-by: Afzal Mohammed af...@ti.com -- To unsubscribe from this list: send the line

Re: [PATCH v4 3/5] rtc: omap: dt support

2012-10-29 Thread Afzal Mohammed
Hi Daniel, On Monday 22 October 2012 01:21 AM, Daniel Mack wrote: On 19.10.2012 11:59, Afzal Mohammed wrote: +static const struct of_device_id omap_rtc_of_match[] = { + { .compatible = ti,da830-rtc, + .data =omap_rtc_devtype[OMAP_RTC_DATA_DA830_IDX

Re: Question about fixed-clock

2013-03-07 Thread Afzal Mohammed
Hi Daniel, On Tue, Feb 19, 2013 at 09:09:31AM +0530, Afzal Mohammed wrote: Hope invoking of_clk_init before clock generator driver helps Mails coming from this id are in my personal capacity. On Tue, Feb 19, 2013 at 10:53:18AM +0100, Daniel Mack wrote: On 19.02.2013 02:33, Fabio Estevam

[PATCH v5 00/12] video: da8xx-fb: am335x DT support

2013-01-28 Thread Afzal Mohammed
Antoniou pa...@antoniou-consulting.com 3. Series v3 video: da8xx-fb: runtime timing configuration by, me (Afzal Mohammed af...@ti.com) To test this series on AM335x based boards, 1. Series HWMOD fixes for AM33xx PWM submodules and device tree nodes by, Philip, Avinash avinashphi...@ti.com

[PATCH v5 02/12] video: da8xx-fb: fix 24bpp raster configuration

2013-01-28 Thread Afzal Mohammed
, Prakash prakash...@ti.com Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index 35a33ca..7f92f37 100644 --- a/drivers/video/da8xx-fb.c +++ b/drivers/video

[PATCH v5 03/12] video: da8xx-fb: enable sync lost intr for v2 ip

2013-01-28 Thread Afzal Mohammed
interrupt handler is checking for sync lost interrupt, but it was not enabled, enable it. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index 7f92f37

[PATCH v5 04/12] video: da8xx-fb: use devres

2013-01-28 Thread Afzal Mohammed
Replace existing resource handling in the driver with managed device resource. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c | 35 ++- 1 file changed, 6 insertions(+), 29 deletions(-) diff --git a/drivers/video/da8xx-fb.c b/drivers/video

[PATCH v5 08/12] video: da8xx-fb: invoke platform callback safely

2013-01-28 Thread Afzal Mohammed
Ensure that platform data is present before checking whether platform callback is present (the one used to control backlight). So far this was not an issue as driver was purely non-DT triggered, but now DT support has been added. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx

[PATCH v5 09/12] video: da8xx-fb: obtain fb_videomode info from dt

2013-01-28 Thread Afzal Mohammed
Obtain fb_videomode details for the connected lcd panel using the display timing details present in DT. Signed-off-by: Afzal Mohammed af...@ti.com --- .../devicetree/bindings/video/fb-da8xx.txt | 21 + drivers/video/da8xx-fb.c| 17

[PATCH v5 10/12] video: da8xx-fb: ensure pdata only for non-dt

2013-01-28 Thread Afzal Mohammed
This driver is DT probe-able, hence ensure presence of platform data only for non-DT boot. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index 0c68712

[PATCH v5 11/12] video: da8xx-fb: setup struct lcd_ctrl_config for dt

2013-01-28 Thread Afzal Mohammed
strcut lcd_ctrl_config information required for driver is currently obtained via platform data. To handle DT probing, create lcd_ctrl_config and populate it with default values, these values are sufficient for the panels so far used with this controller to work. Signed-off-by: Afzal Mohammed af

[PATCH v5 12/12] video: da8xx-fb: set upstream clock rate (if reqd)

2013-01-28 Thread Afzal Mohammed
, and probably after DaVinci is CCF'ed, modeling clock nodes inside driver may be considered. Signed-off-by: Afzal Mohammed af...@ti.com --- v5: use v2 method of configuring pixel clock rate instead of modeling CCF clock nodes in driver, i.e. set divider if rate is within the range

[PATCH v5 05/12] video: da8xx-fb: ensure non-null cfg in pdata

2013-01-28 Thread Afzal Mohammed
Ensure that platform data contains pointer for lcd_ctrl_config. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index 7a32e83..3b146bc 100644 --- a/drivers/video

[PATCH v5 06/12] video: da8xx-fb: reorganize panel detection

2013-01-28 Thread Afzal Mohammed
Move panel detection to a separate function, this helps in readability as well as makes DT support cleaner. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c | 42 ++ 1 file changed, 26 insertions(+), 16 deletions(-) diff --git

[PATCH v5 07/12] video: da8xx-fb: minimal dt support

2013-01-28 Thread Afzal Mohammed
Driver is provided a means to have the probe triggered by DT. Signed-off-by: Afzal Mohammed af...@ti.com --- Documentation/devicetree/bindings/video/fb-da8xx.txt | 16 drivers/video/da8xx-fb.c | 7 +++ 2 files changed, 23 insertions(+) create

[PATCH v5 01/12] video: da8xx-fb: make io operations safe

2013-01-28 Thread Afzal Mohammed
Replace __raw_readl/__raw_writel with readl/writel; this driver is reused on ARMv7 (AM335x SoC). Signed-off-by: Afzal Mohammed af...@ti.com --- v2: new patch drivers/video/da8xx-fb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/da8xx-fb.c b/drivers

[PATCH 1/2] clk: divider: prepare for minimum divider

2013-01-22 Thread Afzal Mohammed
and modify all call sites. Signed-off-by: Afzal Mohammed af...@ti.com Cc: Shawn Guo shawn@linaro.org Cc: Sascha Hauer ker...@pengutronix.de Cc: Russell King li...@arm.linux.org.uk Cc: Paul Walmsley p...@pwsan.com Cc: Tony Lindgren t...@atomide.com Cc: Mike Turquette mturque...@linaro.org Cc: Viresh

[PATCH 2/2] clk: divider: handle minimum divider

2013-01-22 Thread Afzal Mohammed
Some of clocks can have a limit on minimum divider value that can be programmed. Modify basic clock divider to take care of this aspect. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/clk/clk-divider.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git

[PATCH 0/4] ARM: AM335x: LCDC platform support

2013-01-22 Thread Afzal Mohammed
on AM335x based boards, tree @ git://gitorious.org/x0148406-public/linux-kernel.git tags/da8xx-fb-dt-v3 Regards Afzal Afzal Mohammed (4): ARM: OMAP2+: dpll: round rate to closest value ARM: OMAP2+: dpll: am335x - avoid freqsel ARM: OMAP2+: clock: DEFINE_STRUCT_CLK_FLAGS helper ARM: AM33XX

[PATCH 1/4] ARM: OMAP2+: dpll: round rate to closest value

2013-01-22 Thread Afzal Mohammed
will resolve the issue. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/clkt_dpll.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-omap2/clkt_dpll.c b/arch/arm/mach-omap2/clkt_dpll.c index 924c230..15e6d41 100644 --- a/arch/arm

[PATCH 2/4] ARM: OMAP2+: dpll: am335x - avoid freqsel

2013-01-22 Thread Afzal Mohammed
am335x does not have freqsel, avoid it. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/dpll3xxx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/dpll3xxx.c b/arch/arm/mach-omap2/dpll3xxx.c index 0a02aab5..3aed4b0 100644 --- a/arch

[PATCH 3/4] ARM: OMAP2+: clock: DEFINE_STRUCT_CLK_FLAGS helper

2013-01-22 Thread Afzal Mohammed
DEFINE_STRUCT_CLK does not have the capability to set flags, define DEFINE_STRUCT_CLK_FLAGS to handle flags. This is needed to add SET_RATE_PARENT flag in statically defined lcd clock in am335x. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/clock.h | 11 +++ 1 file

[PATCH 4/4] ARM: AM33XX: clock: SET_RATE_PARENT in lcd path

2013-01-22 Thread Afzal Mohammed
. With this change, set rate on LCDC clock would get propogated till dpll_disp_ck via dpll_disp_m2_ck, hence allowing the driver (same driver is used in DaVinci too) to set rates using LCDC clock without worrying about platform dependent clock details. Signed-off-by: Afzal Mohammed af...@ti.com

[PATCH v3 00/12] video: da8xx-fb: am335x DT support

2013-01-22 Thread Afzal Mohammed
by, me (Afzal Mohammed af...@ti.com) To test this series on AM335x based boards, 1. Series v2 ARM: dts: AM33XX: lcdc support by, me (Afzal Mohammed af...@ti.com), 2. Series HWMOD fixes for AM33xx PWM submodules and device tree nodes by, Philip, Avinash avinashphi...@ti.com 3

[PATCH v3 04/12] video: da8xx-fb: use devres

2013-01-22 Thread Afzal Mohammed
Replace existing resource handling in the driver with managed device resource. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c | 35 ++- 1 file changed, 6 insertions(+), 29 deletions(-) diff --git a/drivers/video/da8xx-fb.c b/drivers/video

[PATCH v3 06/12] video: da8xx-fb: reorganize panel detection

2013-01-22 Thread Afzal Mohammed
Move panel detection to a separate function, this helps in readability as well as makes DT support cleaner. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c | 42 ++ 1 file changed, 26 insertions(+), 16 deletions(-) diff --git

[PATCH v3 07/12] video: da8xx-fb: minimal dt support

2013-01-22 Thread Afzal Mohammed
Driver is provided a means to have the probe triggered by DT. Signed-off-by: Afzal Mohammed af...@ti.com --- Documentation/devicetree/bindings/video/fb-da8xx.txt | 16 drivers/video/da8xx-fb.c | 7 +++ 2 files changed, 23 insertions(+) create

[PATCH v3 08/12] video: da8xx-fb: invoke platform callback safely

2013-01-22 Thread Afzal Mohammed
Ensure that platform data is present before checking whether platform callback is present (the one used to control backlight). So far this was not an issue as driver was purely non-DT triggered, but now DT support has been added. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx

[PATCH v3 10/12] video: da8xx-fb: ensure pdata only for non-dt

2013-01-22 Thread Afzal Mohammed
This driver is DT probe-able, hence ensure presence of platform data only for non-DT boot. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index 0c68712

[PATCH v3 12/12] video: da8xx-fb: CCF clock divider handling

2013-01-22 Thread Afzal Mohammed
be configured. Signed-off-by: Afzal Mohammed af...@ti.com --- v3: model CCF clock divider with parent propogation if CCF selected v2: new patch drivers/video/da8xx-fb.c | 67 ++-- 1 file changed, 65 insertions(+), 2 deletions(-) diff --git a/drivers/video

[PATCH v3 11/12] video: da8xx-fb: setup struct lcd_ctrl_config for dt

2013-01-22 Thread Afzal Mohammed
strcut lcd_ctrl_config information required for driver is currently obtained via platform data. To handle DT probing, create lcd_ctrl_config and populate it with default values, these values are sufficient for the panels so far used with this controller to work. Signed-off-by: Afzal Mohammed af

[PATCH v3 09/12] video: da8xx-fb: obtain fb_videomode info from dt

2013-01-22 Thread Afzal Mohammed
Obtain fb_videomode details for the connected lcd panel using the display timing details present in DT. Signed-off-by: Afzal Mohammed af...@ti.com --- .../devicetree/bindings/video/fb-da8xx.txt | 21 + drivers/video/da8xx-fb.c| 17

[PATCH v3 02/12] video: da8xx-fb: fix 24bpp raster configuration

2013-01-22 Thread Afzal Mohammed
, Prakash prakash...@ti.com Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index 35a33ca..7f92f37 100644 --- a/drivers/video/da8xx-fb.c +++ b/drivers/video

[PATCH v3 01/12] video: da8xx-fb: make io operations safe

2013-01-22 Thread Afzal Mohammed
Replace __raw_readl/__raw_writel with readl/writel; this driver is reused on ARMv7 (AM335x SoC). Signed-off-by: Afzal Mohammed af...@ti.com --- v2: new patch drivers/video/da8xx-fb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/da8xx-fb.c b/drivers

[PATCH v3 05/12] video: da8xx-fb: ensure non-null cfg in pdata

2013-01-22 Thread Afzal Mohammed
Ensure that platform data contains pointer for lcd_ctrl_config. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index 7a32e83..3b146bc 100644 --- a/drivers/video

[PATCH v3 03/12] video: da8xx-fb: enable sync lost intr for v2 ip

2013-01-22 Thread Afzal Mohammed
interrupt handler is checking for sync lost interrupt, but it was not enabled, enable it. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index 7f92f37

[PATCH v2 1/2] clk: divider: prepare for minimum divider

2013-01-23 Thread Afzal Mohammed
clock registration functions, static initialization helpers as was earlier. Signed-off-by: Afzal Mohammed af...@ti.com --- v2: create a new registration function for those that needs to constrain minimum divider value instead of modifying existing registration functions and hence remove

[PATCH v2 2/2] clk: divider: handle minimum divider

2013-01-23 Thread Afzal Mohammed
Some of clocks can have a limit on minimum divider value that can be programmed. Modify basic clock divider to take care of this aspect. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/clk/clk-divider.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git

[PATCH v2 0/4] ARM: AM335x: LCDC platform support

2013-01-23 Thread Afzal Mohammed
on AM335x based boards, tree @ git://gitorious.org/x0148406-public/linux-kernel.git tags/da8xx-fb-dt-v4 Regards Afzal v2: As DEFINE_CLK_DIVIDER args has no change, make it's usage as reqd. Afzal Mohammed (4): ARM: OMAP2+: dpll: round rate to closest value ARM: OMAP2+: dpll: am335x - avoid

[PATCH v2 1/4] ARM: OMAP2+: dpll: round rate to closest value

2013-01-23 Thread Afzal Mohammed
will resolve the issue. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/clkt_dpll.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-omap2/clkt_dpll.c b/arch/arm/mach-omap2/clkt_dpll.c index 924c230..15e6d41 100644 --- a/arch/arm

[PATCH v2 2/4] ARM: OMAP2+: dpll: am335x - avoid freqsel

2013-01-23 Thread Afzal Mohammed
am335x does not have freqsel, avoid it. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/dpll3xxx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/dpll3xxx.c b/arch/arm/mach-omap2/dpll3xxx.c index 0a02aab5..3aed4b0 100644 --- a/arch

[PATCH v2 4/4] ARM: AM33XX: clock: SET_RATE_PARENT in lcd path

2013-01-23 Thread Afzal Mohammed
. With this change, set rate on LCDC clock would get propogated till dpll_disp_ck via dpll_disp_m2_ck, hence allowing the driver (same driver is used in DaVinci too) to set rates using LCDC clock without worrying about platform dependent clock details. Signed-off-by: Afzal Mohammed af...@ti.com

[PATCH v2 3/4] ARM: OMAP2+: clock: DEFINE_STRUCT_CLK_FLAGS helper

2013-01-23 Thread Afzal Mohammed
DEFINE_STRUCT_CLK does not have the capability to set flags, define DEFINE_STRUCT_CLK_FLAGS to handle flags. This is needed to add SET_RATE_PARENT flag in statically defined lcd clock in am335x. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/clock.h | 11 +++ 1 file

[PATCH v4 01/12] video: da8xx-fb: make io operations safe

2013-01-23 Thread Afzal Mohammed
Replace __raw_readl/__raw_writel with readl/writel; this driver is reused on ARMv7 (AM335x SoC). Signed-off-by: Afzal Mohammed af...@ti.com --- v2: new patch drivers/video/da8xx-fb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/da8xx-fb.c b/drivers

[PATCH v4 03/12] video: da8xx-fb: enable sync lost intr for v2 ip

2013-01-23 Thread Afzal Mohammed
interrupt handler is checking for sync lost interrupt, but it was not enabled, enable it. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index 7f92f37

[PATCH v4 04/12] video: da8xx-fb: use devres

2013-01-23 Thread Afzal Mohammed
Replace existing resource handling in the driver with managed device resource. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c | 35 ++- 1 file changed, 6 insertions(+), 29 deletions(-) diff --git a/drivers/video/da8xx-fb.c b/drivers/video

[PATCH v4 06/12] video: da8xx-fb: reorganize panel detection

2013-01-23 Thread Afzal Mohammed
Move panel detection to a separate function, this helps in readability as well as makes DT support cleaner. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c | 42 ++ 1 file changed, 26 insertions(+), 16 deletions(-) diff --git

[PATCH v4 07/12] video: da8xx-fb: minimal dt support

2013-01-23 Thread Afzal Mohammed
Driver is provided a means to have the probe triggered by DT. Signed-off-by: Afzal Mohammed af...@ti.com --- Documentation/devicetree/bindings/video/fb-da8xx.txt | 16 drivers/video/da8xx-fb.c | 7 +++ 2 files changed, 23 insertions(+) create

[PATCH v4 08/12] video: da8xx-fb: invoke platform callback safely

2013-01-23 Thread Afzal Mohammed
Ensure that platform data is present before checking whether platform callback is present (the one used to control backlight). So far this was not an issue as driver was purely non-DT triggered, but now DT support has been added. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx

[PATCH v4 09/12] video: da8xx-fb: obtain fb_videomode info from dt

2013-01-23 Thread Afzal Mohammed
Obtain fb_videomode details for the connected lcd panel using the display timing details present in DT. Signed-off-by: Afzal Mohammed af...@ti.com --- .../devicetree/bindings/video/fb-da8xx.txt | 21 + drivers/video/da8xx-fb.c| 17

[PATCH v4 05/12] video: da8xx-fb: ensure non-null cfg in pdata

2013-01-23 Thread Afzal Mohammed
Ensure that platform data contains pointer for lcd_ctrl_config. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index 7a32e83..3b146bc 100644 --- a/drivers/video

[PATCH v4 10/12] video: da8xx-fb: ensure pdata only for non-dt

2013-01-23 Thread Afzal Mohammed
This driver is DT probe-able, hence ensure presence of platform data only for non-DT boot. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index 0c68712

[PATCH v4 11/12] video: da8xx-fb: setup struct lcd_ctrl_config for dt

2013-01-23 Thread Afzal Mohammed
strcut lcd_ctrl_config information required for driver is currently obtained via platform data. To handle DT probing, create lcd_ctrl_config and populate it with default values, these values are sufficient for the panels so far used with this controller to work. Signed-off-by: Afzal Mohammed af

[PATCH v4 12/12] video: da8xx-fb: CCF clock divider handling

2013-01-23 Thread Afzal Mohammed
be configured. Signed-off-by: Afzal Mohammed af...@ti.com --- v4: use new registration for clock divider having minimum divider requirement and have ifdef'ery in a better way v3: model CCF clock divider with parent propogation if CCF selected v2: new patch drivers/video/da8xx-fb.c | 72

[PATCH v4 02/12] video: da8xx-fb: fix 24bpp raster configuration

2013-01-23 Thread Afzal Mohammed
, Prakash prakash...@ti.com Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index 35a33ca..7f92f37 100644 --- a/drivers/video/da8xx-fb.c +++ b/drivers/video

[PATCH v4 00/12] video: da8xx-fb: am335x DT support

2013-01-23 Thread Afzal Mohammed
by, Steffen Trumtrar s.trumt...@pengutronix.de 2. Patch da8xx: Allow use by am33xx based devices by, Pantelis Antoniou pa...@antoniou-consulting.com 3. Series v3 video: da8xx-fb: runtime timing configuration by, me (Afzal Mohammed af...@ti.com) To test this series on AM335x

[RFC 0/8] ARM: AM43 (OMAP2+) boot support

2013-02-17 Thread Afzal Mohammed
Afzal Mohammed (8): ARM: localtimer: return percpu clkevt on register ARM: twd: register clock event for 1 core SMP ARM: twd: clock rate from DT (if no DT clk tree) ARM: am33xx: ll debug config help ARM: OMAP2+: am43: Kconfig ARM: OMAP2+: am43: basic dt support ARM: dts: am4372: initial

[RFC 1/8] ARM: localtimer: return percpu clkevt on register

2013-02-17 Thread Afzal Mohammed
. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/include/asm/localtimer.h | 7 --- arch/arm/kernel/smp.c | 8 arch/arm/kernel/smp_twd.c | 5 +++-- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/arch/arm/include/asm/localtimer.h b/arch/arm

[RFC 4/8] ARM: am33xx: ll debug config help

2013-02-17 Thread Afzal Mohammed
Selecting DEBUG_AM33XXUART1 routes low level debug messages to first UART instance of AM335x based SoC's. This selection is valid for upcoming AM43 based SoC's too. Make this information available upon configuring. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/Kconfig.debug | 3 +++ 1

[RFC 5/8] ARM: OMAP2+: am43: Kconfig

2013-02-17 Thread Afzal Mohammed
Add Kconfig option for AM43 family of SoC's, these are ARM Cortex A9 based (SMP configuration with 1 core). Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/Kconfig | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach

[RFC 8/8] ARM: dts: am43-pre-silicon support

2013-02-17 Thread Afzal Mohammed
board support. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/boot/dts/Makefile | 3 ++- arch/arm/boot/dts/am43-pre-silicon.dts | 31 +++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/am43-pre-silicon.dts

[RFC 3/8] ARM: twd: clock rate from DT (if no DT clk tree)

2013-02-17 Thread Afzal Mohammed
Add an optional property to find clock-frequency from DT. This helps as a fallback mechanism in case there is no representation of clock tree in DT. Signed-off-by: Afzal Mohammed af...@ti.com --- Documentation/devicetree/bindings/arm/twd.txt | 7 ++- arch/arm/kernel/smp_twd.c

[RFC 7/8] ARM: dts: am4372: initial support

2013-02-17 Thread Afzal Mohammed
DT source (minimal) for AM4372 SoC. Those represented here are the minimal DT nodes necessary to get kernel booting. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/boot/dts/am4372.dtsi | 55 +++ 1 file changed, 55 insertions(+) create mode 100644

[RFC 6/8] ARM: OMAP2+: am43: basic dt support

2013-02-17 Thread Afzal Mohammed
that strictly speaking DT sources does not classify as a part of Kernel). Here private timer of the one and only core is being used as clock event (as well as, as time source). Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/board-generic.c | 18 ++ 1 file changed, 18

[RFC 2/8] ARM: twd: register clock event for 1 core SMP

2013-02-17 Thread Afzal Mohammed
in an almost booting Kernel (minimal) by only relying on ARM parts for an A9 one core SMP. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/kernel/smp_twd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/kernel/smp_twd.c b/arch/arm/kernel/smp_twd.c index 616268c..118f4f2

[PATCH, RFC 0/8] ARM: AM43 (OMAP2+) boot support

2013-02-18 Thread Afzal Mohammed
a-kish...@ti.com (who first made Linux to boot on AM43) for all the help that made Linux bringup easier. Regards Afzal Afzal Mohammed (8): ARM: localtimer: return percpu clkevt on register ARM: twd: register clock event for 1 core SMP ARM: twd: clock rate from DT (if no DT clk tree) ARM

[PATCH, RFC 1/8] ARM: localtimer: return percpu clkevt on register

2013-02-18 Thread Afzal Mohammed
. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/include/asm/localtimer.h | 7 --- arch/arm/kernel/smp.c | 8 arch/arm/kernel/smp_twd.c | 5 +++-- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/arch/arm/include/asm/localtimer.h b/arch/arm

[PATCH, RFC 2/8] ARM: twd: register clock event for 1 core SMP

2013-02-18 Thread Afzal Mohammed
in an almost booting Kernel (minimal) by only relying on ARM parts for an A9 one core SMP. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/kernel/smp_twd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/kernel/smp_twd.c b/arch/arm/kernel/smp_twd.c index 616268c..118f4f2

[PATCH, RFC 4/8] ARM: am33xx: ll debug config help

2013-02-18 Thread Afzal Mohammed
Selecting DEBUG_AM33XXUART1 routes low level debug messages to first UART instance of AM335x based SoC's. This selection is valid for upcoming AM43 based SoC's too. Make this information available upon configuring. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/Kconfig.debug | 3 +++ 1

[PATCH, RFC 5/8] ARM: OMAP2+: am43: Kconfig

2013-02-18 Thread Afzal Mohammed
Add Kconfig option for AM43 family of SoC's, these are ARM Cortex A9 based (SMP configuration with 1 core). Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/Kconfig | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach

[PATCH, RFC 6/8] ARM: OMAP2+: am43: basic dt support

2013-02-18 Thread Afzal Mohammed
that strictly speaking DT sources does not classify as a part of Kernel). Here private timer of the one and only core is being used as clock event (as well as, as time source). Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/board-generic.c | 18 ++ 1 file changed, 18

[PATCH, RFC 7/8] ARM: dts: am4372: initial support

2013-02-18 Thread Afzal Mohammed
DT source (minimal) for AM4372 SoC. Those represented here are the minimal DT nodes necessary to get kernel booting. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/boot/dts/am4372.dtsi | 55 +++ 1 file changed, 55 insertions(+) create mode 100644

[PATCH, RFC 8/8] ARM: dts: am43-pre-silicon support

2013-02-18 Thread Afzal Mohammed
board support. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/boot/dts/Makefile | 3 ++- arch/arm/boot/dts/am43-pre-silicon.dts | 31 +++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/am43-pre-silicon.dts

[PATCH, RFC 3/8] ARM: twd: clock rate from DT (if no DT clk tree)

2013-02-18 Thread Afzal Mohammed
Add an optional property to find clock-frequency from DT. This helps as a fallback mechanism in case there is no representation of clock tree in DT. Signed-off-by: Afzal Mohammed af...@ti.com --- Documentation/devicetree/bindings/arm/twd.txt | 7 ++- arch/arm/kernel/smp_twd.c

Re: Question about fixed-clock

2013-02-18 Thread Afzal Mohammed
Hi Daniel, On Tue, Feb 19, 2013 at 12:55:52AM +0100, Daniel Mack wrote: ref25: ref25M { compatible = fixed-clock; #clock-cells = 0; clock-frequency = 2500; }; clock-generator@0 { /* ... */

[PATCH 00/10] video: da8xx-fb: runtime timing configuration and cleanup

2012-12-07 Thread Afzal Mohammed
. This has been tested on DA850 EVM. Not sure whether Florian or Tomi would be handling fbdev patches after the coming merge window, as Tomi is queueing fbdev patches currently, these changes has been made over Tomi Valkeinen's for-next branch. Regards Afzal Afzal Mohammed (10): video: da8xx-fb

[PATCH 01/10] video: da8xx-fb: fb_check_var enhancement

2012-12-07 Thread Afzal Mohammed
-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index 46534e0..89446aa 100644 --- a/drivers/video/da8xx-fb.c +++ b/drivers/video/da8xx-fb.c @@ -888,6 +888,9

[PATCH 02/10] video: da8xx-fb: simplify lcd_reset

2012-12-07 Thread Afzal Mohammed
lcd_reset function doesn't require any arguement, remove it. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index 89446aa..c8e97de 100644

[PATCH 03/10] video: da8xx-fb: use modedb helper to update var

2012-12-07 Thread Afzal Mohammed
modedb is having it in Hz instead of ps, this would be fixed in a later change and this overide would be removed. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c | 18 ++ 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/drivers/video/da8xx-fb.c b

[PATCH 04/10] video: da8xx-fb: remove unneeded var initialization

2012-12-07 Thread Afzal Mohammed
modedb helper now updates var information based on the detected panel, remove the unnecessary initialization. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c | 18 +- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/drivers/video/da8xx-fb.c b

[PATCH 05/10] video: da8xx-fb: store current display information

2012-12-07 Thread Afzal Mohammed
of reconfiguring and modifying platform data would be necessary to handle controller data changes like bpp. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index 79862ff..072074d

[PATCH 06/10] video: da8xx-fb: store clk rate even if !CPUFREQ

2012-12-07 Thread Afzal Mohammed
store lcd clk rate always, i.e. irrespective of whether CPUFREQ is enabled or not. This can be used to get clk rate directly instead of enquiring with clock framework with clk handle every time. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c | 4 +--- 1 file changed, 1

[PATCH 07/10] video: da8xx-fb: pix clk and clk div handling cleanup

2012-12-07 Thread Afzal Mohammed
pixclock information is now in ps, override on var pixclock over modedb to var conversion is removed. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c | 48 ++-- 1 file changed, 18 insertions(+), 30 deletions(-) diff --git a/drivers

[PATCH 08/10] video: da8xx-fb: store struct device *

2012-12-07 Thread Afzal Mohammed
store struct device pointer so that dev_dbg/err can be used outside of probe. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index 19ee560..663b3c5 100644

[PATCH 09/10] video: da8xx-fb: report correct pixclock

2012-12-07 Thread Afzal Mohammed
Update var pixclock with the value that is configurable in hardware. This lets user know the actual pixclock. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx

[PATCH 10/10] video: da8xx-fb: fb_set_par support

2012-12-07 Thread Afzal Mohammed
probe via fb_set_var, remove existing lcdc initialization in probe and do lcdc reset in probe so that reset happens only at the begining. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c | 60 +++- 1 file changed, 49 insertions(+), 11

[PATCH v3 00/10] video: da8xx-fb: runtime timing configuration

2013-01-15 Thread Afzal Mohammed
* are removed, there would be merge conflicts with v2, which was based on -rc2). series Regards Afzal v3: rebased over -rc3, no functional changes v2: disable raster in fb_set_par properly Afzal Mohammed (10): video: da8xx-fb: fb_check_var enhancement video: da8xx-fb: simplify lcd_reset video: da8xx

[PATCH v3 02/10] video: da8xx-fb: simplify lcd_reset

2013-01-15 Thread Afzal Mohammed
lcd_reset function doesn't require any arguement, remove it. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/video/da8xx-fb.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index d00dd17..52977b1 100644

  1   2   3   4   5   6   7   >