From patchwork Tue Aug 1 10:46:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 9874203 X-Patchwork-Delegate: sboyd@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A3AD5603B4 for ; Tue, 1 Aug 2017 10:48:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B681727C05 for ; Tue, 1 Aug 2017 10:48:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AB70C27F81; Tue, 1 Aug 2017 10:48:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D5D4027FAE for ; Tue, 1 Aug 2017 10:48:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751909AbdHAKsz (ORCPT ); Tue, 1 Aug 2017 06:48:55 -0400 Received: from sauhun.de ([88.99.104.3]:56645 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751217AbdHAKsy (ORCPT ); Tue, 1 Aug 2017 06:48:54 -0400 Received: from localhost (p54B3349B.dip0.t-ipconnect.de [84.179.52.155]) by pokefinder.org (Postfix) with ESMTPSA id 300B92C310D; Tue, 1 Aug 2017 12:48:53 +0200 (CEST) From: Wolfram Sang To: linux-clk@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Geert Uytterhoeven , Kuninori Morimoto , Wolfram Sang Subject: [PATCH 1/3] clk: renesas: rcar-gen3-cpg: document SD divider usage Date: Tue, 1 Aug 2017 12:46:01 +0200 Message-Id: <20170801104603.10459-2-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170801104603.10459-1-wsa+renesas@sang-engineering.com> References: <20170801104603.10459-1-wsa+renesas@sang-engineering.com> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Document the intended use case for the SD dividers. Signed-off-by: Wolfram Sang --- drivers/clk/renesas/rcar-gen3-cpg.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/clk/renesas/rcar-gen3-cpg.c b/drivers/clk/renesas/rcar-gen3-cpg.c index 3dee900522b703..81b7713afd694c 100644 --- a/drivers/clk/renesas/rcar-gen3-cpg.c +++ b/drivers/clk/renesas/rcar-gen3-cpg.c @@ -62,14 +62,16 @@ struct sd_clock { unsigned int div_max; }; -/* SDn divider +/* + * SDn dividers - recommended settings from HW engineers + * * sd_srcfc sd_fc div * stp_hck stp_ck (div) (div) = sd_srcfc x sd_fc *------------------------------------------------------------------- - * 0 0 0 (1) 1 (4) 4 - * 0 0 1 (2) 1 (4) 8 - * 1 0 2 (4) 1 (4) 16 - * 1 0 3 (8) 1 (4) 32 + * 0 0 0 (1) 1 (4) 4 -> SDR104 / HS200 + * 0 0 1 (2) 1 (4) 8 -> SDR50 + * 1 0 2 (4) 1 (4) 16 -> HS / SDR25 + * 1 0 3 (8) 1 (4) 32 -> NS / SDR12 * 1 0 4 (16) 1 (4) 64 * 0 0 0 (1) 0 (2) 2 * 0 0 1 (2) 0 (2) 4