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: 9573235 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 9F0EA600F6 for ; Wed, 15 Feb 2017 02:26:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8F0E228441 for ; Wed, 15 Feb 2017 02:26:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 83D0428457; Wed, 15 Feb 2017 02:26:51 +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 6B3B628441 for ; Wed, 15 Feb 2017 02:26:50 +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=MKFh4Df507CFw2830/OS+W4y1y9r5i6+NTe1eMQWP7M=; b=icOmeOkivp2IPbF+hkqkZvkrgf Az30nNBRqKjT6H4glJBK6zE9JpHmfQmaOWLPnXp4haGz2m8PSW+Fy9CRoNwweHYr99OEspdXhtWOD xlbqmXBbbcpcfTCvGcBDPZzloViqaxD87qzPkCPsVGZZZcZo6d4w1Tz5JZ61GxyJxL/Se7tXCc2gv 5eiqvF98z3xGZvPZZ8bfz9QkXHHMsN7OqHW1g9MJxJhiR5/TCPNctlWLLsXdarglrjZknh3iaY8es 7Q8uTt5Od2HI/E91FGd8opq/3678FCuTk0aFNEM8y2wg4juCVVxWnG+RkDEzSbVxeQGm/I7ySZ9H6 QV766d3w==; 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 1cdpIm-0003TB-JH; Wed, 15 Feb 2017 02:26:40 +0000 Received: from mail-pf0-x236.google.com ([2607:f8b0:400e:c00::236]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cdp7j-0005ui-1D for linux-arm-kernel@lists.infradead.org; Wed, 15 Feb 2017 02:15:17 +0000 Received: by mail-pf0-x236.google.com with SMTP id e4so27192416pfg.1 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=LzzxFSrDKFvtMZBXxJ8Axo+ozKcHIUomP2ZTqyDF5ErbA/Rb2lD4pPZv6O1wZtrzy0 He1VMoBWQO6VQ5mWQU0IqGUbiFbbt1SPBuyxPsO8SWxkIw6AF1z/mG68hw+/haHiCCfg QzOxOr/p6oFT8TdHbdYpVAKdg37eA6iy5Yva6vzbqkdGqGaqiX7sVxNHMUnXcwS56I6Y VUijgiKI9RbsBGLFTTR2gDPJ1d1eiLpnOp34JAudl6oijpcOB1LaspSSa8Xhx5O6UQD5 vmUQ5VbWAjqdbfGm9YItLj3WiAyipmREuX8uSg72yNxkeiwWRX+11ysEzul+IEfoDcZK bCwg== X-Gm-Message-State: AMke39n4pyR2BU5tZHb2JRoL/g9kxkw6owEk+zFt8+LQIjDyBNOWCeJz9A3N3jAfvEFCtSZR 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_266676_571E38D3 X-CRM114-Status: GOOD ( 15.44 ) 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: 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 , Daniel Kurtz , "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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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>; + }; + }; +};