OSDN Git Service

uclinux-h8/linux.git
5 years agoMerge tag 'omap-for-v4.20/ti-sysc-take2-signed' into omap-for-v4.21/dt-ti-sysc
Tony Lindgren [Thu, 18 Oct 2018 17:03:40 +0000 (10:03 -0700)]
Merge tag 'omap-for-v4.20/ti-sysc-take2-signed' into omap-for-v4.21/dt-ti-sysc

TI sysc driver changes for v4.20 merge window

This series gets rid of the SYSC_QUIRK_RESOURCE_PROVIDER to make device
detection happen mostly only if #define DEBUG is set. Few core devices still
need to be detected to set legacy quirks.

We also add support for booting am335x, am437x and dra7 SoCs with L4 devices
defined in device tree instead of legacy platform data.

And finally we simplify suspend with just SET_NOIRQ_SYSTEM_SLEEP_PM_OPS
and dropping the custom functions that were attempting to work around
issues that really turned out to be child device driver related issues.

Apologies for a late pull request, debugging the suspend issues took a while
and I did not want to send these changes until that got sorted out.

5 years agoMerge remote-tracking branch 'gpio/ib-omap' into omap-for-v4.21/dt-ti-sysc
Tony Lindgren [Thu, 18 Oct 2018 17:02:45 +0000 (10:02 -0700)]
Merge remote-tracking branch 'gpio/ib-omap' into omap-for-v4.21/dt-ti-sysc

5 years agoMerge commit 'ce32d59ee2cd036f6e8a6ed17a06a0b0bec5c67c' into omap-for-v4.21/dt-ti...
Tony Lindgren [Thu, 18 Oct 2018 16:55:46 +0000 (09:55 -0700)]
Merge commit 'ce32d59ee2cd036f6e8a6ed17a06a0b0bec5c67c' into omap-for-v4.21/dt-ti-sysc

5 years agoMerge commit 'd6e7bbc148f9fbec8a0117b0d0f420c9710e6d81' into omap-for-v4.21/dt-ti...
Tony Lindgren [Thu, 18 Oct 2018 16:47:50 +0000 (09:47 -0700)]
Merge commit 'd6e7bbc148f9fbec8a0117b0d0f420c9710e6d81' into omap-for-v4.21/dt-ti-sysc

5 years agoclk: ti: Add functions to save/restore clk context
Russ Dill [Tue, 4 Sep 2018 06:49:37 +0000 (12:19 +0530)]
clk: ti: Add functions to save/restore clk context

SoCs like AM43XX lose clock registers context during RTC-only
suspend. Hence add functions to save/restore the clock registers
context.

Signed-off-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Russ Dill <Russ.Dill@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
5 years agoclk: clk: Add clk_gate_restore_context function
Keerthy [Tue, 4 Sep 2018 06:49:36 +0000 (12:19 +0530)]
clk: clk: Add clk_gate_restore_context function

The clock gate restore context function enables or disables
the gate clocks based on the enable_count. This is done in cases
where the clock context is lost and based on the enable_count
the clock either needs to be enabled/disabled.

Signed-off-by: Keerthy <j-keerthy@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
5 years agoclk: Add functions to save/restore clock context en-masse
Russ Dill [Tue, 4 Sep 2018 06:49:35 +0000 (12:19 +0530)]
clk: Add functions to save/restore clock context en-masse

Deep enough power saving mode can result into losing context of the clock
registers also, and they need to be restored once coming back from the power
saving mode. Hence add functions to save/restore clock context.

Signed-off-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Russ Dill <Russ.Dill@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
5 years agoclk: ti: dra7: add new clkctrl data
Tero Kristo [Mon, 13 Aug 2018 11:30:49 +0000 (14:30 +0300)]
clk: ti: dra7: add new clkctrl data

The new clkctrl data layout for dra7xx is split based on clockdomain
boundaries. Previously the split was based on CM boundaries. This patch
adds the new data as separate data entity, retaining the compatibility
data also for now. The compatibility data can be removed once no longer
needed.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Tested-by: Tony Lindgren <tony@atomide.com>
5 years agoclk: ti: dra7xx: rename existing clkctrl data as compat data
Tero Kristo [Mon, 13 Aug 2018 08:11:33 +0000 (11:11 +0300)]
clk: ti: dra7xx: rename existing clkctrl data as compat data

Rename the existing clkctrl data in preparation of upcoming clkdm
based split for it. Once the DT data has transitioned also, the
compat data can be removed.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Tested-by: Tony Lindgren <tony@atomide.com>
5 years agoclk: ti: am43xx: add new clkctrl data for am43xx
Tero Kristo [Mon, 13 Aug 2018 07:48:52 +0000 (10:48 +0300)]
clk: ti: am43xx: add new clkctrl data for am43xx

The new clkctrl data layout for am43xx is split based on clockdomain
boundaries. Previously the split was based on CM boundaries. This patch
adds the new data as separate data entity, retaining the compatibility
data also for now. The compatibility data can be removed once no longer
needed.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Tested-by: Tony Lindgren <tony@atomide.com>
5 years agoclk: ti: am43xx: rename existing clkctrl data as compat data
Tero Kristo [Mon, 13 Aug 2018 07:38:40 +0000 (10:38 +0300)]
clk: ti: am43xx: rename existing clkctrl data as compat data

Rename the existing clkctrl data in preparation of upcoming clkdm
based split for it. Once the DT data has transitioned also, the
compat data can be removed.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Tested-by: Tony Lindgren <tony@atomide.com>
5 years agoclk: ti: am33xx: add new clkctrl data for am33xx
Tero Kristo [Fri, 10 Aug 2018 15:35:03 +0000 (18:35 +0300)]
clk: ti: am33xx: add new clkctrl data for am33xx

The new clkctrl data layout for am33xx is split based on clockdomain
boundaries. Previously the split was based on CM boundaries. This patch
adds the new data as separate data entity, retaining the compatibility
data also for now. The compatibility data can be removed once no longer
needed.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Tested-by: Tony Lindgren <tony@atomide.com>
5 years agoclk: ti: am33xx: rename existing clkctrl data as compat data
Tero Kristo [Fri, 10 Aug 2018 15:22:02 +0000 (18:22 +0300)]
clk: ti: am33xx: rename existing clkctrl data as compat data

Rename the existing clkctrl data in preparation of upcoming clkdm
based split for it. Once the DT data has transitioned also, the
compat data can be removed.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Tested-by: Tony Lindgren <tony@atomide.com>
5 years agoclk: ti: clkctrl: replace dashes from clkdm name with underscore
Tero Kristo [Thu, 30 Aug 2018 06:58:31 +0000 (09:58 +0300)]
clk: ti: clkctrl: replace dashes from clkdm name with underscore

The change in the DTS data node naming prevents using underscore
within the node names and force usage of dash instead. On the other
hand, clockdomains use underscore instead of dash, so this must be
replaced within the driver code so that the mapping between the two
can be done properly.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Tested-by: Tony Lindgren <tony@atomide.com>
5 years agoclk: ti: clkctrl: support multiple clkctrl nodes under a cm node
Tero Kristo [Fri, 10 Aug 2018 08:29:09 +0000 (11:29 +0300)]
clk: ti: clkctrl: support multiple clkctrl nodes under a cm node

Currently, only one clkctrl node can be added under a specific CM node
due to limitation with the implementation. Modify the code to pick-up
clockdomain name from the clkctrl node instead of CM node if provided.
Also, add a new flag to the TI clock driver so that both modes can
be supported simultaneously.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Tested-by: Tony Lindgren <tony@atomide.com>
5 years agodt-bindings: clock: dra7xx: add clkctrl indices for new data layout
Tero Kristo [Fri, 31 Aug 2018 14:44:09 +0000 (17:44 +0300)]
dt-bindings: clock: dra7xx: add clkctrl indices for new data layout

The new data layout will be split based on clockdomain boundaries, instead
of CM boundaries. This introduces a few new clkctrl providers, that have
different indices for the clkctrl data.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Tested-by: Tony Lindgren <tony@atomide.com>
5 years agodt-bindings: clock: am43xx: add clkctrl indices for new data layout
Tero Kristo [Fri, 31 Aug 2018 14:42:31 +0000 (17:42 +0300)]
dt-bindings: clock: am43xx: add clkctrl indices for new data layout

The new data layout will be split based on clockdomain boundaries, instead
of CM boundaries. This introduces a few new clkctrl providers, that have
different indices for the clkctrl data.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Tested-by: Tony Lindgren <tony@atomide.com>
5 years agodt-bindings: clock: am33xx: add clkctrl indices for new data layout
Tero Kristo [Fri, 31 Aug 2018 14:38:57 +0000 (17:38 +0300)]
dt-bindings: clock: am33xx: add clkctrl indices for new data layout

The new data layout will be split based on clockdomain boundaries, instead
of CM boundaries. This introduces a few new clkctrl providers, that have
different indices for the clkctrl data.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Tested-by: Tony Lindgren <tony@atomide.com>
5 years agobus: ti-sysc: Just use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS
Tony Lindgren [Mon, 1 Oct 2018 16:33:28 +0000 (09:33 -0700)]
bus: ti-sysc: Just use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS

As Grygorii Strashko pointed out, the runtime PM use count of the
children can be whatever at suspend and we should not use it. So
let's just suspend ti-sysc at noirq level and get rid of some code.

Let's also remove the PM_SLEEP ifdef and use __maybe_unused as the
PM code already deals with the ifdefs.

Suggested-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agobus: ti-sysc: Make some warnings debug only
Tony Lindgren [Fri, 28 Sep 2018 22:21:50 +0000 (15:21 -0700)]
bus: ti-sysc: Make some warnings debug only

We're currently warning about busy children on suspend in
sysc_child_suspend_noirq() but the legacy code omap_device does
not do that. Let's just make it dev_dbg() instead of dev_warn().

Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agobus: ti-sysc: Detect devices for debug on dra7
Tony Lindgren [Thu, 27 Sep 2018 20:34:27 +0000 (13:34 -0700)]
bus: ti-sysc: Detect devices for debug on dra7

We want to see the names of detected devices when DEBUG is enabled.

Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agobus: ti-sysc: Detect timer and gpio on dra7
Tony Lindgren [Thu, 27 Sep 2018 20:33:58 +0000 (13:33 -0700)]
bus: ti-sysc: Detect timer and gpio on dra7

We need to detect timer and gpio on dra7 because of the
SYSC_QUIRK_LEGACY_IDLE flag for suspend and resume.

Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoMerge commit '4f3530f4a41d49c41015020cd9a5ed5c95b5d2db' into omap-for-v4.20/ti-sysc
Tony Lindgren [Fri, 28 Sep 2018 22:27:21 +0000 (15:27 -0700)]
Merge commit '4f3530f4a41d49c41015020cd9a5ed5c95b5d2db' into omap-for-v4.20/ti-sysc

5 years agoARM: dts: am335x: Replace remaining legacy phy_id with phy-handle
Tony Lindgren [Fri, 28 Sep 2018 20:32:01 +0000 (13:32 -0700)]
ARM: dts: am335x: Replace remaining legacy phy_id with phy-handle

Looks like we still have two instances of phy_handle that did not
get update by Grygorii's series. Let's replace these too with
standard phy-handle.

Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Neeraj Dantu <dantuguf14105@gmail.com>
Reported-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
Acked-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: am335x: add support for Moxa UC-2101 open platform
SZ Lin (林上智) [Fri, 28 Sep 2018 10:47:52 +0000 (18:47 +0800)]
ARM: dts: am335x: add support for Moxa UC-2101 open platform

Add support for Moxa UC-2101 open platform

The UC-2101 computing platform is designed for industrial embedded
data acquisition and processing applications.

The features of UC-2101 are:
* eMMC
* SPI flash
* 1x LAN
* 1x RS-232/422/485 ports, software-selectable
* EEPROM
* TPM 2.0
* Watchdog
* RTC
* User gpio-keys
* User LEDs
* User button

Signed-off-by: Wes Huang (黃淵河) <wes.huang@moxa.com>
Signed-off-by: Fero JD Zhou (周俊達) <FeroJD.Zhou@moxa.com>
Signed-off-by: SZ Lin (林上智) <sz.lin@moxa.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: am335x: add common file for UC-2100 series
SZ Lin (林上智) [Fri, 28 Sep 2018 10:47:16 +0000 (18:47 +0800)]
ARM: dts: am335x: add common file for UC-2100 series

The UC-2100 series consists many boards with different peripheral
devices and wireless modules, hence we fetch common items and
create a common dtsi file to increase reusability. All boards in
UC-2100 series will include this common dtsi file.

Signed-off-by: Wes Huang (黃淵河) <wes.huang@moxa.com>
Signed-off-by: Fero JD Zhou (周俊達) <FeroJD.Zhou@moxa.com>
Signed-off-by: SZ Lin (林上智) <sz.lin@moxa.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: omap5: enable OTG role for DWC3 controller
H. Nikolaus Schaller [Fri, 28 Sep 2018 15:54:00 +0000 (17:54 +0200)]
ARM: dts: omap5: enable OTG role for DWC3 controller

Since SMPS10 and OTG cable detection extcon are described here, and
work to enable OTG power when an OTG cable is plugged in, we can
define OTG mode in the controller (which is disabled by default in
omap5.dtsi).

Tested on OMAP5EVM and Pyra.

Suggested-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: dra7: Enable workaround for errata i870 in PCIe host mode
Vignesh R [Fri, 28 Sep 2018 06:04:42 +0000 (11:34 +0530)]
ARM: dts: dra7: Enable workaround for errata i870 in PCIe host mode

Add ti,syscon-unaligned-access property to PCIe RC nodes to set
appropriate bits in CTRL_CORE_SMA_SW_7 register to enable workaround for
errata i870.

Signed-off-by: Vignesh R <vigneshr@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: dra7: Fix up unaligned access setting for PCIe EP
Vignesh R [Tue, 25 Sep 2018 05:21:51 +0000 (10:51 +0530)]
ARM: dts: dra7: Fix up unaligned access setting for PCIe EP

Bit positions of PCIE_SS1_AXI2OCP_LEGACY_MODE_ENABLE and
PCIE_SS1_AXI2OCP_LEGACY_MODE_ENABLE in CTRL_CORE_SMA_SW_7 are
incorrectly documented in the TRM. In fact, the bit positions are
swapped. Update the DT bindings for PCIe EP to reflect the same.

Fixes: d23f3839fe97 ("ARM: dts: DRA7: Add pcie1 dt node for EP mode")
Cc: stable@vger.kernel.org
Signed-off-by: Vignesh R <vigneshr@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: add omap3-gta04a5one to Makefile
H. Nikolaus Schaller [Tue, 25 Sep 2018 06:04:24 +0000 (08:04 +0200)]
ARM: dts: add omap3-gta04a5one to Makefile

We have defined a new DTS and it should be compiled.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: omap3-gta04: add pulldown/up settings for twl4030 gpio
Andreas Kemnade [Mon, 24 Sep 2018 17:29:57 +0000 (19:29 +0200)]
ARM: dts: omap3-gta04: add pulldown/up settings for twl4030 gpio

Pullup and down settings were missing, so add them to avoid
floating pins and make headset detection working.

Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: am335x-boneblack: add cec support
Hans Verkuil [Mon, 24 Sep 2018 11:01:46 +0000 (13:01 +0200)]
ARM: dts: am335x-boneblack: add cec support

Add CEC support to the tda998x.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: am3517-evm: Add support for UI board and Audio
Adam Ford [Sun, 23 Sep 2018 15:37:17 +0000 (10:37 -0500)]
ARM: dts: am3517-evm: Add support for UI board and Audio

The full AM3517-EVM shipped with an add-on board which contained
two Audio codecs, a GPIO expander with a variety of buttons, and
some other features.  This patch enables these portions of the UI
board because they don't directly conflict with existing features.

Signed-off-by: Adam Ford <aford173@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: gta04: add serial console wakeup irq
Andreas Kemnade [Sun, 23 Sep 2018 15:07:19 +0000 (17:07 +0200)]
ARM: dts: gta04: add serial console wakeup irq

This enables the possibility to have more aggressive runtime pm
by providing proper wakeup irq for the serial console.

Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: am57xx-idk-common: Hook smps12 regulator as cpu vdd-supply
Keerthy [Fri, 21 Sep 2018 11:22:58 +0000 (16:52 +0530)]
ARM: dts: am57xx-idk-common: Hook smps12 regulator as cpu vdd-supply

am574x-idk has no cpu vdd-supply at the moment. Hence hook smps12
regulator as cpu vdd-supply in am57xx-idk-common as the same regulator
feeds on to cpu on am571/2/4-idks. So remove all the individual
instances and place that in common place.

Signed-off-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agobus: ti-sysc: Detect devices on am335x when DEBUG is enabled
Tony Lindgren [Mon, 24 Sep 2018 19:17:09 +0000 (12:17 -0700)]
bus: ti-sysc: Detect devices on am335x when DEBUG is enabled

When debug is enabled, we want to see what devices we're detecting
to make things a bit easier for us.

Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agobus: ti-sysc: Detect more devices on am473x for debugging
Tony Lindgren [Mon, 24 Sep 2018 19:17:05 +0000 (12:17 -0700)]
bus: ti-sysc: Detect more devices on am473x for debugging

When debug is enabled, we want to see what devices we're detecting
to make things a bit easier for us. Many of these devices will also
be available on am335x and dra7, and some just need updating the
revision register mask.

Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agobus: ti-sysc: Update revision masks to support am437x
Tony Lindgren [Mon, 24 Sep 2018 19:16:59 +0000 (12:16 -0700)]
bus: ti-sysc: Update revision masks to support am437x

We need to detect few new devices to tag for noirq_suspend and
pm_runtime_irq_safe to avoid causing regressions compared to
legacy platform data booting.

Let's update i2c, gpio, uart and wdt revision masks to detect
them on am437x. Note that we can remove the second wdt entry
with the updated mask. Note that we also have some uarts with
a different revision register.

Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agobus: ti-sysc: Defer suspend as needed
Tony Lindgren [Mon, 24 Sep 2018 19:16:54 +0000 (12:16 -0700)]
bus: ti-sysc: Defer suspend as needed

We don't care when we suspend but some our children do. In order to
avoid tagging various modules with SYSC_QUIRK_RESOURCE_PROVIDER, let's
do it automatically by tagging modules that are busy on suspend for
noirq suspend. This way we can just do module detection on define DEBUG.

Note that we still need to keep SYSC_QUIRK_LEGACY_IDLE flag around so
the our legacy single-child devices that set pm_runtime_irq_safe() can
manage the interconnect target module themselves.

Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agogpio: omap: Get rid of pm_runtime_irq_safe()
Tony Lindgren [Thu, 20 Sep 2018 19:35:32 +0000 (12:35 -0700)]
gpio: omap: Get rid of pm_runtime_irq_safe()

If a gpio instance has any GPIO bits requested we do a pm_runtime_get()
on the device. Now with cpu_pm handling the deeper SoC idle state quirks,
let's just remove pm_runtime_irq_safe() call and add a warning in case we
ever happen to encounter it.

Cc: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: Keerthy <j-keerthy@ti.com>
Cc: Ladislav Michl <ladis@linux-mips.org>
Cc: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Acked-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
5 years agogpio: omap: Remove custom PM calls and use cpu_pm instead
Tony Lindgren [Thu, 20 Sep 2018 19:35:31 +0000 (12:35 -0700)]
gpio: omap: Remove custom PM calls and use cpu_pm instead

For a long time the gpio-omap custom PM calls have been annoying me so
let's replace them with cpu_pm instead. This will enable GPIO PM for
deeper idle states on omap4. And we can handle GPIO PM for omap2/3/4
in the same way.

Note that with this patch we are also slightly changing GPIO PM to be
less aggressive for omap3 and only will idle GPIO when PER context
may be lost.

For omap2, we don't need to save context and don't want to remove any
triggering so let's add a quirk flag for that.

Let's do this all in a single patch to avoid a situation where old
custom calls still are used with new code.

Cc: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: Keerthy <j-keerthy@ti.com>
Cc: Ladislav Michl <ladis@linux-mips.org>
Cc: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Acked-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
5 years agogpio: omap: Add level wakeup handling for omap4 based SoCs
Tony Lindgren [Thu, 20 Sep 2018 19:35:30 +0000 (12:35 -0700)]
gpio: omap: Add level wakeup handling for omap4 based SoCs

I noticed that unlike omap2 and 3 based SoCs, omap4 based SoCs keep
the GPIO clocks enabled for GPIO level interrupts with wakeup enabled.
This blocks deeper idle states as the whole domain will stay busy.

The GPIO functional clock seems to stay enabled if the wakeup register
is enabled and a level interrupt is triggered. In that case the only
way to have the GPIO module idle is to reset it. It is possible this
has gone unnoticed with OSWR (Open SWitch Retention) and off mode
during idle resetting GPIO context most GPIO instances in the earlier
Android trees for example.

Looks like the way to deal with this is to have omap4 based SoCs
only set wake for the duration of idle for level interrupts, and clear
level registers for the idle. With level interrupts we can do this as
the level interrupt from device will be still there on resume.

I've taken the long path to fixing this to avoid yet more hard to
read code. I've set up a quirks flag, and a struct for function
pointers so we can use these to clean up other quirk handling easier
in the later patches. The current level quirk handling is moved to
the new functions.

Cc: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: Ladislav Michl <ladis@linux-mips.org>
Cc: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Acked-by: Grygorii Strashko <grygorii.strashko@ti.com>
Tested-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
5 years agoARM: dts: omap: Update coresight bindings for hardware ports
Suzuki K Poulose [Wed, 12 Sep 2018 13:53:49 +0000 (14:53 +0100)]
ARM: dts: omap: Update coresight bindings for hardware ports

Switch to the new coresight bindings for hardware ports

Cc: linux-omap@vger.kernel.org
Cc: "Benoît Cousson" <bcousson@baylibre.com>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: ti: Fix SPI and I2C bus warnings
Rob Herring [Thu, 13 Sep 2018 18:12:25 +0000 (13:12 -0500)]
ARM: dts: ti: Fix SPI and I2C bus warnings

dtc has new checks for I2C and SPI buses. Fix the warnings in node names
and unit-addresses.

arch/arm/boot/dts/am437x-idk-evm.dtb: Warning (spi_bus_bridge): /ocp@44000000/qspi@47900000: node name for SPI buses should be 'spi'
arch/arm/boot/dts/am437x-sk-evm.dtb: Warning (spi_bus_bridge): /ocp@44000000/qspi@47900000: node name for SPI buses should be 'spi'
arch/arm/boot/dts/am43x-epos-evm.dtb: Warning (spi_bus_bridge): /ocp@44000000/qspi@47900000: node name for SPI buses should be 'spi'
arch/arm/boot/dts/omap3-n9.dtb: Warning (i2c_bus_reg): /ocp@68000000/i2c@48060000/ak8975@0f: I2C bus unit address format error, expected "f"
arch/arm/boot/dts/am335x-osd3358-sm-red.dtb: Warning (i2c_bus_reg): /ocp/i2c@44e0b000/pressure@78: I2C bus unit address format error, expected "76"
arch/arm/boot/dts/am335x-boneblack.dtb: Warning (i2c_bus_reg): /ocp/i2c@44e0b000/tda19988: I2C bus unit address format error, expected "70"
arch/arm/boot/dts/am335x-boneblack-wireless.dtb: Warning (i2c_bus_reg): /ocp/i2c@44e0b000/tda19988: I2C bus unit address format error, expected "70"
arch/arm/boot/dts/am335x-sancloud-bbe.dtb: Warning (i2c_bus_reg): /ocp/i2c@44e0b000/tda19988: I2C bus unit address format error, expected "70"
arch/arm/boot/dts/am571x-idk.dtb: Warning (spi_bus_bridge): /ocp/qspi@4b300000: node name for SPI buses should be 'spi'
arch/arm/boot/dts/am572x-idk.dtb: Warning (spi_bus_bridge): /ocp/qspi@4b300000: node name for SPI buses should be 'spi'
arch/arm/boot/dts/am574x-idk.dtb: Warning (spi_bus_bridge): /ocp/qspi@4b300000: node name for SPI buses should be 'spi'
arch/arm/boot/dts/am57xx-cl-som-am57x.dtb: Warning (spi_bus_bridge): /ocp/qspi@4b300000: node name for SPI buses should be 'spi'
arch/arm/boot/dts/am57xx-sbc-am57x.dtb: Warning (spi_bus_bridge): /ocp/qspi@4b300000: node name for SPI buses should be 'spi'
arch/arm/boot/dts/dra72-evm.dtb: Warning (spi_bus_bridge): /ocp/qspi@4b300000: node name for SPI buses should be 'spi'
arch/arm/boot/dts/dra72-evm-revc.dtb: Warning (spi_bus_bridge): /ocp/qspi@4b300000: node name for SPI buses should be 'spi'
arch/arm/boot/dts/dra76-evm.dtb: Warning (spi_bus_bridge): /ocp/qspi@4b300000: node name for SPI buses should be 'spi'
arch/arm/boot/dts/dra7-evm.dtb: Warning (spi_bus_bridge): /ocp/qspi@4b300000: node name for SPI buses should be 'spi'
arch/arm/boot/dts/am335x-pdu001.dtb: Warning (spi_bus_reg): /ocp/spi@481a0000/cfaf240320a032t: SPI bus unit address format error, expected "0"
arch/arm/boot/dts/keystone-k2g-evm.dtb: Warning (spi_bus_bridge): /soc@0/qspi@2940000: node name for SPI buses should be 'spi'
arch/arm/boot/dts/keystone-k2g-ice.dtb: Warning (spi_bus_bridge): /soc@0/qspi@2940000: node name for SPI buses should be 'spi'

Cc: "Benoît Cousson" <bcousson@baylibre.com>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Santosh Shilimkar <ssantosh@kernel.org>
Cc: linux-omap@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
[tony@atomide.com: fixed mode to 644 for am335x-osd3358-sm-red.dts while at it]
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: dra62x-j5eco-evm: get rid of phy_id property
Grygorii Strashko [Mon, 10 Sep 2018 22:57:55 +0000 (17:57 -0500)]
ARM: dts: dra62x-j5eco-evm: get rid of phy_id property

The phy_id property is deprecated and phy-handle has to be used instead.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: dm8148-t410: get rid of phy_id property
Grygorii Strashko [Mon, 10 Sep 2018 22:57:54 +0000 (17:57 -0500)]
ARM: dts: dm8148-t410: get rid of phy_id property

The phy_id property is deprecated and phy-handle has to be used instead.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: dm8148-evm: get rid of phy_id property
Grygorii Strashko [Mon, 10 Sep 2018 22:57:53 +0000 (17:57 -0500)]
ARM: dts: dm8148-evm: get rid of phy_id property

The phy_id property is deprecated and phy-handle has to be used instead.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: am57xx-cl-som-am57x: get rid of phy_id property
Grygorii Strashko [Mon, 10 Sep 2018 22:57:52 +0000 (17:57 -0500)]
ARM: dts: am57xx-cl-som-am57x: get rid of phy_id property

The phy_id property is deprecated and phy-handle has to be used instead.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: am57xx-idk-common: get rid of phy_id property
Grygorii Strashko [Mon, 10 Sep 2018 22:57:51 +0000 (17:57 -0500)]
ARM: dts: am57xx-idk-common: get rid of phy_id property

The phy_id property is deprecated and phy-handle has to be used instead.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: dra7-evm: get rid of phy_id property
Grygorii Strashko [Mon, 10 Sep 2018 22:57:50 +0000 (17:57 -0500)]
ARM: dts: dra7-evm: get rid of phy_id property

The phy_id property is deprecated and phy-handle has to be used instead.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: dra71-evm: get rid of phy_id property
Grygorii Strashko [Mon, 10 Sep 2018 22:57:49 +0000 (17:57 -0500)]
ARM: dts: dra71-evm: get rid of phy_id property

The phy_id property is deprecated and phy-handle has to be used instead.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: dra72-evm-revc: get rid of phy_id property
Grygorii Strashko [Mon, 10 Sep 2018 22:57:48 +0000 (17:57 -0500)]
ARM: dts: dra72-evm-revc: get rid of phy_id property

The phy_id property is deprecated and phy-handle has to be used instead.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: dra72-evm: get rid of phy_id property
Grygorii Strashko [Mon, 10 Sep 2018 22:57:47 +0000 (17:57 -0500)]
ARM: dts: dra72-evm: get rid of phy_id property

The phy_id property is deprecated and phy-handle has to be used instead.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: dra76-evm: get rid of phy_id property
Grygorii Strashko [Mon, 10 Sep 2018 22:57:46 +0000 (17:57 -0500)]
ARM: dts: dra76-evm: get rid of phy_id property

The phy_id property is deprecated and phy-handle has to be used instead.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: am437x-cm-t43: get rid of phy_id property
Grygorii Strashko [Mon, 10 Sep 2018 22:57:45 +0000 (17:57 -0500)]
ARM: dts: am437x-cm-t43: get rid of phy_id property

The phy_id property is deprecated and phy-handle has to be used instead.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: am437x-gp-evm: get rid of phy_id property
Grygorii Strashko [Mon, 10 Sep 2018 22:57:44 +0000 (17:57 -0500)]
ARM: dts: am437x-gp-evm: get rid of phy_id property

The phy_id property is deprecated and phy-handle has to be used instead.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: am437x-idk-evm: get rid of phy_id property
Grygorii Strashko [Mon, 10 Sep 2018 22:57:43 +0000 (17:57 -0500)]
ARM: dts: am437x-idk-evm: get rid of phy_id property

The phy_id property is deprecated and phy-handle has to be used instead.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: am437x-sk-evm: get rid of phy_id property
Grygorii Strashko [Mon, 10 Sep 2018 22:57:42 +0000 (17:57 -0500)]
ARM: dts: am437x-sk-evm: get rid of phy_id property

The phy_id property is deprecated and phy-handle has to be used instead.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: am43x-epos-evm: get rid of phy_id property
Grygorii Strashko [Mon, 10 Sep 2018 22:57:41 +0000 (17:57 -0500)]
ARM: dts: am43x-epos-evm: get rid of phy_id property

The phy_id property is deprecated and phy-handle has to be used instead.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: am335x-bone-common: get rid of phy_id property
Grygorii Strashko [Sun, 9 Sep 2018 00:05:08 +0000 (19:05 -0500)]
ARM: dts: am335x-bone-common: get rid of phy_id property

The phy_id property is deprecated and phy-handle has to be used instead.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: am335x-chiliboard: get rid of phy_id property
Grygorii Strashko [Sun, 9 Sep 2018 00:05:07 +0000 (19:05 -0500)]
ARM: dts: am335x-chiliboard: get rid of phy_id property

The phy_id property is deprecated and phy-handle has to be used instead.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: am335x-cm-t335: get rid of phy_id property
Grygorii Strashko [Sun, 9 Sep 2018 00:05:06 +0000 (19:05 -0500)]
ARM: dts: am335x-cm-t335: get rid of phy_id property

The phy_id property is deprecated and phy-handle has to be used instead.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: am335x-evmsk: get rid of phy_id property
Grygorii Strashko [Sun, 9 Sep 2018 00:05:05 +0000 (19:05 -0500)]
ARM: dts: am335x-evmsk: get rid of phy_id property

The phy_id property is deprecated and phy-handle has to be used instead.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: am335x-igep0033: get rid of phy_id property
Grygorii Strashko [Sun, 9 Sep 2018 00:05:04 +0000 (19:05 -0500)]
ARM: dts: am335x-igep0033: get rid of phy_id property

The phy_id property is deprecated and phy-handle has to be used instead.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: am335x-lxm: get rid of phy_id property
Grygorii Strashko [Sun, 9 Sep 2018 00:05:03 +0000 (19:05 -0500)]
ARM: dts: am335x-lxm: get rid of phy_id property

The phy_id property is deprecated and phy-handle has to be used instead.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: am335x-moxa-uc-8100-me-t: get rid of phy_id property
Grygorii Strashko [Sun, 9 Sep 2018 00:05:02 +0000 (19:05 -0500)]
ARM: dts: am335x-moxa-uc-8100-me-t: get rid of phy_id property

The phy_id property is deprecated and phy-handle has to be used instead.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: am335x-nano: get rid of phy_id property
Grygorii Strashko [Sun, 9 Sep 2018 00:05:01 +0000 (19:05 -0500)]
ARM: dts: am335x-nano: get rid of phy_id property

The phy_id property is deprecated and phy-handle has to be used instead.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: am335x-pdu001: get rid of phy_id property
Grygorii Strashko [Sun, 9 Sep 2018 00:05:00 +0000 (19:05 -0500)]
ARM: dts: am335x-pdu001: get rid of phy_id property

The phy_id property is deprecated and phy-handle has to be used instead.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: am335x-pepper: get rid of phy_id property
Grygorii Strashko [Sun, 9 Sep 2018 00:04:59 +0000 (19:04 -0500)]
ARM: dts: am335x-pepper: get rid of phy_id property

The phy_id property is deprecated and phy-handle has to be used instead.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: am335x-shc: get rid of phy_id property
Grygorii Strashko [Sun, 9 Sep 2018 00:04:57 +0000 (19:04 -0500)]
ARM: dts: am335x-shc: get rid of phy_id property

The phy_id property is deprecated and phy-handle has to be used instead.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoMerge branch 'am335x-evm-port-fix' into omap-for-v4.20/dt
Tony Lindgren [Thu, 20 Sep 2018 21:30:45 +0000 (14:30 -0700)]
Merge branch 'am335x-evm-port-fix' into omap-for-v4.20/dt

5 years agoARM: dts: am335x-evm: fix number of cpsw
Grygorii Strashko [Sat, 8 Sep 2018 22:33:40 +0000 (17:33 -0500)]
ARM: dts: am335x-evm: fix number of cpsw

am335x-evm has only one CPSW external port physically wired, but DT defines
2 ext. ports. As result, PHY connection failure reported for the second
ext. port.

Update DT to reflect am335x-evm board HW configuration, and, while here,
switch to use phy-handle instead of phy_id.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: am571x-idk: Add Industrial input load trigger
Andrew F. Davis [Fri, 31 Aug 2018 19:34:03 +0000 (14:34 -0500)]
ARM: dts: am571x-idk: Add Industrial input load trigger

The SN65HVS882 load trigger is attached to GPIO2_23 on the AM571x IDK.

Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: am572x-idk: Add tricolor Industrial LED support
Andrew F. Davis [Fri, 31 Aug 2018 19:34:02 +0000 (14:34 -0500)]
ARM: dts: am572x-idk: Add tricolor Industrial LED support

AM572x-IDK rev 1.3A has tricolor RGB LEDs that can be controlled using
GPIO. Expose these to userspace for usage as necessary.

Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: am571x-idk: Add tricolor Industrial LED support
Andrew F. Davis [Fri, 31 Aug 2018 19:34:01 +0000 (14:34 -0500)]
ARM: dts: am571x-idk: Add tricolor Industrial LED support

AM571x-IDK rev 1.2A has tricolor RGB LEDs that can be controlled using
GPIO. Expose these to userspace for usage as necessary.

Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: omap3-gta04a5one: define GTA04A5 variant with OneNAND
H. Nikolaus Schaller [Tue, 31 Jul 2018 07:11:35 +0000 (09:11 +0200)]
ARM: dts: omap3-gta04a5one: define GTA04A5 variant with OneNAND

GTA04A5 has been produced with MCP chips either with
 512MB RAM +  512MB NAND
 512MB RAM + 1024MB NAND
1024MB RAM +  512MB OneNAND

RAM setup is done by U-Boot (MLO/SPL) but OneNAND needs
a different setup of the GPMC. So we need to derive a
DTB variant that modifies the gpmc and nand setup.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: omap3-gta04a5: define pinmux for bluetooth enable of ti,wl1837 module
H. Nikolaus Schaller [Tue, 31 Jul 2018 07:11:34 +0000 (09:11 +0200)]
ARM: dts: omap3-gta04a5: define pinmux for bluetooth enable of ti,wl1837 module

Properly pinmux the bluetooth enable so that it is not floating.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: omap3-gta04a5: uses different sensors than gta04a4
H. Nikolaus Schaller [Tue, 31 Jul 2018 07:11:33 +0000 (09:11 +0200)]
ARM: dts: omap3-gta04a5: uses different sensors than gta04a4

Sensors for acceleration, rotation, magnetic heading and
barometer have been replaced in the A5 variant.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: omap3-gta04a5: add support for ti,wl1837 module
H. Nikolaus Schaller [Tue, 31 Jul 2018 07:11:32 +0000 (09:11 +0200)]
ARM: dts: omap3-gta04a5: add support for ti,wl1837 module

GTA04A5 uses a ti,wl1837 WiFi/Bluetooth module. Overwrite
the mmc2 node and child.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: omap3-gta04a5: disable IrDA receiver to save power
H. Nikolaus Schaller [Tue, 31 Jul 2018 07:11:31 +0000 (09:11 +0200)]
ARM: dts: omap3-gta04a5: disable IrDA receiver to save power

The GTA04A5 has an improved IrDA circuit that can enable/disable
the receiver individually. We do not have an IrDA driver/subsystem
and hence the receiver should be actively turned off to save power,
especially in suspend.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: omap3-gta04a5: add support for PPS
H. Nikolaus Schaller [Tue, 31 Jul 2018 07:11:30 +0000 (09:11 +0200)]
ARM: dts: omap3-gta04a5: add support for PPS

GPS receiver provides a 1PPS signal to a gpio.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: omap3-gta04a5: fix whitepsace and tab style
H. Nikolaus Schaller [Tue, 31 Jul 2018 07:11:29 +0000 (09:11 +0200)]
ARM: dts: omap3-gta04a5: fix whitepsace and tab style

in node sound / property ti,jack-det-gpio.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: omap3-gta04a5: fix model name
H. Nikolaus Schaller [Tue, 31 Jul 2018 07:11:28 +0000 (09:11 +0200)]
ARM: dts: omap3-gta04a5: fix model name

GTA04 is the project name and Letux 2804 the product name.
Report both.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: omap3-gta04a5: fix copyright of A5 variant
H. Nikolaus Schaller [Tue, 31 Jul 2018 07:11:27 +0000 (09:11 +0200)]
ARM: dts: omap3-gta04a5: fix copyright of A5 variant

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: omap3-gta04a4: fix model name for A4 variant
H. Nikolaus Schaller [Tue, 31 Jul 2018 07:11:26 +0000 (09:11 +0200)]
ARM: dts: omap3-gta04a4: fix model name for A4 variant

GTA04 is the project name and Letux 2804 the product name.
Report both.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: omap3-gta04a3: fix model name for A3 variant
H. Nikolaus Schaller [Tue, 31 Jul 2018 07:11:25 +0000 (09:11 +0200)]
ARM: dts: omap3-gta04a3: fix model name for A3 variant

GTA04 is the project name and Letux 2804 the product name.
Report both.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: omap3-gta04: add mcbsp (audio subsystem) nodes
H. Nikolaus Schaller [Tue, 31 Jul 2018 07:11:24 +0000 (09:11 +0200)]
ARM: dts: omap3-gta04: add mcbsp (audio subsystem) nodes

GTA04 audio system makes use of all four McBSP ports, so enable and
connect them with pinmux.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: omap3-gta04: add devconf0 setup for mcbsp1 clock pins
H. Nikolaus Schaller [Tue, 31 Jul 2018 07:11:23 +0000 (09:11 +0200)]
ARM: dts: omap3-gta04: add devconf0 setup for mcbsp1 clock pins

McBSP1 needs special "pinctrl" for the clocks.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: omap3-gta04: add mcbsp (audio subsystem) pinmux
H. Nikolaus Schaller [Tue, 31 Jul 2018 07:11:22 +0000 (09:11 +0200)]
ARM: dts: omap3-gta04: add mcbsp (audio subsystem) pinmux

GTA04 audio system makes use of all four McBSP ports, so set
up proper pinmux.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: omap3-gta04: add camera pinmux
H. Nikolaus Schaller [Tue, 31 Jul 2018 07:11:21 +0000 (09:11 +0200)]
ARM: dts: omap3-gta04: add camera pinmux

ISP needs camera pinmux (which is referenced by the camera node).

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: omap3-gta04: add camera interface parallel port
H. Nikolaus Schaller [Tue, 31 Jul 2018 07:11:20 +0000 (09:11 +0200)]
ARM: dts: omap3-gta04: add camera interface parallel port

The GTA04 has an optional OV9655 camera (for which we do
not yet have a driver upstream), but the ISP hardware
connection description in the device tree is independent
of that.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: omap3-gta04: map antenna detect GPIO to SW_LINEIN_INSERT key event
H. Nikolaus Schaller [Tue, 31 Jul 2018 07:11:19 +0000 (09:11 +0200)]
ARM: dts: omap3-gta04: map antenna detect GPIO to SW_LINEIN_INSERT key event

GTA04 can detect presence/absence or plug-in of an external
GPS antenna through a gpio. The best match for an event code
is SW_LINEIN_INSERT.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: omap3-gta04: make use of input event include file and constants
H. Nikolaus Schaller [Tue, 31 Jul 2018 07:11:18 +0000 (09:11 +0200)]
ARM: dts: omap3-gta04: make use of input event include file and constants

we can replace magic numbers by symbolic constants now.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: omap3-gta04: explicitly describe that mmc1 has no CD/WP
H. Nikolaus Schaller [Tue, 31 Jul 2018 07:11:17 +0000 (09:11 +0200)]
ARM: dts: omap3-gta04: explicitly describe that mmc1 has no CD/WP

There are neither CD nor WP switches for mmc1. The µSD slot is
located under the SIM card under the battery and not accessible
during operation.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: omap3-gta04: add warning comment to vaux2 regulator
H. Nikolaus Schaller [Tue, 31 Jul 2018 07:11:16 +0000 (09:11 +0200)]
ARM: dts: omap3-gta04: add warning comment to vaux2 regulator

vaux2 should remain always on since a higher potential at vio
could potentially damage the itg3200 sensor.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: omap3-gta04: add a comment how to reference the tca6507 gpio
H. Nikolaus Schaller [Tue, 31 Jul 2018 07:11:15 +0000 (09:11 +0200)]
ARM: dts: omap3-gta04: add a comment how to reference the tca6507 gpio

Make clear how to use the wifi_reset since it is not obvious.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: omap3-gta04: keep vpll2 always on
H. Nikolaus Schaller [Tue, 31 Jul 2018 07:11:14 +0000 (09:11 +0200)]
ARM: dts: omap3-gta04: keep vpll2 always on

This is needed to make the display and venc work properly.
Compare to omap3-beagle.dts.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: omap3-gta04: update gpmc NAND setup
H. Nikolaus Schaller [Tue, 31 Jul 2018 07:11:13 +0000 (09:11 +0200)]
ARM: dts: omap3-gta04: update gpmc NAND setup

to better match omap3-beagle.dts (which was the basis
of designing the GTA04).

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: omap3-gta04: make NAND partitions compatible with recent U-Boot
H. Nikolaus Schaller [Tue, 31 Jul 2018 07:11:12 +0000 (09:11 +0200)]
ARM: dts: omap3-gta04: make NAND partitions compatible with recent U-Boot

Vendor defined U-Boot has changed the partition scheme a while ago:

* kernel partition 6MB
* file system partition uses the remainder up to end of the NAND
* increased size of the environment partition (to get an OneNAND compatible base address)
* shrink the U-Boot partition

Let's be compatible (e.g. Debian kernel built from upstream).

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: omap3-gta04: add pinmux for bmp085 EOC interrupt
H. Nikolaus Schaller [Tue, 31 Jul 2018 07:11:11 +0000 (09:11 +0200)]
ARM: dts: omap3-gta04: add pinmux for bmp085 EOC interrupt

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>