From patchwork Thu Nov 17 17:11:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 9434637 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 3BA8860469 for ; Thu, 17 Nov 2016 17:13:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 27E442966F for ; Thu, 17 Nov 2016 17:13:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 19A7B29671; Thu, 17 Nov 2016 17:13:41 +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=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A8F872966F for ; Thu, 17 Nov 2016 17:13:40 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c7QED-0001k0-Pt; Thu, 17 Nov 2016 17:12:01 +0000 Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c7QE8-0001gp-Uk for linux-arm-kernel@lists.infradead.org; Thu, 17 Nov 2016 17:11:57 +0000 Received: by mail-pg0-x241.google.com with SMTP id x23so18085604pgx.3 for ; Thu, 17 Nov 2016 09:11:36 -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; bh=CTSbT1NlJs6SCH7qXkLrRhc0DzszWZ7EH/T5ywdgu3c=; b=CzFWxdjf1fwI7bT6yGbTV4RGaOIYRoTzkoeNRUmqdu6gM7Bp1yIKWLulNTqg5NHfhD CcUTbjXJCb5hKu0Wd8nkAVB1YpMDQMzRO9HZXFiA1rIwKD2pgujOshox+p38nGVnESTt KvfPX/v3woQClmTBGhd5xBzku3mBJN0SFabeGvHbOwY9/lokeplUa93RGPOcl/Ja33Pj D+GJTSivhndccsK7dqvBGgoMh5PUrGFbU6WmwkUukqkbv2rN4rnS9FwDPdcHLTb/R5OO B2C6xRtHLeSAsagxsADUQu4MLyiMveaCBxvDFVHokwrAtg+sgvJo5MAvJJnJvRuDflG6 dgyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=CTSbT1NlJs6SCH7qXkLrRhc0DzszWZ7EH/T5ywdgu3c=; b=Mm1UMNcxPUC1kRDNdmDB89K05SlBaTjfhEiFuTcXbzMlTv98KaySe/PMzlYQlYJUFC UD/YhS4Vv6V7WPTH20JAjlvIjzH3NPUlfgoXOAqWUJ5R0ARcOQ8aJwjfU57X+XtnM5+M mUg96U/27AeyaTrbsNNmjY4/X5lUf5NGWTDgggyQ1sK86cKs4+FbYUn/x4hgj0fOfKcz Cw3X+DOfWsM8Jo+bVN+nfBIdZ0nLIEjv1Cm56+p9ZAxUSKO+E8DfYOQ7QcmObl6wW24Q 4/brOWTsPD3zVVHJMO60UKKD/E82tY3uqAo+Fm9wg5yo8h93Uw+nMvRPOSi7tIOnuoqw KjxQ== X-Gm-Message-State: ABUngvficOZSo01RaRlOyC71/85YFb7PXpBQAXP+YicTpyBER7jRthPIOWkL2WVF53Olug== X-Received: by 10.98.72.129 with SMTP id q1mr6127684pfi.169.1479402695818; Thu, 17 Nov 2016 09:11:35 -0800 (PST) Received: from localhost (port-24584.pppoe.wtnet.de. [46.59.157.190]) by smtp.gmail.com with ESMTPSA id v76sm9462104pfk.77.2016.11.17.09.11.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Nov 2016 09:11:34 -0800 (PST) From: Thierry Reding To: Thierry Reding Subject: [PATCH 1/9] arm64: tegra: Add Tegra186 support Date: Thu, 17 Nov 2016 18:11:23 +0100 Message-Id: <20161117171131.20062-1-thierry.reding@gmail.com> X-Mailer: git-send-email 2.10.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161117_091157_092196_30EDF7AC X-CRM114-Status: GOOD ( 11.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-tegra@vger.kernel.org, Stephen Warren , Alexandre Courbot , linux-arm-kernel@lists.infradead.org, Jon Hunter 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: Joseph Lo This adds the initial support of Tegra186 SoC. It provides enough to enable the serial console and boot from an initial ramdisk. Signed-off-by: Joseph Lo [treding@nvidia.com: remove leading 0 from unit-addresses] [treding@nvidia.com: remove unused nvidia,bpmp property] Signed-off-by: Thierry Reding --- arch/arm64/boot/dts/nvidia/tegra186.dtsi | 89 ++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 arch/arm64/boot/dts/nvidia/tegra186.dtsi diff --git a/arch/arm64/boot/dts/nvidia/tegra186.dtsi b/arch/arm64/boot/dts/nvidia/tegra186.dtsi new file mode 100644 index 000000000000..6cb8ac918530 --- /dev/null +++ b/arch/arm64/boot/dts/nvidia/tegra186.dtsi @@ -0,0 +1,89 @@ +#include +#include + +/ { + compatible = "nvidia,tegra186"; + interrupt-parent = <&gic>; + #address-cells = <2>; + #size-cells = <2>; + + uarta: serial@3100000 { + compatible = "nvidia,tegra186-uart", "nvidia,tegra20-uart"; + reg = <0x0 0x03100000 0x0 0x40>; + reg-shift = <2>; + interrupts = ; + status = "disabled"; + }; + + gic: interrupt-controller@3881000 { + compatible = "arm,gic-400"; + #interrupt-cells = <3>; + interrupt-controller; + reg = <0x0 0x03881000 0x0 0x1000>, + <0x0 0x03882000 0x0 0x2000>; + interrupts = ; + interrupt-parent = <&gic>; + }; + + hsp_top0: hsp@3c00000 { + compatible = "nvidia,tegra186-hsp"; + reg = <0x0 0x03c00000 0x0 0xa0000>; + interrupts = ; + interrupt-names = "doorbell"; + #mbox-cells = <2>; + status = "disabled"; + }; + + sysram@30000000 { + compatible = "nvidia,tegra186-sysram", "mmio-sram"; + reg = <0x0 0x30000000 0x0 0x50000>; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0 0x0 0x0 0x30000000 0x0 0x50000>; + + cpu_bpmp_tx: shmem@4e000 { + compatible = "nvidia,tegra186-bpmp-shmem"; + reg = <0x0 0x4e000 0x0 0x1000>; + label = "cpu-bpmp-tx"; + pool; + }; + + cpu_bpmp_rx: shmem@4f000 { + compatible = "nvidia,tegra186-bpmp-shmem"; + reg = <0x0 0x4f000 0x0 0x1000>; + label = "cpu-bpmp-rx"; + pool; + }; + }; + + bpmp: bpmp { + compatible = "nvidia,tegra186-bpmp"; + mboxes = <&hsp_top0 TEGRA_HSP_MBOX_TYPE_DB + TEGRA_HSP_DB_MASTER_BPMP>; + shmem = <&cpu_bpmp_tx &cpu_bpmp_rx>; + #clock-cells = <1>; + #reset-cells = <1>; + + bpmp_i2c: i2c { + compatible = "nvidia,tegra186-bpmp-i2c"; + nvidia,bpmp-bus-id = <5>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupts = , + , + , + ; + interrupt-parent = <&gic>; + }; +};