From patchwork Fri Oct 2 22:57:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Mason X-Patchwork-Id: 54465 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by patches.linaro.org (Postfix) with ESMTPS id 53297218EF for ; Fri, 2 Oct 2015 22:58:38 +0000 (UTC) Received: by wisv5 with SMTP id v5sf12663817wis.0 for ; Fri, 02 Oct 2015 15:58:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-type:sender:precedence :list-id:x-original-sender:x-original-authentication-results :mailing-list:list-post:list-help:list-archive:list-unsubscribe; bh=2TtJukRwBQ9jxP0suktD02jC+VJUwcsZpTWt3BNeVkA=; b=cvp8sZ81PXevnz8YKrzWlaVb7oke8ywSDopB9E3GGDjh/oLUdN6LmVBCojcRZMyEcQ 0AaV3DJYMqWhwOFOAQeKV8mnrv9QatfUws43UjRWC9nDmL+5jn72Nd9cCk5/UL5TvFiY 0HcuZP00NStY1Wlchq/cmSlYCWhh9Cg2ucoIZPIKh5ITH/S+8qbKe84zYfTAgIxmeMjR e6mCGFGLV8iiP1J1vldnJR2qHa9BLdCdIdNeKR/g6ahtbYDRWSZUYLGO7sTuXnzXgzpR OHH4Q5qwuLF/wYb3J+PHfKGlrKObKIMFuWCjNQz7E2J44n1YTyI70kNcmLxfTWztbOys 8A0Q== X-Gm-Message-State: ALoCoQnKiZ4UUMJ+IJOyVYRh/5LqMbkWrbMPG/twbn+YC46kri8mnRSex0vXMUoFhCrUGpW4+Coh X-Received: by 10.112.138.170 with SMTP id qr10mr3152751lbb.4.1443826717592; Fri, 02 Oct 2015 15:58:37 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.41.4 with SMTP id p4ls248284lfp.58.gmail; Fri, 02 Oct 2015 15:58:37 -0700 (PDT) X-Received: by 10.25.32.143 with SMTP id g137mr4443351lfg.94.1443826717225; Fri, 02 Oct 2015 15:58:37 -0700 (PDT) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id g127si7677559lfb.151.2015.10.02.15.58.37 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Oct 2015 15:58:37 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by lafb9 with SMTP id b9so11955002laf.0 for ; Fri, 02 Oct 2015 15:58:37 -0700 (PDT) X-Received: by 10.112.138.37 with SMTP id qn5mr6732413lbb.52.1443826717103; Fri, 02 Oct 2015 15:58:37 -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.112.130.202 with SMTP id og10csp1018lbb; Fri, 2 Oct 2015 15:58:35 -0700 (PDT) X-Received: by 10.68.94.165 with SMTP id dd5mr14186176pbb.59.1443826715841; Fri, 02 Oct 2015 15:58:35 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id vb1si19908480pac.165.2015.10.02.15.58.35; Fri, 02 Oct 2015 15:58:35 -0700 (PDT) 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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752147AbbJBW6e (ORCPT + 30 others); Fri, 2 Oct 2015 18:58:34 -0400 Received: from mail-gw1-out.broadcom.com ([216.31.210.62]:9866 "EHLO mail-gw1-out.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752049AbbJBW6C (ORCPT ); Fri, 2 Oct 2015 18:58:02 -0400 X-IronPort-AV: E=Sophos;i="5.17,625,1437462000"; d="scan'208";a="76737316" Received: from irvexchcas08.broadcom.com (HELO IRVEXCHCAS08.corp.ad.broadcom.com) ([10.9.208.57]) by mail-gw1-out.broadcom.com with ESMTP; 02 Oct 2015 17:45:10 -0700 Received: from IRVEXCHSMTP1.corp.ad.broadcom.com (10.9.207.51) by IRVEXCHCAS08.corp.ad.broadcom.com (10.9.208.57) with Microsoft SMTP Server (TLS) id 14.3.235.1; Fri, 2 Oct 2015 15:58:02 -0700 Received: from mail-irva-13.broadcom.com (10.10.10.20) by IRVEXCHSMTP1.corp.ad.broadcom.com (10.9.207.51) with Microsoft SMTP Server id 14.3.235.1; Fri, 2 Oct 2015 15:58:02 -0700 Received: from venom.rtp.broadcom.com (unknown [10.27.64.103]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id 0D85240FEA; Fri, 2 Oct 2015 15:55:11 -0700 (PDT) From: Jon Mason To: Michael Turquette , Stephen Boyd CC: Florian Fainelli , Hauke Mehrtens , Ray Jui , Scott Branden , , , , , Subject: [PATCH 10/10] ARM: dts: enable clock support for Broadcom NS2 Date: Fri, 2 Oct 2015 18:57:45 -0400 Message-ID: <1443826665-17570-11-git-send-email-jonmason@broadcom.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1443826665-17570-1-git-send-email-jonmason@broadcom.com> References: <1443826665-17570-1-git-send-email-jonmason@broadcom.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: jonmason@broadcom.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) smtp.mailfrom=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 device tree entries for clock support for Broadcom Northstar 2 SoC Signed-off-by: Jon Mason --- arch/arm64/boot/dts/broadcom/ns2.dtsi | 81 +++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) diff --git a/arch/arm64/boot/dts/broadcom/ns2.dtsi b/arch/arm64/boot/dts/broadcom/ns2.dtsi index 3c92d92..0b8921e 100644 --- a/arch/arm64/boot/dts/broadcom/ns2.dtsi +++ b/arch/arm64/boot/dts/broadcom/ns2.dtsi @@ -31,6 +31,7 @@ */ #include +#include /memreserve/ 0x84b00000 0x00000008; @@ -89,6 +90,86 @@ IRQ_TYPE_EDGE_RISING)>; }; + clocks { + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0 0x6501c000 0x00002000>; + + osc: oscillator { + #clock-cells = <0>; + compatible = "fixed-clock"; + clock-frequency = <25000000>; + }; + + lcpll_ddr: lcpll_ddr@1058 { + #clock-cells = <1>; + compatible = "brcm,ns2-lcpll-ddr"; + reg = <0x1058 0x20>, + <0x0020 0x4>, + <0x104c 0x4>; + clocks = <&osc>; + clock-output-names = "lcpll_ddr", "pcie_sata_usb", + "ddr", "ddr_ch2_unused", + "ddr_ch3_unused", "ddr_ch4_unused", + "ddr_ch5_unused"; + }; + + lcpll_ports: lcpll_ports@1078 { + #clock-cells = <1>; + compatible = "brcm,ns2-lcpll-ports"; + reg = <0x1078 0x20>, + <0x0020 0x4>, + <0x1054 0x4>; + clocks = <&osc>; + clock-output-names = "lcpll_ports", "wan", "rgmii", + "ports_ch2_unused", + "ports_ch3_unused", + "ports_ch4_unused", + "ports_ch5_unused"; + }; + + genpll_scr: genpll_scr@1098 { + #clock-cells = <1>; + compatible = "brcm,ns2-genpll-scr"; + reg = <0x1098 0x32>, + <0x0020 0x4>, + <0x1044 0x4>; + clocks = <&osc>; + clock-output-names = "genpll_scr", "scr", "fs", + "audio_ref", "scr_ch3_unused", + "scr_ch4_unused", "scr_ch5_unused"; + }; + + genpll_sw: genpll_sw@10c4 { + #clock-cells = <1>; + compatible = "brcm,ns2-genpll-sw"; + reg = <0x10c4 0x32>, + <0x0020 0x4>, + <0x1044 0x4>; + clocks = <&osc>; + clock-output-names = "genpll_sw", "rpe", "250", "nic", + "chimp", "port", "sdio"; + }; + + iprocmed: iprocmed { + #clock-cells = <0>; + compatible = "fixed-factor-clock"; + clocks = <&genpll_scr BCM_NS2_GENPLL_SCR_SCR_CLK>; + clock-div = <2>; + clock-mult = <1>; + clock-output-names = "iprocmed"; + }; + + iprocslow: iprocslow { + #clock-cells = <0>; + compatible = "fixed-factor-clock"; + clocks = <&genpll_scr BCM_NS2_GENPLL_SCR_SCR_CLK>; + clock-div = <4>; + clock-mult = <1>; + clock-output-names = "iprocslow"; + }; + }; + soc: soc { compatible = "simple-bus"; #address-cells = <1>;