From patchwork Fri Jun 2 06:34:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 9761675 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 5D5A860365 for ; Fri, 2 Jun 2017 06:37:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 511B22856A for ; Fri, 2 Jun 2017 06:37:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4503E2856F; Fri, 2 Jun 2017 06:37:33 +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.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=unavailable 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 1ECFE2856A for ; Fri, 2 Jun 2017 06:37:32 +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=HcDojZzwx7G8eKhn/P9Cx1Qmps2wcAjm6HyDvzJZGpE=; b=WkdihHoubk/x+igR7MP2gO3V7g 5M3KFlVAh/Nc4UmqoiuWLxZOQ46H0BqdGcDEF9Ok9KopwvW163ObHmAgdIu07HiIkmHk8RJ1nwf48 DGde39ovViPvwWyo72FyX3OYa/DM9XgjOMDT1+GD+DZtV2ArFFxwLib4q8cc2DOxZUkorA4a19RyB YFeSs1duCxf7R/iRGMU4MnpKpOuY/HnCUGlZBJNH+I1mcShTTVdyWkQgZ1lbMtacptymNScc8jazH RlUM3Y36CS3wZRGsI8FxSu+H9sbZvS0pBYMlpgvf4muWOV7sW+3UtNTJ6AwFybTIpHlh8gjVriCgr ObvXFewQ==; 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 1dGgDC-0002Bp-D2; Fri, 02 Jun 2017 06:37:30 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dGgCv-0001wx-N5 for linux-arm-kernel@bombadil.infradead.org; Fri, 02 Jun 2017 06:37:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=jWzYlnmKq2sfEpiICSGMGsNdaQeU4kjtPmx/d0jLnqQ=; b=UgE87CLCEBkdRSUCEpiWo6re8 rPS683oj5gqH/20SFmFgN/+lXivBzw7VFsPg5hFgG6Rrs9z78WqbauQMLqo8Hi9iRxxSAVpXPleeA ra0a7ZmajwluZAYeYMLwGbTFyKmUJkUfo5sff5SvHSs8o+atIlZX16SJ7mUkql0DRGR1VqRnBU+Uw G3t8Tap6g+xwbRlzbzF9ceVpTE6H57mYKNRtj9/owkhSt8NYWJm40gC0hDypErV5NRRAcHtc1WgVU ZjgH1AEofWYeaZ3SwAzLb4DvGDpRsDohSOFwfFrgebDVPZtKzg+x7DWkaDd/I4qfVkTfTkNf54vyD rYBdoMe2A==; Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dGgCt-00041Q-Qg for linux-arm-kernel@lists.infradead.org; Fri, 02 Jun 2017 06:37:13 +0000 Received: by mail-wm0-x22b.google.com with SMTP id b84so13625590wmh.0 for ; Thu, 01 Jun 2017 23:36:51 -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=jWzYlnmKq2sfEpiICSGMGsNdaQeU4kjtPmx/d0jLnqQ=; b=KkjJ5VLOZqNL6GpVt0Z3ut/lzD7EkTWdMALNWtxFgvoBT2ynRrjcBbR4DiSLWcQ4yx F5cNd0KBwchitesJGYuKCFIWLX+DKK+wVrxZFW1DT6Vv+Qve3KtU2iCiXgonAiDifJmn FbBisDhE2uB7vjGrVLYYYtozH3Wmq0l2jnuvE= 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=jWzYlnmKq2sfEpiICSGMGsNdaQeU4kjtPmx/d0jLnqQ=; b=EvTtVPjj7c1GkzgCX8VzNpgYCMlyRg7+/U+NBdc0WwcC7h+x6I0xkHHUwZHo622DK5 8EJ0alqQVgGZ2X5X+/nwn534R0FURjo4qvgbjXZhsjUkef3oyBSRWGFzAgRyQ6WgJW4l OK+htiELMVCJBU1CnIYxspT2Vr0IXXkSdp/f9p0nsZrmcKmKD+4vo0OgGW36u5QqgFZg p2I8B8H1vfV9Sdxpc3EZpgNN8ERyHmJepnm0do47FOIVQiwh5CEjdL5/vW2GyrVzTavA t1eJf3kp5G+GsuzKBRGoJ0TODMdhIfEvMVkjFBUa3sgeIeLJxjbkxAh3a608D1RtjDfT 7bWQ== X-Gm-Message-State: AODbwcCs6l6597onCcNEEGDPHCSNtugmtf1vfwLp3M9xSS4ou6zYZEdh vIayDpOPy55RFEmM X-Received: by 10.223.179.86 with SMTP id k22mr3625728wrd.5.1496385409704; Thu, 01 Jun 2017 23:36:49 -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 p65sm1767170wmf.24.2017.06.01.23.36.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Jun 2017 23:36:49 -0700 (PDT) From: Anup Patel To: Rob Herring , Mark Rutland , Michael Turquette , Stephen Boyd Subject: [PATCH v6 10/11] arm64: dts: Add PL022, PL330 and SP805 DT nodes for Stingray Date: Fri, 2 Jun 2017 12:04:34 +0530 Message-Id: <1496385275-6899-11-git-send-email-anup.patel@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1496385275-6899-1-git-send-email-anup.patel@broadcom.com> References: <1496385275-6899-1-git-send-email-anup.patel@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170602_023712_403890_3941960D 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 We have two instance of PL022 SPI controllers, one instance of DMA PL330, and one non-secure SP805 Watchdog on Stingray SOC. This patch adds DT nodes for the above mentioned devices in Stingray DT. Signed-off-by: Anup Patel Reviewed-by: Pramod KUMAR Reviewed-by: Ray Jui Reviewed-by: Scott Branden --- .../boot/dts/broadcom/stingray/bcm958742k.dts | 30 +++++++++++++ .../arm64/boot/dts/broadcom/stingray/stingray.dtsi | 52 ++++++++++++++++++++++ 2 files changed, 82 insertions(+) diff --git a/arch/arm64/boot/dts/broadcom/stingray/bcm958742k.dts b/arch/arm64/boot/dts/broadcom/stingray/bcm958742k.dts index c309cda..5671669 100644 --- a/arch/arm64/boot/dts/broadcom/stingray/bcm958742k.dts +++ b/arch/arm64/boot/dts/broadcom/stingray/bcm958742k.dts @@ -46,3 +46,33 @@ &uart3 { status = "okay"; }; + +&ssp0 { + pinctrl-0 = <&spi0_pins>; + pinctrl-names = "default"; + cs-gpios = <&gpio_hsls 34 0>; + status = "okay"; + + spi-flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <20000000>; + #address-cells = <1>; + #size-cells = <1>; + }; +}; + +&ssp1 { + pinctrl-0 = <&spi1_pins>; + pinctrl-names = "default"; + cs-gpios = <&gpio_hsls 96 0>; + status = "okay"; + + spi-flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <20000000>; + #address-cells = <1>; + #size-cells = <1>; + }; +}; diff --git a/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi b/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi index 91ba61e..88a6176 100644 --- a/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi +++ b/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi @@ -279,6 +279,14 @@ status = "disabled"; }; + wdt0: watchdog@000c0000 { + compatible = "arm,sp805", "arm,primecell"; + reg = <0x000c0000 0x1000>; + interrupts = ; + clocks = <&hsls_25m_div2_clk>, <&hsls_div4_clk>; + clock-names = "wdogclk", "apb_pclk"; + }; + gpio_hsls: gpio@000d0000 { compatible = "brcm,iproc-gpio"; reg = <0x000d0000 0x864>; @@ -359,11 +367,55 @@ status = "disabled"; }; + ssp0: ssp@00180000 { + compatible = "arm,pl022", "arm,primecell"; + reg = <0x00180000 0x1000>; + interrupts = ; + clocks = <&hsls_div2_clk>, <&hsls_div2_clk>; + clock-names = "spiclk", "apb_pclk"; + num-cs = <1>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + ssp1: ssp@00190000 { + compatible = "arm,pl022", "arm,primecell"; + reg = <0x00190000 0x1000>; + interrupts = ; + clocks = <&hsls_div2_clk>, <&hsls_div2_clk>; + clock-names = "spiclk", "apb_pclk"; + num-cs = <1>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + hwrng: hwrng@00220000 { compatible = "brcm,iproc-rng200"; reg = <0x00220000 0x28>; }; + dma0: dma@00310000 { + compatible = "arm,pl330", "arm,primecell"; + reg = <0x00310000 0x1000>; + interrupts = , + , + , + , + , + , + , + , + ; + #dma-cells = <1>; + #dma-channels = <8>; + #dma-requests = <32>; + clocks = <&hsls_div2_clk>; + clock-names = "apb_pclk"; + iommus = <&smmu 0x6000 0x0000>; + }; + nand: nand@00360000 { compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1"; reg = <0x00360000 0x600>,