From patchwork Mon Feb 26 11:27:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kochetkov X-Patchwork-Id: 877789 X-Patchwork-Delegate: philipp.tomsich@theobroma-systems.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Cdia+4zy"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zqfhH143tz9s1S for ; Mon, 26 Feb 2018 22:27:57 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 278AFC2201E; Mon, 26 Feb 2018 11:27:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 47654C21DA6; Mon, 26 Feb 2018 11:27:45 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id D1D24C21E13; Mon, 26 Feb 2018 11:27:43 +0000 (UTC) Received: from mail-lf0-f67.google.com (mail-lf0-f67.google.com [209.85.215.67]) by lists.denx.de (Postfix) with ESMTPS id 688B3C21DA6 for ; Mon, 26 Feb 2018 11:27:43 +0000 (UTC) Received: by mail-lf0-f67.google.com with SMTP id q69so21658345lfi.10 for ; Mon, 26 Feb 2018 03:27:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=Sqt6zcJdpCF0y9A1U6fI7knx54PrXS8E31PMMnfiX6E=; b=Cdia+4zyqsi9zzR3Cx7fk2fw/3/wI73B0dT05o2z098qEYip/vHmw4R2idY+5Hn4+m ZFrSHuFaKgx4fGk6Fbw4FHkj6VWMIn9ukGl23+7ZRpn8+LxR/dECPxiBsLDa13tR2f9o qR7rgWD2oqYwOISA0VjOqhXJmS1aA1ceU1ixwfbbYmbe6zgggfZBBVYyXdq1Ip9H3Wfh mA5fIthAHwv5BGB6887jnLdxGuPCu+Yri4dicXwcVurletTizYLIWhnQKaEO8ELSCqsn OGfDbZRcDba7+wzemF78/PXjVIvLJUJYDEKKFS5loDir1V83At4x/oSVKlNB6dujG19e F98g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Sqt6zcJdpCF0y9A1U6fI7knx54PrXS8E31PMMnfiX6E=; b=kVLe6F4nXcq42+8nSO5dOSB+CkJJLwOAzxJOkYWsq1GbC3hRVgqD1Zg3QAYDsUgd77 7Pyx6Y9KvBzcVyqM0/yA6PsRXVIESelFh4b/TJ6zvUWz3ivYr6IbWaNyXOjwma4Vtw5c jtnA7e1XII3KD7VhCxIlCKhAVEI6/0HQJLjbUv6LjzJFmvMl5pFFLN/Gj7+rP33jaeGe FV6Yx2N4f05IOb4fYOzf/DuD1g0r+5evElKsPuukeMWRmC78RLfyZVg+TRsSnRwkQb+w ldNbTKtI6E2CQZpPlQby4KAf5KCEug91BPiiXjBXOVZa39dkn+8QZQu7H+R6u8z1SdtN UdaQ== X-Gm-Message-State: APf1xPDfkDlsJdmKZLBq1RCbQfzKUpm4LauT7fqkhHEv9hUecunXGUMr f3lM07OGnfqHx25fNEOM+xqS+g== X-Google-Smtp-Source: AH8x224kOWLvQ3EyScsdDRJePyVI0l3RCuCCknVOz8UvWOW6+NwOP2RLIdJkKkKhFoIk7DyMIm3HmA== X-Received: by 10.46.95.80 with SMTP id t77mr7171609ljb.120.1519644462597; Mon, 26 Feb 2018 03:27:42 -0800 (PST) Received: from ubuntu.lintech.local ([185.35.119.87]) by smtp.gmail.com with ESMTPSA id d28sm1952232ljf.74.2018.02.26.03.27.41 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Feb 2018 03:27:42 -0800 (PST) From: Alexander Kochetkov To: u-boot@lists.denx.de Date: Mon, 26 Feb 2018 14:27:38 +0300 Message-Id: <1519644458-26869-1-git-send-email-al.kochet@gmail.com> X-Mailer: git-send-email 1.7.9.5 Subject: [U-Boot] [PATCH] rockchip: clk: rk3188: update dpll settings to make EMAC work X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" The patch set dpll settings for 300MHz to values used by binary blob[1]. With new values dpll still generate 300MHz clock, but EMAC work. Probably with new values dpll generate more stable clock. dpll on rk3188 provide clocks to DDR and EMAC. With current dpll settings EMAC doesn't work on radxa rock. EMAC sends packets to network, but it doesn't receive anything. ifconfig shows a lot of framing errors. [1] https://github.com/linux-rockchip/u-boot-rockchip/blob/u-boot-rk3288/ tools/rk_tools/3188_LPDDR2_300MHz_DDR3_300MHz_20130830.bin Signed-off-by: Alexander Kochetkov Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich Reviewed-by: Kever Yang --- drivers/clk/rockchip/clk_rk3188.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/rockchip/clk_rk3188.c b/drivers/clk/rockchip/clk_rk3188.c index 6451c95..f674e60 100644 --- a/drivers/clk/rockchip/clk_rk3188.c +++ b/drivers/clk/rockchip/clk_rk3188.c @@ -123,7 +123,7 @@ static int rkclk_configure_ddr(struct rk3188_cru *cru, struct rk3188_grf *grf, unsigned int hz, bool has_bwadj) { static const struct pll_div dpll_cfg[] = { - {.nf = 25, .nr = 2, .no = 1}, + {.nf = 75, .nr = 1, .no = 6}, {.nf = 400, .nr = 9, .no = 2}, {.nf = 500, .nr = 9, .no = 2}, {.nf = 100, .nr = 3, .no = 1},