From patchwork Mon May 15 12:02:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 9726809 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4A9F760386 for ; Mon, 15 May 2017 12:05:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 39CE82898B for ; Mon, 15 May 2017 12:05:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2E7362898E; Mon, 15 May 2017 12:05:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6CBA42898B for ; Mon, 15 May 2017 12:05:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=2iizB5skvJcqDYZwDrqUDwTXMq1qYDbndQfDuVXXc74=; b=iD4QoxJBT75i4KzI0noMj76/ZW oiuQoirA+GSKjbK4sYGWwS3rWoRxhzPv3Miip4dt2kO0RNPzf1O6xLq3GxJvXUg50z3PNIfF2wlSG XJ5XPCffHTn/RDnhJdS/MuXSJ3H/WAMt2xd5l5BY9FlypxxYyxKnrc8yg4MI3VR3xjQ96unyFQgiD 9pOAhnt4PsxoTa+3AIeOoN5ilJooYaft5Zgyi8dLokPEfvZ7mxFWLFm3SHf9kAgkAxCoZSQBFen9n rRqsXp//YxudediJH7PnL8TcrmSoJsLl4663BI1I0h2LflUJrsKbiBGMrOvL/R96Eq9vkeGm5Y8rA ozjeboaQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dAEkU-00015y-NL; Mon, 15 May 2017 12:05:14 +0000 Received: from mail-pg0-f51.google.com ([74.125.83.51]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dAEjV-0006zw-6R for linux-arm-kernel@lists.infradead.org; Mon, 15 May 2017 12:04:23 +0000 Received: by mail-pg0-f51.google.com with SMTP id q125so39842732pgq.2 for ; Mon, 15 May 2017 05:03:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=De+RHWc6mV12HeBtzgUHh6kc5z3v9qPPs1pKAvRK1eA=; b=fIax7Ae7wUMhupjyu+gsWzMcvcaaQa9eNdOsTjQwAjNJ5zds28EUz+oe8KyVlQsUz4 gvaXHUvn/Lpdx31eVBcqtVmMhiqqnZtyQ6v+NPKFG1rt9sYKpDvDm5zaeyUk9YS6297k S02uVRABa2ISZcWSMl0bTQOgdvfWI/ISwr5EI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=De+RHWc6mV12HeBtzgUHh6kc5z3v9qPPs1pKAvRK1eA=; b=R5wOt+uZV+4C8+aQ8k2pwlLMWz7V37ZuItTph29jFPLNMfBRNqxpXzTxl7qVabH+e2 sRaDdzC2HFnLdHSCWNn6RJo0Jv9g0LS5llQp/FHp1YXoSlb6qv+ccKCRdTNU4paWT635 dASVeZqRdDYhJAIGW/YTGaESX8kAcVMewK5Ez4wO9WrFAym3eUWKIQ3LUZ34+7bFskm1 uFYhEuZdMzounb7fxddOQC+rnopA/TekERS7R6CR9If3RMrGAKOftLfNEZmwwqz0KORW FrjT4QTZzpQy7u8GFIPs/C9il9kym+1YiqA9GbRXdWpigB2SwP9BhOP1zlDsIBMnsPXQ Biiw== X-Gm-Message-State: AODbwcBRmwTwq0RFW8iM9E4A66TnZqTI1STR9nWoY79tTFQZolc1XccR GUnqbSr3RjOO7Kij X-Received: by 10.98.102.208 with SMTP id s77mr5880947pfj.22.1494849831644; Mon, 15 May 2017 05:03:51 -0700 (PDT) Received: from anup-HP-Compaq-8100-Elite-CMT-PC.dhcp.avagotech.net ([192.19.237.250]) by smtp.gmail.com with ESMTPSA id m12sm4776572pgn.30.2017.05.15.05.03.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 15 May 2017 05:03:51 -0700 (PDT) From: Anup Patel To: Rob Herring , Mark Rutland , Michael Turquette Subject: [PATCH v2 11/11] arm64: dts: Add PWM and SDHCI DT nodes for Stingray SOC Date: Mon, 15 May 2017 17:32:21 +0530 Message-Id: <1494849741-21294-12-git-send-email-anup.patel@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1494849741-21294-1-git-send-email-anup.patel@broadcom.com> References: <1494849741-21294-1-git-send-email-anup.patel@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170515_050413_399531_D4E07DA8 X-CRM114-Status: GOOD ( 10.33 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Florian Fainelli , Sandeep Tripathy , Anup Patel , Scott Branden , Jon Mason , Catalin Marinas , Will Deacon , linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Pramod Kumar , Oza Pawandeep , Ray Jui , Srinath Mannam , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Srinath Mannam The Stingray SoC has two instances of SDHCI controller and one instance of iProc PWM. Let's enable above mentioned devices in Stingray DT. Signed-off-by: Srinath Mannam Signed-off-by: Anup Patel Reviewed-by: Ray Jui Reviewed-by: Scott Branden --- .../boot/dts/broadcom/stingray/bcm958742-base.dtsi | 39 ++++++++++++++++++++++ .../arm64/boot/dts/broadcom/stingray/stingray.dtsi | 28 ++++++++++++++++ 2 files changed, 67 insertions(+) diff --git a/arch/arm64/boot/dts/broadcom/stingray/bcm958742-base.dtsi b/arch/arm64/boot/dts/broadcom/stingray/bcm958742-base.dtsi index e3f8c89..6185561 100644 --- a/arch/arm64/boot/dts/broadcom/stingray/bcm958742-base.dtsi +++ b/arch/arm64/boot/dts/broadcom/stingray/bcm958742-base.dtsi @@ -46,6 +46,28 @@ serial2 = &uart2; serial3 = &uart3; }; + + sdio0_vddo_ctrl_reg: sdio0_vddo_ctrl { + compatible = "regulator-gpio"; + regulator-name = "sdio0_vddo_ctrl_reg"; + regulator-type = "voltage"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + gpios = <&pca9505 18 0>; + states = <3300000 0x0 + 1800000 0x1>; + }; + + sdio1_vddo_ctrl_reg: sdio1_vddo_ctrl { + compatible = "regulator-gpio"; + regulator-name = "sdio1_vddo_ctrl_reg"; + regulator-type = "voltage"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + gpios = <&pca9505 19 0>; + states = <3300000 0x0 + 1800000 0x1>; + }; }; &memory { /* Default DRAM banks */ @@ -57,6 +79,10 @@ status = "okay"; }; +&pwm { + status = "okay"; +}; + &i2c0 { status = "okay"; @@ -93,3 +119,16 @@ #size-cells = <1>; }; }; + +&sdio0 { + vqmmc-supply = <&sdio0_vddo_ctrl_reg>; + non-removable; + full-pwr-cycle; + status = "okay"; +}; + +&sdio1 { + vqmmc-supply = <&sdio1_vddo_ctrl_reg>; + full-pwr-cycle; + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi b/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi index 6d9c9f8..aa0ecec 100644 --- a/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi +++ b/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi @@ -274,6 +274,14 @@ #include "stingray-pinctrl.dtsi" + pwm: pwm@68910000{ + compatible = "brcm,iproc-pwm"; + reg = <0x00010000 0x1000>; + clocks = <&crmu_ref25m>; + #pwm-cells = <3>; + status = "disabled"; + }; + i2c0: i2c@689b0000 { compatible = "brcm,iproc-i2c"; reg = <0x000b0000 0x100>; @@ -433,5 +441,25 @@ brcm,nand-has-wp; status = "disabled"; }; + + sdio0: sdhci@68cf1000 { + compatible = "brcm,sdhci-iproc"; + reg = <0x003f1000 0x100>; + interrupts = ; + bus-width = <8>; + clocks = <&sdio0_clk>; + iommus = <&smmu 0x6002 0x0000>; + status = "disabled"; + }; + + sdio1: sdhci@68cf2000 { + compatible = "brcm,sdhci-iproc"; + reg = <0x003f2000 0x100>; + interrupts = ; + bus-width = <8>; + clocks = <&sdio1_clk>; + iommus = <&smmu 0x6003 0x0000>; + status = "disabled"; + }; }; };