From patchwork Fri Oct 26 11:16:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 10657245 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 16C4F14BD for ; Fri, 26 Oct 2018 11:19:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 00CAA2BF5A for ; Fri, 26 Oct 2018 11:19:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E43932BF66; Fri, 26 Oct 2018 11:19:56 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 797C12BF5A for ; Fri, 26 Oct 2018 11:19:56 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=czZHWpTHUUUn4zR22SIJXNDdpcjU/OaWVXHclMluyDo=; b=LA/7JmQOgQzOe6 Pcoxf2awE1k5guf4ruunBl5kPEva/KUIVIL+MJ90TpXQNcJb1Zkx2im+sWeWlySyMVZJRL2gBnECz B8EMsnSALcpq3KWnAqbtgey0doO+YeJZb4omnNimyv6AY6yH9iUVrAfc91nrDKyIV1R5MhpcEbm2U hQs4ja0Dkm5exlbGPfN4F7j/SBsZidpoNOxn6Q5g0oB5uDrW02CKCuGxyBrW75v0rtUTUXZA1ff6b HlA3vyQ8rpfRRRCIoKvLT11XtRARrMOcNNr5FsSJX9ZEfYrzs73vtEZC2bHj6Ha84K/BzhlcHsc7e v+Sni+YeirC8tEA55qRQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gG09g-0004sc-Ap; Fri, 26 Oct 2018 11:19:52 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gG06q-0003g5-Od for linux-arm-kernel@lists.infradead.org; Fri, 26 Oct 2018 11:17:07 +0000 Received: by mail-wr1-x441.google.com with SMTP id l6-v6so956928wrt.1 for ; Fri, 26 Oct 2018 04:16:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KjXTlb8qK+gg2OxZSgtIJOZvzKIY8RWxIBzJQUft5ac=; b=t9lBg1rdvjGf728DRA88/EWUliUgK+9j1kmSzJk9ylUsQasLDX+0W7bgZ63ejlgYxB ugaMwnmQ4k8N22dQ3LkmtauzaVKRTB/3T0y/zYyQvOboo8BrqsFcHqRw1nZlcwqQI5DL klDPsvEB0nlIR/ahoEsYWOznitNM+1iAMcnXaSV5vCY2xXuxHXM19ldCX0TSn7JBV5Co LL2some5UbfM1O1K07idOM/FyEIhdhe/C+0I+WbZ0ECerRYNXVhoxKhsRWzo+kK6RyAH pERg1jd+/Rr9olWFoFEqU4UQgqZMHlnzv/8epCi1mZbbH8tGlCzmQ1PrKMibDNTgpB2g RbSQ== 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:mime-version:content-transfer-encoding; bh=KjXTlb8qK+gg2OxZSgtIJOZvzKIY8RWxIBzJQUft5ac=; b=CFfSOABVEztmaQp2mUWyZgiHJVOv/DsoljuUkrbxpIwFvZzRJ07tMF61kdOml6FVmd 7OuwL9EMaAC0cfvxFPPqm1dx/zB9x5Ay/6gNxK1eSds/5ekJBwZHJr7bHusqWzzSeo+f Yg32zDjfyUzt1afugLbApwWNBZcrxHukaFIfxN+va0VTeqAI3fi7cwMbQf+tB9fbmyl8 DJVUc7qiugE7q+exqL5Irm0/GFnpnd6fZsL5BdzOh8bndqrv+pMvP/4ci5AVVyS72sC+ +zkeyD4URamiRVv2wJMWkowqUC/KfHM3GGFPFQzkN2h9nM8LQws0fJJzjahhz3LV2ZIN NikQ== X-Gm-Message-State: AGRZ1gJo5/yaTfC1j2a1tQ4HDGwtHUuf1X07XW4atJWgq21n52+u566u xnvKbdnq6uNWUjIC8fm7VKw= X-Google-Smtp-Source: AJdET5fV7TABOAvk6FyuKKKc6ge5+0h8BO9Hdo/tZdzWW6A3rSgb3o+irg/H0xMZrSxB7dVijAmpXA== X-Received: by 2002:adf:b716:: with SMTP id l22-v6mr5781182wre.157.1540552615106; Fri, 26 Oct 2018 04:16:55 -0700 (PDT) Received: from localhost (pD9E511F8.dip0.t-ipconnect.de. [217.229.17.248]) by smtp.gmail.com with ESMTPSA id y195-v6sm4485038wme.22.2018.10.26.04.16.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 Oct 2018 04:16:54 -0700 (PDT) From: Thierry Reding To: Thierry Reding , Jassi Brar , Greg Kroah-Hartman Subject: [PATCH 8/9] arm64: tegra: Add nodes for TCU on Tegra194 Date: Fri, 26 Oct 2018 13:16:37 +0200 Message-Id: <20181026111638.10759-9-thierry.reding@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181026111638.10759-1-thierry.reding@gmail.com> References: <20181026111638.10759-1-thierry.reding@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181026_041656_856186_8AD6E7E2 X-CRM114-Status: GOOD ( 15.11 ) 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, linux-kernel@vger.kernel.org, Mika Liljeberg , Mikko Perttunen , Timo Alho , linux-serial@vger.kernel.org, Jiri Slaby , linux-tegra@vger.kernel.org, Pekka Pessi , Jon Hunter , linux-arm-kernel@lists.infradead.org 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: Mikko Perttunen Add nodes required for communication through the Tegra Combined UART. This includes the AON HSP instance, addition of shared interrupts for the TOP0 HSP instance, and finally the TCU node itself. Also mark the HSP instances as compatible to tegra194-hsp, as the hardware is not identical but is compatible to tegra186-hsp. Signed-off-by: Mikko Perttunen Acked-by: Jon Hunter Signed-off-by: Thierry Reding --- arch/arm64/boot/dts/nvidia/tegra194.dtsi | 38 ++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/nvidia/tegra194.dtsi b/arch/arm64/boot/dts/nvidia/tegra194.dtsi index c2091bb16546..521d13be0457 100644 --- a/arch/arm64/boot/dts/nvidia/tegra194.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra194.dtsi @@ -340,10 +340,35 @@ }; hsp_top0: hsp@3c00000 { - compatible = "nvidia,tegra186-hsp"; + compatible = "nvidia,tegra194-hsp", "nvidia,tegra186-hsp"; reg = <0x03c00000 0xa0000>; - interrupts = ; - interrupt-names = "doorbell"; + interrupts = , + , + , + , + , + , + , + , + ; + interrupt-names = "doorbell", "shared0", "shared1", "shared2", + "shared3", "shared4", "shared5", "shared6", + "shared7"; + #mbox-cells = <2>; + }; + + hsp_aon: hsp@c150000 { + compatible = "nvidia,tegra194-hsp", "nvidia,tegra186-hsp"; + reg = <0x0c150000 0xa0000>; + interrupts = , + , + , + ; + /* + * Shared interrupt 0 is routed only to AON/SPE, so + * we only have 4 shared interrupts for the CCPLEX. + */ + interrupt-names = "shared1", "shared2", "shared3", "shared4"; #mbox-cells = <2>; }; @@ -531,6 +556,13 @@ method = "smc"; }; + tcu: tcu { + compatible = "nvidia,tegra194-tcu"; + mboxes = <&hsp_top0 TEGRA_HSP_MBOX_TYPE_SM 0>, + <&hsp_aon TEGRA_HSP_MBOX_TYPE_SM 1>; + mbox-names = "rx", "tx"; + }; + timer { compatible = "arm,armv8-timer"; interrupts =