Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3048171yba; Mon, 8 Apr 2019 09:59:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqxek4USsv2wIvsJ4qpe4N90d9CyvQDgIvZ0QPkp59BB63z0cKrYquDeKjk7mkwv8fFUEiS5 X-Received: by 2002:a17:902:4501:: with SMTP id m1mr2564225pld.290.1554742780122; Mon, 08 Apr 2019 09:59:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554742780; cv=none; d=google.com; s=arc-20160816; b=XvRUD4dq7UuYhn3TEOAp+qE2o79u3yzGwxp3wLS+nRgUJDQq/gS1Pcy3jG2gE8pd1I I5tZfl+g4GgpqSWp11FQsGy+ry0v+849pTMQHl3/VAOkHx1esELDQaL7GoJ57KK1c/xn dtjhXi2VbZqaBHNRr9ErRf2Weym13QeH0qvD4SJWGHVDBBxRa3ilFEI4C59a/vSyaOx9 tftb4ThwCrWSVz6igiq/3SL8tiXRH68G3Ki8jVKcb1rcvGqnonL9aoIkqtWM6LC+fmH3 KeomBe366/osd1V7DIrsK5rwZ57VoakfE/covnBXfeViJXfQZGgee9pLt+wPy7CDtE9Z uloQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=NJu5qszAwJ96bMnxu4f7WwizEun0gI9Hf5pvt/0Zg8M=; b=Y9WOxJ5uSNq47gg/yADvuyuvbPy29J/qolsiJHH10cXpZslWKrwvITto4RWxeBHIyi G8GA0jwPSfI+9suWU51NnPhPEu0O0UEi0jJIOliZ8qeTnCBtl+Rd7VwgEWstjp71d4OS F3sAEDFBYTFYHXIQ/xStq/NORNEpN9G6z6DWzWJG9KJCsjuIMYEwJzAVDIi/Tht9stuF kkNXURIMmN3AJU5m9nUwNCnmyvI9R+M9OW95UV47B+o0Ky7MV5mC7XHivutUP51ZAwdw 6jLohpsu8S2rjkanjOMjWCzJrGrEB08oHXia5DUbFS0zflz9sCzrEbUB+XXAVN8xPVG7 43zA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f7si27533716pgg.234.2019.04.08.09.59.24; Mon, 08 Apr 2019 09:59:40 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728987AbfDHQ5t (ORCPT + 99 others); Mon, 8 Apr 2019 12:57:49 -0400 Received: from mirror2.csie.ntu.edu.tw ([140.112.30.76]:43720 "EHLO wens.csie.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726726AbfDHQ5t (ORCPT ); Mon, 8 Apr 2019 12:57:49 -0400 Received: by wens.csie.org (Postfix, from userid 1000) id AE7EC5FD53; Tue, 9 Apr 2019 00:57:46 +0800 (CST) From: Chen-Yu Tsai To: Maxime Ripard , Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , Yong Deng , Mauro Carvalho Chehab Cc: Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Kocialkowski Subject: [PATCH 1/6] clk: sunxi-ng: a83t: Add pll-video0 as parent of csi-mclk Date: Tue, 9 Apr 2019 00:57:39 +0800 Message-Id: <20190408165744.11672-2-wens@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190408165744.11672-1-wens@kernel.org> References: <20190408165744.11672-1-wens@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chen-Yu Tsai Allwinner's BSP for the A83T lists pll-video0 as the first parent to csi-mclk with index 0. This parent is not listed in the datasheet, but actually works, and makes more sense considering the index is the default value out of reset. Add pll-video0 as a parent to csi-mclk with index 0. Fixes: 05359be1176b ("clk: sunxi-ng: Add driver for A83T CCU") Signed-off-by: Chen-Yu Tsai --- drivers/clk/sunxi-ng/ccu-sun8i-a83t.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-a83t.c b/drivers/clk/sunxi-ng/ccu-sun8i-a83t.c index 2d6555d73170..5f714b4d8ee4 100644 --- a/drivers/clk/sunxi-ng/ccu-sun8i-a83t.c +++ b/drivers/clk/sunxi-ng/ccu-sun8i-a83t.c @@ -513,8 +513,9 @@ static SUNXI_CCU_GATE(csi_misc_clk, "csi-misc", "osc24M", 0x130, BIT(16), 0); static SUNXI_CCU_GATE(mipi_csi_clk, "mipi-csi", "osc24M", 0x130, BIT(31), 0); -static const char * const csi_mclk_parents[] = { "pll-de", "osc24M" }; -static const u8 csi_mclk_table[] = { 3, 5 }; +static const char * const csi_mclk_parents[] = { "pll-video0", "pll-de", + "osc24M" }; +static const u8 csi_mclk_table[] = { 0, 3, 5 }; static SUNXI_CCU_M_WITH_MUX_TABLE_GATE(csi_mclk_clk, "csi-mclk", csi_mclk_parents, csi_mclk_table, 0x134, -- 2.20.1