From patchwork Thu Jun 9 00:09:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 69694 Delivered-To: patches@linaro.org Received: by 10.140.106.246 with SMTP id e109csp63748qgf; Wed, 8 Jun 2016 17:09:58 -0700 (PDT) X-Received: by 10.98.80.69 with SMTP id e66mr1190024pfb.139.1465430996799; Wed, 08 Jun 2016 17:09:56 -0700 (PDT) Return-Path: Received: from mail-pf0-x22f.google.com (mail-pf0-x22f.google.com. [2607:f8b0:400e:c00::22f]) by mx.google.com with ESMTPS id p186si4075002pfb.113.2016.06.08.17.09.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Jun 2016 17:09:56 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c00::22f as permitted sender) client-ip=2607:f8b0:400e:c00::22f; 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::22f as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by mail-pf0-x22f.google.com with SMTP id c2so7335796pfa.2 for ; Wed, 08 Jun 2016 17:09:56 -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=rAbJZjLHCzWv57juokPG2o8TwmX+Eebe7MitKc6WLH4=; b=U/b4Yp8rs6OoXIAZLyCbRtsMbarBnQxfMlS+L3J04bjqIZQ24jcYkL7cT8d5ViA6MY 1UNFr16zfQ0B+DSZWSZJETY8OAlJwBALybbHzGannjdlhPsCzX2r6QwxoRFww+c9tmND anDMw/gaf4OLBY/e/JvLHm8jeFXN/vp8M05Bk= 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=rAbJZjLHCzWv57juokPG2o8TwmX+Eebe7MitKc6WLH4=; b=m2BDYljNZDl2VxINSQylt0Fo2eOHrj7D0YPIH5lGVfvnESrTV61npxYZEOLBWrqMHa sEce5ZrNVD7pxbiEAUDRPlVb/ifWrw6HPGezGnMTdpK/CKGAKe0gRNs3qFVFnNzF5pLD d34qzmUBQr7RGvBoqxUJe+pV1obkBQL/IoourNA1NigIt+P8hpj9/9UH6umcqwVB5MZb s3hLdvC2LGEqktaX2w6sdAmay2G4UTN9B73QXSph7dzCOS8Gla/gwgOUvVeuRAoxdk2Q geU1TBOPLLNe7OeQKvm7CRTGwqEGcwNLDGJ89LX5OFLV0Cu8CGLCQ0R0AFQZYhFAQ7f9 O2pA== X-Gm-Message-State: ALyK8tLAabHSkZoatgHc3ubrrCKZyY+75zJVOBzpEhBkOx/PcrjE3JbsEp33EQ4JqNGKLxFusdQ= X-Received: by 10.98.14.14 with SMTP id w14mr1224617pfi.7.1465430996462; Wed, 08 Jun 2016 17:09:56 -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 cc6sm5006205pac.5.2016.06.08.17.09.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 08 Jun 2016 17:09:55 -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: [PATCH 2/2] arm64: dts: hi6220: Add pl031 RTC support Date: Wed, 8 Jun 2016 17:09:49 -0700 Message-Id: <1465430989-21900-3-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1465430989-21900-1-git-send-email-john.stultz@linaro.org> References: <1465430989-21900-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 --- v2: Add rtc1 entry as suggested by Guodong arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) -- 1.9.1 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>;