Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp239025imu; Wed, 12 Dec 2018 15:53:12 -0800 (PST) X-Google-Smtp-Source: AFSGD/VEh8Rc8q0SdpGp68hnZa0YhxUO0SBkItFJ+02nDvO9h2qOQEqHaFlzgbEhxagUJdBQ/1/H X-Received: by 2002:a62:5d0c:: with SMTP id r12mr22902308pfb.0.1544658792335; Wed, 12 Dec 2018 15:53:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544658792; cv=none; d=google.com; s=arc-20160816; b=AkNzu2tj1up6dbpJ67m/WdPScXxESbC59KnpDOKjnZFVA/T8PVDTps4CJK2AAzjzml 84ezhXCu7iRvPQ+OYS11Kvcyunmonz1wkYhGuHHHwG/G5yXRtb5L5X/UKxHkqQa0xdyF nby9JWHCjGxyhWBTfG5PR7+/d2lbU5cG38t/XR8Uhb1bWqePqX2AeUCP+KbDqo5gKk8i EJCv2R/dJtwZSqsfCo1s+qfzQYQo9yugzlhN/VQzEhH0sU6z1sHHzpD266jsBiYu/Z9e XG/eI5GLdNI8BdVrPCkCmoq+jO7G6mUT2VA3loTS7092UrmbNXM8Iv3h0BpWElAlkWYQ WoNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=TRoGmQSp5A+cg4Bqt5mff1ASSv5xzrcHPZ/1ArHWn2U=; b=Xwpm0aR8nhIc5Fajtpzey3lmZ5nKUkxNKyOKpV87qSQvcvRhKWwLZguLc115ptNn+E 47tvxoXpJMGPtcuuJw3FU+yGIy+9yVUZ3eL1hII+ZMpW+HTv0lA+KV5O9H2Y3ewGIATA eL7sNa+GI5+JwktfhW6WW/CKYy8T9702cMLAEpTynypKim+3cMq9ArmxJgR+e6Mzour3 50NJNXPWfPikLByewV1iERYXOsroHs2Zpo/+JWrRmJbYoZIPm9eerTy+vb+PYkKu7O6A MlAg98TEee4wQBW022CoRz0bVjwxgvvE/zyCoHd/DMGVdv4iIbGPoNM8zbwWlv62xn2/ iW1w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n8si171989plk.9.2018.12.12.15.52.56; Wed, 12 Dec 2018 15:53:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728593AbeLLXwC (ORCPT + 99 others); Wed, 12 Dec 2018 18:52:02 -0500 Received: from anholt.net ([50.246.234.109]:59118 "EHLO anholt.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728461AbeLLXv4 (ORCPT ); Wed, 12 Dec 2018 18:51:56 -0500 Received: from localhost (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id B176910A1DB5; Wed, 12 Dec 2018 15:51:55 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at anholt.net Received: from anholt.net ([127.0.0.1]) by localhost (kingsolver.anholt.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id IVeULlcjD68n; Wed, 12 Dec 2018 15:51:53 -0800 (PST) Received: from eliezer.anholt.net (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id 5203F10A1D70; Wed, 12 Dec 2018 15:51:51 -0800 (PST) Received: by eliezer.anholt.net (Postfix, from userid 1000) id 27B862FE1FF3; Wed, 12 Dec 2018 15:51:50 -0800 (PST) From: Eric Anholt To: Florian Fainelli , linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, Guenter Roeck , Wim Van Sebroeck , Lee Jones , Stefan Wahren , Mark Rutland , Rob Herring Cc: linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Eric Anholt , Rob Herring Subject: [PATCH v4 1/5] dt-bindings: soc: Add a new binding for the BCM2835 PM node. (v4) Date: Wed, 12 Dec 2018 15:51:46 -0800 Message-Id: <20181212235150.6491-2-eric@anholt.net> X-Mailer: git-send-email 2.20.0.rc1 In-Reply-To: <20181212235150.6491-1-eric@anholt.net> References: <20181212235150.6491-1-eric@anholt.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This binding supersedes the bcm2835-pm-wdt binding which only covered enough to provide a watchdog, but the HW block is actually mostly about power domains. Signed-off-by: Eric Anholt Reviewed-by: Rob Herring (v3) --- v4: Add the system-power-controller node. .../bindings/soc/bcm/brcm,bcm2835-pm.txt | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/bcm/brcm,bcm2835-pm.txt diff --git a/Documentation/devicetree/bindings/soc/bcm/brcm,bcm2835-pm.txt b/Documentation/devicetree/bindings/soc/bcm/brcm,bcm2835-pm.txt new file mode 100644 index 000000000000..3b7d32956391 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/bcm/brcm,bcm2835-pm.txt @@ -0,0 +1,46 @@ +BCM2835 PM (Power domains, watchdog) + +The PM block controls power domains and some reset lines, and includes +a watchdog timer. This binding supersedes the brcm,bcm2835-pm-wdt +binding which covered some of PM's register range and functionality. + +Required properties: + +- compatible: Should be "brcm,bcm2835-pm" +- reg: Specifies base physical address and size of the two + register ranges ("PM" and "ASYNC_BRIDGE" in that + order) +- clocks: a) v3d: The V3D clock from CPRMAN + b) peri_image: The PERI_IMAGE clock from CPRMAN + c) h264: The H264 clock from CPRMAN + d) isp: The ISP clock from CPRMAN +- #reset-cells: Should be 1. This property follows the reset controller + bindings[1]. +- #power-domain-cells: Should be 1. This property follows the power domain + bindings[2]. + +Optional properties: + +- timeout-sec: Contains the watchdog timeout in seconds +- system-power-controller: Whether the watchdog is controlling the + system power. This node follows the power controller bindings[3]. + +[1] Documentation/devicetree/bindings/reset/reset.txt +[2] Documentation/devicetree/bindings/power/power_domain.txt +[3] Documentation/devicetree/bindings/power/power-controller.txt + +Example: + +pm { + compatible = "brcm,bcm2835-pm", "brcm,bcm2835-pm-wdt"; + #power-domain-cells = <1>; + #reset-cells = <1>; + reg = <0x7e100000 0x114>, + <0x7e00a000 0x24>; + clocks = <&clocks BCM2835_CLOCK_V3D>, + <&clocks BCM2835_CLOCK_PERI_IMAGE>, + <&clocks BCM2835_CLOCK_H264>, + <&clocks BCM2835_CLOCK_ISP>; + clock-names = "v3d", "peri_image", "h264", "isp"; + system-power-controller; +}; -- 2.20.0.rc1