From patchwork Thu Jun 13 04:06:52 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: 10991085 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 E9F0D1515 for ; Thu, 13 Jun 2019 04:09:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D23B028A52 for ; Thu, 13 Jun 2019 04:09:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C575C28A5C; Thu, 13 Jun 2019 04:09:45 +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 66AAE28A52 for ; Thu, 13 Jun 2019 04:09:45 +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=m1/pigrzw+cZOmXt80qm3JveRYPiKSEmQJL6Sc5H14w=; b=UncdS7yBT3zHk9 Qr9ql3k/0hwu1cYPAdomLD5lL7OPl5yN/nITo7elauUwylhh9uw+vXZC9Q+o32YXYPld/EWPSg9dn OGzfaJowqzNc7lqzb6C4rR0Osm/gvaWAxxrJDztpVOZ/hUc0XyXPaB/svxnsSleGUaoXxZfeOJ0Le GBUJ8ZwrNZejIjdVKjrwEQ+gMmm+Y79nLrwRdcu9tqMlQJ4d5MPPXxQHybbJBJbnMvhC+fcbq8Tt3 zZ2lH3U9DoiZpr8c3YfUWgDLJXq+ZNR35i3dBabrS8+2Bs74pkYo/7Dsi7fs5fZXYM6bj8niIQM8x 7peuT9kQdQyQV2Kxoaag==; 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 1hbH3S-0007qF-WD; Thu, 13 Jun 2019 04:09:39 +0000 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hbH1i-0006Bl-GH for linux-arm-kernel@lists.infradead.org; Thu, 13 Jun 2019 04:07:54 +0000 Received: by mail-pg1-x541.google.com with SMTP id k187so9630350pga.0 for ; Wed, 12 Jun 2019 21:07:50 -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=lfGAIiirWl0nq0xQZNMDSMKFfgaKJNsts8bTk+SJ4Kc=; b=kIpFm8Uc3gMN7cY/f4FOgPfIeA/9vYsgAIqeb8GD6KvPMC2lWIZKOD6s2OQbP4fw0U 8AAVUUUiKsgfEoRwZRyQc7YeuxBcsWkB5ZmmTWNWMKl00ONQz6jkp53/jq0UtSOcWRCf S+EMJdIuhtotXqDbY2dYGqhPIP3hkQ6oE+dVk= 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=lfGAIiirWl0nq0xQZNMDSMKFfgaKJNsts8bTk+SJ4Kc=; b=MwFRWWA5OB4QV+zlohGK3bjs+HF/KebfEufvvnFTQDDTa26C+5hVzdldk17XWl+O5n se+Blc5CCpsumF123ElP0zo4Eb/vjKPGdUdfKmyf1FxrsyNP7Jmmvg3c3+qOEcTTjMsD ryB7YifRRQ3BBNHfoDONxxK7/i96+7rMFOQshBodguU6i8xVm+laYScMCTbkZd0V7kue NBmulKxnNhAOeztY7EqAnx6grz/3od2uQLXBrlV7BPibFCJUsG3kmsKqgqnTQ3NmWNK/ tRwNGfUhLVB3UEbKTdJulRDJ4sGmo2qEbfQSe/nr+K4Iq/cr3kRnOOCr+vZUbnv1OWvO 0KNQ== X-Gm-Message-State: APjAAAWqnst+CHnqNom98S1Pq6nX8JuLBrAY75Akxx3rBMJ3RFJHZ7YI 4dQw3dmC+0DfFjt26Eweyx9wRA== X-Google-Smtp-Source: APXvYqzA8cwBTsrR0gt9uDW70cCt1Y7F0MO9epqJK78JcRhYLfxAGcVRCaUHubB2xwG8abq4iqMeZQ== X-Received: by 2002:a17:90a:a601:: with SMTP id c1mr2704985pjq.24.1560398869389; Wed, 12 Jun 2019 21:07:49 -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 a13sm956849pgh.6.2019.06.12.21.07.47 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 12 Jun 2019 21:07:48 -0700 (PDT) From: Pi-Hsun Shih To: Subject: [PATCH v11 5/5] arm64: dts: mt8183: add scp node Date: Thu, 13 Jun 2019 12:06:52 +0800 Message-Id: <20190613040708.97488-6-pihsun@chromium.org> X-Mailer: git-send-email 2.22.0.rc2.383.gf4fbbf30c2-goog In-Reply-To: <20190613040708.97488-1-pihsun@chromium.org> References: <20190613040708.97488-1-pihsun@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190612_210750_612571_37F9A3DD X-CRM114-Status: GOOD ( 11.46 ) 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 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..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";