From patchwork Wed Feb 15 02:13:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Kurtz X-Patchwork-Id: 9573213 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 4297E6045F for ; Wed, 15 Feb 2017 02:15:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3471628420 for ; Wed, 15 Feb 2017 02:15:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2927E28448; Wed, 15 Feb 2017 02:15:42 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 B57EC28420 for ; Wed, 15 Feb 2017 02:15:41 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=N8h8EUKe+X3GZk3y19nsO+57lBDASVLyHJaPBo7zEU0=; b=dLc7prScP6qb4VcJNWhSDdnn1s zai9z5wN8RhmeimGo6HRg2YmEGie1b6IBI4TaduZOjfzTKldPO6spcGFYsQ2A4gvHmletypadQadY JEBIMBN9dr4VnrGjygZBlej9gqOunMqLZJ3ozWFG4pwVlbUSWlScqTQBmdV/bjEztSjb/+12HW8TY MT7mjrFovFWjaiJXQPF8WndSLhG+TCD2Oj/H1aofjpCtq5dLBXDVlqQEaRnzNrmSaIXhZkrdBDfar 6xZbztji7W0tERO2KTG2351r8DAT5oH05lF+Ykexzd3QAl+QD9dVRN6vHJH4sONzOpF4Yr+xKhZby ulco0OxA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cdp89-0007Vo-39; Wed, 15 Feb 2017 02:15:41 +0000 Received: from mail-pf0-x229.google.com ([2607:f8b0:400e:c00::229]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cdp7j-0005uh-1m for linux-mediatek@lists.infradead.org; Wed, 15 Feb 2017 02:15:17 +0000 Received: by mail-pf0-x229.google.com with SMTP id 202so24134965pfx.2 for ; Tue, 14 Feb 2017 18:14:54 -0800 (PST) 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; bh=jCVt/tCYZn8mTnr6H2af5i8rjHx3Tbdg2dZAF1A3g1A=; b=ACVSIxBd/LKhf2leBfHvjIy2vIRdinrxwc/0iIpK4ZxBBTSa1C1324rco24SoxGCyu coj6CIgX2C2kjo8pZNF9xMMsGGYFtewUMEkKYZG2dAFprnGI8k+jHZwnOMA7VHtlNvYX 7KOrjjU+p9gD11OHzVBC+akPfEj9rcXt36x/U= 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; bh=jCVt/tCYZn8mTnr6H2af5i8rjHx3Tbdg2dZAF1A3g1A=; b=kb247f1nmi8ReyYJD8ZLnx6wcmnr11NVVTtiPaDW+Tzj1widFbOZT9gAsIuNb0/EyJ vKnTyd8CP8n2o7Uykk945Pr7Bt/og3sD2i3SDNJQwbQLFpTN0MUPoM9MPS444WPYjjMO WPoTEI5gsD3CChKpjeWxLEnNI57Bw0O0pB53V76szSooUsxTBJj1ZNVPWmsnUCd6TMg9 lrxQKkugDTCbvf0I9G+f0e1rYi0c1nU/IpsTmTfBYZNbXFrA8n6l/8Ak/AiQfZ4hGZIT pgkpaIoN6iiIvEntNYYwDUswOEm4wZRSNCkHF7keFqOVcFMDDl0oYw/RPM7JgvxsJcrf o3KQ== X-Gm-Message-State: AMke39nE18lx610awPjCGcRFrEYfuQhulI5FqcLKO7H0gt7JyLL9zEl4PsWA7Skrx0Ch42Y/ X-Received: by 10.84.191.129 with SMTP id a1mr39831927pld.62.1487124893642; Tue, 14 Feb 2017 18:14:53 -0800 (PST) Received: from bigbertha.roam.corp.google.com ([43.252.149.11]) by smtp.gmail.com with ESMTPSA id p4sm3495187pgd.50.2017.02.14.18.14.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Feb 2017 18:14:53 -0800 (PST) From: Daniel Kurtz To: Subject: [PATCH 2/2] arm64: dts: mediatek: Add mt8176 device tree Date: Wed, 15 Feb 2017 10:13:57 +0800 Message-Id: <20170215021405.18689-2-djkurtz@chromium.org> X-Mailer: git-send-email 2.11.0.483.g087da7b7c-goog In-Reply-To: <20170215021405.18689-1-djkurtz@chromium.org> References: <1486445710-40140-1-git-send-email-yidi.lin@mediatek.com> <20170215021405.18689-1-djkurtz@chromium.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170214_181515_264484_92D61220 X-CRM114-Status: GOOD ( 13.98 ) 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 , Andrew-CT Chen , "moderated list:ARM/Mediatek SoC support" , Tiffany Lin , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Catalin Marinas , Will Deacon , open list , "dawei.chien@mediatek.com" , CK Hu , Rob Herring , Yidi Lin , Matthias Brugger , Hans Verkuil , Mauro Carvalho Chehab , "moderated list:ARM64 PORT AARCH64 ARCHITECTURE" MIME-Version: 1.0 Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The MT8176 is a member of the MT817x family of SoCs. Its device tree inherits from mt817x, and only describes the mt8176 specific cpu map and cooling contributions. Signed-off-by: Yidi Lin Signed-off-by: Daniel Kurtz --- arch/arm64/boot/dts/mediatek/mt8176.dtsi | 107 +++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt8176.dtsi diff --git a/arch/arm64/boot/dts/mediatek/mt8176.dtsi b/arch/arm64/boot/dts/mediatek/mt8176.dtsi new file mode 100644 index 000000000000..79a99ba12ba0 --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8176.dtsi @@ -0,0 +1,107 @@ +/* + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include "mt817x.dtsi" + +/ { + compatible = "mediatek,mt8176"; +}; + +&cpus { + cpu-map { + cluster0 { + core0 { + cpu = <&cpu0>; + }; + core1 { + cpu = <&cpu1>; + }; + core2 { + cpu = <&cpu2>; + }; + core3 { + cpu = <&cpu3>; + }; + }; + + cluster1 { + core0 { + cpu = <&cpu4>; + }; + core1 { + cpu = <&cpu5>; + }; + }; + }; + + cpu0: cpu@0 { + device_type = "cpu"; + compatible = "arm,cortex-a53"; + reg = <0x000>; + enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP_0>; + }; + + cpu1: cpu@1 { + device_type = "cpu"; + compatible = "arm,cortex-a53"; + reg = <0x001>; + enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP_0>; + }; + + cpu2: cpu@2 { + device_type = "cpu"; + compatible = "arm,cortex-a53"; + reg = <0x002>; + enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP_0>; + }; + + cpu3: cpu@3 { + device_type = "cpu"; + compatible = "arm,cortex-a53"; + reg = <0x003>; + enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP_0>; + }; + + cpu4: cpu@100 { + device_type = "cpu"; + compatible = "arm,cortex-a57"; + reg = <0x100>; + enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP_0>; + }; + + cpu5: cpu@101 { + device_type = "cpu"; + compatible = "arm,cortex-a57"; + reg = <0x101>; + enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP_0>; + }; +}; + +&cpu_thermal { + cooling-maps { + map@0 { + trip = <&target>; + cooling-device = <&cpu0 0 0>; + contribution = <3072>; + }; + map@1 { + trip = <&target>; + cooling-device = <&cpu4 0 0>; + contribution = <1024>; + }; + }; +};