From patchwork Thu Jun 23 20:39:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 70784 Delivered-To: patches@linaro.org Received: by 10.140.28.4 with SMTP id 4csp612319qgy; Thu, 23 Jun 2016 13:39:35 -0700 (PDT) X-Received: by 10.98.149.10 with SMTP id p10mr621489pfd.88.1466714374108; Thu, 23 Jun 2016 13:39:34 -0700 (PDT) Return-Path: Received: from mail-pa0-x22a.google.com (mail-pa0-x22a.google.com. [2607:f8b0:400e:c03::22a]) by mx.google.com with ESMTPS id bl8si1862551pad.120.2016.06.23.13.39.34 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Jun 2016 13:39:34 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c03::22a as permitted sender) client-ip=2607:f8b0:400e:c03::22a; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c03::22a as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by mail-pa0-x22a.google.com with SMTP id wo6so30452558pac.3 for ; Thu, 23 Jun 2016 13:39:34 -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=TDMfXyhmmu9r692gmOQTm8c9w7xNVe6/nR47f9g3huU=; b=hukAJNVhza7wa8EIsOWWqdXWbRXqvF50bdTZWcV+DLt/M+yXsECIWQ5YaI/QFElmVr vhEOYmRkRmPGeMoA+/jrTDZ8NdGuOveGufUgIJHjqdu3iEmD3Jd1e81d+/s6JX8PysXQ DgErdzFSKW6jMJ12edmi5iUeqXOs2ZByS0bhU= 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=TDMfXyhmmu9r692gmOQTm8c9w7xNVe6/nR47f9g3huU=; b=NQhEgxtcGyOqxQLnMI2NzvehRX2o5Nm+B9FQ0/fwHEtUfSZPavudoSzhCVBg9SSzpf DgyCsfXofoPJzsoEVEc1Wfl2wCS7lSdZBuPtP3ZRuzrMDLROhHqY1lwOhb7b3TmpEYPY kKx8Fw6bkbhZJps1KLym3N8DiM4Y89j/3e8q69JoWAdqC3uaqKCwxP0YCvUT4vpEoMLc rLkJqD8cWJHtI6+/9hAv+kYX1nMaOz5qf0SIWuh80mNFisYPIiUwvbF09rPPugW3V4lQ b0ZgYvCCDqBHzD0g3EnFpWOIQIDEdhVQUlLCRC+cpp9B9z0xJ9cJb5J4CzypDdnt1gZ3 D81w== X-Gm-Message-State: ALyK8tK7Es4C5o7fKYujuq4uC8f7KoUDhR0NUZM8HUxO+JAnFMPwJCb1x3AVm499/5hcDsaG6hM= X-Received: by 10.66.167.103 with SMTP id zn7mr800809pab.149.1466714373818; Thu, 23 Jun 2016 13:39:33 -0700 (PDT) Return-Path: Received: from localhost.localdomain (c-73-67-244-238.hsd1.or.comcast.net. [73.67.244.238]) by smtp.gmail.com with ESMTPSA id o12sm2174356pfg.10.2016.06.23.13.39.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 23 Jun 2016 13:39:33 -0700 (PDT) From: John Stultz To: lkml Cc: Zhangfei Gao , Michael Turquette , Stephen Boyd , Rob Herring , Pawel Moll , Wei Xu , Guodong Xu , John Stultz Subject: [RESEND][PATCH 2/2] arm64: dts: hi6220: Add pl031 RTC support Date: Thu, 23 Jun 2016 13:39:28 -0700 Message-Id: <1466714368-4813-3-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1466714368-4813-1-git-send-email-john.stultz@linaro.org> References: <1466714368-4813-1-git-send-email-john.stultz@linaro.org> From: Zhangfei Gao Add pl031 rtc0 and rtc1 support to hi6220 dtsi Cc: Michael Turquette Cc: Stephen Boyd Cc: Rob Herring Cc: Pawel Moll Cc: Wei Xu Cc: Guodong Xu Signed-off-by: Zhangfei Gao [jstultz: Forward ported and tweaked commit description, added rtc1 entry as suggested by Guodong] Signed-off-by: John Stultz --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) -- 1.9.1 Acked-by: Wei Xu diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi index 189d215..12510b5 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi @@ -336,6 +336,22 @@ clock-names = "timer1", "timer2", "apb_pclk"; }; + rtc0: rtc@f8003000 { + compatible = "arm,pl031", "arm,primecell"; + reg = <0x0 0xf8003000 0x0 0x1000>; + interrupts = <0 12 4>; + clocks = <&ao_ctrl HI6220_RTC0_PCLK>; + clock-names = "apb_pclk"; + }; + + rtc1: rtc@f8004000 { + compatible = "arm,pl031", "arm,primecell"; + reg = <0x0 0xf8004000 0x0 0x1000>; + interrupts = <0 8 4>; + clocks = <&ao_ctrl HI6220_RTC1_PCLK>; + clock-names = "apb_pclk"; + }; + pmx0: pinmux@f7010000 { compatible = "pinctrl-single"; reg = <0x0 0xf7010000 0x0 0x27c>;