aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-07-19ARM: shmobile: armadillo800eva: Add backlight supportLaurent Pinchart1-2/+52
The flat panel backlight on the Armadillo 800 EVA board is driven by the TPU PWM output. Signed-off-by: Laurent Pinchart <[email protected]> Tested-by: Simon Horman <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: Minor update for the Lager DT reference codeMagnus Damm1-2/+1
Update the Lager DT reference code to get rid of the redundant irqchip header and also make lager_add_standard_devices() static. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: lager: Add DT referenceSimon Horman8-2/+99
This is sufficient to allow boot of the Lager board with a console without boards-lager.c compiled into the kernel. This is an example of a minimal but still useful initialisation of the board using DT as much as possible. As such it is the same as the boot of Lager that can be achieved without a board file. The intention of adding this file is to facilitate further work to allow board specific devices to be initialised via DT. Acked-by: Magnus Damm <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: ape6evm-reference: add CPUFreq supportGuennadi Liakhovetski2-0/+24
Add CPUFreq support to ape6evm-reference, using a max8973 regulator, that is supplying V_DVFS for the 4 CA15 cores on r8a73a4. Signed-off-by: Guennadi Liakhovetski <[email protected]> Acked-by: Magnus Damm <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: ape6evm: add DT referenceGuennadi Liakhovetski8-2/+126
This patch adds a sample DT-based APE6EVM "reference" implementation. The use of platform-specific C-code should be avoided with this configuration as much as possible. Signed-off-by: Guennadi Liakhovetski <[email protected]> Acked-by: Magnus Damm <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: Setup r8a7790 arch timer based on MD pinsMagnus Damm1-6/+45
Update the r8a7790 arch timer setup code to configure the frequency dynamically at boot time. This means that the arch timer driver will be able to detect a timer frequency that has been calculated based on the MD pins instead of a fixed and potentially incorrect 13 MHz. With this patch applied the Linux kernel will correctly support the r8a7790 Lager board that uses a 20 Mhz EXTAL. The arch timer will operate on 10 MHz and the Linux arch timer driver will be correctly configured to use 10 MHz. Without this patch the 20 MHz EXTAL will be used to drive the arch timer at 10 MHz, but the Linux arch timer driver will believe it is counting at 13 Mhz. Reported-by: Ulrich Hecht <[email protected]> Signed-off-by: Magnus Damm <[email protected]> Tested-by: Ulrich Hecht <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: Introduce r8a7790_read_mode_pins()Magnus Damm3-9/+19
Break out the r8a7790 boot mode code into a separate function so it can be shared by multiple users. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: r8a7740: add MMCIF DMA definitionsGuennadi Liakhovetski2-0/+12
Add DMA channel slave IDs and configuration entries for the r8a7740 MMCIF controller. Signed-off-by: Guennadi Liakhovetski <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: Disconnect EMEV2 SMP code from clocksMagnus Damm3-21/+9
Update the EMEV2 SMP code to access the SMU directly instead of relying on help from the legacy clock code. This change moves us one step closer to common clocks. Signed-off-by: Magnus Damm <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: Make r8a73a4 Arch timer optionalMagnus Damm4-1/+10
Update the r8a73a4 code to allow using other timers than Arch timer for clock event Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: Add r8a73a4 CMT10 clock eventMagnus Damm2-1/+24
Add clock event support for CMT1 timer channel 0 to the r8a73a4 SoC code. The CMT is used together with a 32KHz clock in this case. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: Make r8a7790 Arch timer optionalMagnus Damm4-1/+10
Update the r8a7790 code to allow using other timers than Arch timer for clock events. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: Add r8a7790 CMT00 clock eventMagnus Damm2-1/+26
Add clock event support for CMT0 timer channel 0 to the r8a7790 SoC code. On most ARM mach-shmobile the CMT is hooked up to a 32KHz clock but on r8a7790 a 31.7KHz clock is instead used. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: Sort r8a7790 MSTP entriesMagnus Damm1-3/+3
The r8a7790 MSTP bits should be kept sorted in the same way as on other mach-shmobile SoCs. Move the HSCIF and thermal bits to clean up the current state. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: r8a73a4: add clocks for I2C controllersGuennadi Liakhovetski1-2/+23
r8a73a4 SoCs have numerous I2C controllers, of which 9 are compatible with the i2c-sh_mobile.c driver. This patch adds clock definitions for them. Signed-off-by: Guennadi Liakhovetski <[email protected]> Acked-by: Kuninori Morimoto <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: r8a73a4: add Z2 clock supportGuennadi Liakhovetski1-0/+17
The Z2 clock on r8a73a4 is used to clock the 4 Cortex A7 cores on the SoC. Add a definition for this clock to later use it from the arm_big_little CPUFreq driver. Signed-off-by: Guennadi Liakhovetski <[email protected]> Acked-by: Kuninori Morimoto <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: r8a73a4: safeguard against wrong clk_set_rate() usesGuennadi Liakhovetski1-1/+13
clk_set_rate() should only be called with exact rates, returned by clk_round_rate(). However, it is still good to verify, that the value, passed to clock's .set_rate() method is at least valid. This patch adds such a check for the Z-clock on r8a73a4. Signed-off-by: Guennadi Liakhovetski <[email protected]> Acked-by: Kuninori Morimoto <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: r8a73a4: implement CPU clock scaling for CPUFreqGuennadi Liakhovetski3-1/+125
This patch adds support for the Z-clock on r8a73a4 SoCs, which is driving the Cortex A15 core, and a "cpufreq-cpu0" platform device. Adding an "operating-points" property to the CPU0 DT node and a regulator, this patch allows platforms to use the generic cpufreq-cpu0 driver to use SoC's DVFS capabilities. Signed-off-by: Guennadi Liakhovetski <[email protected]> Acked-by: Kuninori Morimoto <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: r8a73a4: wait for completion when kicking the clockGuennadi Liakhovetski1-6/+16
To reconfigure clocks, controlled by FRQCRA and FRQCRB, a kick bit has to be set and to make sure the setting has taken effect, it has to be read back repeatedly until it is cleared by the hardware. This patch adds the waiting part, that was missing until now. Acked-by: Kuninori Morimoto <[email protected]> Signed-off-by: Guennadi Liakhovetski <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: r8a7790: add thermal driver supportSimon Horman1-0/+12
The current temperature may be read using: cat /sys/class/thermal/thermal_zone0/temp Based on similar work for the r8a73a4 by Kuninori Morimoto. Acked-by: Kuninori Morimoto <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: r8a7790: add clocks for thermalSimon Horman1-0/+4
Acked-by: Kuninori Morimoto <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: Add SMSC ethernet chip to KZM9D DT referenceMagnus Damm1-0/+31
Add support for the SMSC ethernet controller found on the KZM9D board to the KZM9D DT Reference code. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: KZM9D DT reference implementationMagnus Damm6-0/+87
Add a DT reference implementation for the KZM9D board. Only DT devices are used in this case. UART, STI, GPIO and SMP / GIC are all provided by emev2.dtsi. There is still a board specific C file used for enabling legacy SH clocks. This file will be removed after we have moved over to common clocks. Signed-off-by: Magnus Damm <[email protected]> [[email protected]: Do not include trailing blank line in board-kzm9d-reference.c ] Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: r8a7790: add MMCIF and SDHI DT templatesGuennadi Liakhovetski1-0/+54
This adds DT templates for all MMCIF and SDHI controllers on r8a7790. They are added with status="disabled". To use them platform-specific DTs have to enable the required ones. Signed-off-by: Guennadi Liakhovetski <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: r8a73a4: add MMCIF and SDHI DT templatesGuennadi Liakhovetski1-0/+45
This adds DT templates for all MMCIF and SDHI controllers on r8a73a4. They are added with status="disabled". To use them platform-specific DTs have to enable the required ones. Signed-off-by: Guennadi Liakhovetski <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: EMEV2 map_io updateMagnus Damm1-7/+1
Update the EMEV2 struct map_desc to exclude the SMU and also include the ->map_io() callback in the DT version of EMEV2 board support. The EMEV2 SMP code can these days perform ioremap() early on without the SMU information in the io_desc[]. To correctly support SMP in case of DT-only board support then the ->map_io() callback is needed. Signed-off-by: Magnus Damm <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: Use DT for SMP on EMEV2 and KZM9DMagnus Damm1-14/+3
Rework the EMEV2 SMP code to rely on DT for CPU information instead of reading out number of CPU cores from the SCU. Signed-off-by: Magnus Damm <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: Use DT for GIC on EMEV2 and KZM9DMagnus Damm3-18/+0
Remove the C version of the EMEV2 GIC setup code, instead rely on GIC information provided by DT. Signed-off-by: Magnus Damm <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: Add GIO to EMEV2 dtsiMagnus Damm1-0/+59
Add GIO0->GIO4 device nodes to the EMEV2 dtsi file. Signed-off-by: Magnus Damm <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: Update KZM9D dts command lineMagnus Damm1-1/+1
Update the KZM9D DTS command line to remove following cruft: - console=tty0 - no graphic support upstream anyway - earlyprintk= - not supported by the 8250-em driver anyway - mem= - this is provided via DT anyway Signed-off-by: Magnus Damm <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: ape6evm: add CPUFreq supportGuennadi Liakhovetski1-0/+22
This patch adds OPPs to the CA15 DT node and a max8973 DT node to support clock and voltage scaling, using the cpufreq-cpu0 CPUFreq driver. Signed-off-by: Guennadi Liakhovetski <[email protected]> Acked-by: Kuninori Morimoto <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: r8a73a4: add I2C controller DT nodesGuennadi Liakhovetski1-0/+81
Add Device Tree nodes for the 9 I2C controllers on r8a73a4, compatible with the i2c-sh_mobile.c driver. Signed-off-by: Guennadi Liakhovetski <[email protected]> Acked-by: Kuninori Morimoto <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: mach-shmobile: ag5evm: Use bd6107 backlight driverLaurent Pinchart1-49/+16
Replace the backlight callback with a bd6107 backlight platform device. Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17sh: kfr2r09: Use lv5207lp backlightLaurent Pinchart3-55/+14
Replace the backlight callback with a lv5207lp backlight platform device. Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17sh: ecovec24: Use gpio-backlightLaurent Pinchart1-17/+20
Replace the backlight callback with a gpio-backlight platform device. Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: mach-shmobile: mackerel: Use gpio-backlightLaurent Pinchart1-17/+17
Replace the backlight callback with a gpio-backlight platform device. Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: Remove unused mach/dma.hMagnus Damm1-1/+0
Remove mach-shmobile mach/dma.h since it only seems to be used on non-mach-shmobile platforms. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: r8a7778: remove r8a7778_init_irq()Kuninori Morimoto2-29/+9
This patch removes r8a7778_init_irq(), since no-one is using it. And now, there is no reason to have r8a7778_init_irq_common(). r8a7778_init_irq_dt() includes it. Signed-off-by: Kuninori Morimoto <[email protected]> Acked-by: Magnus Damm <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: Fix EMEV2 clock comment typoMagnus Damm1-1/+1
Update the STI timer frequency comment to 32.768 kHz to fix 37 kHz typo. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: Make EMEV2 platform devices more compactMagnus Damm1-260/+61
Convert the EMEV2 SoC device setup code from using very verbose resources and static platform devices to the same style as more recent boards. This reduces the size of the code. Signed-off-by: Magnus Damm <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: Remove unused EMEV2/KZM9D early consoleMagnus Damm3-23/+5
Remove EMEV2 early console code from KZM9D and instead rely on console setup during regular platform device probe time. This makes the DT code and the KZM9D board support behave the same. Signed-off-by: Magnus Damm <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: Remove redundant r8a7790 callbackMagnus Damm1-5/+0
Replace the SoC-specific callback init_machine() with a NULL to use the default code. This cleans up the code and reduces the number of lines. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: Remove unused sh73a0 auxdata tableMagnus Damm1-6/+1
Pass NULL to of_platform_populate instead of passing an empty list. This cleans up the code and reduces the number of lines. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: Remove unused sh7372 auxdata tableMagnus Damm1-6/+1
Pass NULL to of_platform_populate instead of passing an empty list. This cleans up the code and reduces the number of lines. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: Remove unused r8a7779 auxdata tableMagnus Damm1-6/+1
Pass NULL to of_platform_populate instead of passing an empty list. This cleans up the code and reduces the number of lines. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: Remove unused r8a7778 auxdata and callbackMagnus Damm1-11/+0
Replace the SoC-specific callback init_machine() with a NULL to use the default code. This cleans up the code and reduces the number of lines. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: Remove unused r8a7740 auxdata tableMagnus Damm1-5/+11
Pass NULL to of_platform_populate instead of passing an empty list. This cleans up the code and reduces the number of lines. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: Remove unused EMEV2 auxdata and callbackMagnus Damm1-10/+0
Replace the SoC-specific callback init_machine() with a NULL to use the default code. This cleans up the code and reduces the number of lines. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: kzm9g: Remove init_irq declaration in machine descriptionMagnus Damm1-2/+0
Remove redundant irqchip_init() callback. The default case of NULL will result in invoking irqchip_init() anyway. Signed-off-by: Magnus Damm <[email protected]> [ [email protected]: Trimmed patch to remove portion that updates the sh73a0 SoC and altered the subject to use the same format as the patch that updates the sh73a0. ] Signed-off-by: Simon Horman <[email protected]>
2013-07-17ARM: shmobile: sh73a0: Remove init_irq declaration in machine descriptionMaxime Ripard1-2/+0
Commit ebafed7a ("ARM: irq: Call irqchip_init if no init_irq function is specified") removed the need to explictly setup the init_irq field in the machine description when using only irqchip_init. Remove that declaration for shmobile as well. Signed-off-by: Maxime Ripard <[email protected]> Signed-off-by: Simon Horman <[email protected]>