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: 32799 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f200.google.com (mail-vc0-f200.google.com [209.85.220.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E3879203C0 for ; Mon, 30 Jun 2014 22:10:05 +0000 (UTC) Received: by mail-vc0-f200.google.com with SMTP id id10sf18633407vcb.11 for ; Mon, 30 Jun 2014 15:10:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=aEMe8C43CAJCWp4oUAtPiZSp4N4lUzkLPIwN25r6ULg=; b=E0cWJpaeHFIoKTanm5ibHWjW+P3JAuoXLzw1ZWEvVN8EKCc5nWOueukHeaXb6X7QH7 Gl0rTI3aCfoBiNPP5ObdKnFa/z/t5wv/TD+nQH77GhYWuJkqhVuDastHby5R8v6RteCN KY5yhQSDcKCix3rrL5RoB3q5LzhC6XtHYd2xKaw4qn5imWW07wGcN/5+13KQ361KQ5tR hi+vyOcEkZI3C9gXmrpfgDoSzjWr9ODEO43ifzlJSJAxYqWqLC7aog24zfEzraw8rpBP 78NNTJYBhJWSN1jRIMAaA6um6fnnpeluZo7JFwI8Ei1KM5QWDGuGHandSVV4rvryKv99 pHlA== X-Gm-Message-State: ALoCoQlrPByvHSkW1SlcMFwZURG6dRaTAtJ3RRzRDwnzFjnqis+Y6lRi7zgY6g+rfpNrmlYmddsD X-Received: by 10.58.199.135 with SMTP id jk7mr23698759vec.22.1404166205493; Mon, 30 Jun 2014 15:10:05 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.87.53 with SMTP id q50ls243562qgd.2.gmail; Mon, 30 Jun 2014 15:10:05 -0700 (PDT) X-Received: by 10.52.241.76 with SMTP id wg12mr33873626vdc.5.1404166205365; Mon, 30 Jun 2014 15:10:05 -0700 (PDT) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id lt5si10644490vcb.103.2014.06.30.15.10.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 30 Jun 2014 15:10:05 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.175 as permitted sender) client-ip=209.85.220.175; Received: by mail-vc0-f175.google.com with SMTP id hy4so8155714vcb.20 for ; Mon, 30 Jun 2014 15:10:05 -0700 (PDT) X-Received: by 10.221.37.1 with SMTP id tc1mr5613056vcb.32.1404166205239; Mon, 30 Jun 2014 15:10:05 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp171922vcb; Mon, 30 Jun 2014 15:10:04 -0700 (PDT) X-Received: by 10.66.148.70 with SMTP id tq6mr55651752pab.56.1404166204160; Mon, 30 Jun 2014 15:10:04 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gy11si24673632pbd.88.2014.06.30.15.10.03; Mon, 30 Jun 2014 15:10:03 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755059AbaF3WJx (ORCPT + 27 others); Mon, 30 Jun 2014 18:09:53 -0400 Received: from mail-ie0-f180.google.com ([209.85.223.180]:60597 "EHLO mail-ie0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754612AbaF3WJu (ORCPT ); Mon, 30 Jun 2014 18:09:50 -0400 Received: by mail-ie0-f180.google.com with SMTP id rl12so7181916iec.25 for ; Mon, 30 Jun 2014 15:09:49 -0700 (PDT) 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 Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.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 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: elder@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.175 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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>; + }; + };