From patchwork Thu Aug 15 07:16:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pi-Hsun Shih X-Patchwork-Id: 11095145 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 087481395 for ; Thu, 15 Aug 2019 07:18:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E408B2887B for ; Thu, 15 Aug 2019 07:18:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D855A28884; Thu, 15 Aug 2019 07:18:49 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=unavailable 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 854412887B for ; Thu, 15 Aug 2019 07:18:49 +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=h1thgkxVMLZbcaocicUFGZwPk838Dz3lkEUdSojMUig=; b=Su3o2XRkW4Dk3V HP98SCkHgVS30cGq0WsRnqZckvI8x+U1NNuBuebxl/HLymd9Y93YnNDQ9no/qNWrWQ443L1nGwP+S k9EQJZxMztzLjsOYcjI+sLo80N7t6yKXmKIVIWrpT9pZ6UmyRpakhU5Rp07WzE/nepjXnrJ9XiPyx OPir2V+sCJvFrX+22NlYT2T4e0leXPufG3J6uDDb2WeB+rgGXmaXxyah1YEK1uf+WJU+8JwnF/DR9 VUVidoPXXCEoLvppLZwHr86c7GSsQJkO8spPRJbkotBvlk5VczCSZ+JMNasYRTqviiI9xjiO8Sde9 ANfrEB9XA0yTp4VDK9yg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hyA24-0006DT-Nu; Thu, 15 Aug 2019 07:18:48 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hyA0K-0004rG-3w for linux-arm-kernel@lists.infradead.org; Thu, 15 Aug 2019 07:17:02 +0000 Received: by mail-pf1-x441.google.com with SMTP id w16so932740pfn.7 for ; Thu, 15 Aug 2019 00:17:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FbCBYSU1nfsHewNHQ4KTvWY4A7SNrbqlgoUU3L19JX8=; b=IxZwHeqpp9zQVfhMHP7FAyb64pb90U2hrlKJLMwF1tO8f3c1V/fwyliKqpRh1XVpQ+ yskXJlRbxmnw3DVlWpxnE7cT8cFVhHtAq0FPvJC7iMXKSUQEYJVJIUaM33axRaJ0mJ8m faaw1WLv4b1ykDDYFxq6CaejK3m4c0GUfxiRE= 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=FbCBYSU1nfsHewNHQ4KTvWY4A7SNrbqlgoUU3L19JX8=; b=QcNSVqEIj15UaKLkuBOp3Mt7E9putZDkWhVY7QmCDNHxX+kH+rYIW1zNKg7r+kv8ak 9RSmgvdrMRuqz15mDu5FU1YbFCNIjHurEhLkpxWNCRPYZwa5UuSAi39iZdyHb//x//L1 PkUVtjiVnNBRecjEnmtlc0jG4yPKbCHveY2EyGKS+Qq7eHwjoDNimfhJ/M/FRRbq2SRN UMqXXarNa4HrlMTBV9bI11HfYTeE6zKYQVOaQQOa48kSx7H+EIWmzy13F+5ZLXSx4gNK AU9ka1yXiTUIaC3fCQF6hziPfbEAT8t3JfusI9BrUEH+mcSGg2A27oIYghX8V3QVWV8U fzJg== X-Gm-Message-State: APjAAAVHs8IpcK+1WTpCUsFncG0MRO1/AiROf4fPqwRxOD2fdr43Wlxj xfCfAK2rOzSxWaXZgGqL4+C+hQO42gM= X-Google-Smtp-Source: APXvYqwun6YIKdichg14vWTQWHLP/MYNMqelFCbz1cqJZWSpnJ542WlL0eGe1uMKSI2tcciOCWBaAQ== X-Received: by 2002:a63:195f:: with SMTP id 31mr2476394pgz.225.1565853419431; Thu, 15 Aug 2019 00:16:59 -0700 (PDT) Received: from pihsun-z840.tpe.corp.google.com ([2401:fa00:1:10:7889:7a43:f899:134c]) by smtp.googlemail.com with ESMTPSA id v6sm1768727pff.78.2019.08.15.00.16.57 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 15 Aug 2019 00:16:58 -0700 (PDT) From: Pi-Hsun Shih To: Subject: [PATCH v16 5/5] arm64: dts: mt8183: add scp node Date: Thu, 15 Aug 2019 15:16:29 +0800 Message-Id: <20190815071635.168671-6-pihsun@chromium.org> X-Mailer: git-send-email 2.23.0.rc1.153.gdeed80330f-goog In-Reply-To: <20190815071635.168671-1-pihsun@chromium.org> References: <20190815071635.168671-1-pihsun@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190815_001700_173342_42799087 X-CRM114-Status: GOOD ( 12.12 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Erin Lo , open list , Rob Herring , "moderated list:ARM/Mediatek SoC support" , Pi-Hsun Shih , Matthias Brugger , Eddie Huang , "moderated list:ARM/Mediatek SoC support" 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: Eddie Huang Add scp node to mt8183 and mt8183-evb Signed-off-by: Erin Lo Signed-off-by: Pi-Hsun Shih Signed-off-by: Eddie Huang --- Changes from v15, v14: - No change. Changes from v13: - Change the size of the cfg register region. Changes from v12, v11, v10: - No change. Changes from v9: - Remove extra reserve-memory-vpu_share node. Changes from v8: - New patch. --- arch/arm64/boot/dts/mediatek/mt8183-evb.dts | 11 +++++++++++ arch/arm64/boot/dts/mediatek/mt8183.dtsi | 12 ++++++++++++ 2 files changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts index d8e555cbb5d3..e46e34ce3159 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts +++ b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts @@ -24,6 +24,17 @@ chosen { stdout-path = "serial0:921600n8"; }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + scp_mem_reserved: scp_mem_region { + compatible = "shared-dma-pool"; + reg = <0 0x50000000 0 0x2900000>; + no-map; + }; + }; }; &auxadc { diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index c2749c4631bc..871754c2f477 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi @@ -254,6 +254,18 @@ clock-names = "spi", "wrap"; }; + scp: scp@10500000 { + compatible = "mediatek,mt8183-scp"; + reg = <0 0x10500000 0 0x80000>, + <0 0x105c0000 0 0x19080>; + reg-names = "sram", "cfg"; + interrupts = ; + clocks = <&infracfg CLK_INFRA_SCPSYS>; + clock-names = "main"; + memory-region = <&scp_mem_reserved>; + status = "disabled"; + }; + auxadc: auxadc@11001000 { compatible = "mediatek,mt8183-auxadc", "mediatek,mt8173-auxadc";