Skip to contentSkip to conversation

linux-ti33x-psp 3.2: switch ADC to 16x averaging, disable 275MHz, add 4.3" LCD support

PATCH New Koen Kooi 1 participant 7 messages Jun 7, 2012

lore
Share & tools
lore

Koen Kooi

author
#0 lore raw

PATCH v2 1/7 linux-ti33x-psp 3.2: switch ADC to 16x averaging, disable 275MHz, add 4.3" LCD support

* The switch to 16x averaging is done to combat the excessive noise in the signal. It's still *very* bad, but the TS cursor jitter has decreased a bit
* The OPP for 275MHz was disabled due to all the errata. Both the EMIF and MUSB don't seem to like that OPP.
* The resistive touch version of the 4.3" LCD cape is supported in 24 bit mode.

---
 .../0065-ti_tscadc-switch-to-16x-averaging.patch   |   53 +++++++++++
 ...disable-OPP-for-275MHz-due-to-silicon-err.patch |   28 ++++++
 ...o-da8xx-fb-Add-Newhaven-LCD-Panel-details.patch |   45 ++++++++++
 ...add-support-for-the-4.3-lcd-cape-with-res.patch |   94 ++++++++++++++++++++
 recipes-kernel/linux/linux-ti33x-psp_3.2.bb        |    6 +-
 5 files changed, 225 insertions(+), 1 deletion(-)
 create mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0065-ti_tscadc-switch-to-16x-averaging.patch
 create mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0066-beaglebone-disable-OPP-for-275MHz-due-to-silicon-err.patch
 create mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0067-video-da8xx-fb-Add-Newhaven-LCD-Panel-details.patch
 create mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0068-beaglebone-add-support-for-the-4.3-lcd-cape-with-res.patch
recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0065-ti_tscadc-switch-to-16x-averaging.patch new file +53 -0
new file mode 100644
index 0000000..ae5a4f9
@@ -0,0 +1,53 @@
+From 979f76376236287b2e4d4b4505ed34b1f9c9d389 Mon Sep 17 00:00:00 2001
+From: Koen Kooi <[email protected]>
+Date: Mon, 28 May 2012 09:56:45 +0200
+Subject: [PATCH 65/68] ti_tscadc: switch to 16x averaging
+
+Signed-off-by: Koen Kooi <[email protected]>
+---
+ drivers/input/touchscreen/ti_tscadc.c |    8 ++++----
+ 1 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/drivers/input/touchscreen/ti_tscadc.c b/drivers/input/touchscreen/ti_tscadc.c
+index 7df7bb2..ae6c4c4 100644
+--- a/drivers/input/touchscreen/ti_tscadc.c
++++ b/drivers/input/touchscreen/ti_tscadc.c
+@@ -161,7 +161,7 @@ static void tsc_adc_step_config(struct tscadc *ts_dev, int channel)
+  	 * sample channel 1 (SEL_INP mux bits = 0)
+  	 */
+ 	stepconfig = TSCADC_STEPCONFIG_MODE_SWONESHOT |
+-		TSCADC_STEPCONFIG_4SAMPLES_AVG |
++		TSCADC_STEPCONFIG_16SAMPLES_AVG |
+ 		((channel-1) << 19);
+ 	
+ 	delay = TSCADC_STEPCONFIG_SAMPLEDLY | TSCADC_STEPCONFIG_OPENDLY;
+@@ -242,7 +242,7 @@ static void tsc_step_config(struct tscadc *ts_dev)
+ 	delay = TSCADC_STEPCONFIG_SAMPLEDLY | TSCADC_STEPCONFIG_OPENDLY;
+ 
+ 	stepconfigx = TSCADC_STEPCONFIG_MODE_HWSYNC |
+-			TSCADC_STEPCONFIG_4SAMPLES_AVG | TSCADC_STEPCONFIG_XPP;
++			TSCADC_STEPCONFIG_16SAMPLES_AVG | TSCADC_STEPCONFIG_XPP;
+ 
+ 	switch (ts_dev->wires) {
+ 	case 4:
+@@ -279,7 +279,7 @@ static void tsc_step_config(struct tscadc *ts_dev)
+ 	}
+ 
+ 	stepconfigy = TSCADC_STEPCONFIG_MODE_HWSYNC |
+-			TSCADC_STEPCONFIG_4SAMPLES_AVG | TSCADC_STEPCONFIG_YNN |
++			TSCADC_STEPCONFIG_16SAMPLES_AVG | TSCADC_STEPCONFIG_YNN |
+ 			TSCADC_STEPCONFIG_INM | TSCADC_STEPCONFIG_FIFO1;
+ 	switch (ts_dev->wires) {
+ 	case 4:
+@@ -324,7 +324,7 @@ static void tsc_step_config(struct tscadc *ts_dev)
+ 
+ 	 /* Configure to calculate pressure */
+ 	stepconfigz1 = TSCADC_STEPCONFIG_MODE_HWSYNC |
+-				TSCADC_STEPCONFIG_4SAMPLES_AVG |
++				TSCADC_STEPCONFIG_16SAMPLES_AVG |
+ 				TSCADC_STEPCONFIG_XNP |
+ 				TSCADC_STEPCONFIG_YPN | TSCADC_STEPCONFIG_INM;
+ 	stepconfigz2 = stepconfigz1 | TSCADC_STEPCONFIG_Z1 |
+-- 
+1.7.7.6
+
recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0066-beaglebone-disable-OPP-for-275MHz-due-to-silicon-err.patch new file +28 -0
new file mode 100644
index 0000000..aae97bb
@@ -0,0 +1,28 @@
+From 954d199a0e9aaa4d7dbc7215cea0225cd3ffe186 Mon Sep 17 00:00:00 2001
+From: Koen Kooi <[email protected]>
+Date: Mon, 28 May 2012 18:54:57 +0200
+Subject: [PATCH 66/68] beaglebone: disable OPP for 275MHz due to silicon
+ errata
+
+Signed-off-by: Koen Kooi <[email protected]>
+---
+ arch/arm/mach-omap2/board-am335xevm.c |    3 +++
+ 1 files changed, 3 insertions(+), 0 deletions(-)
+
+diff --git a/arch/arm/mach-omap2/board-am335xevm.c b/arch/arm/mach-omap2/board-am335xevm.c
+index da6020b..58c2754 100644
+--- a/arch/arm/mach-omap2/board-am335xevm.c
++++ b/arch/arm/mach-omap2/board-am335xevm.c
+@@ -2975,6 +2975,9 @@ static void tps65217_init(int evm_id, int profile)
+ 		return;
+ 	}
+ 
++	pr_info("Disabling OPP for 275MHz due to silicon errata");
++	opp_disable(mpu_dev, 275000000);
++
+ 	if (!(val & TPS65217_STATUS_ACPWR)) {
+ 		/* If powered by USB then disable OPP120 and OPPTURBO */
+ 		pr_info("Maximum current provided by the USB port is 500mA"
+-- 
+1.7.7.6
+
recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0067-video-da8xx-fb-Add-Newhaven-LCD-Panel-details.patch new file +45 -0

45 lines not on this page · raw message

recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0068-beaglebone-add-support-for-the-4.3-lcd-cape-with-res.patch new file +94 -0

94 lines not on this page · raw message

recipes-kernel/linux/linux-ti33x-psp_3.2.bb +5 -1
index cd10044..46a6277 100644
@@ -15,7 +15,7 @@ PV = "${@base_contains('DISTRO_FEATURES', 'tipspkernel', "3.2", "3.2.18", d)}"
 
 BRANCH = "v3.2-staging"
 SRCREV = "720e07b4c1f687b61b147b31c698cb6816d72f01"
-MACHINE_KERNEL_PR_append = "c+gitr${SRCREV}"
+MACHINE_KERNEL_PR_append = "d+gitr${SRCREV}"
 
 COMPATIBLE_MACHINE = "(ti33x)"
 
@@ -1224,4 +1224,8 @@ PATCHES_OVER_PSP = " \
 	file://beaglebone/0062-da8xx-fb-Rounding-FB-size-to-satisfy-SGX-buffer-requ.patch \
 	file://beaglebone/0063-beaglebone-dvi-cape-audio-hacks.patch \
 	file://beaglebone/0064-beaglebone-always-execute-the-pin-free-checks.patch \
+	file://beaglebone/0065-ti_tscadc-switch-to-16x-averaging.patch \
+	file://beaglebone/0066-beaglebone-disable-OPP-for-275MHz-due-to-silicon-err.patch \
+	file://beaglebone/0067-video-da8xx-fb-Add-Newhaven-LCD-Panel-details.patch \
+	file://beaglebone/0068-beaglebone-add-support-for-the-4.3-lcd-cape-with-res.patch \
 "
Signature · 1 line
1.7.10
author
#1 lore raw

PATCH v2 2/7 linux-ti33x-psp: enable TSL2550 driver for beaglebone weatherstation cape

---
 recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/defconfig |    2 +-
 recipes-kernel/linux/linux-ti33x-psp_3.2.bb                   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/defconfig +1 -1
index c9316db..f88be14 100644
@@ -1012,7 +1012,7 @@ CONFIG_MISC_DEVICES=y
 # CONFIG_APDS9802ALS is not set
 # CONFIG_ISL29003 is not set
 # CONFIG_ISL29020 is not set
-# CONFIG_SENSORS_TSL2550 is not set
+CONFIG_SENSORS_TSL2550=m
 # CONFIG_SENSORS_BH1780 is not set
 # CONFIG_SENSORS_BH1770 is not set
 # CONFIG_SENSORS_APDS990X is not set
recipes-kernel/linux/linux-ti33x-psp_3.2.bb +1 -1
index 46a6277..e3a427b 100644
@@ -15,7 +15,7 @@ PV = "${@base_contains('DISTRO_FEATURES', 'tipspkernel', "3.2", "3.2.18", d)}"
 
 BRANCH = "v3.2-staging"
 SRCREV = "720e07b4c1f687b61b147b31c698cb6816d72f01"
-MACHINE_KERNEL_PR_append = "d+gitr${SRCREV}"
+MACHINE_KERNEL_PR_append = "e+gitr${SRCREV}"
 
 COMPATIBLE_MACHINE = "(ti33x)"
 
Signature · 1 line
1.7.10
author
#2 lore raw

PATCH v2 3/7 linux-ti33x-psp 3.2: fix buttons on LCD capes

In reply to Koen Kooi

One patch to add button layout for the a1 revision of the 3.5" LCD cape and another patch to stop spidev from loading when SPI1_D1 is used as gpio

---
 ...69-beaglebone-add-support-for-LCD3-rev-A1.patch |  132 ++++++++++++++++++++
 ...fix-buttons-spidev-clash-when-using-mcasp.patch |   52 ++++++++
 recipes-kernel/linux/linux-ti33x-psp_3.2.bb        |    4 +-
 3 files changed, 187 insertions(+), 1 deletion(-)
 create mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0069-beaglebone-add-support-for-LCD3-rev-A1.patch
 create mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0070-beaglebone-fix-buttons-spidev-clash-when-using-mcasp.patch
recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0069-beaglebone-add-support-for-LCD3-rev-A1.patch new file +132 -0
new file mode 100644
index 0000000..d9bc2b5
@@ -0,0 +1,132 @@
+From b61b89f98ac85ccd8d503a902bad208343ed0aba Mon Sep 17 00:00:00 2001
+From: Koen Kooi <[email protected]>
+Date: Mon, 4 Jun 2012 14:38:02 +0200
+Subject: [PATCH] beaglebone: add support for LCD3 rev A1
+
+Signed-off-by: Koen Kooi <[email protected]>
+---
+ arch/arm/mach-omap2/board-am335xevm.c |   94 +++++++++++++++++++++++++++++----
+ 1 files changed, 83 insertions(+), 11 deletions(-)
+
+diff --git a/arch/arm/mach-omap2/board-am335xevm.c b/arch/arm/mach-omap2/board-am335xevm.c
+index bb6049a..51bfa8b 100644
+--- a/arch/arm/mach-omap2/board-am335xevm.c
++++ b/arch/arm/mach-omap2/board-am335xevm.c
+@@ -1136,7 +1136,7 @@ static struct pinmux_config lcd3_keys_pin_mux[] = {
+ 	{NULL, 0},
+ };
+ 
+-/* Configure GPIOs for lcd3 keys */
++/* Configure GPIOs for lcd3 rev A or earlier keys */
+ static struct gpio_keys_button beaglebone_lcd3_gpio_keys[] = {
+ 	{
+ 		.code                   = KEY_LEFT,
+@@ -1193,14 +1193,72 @@ static struct platform_device beaglebone_lcd3_keys = {
+ 	},
+ };
+ 
+-static void beaglebone_lcd3_keys_init(int evm_id, int profile)
+-{
+-	int err;
+-	setup_pin_mux(lcd3_keys_pin_mux);
+-	err = platform_device_register(&beaglebone_lcd3_keys);
+-	if (err)
+-		pr_err("failed to register gpio keys for LCD3 cape\n");
+-}
++/* pinmux for lcd3 A1 or newer keys */
++static struct pinmux_config lcd3a1_keys_pin_mux[] = {
++	{"gpmc_a0.gpio1_16",  OMAP_MUX_MODE7 | AM33XX_PIN_INPUT}, // Left
++	{"gpmc_a1.gpio1_17",    OMAP_MUX_MODE7 | AM33XX_PIN_INPUT}, //Right
++	{"gpmc_a3.gpio1_19", OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT}, // Up
++	{"mcasp0_axr0.gpio3_16",    OMAP_MUX_MODE7 | AM33XX_PIN_INPUT}, //Down
++	{"mcasp0_fsr.gpio3_19",  OMAP_MUX_MODE7 | AM33XX_PIN_INPUT}, // Enter
++	{NULL, 0},
++};
++
++/* Configure GPIOs for lcd3 rev A1 or newer keys */
++static struct gpio_keys_button lcd3a1_gpio_keys[] = {
++	{
++		.code                   = KEY_LEFT,
++		.gpio                   = GPIO_TO_PIN(1, 16),
++		.active_low             = true,
++		.desc                   = "left",
++		.type                   = EV_KEY,
++		.wakeup                 = 1,
++	},
++	{
++		.code                   = KEY_RIGHT,
++		.gpio                   = GPIO_TO_PIN(1, 17),
++		.active_low             = true,
++		.desc                   = "right",
++		.type                   = EV_KEY,
++		.wakeup                 = 1,
++	},
++	{
++		.code                   = KEY_UP,
++		.gpio                   = GPIO_TO_PIN(1, 19),
++		.active_low             = true,
++		.desc                   = "up",
++		.type                   = EV_KEY,
++		.wakeup                 = 1,
++	},
++	{
++		.code                   = KEY_DOWN,
++		.gpio                   = GPIO_TO_PIN(3, 16),
++		.active_low             = true,
++		.desc                   = "down",
++		.type                   = EV_KEY,
++		.wakeup                 = 1,
++	},
++	{
++		.code                   = KEY_ENTER,
++		.gpio                   = GPIO_TO_PIN(3, 19),
++		.active_low             = true,
++		.desc                   = "enter",
++		.type                   = EV_KEY,
++		.wakeup                 = 1,
++	},
++};
++
++static struct gpio_keys_platform_data lcd3a1_gpio_key_info = {
++	.buttons        = lcd3a1_gpio_keys,
++	.nbuttons       = ARRAY_SIZE(lcd3a1_gpio_keys),
++};
++
++static struct platform_device lcd3a1_keys = {
++	.name   = "gpio-keys",
++	.id     = -1,
++	.dev    = {
++		.platform_data  = &lcd3a1_gpio_key_info,
++	},
++};
+ 
+ /*
+ * @evm_id - evm id which needs to be configured
+@@ -2691,8 +2749,22 @@ static void beaglebone_cape_setup(struct memory_accessor *mem_acc, void *context
+ 		pr_info("BeagleBone cape: initializing LCD cape touchscreen\n");
+ 		tsc_init(0,0);
+ 		beaglebone_tsadcpins_free = 0;
+-		pr_info("BeagleBone cape: Registering gpio-keys for LCD cape\n");
+-		beaglebone_lcd3_keys_init(0,0);
++		
++		if (!strncmp("00A0", cape_config.version, 4)) {
++			pr_info("BeagleBone cape: Registering gpio-keys for LCD3 rev A or earlier cape\n");
++			int err;
++			setup_pin_mux(lcd3_keys_pin_mux);
++			err = platform_device_register(&beaglebone_lcd3_keys);
++			if (err)
++				pr_err("failed to register gpio keys for LCD3 rev A or earlier cape\n");
++		} else {
++			pr_info("BeagleBone cape: Registering gpio-keys for LCD rev A1 or later cape\n");
++			int err;
++			setup_pin_mux(lcd3a1_keys_pin_mux);
++			err = platform_device_register(&lcd3a1_keys);
++			if (err)
++				pr_err("failed to register gpio keys for LCD3 rev A1 or later cape\n");
++		}
+ 		beaglebone_leds_free = 0;
+ 		lcd3leds_init(0,0);
+ 	}
+-- 
+1.7.7.6
+
recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0070-beaglebone-fix-buttons-spidev-clash-when-using-mcasp.patch new file +52 -0

52 lines not on this page · raw message

recipes-kernel/linux/linux-ti33x-psp_3.2.bb +3 -1
index e3a427b..f279b24 100644
@@ -15,7 +15,7 @@ PV = "${@base_contains('DISTRO_FEATURES', 'tipspkernel', "3.2", "3.2.18", d)}"
 
 BRANCH = "v3.2-staging"
 SRCREV = "720e07b4c1f687b61b147b31c698cb6816d72f01"
-MACHINE_KERNEL_PR_append = "e+gitr${SRCREV}"
+MACHINE_KERNEL_PR_append = "g+gitr${SRCREV}"
 
 COMPATIBLE_MACHINE = "(ti33x)"
 
@@ -1228,4 +1228,6 @@ PATCHES_OVER_PSP = " \
 	file://beaglebone/0066-beaglebone-disable-OPP-for-275MHz-due-to-silicon-err.patch \
 	file://beaglebone/0067-video-da8xx-fb-Add-Newhaven-LCD-Panel-details.patch \
 	file://beaglebone/0068-beaglebone-add-support-for-the-4.3-lcd-cape-with-res.patch \
+	file://beaglebone/0069-beaglebone-add-support-for-LCD3-rev-A1.patch \
+	file://beaglebone/0070-beaglebone-fix-buttons-spidev-clash-when-using-mcasp.patch \
 "
Signature · 1 line
1.7.10
author
#3 lore raw

PATCH v2 4/7 linux-ti33x-psp 3.2: backport PM and USB fixes from PSP

In reply to Koen Kooi

The complete patchset will get rebased to the tip of the PSP tree soon, but the conflicts take a lot of time to resolve.

---
 ...-AM33XX-Add-missing-EMIF-register-offsets.patch |   61 +++
 ...33XX-PM-Get-rid-of-hardcoded-resume-addre.patch |   99 +++++
 ...33XX-PM-Skip-DDR-PHY-reconfiguration-in-r.patch |  397 ++++++++++++++++++
 ...AM33XX-PM-Save-and-restore-EMIF-registers.patch |  241 +++++++++++
 ...33XX-PM-Wait-correctly-for-the-PLLs-to-re.patch |   37 ++
 ...33XX-PM-Restore-the-PLLs-to-pre-suspend-s.patch |  139 +++++++
 ...-AM33XX-Update-the-sleep-code-to-handle-D.patch |  150 +++++++
 ...008-usb-musb-update-babble-workaround-fix.patch |  168 ++++++++
 ...81xx-print-the-usbss-revision-id-during-i.patch |   29 ++
 ...ppi41-enable-txfifo-empty-interrupt-logic.patch |  425 ++++++++++++++++++++
 ...ost-Flush-txfifo-only-if-TxPktRdy-bit-set.patch |   57 +++
 ...pi41-use-dsb-to-make-sure-PDs-are-updated.patch |   43 ++
 ...3-usb-musb-cppi41-fix-zero-byte-OUT-issue.patch |   46 +++
 ...-usb-musb-host-fix-for-urb-error-handling.patch |   66 +++
 ...pi41-txdma-flushfifo-fixes-during-channel.patch |   50 +++
 ...6-usb-musb-cppi41-tx-dma-completion-fixes.patch |   41 ++
 ...st-Flush-RxFIFO-only-when-RxPktRdy-is-set.patch |   30 ++
 ...-usb-musb-ti81xx-fix-role-switching-issue.patch |   65 +++
 recipes-kernel/linux/linux-ti33x-psp_3.2.bb        |   20 +-
 19 files changed, 2163 insertions(+), 1 deletion(-)
 create mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.2/psp/0001-ARM-OMAP-AM33XX-Add-missing-EMIF-register-offsets.patch
 create mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.2/psp/0002-ARM-OMAP-AM33XX-PM-Get-rid-of-hardcoded-resume-addre.patch
 create mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.2/psp/0003-ARM-OMAP-AM33XX-PM-Skip-DDR-PHY-reconfiguration-in-r.patch
 create mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.2/psp/0004-ARM-OMAP-AM33XX-PM-Save-and-restore-EMIF-registers.patch
 create mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.2/psp/0005-ARM-OMAP-AM33XX-PM-Wait-correctly-for-the-PLLs-to-re.patch
 create mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.2/psp/0006-ARM-OMAP-AM33XX-PM-Restore-the-PLLs-to-pre-suspend-s.patch
 create mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.2/psp/0007-ARM-OMAP-PM-AM33XX-Update-the-sleep-code-to-handle-D.patch
 create mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.2/psp/0008-usb-musb-update-babble-workaround-fix.patch
 create mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.2/psp/0009-usb-musb-ti81xx-print-the-usbss-revision-id-during-i.patch
 create mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.2/psp/0010-usb-musb-cppi41-enable-txfifo-empty-interrupt-logic.patch
 create mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.2/psp/0011-usb-musb-host-Flush-txfifo-only-if-TxPktRdy-bit-set.patch
 create mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.2/psp/0012-usb-musb-cppi41-use-dsb-to-make-sure-PDs-are-updated.patch
 create mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.2/psp/0013-usb-musb-cppi41-fix-zero-byte-OUT-issue.patch
 create mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.2/psp/0014-usb-musb-host-fix-for-urb-error-handling.patch
 create mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.2/psp/0015-usb-musb-cppi41-txdma-flushfifo-fixes-during-channel.patch
 create mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.2/psp/0016-usb-musb-cppi41-tx-dma-completion-fixes.patch
 create mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.2/psp/0017-usb-musb-host-Flush-RxFIFO-only-when-RxPktRdy-is-set.patch
 create mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.2/psp/0018-usb-musb-ti81xx-fix-role-switching-issue.patch
recipes-kernel/linux/linux-ti33x-psp-3.2/psp/0001-ARM-OMAP-AM33XX-Add-missing-EMIF-register-offsets.patch new file +61 -0
new file mode 100644
index 0000000..3300bc9
@@ -0,0 +1,61 @@
+From 824f30e3a045347806deedb75f16e96b057f430b Mon Sep 17 00:00:00 2001
+From: Vaibhav Bedia <[email protected]>
+Date: Tue, 22 May 2012 16:25:53 +0530
+Subject: [PATCH 01/18] ARM: OMAP: AM33XX: Add missing EMIF register offsets
+
+Add a couple of missing register offsets in the EMIF
+header file. While here also fix the indentation issue.
+
+Signed-off-by: Vaibhav Bedia <[email protected]>
+---
+ arch/arm/plat-omap/include/plat/emif.h |   34 ++++++++++++++++----------------
+ 1 files changed, 17 insertions(+), 17 deletions(-)
+
+diff --git a/arch/arm/plat-omap/include/plat/emif.h b/arch/arm/plat-omap/include/plat/emif.h
+index 314c126..445cbb1 100644
+--- a/arch/arm/plat-omap/include/plat/emif.h
++++ b/arch/arm/plat-omap/include/plat/emif.h
+@@ -17,23 +17,23 @@
+ #define __EMIF_H
+ 
+ #define EMIF_MOD_ID_REV			(0x0)
+-#define EMIF4_0_SDRAM_STATUS            (0x04)
+-#define EMIF4_0_SDRAM_CONFIG            (0x08)
+-#define EMIF4_0_SDRAM_CONFIG2           (0x0C)
+-#define EMIF4_0_SDRAM_REF_CTRL          (0x10)
+-#define EMIF4_0_SDRAM_REF_CTRL_SHADOW   (0x14)
+-#define EMIF4_0_SDRAM_TIM_1             (0x18)
+-#define EMIF4_0_SDRAM_TIM_1_SHADOW      (0x1C)
+-#define EMIF4_0_SDRAM_TIM_2             (0x20)
+-#define EMIF4_0_SDRAM_TIM_2_SHADOW      (0x24)
+-#define EMIF4_0_SDRAM_TIM_3             (0x28)
+-#define EMIF4_0_SDRAM_TIM_3_SHADOW      (0x2C)
+-#define EMIF4_0_SDRAM_MGMT_CTRL         (0x38)
+-#define EMIF4_0_SDRAM_MGMT_CTRL_SHD     (0x3C)
+-#define EMIF4_0_DDR_PHY_CTRL_1          (0xE4)
+-#define EMIF4_0_DDR_PHY_CTRL_1_SHADOW   (0xE8)
+-#define EMIF4_0_DDR_PHY_CTRL_2          (0xEC)
+-#define EMIF4_0_IODFT_TLGC              (0x60)
++#define EMIF4_0_SDRAM_STATUS		(0x04)
++#define EMIF4_0_SDRAM_CONFIG		(0x08)
++#define EMIF4_0_SDRAM_CONFIG2		(0x0C)
++#define EMIF4_0_SDRAM_REF_CTRL		(0x10)
++#define EMIF4_0_SDRAM_REF_CTRL_SHADOW	(0x14)
++#define EMIF4_0_SDRAM_TIM_1		(0x18)
++#define EMIF4_0_SDRAM_TIM_1_SHADOW	(0x1C)
++#define EMIF4_0_SDRAM_TIM_2		(0x20)
++#define EMIF4_0_SDRAM_TIM_2_SHADOW	(0x24)
++#define EMIF4_0_SDRAM_TIM_3		(0x28)
++#define EMIF4_0_SDRAM_TIM_3_SHADOW	(0x2C)
++#define EMIF4_0_SDRAM_MGMT_CTRL		(0x38)
++#define EMIF4_0_SDRAM_MGMT_CTRL_SHADOW	(0x3C)
++#define EMIF4_0_IODFT_TLGC		(0x60)
++#define EMIF4_0_ZQ_CONFIG		(0xC8)
++#define EMIF4_0_DDR_PHY_CTRL_1		(0xE4)
++#define EMIF4_0_DDR_PHY_CTRL_1_SHADOW	(0xE8)
+ 
+ #define SELF_REFRESH_ENABLE(m)		(0x2 << 8 | (m << 4))
+ #define SELF_REFRESH_DISABLE		(0x0 << 8)
+-- 
+1.7.7.6
+
recipes-kernel/linux/linux-ti33x-psp-3.2/psp/0002-ARM-OMAP-AM33XX-PM-Get-rid-of-hardcoded-resume-addre.patch new file +99 -0

99 lines not on this page · raw message

recipes-kernel/linux/linux-ti33x-psp-3.2/psp/0003-ARM-OMAP-AM33XX-PM-Skip-DDR-PHY-reconfiguration-in-r.patch new file +397 -0

397 lines not on this page · raw message

recipes-kernel/linux/linux-ti33x-psp-3.2/psp/0004-ARM-OMAP-AM33XX-PM-Save-and-restore-EMIF-registers.patch new file +241 -0

241 lines not on this page · raw message

recipes-kernel/linux/linux-ti33x-psp-3.2/psp/0005-ARM-OMAP-AM33XX-PM-Wait-correctly-for-the-PLLs-to-re.patch new file +37 -0
new file mode 100644
index 0000000..a8db01e
@@ -0,0 +1,37 @@
+From a7cfe5e7b86ebba4aa184b2612c4ecb70a01aa02 Mon Sep 17 00:00:00 2001
+From: "Satyanarayana, Sandhya" <[email protected]>
+Date: Tue, 22 May 2012 12:33:20 +0530
+Subject: [PATCH 05/18] ARM: OMAP: AM33XX: PM: Wait correctly for the PLLs to
+ relock in the sleep code
+
+The PLL relock code was incorrectly exiting the loop
+before the PLLs relock. Since the PLLs relock within
+a couple of A8 assembly instruction execution this went
+unnoticed till now. The issue was noticed when validating
+the abort path of the suspend process wherein the
+incorrect check for PLL relock resulted in a lockup.
+
+Signed-off-by: Satyanarayana, Sandhya <[email protected]>
+Signed-off-by: Vaibhav Bedia <[email protected]>
+---
+ arch/arm/mach-omap2/sleep33xx.S |    4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/arch/arm/mach-omap2/sleep33xx.S b/arch/arm/mach-omap2/sleep33xx.S
+index b7a1612..79a9e39 100644
+--- a/arch/arm/mach-omap2/sleep33xx.S
++++ b/arch/arm/mach-omap2/sleep33xx.S
+@@ -61,8 +61,8 @@ pll_lock_\name:
+ 	ldr	r0, \idlest_addr
+ wait_pll_lock_\name:
+ 	ldr	r1, [r0]
+-	tst	r1, #0x1
+-	bne	wait_pll_lock_\name
++	ands	r1, #0x1
++	beq	wait_pll_lock_\name
+ 	.endm
+ 
+ 	/* EMIF config for low power mode */
+-- 
+1.7.7.6
+
recipes-kernel/linux/linux-ti33x-psp-3.2/psp/0006-ARM-OMAP-AM33XX-PM-Restore-the-PLLs-to-pre-suspend-s.patch new file +139 -0

139 lines not on this page · raw message

recipes-kernel/linux/linux-ti33x-psp-3.2/psp/0007-ARM-OMAP-PM-AM33XX-Update-the-sleep-code-to-handle-D.patch new file +150 -0

150 lines not on this page · raw message

recipes-kernel/linux/linux-ti33x-psp-3.2/psp/0008-usb-musb-update-babble-workaround-fix.patch new file +168 -0

168 lines not on this page · raw message

recipes-kernel/linux/linux-ti33x-psp-3.2/psp/0009-usb-musb-ti81xx-print-the-usbss-revision-id-during-i.patch new file +29 -0
new file mode 100644
index 0000000..fce35bc
@@ -0,0 +1,29 @@
+From 9a362c5b759686f056070b6cddfc7405782464a9 Mon Sep 17 00:00:00 2001
+From: Ajay Kumar Gupta <[email protected]>
+Date: Wed, 23 May 2012 15:32:37 +0530
+Subject: [PATCH 09/18] usb: musb: ti81xx: print the usbss revision id during
+ init
+
+This is to identify the id which can help in debugging.
+
+Signed-off-by: Ravi B <[email protected]>
+---
+ drivers/usb/musb/ti81xx.c |    2 ++
+ 1 files changed, 2 insertions(+), 0 deletions(-)
+
+diff --git a/drivers/usb/musb/ti81xx.c b/drivers/usb/musb/ti81xx.c
+index e3cf38b..f7b2f62 100644
+--- a/drivers/usb/musb/ti81xx.c
++++ b/drivers/usb/musb/ti81xx.c
+@@ -1069,6 +1069,8 @@ int ti81xx_musb_init(struct musb *musb)
+ 	if (!rev)
+ 		return -ENODEV;
+ 
++	pr_info("MUSB%d controller's USBSS revision = %08x\n", musb->id, rev);
++
+ 	if (is_host_enabled(musb))
+ 		setup_timer(&musb->otg_workaround, otg_timer,
+ 					(unsigned long) musb);
+-- 
+1.7.7.6
+
recipes-kernel/linux/linux-ti33x-psp-3.2/psp/0010-usb-musb-cppi41-enable-txfifo-empty-interrupt-logic.patch new file +425 -0

425 lines not on this page · raw message

recipes-kernel/linux/linux-ti33x-psp-3.2/psp/0011-usb-musb-host-Flush-txfifo-only-if-TxPktRdy-bit-set.patch new file +57 -0

57 lines not on this page · raw message

recipes-kernel/linux/linux-ti33x-psp-3.2/psp/0012-usb-musb-cppi41-use-dsb-to-make-sure-PDs-are-updated.patch new file +43 -0

43 lines not on this page · raw message

recipes-kernel/linux/linux-ti33x-psp-3.2/psp/0013-usb-musb-cppi41-fix-zero-byte-OUT-issue.patch new file +46 -0

46 lines not on this page · raw message

recipes-kernel/linux/linux-ti33x-psp-3.2/psp/0014-usb-musb-host-fix-for-urb-error-handling.patch new file +66 -0

66 lines not on this page · raw message

recipes-kernel/linux/linux-ti33x-psp-3.2/psp/0015-usb-musb-cppi41-txdma-flushfifo-fixes-during-channel.patch new file +50 -0

50 lines not on this page · raw message

recipes-kernel/linux/linux-ti33x-psp-3.2/psp/0016-usb-musb-cppi41-tx-dma-completion-fixes.patch new file +41 -0

41 lines not on this page · raw message

recipes-kernel/linux/linux-ti33x-psp-3.2/psp/0017-usb-musb-host-Flush-RxFIFO-only-when-RxPktRdy-is-set.patch new file +30 -0
new file mode 100644
index 0000000..c291207
@@ -0,0 +1,30 @@
+From c336629a155593e443ba21a0734b3c519a61e560 Mon Sep 17 00:00:00 2001
+From: Ajay Kumar Gupta <[email protected]>
+Date: Thu, 24 May 2012 16:31:27 +0530
+Subject: [PATCH 17/18] usb: musb: host: Flush RxFIFO only when RxPktRdy is
+ set
+
+This need to be done as per mentor core documentations.
+
+Signed-off-by: Ajay Kumar Gupta <[email protected]>
+---
+ drivers/usb/musb/musb_host.c |    3 ++-
+ 1 files changed, 2 insertions(+), 1 deletions(-)
+
+diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c
+index 13520ee..f56fde2 100644
+--- a/drivers/usb/musb/musb_host.c
++++ b/drivers/usb/musb/musb_host.c
+@@ -507,7 +507,8 @@ static u16 musb_h_flush_rxfifo(struct musb_hw_ep *hw_ep, u16 csr)
+ 	 * ignore dma (various models),
+ 	 * leave toggle alone (may not have been saved yet)
+ 	 */
+-	csr |= MUSB_RXCSR_FLUSHFIFO | MUSB_RXCSR_RXPKTRDY;
++	if (csr & MUSB_RXCSR_RXPKTRDY)
++		csr |= MUSB_RXCSR_FLUSHFIFO | MUSB_RXCSR_RXPKTRDY;
+ 	csr &= ~(MUSB_RXCSR_H_REQPKT
+ 		| MUSB_RXCSR_H_AUTOREQ
+ 		| MUSB_RXCSR_AUTOCLEAR);
+-- 
+1.7.7.6
+
recipes-kernel/linux/linux-ti33x-psp-3.2/psp/0018-usb-musb-ti81xx-fix-role-switching-issue.patch new file +65 -0

65 lines not on this page · raw message

recipes-kernel/linux/linux-ti33x-psp_3.2.bb +19 -1
index f279b24..e51de2a 100644
@@ -15,7 +15,7 @@ PV = "${@base_contains('DISTRO_FEATURES', 'tipspkernel', "3.2", "3.2.18", d)}"
 
 BRANCH = "v3.2-staging"
 SRCREV = "720e07b4c1f687b61b147b31c698cb6816d72f01"
-MACHINE_KERNEL_PR_append = "g+gitr${SRCREV}"
+MACHINE_KERNEL_PR_append = "h+gitr${SRCREV}"
 
 COMPATIBLE_MACHINE = "(ti33x)"
 
@@ -38,6 +38,24 @@ PATCHES_OVER_PSP = " \
 	file://usb/0004-usb-gadget-udc-core-fix-asymmetric-calls-in-remove_d.patch \
 	file://usb/0005-usb-gadget-udc-core-fix-wrong-call-order.patch \
 	file://usb/0006-usb-gadget-udc-core-fix-incompatibility-with-dummy-h.patch \
+	file://psp/0001-ARM-OMAP-AM33XX-Add-missing-EMIF-register-offsets.patch \
+	file://psp/0002-ARM-OMAP-AM33XX-PM-Get-rid-of-hardcoded-resume-addre.patch \
+	file://psp/0003-ARM-OMAP-AM33XX-PM-Skip-DDR-PHY-reconfiguration-in-r.patch \
+	file://psp/0004-ARM-OMAP-AM33XX-PM-Save-and-restore-EMIF-registers.patch \
+	file://psp/0005-ARM-OMAP-AM33XX-PM-Wait-correctly-for-the-PLLs-to-re.patch \
+	file://psp/0006-ARM-OMAP-AM33XX-PM-Restore-the-PLLs-to-pre-suspend-s.patch \
+	file://psp/0007-ARM-OMAP-PM-AM33XX-Update-the-sleep-code-to-handle-D.patch \
+	file://psp/0008-usb-musb-update-babble-workaround-fix.patch \
+	file://psp/0009-usb-musb-ti81xx-print-the-usbss-revision-id-during-i.patch \
+	file://psp/0010-usb-musb-cppi41-enable-txfifo-empty-interrupt-logic.patch \
+	file://psp/0011-usb-musb-host-Flush-txfifo-only-if-TxPktRdy-bit-set.patch \
+	file://psp/0012-usb-musb-cppi41-use-dsb-to-make-sure-PDs-are-updated.patch \
+	file://psp/0013-usb-musb-cppi41-fix-zero-byte-OUT-issue.patch \
+	file://psp/0014-usb-musb-host-fix-for-urb-error-handling.patch \
+	file://psp/0015-usb-musb-cppi41-txdma-flushfifo-fixes-during-channel.patch \
+	file://psp/0016-usb-musb-cppi41-tx-dma-completion-fixes.patch \
+	file://psp/0017-usb-musb-host-Flush-RxFIFO-only-when-RxPktRdy-is-set.patch \
+	file://psp/0018-usb-musb-ti81xx-fix-role-switching-issue.patch \
 	file://3.2.1/0001-MAINTAINERS-stable-Update-address.patch \
 	file://3.2.1/0002-Documentation-Update-stable-address.patch \
 	file://3.2.1/0003-firmware-Fix-an-oops-on-reading-fw_priv-fw-in-sysfs-.patch \
Signature · 1 line
1.7.10
author
#4 lore raw

PATCH v2 5/7 beaglebone-capes: add support for 4.3" LCD cape

In reply to Koen Kooi
---
 recipes-ti/beagleboard/beaglebone-capes.bb           |    2 +-
 recipes-ti/beagleboard/beaglebone-capes/cape-stop.sh |    3 +++
 recipes-ti/beagleboard/beaglebone-capes/cape.sh      |    4 ++++
 3 files changed, 8 insertions(+), 1 deletion(-)
recipes-ti/beagleboard/beaglebone-capes.bb +1 -1
index f128924..2a9f1fb 100644
@@ -3,7 +3,7 @@ DESCRIPTION = "Userspace setup for beaglebone capes"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
 
-PR = "r1"
+PR = "r2"
 
 inherit allarch
 
recipes-ti/beagleboard/beaglebone-capes/cape-stop.sh +3 -0
index a08498d..4950017 100755
@@ -5,6 +5,9 @@ for eeprom in /sys/bus/i2c/devices/3-005*/eeprom ; do
 		"BB-BONE-LCD3-01.")
 				echo "Turning off backlight for LCD3 cape"
 				i2cset -f -y 1 0x24 0x07 0x00;;
+		"BB-BONE-LCD4-01.")
+				echo "Turning off backlight for LCD3 cape"
+				i2cset -f -y 1 0x24 0x07 0x00;;
 		*)
 				echo "unknown cape: $PARTNUMBER";;
 	esac
recipes-ti/beagleboard/beaglebone-capes/cape.sh +4 -0
index 69accff..61240a5 100755
@@ -6,6 +6,10 @@ for eeprom in /sys/bus/i2c/devices/3-005*/eeprom ; do
 				echo "Turning on backlight for LCD3 cape"
 				i2cset -f -y 1 0x24 0x07 0x09
 				i2cset -f -y 1 0x24 0x08 0x60;;
+		"BB-BONE-LCD4-01.")
+				echo "Turning on backlight for LCD4 cape"
+				i2cset -f -y 1 0x24 0x07 0x09
+				i2cset -f -y 1 0x24 0x08 0x60;;
 		*)
 				echo "unknown cape: $PARTNUMBER";;
 	esac
Signature · 1 line
1.7.10
author
#5 lore raw

PATCH v2 6/7 beaglebone-capes: add support for weatherstation cape

In reply to Koen Kooi
---
 recipes-ti/beagleboard/beaglebone-capes.bb      |    2 +-
 recipes-ti/beagleboard/beaglebone-capes/cape.sh |    6 ++++++
 2 files changed, 7 insertions(+), 1 deletion(-)
recipes-ti/beagleboard/beaglebone-capes.bb +1 -1
index 2a9f1fb..b463a89 100644
@@ -3,7 +3,7 @@ DESCRIPTION = "Userspace setup for beaglebone capes"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
 
-PR = "r2"
+PR = "r3"
 
 inherit allarch
 
recipes-ti/beagleboard/beaglebone-capes/cape.sh +6 -0
index 61240a5..566cdf5 100755
@@ -10,6 +10,12 @@ for eeprom in /sys/bus/i2c/devices/3-005*/eeprom ; do
 				echo "Turning on backlight for LCD4 cape"
 				i2cset -f -y 1 0x24 0x07 0x09
 				i2cset -f -y 1 0x24 0x08 0x60;;
+		"BB-BONE-WTHR-01.")
+				echo "Initializing I2C devices"
+				echo sht21 0x40 > /sys/class/i2c-adapter/i2c-3/new_device
+				echo bmp085 0x77 > /sys/class/i2c-adapter/i2c-3/new_device
+				echo tsl2550 0x39 > /sys/class/i2c-adapter/i2c-3/new_device
+				echo 1 > /sys/bus/i2c/devices/3-0039/operating_mode;;
 		*)
 				echo "unknown cape: $PARTNUMBER";;
 	esac
Signature · 1 line
1.7.10
author
#6 lore raw

PATCH v2 7/7 linux-ti33x-psp 3.2: turn on CONFIG_USB_SUSPEND to fix usb mass storage

In reply to Koen Kooi

Many thanks to Arkadiusz Karas <[email protected]> for figuring that out and sharing the info.

---
 recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/defconfig |    2 +-
 recipes-kernel/linux/linux-ti33x-psp_3.2.bb                   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/defconfig +1 -1
index f88be14..692d71a 100644
@@ -2569,7 +2569,7 @@ CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
 CONFIG_USB_DEVICEFS=y
 CONFIG_USB_DEVICE_CLASS=y
 # CONFIG_USB_DYNAMIC_MINORS is not set
-# CONFIG_USB_SUSPEND is not set
+CONFIG_USB_SUSPEND=y
 # CONFIG_USB_OTG_WHITELIST is not set
 # CONFIG_USB_OTG_BLACKLIST_HUB is not set
 # CONFIG_USB_DWC3 is not set
recipes-kernel/linux/linux-ti33x-psp_3.2.bb +1 -1
index e51de2a..3243998 100644
@@ -15,7 +15,7 @@ PV = "${@base_contains('DISTRO_FEATURES', 'tipspkernel', "3.2", "3.2.18", d)}"
 
 BRANCH = "v3.2-staging"
 SRCREV = "720e07b4c1f687b61b147b31c698cb6816d72f01"
-MACHINE_KERNEL_PR_append = "h+gitr${SRCREV}"
+MACHINE_KERNEL_PR_append = "i+gitr${SRCREV}"
 
 COMPATIBLE_MACHINE = "(ti33x)"
 
Signature · 1 line
1.7.10