Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755070AbbLDC0P (ORCPT ); Thu, 3 Dec 2015 21:26:15 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:44278 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754877AbbLDC0M (ORCPT ); Thu, 3 Dec 2015 21:26:12 -0500 X-AuditID: cbfec7f5-f79b16d000005389-39-5660f9c035f2 Subject: Re: [PATCH 02/12] clk: samsung: exynos5420: add cpu clock configuration data and instantiate cpu clock To: Ben Gamari , Thomas Abraham References: <1449091167-20758-1-git-send-email-ben@smart-cactus.org> <1449091167-20758-3-git-send-email-ben@smart-cactus.org> <565FDC5A.1010504@samsung.com> <874mfz4yfb.fsf@smart-cactus.org> Cc: Tomasz Figa , Lukasz Majewski , Heiko Stuebner , Chanwoo Choi , Kevin Hilman , Javier Martinez Canillas , Tobias Jakobi , Anand Moon , linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, b.zolnierkie@samsung.com, Mike Turquette , Javier Martinez Canillas , Sylwester Nawrocki , Michael Turquette , Kukjin Kim , Kukjin Kim , Viresh Kumar From: Krzysztof Kozlowski X-Enigmail-Draft-Status: N1110 Message-id: <5660F9B3.8030001@samsung.com> Date: Fri, 04 Dec 2015 11:25:55 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-version: 1.0 In-reply-to: <874mfz4yfb.fsf@smart-cactus.org> Content-type: text/plain; charset=windows-1252 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrJIsWRmVeSWpSXmKPExsVy+t/xa7oHfiaEGayZr2OxccZ6VotZ8++y WFz/8pzV4v+j16wW137PYLN483YNk8XrF4YWvQuusln0P37NbPH18ApGizcPNzNabHp8jdXi Y889VovLu+awWXzuPcJoMeP8PiaLdRtvsVtcPOVq8XTCRTaLw2/aWS06ljFatK3+wGqxatcf RouNXz0cJDze32hl9/g7u5XZY+esu+wem1Z1snncubaHzWPzknqPf8fYPbb0A4X7tqxi9Djz 29lj+7V5zB6fN8kF8ERx2aSk5mSWpRbp2yVwZezYdJytYKV4xZqVq5kbGM8JdTFyckgImEj8 /v+BFcIWk7hwbz1bFyMXh5DAUkaJpycnsEI4vxglfrf8ZwSpEhYolDi84g4LiC0i4Cux9/oD JoiiQ4wS7cchOpgF1rNJLFx0mg2kik3AWGLz8iVsEDvkJHq7J4F18wpoSey+egcsziKgKtGy +TM7iC0qECExcUIDK0SNoMSPyffA6jkF9CQ6Xxxj7mLkAFqgJ3H/ohZImFlAXmLzmrfMExgF ZyHpmIVQNQtJ1QJG5lWMoqmlyQXFSem5RnrFibnFpXnpesn5uZsYIRH+dQfj0mNWhxgFOBiV eHgZNiWECbEmlhVX5gI9yMGsJMKr9A0oxJuSWFmVWpQfX1Sak1p8iFGag0VJnHfmrvchQgLp iSWp2ampBalFMFkmDk6pBkah7/L6l3Vmd5VnfzC5bRFtqlupLtJ2p0lOMujFYp2g178XuqxV n2bWzvuvNve9zZ1dnjabJkgn/l/inr5M/ebVzt0BL25F/XmnOeWpuaDHxf17WeVkvT6IOloF n4rUmqPRKLzl2u3GML2Lh9dt2VrvtHB691T/nBmFzd/vcSr7l4b/dvvROlOJpTgj0VCLuag4 EQAhm7zd7AIAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3154 Lines: 81 On 03.12.2015 19:30, Ben Gamari wrote: > Krzysztof Kozlowski writes: > >> On 03.12.2015 06:19, Ben Gamari wrote: >>> From: Thomas Abraham >>> >>> With the addition of the new Samsung specific cpu-clock type, the >>> arm clock can be represented as a cpu-clock type. Add the CPU clock >>> configuration data and instantiate the CPU clock type for Exynos5420. >>> >>> Changes by Bartlomiej: >>> - split Exynos5420 support from the original patches >>> - moved E5420_[EGL,KFC]_DIV0() macros to clk-exynos5420.c >>> >>> Changes by Ben Gamari: >>> - Rebased >> >> If only rebasing then you should retain the Lukasz's review tag. He >> doesn't have to review it again, right? :) > > Yep, very true. > >>> +static const struct exynos_cpuclk_cfg_data exynos5420_eglclk_d[] __initconst = { >>> + { 1800000, E5420_EGL_DIV0(3, 7, 7, 4), }, >>> + { 1700000, E5420_EGL_DIV0(3, 7, 7, 3), }, >>> + { 1600000, E5420_EGL_DIV0(3, 7, 7, 3), }, >>> + { 1500000, E5420_EGL_DIV0(3, 7, 7, 3), }, >>> + { 1400000, E5420_EGL_DIV0(3, 7, 7, 3), }, >>> + { 1300000, E5420_EGL_DIV0(3, 7, 7, 2), }, >>> + { 1200000, E5420_EGL_DIV0(3, 7, 7, 2), }, >>> + { 1100000, E5420_EGL_DIV0(3, 7, 7, 2), }, >>> + { 1000000, E5420_EGL_DIV0(3, 6, 6, 2), }, >>> + { 900000, E5420_EGL_DIV0(3, 6, 6, 2), }, >>> + { 800000, E5420_EGL_DIV0(3, 5, 5, 2), }, >>> + { 700000, E5420_EGL_DIV0(3, 5, 5, 2), }, >>> + { 600000, E5420_EGL_DIV0(3, 4, 4, 2), }, >>> + { 500000, E5420_EGL_DIV0(3, 3, 3, 2), }, >>> + { 400000, E5420_EGL_DIV0(3, 3, 3, 2), }, >>> + { 300000, E5420_EGL_DIV0(3, 3, 3, 2), }, >>> + { 200000, E5420_EGL_DIV0(3, 3, 3, 2), }, >>> + { 0 }, >> >> The vendor code (Galaxy S5 with Exynos5422) sets pclk_dbg divider to 7. >> In the same time APLL divider is only 1. >> >> For the ACLK divider (of KFC below) the vendor sets 3, not 2. >> >> The values also don't match the Exynos5420 from Note 3. >> >> The Exynos5800 apparently has values more similar to 5422. >> >> The question is: for which exact model this is? We can of course choose >> the safest values here but probably these would be with the highest >> dividers? >> > I'm afraid I can't comment here. Thomas, perhaps you could offer some > insight? Actually I found your patch #5 adding support for 5800 with the values more like matching 5422. So actually the difference should be between 5420 and 5422. The Exynos5420 mainline boards are: - Peach Pit - chromeos tree could be a good vendor reference, - Arndale Octa, - SMDK5420. For the last two I don't know where to get the vendor reference. Unfortunately sometimes the particular values (supported frequencies and clock dividers) differ for one SoC between products but we don't support the ASV here. Overall probably this means that we should not care about such details, except maybe the difference between 5420 and 5422? (where 5422=5800) Best regards, Krzysztof -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/