From patchwork Fri Jul 1 07:36:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 9209369 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 1544A60221 for ; Fri, 1 Jul 2016 07:37:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 08E14284FA for ; Fri, 1 Jul 2016 07:37:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F0BFA28533; Fri, 1 Jul 2016 07:37:05 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8EE96284FA for ; Fri, 1 Jul 2016 07:37:05 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bIt0b-00051X-6R; Fri, 01 Jul 2016 07:37:05 +0000 Received: from mail-pf0-f196.google.com ([209.85.192.196]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bIt0P-0004ps-Jg; Fri, 01 Jul 2016 07:36:54 +0000 Received: by mail-pf0-f196.google.com with SMTP id 66so9428368pfy.1; Fri, 01 Jul 2016 00:36:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=0nuaQ/azakFBIiaTTDF9VhXyVpDfkjhBmOs78FEZm4c=; b=cZ28oB185UmNOzcSwLNnbh3IpyKYKgPuYte06eLmwVWlYMLO202d92xXRS9KdRz1JK oGP68cyg/1ZX4MpDQGM2V8lS8Y/GN7iHQxeDQv4Npg/ui2vN9L2f6ZoiLrrb+L6Fk61E GQssYxWcN1mjMbU8ANh5Ln6tOhVaVhuDaYs4CB0GAesPV6fa9WU1f+QyRqF5CChiK02K TnAL/8gS+WrM0Ee8XsSLg6MT+nNzp2nLA//KmCCKrc99Bqnoq8OxEF7+xpwzKZ9b72cN UrpGIaAGtwZrkhcl3XC8cCRbvtKsiBdZxNBiNMoCwlkmgBR2JFZe3ERBgbKdn5EHuUc/ 3IEw== X-Gm-Message-State: ALyK8tLTEYQLrXS2GquF7j9R3Tb5VlcKndiUNWi3/suBUbxONL8jHEtOAh7jLzUm93f2iQ== X-Received: by 10.98.39.68 with SMTP id n65mr29165781pfn.153.1467358593839; Fri, 01 Jul 2016 00:36:33 -0700 (PDT) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id w27sm2952933pfa.54.2016.07.01.00.36.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 01 Jul 2016 00:36:33 -0700 (PDT) From: Caesar Wang To: Marc Zyngier , Heiko Stuebner Subject: [PATCH 2/2] arm64: dts: rockchip: support the pmu node for rk3399 Date: Fri, 1 Jul 2016 15:36:10 +0800 Message-Id: <1467358570-24417-3-git-send-email-wxt@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1467358570-24417-1-git-send-email-wxt@rock-chips.com> References: <1467358570-24417-1-git-send-email-wxt@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160701_003653_726257_9A982F98 X-CRM114-Status: UNSURE ( 9.48 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: huangtao@rock-chips.com, Mark Rutland , Masahiro Yamada , Catalin Marinas , Brian Norris , Will Deacon , dianders@chromium.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, Rob Herring , David Wu , cf@rock-chips.com, briannorris@google.com, jay.xu@rock-chips.com, linux-arm-kernel@lists.infradead.org, Caesar Wang MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP As the Marc posted the patches [0] to support Partitioning per-cpu interrupts. Let's add this patch to match it on rk3399 SoCs. [0]: https://lkml.org/lkml/2016/4/11/182 Signed-off-by: Caesar Wang Cc: Heiko Stuebner Cc: Will Deacon Cc: Marc Zyngier CC: linux-arm-kernel@lists.infradead.org --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 8f0a069..b260f62 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -165,6 +165,22 @@ ; }; + pmu_a53 { + compatible = "arm,cortex-a53-pmu"; + interrupts = ; + interrupt-affinity = <&cpu_l0>, + <&cpu_l1>, + <&cpu_l2>, + <&cpu_l3>; + }; + + pmu_a72 { + compatible = "arm,cortex-a72-pmu"; + interrupts = ; + interrupt-affinity = <&cpu_b0>, + <&cpu_b1>; + }; + xin24m: xin24m { compatible = "fixed-clock"; clock-frequency = <24000000>; @@ -296,6 +312,16 @@ msi-controller; reg = <0x0 0xfee20000 0x0 0x20000>; }; + + ppi-partitions { + part0: interrupt-partition-0 { + affinity = <&cpu_l0 &cpu_l1 &cpu_l2 &cpu_l3>; + }; + + part1: interrupt-partition-1 { + affinity = <&cpu_b0 &cpu_b1>; + }; + }; }; i2c1: i2c@ff110000 {