Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1255959imm; Tue, 2 Oct 2018 05:31:00 -0700 (PDT) X-Google-Smtp-Source: ACcGV62vlOBMH5e9muqdS3/rZ18b3wjoItclsgDgtF8J/xaawibCLSD+v78wyx23slE6VFbprGd2 X-Received: by 2002:a62:6f43:: with SMTP id k64-v6mr15831587pfc.87.1538483460418; Tue, 02 Oct 2018 05:31:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538483460; cv=none; d=google.com; s=arc-20160816; b=POFG7WOgGYKM99HHfMdY/gki3gJ+ZhYytNF0Xcjb91Y2eX+FNQ5BfyF3Qz0qo9Osnf Y6sl/4azDypSoYHhiGq9VF8YAmanpAUegegWAofQmgUoyN2qUqh7ANucwmj8eJL2wB0o v9M72dYuL1f/hVTWI4I+5dulVpDn3UyhNUIM3s30uZBJJJK0WyxHWN8SpvW9H32c/xik nKfER5DgkpBuYCP7EERXTJT7GTF+iUECwhMozDyJwKw/vdFT7ACc6UJCo9lFC64ZtDiy +mv373gehOOFRkYRSAvWDxAvAsilHPgs3k8TIfdCReNPaCjVSusrWdSjlAdcQLg9PYo5 c1tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=GU7slMjuvyjafFYuSSacv0glu0XHyt92ZeQYdgi00xc=; b=mBOUu6AiKbe2Z1nXtaVNguxUq8g5OBFpoodNJuLmK+iFN6l0s12Hw++4CdTabxnwk8 UPoYZ5gt6rJIimMablLbXKuZMeeL903Mc+DrpSG/UxjnoMPWmjbzbVO3BqloVX7Fzc3F 6T4L4pJbnQh3gUkvPCkCPxBTZFargdj5OPnReQZPFlFP+TrkbygG3l6rgQW8j80r+5k5 UQiYAtomvft7RfRJ5j4QZ2Wa2R4NgJ08C9bI2w3ydlBJ+UynTYtpvSvLUPC2QnSB9lQ1 ek/ej9peHG3fmbJbrG87oE50IqDB/gpCfp8+qZZegUZg4YFoHCmMnhInx47rcReUBs3S 9itA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i64-v6si16288581pfc.16.2018.10.02.05.30.45; Tue, 02 Oct 2018 05:31:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727781AbeJBTNl (ORCPT + 99 others); Tue, 2 Oct 2018 15:13:41 -0400 Received: from hermes.aosc.io ([199.195.250.187]:43662 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726625AbeJBTNl (ORCPT ); Tue, 2 Oct 2018 15:13:41 -0400 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 7273F4479A; Tue, 2 Oct 2018 12:30:31 +0000 (UTC) From: Icenowy Zheng To: Maxime Ripard , Chen-Yu Tsai Cc: linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Icenowy Zheng Subject: [PATCH] clk: sunxi-ng: enable so-said LDOs for A64 SoC's pll-mipi clock Date: Tue, 2 Oct 2018 20:29:11 +0800 Message-Id: <20181002122911.22094-1-icenowy@aosc.io> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In the user manual of A64 SoC, the bit 22 and 23 of pll-mipi control register is called "LDO{1,2}_EN", and according to the BSP source code from Allwinner , the LDOs are enabled during the clock's enabling process. The clock failed to generate output if the two LDOs are not enabled. Add the two bits to the clock's gate bits, so that the LDOs are enabled when the PLL is enabled. Fixes: c6a0637460c2 ("clk: sunxi-ng: Add A64 clocks") Signed-off-by: Icenowy Zheng --- As PLL-MIPI is not used before 4.20~5.0, I decide not to target this patch on stable/mainline kernels. drivers/clk/sunxi-ng/ccu-sun50i-a64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun50i-a64.c b/drivers/clk/sunxi-ng/ccu-sun50i-a64.c index 5f80eb018014..f7d297368eb2 100644 --- a/drivers/clk/sunxi-ng/ccu-sun50i-a64.c +++ b/drivers/clk/sunxi-ng/ccu-sun50i-a64.c @@ -162,7 +162,7 @@ static SUNXI_CCU_NM_WITH_FRAC_GATE_LOCK(pll_gpu_clk, "pll-gpu", #define SUN50I_A64_PLL_MIPI_REG 0x040 static struct ccu_nkm pll_mipi_clk = { - .enable = BIT(31), + .enable = BIT(31) | BIT(23) | BIT(22), .lock = BIT(28), .n = _SUNXI_CCU_MULT(8, 4), .k = _SUNXI_CCU_MULT_MIN(4, 2, 2), -- 2.18.0