From patchwork Wed Jun 1 17:39:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 69055 Delivered-To: patches@linaro.org Received: by 10.140.92.199 with SMTP id b65csp222844qge; Wed, 1 Jun 2016 10:39:38 -0700 (PDT) X-Received: by 10.98.92.133 with SMTP id q127mr10947042pfb.103.1464802778051; Wed, 01 Jun 2016 10:39:38 -0700 (PDT) Return-Path: Received: from mail-pf0-x22a.google.com (mail-pf0-x22a.google.com. [2607:f8b0:400e:c00::22a]) by mx.google.com with ESMTPS id 192si52282676pfw.92.2016.06.01.10.39.37 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Jun 2016 10:39:38 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c00::22a as permitted sender) client-ip=2607:f8b0:400e:c00::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:c00::22a as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by mail-pf0-x22a.google.com with SMTP id f144so19140191pfa.3 for ; Wed, 01 Jun 2016 10:39:37 -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=/FrfdqfFDrCO/DAiw3Rg7v9Xze6VK/0dXIL31mvgk0U=; b=jEU061h7+pVGdOCEAvF/2PWnxiP3rYftHOCCEb4yOWVHiEdNi5UUMoQlQmENWd/w9B Rxfn0qyPHfp7m+Rr2XPUk/uuzr+nHNARQua9H0JYAcKjv0BDd8Zs1jc5DbGqljEOOiZG EvTKQkRJOUm0YQ1Wevb3eeEtwwQK0LxeewimE= 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=/FrfdqfFDrCO/DAiw3Rg7v9Xze6VK/0dXIL31mvgk0U=; b=k9W06Ut5PrW7zPdfw4k4xJ4kP8YSCUo99Yt9XGAKHMHQlT+bTlQ2SgW/hDOSLqbeq3 rvjOYvmpH3biOUf6673u00p1gD22WOLZ6MOL0fxOOp6IQqCuGO6uCiMVjmpMa8IDkgwy TUQC6h2pD2wZjTkDT4tbQVPE397ldmOALYwjF0IFt188YclEwiltI/h7uzvtK+ild1QJ JHVAvtBeOmz3Uymcw+TMO+KmvPt9/y7EItMD/VParHH4psLLIFv24IdMRtJ8B0v+dJyP yg0ao0jQfb7ZDuFoSQXcwvByWhC6I1XPaqTfQJop+5WtT26sSCRWRlEhq22JnOs5Je05 uJ+w== X-Gm-Message-State: ALyK8tLLaf0o0CZ7oUktrU0Ub8Km5LCHTuEWxLO+/01JPDFYiK3DEHVgZv0INTE++Gf8KtgHC9Q= X-Received: by 10.98.30.133 with SMTP id e127mr10997472pfe.112.1464802777638; Wed, 01 Jun 2016 10:39:37 -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 x71sm24079292pfj.43.2016.06.01.10.39.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Jun 2016 10:39:37 -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: [RFC][PATCH 2/2] arm64: dts: hi6220: Add pl031 RTC support Date: Wed, 1 Jun 2016 10:39:22 -0700 Message-Id: <1464802762-23933-3-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1464802762-23933-1-git-send-email-john.stultz@linaro.org> References: <1464802762-23933-1-git-send-email-john.stultz@linaro.org> From: Zhangfei Gao Add pl031 rtc0 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] Signed-off-by: John Stultz --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) -- 1.9.1 diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi index 189d215..1288995 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi @@ -336,6 +336,14 @@ clock-names = "timer1", "timer2", "apb_pclk"; }; + rtc0: rtc@170000 { + compatible = "arm,pl031", "arm,primecell"; + reg = <0x0 0xf8003000 0x0 0x1000>; + interrupts = <0 12 4>; + clocks = <&ao_ctrl HI6220_RTC0_PCLK>; + clock-names = "apb_pclk"; + }; + pmx0: pinmux@f7010000 { compatible = "pinctrl-single"; reg = <0x0 0xf7010000 0x0 0x27c>;