Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp955962imu; Tue, 20 Nov 2018 09:22:09 -0800 (PST) X-Google-Smtp-Source: AFSGD/WX5YEL8ijNaNdZ9Jle+I3VavC4eJuJ79OawiU41n87ZXjFhu4Gpc9r1BXYJ4/hkKYdWKLV X-Received: by 2002:a17:902:2c83:: with SMTP id n3mr3156052plb.104.1542734529815; Tue, 20 Nov 2018 09:22:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542734529; cv=none; d=google.com; s=arc-20160816; b=MqnHcwQYPuQbEexWvEhFUgzoQpRYHbK8hKxw2xZiy3Ec/D07+Xev/QGGt05eq4hZ+k 3/Ah/q92MF874pDHrDuFYko3n9Dx7nptvK8E4Cirkp1AfRb/bLUb6NGVrHTRcikEcVUM XiccmgBOdZnSsndXTJvy1c59MoSvhJeEYG/xPVrecrc90tcm3kLlfoZDaT+rTSP/RjEj 8IbU9J5xOwPWJlnbydnmm9I2fM8RKI+kHQ6wxHpdywZ93/D27vDvLsFyAba0uzGXsfY5 OIH0GlDYWKDt8tZzYug+Ib+Aibqg8ZVezM+KjhWRL6LZrNjjRueNEiF/bSCFWeigTu1a Lybg== 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=Dyxe43eez88sjgdJmckt95yHakABN9wo8dz0bjeiJC4=; b=otNF5hVsI31y8cYUlfzBmRoi4CM/5gI1SsW10Yh94i1p42ZAP7Dmy9nVipJfdXdynI LIBEHJhuiCD+Tek+B0dHrMH72vVjAF1yJiKmvqx148eX8xVT/sK5mDuX2lYGs+dRuWYu 8+tIchtIAcmFADwXraVuv8/25WjWUOsB4/dYK7yHSkbiUJjWDtonL4zbH8e9Cm9yQmrc DkZRIjP9nJ4mKYWuLuIOnyx6z1hfDg7/+UmcoL3/sg1sXoYhkI2k/wEyVPhzYGhljP0b 685d5ojDi84eawNc9H1LLvMBEwnORCrkAEjpRbEdu/K+0JBRlmA136eVhw93lQBhpThR D7zw== 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 t74si32896671pgc.150.2018.11.20.09.21.37; Tue, 20 Nov 2018 09:22:09 -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 S1730509AbeKUDuW (ORCPT + 99 others); Tue, 20 Nov 2018 22:50:22 -0500 Received: from anholt.net ([50.246.234.109]:50704 "EHLO anholt.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730458AbeKUDuW (ORCPT ); Tue, 20 Nov 2018 22:50:22 -0500 Received: from localhost (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id CF40310A15B1; Tue, 20 Nov 2018 09:20:08 -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 iob7z-d-gMCf; Tue, 20 Nov 2018 09:20:07 -0800 (PST) Received: from eliezer.anholt.net (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id 6395510A165F; Tue, 20 Nov 2018 09:20:02 -0800 (PST) Received: by eliezer.anholt.net (Postfix, from userid 1000) id 1DA2C2FE1FEB; Tue, 20 Nov 2018 09:20:00 -0800 (PST) From: Eric Anholt To: Florian Fainelli , Rob Herring , Mark Rutland , Wim Van Sebroeck , Guenter Roeck , linux-watchdog@vger.kernel.org Cc: linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Stefan Wahren , bcm-kernel-feedback-list@broadcom.com, Eric Anholt Subject: [PATCH 5/8] dt-bindings: soc: Add a new binding for the BCM2835 PM node. Date: Tue, 20 Nov 2018 09:19:57 -0800 Message-Id: <20181120172000.15102-6-eric@anholt.net> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181120172000.15102-1-eric@anholt.net> References: <20181120172000.15102-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 --- .../bindings/soc/bcm/brcm,bcm2835-pm.txt | 42 +++++++++++++++++++ 1 file changed, 42 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..7818d33a158f --- /dev/null +++ b/Documentation/devicetree/bindings/soc/bcm/brcm,bcm2835-pm.txt @@ -0,0 +1,42 @@ +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 + +[1] Documentation/devicetree/bindings/reset/reset.txt +[2] Documentation/devicetree/bindings/power/power_domain.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"; +}; -- 2.19.1