From patchwork Thu Jun 30 00:48:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 71210 Delivered-To: patches@linaro.org Received: by 10.140.28.4 with SMTP id 4csp131855qgy; Wed, 29 Jun 2016 17:49:23 -0700 (PDT) X-Received: by 10.98.22.198 with SMTP id 189mr16788267pfw.74.1467247758491; Wed, 29 Jun 2016 17:49:18 -0700 (PDT) Return-Path: Received: from mail-pf0-x229.google.com (mail-pf0-x229.google.com. [2607:f8b0:400e:c00::229]) by mx.google.com with ESMTPS id f125si1217551pfc.70.2016.06.29.17.49.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Jun 2016 17:49:18 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c00::229 as permitted sender) client-ip=2607:f8b0:400e:c00::229; 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::229 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by mail-pf0-x229.google.com with SMTP id i123so23254890pfg.0 for ; Wed, 29 Jun 2016 17:49:18 -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=6Xbq66R6A81gQqLPPkLUFTK8rRSDOxxpZ2KIPB3rfeo=; b=goV39XaJ9gzOQ/oCAOj5lY8IZ25iRzh01KO1uihWe7IK5BkjhEyhueJxJyfRyEDkY1 HmZwUQlnDvmb3KY9XSEW5z2QcPF2w1l+n8XLAisNezhWhTIltJ7/VMbVG2DM55AUvMov FGLeDhl85x6htKX4Rz7IeoCcblVcFKiVrn930= 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=6Xbq66R6A81gQqLPPkLUFTK8rRSDOxxpZ2KIPB3rfeo=; b=cTaFS+lIxL4rqxBMrOxB0UtYHxl1HwWS7llG4tJodPcz+u3EAt/kbeQIyOljk4VR1T Bju4Xr1OpfDatO4jRwhrtrzGWbt9gds11Qg8suzUQwK/iHJASH/YYzmb33Yz+N2MmlQB +yWZz6Zx8eFso5cEe2R6+fltAj/C2VfNNC4qGgl73tH86MoYvbc1XZOTKWyKwnIsLteF GoSsTO+P6lxX1/+HfgES3mhcgG5SBrYF6p2hwuwg6ZT53dY19zxv4Dx8NNITkYg9h3Xf PqffUwCrn61a7SWkRc0+13wCM7H9Veg2QNrWI0WyckR1gvG8d85lIcp3NVPZNgQyxOcQ 9xuA== X-Gm-Message-State: ALyK8tIy9EZzijpWxT2Lt6y2qquuyxQHu34Ix1wVAj031TGRWJHEHVREgFTMDFOkIIraUTmdpKU= X-Received: by 10.98.29.81 with SMTP id d78mr16676909pfd.142.1467247758241; Wed, 29 Jun 2016 17:49:18 -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 ot2sm698503pac.29.2016.06.29.17.49.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 29 Jun 2016 17:49:17 -0700 (PDT) From: John Stultz To: lkml , arm@kernel.org Cc: Zhangfei Gao , Michael Turquette , Stephen Boyd , Rob Herring , Pawel Moll , Wei Xu , Guodong Xu , John Stultz Subject: [PATCH 1/2 v3] clk: hi6220: Add RTC clock for pl031 Date: Wed, 29 Jun 2016 17:48:44 -0700 Message-Id: <1467247725-3665-2-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1467247725-3665-1-git-send-email-john.stultz@linaro.org> References: <1467247725-3665-1-git-send-email-john.stultz@linaro.org> From: Zhangfei Gao Adds clk support for the pl031 RTC on hi6220 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, tweaked commit description] Signed-off-by: John Stultz --- v3: No changes from v1, version noted just to be consistent with the other patch in this patchset. drivers/clk/hisilicon/clk-hi6220.c | 2 ++ include/dt-bindings/clock/hi6220-clock.h | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) -- 1.9.1 diff --git a/drivers/clk/hisilicon/clk-hi6220.c b/drivers/clk/hisilicon/clk-hi6220.c index f02cb41..76de9a7 100644 --- a/drivers/clk/hisilicon/clk-hi6220.c +++ b/drivers/clk/hisilicon/clk-hi6220.c @@ -68,6 +68,8 @@ static struct hisi_gate_clock hi6220_separated_gate_clks_ao[] __initdata = { { HI6220_TIMER7_PCLK, "timer7_pclk", "clk_tcxo", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x630, 22, 0, }, { HI6220_TIMER8_PCLK, "timer8_pclk", "clk_tcxo", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x630, 23, 0, }, { HI6220_UART0_PCLK, "uart0_pclk", "clk_tcxo", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x630, 24, 0, }, + { HI6220_RTC0_PCLK, "rtc0_pclk", "clk_tcxo", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x630, 25, 0, }, + { HI6220_RTC1_PCLK, "rtc1_pclk", "clk_tcxo", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x630, 26, 0, }, }; static void __init hi6220_clk_ao_init(struct device_node *np) diff --git a/include/dt-bindings/clock/hi6220-clock.h b/include/dt-bindings/clock/hi6220-clock.h index 70ee383..6b03c84 100644 --- a/include/dt-bindings/clock/hi6220-clock.h +++ b/include/dt-bindings/clock/hi6220-clock.h @@ -55,8 +55,9 @@ #define HI6220_TIMER7_PCLK 34 #define HI6220_TIMER8_PCLK 35 #define HI6220_UART0_PCLK 36 - -#define HI6220_AO_NR_CLKS 37 +#define HI6220_RTC0_PCLK 37 +#define HI6220_RTC1_PCLK 38 +#define HI6220_AO_NR_CLKS 39 /* clk in Hi6220 systrl */ /* gate clock */