From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756045AbcG0Jcy (ORCPT ); Wed, 27 Jul 2016 05:32:54 -0400 Received: from metis.ext.4.pengutronix.de ([92.198.50.35]:35372 "EHLO metis.ext.4.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754882AbcG0Jcv (ORCPT ); Wed, 27 Jul 2016 05:32:51 -0400 Message-ID: <1469611964.2470.30.camel@pengutronix.de> Subject: Re: [PATCH v3] arm64: dts: mt8173: add mmsel clocks for 4K support From: Philipp Zabel To: Bibby Hsieh Cc: Mark Rutland , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Rob Herring , Pawel Moll , Ian Campbell , Kumar Gala , Catalin Marinas , Will Deacon , Matthias Brugger , Daniel Kurtz , Yingjoe Chen , Sascha Hauer , James Liao , Lorenzo Pieralisi , YH Huang , CK Hu , Yong Wu , Eddie Huang , "dawei.chien@mediatek.com" , Chunfeng Yun , Junzhi Zhao Date: Wed, 27 Jul 2016 11:32:44 +0200 In-Reply-To: <1469607914-64831-1-git-send-email-bibby.hsieh@mediatek.com> References: <1469607914-64831-1-git-send-email-bibby.hsieh@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.9-1+b1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:100:96de:80ff:fec2:9969 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Mittwoch, den 27.07.2016, 16:25 +0800 schrieb Bibby Hsieh: > If MT8173 can support HDMI 4K resoultion, the > VENCPLL should be configured to 800MHZ. > We didn't set VENCPLL directly, we set the > mm_sel to 400MHz statically in the board device tree. Maybe add a comment that the board .dts file should override the clock rate property with the higher VENCPLL frequency the board supports HDMI 4K resolution. > Signed-off-by: Bibby Hsieh > --- > Changes since v2: > - Align the clocks of dpi0 node. > > Changes since v1: > - Do not set the VENCPLL by clk_set_rate > at display driver. > - Configure the mm_sel to 400MHz statically > in the board device tree. > --- > arch/arm64/boot/dts/mediatek/mt8173.dtsi | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi > index 78529e4..9c22204 100644 > --- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi > @@ -690,7 +690,9 @@ > compatible = "mediatek,mt8173-mmsys", "syscon"; > reg = <0 0x14000000 0 0x1000>; > power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; > + clocks = <&topckgen CLK_TOP_MM_SEL>; > #clock-cells = <1>; > + clock-frequency = <400000000>; According to the "Assigned clock parents and rates" section in Documentation/devicetree/bindings/clock/clock-bindings.txt, this should be: assigned-clocks = <&topckgen CLK_TOP_MM_SEL>; assigned-clock-rates = <400000000>; regards Philipp