From: swarren@wwwdotorg.org (Stephen Warren)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] Add support for generic BCM SoC chipsets
Date: Thu, 08 Nov 2012 20:24:33 -0700 [thread overview]
Message-ID: <509C7771.9020400@wwwdotorg.org> (raw)
In-Reply-To: <1352391196-9984-1-git-send-email-csd@broadcom.com>
On 11/08/2012 09:13 AM, Christian Daudt wrote:
> In order to start upstreaming Broadcom SoC support, create
> a starting hierarchy, arch and dts files.
> The first support SoC family that is planned is the
> BCM281XX (BCM28145/28150/28155) family of dual A9 mobile SoC cores
> This code is just the skeleton code for get the machine upstreamed. It
> has been made MULTIPLATFORM compatible.
Christian,
Is the intent for this to support other BCM SoCs in the future, such as
the bcm2835 in the Raspberry Pi, and the mach-bcm476x which Domenico
Andreoli recently sent patches for? It'd be awesome if Broadcom could
provide MMC and USB drivers for the bcm2835 for example.
> arch/arm/boot/dts/capri-brt.dts | 32 +++++++++++
> arch/arm/boot/dts/capri.dtsi | 50 +++++++++++++++++
What does the name "capri" refer to? I assume it's a code-name for the
SoC/series. My inclination is that naming those files bcm28145.dtsi and
bcm28145-brt.dts (or 28150/28155 as appropriate) might be a little more
obvious to people unfamiliar with the code-names.
> diff --git a/arch/arm/boot/dts/capri-brt.dts b/arch/arm/boot/dts/capri-brt.dts
> +/ {
> + model = "Capri BRT board";
> + compatible = "bcm,capri";
The individual board file's compatible property should contain both a
board-specific value and the generic SoC value. This allows the SoC
support in the kernel to match on the generic SoC compatible value, yet
still allow the kernel to match the board-specific value in case any
quirks are required. For example,
compatible = "bcm,brt", "bcm,capri";
(assuming that "brt" is the full board name)
> + interrupt-parent = <&gic>;
That's already in capri.dtsi; there's no advantage to repeating it.
> + memory {
> + device_type = "memory";
That property already exists in skeleton.dtsi, which is included via
capri.dtsi.
> diff --git a/arch/arm/boot/dts/capri.dtsi b/arch/arm/boot/dts/capri.dtsi
> + gic: interrupt-controller at 3ff00100 {
> + compatible = "arm,cortex-a15-gic", "arm,cortex-a9-gic";
The commit description says it's an A9 not an A15.
> + uart at 3e000000 {
> + compatible = "snps,dw-apb-uart";
You probably want to include SoC-specific compatible values for all the
IP blocks too.
There need to be device tree bindings written to describe to contents of
all these device-tree files; see Documentation/devicetree/bindings/.
> diff --git a/arch/arm/mach-bcm/Kconfig b/arch/arm/mach-bcm/Kconfig
> +config ARCH_BCM
> + bool "Broadcom SoC" if ARCH_MULTI_V7
> + depends on MMU
> + select CPU_V7
> + select ARM_GIC
> + select GENERIC_GPIO
> + select GPIO_BCM
> + select ARCH_REQUIRE_GPIOLIB
> + select GENERIC_TIME
> + select GENERIC_CLOCKEVENTS
> + select TICK_ONESHOT
> + select ARM_ERRATA_754322
> + select ARM_ERRATA_764369 if SMP
> + select SPARSE_IRQ
Those select statements should be alphabetically sorted.
> diff --git a/arch/arm/mach-bcm/board_bcm.c b/arch/arm/mach-bcm/board_bcm.c
> +
> +
> +
> +
> +
Nit: A couple of instances of multiple newlines, but not a big deal.
next prev parent reply other threads:[~2012-11-09 3:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-08 16:13 [PATCH] Add support for generic BCM SoC chipsets Christian Daudt
2012-11-09 3:24 ` Stephen Warren [this message]
2012-11-09 7:49 ` Domenico Andreoli
2012-11-11 13:34 ` Christian Daudt
2012-11-11 21:38 ` Stephen Warren
2012-12-05 3:35 ` Stephen Warren
2012-12-05 8:36 ` Christian Daudt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=509C7771.9020400@wwwdotorg.org \
--to=swarren@wwwdotorg.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.