Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965523Ab2J3S7N (ORCPT ); Tue, 30 Oct 2012 14:59:13 -0400 Received: from li42-95.members.linode.com ([209.123.162.95]:40517 "EHLO li42-95.members.linode.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932088Ab2J3S7J (ORCPT ); Tue, 30 Oct 2012 14:59:09 -0400 From: Pantelis Antoniou To: Tony Lindgren Cc: Pantelis Antoniou , linux-arm-kernel@lists.infradead.org, devicetree-discuss@lists.ozlabs.org, linux-kernel@vger.kernel.org, Koen Kooi , Matt Porter , Russ Dill , linux-omap@vger.kernel.org Subject: [RFC 0/7] Capebus; a bus for SoCs using simple expansion connectors Date: Wed, 31 Oct 2012 18:52:06 +0200 Message-Id: <1351702333-8456-1-git-send-email-panto@antoniou-consulting.com> X-Mailer: git-send-email 1.7.12 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 5411 Lines: 106 Capebus is created to address the problem of many SoCs that can provide a multitude of hardware interfaces but in order to keep costs down the main boards only support a limited number of them. The rest are typically brought out to pin connectors on to which other boards, named capes are connected and allow those peripherals to be used. These capes connect to the SoC interfaces but might also contain various other parts that may need some kind of driver to work. Since SoCs have limited pins and pin muxing options, not all capes can work together so some kind of resource tracking (at least for the pins in use) is required. Before capebus all of this took place in the board support file, and frankly for boards with too many capes it was becoming unmanageable. Capebus provides a virtual bus, which along with a board specific controller, cape drivers can be written using the standard Linux device model. The core capebus infrastructure is not depended on any specific board. However capebus needs a board controller to provide services to the cape devices it controls. Services like addressing and resource reservation are provided by the board controller. Capebus at the moment only support TI's Beaglebone platform. This RFC introduces the core concept; most supporting patches have been posted to the relevant places. If you have a beaglebone and want to check it out, you can do so at: git://github.com/pantoniou/linux-bbxm.git branch capebus-v3 Pantelis Antoniou (7): capebus: Core capebus support capebus: Add beaglebone board support capebus: Beaglebone generic cape support capebus: Beaglebone geiger cape support capebus: Beaglebone capebus DT update capebus: Document DT bindings capebus: Documentation; capebus-summary Documentation/capebus/capebus-summary | 40 + .../capebus/bone-capebus-slot-override.txt | 28 + .../devicetree/bindings/capebus/bone-capebus.txt | 50 ++ .../bindings/capebus/bone-geiger-cape.txt | 78 ++ .../bindings/capebus/bone-generic-cape.txt | 97 +++ .../devicetree/bindings/capebus/da8xx-dt.txt | 31 + .../devicetree/bindings/capebus/i2c-dt.txt | 42 + .../devicetree/bindings/capebus/spi-dt.txt | 37 + .../devicetree/bindings/capebus/ti-tscadc-dt.txt | 34 + arch/arm/boot/dts/am335x-bone-common.dtsi | 689 ++++++++++++++- drivers/Kconfig | 2 + drivers/Makefile | 3 + drivers/capebus/Kconfig | 17 + drivers/capebus/Makefile | 8 + drivers/capebus/boards/Kconfig | 6 + drivers/capebus/boards/Makefile | 3 + drivers/capebus/boards/capebus-bone-generic.c | 237 ++++++ drivers/capebus/boards/capebus-bone-pdevs.c | 602 +++++++++++++ drivers/capebus/boards/capebus-bone.c | 931 +++++++++++++++++++++ drivers/capebus/capebus-driver.c | 608 ++++++++++++++ drivers/capebus/capebus-probe.c | 320 +++++++ drivers/capebus/capebus-sysfs.c | 52 ++ drivers/capebus/capes/Kconfig | 13 + drivers/capebus/capes/Makefile | 2 + drivers/capebus/capes/bone-geiger-cape.c | 506 +++++++++++ drivers/capebus/capes/bone-generic-cape.c | 96 +++ include/linux/capebus.h | 298 +++++++ include/linux/capebus/capebus-bone.h | 120 +++ 28 files changed, 4920 insertions(+), 30 deletions(-) create mode 100644 Documentation/capebus/capebus-summary create mode 100644 Documentation/devicetree/bindings/capebus/bone-capebus-slot-override.txt create mode 100644 Documentation/devicetree/bindings/capebus/bone-capebus.txt create mode 100644 Documentation/devicetree/bindings/capebus/bone-geiger-cape.txt create mode 100644 Documentation/devicetree/bindings/capebus/bone-generic-cape.txt create mode 100644 Documentation/devicetree/bindings/capebus/da8xx-dt.txt create mode 100644 Documentation/devicetree/bindings/capebus/i2c-dt.txt create mode 100644 Documentation/devicetree/bindings/capebus/spi-dt.txt create mode 100644 Documentation/devicetree/bindings/capebus/ti-tscadc-dt.txt create mode 100644 drivers/capebus/Kconfig create mode 100644 drivers/capebus/Makefile create mode 100644 drivers/capebus/boards/Kconfig create mode 100644 drivers/capebus/boards/Makefile create mode 100644 drivers/capebus/boards/capebus-bone-generic.c create mode 100644 drivers/capebus/boards/capebus-bone-pdevs.c create mode 100644 drivers/capebus/boards/capebus-bone.c create mode 100644 drivers/capebus/capebus-driver.c create mode 100644 drivers/capebus/capebus-probe.c create mode 100644 drivers/capebus/capebus-sysfs.c create mode 100644 drivers/capebus/capes/Kconfig create mode 100644 drivers/capebus/capes/Makefile create mode 100644 drivers/capebus/capes/bone-geiger-cape.c create mode 100644 drivers/capebus/capes/bone-generic-cape.c create mode 100644 include/linux/capebus.h create mode 100644 include/linux/capebus/capebus-bone.h -- 1.7.12 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/