From patchwork Mon Sep 22 03:20:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 37670 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f70.google.com (mail-ee0-f70.google.com [74.125.83.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 213BD20970 for ; Mon, 22 Sep 2014 03:21:49 +0000 (UTC) Received: by mail-ee0-f70.google.com with SMTP id b57sf1410458eek.5 for ; Sun, 21 Sep 2014 20:21:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=xZ0cm60Y3fmwiCtt4yOvNCg32WT89Eh6DVHto7HsIWk=; b=gC/B0OWQ7R1XEg46TWq3w6BAzDTMRqZJCQ7xc8woTiN6SAOsI3bCy5uxGTxGfUmtPC JZOgu9lThC2gsMIKlAdlZWy5Vl9+dZidBZ8S/kh9jAa+lATt6jHApSeoq1s2/KdrbPQa 2MOGY8JUJnTUSvZXMFfEegEGUYJDXO5QxcOGZuz/qBuRBX3rhzJ8jpQh9yvmrmj7K35g 4AaAWIj6Txh+SjB2Hc7N/wcY/uxx7BzYhX++JofpJsmgIjBUh7avEV+W5eU3epvdShhl fbQXdfmlzSUgwUx0jU+D7nkv81T3HRyxuC8ZT7Q6YOoe1ikA7vIf3Bq21TRNpjqkbxkW HqEQ== X-Gm-Message-State: ALoCoQllxv9ruWhgDnEN1DRsg+SYEuMJV40uoXKCUk0uq0G3W85wi4nNwDG9oC71jAI/eDYb3IcT X-Received: by 10.112.118.8 with SMTP id ki8mr4096237lbb.4.1411356108224; Sun, 21 Sep 2014 20:21:48 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.21.97 with SMTP id u1ls411934lae.105.gmail; Sun, 21 Sep 2014 20:21:48 -0700 (PDT) X-Received: by 10.152.42.209 with SMTP id q17mr22980709lal.43.1411356107993; Sun, 21 Sep 2014 20:21:47 -0700 (PDT) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com [209.85.217.172]) by mx.google.com with ESMTPS id m1si12716892lbs.55.2014.09.21.20.21.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 21 Sep 2014 20:21:47 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by mail-lb0-f172.google.com with SMTP id p9so5332906lbv.31 for ; Sun, 21 Sep 2014 20:21:47 -0700 (PDT) X-Received: by 10.112.171.202 with SMTP id aw10mr21250927lbc.52.1411356107922; Sun, 21 Sep 2014 20:21:47 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.130.169 with SMTP id of9csp174054lbb; Sun, 21 Sep 2014 20:21:47 -0700 (PDT) X-Received: by 10.70.42.47 with SMTP id k15mr18506190pdl.79.1411356106408; Sun, 21 Sep 2014 20:21:46 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l7si10277218pdk.149.2014.09.21.20.21.45 for ; Sun, 21 Sep 2014 20:21:46 -0700 (PDT) Received-SPF: none (google.com: devicetree-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752575AbaIVDVp (ORCPT + 5 others); Sun, 21 Sep 2014 23:21:45 -0400 Received: from mail-pd0-f169.google.com ([209.85.192.169]:55711 "EHLO mail-pd0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752429AbaIVDVo (ORCPT ); Sun, 21 Sep 2014 23:21:44 -0400 Received: by mail-pd0-f169.google.com with SMTP id w10so3530862pde.28 for ; Sun, 21 Sep 2014 20:21:44 -0700 (PDT) X-Received: by 10.70.94.195 with SMTP id de3mr8662400pdb.103.1411356104538; Sun, 21 Sep 2014 20:21:44 -0700 (PDT) Received: from localhost.localdomain ([124.73.85.115]) by mx.google.com with ESMTPSA id k7sm2871925pdp.77.2014.09.21.20.21.30 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 21 Sep 2014 20:21:43 -0700 (PDT) From: Zhangfei Gao To: Mike Turquette , haojian.zhuang@linaro.org, haifeng.yan@linaro.org, jchxue@gmail.com, xuwei5@hisilicon.com Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Guoxiong Yan , Zhangfei Gao Subject: [PATCH v5 3/4] clk: hix5hd2: add watchdog0 clocks Date: Mon, 22 Sep 2014 11:20:15 +0800 Message-Id: <1411356016-20553-4-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1411356016-20553-1-git-send-email-zhangfei.gao@linaro.org> References: <1411356016-20553-1-git-send-email-zhangfei.gao@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: zhangfei.gao@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Guoxiong Yan hix5hd2 add watchdog0 clocks Signed-off-by: Guoxiong Yan Signed-off-by: Zhangfei Gao --- drivers/clk/hisilicon/clk-hix5hd2.c | 5 +++++ include/dt-bindings/clock/hix5hd2-clock.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/drivers/clk/hisilicon/clk-hix5hd2.c b/drivers/clk/hisilicon/clk-hix5hd2.c index 13d6ec2..6e97e54 100644 --- a/drivers/clk/hisilicon/clk-hix5hd2.c +++ b/drivers/clk/hisilicon/clk-hix5hd2.c @@ -95,6 +95,11 @@ static struct hisi_gate_clock hix5hd2_gate_clks[] __initdata = { { HIX5HD2_FWD_SYS_CLK, "clk_fwd_sys", "clk_fwd_bus", 0, 0xcc, 5, 0, }, { HIX5HD2_MAC0_PHY_CLK, "clk_fephy", "clk_fwd_sys", CLK_SET_RATE_PARENT, 0x120, 0, 0, }, + /* wdg0 */ + { HIX5HD2_WDG0_CLK, "clk_wdg0", "24m", + CLK_SET_RATE_PARENT, 0x178, 0, 0, }, + { HIX5HD2_WDG0_RST, "rst_wdg0", "clk_wdg0", + CLK_SET_RATE_PARENT, 0x178, 4, CLK_GATE_SET_TO_DISABLE, }, }; enum hix5hd2_clk_type { diff --git a/include/dt-bindings/clock/hix5hd2-clock.h b/include/dt-bindings/clock/hix5hd2-clock.h index 5bd4135..b8e3c9d 100644 --- a/include/dt-bindings/clock/hix5hd2-clock.h +++ b/include/dt-bindings/clock/hix5hd2-clock.h @@ -60,6 +60,8 @@ #define HIX5HD2_SD_CIU_CLK 136 #define HIX5HD2_SD_BIU_CLK 137 #define HIX5HD2_SD_CIU_RST 138 +#define HIX5HD2_WDG0_CLK 139 +#define HIX5HD2_WDG0_RST 140 /* complex */ #define HIX5HD2_MAC0_CLK 192