* [GIT PULL v3 0/3] TrimSlice updates for 3.1
@ 2011-07-07 6:04 ` Mike Rapoport
0 siblings, 0 replies; 7+ messages in thread
From: Mike Rapoport @ 2011-07-07 6:04 UTC (permalink / raw)
To: Colin Cross
Cc: Erik Gilling, Olof Johansson, linux-tegra-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Mike Rapoport
Hi Colin,
Please consider pulling TrimSlice updates for 3.1 merge window.
These patches add registration of i2c, audio and USB devices.
v3 changes:
- rebased on top of current Linus tree
v2 changes:
- update CDEV1 pinmux as per Stephen suggestion
- use GPIO table for USB-related GPIOs
The following changes since commit a2fa83faf47b514ab947cea916d3691b66525073:
Merge branch 'usb-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6 (2011-07-05 20:57:45 -0700)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux-tegra.git trimslice/upstream
Mike Rapoport (3):
ARM: tegra: trimslice: register i2c busses and devices
ARM: tegra: trimslice: add audio devices and clocks
ARM: tegra: trimslice: enable USB ports
arch/arm/mach-tegra/board-trimslice-pinmux.c | 7 ++-
arch/arm/mach-tegra/board-trimslice.c | 92 ++++++++++++++++++++++++++
arch/arm/mach-tegra/board-trimslice.h | 3 +
3 files changed, 100 insertions(+), 2 deletions(-)
^ permalink raw reply [flat|nested] 7+ messages in thread
* [GIT PULL v3 0/3] TrimSlice updates for 3.1
@ 2011-07-07 6:04 ` Mike Rapoport
0 siblings, 0 replies; 7+ messages in thread
From: Mike Rapoport @ 2011-07-07 6:04 UTC (permalink / raw)
To: linux-arm-kernel
Hi Colin,
Please consider pulling TrimSlice updates for 3.1 merge window.
These patches add registration of i2c, audio and USB devices.
v3 changes:
- rebased on top of current Linus tree
v2 changes:
- update CDEV1 pinmux as per Stephen suggestion
- use GPIO table for USB-related GPIOs
The following changes since commit a2fa83faf47b514ab947cea916d3691b66525073:
Merge branch 'usb-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6 (2011-07-05 20:57:45 -0700)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux-tegra.git trimslice/upstream
Mike Rapoport (3):
ARM: tegra: trimslice: register i2c busses and devices
ARM: tegra: trimslice: add audio devices and clocks
ARM: tegra: trimslice: enable USB ports
arch/arm/mach-tegra/board-trimslice-pinmux.c | 7 ++-
arch/arm/mach-tegra/board-trimslice.c | 92 ++++++++++++++++++++++++++
arch/arm/mach-tegra/board-trimslice.h | 3 +
3 files changed, 100 insertions(+), 2 deletions(-)
^ permalink raw reply [flat|nested] 7+ messages in thread
* [GIT PULL v3 1/3] ARM: tegra: trimslice: register i2c busses and devices
[not found] ` <cover.1309955711.git.mike-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org>
@ 2011-07-07 6:04 ` Mike Rapoport
2011-07-07 6:04 ` [GIT PULL v3 2/3] ARM: tegra: trimslice: add audio devices and clocks Mike Rapoport
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: Mike Rapoport @ 2011-07-07 6:04 UTC (permalink / raw)
To: Colin Cross
Cc: Erik Gilling, Olof Johansson, linux-tegra-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Mike Rapoport
Signed-off-by: Mike Rapoport <mike-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org>
---
arch/arm/mach-tegra/board-trimslice.c | 39 +++++++++++++++++++++++++++++++++
1 files changed, 39 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-tegra/board-trimslice.c b/arch/arm/mach-tegra/board-trimslice.c
index cda4cfd..dcf5fc5 100644
--- a/arch/arm/mach-tegra/board-trimslice.c
+++ b/arch/arm/mach-tegra/board-trimslice.c
@@ -23,6 +23,8 @@
#include <linux/platform_device.h>
#include <linux/serial_8250.h>
#include <linux/io.h>
+#include <linux/i2c.h>
+#include <linux/i2c-tegra.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
@@ -77,6 +79,41 @@ static struct platform_device *trimslice_devices[] __initdata = {
&tegra_sdhci_device4,
};
+static struct tegra_i2c_platform_data trimslice_i2c1_platform_data = {
+ .bus_clk_rate = 400000,
+};
+
+static struct tegra_i2c_platform_data trimslice_i2c2_platform_data = {
+ .bus_clk_rate = 400000,
+};
+
+static struct tegra_i2c_platform_data trimslice_i2c3_platform_data = {
+ .bus_clk_rate = 400000,
+};
+
+static struct i2c_board_info trimslice_i2c3_board_info[] = {
+ {
+ I2C_BOARD_INFO("tlv320aic23", 0x1a),
+ },
+ {
+ I2C_BOARD_INFO("em3027", 0x56),
+ },
+};
+
+static void trimslice_i2c_init(void)
+{
+ tegra_i2c_device1.dev.platform_data = &trimslice_i2c1_platform_data;
+ tegra_i2c_device2.dev.platform_data = &trimslice_i2c2_platform_data;
+ tegra_i2c_device3.dev.platform_data = &trimslice_i2c3_platform_data;
+
+ platform_device_register(&tegra_i2c_device1);
+ platform_device_register(&tegra_i2c_device2);
+ platform_device_register(&tegra_i2c_device3);
+
+ i2c_register_board_info(2, trimslice_i2c3_board_info,
+ ARRAY_SIZE(trimslice_i2c3_board_info));
+}
+
static void __init tegra_trimslice_fixup(struct machine_desc *desc,
struct tag *tags, char **cmdline, struct meminfo *mi)
{
@@ -112,6 +149,8 @@ static void __init tegra_trimslice_init(void)
tegra_sdhci_device4.dev.platform_data = &sdhci_pdata4;
platform_add_devices(trimslice_devices, ARRAY_SIZE(trimslice_devices));
+
+ trimslice_i2c_init();
}
MACHINE_START(TRIMSLICE, "trimslice")
--
1.7.3.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [GIT PULL v3 2/3] ARM: tegra: trimslice: add audio devices and clocks
[not found] ` <cover.1309955711.git.mike-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org>
2011-07-07 6:04 ` [GIT PULL v3 1/3] ARM: tegra: trimslice: register i2c busses and devices Mike Rapoport
@ 2011-07-07 6:04 ` Mike Rapoport
2011-07-07 6:04 ` [GIT PULL v3 3/3] ARM: tegra: trimslice: enable USB ports Mike Rapoport
2011-07-10 22:11 ` Colin Cross
3 siblings, 0 replies; 7+ messages in thread
From: Mike Rapoport @ 2011-07-07 6:04 UTC (permalink / raw)
To: Colin Cross
Cc: Erik Gilling, Olof Johansson, linux-tegra-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Mike Rapoport
Signed-off-by: Mike Rapoport <mike-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org>
---
arch/arm/mach-tegra/board-trimslice-pinmux.c | 2 +-
arch/arm/mach-tegra/board-trimslice.c | 13 +++++++++++++
2 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mach-tegra/board-trimslice-pinmux.c b/arch/arm/mach-tegra/board-trimslice-pinmux.c
index 13534fa..321c610 100644
--- a/arch/arm/mach-tegra/board-trimslice-pinmux.c
+++ b/arch/arm/mach-tegra/board-trimslice-pinmux.c
@@ -29,7 +29,7 @@ static __initdata struct tegra_pingroup_config trimslice_pinmux[] = {
{TEGRA_PINGROUP_ATC, TEGRA_MUX_NAND, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE},
{TEGRA_PINGROUP_ATD, TEGRA_MUX_GMI, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE},
{TEGRA_PINGROUP_ATE, TEGRA_MUX_GMI, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE},
- {TEGRA_PINGROUP_CDEV1, TEGRA_MUX_OSC, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL},
+ {TEGRA_PINGROUP_CDEV1, TEGRA_MUX_PLLA_OUT, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL},
{TEGRA_PINGROUP_CDEV2, TEGRA_MUX_PLLP_OUT4, TEGRA_PUPD_PULL_DOWN, TEGRA_TRI_TRISTATE},
{TEGRA_PINGROUP_CRTP, TEGRA_MUX_CRT, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE},
{TEGRA_PINGROUP_CSUS, TEGRA_MUX_VI_SENSOR_CLK, TEGRA_PUPD_PULL_DOWN, TEGRA_TRI_TRISTATE},
diff --git a/arch/arm/mach-tegra/board-trimslice.c b/arch/arm/mach-tegra/board-trimslice.c
index dcf5fc5..a19e90b 100644
--- a/arch/arm/mach-tegra/board-trimslice.c
+++ b/arch/arm/mach-tegra/board-trimslice.c
@@ -73,10 +73,19 @@ static struct tegra_sdhci_platform_data sdhci_pdata4 = {
.power_gpio = -1,
};
+static struct platform_device trimslice_audio_device = {
+ .name = "tegra-snd-trimslice",
+ .id = 0,
+};
+
static struct platform_device *trimslice_devices[] __initdata = {
&debug_uart,
&tegra_sdhci_device1,
&tegra_sdhci_device4,
+ &tegra_i2s_device1,
+ &tegra_das_device,
+ &tegra_pcm_device,
+ &trimslice_audio_device,
};
static struct tegra_i2c_platform_data trimslice_i2c1_platform_data = {
@@ -127,6 +136,10 @@ static void __init tegra_trimslice_fixup(struct machine_desc *desc,
static __initdata struct tegra_clk_init_table trimslice_clk_init_table[] = {
/* name parent rate enabled */
{ "uarta", "pll_p", 216000000, true },
+ { "pll_a", "pll_p_out1", 56448000, true },
+ { "pll_a_out0", "pll_a", 11289600, true },
+ { "cdev1", NULL, 0, true },
+ { "i2s1", "pll_a_out0", 11289600, false},
{ NULL, NULL, 0, 0},
};
--
1.7.3.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [GIT PULL v3 3/3] ARM: tegra: trimslice: enable USB ports
[not found] ` <cover.1309955711.git.mike-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org>
2011-07-07 6:04 ` [GIT PULL v3 1/3] ARM: tegra: trimslice: register i2c busses and devices Mike Rapoport
2011-07-07 6:04 ` [GIT PULL v3 2/3] ARM: tegra: trimslice: add audio devices and clocks Mike Rapoport
@ 2011-07-07 6:04 ` Mike Rapoport
2011-07-10 22:11 ` Colin Cross
3 siblings, 0 replies; 7+ messages in thread
From: Mike Rapoport @ 2011-07-07 6:04 UTC (permalink / raw)
To: Colin Cross
Cc: Erik Gilling, Olof Johansson, linux-tegra-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Mike Rapoport
Signed-off-by: Mike Rapoport <mike-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org>
---
arch/arm/mach-tegra/board-trimslice-pinmux.c | 5 ++-
arch/arm/mach-tegra/board-trimslice.c | 40 ++++++++++++++++++++++++++
arch/arm/mach-tegra/board-trimslice.h | 3 ++
3 files changed, 47 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mach-tegra/board-trimslice-pinmux.c b/arch/arm/mach-tegra/board-trimslice-pinmux.c
index 321c610..82646a4 100644
--- a/arch/arm/mach-tegra/board-trimslice-pinmux.c
+++ b/arch/arm/mach-tegra/board-trimslice-pinmux.c
@@ -126,7 +126,7 @@ static __initdata struct tegra_pingroup_config trimslice_pinmux[] = {
{TEGRA_PINGROUP_SPIH, TEGRA_MUX_SPI2_ALT, TEGRA_PUPD_PULL_UP, TEGRA_TRI_TRISTATE},
{TEGRA_PINGROUP_UAA, TEGRA_MUX_ULPI, TEGRA_PUPD_PULL_UP, TEGRA_TRI_TRISTATE},
{TEGRA_PINGROUP_UAB, TEGRA_MUX_ULPI, TEGRA_PUPD_PULL_UP, TEGRA_TRI_TRISTATE},
- {TEGRA_PINGROUP_UAC, TEGRA_MUX_RSVD2, TEGRA_PUPD_NORMAL, TEGRA_TRI_TRISTATE},
+ {TEGRA_PINGROUP_UAC, TEGRA_MUX_RSVD2, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL},
{TEGRA_PINGROUP_UAD, TEGRA_MUX_IRDA, TEGRA_PUPD_PULL_UP, TEGRA_TRI_TRISTATE},
{TEGRA_PINGROUP_UCA, TEGRA_MUX_UARTC, TEGRA_PUPD_PULL_UP, TEGRA_TRI_TRISTATE},
{TEGRA_PINGROUP_UCB, TEGRA_MUX_UARTC, TEGRA_PUPD_PULL_UP, TEGRA_TRI_TRISTATE},
@@ -145,6 +145,9 @@ static __initdata struct tegra_pingroup_config trimslice_pinmux[] = {
static struct tegra_gpio_table gpio_table[] = {
{ .gpio = TRIMSLICE_GPIO_SD4_CD, .enable = true }, /* mmc4 cd */
{ .gpio = TRIMSLICE_GPIO_SD4_WP, .enable = true }, /* mmc4 wp */
+
+ { .gpio = TRIMSLICE_GPIO_USB1_MODE, .enable = true }, /* USB1 mode */
+ { .gpio = TRIMSLICE_GPIO_USB2_RST, .enable = true }, /* USB2 PHY rst */
};
void __init trimslice_pinmux_init(void)
diff --git a/arch/arm/mach-tegra/board-trimslice.c b/arch/arm/mach-tegra/board-trimslice.c
index a19e90b..a8fff42 100644
--- a/arch/arm/mach-tegra/board-trimslice.c
+++ b/arch/arm/mach-tegra/board-trimslice.c
@@ -25,6 +25,8 @@
#include <linux/io.h>
#include <linux/i2c.h>
#include <linux/i2c-tegra.h>
+#include <linux/platform_data/tegra_usb.h>
+#include <linux/gpio.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
@@ -32,6 +34,8 @@
#include <mach/iomap.h>
#include <mach/sdhci.h>
+#include <mach/usb_phy.h>
+#include <mach/gpio.h>
#include "board.h"
#include "clock.h"
@@ -123,6 +127,41 @@ static void trimslice_i2c_init(void)
ARRAY_SIZE(trimslice_i2c3_board_info));
}
+struct tegra_ulpi_config ehci2_phy_config = {
+ .reset_gpio = TRIMSLICE_GPIO_USB2_RST,
+ .clk = "cdev2",
+};
+
+static struct tegra_ehci_platform_data ehci_ulpi_data = {
+ .operating_mode = TEGRA_USB_HOST,
+ .phy_config = &ehci2_phy_config,
+};
+
+static struct tegra_ehci_platform_data ehci_utmi_data = {
+ .operating_mode = TEGRA_USB_HOST,
+};
+
+static void trimslice_usb_init(void)
+{
+ int err;
+
+ tegra_ehci3_device.dev.platform_data = &ehci_utmi_data;
+ platform_device_register(&tegra_ehci3_device);
+
+ tegra_ehci2_device.dev.platform_data = &ehci_ulpi_data;
+ platform_device_register(&tegra_ehci2_device);
+
+ err = gpio_request_one(TRIMSLICE_GPIO_USB1_MODE, GPIOF_OUT_INIT_HIGH,
+ "usb1mode");
+ if (err) {
+ pr_err("TrimSlice: failed to obtain USB1 mode gpio: %d\n", err);
+ return;
+ }
+
+ tegra_ehci1_device.dev.platform_data = &ehci_utmi_data;
+ platform_device_register(&tegra_ehci1_device);
+}
+
static void __init tegra_trimslice_fixup(struct machine_desc *desc,
struct tag *tags, char **cmdline, struct meminfo *mi)
{
@@ -164,6 +203,7 @@ static void __init tegra_trimslice_init(void)
platform_add_devices(trimslice_devices, ARRAY_SIZE(trimslice_devices));
trimslice_i2c_init();
+ trimslice_usb_init();
}
MACHINE_START(TRIMSLICE, "trimslice")
diff --git a/arch/arm/mach-tegra/board-trimslice.h b/arch/arm/mach-tegra/board-trimslice.h
index e8ef629..7a7dee8 100644
--- a/arch/arm/mach-tegra/board-trimslice.h
+++ b/arch/arm/mach-tegra/board-trimslice.h
@@ -20,6 +20,9 @@
#define TRIMSLICE_GPIO_SD4_CD TEGRA_GPIO_PP1 /* mmc4 cd */
#define TRIMSLICE_GPIO_SD4_WP TEGRA_GPIO_PP2 /* mmc4 wp */
+#define TRIMSLICE_GPIO_USB1_MODE TEGRA_GPIO_PV2 /* USB1 mode */
+#define TRIMSLICE_GPIO_USB2_RST TEGRA_GPIO_PV0 /* USB2 PHY reset */
+
void trimslice_pinmux_init(void);
#endif
--
1.7.3.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [GIT PULL v3 0/3] TrimSlice updates for 3.1
2011-07-07 6:04 ` Mike Rapoport
@ 2011-07-10 22:11 ` Colin Cross
-1 siblings, 0 replies; 7+ messages in thread
From: Colin Cross @ 2011-07-10 22:11 UTC (permalink / raw)
To: Mike Rapoport
Cc: Erik Gilling, Olof Johansson, linux-tegra-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
On Wed, Jul 6, 2011 at 11:04 PM, Mike Rapoport <mike-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org> wrote:
> Hi Colin,
> Please consider pulling TrimSlice updates for 3.1 merge window.
> These patches add registration of i2c, audio and USB devices.
>
> v3 changes:
> - rebased on top of current Linus tree
>
> v2 changes:
> - update CDEV1 pinmux as per Stephen suggestion
> - use GPIO table for USB-related GPIOs
>
> The following changes since commit a2fa83faf47b514ab947cea916d3691b66525073:
>
> Merge branch 'usb-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6 (2011-07-05 20:57:45 -0700)
>
> are available in the git repository at:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux-tegra.git trimslice/upstream
>
> Mike Rapoport (3):
> ARM: tegra: trimslice: register i2c busses and devices
> ARM: tegra: trimslice: add audio devices and clocks
> ARM: tegra: trimslice: enable USB ports
>
> arch/arm/mach-tegra/board-trimslice-pinmux.c | 7 ++-
> arch/arm/mach-tegra/board-trimslice.c | 92 ++++++++++++++++++++++++++
> arch/arm/mach-tegra/board-trimslice.h | 3 +
> 3 files changed, 100 insertions(+), 2 deletions(-)
>
I pushed this series to for-next.
I have some cleanup patches that go on top to reduce some of the
duplicate platform data added by trimslice and paz00, I'd appreciate a
tested-by once I post those.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [GIT PULL v3 0/3] TrimSlice updates for 3.1
@ 2011-07-10 22:11 ` Colin Cross
0 siblings, 0 replies; 7+ messages in thread
From: Colin Cross @ 2011-07-10 22:11 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Jul 6, 2011 at 11:04 PM, Mike Rapoport <mike@compulab.co.il> wrote:
> Hi Colin,
> Please consider pulling TrimSlice updates for 3.1 merge window.
> These patches add registration of i2c, audio and USB devices.
>
> v3 changes:
> - rebased on top of current Linus tree
>
> v2 changes:
> - update CDEV1 pinmux as per Stephen suggestion
> - use GPIO table for USB-related GPIOs
>
> The following changes since commit a2fa83faf47b514ab947cea916d3691b66525073:
>
> ?Merge branch 'usb-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6 (2011-07-05 20:57:45 -0700)
>
> are available in the git repository at:
>
> ?git://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux-tegra.git trimslice/upstream
>
> Mike Rapoport (3):
> ? ? ?ARM: tegra: trimslice: register i2c busses and devices
> ? ? ?ARM: tegra: trimslice: add audio devices and clocks
> ? ? ?ARM: tegra: trimslice: enable USB ports
>
> ?arch/arm/mach-tegra/board-trimslice-pinmux.c | ? ?7 ++-
> ?arch/arm/mach-tegra/board-trimslice.c ? ? ? ?| ? 92 ++++++++++++++++++++++++++
> ?arch/arm/mach-tegra/board-trimslice.h ? ? ? ?| ? ?3 +
> ?3 files changed, 100 insertions(+), 2 deletions(-)
>
I pushed this series to for-next.
I have some cleanup patches that go on top to reduce some of the
duplicate platform data added by trimslice and paz00, I'd appreciate a
tested-by once I post those.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-07-10 22:11 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-07 6:04 [GIT PULL v3 0/3] TrimSlice updates for 3.1 Mike Rapoport
2011-07-07 6:04 ` Mike Rapoport
[not found] ` <cover.1309955711.git.mike-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org>
2011-07-07 6:04 ` [GIT PULL v3 1/3] ARM: tegra: trimslice: register i2c busses and devices Mike Rapoport
2011-07-07 6:04 ` [GIT PULL v3 2/3] ARM: tegra: trimslice: add audio devices and clocks Mike Rapoport
2011-07-07 6:04 ` [GIT PULL v3 3/3] ARM: tegra: trimslice: enable USB ports Mike Rapoport
2011-07-10 22:11 ` [GIT PULL v3 0/3] TrimSlice updates for 3.1 Colin Cross
2011-07-10 22:11 ` Colin Cross
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.