LINUX-NEXT FIX: Revert "ASoC: rt5640: Add minimal support for RT5642"

Without this revert, I see the following on boot on Dalmore:
[    2.285515] rt5640 0-001c: ASoC: no source widget found for OUT MIXL
[    2.291899] rt5640 0-001c: ASoC: Failed to add route OUT MIXL -> OUT MIXL Switch -> RECMIXL
[    2.300306] rt5640 0-001c: ASoC: no source widget found for OUT MIXR
[    2.306662] rt5640 0-001c: ASoC: Failed to add route OUT MIXR -> OUT MIXR Switch -> RECMIXR
[    2.315662] rt5640 0-001c: ASoC: no sink widget found for Stereo DAC MIXL
[    2.322468] rt5640 0-001c: ASoC: Failed to add route DAC MIXL -> DAC L1 Switch -> Stereo DAC MIXL
[    2.331363] rt5640 0-001c: ASoC: no sink widget found for Stereo DAC MIXR
[    2.338169] rt5640 0-001c: ASoC: Failed to add route DAC MIXR -> DAC R1 Switch -> Stereo DAC MIXR
[    2.347075] rt5640 0-001c: ASoC: no source widget found for Stereo DAC MIXL
[    2.354053] rt5640 0-001c: ASoC: Failed to add route Stereo DAC MIXL -> direct -> DAC L1
[    2.362180] rt5640 0-001c: ASoC: no source widget found for Stereo DAC MIXR
[    2.369158] rt5640 0-001c: ASoC: Failed to add route Stereo DAC MIXR -> direct -> DAC R1
[    2.377298] rt5640 0-001c: ASoC: no source widget found for OUT MIXL
[    2.383653] rt5640 0-001c: ASoC: Failed to add route OUT MIXL -> OUT MIXL Switch -> SPK MIXL
[    2.392135] rt5640 0-001c: ASoC: no source widget found for OUT MIXR
[    2.398505] rt5640 0-001c: ASoC: Failed to add route OUT MIXR -> OUT MIXR Switch -> SPK MIXR
[    2.406949] rt5640 0-001c: ASoC: no sink widget found for OUT MIXL
[    2.413144] rt5640 0-001c: ASoC: Failed to add route BST1 -> BST1 Switch -> OUT MIXL
[    2.420909] rt5640 0-001c: ASoC: no sink widget found for OUT MIXL
[    2.427091] rt5640 0-001c: ASoC: Failed to add route INL VOL -> INL Switch -> OUT MIXL
[    2.435030] rt5640 0-001c: ASoC: no sink widget found for OUT MIXL
[    2.441225] rt5640 0-001c: ASoC: Failed to add route RECMIXL -> REC MIXL Switch -> OUT MIXL
[    2.449597] rt5640 0-001c: ASoC: no sink widget found for OUT MIXL
[    2.455780] rt5640 0-001c: ASoC: Failed to add route DAC L1 -> DAC L1 Switch -> OUT MIXL
[    2.463890] rt5640 0-001c: ASoC: no sink widget found for OUT MIXR
[    2.470085] rt5640 0-001c: ASoC: Failed to add route BST2 -> BST2 Switch -> OUT MIXR
[    2.477849] rt5640 0-001c: ASoC: no sink widget found for OUT MIXR
[    2.484031] rt5640 0-001c: ASoC: Failed to add route BST1 -> BST1 Switch -> OUT MIXR
[    2.491795] rt5640 0-001c: ASoC: no sink widget found for OUT MIXR
[    2.497989] rt5640 0-001c: ASoC: Failed to add route INR VOL -> INR Switch -> OUT MIXR
[    2.505913] rt5640 0-001c: ASoC: no sink widget found for OUT MIXR
[    2.512108] rt5640 0-001c: ASoC: Failed to add route RECMIXR -> REC MIXR Switch -> OUT MIXR
[    2.520478] rt5640 0-001c: ASoC: no sink widget found for OUT MIXR
[    2.526661] rt5640 0-001c: ASoC: Failed to add route DAC R1 -> DAC R1 Switch -> OUT MIXR
[    2.534781] rt5640 0-001c: ASoC: no source widget found for OUT MIXL
[    2.541157] rt5640 0-001c: ASoC: Failed to add route OUT MIXL -> direct -> HPOVOL L
[    2.548835] rt5640 0-001c: ASoC: no source widget found for OUT MIXR
[    2.555190] rt5640 0-001c: ASoC: Failed to add route OUT MIXR -> direct -> HPOVOL R
[    2.562866] rt5640 0-001c: ASoC: no source widget found for OUT MIXL
[    2.569234] rt5640 0-001c: ASoC: Failed to add route OUT MIXL -> direct -> OUTVOL L
[    2.576899] rt5640 0-001c: ASoC: no source widget found for OUT MIXR
[    2.583267] rt5640 0-001c: ASoC: Failed to add route OUT MIXR -> direct -> OUTVOL R
[    2.590999] rt5640 0-001c: ASoC: no sink widget found for HPO MIX L
[    2.597282] rt5640 0-001c: ASoC: Failed to add route DAC L1 -> HPO MIX DAC1 Switch -> HPO MIX L
[    2.605988] rt5640 0-001c: ASoC: no sink widget found for HPO MIX L
[    2.612270] rt5640 0-001c: ASoC: Failed to add route HPOVOL L -> HPO MIX HPVOL Switch -> HPO MIX L
[    2.621248] rt5640 0-001c: ASoC: no sink widget found for HPO MIX L
[    2.627531] rt5640 0-001c: ASoC: Failed to add route HP L Amp -> direct -> HPO MIX L
[    2.635283] rt5640 0-001c: ASoC: no sink widget found for HPO MIX R
[    2.641564] rt5640 0-001c: ASoC: Failed to add route DAC R1 -> HPO MIX DAC1 Switch -> HPO MIX R
[    2.650281] rt5640 0-001c: ASoC: no sink widget found for HPO MIX R
[    2.656549] rt5640 0-001c: ASoC: Failed to add route HPOVOL R -> HPO MIX HPVOL Switch -> HPO MIX R
[    2.665528] rt5640 0-001c: ASoC: no sink widget found for HPO MIX R
[    2.671809] rt5640 0-001c: ASoC: Failed to add route HP R Amp -> direct -> HPO MIX R
[    2.679599] rt5640 0-001c: ASoC: no source widget found for HPO MIX L
[    2.686042] rt5640 0-001c: ASoC: Failed to add route HPO MIX L -> direct -> HP Amp
[    2.693632] rt5640 0-001c: ASoC: no source widget found for HPO MIX R
[    2.700087] rt5640 0-001c: ASoC: Failed to add route HPO MIX R -> direct -> HP Amp

This reverts commit 8bfc6d2d1b6266e8da2a7cf89e8d05e2ea8b09e5.
APPLIED: ARM: tegra: remove UART5/UARTE from tegra124.dtsi

Tegra124 only has 4 UARTs. Parts of the documentation hint at a fifth
UART, but this appears to be left-over from earlier SoC documentation.
Remove the non-existent DT node for UART5.

Cc: <stable@vger.kernel.org>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
APPLIED: clk: tegra: remove non-existent clocks

The Tegra124 clock driver currently provides 3 clocks that don't actually
exist; 2 for NAND and one for UART5/UARTE. Delete these.

Cc: <stable@vger.kernel.org>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-By: Peter De Schrijver <pdeschrijver@nvidia.com>
APPLIED: dt: tegra: remove non-existent clock IDs

The Tegra124 clock DT binding currently provides 3 clocks that don't
actually exist; 2 for NAND and one for UART5/UARTE. Delete these. While
this is technically an incompatible DT ABI change, nothing could have
used these clock IDs for anything practical, since the HW doesn't exist.

Cc: <stable@vger.kernel.org>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
---
This depends on the previous 2 patches. Either all the patches can be
taken through the same tree with acks, or we can hold of applying this
patch until the other two make it into Linus' tree.
APPLIED: ARM: tegra: remove TEGRA_EMC_SCALING_ENABLE

Commit a7cbe92cef27 ("ARM: tegra: remove tegra EMC scaling driver")
removed the only user of TEGRA_EMC_SCALING_ENABLE. Remove its Kconfig
entry too.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
ARM: multi_v7: enable AT24C EEPROM driver

This is used for the board ID EEPROM on Jetson TK1, as well as likely
a whole slew of other NVIDIA reference boards; we simply haven't added
enabled the EEPROM in the DT files until now.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
ARM: tegra: use correct audio CODEC on Jetson TK1

Jetson TK1 contains an RT5639 not an RT5640. While the two are extremely
similar and mostly compatible, we should still use the correct device
name in the device tree. I had meant to fix this before applying the
initial DT, but this issue slipped my mind.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
ARM: tegra: jetson-tk1: don't set mux func for GPIOs

When a Tegra pin is configured as a GPIO, the selected mux function is
irrelevant. Since we don't need to set the function for those pins,
don't do it!

Signed-off-by: Stephen Warren <swarren@nvidia.com>
ARM: tegra: update Venice2 pinmux

This re-imports the entire Venice2 pinmux data from the board's master
spreadsheet, thus tieing it to the primary definition of what is correct
for this board.

This also applies the same change as the previous patch does for Jetson
TK1: When a Tegra pin is configured as a GPIO, the selected mux function
is irrelevant. Since we don't need to set the function for those pins,
don't do it!

Signed-off-by: Stephen Warren <swarren@nvidia.com>
mmc: tegra: disable UHS modes

Program TEGRA_SDHCI_VENDOR_MISC_CTRL so that UHS modes aren't advertised
in SDHCI_CAPABILITIES_1.  While the Tegra SDHCI controller does support
these modes, they require Tegra-specific tuning and calibration routines
which the driver does not support yet.

Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
mmc: tegra: fix reporting of base clock frequency

Tegra SDHCI controllers, by default, report a base clock frequency
of 208Mhz in SDHCI_CAPABILTIES which may or may not be equal to the
actual base clock frequency.  While this can be overridden by setting
BASE_CLK_FREQ in VENDOR_CLOCK_CTRL on Tegra30 and later SoCs, just
set SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN and supply a get_max_clock()
callback to get the actual rate of the base clock.

Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
ARM: tegra: rebuild tegra_defconfig on next-20140424

This makes it easier to create isolated defconfig patches

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Rebuild multi_v7_defconfig on next-201404414

Signed-off-by: Stephen Warren <swarren@nvidia.com>
LOCAL HACK: tegra_defconfig changes

Signed-off-by: Stephen Warren <swarren@nvidia.com>
WIP: ARM: tegra: start work on Venice2 touchpad

Also added ISL light sensor to test I2C bus. Need to split this out
into a separate patch.

Import downstream driver from chromeos-3.10 so it initializes at all.

S-o-b: FIXME: a lot of downstream patches...
Signed-off-by: Stephen Warren <swarren@nvidia.com>
WIP: ARM: tegra: venice2 WiFi

Signed-off-by: Stephen Warren <swarren@nvidia.com>
ARM: tegra: Add Tegra124 HDMI support

Add a device node for the HDMI controller found on Tegra124.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
ARM: tegra: venice2 - Enable HDMI

Add HDMI +5V, VDD and PLL regulators and enable the DDC I2C controller.
Enable the HDMI device, provide the power supplies as well as the DDC
adapter and use the standard pin (PN7) for hotplug detection.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
ARM: tegra: jetson-tk1 - Enable HDMI support

Add HDMI +5V, VDD and PLL regulators and enable the DDC I2C controller.
Enable the HDMI device, provide the power supplies as well as the DDC
adapter and use pin the standard pin (PN7) for hotplug detection.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
ARM: tegra: harmony - Add +5V HDMI supply

This supply controls the +5V pin on the HDMI connector, which in turn is
used by attached sinks to return the hotplug detect signal.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>