From patchwork Sun Nov 29 16:59:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Aring X-Patchwork-Id: 7718911 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E81379F39B for ; Sun, 29 Nov 2015 17:00:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 175122061B for ; Sun, 29 Nov 2015 17:00:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4B1CD2061E for ; Sun, 29 Nov 2015 17:00:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752017AbbK2RAO (ORCPT ); Sun, 29 Nov 2015 12:00:14 -0500 Received: from mail-wm0-f45.google.com ([74.125.82.45]:36125 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751935AbbK2Q74 (ORCPT ); Sun, 29 Nov 2015 11:59:56 -0500 Received: by wmww144 with SMTP id w144so102972118wmw.1; Sun, 29 Nov 2015 08:59:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=XfKFjY1A2Ss73AquhChc11avfDN6c7wa7SKVm6lDjS0=; b=ambcrriIMmObUpJh5o4p0tz/N4rrVzk3FQQvYyqFAC6fqKHOo7wUYxtNo3VLZfc2uA 7e2LHUgC5KZD3adSZyQsfljet+EPGhpd1XG02nH++fUL6JGcAM0sHPvpMwZZxitwdnp9 +4ww/2T34ZrZQ7AthSmh/q04QER6zr9F898KdUVuio1jPgzjblkqCqDvIgcRLLpDGhoB V/nzwLrpgGWJBlpCKpcUs2T5+BT0XUskQR3bnz8FacoQbdfuC9hJrp6rXaFJAZZflCvU aIcXHsADNr6AR/Rt+ghrmt5l8JXz75DslecdjK8idxkdrVSbtG+e8atcPZ+G9e8+mDhC gQKg== X-Received: by 10.28.15.146 with SMTP id 140mr21582029wmp.79.1448816395570; Sun, 29 Nov 2015 08:59:55 -0800 (PST) Received: from omega.localdomain (p20030064A9775FBDE2CB4EFFFE1BB546.dip0.t-ipconnect.de. [2003:64:a977:5fbd:e2cb:4eff:fe1b:b546]) by smtp.gmail.com with ESMTPSA id l20sm17493914wmd.20.2015.11.29.08.59.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 29 Nov 2015 08:59:54 -0800 (PST) From: Alexander Aring To: linux-rpi-kernel@lists.infradead.org Cc: robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, swarren@wwwdotorg.org, lee@kernel.org, eric@anholt.net, linux@arm.linux.org.uk, f.fainelli@gmail.com, rjui@broadcom.com, sbranden@broadcom.com, rjw@rjwysocki.net, khilman@kernel.org, ulf.hansson@linaro.org, len.brown@intel.com, pavel@ucw.cz, gregkh@linuxfoundation.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, linux-pm@vger.kernel.org, kernel@pengutronix.de, Alexander Aring Subject: [PATCHv2 3/4] devicetree: add rpi power domain driver bindings Date: Sun, 29 Nov 2015 17:59:32 +0100 Message-Id: <1448816373-18235-4-git-send-email-alex.aring@gmail.com> X-Mailer: git-send-email 2.6.1 In-Reply-To: <1448816373-18235-1-git-send-email-alex.aring@gmail.com> References: <1448816373-18235-1-git-send-email-alex.aring@gmail.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 This patch adds devicetree tree bindings for the Raspberry Pi power domain driver. Signed-off-by: Alexander Aring Acked-by: Rob Herring Acked-by: Eric Anholt --- .../bindings/arm/bcm/raspberrypi,bcm2835-power.txt | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-power.txt diff --git a/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-power.txt b/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-power.txt new file mode 100644 index 0000000..c3abc24 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-power.txt @@ -0,0 +1,25 @@ +Raspberry Pi power domain driver + +Required properties: + +- compatible: Should be "raspberrypi,bcm2835-power". +- firmware: Reference to the RPi firmware device node. +- #power-domain-cells: Should be <1>, we providing multiple power domains. + +The valid defines for power domain are: + + RPI_POWER_DOMAIN_USB + +Example: + +power: power { + compatible = "raspberrypi,bcm2835-power"; + firmware = <&firmware>; + #power-domain-cells = <1>; +}; + +Example for using power domain: + +&usb { + power-domains = <&power RPI_POWER_DOMAIN_USB>; +};