From patchwork Mon Jun 30 22:09:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 4455191 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A3CA19F358 for ; Mon, 30 Jun 2014 22:12:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CC4C22034B for ; Mon, 30 Jun 2014 22:12:28 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DBCFF202FE for ; Mon, 30 Jun 2014 22:12:27 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1X1jmA-000568-8F; Mon, 30 Jun 2014 22:10:14 +0000 Received: from mail-ie0-f174.google.com ([209.85.223.174]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X1jm7-0003vb-DN for linux-arm-kernel@lists.infradead.org; Mon, 30 Jun 2014 22:10:11 +0000 Received: by mail-ie0-f174.google.com with SMTP id lx4so7176516iec.5 for ; Mon, 30 Jun 2014 15:09:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Q8pbIwCzF259O91YIk/SXPVEZtjv0ftlQcIt272feFs=; b=e7Z+jtrReUYh12RN4uZdjGMo+UIyCixpTPUofelZklogNc7cDTkOG9jYk5LBD2mZVK izREnrYpy6ryA1aIOGT4j9iZiAFgGfkcY/3euTnWjZGDxNQ5Hl0KjOjoDOE+orsEGI1m w7BLeyak/7vQV27nU9ML6JmPbrLHqCy47fWFmXWgefXDrgLYfXvgGteQarK3remK44/O 9/UuEOI2DpD825yPAa7rMoFCXyrlcXxalUXx44EloaW1tRhFYeBPoE8St957KC2St0Wh 3+Pf4hHYeh/eW0OZTXaZrevGCH6zx/Iua876cCkO4yjuZ57YpQWpe2EDgCwbB37X0N6A NY8g== X-Gm-Message-State: ALoCoQk+qbRGFW5UCTrnUSXqWmEXJE6PB5aKCAiC6kDMDeENtOCh4jpCXmii9m+vNaoBJCUVq9Pg X-Received: by 10.42.12.6 with SMTP id w6mr6205734icw.69.1404166189503; Mon, 30 Jun 2014 15:09:49 -0700 (PDT) Received: from localhost.localdomain (c-71-195-31-37.hsd1.mn.comcast.net. [71.195.31.37]) by mx.google.com with ESMTPSA id kb7sm28376183igb.7.2014.06.30.15.09.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 30 Jun 2014 15:09:48 -0700 (PDT) From: Alex Elder To: mporter@linaro.org, bcm@fixthebug.org, devicetree@vger.kernel.org, grant.likely@linaro.org, robh+dt@kernel.org Subject: [PATCH] devicetree: bindings: document Broadcom CPU enable method Date: Mon, 30 Jun 2014 17:09:45 -0500 Message-Id: <1404166185-4168-1-git-send-email-elder@linaro.org> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140630_151011_518677_3DDED511 X-CRM114-Status: GOOD ( 12.65 ) X-Spam-Score: -2.7 (--) Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Broadcom mobile SoCs use a ROM-implemented holding pen for controlled boot of secondary cores. A special register is used to communicate to the ROM that a secondary core should start executing kernel code. This enable method is currently used for members of the bcm281xx and bcm21664 SoC families. The use of an enable method also allows the SMP operation vector to be assigned as a result of device tree content for these SoCs. Signed-off-by: Alex Elder --- Notes: - This patch was previously posted as part of this series: https://lkml.org/lkml/2014/6/16/580 - The binding definition is now found in a separate file rather than embedding it in: Documentation/devicetree/bindings/arm/cpus.txt .../bindings/arm/bcm/brcm,bcm11351-cpu-method | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,bcm11351-cpu-method diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm11351-cpu-method b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm11351-cpu-method new file mode 100644 index 0000000..8240c02 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm11351-cpu-method @@ -0,0 +1,36 @@ +Broadcom Kona Family CPU Enable Method +-------------------------------------- +This binding defines the enable method used for starting secondary +CPUs in the following Broadcom SoCs: + BCM11130, BCM11140, BCM11351, BCM28145, BCM28155, BCM21664 + +The enable method is specified by defining the following required +properties in the "cpus" device tree node: + - enable-method = "brcm,bcm11351-cpu-method"; + - secondary-boot-reg = <...>; + +The secondary-boot-reg property is a u32 value that specifies the +physical address of the register used to request the ROM holding pen +code release a secondary CPU. The value written to the register is +formed by encoding the target CPU id into the low bits of the +physical start address it should jump to. + +Example: + cpus { + #address-cells = <1>; + #size-cells = <0>; + enable-method = "brcm,bcm11351-cpu-method"; + secondary-boot-reg = <0x3500417c>; + + cpu0: cpu@0 { + device_type = "cpu"; + compatible = "arm,cortex-a9"; + reg = <0>; + }; + + cpu1: cpu@1 { + device_type = "cpu"; + compatible = "arm,cortex-a9"; + reg = <1>; + }; + };