]> git.karo-electronics.de Git - karo-tx-linux.git/log
karo-tx-linux.git
10 years agoMerge branches 'imx/soc-3.14' and 'imx/dt-3.14' into for-next
Shawn Guo [Wed, 23 Oct 2013 08:29:50 +0000 (16:29 +0800)]
Merge branches 'imx/soc-3.14' and 'imx/dt-3.14' into for-next

10 years agoimx: add PCI fixup for PEX860X on Gateworks board
Tim Harvey [Wed, 23 Oct 2013 04:51:28 +0000 (21:51 -0700)]
imx: add PCI fixup for PEX860X on Gateworks board

The PEX860X has GPIO's which are used for PCI Reset lines on the
Gateworks Ventana boards.  The GPIO's need to be set as output
level high so as to allow the PCIe devices to come out of reset.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: dts: add Gateworks Ventana support
Tim Harvey [Wed, 23 Oct 2013 04:51:26 +0000 (21:51 -0700)]
ARM: dts: add Gateworks Ventana support

The Gateworks Ventana product family consists of several baseboard designs
based on the Freescale i.MX6 family of processors.  Each baseboard has a
different set of possible features.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: dts: added several new imx-pinmux groups
Tim Harvey [Wed, 23 Oct 2013 04:51:25 +0000 (21:51 -0700)]
ARM: dts: added several new imx-pinmux groups

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: dts: disable flexcan by default
Tim Harvey [Wed, 23 Oct 2013 04:51:27 +0000 (21:51 -0700)]
ARM: dts: disable flexcan by default

Typically nodes are disabled by default and enabled when needed.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: dts: i.MX53: Internal keyboard controller
Rostislav Lisovy [Tue, 22 Oct 2013 17:07:21 +0000 (19:07 +0200)]
ARM: dts: i.MX53: Internal keyboard controller

Signed-off-by: Rostislav Lisovy <lisovy@gmail.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: dts: i.MX53: Add alternate pinmux option for i2c_3
Rostislav Lisovy [Tue, 22 Oct 2013 17:07:20 +0000 (19:07 +0200)]
ARM: dts: i.MX53: Add alternate pinmux option for i2c_3

Signed-off-by: Rostislav Lisovy <lisovy@gmail.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoMerge branches 'imx/soc' and 'imx/dt' into for-next
Shawn Guo [Mon, 21 Oct 2013 01:47:40 +0000 (09:47 +0800)]
Merge branches 'imx/soc' and 'imx/dt' into for-next

10 years agoARM: imx: enable suspend for imx6sl
Shawn Guo [Thu, 17 Oct 2013 02:07:09 +0000 (10:07 +0800)]
ARM: imx: enable suspend for imx6sl

The imx6sl low power mode implementation inherits imx6q/dl one,
and pm-imx6q.c can just work for imx6sl with some minor updates.
Let's enable imx6sl suspend support by reusing pm-imx6q.c and use
cpu_is_imxXX() to handle the those minor differences between imx6sl
and imx6q/dl.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: imx: ensure dsm_request signal is not asserted when setting LPM
Shawn Guo [Wed, 16 Oct 2013 11:52:00 +0000 (19:52 +0800)]
ARM: imx: ensure dsm_request signal is not asserted when setting LPM

There is a defect in imx6 LPM design.  When SW tries to enter low power
mode with following sequence, the chip will enter low power mode before
A9 CPU execute WFI instruction:

1. Set CCM_CLPCR[1:0] to 2'b00;
2. ARM CPU enters WFI;
3. ARM CPU wakeup from an interrupt event, which is masked by GPC or not
   visible to GPC, such as interrupt from local timer;
4. Set CCM_CLPCR[1:0] to 2'b01 or 2'b10;
5. ARM CPU execute WFI.

Before the last step, the chip will enter WAIT mode if CCM_CLPCR[1:0] is
set to 2'b01, or enter STOP mode if CCM_CLPCR[1:0] is set to 2'b10.

The patch implements a recommended workaround for this issue.

1. SW triggers irq #32(IOMUX) to be always pending manually by setting
   IOMUX_GPR1_GINT bit;
2. SW should then unmask it in GPC before setting CCM LPM;
3. SW should mask it right after CCM LPM is set (bit0-1 of CCM_CLPCR).

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: imx6q: call WB and RBC configuration from imx6q_pm_enter()
Shawn Guo [Wed, 9 Oct 2013 12:31:28 +0000 (20:31 +0800)]
ARM: imx6q: call WB and RBC configuration from imx6q_pm_enter()

The WB and RBC configuration calls are currently made from
imx6q_set_lpm() for WAIT_CLOCKED and WAIT_UNCLOCKED mode with a simple
state tracking.  This becomes unnecessary since we can make the calls
from imx6q_pm_enter() directly now for suspend.

More importantly, the current call of imx6q_enable_wb() from
imx6q_set_lpm() is buggy.  The CLPCR register bits configured by
imx6q_enable_wb() will get lost, because imx6q_set_lpm() caches the same
register and write it back at the end of the function.  That's why the
imx6dl suspend/resume does not work currently - the wakeup from suspend
triggers a reset on imx6dl.

Moves the WB and RBC calls into imx6q_pm_enter() to save the state
tracking and fixes above bug, so that suspend/resume can start working
on imx6dl.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: imx6q: move low-power code out of clock driver
Shawn Guo [Wed, 25 Sep 2013 15:09:36 +0000 (23:09 +0800)]
ARM: imx6q: move low-power code out of clock driver

The LPM (Low Power Mode) code that currently sits in imx6q clock driver
will be reused by imx6sl.  Let's move it into pm-imx6q.c, so that we
can keep clock driver SoC specific and reuse pm-imx6q.c on imx6sl.

In order to avoid adding another ioremap for CCM block,
imx6q_pm_set_ccm_base() is created to let clock driver set up ccm_base
for pm code.

During the move, the unused CCGR macros get removed.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: imx: drop extern with function prototypes in common.h
Shawn Guo [Wed, 16 Oct 2013 13:05:35 +0000 (21:05 +0800)]
ARM: imx: drop extern with function prototypes in common.h

Since commit 70dc8a4 (checkpatch: warn when using extern with function
prototypes in .h files), we will get checkpatch warning when updating
common.h following the existing convention which has extern for function
prototypes.

Let's change the convention to not use extern with function prototypes
in this header.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: imx: reset core along with enable/disable operation
Shawn Guo [Wed, 9 Oct 2013 07:54:31 +0000 (15:54 +0800)]
ARM: imx: reset core along with enable/disable operation

From hotplug stress test result, resetting core during enable/disable
operation can improve cpu hotplug stability.  So let's set
SRC reset bit in imx_enable_cpu() for the core when its enable bit is
accessed.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: imx: do not return from imx_cpu_die() call
Shawn Guo [Wed, 9 Oct 2013 07:29:14 +0000 (15:29 +0800)]
ARM: imx: do not return from imx_cpu_die() call

When imx_cpu_die() is being called, the cpu should never return from the
call but just in WFI and wait for hardware to take it down.  So let's
do cpu_do_idle() repeatly in the call.  Doing this help improve the
relibility of hotplug operation.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: imx_v6_v7_defconfig: Select CONFIG_PROVE_LOCKING
Fabio Estevam [Wed, 9 Oct 2013 23:40:27 +0000 (20:40 -0300)]
ARM: imx_v6_v7_defconfig: Select CONFIG_PROVE_LOCKING

This is very useful for detecting 'circular locking dependency' issues.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: imx_v6_v7_defconfig: Enable LEDS_GPIO related options
Fabio Estevam [Wed, 9 Oct 2013 21:02:03 +0000 (18:02 -0300)]
ARM: imx_v6_v7_defconfig: Enable LEDS_GPIO related options

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: mxs_defconfig: Turn off CONFIG_DEBUG_GPIO
Fabio Estevam [Wed, 9 Oct 2013 03:10:39 +0000 (00:10 -0300)]
ARM: mxs_defconfig: Turn off CONFIG_DEBUG_GPIO

Having CONFIG_DEBUG_GPIO=y leads to several debug messages polluting kernel log:

[    0.580325] of_get_named_gpio_flags: can't parse gpios property of node '/regulators/3p3v[0]'
[    0.581185] 3P3V: 3300 mV
[    0.584827] of_get_named_gpio_flags exited with status 124
[    0.585852] vddio-sd0: 3300 mV
[    0.590023] of_get_named_gpio_flags exited with status 79
[    0.590770] fec-3v3: 3300 mV
[    0.594805] of_get_named_gpio_flags exited with status 105
[    0.595491] usb0_vbus: 5000 mV
[    0.599687] of_get_named_gpio_flags exited with status 104
[    0.600380] usb1_vbus: 5000 mV
[    0.604463] of_get_named_gpio_flags exited with status 126
[    0.605153] lcd-3v3: 3300 mV
[    0.608970] of_get_named_gpio_flags exited with status 77

Turn this option off, as these messages are not really useful for normal usage.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: imx: replace imx6q_restart() with mxc_restart()
Shawn Guo [Sun, 6 Oct 2013 08:47:46 +0000 (16:47 +0800)]
ARM: imx: replace imx6q_restart() with mxc_restart()

The imx6q_restart() works fine with normal reboot but will run into
problem with emergency reboot like sysrq-b.  In that case, of_iomap()
gets called from interrupt context and hence triggers the BUG_ON in
__get_vm_area_node().

Actually, since commit c1e31d1 (ARM: imx: create
mxc_arch_reset_init_dt() for DT boot), imx6q/dl should try to use
mxc_restart() by calling mxc_arch_reset_init_dt() beforehand, where
things like of_iomap() can be done.

The patch updates mxc_restart() a little bit to get it work for imx6q/dl
and kill imx6q_restart() completely.

Reported-by: Nathan Lynch <nathan_lynch@mentor.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: mach-imx: mm-imx5: Retrieve iomuxc base address from dt
Fabio Estevam [Tue, 1 Oct 2013 03:21:14 +0000 (00:21 -0300)]
ARM: mach-imx: mm-imx5: Retrieve iomuxc base address from dt

As mx53 is a dt-only SoC, we should retrieve the iomuxc base address from the
device tree, instead of using the old MX53_IO_ADDRESS method.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: mach-imx: mm-imx5: Retrieve tzic base address from dt
Fabio Estevam [Tue, 1 Oct 2013 03:21:13 +0000 (00:21 -0300)]
ARM: mach-imx: mm-imx5: Retrieve tzic base address from dt

As mx53 is a dt-only SoC, we should retrieve the tzic base address from the
device tree, instead of using the old MX53_IO_ADDRESS method.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: mach-imx: clk-imx51-imx53: Retrieve base address and irq from dt
Fabio Estevam [Tue, 1 Oct 2013 03:21:12 +0000 (00:21 -0300)]
ARM: mach-imx: clk-imx51-imx53: Retrieve base address and irq from dt

As mx53 is a dt-only SoC, we should retrieve the gpt base address and irq
from the device tree, instead of using the old MX53_IO_ADDRESS method.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: mxs_defconfig: Add CHIPIDEA_UDC support
Fabio Estevam [Mon, 30 Sep 2013 14:22:30 +0000 (11:22 -0300)]
ARM: mxs_defconfig: Add CHIPIDEA_UDC support

Generated by doing:

make mxs_defconfig
Manually selected the CHIPIDEA_UDC driver
make savedefconfig
cp defconfig arch/arm/configs/mxs_defconfig

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: imx: Include linux/err.h
Thierry Reding [Mon, 30 Sep 2013 12:04:51 +0000 (14:04 +0200)]
ARM: imx: Include linux/err.h

The IS_ERR() macro is defined in the linux/err.h header file, so include
it explicitly.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: imx_v6_v7_defconfig: Add CHIPIDEA_UDC support
Fabio Estevam [Sat, 28 Sep 2013 20:27:07 +0000 (17:27 -0300)]
ARM: imx_v6_v7_defconfig: Add CHIPIDEA_UDC support

Generated by doing:

make imx_v6_v7_defconfig
Manually selected the CHIPIDEA_UDC driver
make savedefconfig
cp defconfig arch/arm/configs/imx_v6_v7_defconfig

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: imx_v6_v7_defconfig: Add SPDIF support
Fabio Estevam [Sat, 28 Sep 2013 20:27:06 +0000 (17:27 -0300)]
ARM: imx_v6_v7_defconfig: Add SPDIF support

Generated by doing:

make imx_v6_v7_defconfig
Manually selected the IMX_SPDIF driver
make savedefconfig
cp defconfig arch/arm/configs/imx_v6_v7_defconfig

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: imx6q: clock and Kconfig update for PCIe support
Sean Cross [Thu, 26 Sep 2013 02:45:35 +0000 (10:45 +0800)]
ARM: imx6q: clock and Kconfig update for PCIe support

Update imx6q clock initialization and Kconfig for PCIe support.

Signed-off-by: Sean Cross <xobs@kosagi.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: imx: Add LVDS general-purpose clocks to i.MX6Q
Sean Cross [Mon, 16 Sep 2013 08:20:52 +0000 (08:20 +0000)]
ARM: imx: Add LVDS general-purpose clocks to i.MX6Q

The i.MX6 has two general-purpose LVDS clocks that can be driven
from a variety of sources.  This patch adds a mux and a gate for
both of these clocks.

Signed-off-by: Sean Cross <xobs@kosagi.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: imx: remove stale mx53_display_revision() declaration
Shawn Guo [Wed, 25 Sep 2013 13:30:42 +0000 (21:30 +0800)]
ARM: imx: remove stale mx53_display_revision() declaration

The mx53_display_revision() declaration in common.h is stale and used
nowhere, so remove it.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: imx6: report soc info via soc device
Shawn Guo [Tue, 13 Aug 2013 08:59:28 +0000 (16:59 +0800)]
ARM: imx6: report soc info via soc device

The patch enables soc bus infrastructure and adds a function
imx_soc_device_init() to report soc info via soc device interface for
imx6qdl and imx6sl.  With the support, user space can get soc related
info by looking at sysfs like below.

  $ cat /sys/devices/soc0/machine
  Freescale i.MX6 Quad SABRE Smart Device Board
  $ cat /sys/devices/soc0/family
  Freescale i.MX
  $ cat /sys/devices/soc0/soc_id
  i.MX6Q
  $ cat /sys/devices/soc0/revision
  1.2

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: imx: use imx_init_revision_from_anatop() on imx6sl
Shawn Guo [Tue, 13 Aug 2013 08:54:05 +0000 (16:54 +0800)]
ARM: imx: use imx_init_revision_from_anatop() on imx6sl

Add imx6sl support into imx_init_revision_from_anatop(), so that it can
be used to initialize cpu type and revision on imx6sl.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: imx: add a common function to initialize revision from anatop
Shawn Guo [Tue, 13 Aug 2013 06:59:43 +0000 (14:59 +0800)]
ARM: imx: add a common function to initialize revision from anatop

The patch creates a common function imx_init_revision_from_anatop() by
merging imx6q_init_revision() and imx_anatop_get_digprog(), so that any
SoC that encodes revision info in anatop can use it to initialize
revision.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: imx6q: use common soc revision helpers
Shawn Guo [Tue, 13 Aug 2013 06:10:29 +0000 (14:10 +0800)]
ARM: imx6q: use common soc revision helpers

It calls imx_set_soc_revision() to set up soc revision in
imx6q_init_revision(), and replaces all the occurrences of
imx6q_revision() with common helper imx_get_soc_revision().

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: imx: add soc revision helper functions
Shawn Guo [Tue, 13 Aug 2013 05:54:02 +0000 (13:54 +0800)]
ARM: imx: add soc revision helper functions

Similar to what we do for cpu type, the patch adds helper functions
imx_set_soc_revision() and imx_get_soc_revision() to maintain
imx_soc_revision in cpu.c.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: imx: add low-level debug for vybrid
Shawn Guo [Sun, 12 May 2013 09:22:17 +0000 (17:22 +0800)]
ARM: imx: add low-level debug for vybrid

Add low-level debug support for vybrid, so that earlyprintk can be
enabled for debugging early boot issue.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: imx: remove IRQF_DISABLED
Michael Opdenacker [Wed, 4 Sep 2013 05:04:39 +0000 (07:04 +0200)]
ARM: imx: remove IRQF_DISABLED

This flag is a NOOP since 2.6.35 and can be removed.

This is an update for 3.11 of a patch already sent for 3.10

Signed-off-by: Michael Opdenacker <michael.opdenacker@free-electrons.com>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: imx6sl: config iomux-gpr1 to select clock for fec
Fugang Duan [Wed, 4 Sep 2013 02:58:17 +0000 (10:58 +0800)]
ARM: imx6sl: config iomux-gpr1 to select clock for fec

Config iomux-gpr1 to select clock source for fec system clock.
Clear gpr1[14], gpr1[18-17] bit to select the fec clock source
from internal anatop PLL.

Signed-off-by: Fugang Duan <B38611@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: imx6sl: add imx6sl iomux-gpr field define
Fugang Duan [Tue, 3 Sep 2013 04:26:24 +0000 (12:26 +0800)]
ARM: imx6sl: add imx6sl iomux-gpr field define

Add imx6sl iomux-gpr register field define in "imx6q-iomuxc-gpr.h" header
file, which is not fully define all iomux-gpr registers and fields, only
add fec related macro define.

Signed-off-by: Fugang Duan <B38611@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: imx6q: Add pll4_audio_div to clock tree
Nicolin Chen [Fri, 23 Aug 2013 11:20:34 +0000 (19:20 +0800)]
ARM: imx6q: Add pll4_audio_div to clock tree

There's a pll4_audio_div clock, an extra divider for pll4, missing
in current clock tree, thus add it.

Signed-off-by: Nicolin Chen <b42378@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoMerge remote-tracking branch 'shesselba/clk-of-init-v2_for-3.13' into imx/soc
Shawn Guo [Mon, 21 Oct 2013 01:10:56 +0000 (09:10 +0800)]
Merge remote-tracking branch 'shesselba/clk-of-init-v2_for-3.13' into imx/soc

10 years agoARM: imx: imx6sl iomuxc syscon is compatible to imx6q
Shawn Guo [Fri, 18 Oct 2013 15:27:37 +0000 (23:27 +0800)]
ARM: imx: imx6sl iomuxc syscon is compatible to imx6q

The imx6sl iomuxc syscon is compatible to imx6q, so let's add
compatible string 'fsl,imx6q-iomuxc-gpr' for imx6sl iomuxc syscon node.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: dts: imx6sl-evk: enable the SPI NOR
Huang Shijie [Fri, 18 Oct 2013 02:32:53 +0000 (10:32 +0800)]
ARM: dts: imx6sl-evk: enable the SPI NOR

enable the spi nor for imx6sl-evk boards.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: dts: imx6sl: add a pinctrl for ECSPI1
Huang Shijie [Fri, 18 Oct 2013 02:32:52 +0000 (10:32 +0800)]
ARM: dts: imx6sl: add a pinctrl for ECSPI1

add a pinctrl for ECSPI1. This pinctrl can be used in the imx6sl-evk board.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: imx27: add missing #pwm-cells property
Steffen Trumtrar [Thu, 17 Oct 2013 13:03:16 +0000 (15:03 +0200)]
ARM: imx27: add missing #pwm-cells property

The pwm-node is missing its #pwm-cells property. The pwm-framework will
complain about this.

Add the missing property.

Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: dts: imx6sl: add pinctrl uhs states for usdhc
Dong Aisheng [Wed, 9 Oct 2013 11:20:07 +0000 (19:20 +0800)]
ARM: dts: imx6sl: add pinctrl uhs states for usdhc

This is needed for SD3.0 cards working on UHS mode.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: dts: imx6qdl-sabresd: Add backlight support for lvds
Rogerio Pimentel [Fri, 11 Oct 2013 19:48:16 +0000 (16:48 -0300)]
ARM: dts: imx6qdl-sabresd: Add backlight support for lvds

This patch adds support for lvds backlight on boards
i.MX6q-SabreSD and i.MX6dl-SabreSD

Signed-off-by: Rogerio Pimentel <rogerio.pimentel@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: dts: imx51-babbage: Make DVI and WVGA panel functional
Fabio Estevam [Tue, 8 Oct 2013 18:52:12 +0000 (15:52 -0300)]
ARM: dts: imx51-babbage: Make DVI and WVGA panel functional

Currently we get the following errors on imx51-babbage:

/display@di0: could not find display-timings node
/display@di0: no timings specified
/display@di1: could not find display-timings node
/display@di1: no timings specified
imx-drm imx-drm: failed to allocate buffer with size 0

Provide timing values for IPU1, which is connected to a DVI bridge and
to IPU2, which can be connected to the WVGA panel, so that both of them can
be functional.

While at it, disable the WVGA panel, so that DVI output becomes the default one.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: imx27-apf27dev: Add framebuffer support
Gwenhael Goavec-Merou [Sun, 6 Oct 2013 14:07:54 +0000 (16:07 +0200)]
ARM: imx27-apf27dev: Add framebuffer support

Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@armadeus.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: imx51-apf51dev: Add parallel display support
Gwenhael Goavec-Merou [Sun, 6 Oct 2013 11:48:52 +0000 (13:48 +0200)]
ARM: imx51-apf51dev: Add parallel display support

Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@armadeus.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: dts: imx53-qsb: Do not use GPIO1_8 as wakeup source
Fabio Estevam [Fri, 4 Oct 2013 16:15:28 +0000 (13:15 -0300)]
ARM: dts: imx53-qsb: Do not use GPIO1_8 as wakeup source

On the mx53qsb board with mc34708 PMIC, GPIO1_8 resets the system, so better not
to use it as a wakeup source.

Use GPIO 2_14 and 2_15 for wakeup sources instead.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: dts: imx53-qsb: SDHC1 does not have cd-gpios
Fabio Estevam [Fri, 4 Oct 2013 16:15:27 +0000 (13:15 -0300)]
ARM: dts: imx53-qsb: SDHC1 does not have cd-gpios

SDHC1 does not have any GPIO for reading the card detection status, so
remove 'cd-gpios'.

After this change card detection works via the internal SD controller mechanism.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: dts: imx53-qsb: SDHC3 is connected in 8-bit mode
Fabio Estevam [Fri, 4 Oct 2013 16:15:26 +0000 (13:15 -0300)]
ARM: dts: imx53-qsb: SDHC3 is connected in 8-bit mode

SDHC3 is 8 bit-wide, so pass the bus-width property to reflect that.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: dts: mxs: Add MSR M28CU3 board
Marek Vasut [Sun, 29 Sep 2013 22:41:29 +0000 (00:41 +0200)]
ARM: dts: mxs: Add MSR M28CU3 board

This board is based on the M28 SoM with custom baseboard. Supported
are LEDs, ethernet, PWM, LCD, SD slots.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: vt8500: remove custom .init_time hook
Sebastian Hesselbarth [Wed, 4 Sep 2013 12:12:46 +0000 (14:12 +0200)]
ARM: vt8500: remove custom .init_time hook

With arch/arm calling of_clk_init(NULL) from time_init(), we can now
remove custom .init_time hooks.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Tony Prisk <linux@prisktech.co.nz>
10 years agoARM: vexpress: remove custom .init_time hook
Sebastian Hesselbarth [Tue, 27 Aug 2013 13:34:12 +0000 (15:34 +0200)]
ARM: vexpress: remove custom .init_time hook

With arch/arm calling of_clk_init(NULL) from time_init(), we can now
remove custom .init_time hooks. The call to versatile_sched_clock_init
is moved to .init_early instead, were it is also for non-DT boards.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Tested-by: Jon Medhurst (Tixy) <tixy@linaro.org>
Acked-by: Pawel Moll <pawel.moll@arm.com>
10 years agoARM: tegra: remove custom .init_time hook
Sebastian Hesselbarth [Wed, 4 Sep 2013 11:42:55 +0000 (13:42 +0200)]
ARM: tegra: remove custom .init_time hook

With arch/arm calling of_clk_init(NULL) from time_init(), we can now
remove custom .init_time hooks.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
10 years agoARM: sunxi: remove custom .init_time hook
Sebastian Hesselbarth [Fri, 6 Sep 2013 13:11:01 +0000 (15:11 +0200)]
ARM: sunxi: remove custom .init_time hook

With arch/arm calling of_clk_init(NULL) from time_init(), we can now
remove custom .init_time hooks.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
10 years agoARM: sti: remove custom .init_time hook
Sebastian Hesselbarth [Tue, 27 Aug 2013 13:23:07 +0000 (15:23 +0200)]
ARM: sti: remove custom .init_time hook

With arch/arm calling of_clk_init(NULL) from time_init(), we can now
remove custom .init_time hooks. To get rid of it, move l2cc init to
.init_machine hook instead.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>
10 years agoARM: socfpga: remove custom .init_time hook
Sebastian Hesselbarth [Wed, 4 Sep 2013 11:38:00 +0000 (13:38 +0200)]
ARM: socfpga: remove custom .init_time hook

With arch/arm calling of_clk_init(NULL) from time_init(), we can now
remove custom .init_time hooks.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Dinh Nguyen <dinguyen@altera.com>
10 years agoARM: rockchip: remove custom .init_time hook
Sebastian Hesselbarth [Tue, 27 Aug 2013 13:19:46 +0000 (15:19 +0200)]
ARM: rockchip: remove custom .init_time hook

With arch/arm calling of_clk_init(NULL) from time_init(), we can now
remove custom .init_time hooks.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
10 years agoARM: prima2: remove custom .init_time hook
Sebastian Hesselbarth [Wed, 4 Sep 2013 12:23:55 +0000 (14:23 +0200)]
ARM: prima2: remove custom .init_time hook

With arch/arm calling of_clk_init(NULL) from time_init(), we can now
remove custom .init_time hooks.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Barry Song <baohua.song@csr.com>
10 years agoARM: nspire: remove custom .init_time hook
Sebastian Hesselbarth [Tue, 27 Aug 2013 13:19:10 +0000 (15:19 +0200)]
ARM: nspire: remove custom .init_time hook

With arch/arm calling of_clk_init(NULL) from time_init(), we can now
remove custom .init_time hooks.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
10 years agoARM: nomadik: remove custom .init_time hook
Sebastian Hesselbarth [Wed, 4 Sep 2013 17:09:21 +0000 (19:09 +0200)]
ARM: nomadik: remove custom .init_time hook

With arch/arm calling of_clk_init(NULL) from time_init(), we can now
remove custom .init_time hooks.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
10 years agoARM: mxs: remove custom .init_time hook
Sebastian Hesselbarth [Wed, 4 Sep 2013 11:16:01 +0000 (13:16 +0200)]
ARM: mxs: remove custom .init_time hook

This patch converts clk-imx2[38] clocksource_of_init compatible init
associated with fsl,imx2[38]-clkctrl. With arch/arm calling
of_clk_init(NULL) from time_init(), we can now also remove custom
.init_time hooks.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Mike Turquette <mturquette@linaro.org>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: kirkwood: remove custom .init_time hook
Sebastian Hesselbarth [Tue, 27 Aug 2013 13:10:16 +0000 (15:10 +0200)]
ARM: kirkwood: remove custom .init_time hook

With arch/arm calling of_clk_init(NULL) from time_init(), we can now
remove custom .init_time hooks.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Tested-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Jason Cooper <jason@lakedaemon.net>
10 years agoARM: imx: remove custom .init_time hook
Sebastian Hesselbarth [Tue, 27 Aug 2013 12:50:00 +0000 (14:50 +0200)]
ARM: imx: remove custom .init_time hook

With arch/arm calling of_clk_init(NULL) from time_init(), we can now
remove custom .init_time hooks.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: highbank: remove custom .init_time hook
Sebastian Hesselbarth [Tue, 27 Aug 2013 12:42:06 +0000 (14:42 +0200)]
ARM: highbank: remove custom .init_time hook

With arch/arm calling of_clk_init(NULL) from time_init(), we can now
remove custom .init_time hooks. Highbank clock provider need a reference
to system registers, as a workaround current clk driver maps those
independent of arch code now.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Mike Turquette <mturquette@linaro.org>
10 years agoARM: exynos: remove custom .init_time hook
Sebastian Hesselbarth [Wed, 4 Sep 2013 10:45:59 +0000 (12:45 +0200)]
ARM: exynos: remove custom .init_time hook

With arch/arm calling of_clk_init(NULL) from time_init(), we can now
remove custom .init_time hooks. While at it, also remove some now
redundant includes.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Reviewed-by: Tomasz Figa <t.figa@samsung.com>
10 years agoARM: dove: remove custom .init_time hook
Sebastian Hesselbarth [Fri, 6 Sep 2013 13:08:36 +0000 (15:08 +0200)]
ARM: dove: remove custom .init_time hook

With arch/arm calling of_clk_init(NULL) from time_init(), we can now
remove custom .init_time hooks. While at it, also remove some obsolete
includes.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Tested-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Jason Cooper <jason@lakedaemon.net>
10 years agoARM: bcm2835: remove custom .init_time hook
Sebastian Hesselbarth [Mon, 16 Sep 2013 22:38:10 +0000 (00:38 +0200)]
ARM: bcm2835: remove custom .init_time hook

With arch/arm calling of_clk_init(NULL) from time_init(), we can now
remove custom .init_time hooks. Also remove call to of_clk_init from
clk-bcm2835 with core fixed_clock match, as this has already been
registered now.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Acked-by: Mike Turquette <mturquette@linaro.org>
10 years agoARM: bcm: provide common arch init for DT clocks
Matt Porter [Fri, 20 Sep 2013 19:16:14 +0000 (15:16 -0400)]
ARM: bcm: provide common arch init for DT clocks

With arch/arm calling of_clk_init(NULL) and clocksource_of_init()
this is no longer needed. The former is useful because we can make
use of dummy fixed clocks for drivers until the bcm281xx common
clock driver is ready.

Signed-off-by: Matt Porter <matt.porter@linaro.org>
Reviewed-by: Markus Mayer <markus.mayer@linaro.org>
Acked-by: Christian Daudt <csd@broadcom.com>
10 years agoARM: call of_clk_init from default time_init handler
Sebastian Hesselbarth [Wed, 4 Sep 2013 10:24:03 +0000 (12:24 +0200)]
ARM: call of_clk_init from default time_init handler

Most DT ARM machs require common clock providers initialized before timers.
Currently, arch/arm machs use .init_time to call of_clk_init right before
clocksource_of_init. This prevents to remove that callback and use the default
one instead.

This patch adds a call to of_clk_init() to the default .init_time callback
for COMMON_CLK enabled machs to allow to remove custom callbacks where applicable.
While at it, also reorder includes alphabetically.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
10 years agoARM: vt8500: prepare for arch-wide .init_time callback
Sebastian Hesselbarth [Wed, 4 Sep 2013 12:09:39 +0000 (14:09 +0200)]
ARM: vt8500: prepare for arch-wide .init_time callback

Current vt8500 board init calls of_clk_init() from vtwm_clk_init. To allow
consolidation of DT driven .time_init, move of_clock_init() to a temporary
.time_init callback that will be removed when arch-wide callback is available.
With previous pmc_base parsing helper for vt8500 clock providers, we can also
safely remove the call to vtwm_clk_init() and get rid of some includes.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Tony Prisk <linux@prisktech.co.nz>
Acked-by: Mike Turquette <mturquette@linaro.org>
10 years agoclk: vt8500: parse pmc_base from clock driver
Sebastian Hesselbarth [Wed, 4 Sep 2013 11:58:11 +0000 (13:58 +0200)]
clk: vt8500: parse pmc_base from clock driver

Currently, clock providers for vt8500 depend on machine_init providing
pmc_base address before calling of_clk_init. With upcoming arch-wide
.time_init calling of_clk_init, we should make clock providers independent
of mach code. This adds a pmc_base parsing helper to current clock provider
that gets called if there is no pmc_base set, yet.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Tony Prisk <linux@prisktech.co.nz>
Acked-by: Mike Turquette <mturquette@linaro.org>
10 years agoclk: sunxi: declare OF clock provider
Sebastian Hesselbarth [Fri, 6 Sep 2013 12:59:57 +0000 (14:59 +0200)]
clk: sunxi: declare OF clock provider

Common clock framework allows to register clock providers to get called
on of_clk_init() by using CLK_OF_DECLARE. This converts sunxi clock
providers to make use of it and get rid of the mach specific clk init
call. As sunxi has a bunch of independent clk provider nodes, we hook
current clock init to board compatible to make it called once.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Mike Turquette <mturquette@linaro.org>
10 years agoARM: socfgpa: prepare for arch-wide .init_time callback
Sebastian Hesselbarth [Wed, 4 Sep 2013 11:35:50 +0000 (13:35 +0200)]
ARM: socfgpa: prepare for arch-wide .init_time callback

Current socfpga board init calls of_clk_init() from .machine_init. To
allow consolidation of DT driven .time_init, move of_clock_init() to
a temporary .time_init that will be removed when arch-wide callback is
available.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Dinh Nguyen <dinguyen@altera.com>
10 years agoclk: prima2: declare OF clock provider
Sebastian Hesselbarth [Wed, 4 Sep 2013 12:21:18 +0000 (14:21 +0200)]
clk: prima2: declare OF clock provider

Common clock framework allows to register clock providers to get called
on of_clk_init() by using CLK_OF_DECLARE. This converts prima2 clock
provider to make use of it and get rid of the mach specific clk init
call.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Barry Song <baohua.song@csr.com>
Acked-by: Mike Turquette <mturquette@linaro.org>
10 years agoclk: nomadik: declare OF clock provider
Sebastian Hesselbarth [Mon, 16 Sep 2013 22:32:34 +0000 (00:32 +0200)]
clk: nomadik: declare OF clock provider

Common clock framework allows to register clock providers to get called
on of_clk_init() by using CLK_OF_DECLARE. This converts nomadik clock
provider to make use of it and get rid of the mach specific clk init
call. As clocks require system reset controller base address to be
initialized each clock driver checks src_base and calls new
nomadik_src_init if required.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Mike Turquette <mturquette@linaro.org>
10 years agoclk: nomadik: move src init out of nomadik_clk_init
Sebastian Hesselbarth [Sun, 22 Sep 2013 16:17:28 +0000 (18:17 +0200)]
clk: nomadik: move src init out of nomadik_clk_init

nomadik_clk_init currently also maps system reset controller base address
used by clocks and registers a reboot notifier. To allow further cleanup of
nomadik clk setup, this moves system reset controller setup from
nomadik_clk_init to its own function.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Mike Turquette <mturquette@linaro.org>
10 years agoARM: nomadik: remove mtu initalization from .init_time
Sebastian Hesselbarth [Wed, 4 Sep 2013 16:31:14 +0000 (18:31 +0200)]
ARM: nomadik: remove mtu initalization from .init_time

Nomadik clock initialization is properly done in clk-nomadik since
patch "clk: nomadik: set all timers to use 2.4 MHz TIMCLK".
Therefore, this patch removes now redundant mtu initialization from
.init_time callback.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
10 years agoARM: dts: imx6qdl-wandboard: Provide phy-reset-gpios
Fabio Estevam [Fri, 27 Sep 2013 14:12:42 +0000 (11:12 -0300)]
ARM: dts: imx6qdl-wandboard: Provide phy-reset-gpios

GPIO3_29 is used to reset the ethernet phy.

Add support for it.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: dts: imx6qdl-sabresd: Provide phy-reset-gpios
Fabio Estevam [Fri, 27 Sep 2013 14:12:41 +0000 (11:12 -0300)]
ARM: dts: imx6qdl-sabresd: Provide phy-reset-gpios

GPIO1_25 is used to reset the ethernet phy.

Add support for it.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: dts: imx6q-sabrelite: Add ethernet phy reset pin into hog
Fabio Estevam [Fri, 27 Sep 2013 14:12:40 +0000 (11:12 -0300)]
ARM: dts: imx6q-sabrelite: Add ethernet phy reset pin into hog

MX6QDL_PAD_EIM_D23__GPIO3_IO23 pin is used to reset the ethernet phy.

Add it to the 'hog' group.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: dts: imx6qdl: add pcie device node
Sean Cross [Thu, 26 Sep 2013 02:51:09 +0000 (10:51 +0800)]
ARM: dts: imx6qdl: add pcie device node

Add pcie device node for imx6qdl.

Signed-off-by: Sean Cross <xobs@kosagi.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: dts: imx6q-udoo: Add initial board support
Fabio Estevam [Thu, 26 Sep 2013 20:43:52 +0000 (17:43 -0300)]
ARM: dts: imx6q-udoo: Add initial board support

For more information about the Udoo board:
http://www.udoo.org/

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: dts: mxs: Add muxing options for the SSP2 MMC
Marek Vasut [Thu, 26 Sep 2013 11:16:16 +0000 (13:16 +0200)]
ARM: dts: mxs: Add muxing options for the SSP2 MMC

Add pinmux for 4-bit SD card connected to SSP2.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: dts: add initial VF610 Cosmic/Cosmic+ board support
Matt Porter [Mon, 23 Sep 2013 15:14:44 +0000 (11:14 -0400)]
ARM: dts: add initial VF610 Cosmic/Cosmic+ board support

Add initial PHYTEC VF610 Cosmic/Cosmic+ board support with
UART and FEC enabled.

Signed-off-by: Matt Porter <matt.porter@linaro.org>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: dts: mxs: convert usb0_id_pins_a to use symbolic pin defs
Lothar Waßmann [Mon, 23 Sep 2013 12:20:27 +0000 (14:20 +0200)]
ARM: dts: mxs: convert usb0_id_pins_a to use symbolic pin defs

This pin definition had been added after the initial patch to use
symbolic pin names in DTS files.

Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: dts: tx28: restructure and update DTS file
Lothar Waßmann [Mon, 23 Sep 2013 10:20:48 +0000 (12:20 +0200)]
ARM: dts: tx28: restructure and update DTS file

Update the Ka-Ro TX28 DTS file.

- add Copyright header
- use label references for better readability
- sort the entries alphabetically
- add some aliases used by U-Boot to modify the DT data

Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: dts: imx6q: add quirky select input for USB_OTG_ID
Shawn Guo [Thu, 1 Aug 2013 04:22:04 +0000 (12:22 +0800)]
ARM: dts: imx6q: add quirky select input for USB_OTG_ID

For some reason, the select input of pin function USB_OTG_ID is not
implemented via a regular select input register but using the bit
USB_OTG_ID_ SEL (shift 13) of IOMUXC_GPR1 register (offset 0x4).

As per the workaround for such quirk implemented in pinctrl driver,
we need to compose the input_val cell as below.

31     23      15      7        0
| 0xff | shift | width | select |

Thus, we have 0xff0d0100 for MX6QDL_PAD_ENET_RX_ER__USB_OTG_ID and
0xff0d0101 for MX6QDL_PAD_GPIO_1__USB_OTG_ID in input_val cell.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Peter Chen <peter.chen@freescale.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
10 years agoARM: dts: mxs: modify mx23/mx28 dts files to use padconfig defines
Lothar Waßmann [Sun, 22 Sep 2013 06:02:59 +0000 (14:02 +0800)]
ARM: dts: mxs: modify mx23/mx28 dts files to use padconfig defines

Convert mx23/mx28 dts files to use the padconfig defintions from
mxs-pinfunc.h.

Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: dts: mxs: modify mx23/mx28 dts files to use pinctrl headers
Lothar Waßmann [Thu, 19 Sep 2013 06:59:48 +0000 (08:59 +0200)]
ARM: dts: mxs: modify mx23/mx28 dts files to use pinctrl headers

Convert mx23/mx28 dts filed to use the pinctrl header files.

NOTE: During automatic conversion of these files to use the pinconfig
definitions an inconsistency has been found in:
arch/arm/boot/dts/imx28-apx4devkit.dts

According to the comment the function for pad SSP2_SS0 should have
been MX28_PAD_SSP2_SS0__GPIO_2_19, while the given value 0x2131
represents: MX28_PAD_SSP2_SS0__AUART3_TX

I used the later (though probably wrong) definition because that's
what is actually being used in the DTB.

Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: dts: mxs: add pinctrl header files
Lothar Waßmann [Thu, 19 Sep 2013 06:59:47 +0000 (08:59 +0200)]
ARM: dts: mxs: add pinctrl header files

Remove the list of possible pin configurations from the documentation
file and create header files containing those definitions.
This eliminates the need for error-prone manual lookup of those values
in the documentation and guarantees consistency between the human
readable representation of the pad function in the .dts file and the
actual binary value used in DT.

Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: dts: imx28-evk: Enable touchscreen support
Fabio Estevam [Tue, 17 Sep 2013 19:18:38 +0000 (16:18 -0300)]
ARM: dts: imx28-evk: Enable touchscreen support

Provide 'lradc-touchscreen-wires' property to the LRADC driver, so that
touchscreen can be functional.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: dts: imx6qdl-sabresd: SDHC ports are 8 bit-wide
Fabio Estevam [Tue, 17 Sep 2013 16:46:23 +0000 (13:46 -0300)]
ARM: dts: imx6qdl-sabresd: SDHC ports are 8 bit-wide

On imx6qdl-sabresd the SDHC2 and SDHC3 are 8 bit-wide, so pass the bus-width
property to reflect that.

Otherwise the mmc driver will operate with the default bus-width value of 4.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: dts: imx6qdl: add uhs pinctrl state for usdhc3
Dong Aisheng [Fri, 13 Sep 2013 11:11:38 +0000 (19:11 +0800)]
ARM: dts: imx6qdl: add uhs pinctrl state for usdhc3

This is needed for supporting ultra high speed cards like SD3.0 cards.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: dts: imx6sl: Add spi aliases
Fabio Estevam [Fri, 13 Sep 2013 21:13:00 +0000 (18:13 -0300)]
ARM: dts: imx6sl: Add spi aliases

Add spi aliases.

While at it, keep the aliases entries sorted.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: imx: mx6sl-evk: Enable USB function
Peter Chen [Tue, 10 Sep 2013 02:23:16 +0000 (10:23 +0800)]
ARM: imx: mx6sl-evk: Enable USB function

Enable USB function for OTG 1 and OTG 2 at mx6sololite evk.
Besides, fix the wrong interrupt number for OTG2 and host 1.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: dts: add iomuxc-gpr device node for imx6sl
Fugang Duan [Tue, 3 Sep 2013 04:26:22 +0000 (12:26 +0800)]
ARM: dts: add iomuxc-gpr device node for imx6sl

Add iomuxc gpr device node for imx6sl.

Signed-off-by: Fugang Duan <B38611@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: imx6qdl-wandboard: Add spdif support
Fabio Estevam [Tue, 3 Sep 2013 02:51:41 +0000 (23:51 -0300)]
ARM: imx6qdl-wandboard: Add spdif support

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Reviewed-by: Nicolin Chen <b42378@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>