From 72643c01d84163c85e8b65aaa7e963e67a06a7ed Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Tue, 20 Nov 2012 17:20:40 +0100 Subject: [PATCH] 3.7: import new capebus patches Signed-off-by: Koen Kooi --- ...01-i2c-EEPROM-Export-memory-accessor.patch | 4 +- ..._hwmod_lookup-omap_device_build-omap.patch | 4 +- .../capebus/0003-gpio-keys-Pinctrl-fy.patch | 4 +- ...lacement-elsewhere-than-parent-mfd-d.patch | 4 +- .../0005-pwm-export-of_pwm_request.patch | 4 +- ...c-Export-capability-to-probe-devices.patch | 4 +- .../0007-pwm-backlight-Pinctrl-fy.patch | 4 +- ...Export-OF-interfaces-for-capebus-use.patch | 4 +- patches/capebus/0009-w1-gpio-Pinctrl-fy.patch | 4 +- ...-w1-gpio-Simplify-get-rid-of-defines.patch | 4 +- .../0011-arm-dt-Enable-DT-proc-updates.patch | 4 +- ...d-a-uImage-with-dtb-already-appended.patch | 4 +- ...e-a-shared-dtsi-for-beaglebone-based.patch | 4 +- ...14-beaglebone-enable-emmc-for-bonelt.patch | 4 +- ...xx-dt-Create-da8xx-DT-adapter-device.patch | 236 +++++++++ ...reate-ti-tscadc-dt-DT-adapter-device.patch | 192 +++++++ ...> 0017-capebus-Core-capebus-support.patch} | 17 +- ...apebus-Add-beaglebone-board-support.patch} | 299 +---------- ...bus-Beaglebone-generic-cape-support.patch} | 43 +- ...ebus-Beaglebone-geiger-cape-support.patch} | 38 +- ...apebus-Beaglebone-capebus-DT-update.patch} | 8 +- .../0022-capebus-Document-DT-bindings.patch | 475 ++++++++++++++++++ ...apebus-Documentation-capebus-summary.patch | 62 +++ ...e-Update-default-config-for-capebus.patch} | 5 +- ...-capebus-Geiger-Cape-config-bugfixs.patch} | 8 +- 25 files changed, 1084 insertions(+), 355 deletions(-) create mode 100644 patches/capebus/0015-da8xx-dt-Create-da8xx-DT-adapter-device.patch create mode 100644 patches/capebus/0016-ti-tscadc-dt-Create-ti-tscadc-dt-DT-adapter-device.patch rename patches/capebus/{0015-capebus-Core-capebus-support.patch => 0017-capebus-Core-capebus-support.patch} (98%) rename patches/capebus/{0016-capebus-Add-beaglebone-board-support.patch => 0018-capebus-Add-beaglebone-board-support.patch} (85%) rename patches/capebus/{0017-capebus-Beaglebone-generic-board.patch => 0019-capebus-Beaglebone-generic-cape-support.patch} (78%) rename patches/capebus/{0018-capebus-Add-beaglebone-geiger-cape.patch => 0020-capebus-Beaglebone-geiger-cape-support.patch} (91%) rename patches/capebus/{0019-capebus-Beaglebone-capebus-DT-update.patch => 0021-capebus-Beaglebone-capebus-DT-update.patch} (98%) create mode 100644 patches/capebus/0022-capebus-Document-DT-bindings.patch create mode 100644 patches/capebus/0023-capebus-Documentation-capebus-summary.patch rename patches/capebus/{0020-beaglebone-Update-default-config-for-capebus.patch => 0024-beaglebone-Update-default-config-for-capebus.patch} (99%) rename patches/capebus/{0021-capebus-Geiger-Cape-config-bugfixs.patch => 0025-capebus-Geiger-Cape-config-bugfixs.patch} (79%) diff --git a/patches/capebus/0001-i2c-EEPROM-Export-memory-accessor.patch b/patches/capebus/0001-i2c-EEPROM-Export-memory-accessor.patch index 3742df39..13958f5a 100644 --- a/patches/capebus/0001-i2c-EEPROM-Export-memory-accessor.patch +++ b/patches/capebus/0001-i2c-EEPROM-Export-memory-accessor.patch @@ -1,7 +1,7 @@ -From d5fbd4d6acac21aabae1e1820565c72f767d06f7 Mon Sep 17 00:00:00 2001 +From f815a8a203c045f7e40f04851a75ed7849f6e720 Mon Sep 17 00:00:00 2001 From: Pantelis Antoniou Date: Sat, 13 Oct 2012 16:06:48 +0300 -Subject: [PATCH 01/21] i2c-EEPROM: Export memory accessor +Subject: [PATCH 01/25] i2c-EEPROM: Export memory accessor Various platforms need access to the EEPROM in other places besides their platform registration callbacks. diff --git a/patches/capebus/0002-omap-Export-omap_hwmod_lookup-omap_device_build-omap.patch b/patches/capebus/0002-omap-Export-omap_hwmod_lookup-omap_device_build-omap.patch index 594e8f01..63f8f3d5 100644 --- a/patches/capebus/0002-omap-Export-omap_hwmod_lookup-omap_device_build-omap.patch +++ b/patches/capebus/0002-omap-Export-omap_hwmod_lookup-omap_device_build-omap.patch @@ -1,7 +1,7 @@ -From 402e0aa80c64c2ddc0b39adf733fda3105a9ebb5 Mon Sep 17 00:00:00 2001 +From 7c077538bb2fe95173d9f986cefe96bff9a37ae7 Mon Sep 17 00:00:00 2001 From: Pantelis Antoniou Date: Sat, 13 Oct 2012 16:34:44 +0300 -Subject: [PATCH 02/21] omap: Export +Subject: [PATCH 02/25] omap: Export omap_hwmod_lookup/omap_device_build/omap_device_build_ss These functions can be used just fine by modules, there's no need not diff --git a/patches/capebus/0003-gpio-keys-Pinctrl-fy.patch b/patches/capebus/0003-gpio-keys-Pinctrl-fy.patch index 80558eb1..ca1c0755 100644 --- a/patches/capebus/0003-gpio-keys-Pinctrl-fy.patch +++ b/patches/capebus/0003-gpio-keys-Pinctrl-fy.patch @@ -1,7 +1,7 @@ -From b2be8368eacadababf0f8c7b3948289b0e0ea33a Mon Sep 17 00:00:00 2001 +From 5ceb5ea1e8e57004cb1ddba79b4193e9f507e7b5 Mon Sep 17 00:00:00 2001 From: Pantelis Antoniou Date: Wed, 17 Oct 2012 20:17:36 +0300 -Subject: [PATCH 03/21] gpio-keys: Pinctrl-fy +Subject: [PATCH 03/25] gpio-keys: Pinctrl-fy --- drivers/input/keyboard/gpio_keys.c | 6 ++++++ diff --git a/patches/capebus/0004-tps65217-Allow-placement-elsewhere-than-parent-mfd-d.patch b/patches/capebus/0004-tps65217-Allow-placement-elsewhere-than-parent-mfd-d.patch index dff75d04..4c2621cd 100644 --- a/patches/capebus/0004-tps65217-Allow-placement-elsewhere-than-parent-mfd-d.patch +++ b/patches/capebus/0004-tps65217-Allow-placement-elsewhere-than-parent-mfd-d.patch @@ -1,7 +1,7 @@ -From 840afa1b249d87f29034e84ff793e43dba3ba3a7 Mon Sep 17 00:00:00 2001 +From 79a7e230aecc97f38dc3505eea4557c9bbfeb73c Mon Sep 17 00:00:00 2001 From: Pantelis Antoniou Date: Wed, 17 Oct 2012 20:17:57 +0300 -Subject: [PATCH 04/21] tps65217: Allow placement elsewhere than parent mfd +Subject: [PATCH 04/25] tps65217: Allow placement elsewhere than parent mfd device. The current code expect the configuration of the backlight to stay diff --git a/patches/capebus/0005-pwm-export-of_pwm_request.patch b/patches/capebus/0005-pwm-export-of_pwm_request.patch index 074ffb45..cb829f87 100644 --- a/patches/capebus/0005-pwm-export-of_pwm_request.patch +++ b/patches/capebus/0005-pwm-export-of_pwm_request.patch @@ -1,7 +1,7 @@ -From f9b4e9164af73f01eb25cac910ef5c97b2e29096 Mon Sep 17 00:00:00 2001 +From 5b049ca7257e0a626d8b0dba13d16b9b29e872ff Mon Sep 17 00:00:00 2001 From: Pantelis Antoniou Date: Fri, 19 Oct 2012 10:38:00 +0300 -Subject: [PATCH 05/21] pwm: export of_pwm_request +Subject: [PATCH 05/25] pwm: export of_pwm_request No need to hide this, it's useful. --- diff --git a/patches/capebus/0006-i2c-Export-capability-to-probe-devices.patch b/patches/capebus/0006-i2c-Export-capability-to-probe-devices.patch index 3a78495e..938ee572 100644 --- a/patches/capebus/0006-i2c-Export-capability-to-probe-devices.patch +++ b/patches/capebus/0006-i2c-Export-capability-to-probe-devices.patch @@ -1,7 +1,7 @@ -From 71459bed48859ab510971b1224b57d3b24de14e1 Mon Sep 17 00:00:00 2001 +From b4acef0dc7425b2019ff36261caf7ff45b200916 Mon Sep 17 00:00:00 2001 From: Pantelis Antoniou Date: Sat, 20 Oct 2012 14:08:17 +0300 -Subject: [PATCH 06/21] i2c: Export capability to probe devices +Subject: [PATCH 06/25] i2c: Export capability to probe devices Probe devices for a node other that the adapter node. --- diff --git a/patches/capebus/0007-pwm-backlight-Pinctrl-fy.patch b/patches/capebus/0007-pwm-backlight-Pinctrl-fy.patch index 271a477c..7c90a563 100644 --- a/patches/capebus/0007-pwm-backlight-Pinctrl-fy.patch +++ b/patches/capebus/0007-pwm-backlight-Pinctrl-fy.patch @@ -1,7 +1,7 @@ -From 79cb89df4af29215f91a278696552e782eb86703 Mon Sep 17 00:00:00 2001 +From 1d774ca27c1c4de7e010a47305eebd3fe7b2837e Mon Sep 17 00:00:00 2001 From: Pantelis Antoniou Date: Tue, 23 Oct 2012 11:48:58 +0300 -Subject: [PATCH 07/21] pwm-backlight: Pinctrl-fy +Subject: [PATCH 07/25] pwm-backlight: Pinctrl-fy --- drivers/video/backlight/pwm_bl.c | 7 +++++++ diff --git a/patches/capebus/0008-spi-Export-OF-interfaces-for-capebus-use.patch b/patches/capebus/0008-spi-Export-OF-interfaces-for-capebus-use.patch index 475659df..83647151 100644 --- a/patches/capebus/0008-spi-Export-OF-interfaces-for-capebus-use.patch +++ b/patches/capebus/0008-spi-Export-OF-interfaces-for-capebus-use.patch @@ -1,7 +1,7 @@ -From 3cf9cd9b8ec4e09a6fed5cd733c28ec6caf4f7f4 Mon Sep 17 00:00:00 2001 +From 4a58d974e3e45fd294466fa29b83aeed6f4c33f1 Mon Sep 17 00:00:00 2001 From: Pantelis Antoniou Date: Tue, 23 Oct 2012 13:23:14 +0300 -Subject: [PATCH 08/21] spi: Export OF interfaces for capebus use. +Subject: [PATCH 08/25] spi: Export OF interfaces for capebus use. --- drivers/spi/spi.c | 31 +++++++++++++++++++++++-------- diff --git a/patches/capebus/0009-w1-gpio-Pinctrl-fy.patch b/patches/capebus/0009-w1-gpio-Pinctrl-fy.patch index b45d76a5..f83c29bd 100644 --- a/patches/capebus/0009-w1-gpio-Pinctrl-fy.patch +++ b/patches/capebus/0009-w1-gpio-Pinctrl-fy.patch @@ -1,7 +1,7 @@ -From 56425bf7ffe0f2629b7b3b7469eb9251d1483243 Mon Sep 17 00:00:00 2001 +From bfb3f0c421f2de41d7391a2502f8ecd36f67094a Mon Sep 17 00:00:00 2001 From: Pantelis Antoniou Date: Wed, 24 Oct 2012 09:54:37 +0300 -Subject: [PATCH 09/21] w1-gpio: Pinctrl-fy +Subject: [PATCH 09/25] w1-gpio: Pinctrl-fy --- drivers/w1/masters/w1-gpio.c | 7 +++++++ diff --git a/patches/capebus/0010-w1-gpio-Simplify-get-rid-of-defines.patch b/patches/capebus/0010-w1-gpio-Simplify-get-rid-of-defines.patch index 6fafc627..dd5bf146 100644 --- a/patches/capebus/0010-w1-gpio-Simplify-get-rid-of-defines.patch +++ b/patches/capebus/0010-w1-gpio-Simplify-get-rid-of-defines.patch @@ -1,7 +1,7 @@ -From a8acbf2b5eb81764f54612aed8cd078cb3789e2b Mon Sep 17 00:00:00 2001 +From f6627c0e9b946c7d40a516a90e3cd66cb5bece08 Mon Sep 17 00:00:00 2001 From: Pantelis Antoniou Date: Wed, 24 Oct 2012 16:49:53 +0300 -Subject: [PATCH 10/21] w1-gpio: Simplify & get rid of defines +Subject: [PATCH 10/25] w1-gpio: Simplify & get rid of defines --- drivers/w1/masters/w1-gpio.c | 58 ++++++++++++++++++----------------------- diff --git a/patches/capebus/0011-arm-dt-Enable-DT-proc-updates.patch b/patches/capebus/0011-arm-dt-Enable-DT-proc-updates.patch index 338afa9e..2af7cb30 100644 --- a/patches/capebus/0011-arm-dt-Enable-DT-proc-updates.patch +++ b/patches/capebus/0011-arm-dt-Enable-DT-proc-updates.patch @@ -1,7 +1,7 @@ -From 9c08abcbd0986d219a1e22257b74fdf0037d4936 Mon Sep 17 00:00:00 2001 +From 7c1a7bbbd55bd1b07abfa1749b55617d29e0b418 Mon Sep 17 00:00:00 2001 From: Pantelis Antoniou Date: Fri, 26 Oct 2012 16:11:46 +0300 -Subject: [PATCH 11/21] arm-dt: Enable DT proc updates. +Subject: [PATCH 11/25] arm-dt: Enable DT proc updates. --- arch/arm/include/asm/prom.h | 2 ++ diff --git a/patches/capebus/0012-ARM-CUSTOM-Build-a-uImage-with-dtb-already-appended.patch b/patches/capebus/0012-ARM-CUSTOM-Build-a-uImage-with-dtb-already-appended.patch index 47572f46..9274f83c 100644 --- a/patches/capebus/0012-ARM-CUSTOM-Build-a-uImage-with-dtb-already-appended.patch +++ b/patches/capebus/0012-ARM-CUSTOM-Build-a-uImage-with-dtb-already-appended.patch @@ -1,7 +1,7 @@ -From 91b32a07485b593eee468d9c4f9dd5e28024c0dd Mon Sep 17 00:00:00 2001 +From 5bf29791172a5681001bd8ccae5c5607a48b4ef9 Mon Sep 17 00:00:00 2001 From: Grant Likely Date: Tue, 2 Aug 2011 15:30:09 +0100 -Subject: [PATCH 12/21] ARM: CUSTOM: Build a uImage with dtb already appended +Subject: [PATCH 12/25] ARM: CUSTOM: Build a uImage with dtb already appended Do not commit to mainline; this is a useful hack only for now. diff --git a/patches/capebus/0013-beaglebone-create-a-shared-dtsi-for-beaglebone-based.patch b/patches/capebus/0013-beaglebone-create-a-shared-dtsi-for-beaglebone-based.patch index 392ab0dc..2ff080e8 100644 --- a/patches/capebus/0013-beaglebone-create-a-shared-dtsi-for-beaglebone-based.patch +++ b/patches/capebus/0013-beaglebone-create-a-shared-dtsi-for-beaglebone-based.patch @@ -1,7 +1,7 @@ -From 48f84a261e4997ca2ce4139caaca15fbf127b4c1 Mon Sep 17 00:00:00 2001 +From 57b277e165e198e8ce078167dff3eb5806067371 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Tue, 30 Oct 2012 12:30:18 +0100 -Subject: [PATCH 13/21] beaglebone: create a shared dtsi for beaglebone based +Subject: [PATCH 13/25] beaglebone: create a shared dtsi for beaglebone based boards and add a new dts for bonelt Signed-off-by: Koen Kooi diff --git a/patches/capebus/0014-beaglebone-enable-emmc-for-bonelt.patch b/patches/capebus/0014-beaglebone-enable-emmc-for-bonelt.patch index b23759f5..bbbd6d1b 100644 --- a/patches/capebus/0014-beaglebone-enable-emmc-for-bonelt.patch +++ b/patches/capebus/0014-beaglebone-enable-emmc-for-bonelt.patch @@ -1,7 +1,7 @@ -From c812d3d90e68c81fd4c84f97746df6ebeb959b4a Mon Sep 17 00:00:00 2001 +From 17b3317ec784bf30450642cd324ecf584c9dff0e Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Wed, 24 Oct 2012 11:47:13 +0200 -Subject: [PATCH 14/21] beaglebone: enable emmc for bonelt +Subject: [PATCH 14/25] beaglebone: enable emmc for bonelt Signed-off-by: Koen Kooi --- diff --git a/patches/capebus/0015-da8xx-dt-Create-da8xx-DT-adapter-device.patch b/patches/capebus/0015-da8xx-dt-Create-da8xx-DT-adapter-device.patch new file mode 100644 index 00000000..2b0208bf --- /dev/null +++ b/patches/capebus/0015-da8xx-dt-Create-da8xx-DT-adapter-device.patch @@ -0,0 +1,236 @@ +From 9134d736dc803f90c4f571f78bfa09f9ce2b8fb0 Mon Sep 17 00:00:00 2001 +From: Pantelis Antoniou +Date: Thu, 1 Nov 2012 15:19:35 +0200 +Subject: [PATCH 15/25] da8xx-dt: Create da8xx DT adapter device + +omap_device is going private. + +Move the da8xx-dt adapter device to arch/arm/mach-omap2. + +Signed-off-by: Pantelis Antoniou +--- + arch/arm/mach-omap2/Makefile | 3 + + arch/arm/mach-omap2/da8xx-dt.c | 197 ++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 200 insertions(+), 0 deletions(-) + create mode 100644 arch/arm/mach-omap2/da8xx-dt.c + +diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile +index fe40d9e..3a9a0ff 100644 +--- a/arch/arm/mach-omap2/Makefile ++++ b/arch/arm/mach-omap2/Makefile +@@ -200,6 +200,9 @@ ifneq ($(CONFIG_DRM_OMAP),) + obj-y += drm.o + endif + ++# AM3XX Device Tree adapters for legacy drivers ++obj-$(CONFIG_SOC_AM33XX) += da8xx-dt.o ++ + # Specific board support + obj-$(CONFIG_MACH_OMAP_GENERIC) += board-generic.o + obj-$(CONFIG_MACH_OMAP_H4) += board-h4.o +diff --git a/arch/arm/mach-omap2/da8xx-dt.c b/arch/arm/mach-omap2/da8xx-dt.c +new file mode 100644 +index 0000000..d3c6f48 +--- /dev/null ++++ b/arch/arm/mach-omap2/da8xx-dt.c +@@ -0,0 +1,197 @@ ++/* ++ * DA8XX-DT: Device tree adapter using the legacy driver ++ * ++ * Copyright (C) 2012 Pantelis Antoniou ++ * Copyright (C) 2012 Texas Instruments Inc. ++ * ++ * This program is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program; if not, write to the Free Software ++ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ++ */ ++ ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include