From patchwork Tue Mar 11 23:33:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Porter X-Patchwork-Id: 26072 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f71.google.com (mail-qa0-f71.google.com [209.85.216.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C9F3320068 for ; Tue, 11 Mar 2014 23:35:11 +0000 (UTC) Received: by mail-qa0-f71.google.com with SMTP id j7sf10124984qaq.6 for ; Tue, 11 Mar 2014 16:35:11 -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:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=iYST70DKoy6UZrbS9cgHCUASJJcaUQMGHGxiDFMqLT8=; b=i+nWjhC9uExJx0Bo3dLialAj1R/3Rt6sfHZQpfVJo6N1knLWt9YBHCh9VCPbkBHyy3 n9p/uZ5++sYPsr2Am5WJnv/Adgaiz6m+zQl3fp9WaxBE3kybzgi+J1RQ3MKITSopaj0G BEKg8ggBHsPItJ1G2raqKNOvEOpWND6XngvaPDSPyTlbJpxW9I8qAhgiLEhxnqdagQFX ddhEqKxrYwFWkznczhtAClvEh3vss5eBxFSFzINoc9/1N0QM1i9ayWLqPTBOdvYVuE80 vuKkgv9j9e9y97SF5Cx+GhMKnYKpH4gixvWCvgKEf//VeCCy1N7UtKlNRcL2rnOle3Jd eJfA== X-Gm-Message-State: ALoCoQkahKbNnuFkQ/EIu0njewCEKrlexcUSnuVha+BRPrI5UINtioJhH/yAvvdMY/SNIBFJSmqM X-Received: by 10.52.94.47 with SMTP id cz15mr15471242vdb.0.1394580911599; Tue, 11 Mar 2014 16:35:11 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.34.233 with SMTP id l96ls2074601qgl.90.gmail; Tue, 11 Mar 2014 16:35:11 -0700 (PDT) X-Received: by 10.58.188.78 with SMTP id fy14mr9514343vec.23.1394580911496; Tue, 11 Mar 2014 16:35:11 -0700 (PDT) Received: from mail-ve0-f175.google.com (mail-ve0-f175.google.com [209.85.128.175]) by mx.google.com with ESMTPS id p9si6945273vdv.70.2014.03.11.16.35.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 11 Mar 2014 16:35:11 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.175; Received: by mail-ve0-f175.google.com with SMTP id oz11so9372685veb.34 for ; Tue, 11 Mar 2014 16:35:11 -0700 (PDT) X-Received: by 10.59.7.170 with SMTP id dd10mr29610569ved.12.1394580911401; Tue, 11 Mar 2014 16:35:11 -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.220.78.9 with SMTP id i9csp241307vck; Tue, 11 Mar 2014 16:35:10 -0700 (PDT) X-Received: by 10.68.193.130 with SMTP id ho2mr956745pbc.141.1394580910347; Tue, 11 Mar 2014 16:35:10 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id wh4si445958pbc.57.2014.03.11.16.35.09; Tue, 11 Mar 2014 16:35:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756158AbaCKXe1 (ORCPT + 9 others); Tue, 11 Mar 2014 19:34:27 -0400 Received: from mail-ie0-f176.google.com ([209.85.223.176]:64595 "EHLO mail-ie0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756157AbaCKXeZ (ORCPT ); Tue, 11 Mar 2014 19:34:25 -0400 Received: by mail-ie0-f176.google.com with SMTP id rd18so9486234iec.7 for ; Tue, 11 Mar 2014 16:34:24 -0700 (PDT) X-Received: by 10.51.17.40 with SMTP id gb8mr27181126igd.18.1394580864655; Tue, 11 Mar 2014 16:34:24 -0700 (PDT) Received: from beef.ohporter.com (cpe-98-27-254-98.neo.res.rr.com. [98.27.254.98]) by mx.google.com with ESMTPSA id w9sm52394613iga.10.2014.03.11.16.34.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 11 Mar 2014 16:34:23 -0700 (PDT) From: Matt Porter To: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Samuel Ortiz , Lee Jones , Liam Girdwood , Mark Brown , Christian Daudt Cc: Devicetree List , Linux ARM Kernel List , Linux Kernel Mailing List , Tim Kryger Subject: [PATCH v4 5/5] ARM: dts: add bcm590xx pmu support and enable for bcm28155-ap Date: Tue, 11 Mar 2014 19:33:57 -0400 Message-Id: <1394580837-8331-6-git-send-email-mporter@linaro.org> X-Mailer: git-send-email 1.8.4 In-Reply-To: <1394580837-8331-1-git-send-email-mporter@linaro.org> References: <1394580837-8331-1-git-send-email-mporter@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mporter@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) 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: , Add a dtsi to support the BCM590xx PMUs used by the BCM281xx family of SoCs. Enable regulators for use with the dwc2 and sdhci on bcm28155-ap. Signed-off-by: Tim Kryger Signed-off-by: Matt Porter Reviewed-by: Markus Mayer --- arch/arm/boot/dts/bcm28155-ap.dts | 47 +++++++++++++++++++++++- arch/arm/boot/dts/bcm59056.dtsi | 77 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 123 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/bcm59056.dtsi diff --git a/arch/arm/boot/dts/bcm28155-ap.dts b/arch/arm/boot/dts/bcm28155-ap.dts index 5ff2382..99ff0c1 100644 --- a/arch/arm/boot/dts/bcm28155-ap.dts +++ b/arch/arm/boot/dts/bcm28155-ap.dts @@ -46,7 +46,11 @@ i2c@3500d000 { status="okay"; - clock-frequency = <400000>; + clock-frequency = <100000>; + + pmu: pmu@8 { + reg = <0x08>; + }; }; sdio1: sdio@3f180000 { @@ -57,16 +61,22 @@ sdio2: sdio@3f190000 { non-removable; max-frequency = <48000000>; + vmmc-supply = <&camldo1_reg>; + vqmmc-supply = <&iosr1_reg>; status = "okay"; }; sdio4: sdio@3f1b0000 { max-frequency = <48000000>; cd-gpios = <&gpio 14 GPIO_ACTIVE_LOW>; + vmmc-supply = <&sdldo_reg>; + vqmmc-supply = <&sdxldo_reg>; status = "okay"; }; usbotg: usb@3f120000 { + vusb_d-supply = <&usbldo_reg>; + vusb_a-supply = <&iosr1_reg>; status = "okay"; }; @@ -74,3 +84,38 @@ status = "okay"; }; }; + +#include "bcm59056.dtsi" + +&pmu { + compatible = "brcm,bcm59056"; + interrupts = ; + regulators { + camldo1_reg: camldo1 { + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + + sdldo_reg: sdldo { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + }; + + sdxldo_reg: sdxldo { + regulator-min-microvolt = <2700000>; + regulator-max-microvolt = <3300000>; + }; + + usbldo_reg: usbldo { + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + iosr1_reg: iosr1 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + }; +}; diff --git a/arch/arm/boot/dts/bcm59056.dtsi b/arch/arm/boot/dts/bcm59056.dtsi new file mode 100644 index 0000000..0fa1577 --- /dev/null +++ b/arch/arm/boot/dts/bcm59056.dtsi @@ -0,0 +1,77 @@ +/* +* Copyright 2014 Linaro Limited +* Author: Matt Porter +* +* This program is free software; you can redistribute it and/or modify it +* under the terms of the GNU General Public License as published by the +* Free Software Foundation; either version 2 of the License, or (at your +* option) any later version. +*/ + +&pmu { + compatible = "brcm,bcm59056"; + regulators { + #address-cells = <1>; + #size-cells = <0>; + + rfldo_reg: rfldo { + }; + + camldo1_reg: camldo1 { + }; + + camldo2_reg: camldo2 { + }; + + simldo1_reg: simldo1 { + }; + + simldo2_reg: simldo2 { + }; + + sdldo_reg: sdldo { + }; + + sdxldo_reg: sdxldo { + }; + + mmcldo1_reg: mmcldo1 { + }; + + mmcldo2_reg: mmcldo2 { + }; + + audldo_reg: audldo { + }; + + micldo_reg: micldo { + }; + + usbldo_reg: usbldo { + }; + + vibldo_reg: vibldo { + }; + + csr_reg: csr { + }; + + iosr1_reg: iosr1 { + }; + + iosr2_reg: iosr2 { + }; + + msr_reg: msr { + }; + + sdsr1_reg: sdsr1 { + }; + + sdsr2_reg: sdsr2 { + }; + + vsr_reg: vsr { + }; + }; +};