From patchwork Mon Jun 3 03:45:12 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: 10972165 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 E2BD36C5 for ; Mon, 3 Jun 2019 03:46:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D1022288BA for ; Mon, 3 Jun 2019 03:46:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C5124288C3; Mon, 3 Jun 2019 03:46:57 +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=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 67837288BA for ; Mon, 3 Jun 2019 03:46:57 +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=01L4RzIFlrH04PxFt1YRa4uGGsKqsu0t6azvveHXMh8=; b=Vil4DrZVKyH11t QfCCbnIvw4FSTbOFj0JdvQ2uIOydXOPzGFBrn254LRgrUmz2HoGod1HJIr3ise0ZMbma2w92jiSpv EfqjM9C5JDUURK/joj3xfWw6BbG9DJweuc3jXCVT243fuJU+3jPb6pk9sBLMLoubSRa+HM0xl3ABV ghR/Jm2mp3cvC4snYOVJaW9y9RAmEIQFxXVCf/HZV/7CMpI9TVYNanHtBViWh2NmCOQm2gIDAOLDa 6qz9OIFPJ6BX/FL9nXzv67AZeQFdKNn7SFqGMWQR5WrLq/kgt9D2evt2LTmJL3pqkA41Ucqey1aDV Hx8XwOEDYw694QAF60vA==; 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 1hXdvz-0003cw-AO; Mon, 03 Jun 2019 03:46:55 +0000 Received: from merlin.infradead.org ([205.233.59.134]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hXdvp-0003Lx-2r for linux-mediatek@bombadil.infradead.org; Mon, 03 Jun 2019 03:46:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type: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=2Nsh8lQFYxZ1lBkrz/qlmC7f5LUpUHKswZjElUU2A74=; b=maR9oKB9EOz8oDoxRSd0AjF6G0 U4Ew0OrGbDnHdi+ZhGZewGaUTeTflf1uf5ewOIxaHo9H0sZdvFN7eBpJGOg3i20V6E9WPGn57EOs3 2mqRYK6PGFQ/MQMTZA43M/qLulEn7XJUAD5YKHJeRfE06U4cxlATFdYRr2lRSdqXxIjIrqF8Iqbh8 /vDAXrVMyCnKTU8dR1cFgUyBL5X1M4GPgK1OGJaHH2/ixZfyxvPkulQvNuoBrEFgDDe7YQ+e4JEFM zb8O6BSW6N3R5iBpdVZrdSlw1ndvgQ5JpJIQ8mkRWZL4OE6+0PCO+h2hdATFfvzXGA59NnHYaLTLQ vkzf0g5A==; Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hXdvj-00007O-HP for linux-mediatek@lists.infradead.org; Mon, 03 Jun 2019 03:46:42 +0000 Received: by mail-pf1-x442.google.com with SMTP id x10so4651376pfi.0 for ; Sun, 02 Jun 2019 20:46:34 -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=2Nsh8lQFYxZ1lBkrz/qlmC7f5LUpUHKswZjElUU2A74=; b=SaLCmni6iGpfWfY98SgX0KEwfmFEgiEJWUJObZVKcEj3JOVhPeqxZOex4hGKOwXyTv ENjJ5tXWEOumRlxS1fbhu9b6ViozkxvrqT9nO3AF1G5bDzlF2qVl+pTkKfGiQltMHy8W qrdt79nnngaGqxMYo4L4aEcCsr3EDMgKR6m3Y= 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=2Nsh8lQFYxZ1lBkrz/qlmC7f5LUpUHKswZjElUU2A74=; b=VU0gB+sYcPkOuJ8IcLQq71UiaSXlImX+1vrl5vyJMKUAMoj/eryxpQt811/WVDkTk+ pqkSjWKwtSeLTbSvd1GTj3lBwudt+o7p4WwAvnhp/tMeBRVTMeYm6mwH8CD9Jyzv8wIb 60E6HEQEg6YdY6WxDksiuTNei1vhncPt3ViVKnk7PXV29b/eW+Rfj+qal+nLvlI64h3I BQP4VRtcNut6Qlhi2VoTB5Bzn6CvcMUqng+1ANezpOthT+H9qlmMhGQIkgQtOjuE0r/L SQWasty6S3PX6KR/POgUN/m5YIy3wCyZwyu76HoWFRX990NbBaCd9pG3qbpdhmB+5mxg +LDQ== X-Gm-Message-State: APjAAAUnz75VF2kRVS/gp8xdl2boihQHgjSL50Gf8eMc4F6IcMOr5OMu l51VBz/NLhJbFYk6PCwfbHnEiw== X-Google-Smtp-Source: APXvYqyE4Jqv+EBCxqiCTrbeSFOS+gUnYBAXLVGT25v8uqqhNSMVSxBUaC6uhzdJ8H3eGcBKH1F58w== X-Received: by 2002:a17:90a:25af:: with SMTP id k44mr13519004pje.122.1559533592439; Sun, 02 Jun 2019 20:46:32 -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 i73sm11878960pje.9.2019.06.02.20.46.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Jun 2019 20:46:31 -0700 (PDT) From: Pi-Hsun Shih To: Subject: [PATCH v10 7/7] arm64: dts: mt8183: add scp node Date: Mon, 3 Jun 2019 11:45:12 +0800 Message-Id: <20190603034529.154969-8-pihsun@chromium.org> X-Mailer: git-send-email 2.22.0.rc1.257.g3120a18244-goog In-Reply-To: <20190603034529.154969-1-pihsun@chromium.org> References: <20190603034529.154969-1-pihsun@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190602_234639_596185_F80BBE01 X-CRM114-Status: GOOD ( 11.43 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 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-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=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 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..133146b52904 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 0x5000>; + 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";