From patchwork Thu Aug 10 02:26:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 109766 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp1717984qge; Wed, 9 Aug 2017 19:29:30 -0700 (PDT) X-Received: by 10.99.1.151 with SMTP id 145mr9720165pgb.402.1502332170858; Wed, 09 Aug 2017 19:29:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502332170; cv=none; d=google.com; s=arc-20160816; b=BOd3iNp0PJNgGBgeJgKAD8zsEMwoB9rSL7YEjAPtZ9YmgUjHXEqpq25sVrJ+TBGMLK glVQfG7olfnr64gy3pwCd6VpmlB27kpcVODSCJhbcdQr9zDlruh5oP53yRsiUlOSv9Em wjsSqnlwLL4SsCZ68r2VJtqNr8BwJe0S6jVm/2Ewpy7MSlTISXXySjVQG2rlzQXwv1yd mY1dSXvTI0J0tdxT8CokrHUFJE/YS87DQpDLMuwyFMlaJIgoVmq/0m+OZn860pP0CO9r TO8/AF2G0omm7nIA1QRBlqEu53krP4wmh5sthUgHpTnaOdvkuF4rTqLOhTHxmpKBiGle S0Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=QcvDZIkz6J6kLMUy9UW06wuVNlh7gPTrkCmGkZI0Hfc=; b=SfHiH8YliuJ2YYD7TO4Ugisz79vPtPHBiE6Y5cFXw8B0RuYesJv+xhKEyV0SBTodCa 7Tuo5JweYZdilnQhIoKoT3yTgGFje6CRiYlioxo2Sao5W1JHF7CPhLyAhtZQwVKYusKM RfgIab0cZervsgOTwVusuVGrlChSu95RpzeebcZdqFSRURVEMBATYn9Z7P1j41ZUO9xK 4Si1VGcO218yejsJwukVC06Pf1s7I6J3q+IfitHK/dWTcfQ7XZShyXHOv6roflhb0GCy /P2cAOC7snijscKunmRMK08qLLqTi2svovTLkRPasRufhBdfmSkM0wrDPn9db0n1fZbO ZO/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=F7xknfoV; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 73si3760780pld.154.2017.08.09.19.29.30; Wed, 09 Aug 2017 19:29:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=F7xknfoV; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752547AbdHJC33 (ORCPT + 6 others); Wed, 9 Aug 2017 22:29:29 -0400 Received: from mail-pf0-f174.google.com ([209.85.192.174]:34537 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752192AbdHJC0v (ORCPT ); Wed, 9 Aug 2017 22:26:51 -0400 Received: by mail-pf0-f174.google.com with SMTP id o86so35237199pfj.1 for ; Wed, 09 Aug 2017 19:26:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Ncg8cTa9krJFJEx97Y7xwDrCg2+9MJGZYRzRB/q9pCc=; b=F7xknfoVMLQKCU36ZTv0tOG0BGOew/lcicDLMoq2nRG7Ux+cLl7vzczOCIveAwyW5+ QRLdSMjWe/TV+6n6SVJ+OcDPgAlljb6kR+Ryo73/5RwGDUiQD+74JbNzBej5pIR/X9c0 509taqANt6R1egpX3AQpcy3pIW7E5je8Zqyk4= 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=Ncg8cTa9krJFJEx97Y7xwDrCg2+9MJGZYRzRB/q9pCc=; b=jCT4sR3xY8Od+r89jwSGq2FTEc49MFF0Jz1W5M9rOkcgnLVQnkOWkPlvGLCcENB4Bj UnUh5PMsDUbgN2zKqFKRvaSFluBA3nuvPoXXM49YNT7qWktI31qlQk2zz4ywMiHEuyrT tCWgm0pCCqbUUfBwugslUmuM0zWnDSIqCPkP8K1HCCQi4QSbtH14LocC0PmnOx9rpdiM RJrIqjrMh/nwsfYBaQXDRzUBheWt5H32jo+U8Mx34k9RP2DLlhF7ET9UVLqti2z6hPpg 0q5Iwdw/UaF8MfrLqgJmYP04EQriFZha0WxxZCxA9JkZX+k5gHmYSdF8fJo9tdG0Jl6L BTbQ== X-Gm-Message-State: AHYfb5gzT9w1/9jN8Xw3gpG50Z85alkwwSuvTcCFTFsDgFjLfj0lFgTj 7WwBj+BG1OuuFwe2 X-Received: by 10.98.27.206 with SMTP id b197mr10372446pfb.149.1502332010990; Wed, 09 Aug 2017 19:26:50 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.41.135.55]) by smtp.gmail.com with ESMTPSA id s11sm7789166pgr.53.2017.08.09.19.26.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Aug 2017 19:26:50 -0700 (PDT) From: Guodong Xu To: xuwei5@hisilicon.com, robh+dt@kernel.org, mark.rutland@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, keescook@chromium.org, anton@enomsg.org, ccross@android.com, tony.luck@intel.com Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, YiPing Xu , Zhong Kaihua , Leo Yan Subject: [PATCH v2 3/9] arm64: dts: hi3660: add pmu dt node for hi3660 Date: Thu, 10 Aug 2017 10:26:09 +0800 Message-Id: <20170810022615.19204-4-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170810022615.19204-1-guodong.xu@linaro.org> References: <20170810022615.19204-1-guodong.xu@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: YiPing Xu Add pmu dt node for hi3660 Signed-off-by: YiPing Xu Signed-off-by: Zhong Kaihua Signed-off-by: Leo Yan Tested-by: Jumana Mundichipparakkal --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) -- 2.10.2 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi index 1cdd03b..5fd5686 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi @@ -202,6 +202,26 @@ IRQ_TYPE_LEVEL_HIGH)>; }; + pmu { + compatible = "arm,armv8-pmuv3"; + interrupts = , + , + , + , + , + , + , + ; + interrupt-affinity = <&cpu0>, + <&cpu1>, + <&cpu2>, + <&cpu3>, + <&cpu4>, + <&cpu5>, + <&cpu6>, + <&cpu7>; + }; + timer { compatible = "arm,armv8-timer"; interrupt-parent = <&gic>; From patchwork Thu Aug 10 02:26:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 109760 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp1716043qge; Wed, 9 Aug 2017 19:27:05 -0700 (PDT) X-Received: by 10.99.126.86 with SMTP id o22mr9842645pgn.367.1502332024907; Wed, 09 Aug 2017 19:27:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502332024; cv=none; d=google.com; s=arc-20160816; b=kK0iXdPbILi2VG+/Uu6NKmjtVCHlhzVUpMBz2Z+wKdPG/P2lchr3yOEjHGrSeguhcM UkwUI/NeXcy0q49yspP+JdguxaJqzvQVvKyVl49uVc2xodDEniB6F4TmS4giC1WQrYfZ EchPBmFaoKOGlNR1p65No1kh9/IEG6jZ5OmE8SWB4GbxckpZkVZC89BmohDeSPvsMqU3 2wLi7k+xDbvlS7eVYdVHWPlXIil6XJ2SC5xAMwSV7ENH587KMP/Blnxgw5vnr2p2WwoE 4tcHELnDgL8PBivFLvIPLlJ4q5nIzVY6PLyIuBoI6Dz6Ha9Dbbw5T3ot291lMKIq6AuC LV7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=pMFgAjEn1406hpLRsO84cG2WB0iR8oEp2i+3BBCLmfw=; b=oTKVSLY2yoL1bk9ZK1AUi5c8HFGbXGHgc4LnCiR9qC3x6lQ0j5Eq15t6LvZ8gKWqgY TjLXyrRmc7mM4e3Dc9pKdo0FjjCDEcORGHtOm/9aqq7Bd5gigcANcG1lUpluMsM5bn3H uyLFqISn792dLXbsfXIqlBNZATb+cuLqRzKHmTFwoyygn7DEtJbDI1aGSPCMfny2sc1X 4T4jza3dSz3RowzsdLt9lC200C2lTbfE8MnIoeFZC8CkuFkutOm0+3sfpTLEVyqRlTcb z5HxAQzhyWNoVJsnYrZhASRJUU6YGbE4blOPYF20w8PverddTcpRlOninWW2KbEOs9EE 1jEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Gg1Wg5fA; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 44si3755853plc.276.2017.08.09.19.27.04; Wed, 09 Aug 2017 19:27:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Gg1Wg5fA; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752560AbdHJC1D (ORCPT + 6 others); Wed, 9 Aug 2017 22:27:03 -0400 Received: from mail-pg0-f42.google.com ([74.125.83.42]:36139 "EHLO mail-pg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752562AbdHJC1C (ORCPT ); Wed, 9 Aug 2017 22:27:02 -0400 Received: by mail-pg0-f42.google.com with SMTP id v77so35298108pgb.3 for ; Wed, 09 Aug 2017 19:27:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+bO+zSefFHAJbSn5XMxZONacNWLUlAJKHeiXDUvZjIo=; b=Gg1Wg5fAAnNx9tfaiyKFkAw/y/8juv36ItpipGbge632xFGlRocJpPBPD3QRBJa9eT JVtCPDFPAzC3dIc4m9jqlmXAgLna1fUpDKSJQHwoCDMXYY0nZAmjmWByGO0PdbO1LXja 2pF/WI+ErLr6NkzIyJ12RwxtVij6zAfS+zD3k= 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=+bO+zSefFHAJbSn5XMxZONacNWLUlAJKHeiXDUvZjIo=; b=lmaoJChiRPZDkQE+vmXm440EUO12OWWIGUtm+ySlp9F4k+sIduZSlTry5LAELERpEn 3kp07nGwhSoJy94zPIVhRm4Q2MqcX9DyIsmWAP4r2vmdoGxPoGAp5F5Mg1+U8iB6jss/ Gzje/979cFB3CyCE004izvv805XBugv4lYKNF4jpIbp8/j7UIVuKw94oZxAoBEag/cDX Jr4Sp/6H/L49rwvIQQktATYtP/YHMNjZwhKbTj4KaxQXxWG6q/6QjHM8RUXdEb/440ok 9crTIMD3jxOZzzhWd2y7P+pEeTDSykF6c8q17bVT0lE3J9HDsy4iQs9Ur354U2AYatgx yzpg== X-Gm-Message-State: AHYfb5g7n8Yy6dFxuLrVaJJnD8cQbnlgxyX1rvI5nt9mh7/1EvJ10Z6r NTiEgMheTIf0Au2B X-Received: by 10.99.124.26 with SMTP id x26mr6582581pgc.280.1502332022070; Wed, 09 Aug 2017 19:27:02 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.41.135.55]) by smtp.gmail.com with ESMTPSA id s11sm7789166pgr.53.2017.08.09.19.26.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Aug 2017 19:27:01 -0700 (PDT) From: Guodong Xu To: xuwei5@hisilicon.com, robh+dt@kernel.org, mark.rutland@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, keescook@chromium.org, anton@enomsg.org, ccross@android.com, tony.luck@intel.com Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Guodong Xu , John Stultz Subject: [PATCH v2 5/9] arm64: dts: hikey960: Add support for syscon-reboot-mode Date: Thu, 10 Aug 2017 10:26:11 +0800 Message-Id: <20170810022615.19204-6-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170810022615.19204-1-guodong.xu@linaro.org> References: <20170810022615.19204-1-guodong.xu@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add support to hikey960 dts for the syscon-reboot-mode driver. Cc: John Stultz Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) -- 2.10.2 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts index b96d865..ce5e874 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts +++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts @@ -39,6 +39,20 @@ reg = <0x0 0x0 0x0 0x0>; }; + reboot-mode-syscon@32100000 { + compatible = "syscon", "simple-mfd"; + reg = <0x0 0x32100000 0x0 0x00001000>; + + reboot-mode { + compatible = "syscon-reboot-mode"; + offset = <0x0>; + + mode-normal = <0x77665501>; + mode-bootloader = <0x77665500>; + mode-recovery = <0x77665502>; + }; + }; + keys { compatible = "gpio-keys"; pinctrl-names = "default";