From patchwork Thu Jun 9 00:09:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 69693 Delivered-To: patches@linaro.org Received: by 10.140.106.246 with SMTP id e109csp63734qgf; Wed, 8 Jun 2016 17:09:55 -0700 (PDT) X-Received: by 10.66.170.168 with SMTP id an8mr8654658pac.47.1465430995866; Wed, 08 Jun 2016 17:09:55 -0700 (PDT) Return-Path: Received: from mail-pf0-x231.google.com (mail-pf0-x231.google.com. [2607:f8b0:400e:c00::231]) by mx.google.com with ESMTPS id df1si4037033pad.218.2016.06.08.17.09.55 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Jun 2016 17:09:55 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c00::231 as permitted sender) client-ip=2607:f8b0:400e:c00::231; 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::231 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by mail-pf0-x231.google.com with SMTP id c2so7335704pfa.2 for ; Wed, 08 Jun 2016 17:09:55 -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=Dm+HjPb4cK5VwaxDnIWA1pNSIrei28MEC0DThsuj3ZI=; b=bm8yV9Q5EG9xf44kMorFqDduvyQ7aA7D9a28YBANuNqL9WKTfthhqWkUZjC02lAJQA vHLUZPUax7L3CzMgSpg8h8+d4ZVCX0fcUUeamkhRau/O/RkcgEAJpSBkXqBog3mXcnFj wChY5rXdp5nXYjK/WWTndLmbwfu0tNzZZZW6I= 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=Dm+HjPb4cK5VwaxDnIWA1pNSIrei28MEC0DThsuj3ZI=; b=BQo8pxRNf6rGzqzLDysOqHWhBQdholkmXaGoMQlUii+LyG5uTOWN9an/oCSsb6uoFU 9CUL51hvqdAez2+znAW70pQi9sajSaiag4K3peQQsH1i5OULOSxxg1BA3x+q6sYcDUpE 7n1ixqCzGRVKFOcf3Al6svT2KLkrCl+tQst9VOS2tnKoHjsRcgoLRvBrYI2AzrOMOgsj 23NBd/ky8P7W8+c+OQwHAGM/yDw9xd7TB4EfBelnk4+k0XMpgm7uyOWcRASK7Y98GgTO cl8ek5t1vAnqHwOn/67Tcjmc83ZbhQVoafmSkPVBG9bZoT0gHYGUN05I33tXMqn6diGn Fofw== X-Gm-Message-State: ALyK8tI3MBXNpf7x9pz0sOkWcIT/W6O9KofsYfkLnGKgBkE/Y9N4mDT/wdxYE/j0l65MxRwiruw= X-Received: by 10.98.71.15 with SMTP id u15mr1224477pfa.69.1465430995536; Wed, 08 Jun 2016 17:09:55 -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.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 08 Jun 2016 17:09:54 -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 1/2] clk: hi6220: Add RTC clock for pl031 Date: Wed, 8 Jun 2016 17:09:48 -0700 Message-Id: <1465430989-21900-2-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 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 --- 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 */