Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp714192ybi; Wed, 17 Jul 2019 03:46:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqwVneU8ZDpMi/1TKokm6Fudq2J22Vtl4sFvbZZGXqsnKhDFp8rZ9q2oWrLxU+Qbb1XL3Mvc X-Received: by 2002:a17:902:e58b:: with SMTP id cl11mr41243154plb.24.1563360363208; Wed, 17 Jul 2019 03:46:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563360363; cv=none; d=google.com; s=arc-20160816; b=Hgk9bfMlMZezaS6mZB8J0m+z7t4gqvGfjUargICO+FgTwlppVKRgVBbeBsRD0waVew l1CdQyTfnrqo61r0RgGf7IRxIaFzLzxMT/FABlpplppCpqxNqJ8HcCv3zED7R2AJ1RS9 oei54i/iMDoZrgL/5ZMNLfnVODT8EGgqdgDuUcWrCwsPucEfzx1KC55IXPZAdssALzq1 66xAmFj2hmcicKXik6g6WGFxOUnbj710lVTi9Y4bdVtMLoMwy1XyBNqc1Pm9qQBU8ApS ujdJMWsXn3zcLawYA+ww1KKSyb1UAmUjw1fsVhyOrtYo2+gFHc/AodSdRtIV3+w0TjMd rvGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=q6pQqMh4al8tLFba995xvogq9HH5hOHJlXl/RX4J93E=; b=inQBAmVIO8yzBr3zRwP9MAGpRC3/w1aMkuKtrPTblrKL/9HUaIo4kJ7ZgxaN2iFvT/ LDeTpRlSJ8ZCVuWQ2aHw/Ezfi59RgrIXdnBehkp2ZQboehOgNew85dpY03DL7822/QHy yYzUd5o0m/+CE304hGiOojJlU6Ya+if8GvKOUpcLTBrWayndQicyOgnX/QHBBjinH0WB QQ4udOEmn4RaSlh2Q/ugewEyX3Tm8uyKomUvyP32H5qy/xERFjBKkVZEi3ZQUW7NcZhL /usLL29RjohmCrJ3B9iGfdAwlJGdgAGwT9sLQ8zAZNoS2Rn1pX42naBscs2o2PcnlKUt S2RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sa8VZxLK; 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=pass (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 b38si21982351pla.137.2019.07.17.03.45.46; Wed, 17 Jul 2019 03:46:03 -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; dkim=pass header.i=@kernel.org header.s=default header.b=sa8VZxLK; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726462AbfGQKp1 (ORCPT + 99 others); Wed, 17 Jul 2019 06:45:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:60764 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725941AbfGQKp0 (ORCPT ); Wed, 17 Jul 2019 06:45:26 -0400 Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 69D1A21848; Wed, 17 Jul 2019 10:45:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563360325; bh=BV67gKZo3TGKl5Dyp0PiXOnjcwWPe3Mb76WeWSeK1Kk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=sa8VZxLKaZ+t14tOXNmprtzrJLglCy1PsYbfA7DaZjZWLlWOGSE2XXPDiXWLjjJu3 VPJZky6Y3S2KNNFSXUQ3+8QTmYQK6LvWghSlFzaQox1pb08nQHZccweJymSuv2XWyh Djc4YBEe9OaGYriJGMQORgbhm+bhtvGKGXQFhlPo= Received: by mail-lj1-f176.google.com with SMTP id m8so23103156lji.7; Wed, 17 Jul 2019 03:45:25 -0700 (PDT) X-Gm-Message-State: APjAAAWgiUnLIR+hulklTJp+BRNVwkWztkGMypRbgT2IT8i7bmnT1jpN nE/klcTiZCMy8skaXaDNh9afojUgxPaa4XIb2Zs= X-Received: by 2002:a2e:124b:: with SMTP id t72mr20810837lje.143.1563360323685; Wed, 17 Jul 2019 03:45:23 -0700 (PDT) MIME-Version: 1.0 References: <20190715124417.4787-1-l.luba@partner.samsung.com> <20190715124417.4787-38-l.luba@partner.samsung.com> <2fe2e840-f4b2-773b-7d92-4ffb8502d4e6@partner.samsung.com> In-Reply-To: <2fe2e840-f4b2-773b-7d92-4ffb8502d4e6@partner.samsung.com> From: Krzysztof Kozlowski Date: Wed, 17 Jul 2019 12:45:12 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1 37/50] ARM: dts: exynos: change parent and rate of bus_fsys in Exynos5422 To: Lukasz Luba Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, "linux-samsung-soc@vger.kernel.org" , linux-clk@vger.kernel.org, mturquette@baylibre.com, sboyd@kernel.org, =?UTF-8?B?QmFydMWCb21pZWogxbtvxYJuaWVya2lld2ljeg==?= , kgene@kernel.org, mark.rutland@arm.com, robh+dt@kernel.org, Chanwoo Choi , kyungmin.park@samsung.com, Andrzej Hajda , Marek Szyprowski , s.nawrocki@samsung.com, myungjoo.ham@samsung.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 17 Jul 2019 at 12:39, Lukasz Luba wrote: > >> > >> &bus_fsys { > >> devfreq = <&bus_wcore>; > >> + assigned-clocks = <&clock CLK_MOUT_ACLK200_FSYS>, > >> + <&clock CLK_DOUT_ACLK200_FSYS>, > >> + <&clock CLK_FOUT_DPLL>; > >> + assigned-clock-parents = <&clock CLK_MOUT_SCLK_DPLL>; > >> + assigned-clock-rates = <0>, <240000000>,<1200000000>; > > > > Here and in all other patches: > > I am not entirely sure that this should be here. It looks like > > property of the SoC. Do we expect that buses will be configured to > > different clock rates between different boards? Since the OPP tables > > are shared (they are property of the SoC, not board) then I would > > assume that default frequency is shared as well. > These clocks they all relay on some bootloader configuration. It depends > which version of the bootloader you have, then you might get different > default configuration in the clocks. I do not agree here. This configuration is not dependent on bootloader. Although one bootloader might set the clocks to X and other to Y, but still you provide here valid configuration setting them, e.g. to Y (or to Z). What bootloader set before does not matter because you always override it. > The pattern of changing the parent > or even rate is known in the DT files (or I am missing something). > When you grep for it, you get 168 hits (38 for exynos*): > git grep -n "assigned-clock-rates" ./arch/arm/boot/dts/ | wc -l Yeah, and if you grep per type you got: DTSI: 114 DTS: 54 so what do you want to say? My thinking is that all the boards have buses configured to the same initial frequency. I am not questioning the use of assigned-clock-rates at all. Just the place... BR, Krzysztof