Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1264584pxb; Wed, 4 Nov 2020 04:33:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJwUT2M3Bmg7UWUPDUY0ow+dx3P0kwOk62gWntnMemGw//ZPRBw43yaI6p8eUtyjiNuVyMWQ X-Received: by 2002:a17:906:3282:: with SMTP id 2mr15988003ejw.52.1604493198438; Wed, 04 Nov 2020 04:33:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604493198; cv=none; d=google.com; s=arc-20160816; b=z2B3oHv1L5gZcdociA4+uky3rs+LismJFNHeSArG7v+lkqFQBKrY86LI6YzcwpI+kE DoEAe9RskEW7UC1Aex9KHbAwUZjIdSL47bpCK11U0O5xdb1K7vwpCp7um/RK9qsV6I4P DAPjEmxJbKmHITQW3PiPtr+a4mBG1HcaK2iPygf7eDkwcPn74FINOL/l890KokpAb715 Bl16wkZ3VFvFkfyuIQSZHQkEmCOemI/LnoGw5YoxH4IjZWUVJajUCy0KKkHL90nFa1Bm a9jnRxl2LMyb4HzNXW8c2f2+Z+F6emnZO2Uit82cMQzI5GV7Mkd0HuuEI1sNSd459r6y 7jHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:reply-to:in-reply-to:references:mime-version :dkim-signature; bh=7RApEAIaUf6wDTnqq0BAlylI/sI1v2LiQccVP7zRzN0=; b=UbnAevRRbEucsFc4XZDPTFNljS9sFmAx/eQV0E/Mu0f6Keiet4enEmsfNHz0M4k8Q/ arFcsAGhZwbP6iZi7x8M+qwMfYs1nM9a1XxglHVw3LMF7Gt2hIrbV+FVn6BsxZZCc0XF igsi8j51y+Qk6Ivlb9WtPB5i3QB+KU9TyhyZkhaXyId05gZs3ifxSqZfy7s8gCYDH3yA XP7lNn3+oFfTZbMJ4Y5F60aK435ukPkTaqyphAsgz+Y+IJg5zNbLXkLWRJXd6n9KblI4 o0ioDoFt1PV+daZ9pEJVVcy9Z6zdODAKXiqz+1caTxtIEOzPCb8Y8qG1QlhWYn0EsMI3 AEuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FR9j+plF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b24si1317690eje.190.2020.11.04.04.32.54; Wed, 04 Nov 2020 04:33:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FR9j+plF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729990AbgKDM2m (ORCPT + 99 others); Wed, 4 Nov 2020 07:28:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729583AbgKDM2l (ORCPT ); Wed, 4 Nov 2020 07:28:41 -0500 Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82E25C0613D3; Wed, 4 Nov 2020 04:28:40 -0800 (PST) Received: by mail-lf1-x143.google.com with SMTP id h6so26881085lfj.3; Wed, 04 Nov 2020 04:28:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=7RApEAIaUf6wDTnqq0BAlylI/sI1v2LiQccVP7zRzN0=; b=FR9j+plFjwWbPLzQUZmU7h+wKoQHND7B3nJQww2YeAdpJIdffi0Cp9tkRVmtzBOPuv rD1CPUVNeoLi+avI/RQrA8KrpSMnNP+ZpEcrB5HJ7uM4XRvJqElH50scVQ0sWcxbovB6 zVjLWVGtfucH4JLljo99LCBx98mutL430pd4H1VLfC1u/aXwk6yWdICe6uLO9GTGU+kM VgqY8RESm9bPbsB5rE1ivoyfvrEBfE1U6iTF906Irt3lia+hJqAJkNRwtQ7nhlW1H1Ys JwMKl2ViTPT5sUOQ7x9xWzFx5I39FgEc38jUfT4n5+pb2nUDAVaS3kAx+iLSaGtCvuJx XJSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc:content-transfer-encoding; bh=7RApEAIaUf6wDTnqq0BAlylI/sI1v2LiQccVP7zRzN0=; b=fM91XfrdeE0qYU56VqR9YvFP0QnwrDJrbfQibZ8SzjaUJeUahDQnIjfiH50fIJHCOZ jonqhU9PVb04iGVslIy8vsWO9CmV7tTuE5NAQMq9UkJ9zIzMuhvF3nR0cuNWzVe7hVja pGCbddB2Tn1Q6hGvhbqVC6JDY+NsayU7rdQjbYyuoHrChko3oOC295dlm0hyw6ZuYxA3 9mVeUqK42KrQAJFnLVE4aacvmhCzL8KLfmTOgPFFLJhJ+yY9scTWvf6JpQd1VV8Y/52k nqys9kXpcUntenT8RoJOHGWOI0v7ev11QKV0IKpmxvj+B1Idme9HV04mP9VcqCj0Ruqb 8CaQ== X-Gm-Message-State: AOAM5324JVAXhr4OFypXGSUbjSw2Anocg0sVquMENKJBp39T+kust2z1 rRb8+a7QNq5loS2lj4p2FTUCUaacU/5aimeR10Yp6FQnXVo= X-Received: by 2002:a05:6512:322d:: with SMTP id f13mr8976937lfe.571.1604492918961; Wed, 04 Nov 2020 04:28:38 -0800 (PST) MIME-Version: 1.0 References: <20201104103657.18007-1-s.nawrocki@samsung.com> <20201104103657.18007-2-s.nawrocki@samsung.com> In-Reply-To: <20201104103657.18007-2-s.nawrocki@samsung.com> Reply-To: cwchoi00@gmail.com From: Chanwoo Choi Date: Wed, 4 Nov 2020 21:28:02 +0900 Message-ID: Subject: Re: [PATCH v8 1/7] dt-bindings: devfreq: Add documentation for the interconnect properties To: Sylwester Nawrocki Cc: Georgi Djakov , Chanwoo Choi , Krzysztof Kozlowski , devicetree , linux-samsung-soc , Bartlomiej Zolnierkiewicz , Linux PM list , Seung-Woo Kim , =?UTF-8?B?QXJ0dXIgxZp3aWdvxYQ=?= , Rob Herring , linux-kernel , MyungJoo Ham , dri-devel , linux-arm-kernel , Marek Szyprowski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sylwester, On Wed, Nov 4, 2020 at 7:37 PM Sylwester Nawrocki wrote: > > Add documentation for new optional properties in the exynos bus nodes: > interconnects, #interconnect-cells, samsung,data-clock-ratio. > These properties allow to specify the SoC interconnect structure which > then allows the interconnect consumer devices to request specific > bandwidth requirements. > > Signed-off-by: Artur =C5=9Awigo=C5=84 > Signed-off-by: Sylwester Nawrocki > --- > Changes for v8: > - updated description of the interconnects property, > - fixed typo in samsung,data-clk-ratio property description. > > Changes for v7: > - bus-width property replaced with samsung,data-clock-ratio, > - the interconnect consumer bindings used instead of vendor specific > properties > > Changes for v6: > - added dts example of bus hierarchy definition and the interconnect > consumer, > - added new bus-width property. > > Changes for v5: > - exynos,interconnect-parent-node renamed to samsung,interconnect-parent > --- > .../devicetree/bindings/devfreq/exynos-bus.txt | 71 ++++++++++++++++= +++++- > 1 file changed, 69 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/devfreq/exynos-bus.txt b/D= ocumentation/devicetree/bindings/devfreq/exynos-bus.txt > index e71f752..bcaa2c0 100644 > --- a/Documentation/devicetree/bindings/devfreq/exynos-bus.txt > +++ b/Documentation/devicetree/bindings/devfreq/exynos-bus.txt > @@ -51,6 +51,19 @@ Optional properties only for parent bus device: > - exynos,saturation-ratio: the percentage value which is used to calibra= te > the performance count against total cycle count. > > +Optional properties for the interconnect functionality (QoS frequency > +constraints): > +- #interconnect-cells: should be 0. > +- interconnects: as documented in ../interconnect.txt, describes a path = at the > + higher level interconnects used by this interconnect provider. > + If this interconnect provider is directly linked to a top level interc= onnect > + provider the property contains only one phandle. The provider extends > + the interconnect graph by linking its node to a node registered by pro= vider > + pointed to by first phandle in the 'interconnects' property. > + > +- samsung,data-clock-ratio: ratio of the data throughput in B/s to minim= um data > + clock frequency in Hz, default value is 8 when this property is missi= ng. > + > Detailed correlation between sub-blocks and power line according to Exyn= os SoC: > - In case of Exynos3250, there are two power line as following: > VDD_MIF |--- DMC > @@ -135,7 +148,7 @@ Detailed correlation between sub-blocks and power lin= e according to Exynos SoC: > |--- PERIC (Fixed clock rate) > |--- FSYS (Fixed clock rate) > > -Example1: > +Example 1: > Show the AXI buses of Exynos3250 SoC. Exynos3250 divides the buse= s to > power line (regulator). The MIF (Memory Interface) AXI bus is use= d to > transfer data between DRAM and CPU and uses the VDD_MIF regulator= . > @@ -184,7 +197,7 @@ Example1: > |L5 |200000 |200000 |400000 |300000 | ||1000000 | > ---------------------------------------------------------- > > -Example2 : > +Example 2: > The bus of DMC (Dynamic Memory Controller) block in exynos3250.dt= si > is listed below: > > @@ -419,3 +432,57 @@ Example2 : > devfreq =3D <&bus_leftbus>; > status =3D "okay"; > }; > + > +Example 3: > + An interconnect path "bus_display -- bus_leftbus -- bus_dmc" on > + Exynos4412 SoC with video mixer as an interconnect consumer devic= e. > + > + soc { > + bus_dmc: bus_dmc { > + compatible =3D "samsung,exynos-bus"; > + clocks =3D <&clock CLK_DIV_DMC>; > + clock-names =3D "bus"; > + operating-points-v2 =3D <&bus_dmc_opp_table>; > + samsung,data-clock-ratio =3D <4>; > + #interconnect-cells =3D <0>; > + }; > + > + bus_leftbus: bus_leftbus { > + compatible =3D "samsung,exynos-bus"; > + clocks =3D <&clock CLK_DIV_GDL>; > + clock-names =3D "bus"; > + operating-points-v2 =3D <&bus_leftbus_opp_table>; > + #interconnect-cells =3D <0>; > + interconnects =3D <&bus_dmc>; > + }; > + > + bus_display: bus_display { > + compatible =3D "samsung,exynos-bus"; > + clocks =3D <&clock CLK_ACLK160>; > + clock-names =3D "bus"; > + operating-points-v2 =3D <&bus_display_opp_table>; > + #interconnect-cells =3D <0>; > + interconnects =3D <&bus_leftbus &bus_dmc>; > + }; > + > + bus_dmc_opp_table: opp_table1 { > + compatible =3D "operating-points-v2"; > + /* ... */ > + } > + > + bus_leftbus_opp_table: opp_table3 { > + compatible =3D "operating-points-v2"; > + /* ... */ > + }; > + > + bus_display_opp_table: opp_table4 { > + compatible =3D "operating-points-v2"; > + /* .. */ > + }; > + > + &mixer { > + compatible =3D "samsung,exynos4212-mixer"; > + interconnects =3D <&bus_display &bus_dmc>; > + /* ... */ > + }; > + }; > -- > 2.7.4 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel Acked-by: Chanwoo Choi Thanks for your work. --=20 Best Regards, Chanwoo Choi