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

2013-01-15 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 v2 04/12] video: da8xx-fb: use devres

2013-01-15 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

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

2013-01-15 Thread Afzal Mohammed
be to replicate clk-divider of common clock framework inside the driver, but that probably is not preferred and not worth as it would be duplication and without much advantage to existing users. Signed-off-by: Afzal Mohammed af...@ti.com --- v2: new patch drivers/video/da8xx-fb.c | 76

[PATCH v2 4/5] ARM: dts: AM33XX: Add am335x-evmsk lcdc panel timings

2013-01-15 Thread Afzal Mohammed
Update lcdc node with panel timings (typical) for AM335X-EVMSK. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/boot/dts/am335x-evmsk.dts | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/am335x-evmsk.dts b/arch/arm/boot/dts/am335x-evmsk.dts

[PATCH v2 5/5] ARM: dts: AM33XX: Add am335x-evmsk lcdc pincontrol info

2013-01-15 Thread Afzal Mohammed
Update pin mux information for lcd panel on AM335X-EVMSK. Signed-off-by: Afzal Mohammed af...@ti.com --- v2: add comment on pinmux entries arch/arm/boot/dts/am335x-evmsk.dts | 35 ++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot

[PATCH v2 3/5] ARM: dts: AM33XX: Add am335x-evm lcdc pincontrol info

2013-01-15 Thread Afzal Mohammed
From: Manjunathappa, Prakash prakash...@ti.com Update pin mux information for lcd panel on AM335X-EVM [af...@ti.com: comment specifying user understandable pinmux details] Signed-off-by: Manjunathappa, Prakash prakash...@ti.com Signed-off-by: Afzal Mohammed af...@ti.com --- v2: correct

[PATCH v2 0/5] ARM: dts: AM33XX: lcdc support

2013-01-15 Thread Afzal Mohammed
configuration by, me (Afzal Mohammed af...@ti.com) 3. Series v2 video: da8xx-fb: DT support by, me (Afzal Mohammed af...@ti.com) To test on AM335x, in addition to the above, following changes, 1. Patch ARM: AM33XX: clock: SET_RATE_PARENT in lcd path by, me (Afzal Mohammed af...@ti.com

[PATCH v2 1/5] ARM: dts: AM33XX: Add lcdc node

2013-01-15 Thread Afzal Mohammed
Add lcdc node. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/boot/dts/am33xx.dtsi |8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi index c2f14e8..432d4bb8 100644 --- a/arch/arm/boot/dts/am33xx.dtsi +++ b/arch

[PATCH v2 2/5] ARM: dts: AM33XX: Add am335x-evm lcdc panel timings

2013-01-15 Thread Afzal Mohammed
Update lcdc node with panel timings (typical) for AM335X-EVM. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/boot/dts/am335x-evm.dts | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/am335x-evm.dts b/arch/arm/boot/dts/am335x-evm.dts index

[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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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

[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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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

[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 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 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 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 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 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 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 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 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

[PATCH v2 00/14] ARM: OMAP2+: AM43x initial support

2013-05-27 Thread Afzal Mohammed
...@ti.com Regards Afzal v2: Major change - use SoC timer's outside of ARM instead of depending on ARM SMP local timer for clockevent/source. Afzal Mohammed (13): ARM: OMAP2+: separate out OMAP4 restart ARM: OMAP2+: AM43x: Kconfig ARM: OMAP2+: AM43x: kbuild ARM: OMAP2+: AM43x

[PATCH v2 01/14] ARM: OMAP2+: separate out OMAP4 restart

2013-05-27 Thread Afzal Mohammed
Separate out OMAP4 restart and have it similar to other platforms, in a different file. Main motive is to reuse omap4-common on platforms other than OMAP4, like AM43x, even if OMAP4 is deselected (otherwise would have caused build breakage). Signed-off-by: Afzal Mohammed af...@ti.com --- arch

[PATCH v2 09/14] ARM: OMAP2+: AM43x: SRAM base and size

2013-05-27 Thread Afzal Mohammed
From: Sanjeev Premi pr...@ti.com This definition corresponds to the L3_OCMC0, as in case of AM33XX. Signed-off-by: Sanjeev Premi pr...@ti.com Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/sram.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-omap2

[PATCH v2 10/14] ARM: OMAP2+: AM43x: basic dt support

2013-05-27 Thread Afzal Mohammed
a-kish...@ti.com Signed-off-by: Afzal Mohammed af...@ti.com --- v2: Rely on dmtimer synctimer for clockevent/source, map peripheral memory as in AM335x arch/arm/mach-omap2/board-generic.c | 16 arch/arm/mach-omap2/timer.c | 2 +- 2 files changed, 17 insertions

[PATCH v2 14/14] ARM: dts: AM43x: initial support

2013-05-27 Thread Afzal Mohammed
Signed-off-by: Afzal Mohammed af...@ti.com --- v2: Add gptimer 1ms, timer2, synctimer and remove twd local timer arch/arm/boot/dts/am4372.dtsi | 66 +++ 1 file changed, 66 insertions(+) create mode 100644 arch/arm/boot/dts/am4372.dtsi diff --git a/arch/arm

[PATCH v2 13/14] Documentation: dt: binding: serial: omap: am43x

2013-05-27 Thread Afzal Mohammed
AM43x uart binding. Signed-off-by: Afzal Mohammed af...@ti.com --- Documentation/devicetree/bindings/serial/omap_serial.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/serial/omap_serial.txt b/Documentation/devicetree/bindings/serial/omap_serial.txt

[PATCH v2 02/14] ARM: OMAP2+: AM43x: Kconfig

2013-05-27 Thread Afzal Mohammed
Kconfig for AM43x (Cortex A9) family of SoC's. Signed-off-by: Afzal Mohammed af...@ti.com --- v2: Remove reliance on SMP, TWD, select MACH_OMAP_GENERIC arch/arm/mach-omap2/Kconfig | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2

[PATCH v2 03/14] ARM: OMAP2+: AM43x: kbuild

2013-05-27 Thread Afzal Mohammed
Build pieces that could be reused for AM43x - GIC related, secure related and common PRCM. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/Makefile | 6 ++ arch/arm/mach-omap2/cm33xx.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach

[PATCH v2 05/14] ARM: OMAP2+: AM437x: SoC revision detection

2013-05-27 Thread Afzal Mohammed
Detect 437x SoC revision. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/id.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-omap2/id.c b/arch/arm/mach-omap2/id.c index 44be835..c9c3f7d 100644 --- a/arch/arm/mach-omap2/id.c +++ b/arch/arm/mach-omap2

[PATCH v2 06/14] ARM: OMAP2+: AM43x: static mapping

2013-05-27 Thread Afzal Mohammed
AM43x L4 WKUP/PER mappings are similar to AM335x, reuse. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c index 06a8946..3a81221 100644 --- a/arch

[PATCH v2 07/14] ARM: OMAP2+: AM43x: early init

2013-05-27 Thread Afzal Mohammed
to it to a large extent. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/am33xx.h | 1 + arch/arm/mach-omap2/common.h | 1 + arch/arm/mach-omap2/io.c | 14 ++ 3 files changed, 16 insertions(+) diff --git a/arch/arm/mach-omap2/am33xx.h b/arch/arm/mach-omap2

[PATCH v2 11/14] Documentation: dt: binding: omap: am43x timer

2013-05-27 Thread Afzal Mohammed
AM43x timer bindings. Signed-off-by: Afzal Mohammed af...@ti.com --- Documentation/devicetree/bindings/arm/omap/timer.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/omap/timer.txt b/Documentation/devicetree/bindings/arm/omap/timer.txt index

[PATCH v2 12/14] Documentation: dt: binding: omap: am43x counter

2013-05-27 Thread Afzal Mohammed
AM43x 32K counter binding. Signed-off-by: Afzal Mohammed af...@ti.com --- Documentation/devicetree/bindings/arm/omap/counter.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/omap/counter.txt b/Documentation/devicetree/bindings/arm/omap/counter.txt

[PATCH v2 08/14] ARM: OMAP2+: AM43x: GP or HS ?

2013-05-27 Thread Afzal Mohammed
Detect whether GP or HS, similar to the AM335x way. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/id.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/id.c b/arch/arm/mach-omap2/id.c index c9c3f7d..0c28ef6 100644 --- a/arch/arm/mach

[PATCH v2 04/14] ARM: OMAP2+: AM43x: soc_is support

2013-05-27 Thread Afzal Mohammed
soc_is support for AM43x family of SoC's. Only variant now is AM437x, it is made as a subclass of AM43x. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/soc.h | 23 +++ 1 file changed, 23 insertions(+) diff --git a/arch/arm/mach-omap2/soc.h b/arch/arm/mach

[PATCH] ARM: OMAP2+: timer: initialize before using oh_name

2013-05-28 Thread Afzal Mohammed
' in this scenario would be a junk value, this would result in module not being enabled by hwmod API's for timer, and in turn crash. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2

[PATCH v3] ARM: dts: AM43x: initial support

2013-06-03 Thread Afzal Mohammed
Signed-off-by: Afzal Mohammed af...@ti.com --- v3: Make use of C preprocessor, rebased over Benoit's 'for_3.11/dts' branch v2: Add gptimer 1ms, timer2, synctimer and remove twd local timer arch/arm/boot/dts/am4372.dtsi | 68 +++ 1 file changed, 68 insertions

[PATCH] ARM: dts: AM43x EPOS EVM support

2013-06-14 Thread Afzal Mohammed
Add AM43x ePOS EVM minimal DT source - this is a minimal one to get it booting. Also include it in omap2plus dtbs and document bindings. The hardware is under development. Signed-off-by: Afzal Mohammed af...@ti.com --- Hi Benoit, This is based on your for_3.11/dts branch. Ideally I wanted

[PATCH 2/2] ARM: OMAP2+: hwmod: AM335x: fix cpgmac address space

2013-07-05 Thread Afzal Mohammed
it by indicating the address space to be used for register target. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/omap_hwmod_33xx_data.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-omap2/omap_hwmod_33xx_data.c b/arch/arm/mach-omap2/omap_hwmod_33xx_data.c index

[PATCH 1/2] ARM: OMAP2+: hwmod: rt address space index for DT

2013-07-05 Thread Afzal Mohammed
index of device address space to be used for register target. As default value of this field would be zero with static initialization, existing behaviour of using first address space for register target while using DT would be kept as such. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm

<    1   2   3   4   5   6   7   >