Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp622853ybi; Tue, 16 Jul 2019 02:47:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQ+AfaavrMYx80h0htKfvN7hN16sqycI13j7409UtMp4gcrAPhpoHYAy6zD8B7PbpFAT02 X-Received: by 2002:a63:8643:: with SMTP id x64mr661536pgd.307.1563270449139; Tue, 16 Jul 2019 02:47:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563270449; cv=none; d=google.com; s=arc-20160816; b=JRFnIpJhFAS9MV5hDMh/8MBI3feTc4/v9cztKkX+6d280SVCzCbMjVFOjBxM02Hwzw KXkUa3gsxfme6mOdyQA0dL5AfLevhoKNXpuoT6rryGFW1c9elokT+qU9v/vFeQAQPKrE WdeBbsqKXX2GAuhgPxpeYvNSRlybOLOxwbr6vTmJbHXHsNgr0tRsYNcKA4qwuuyLwUwg 6K9MEsLHa3/wrYIV1BlH1Swh9UdfePrmvzPK1Cx0Gtnhl2K3OS/0iW2cN4txl6WjxS3k il44ZV9kP2KxTp1UwIQJd3RBvvxGEGTK1k+3uC3E7pDQ0TEjg3Y+8xXfjcA9Mqm8MejF Rw+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:dlp-filter:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:organization:from:cc:to:subject :dkim-signature:dkim-filter; bh=4bfSgfYoCpxhiF8FXK5rSogZNO+K2iF9TeI2hAAgd80=; b=Y2bP+gVnRNnGLBfQHVKYy7yBYB6yZ1qZNNvxaT1n63maRQbJYIaiYqO9iqGAo1Dh31 4fdQdncQyf9sa2jLT/vnWnWTQiXeckcOSGXmyaAohHRHoxvdKQbFLM7HUWQJQYyRaiCO vFydiBfxRTOIuzNNPHxQ5E90ShLY06q0GNNivyX65GEmM4bxmIYS9aP000fRl0wAhrdB uAq/c4n4oaVgIOLtMmqC1IRECabso/Dzmi21REHMvisa6+Bkbu7Szqs+bL/nOluEDGd0 UtEQN2vgIOP3TFSqAUvz1+VMfke0osol0ZlgCYwCdBuJ8A1TpOQ50oiEX63Rq9xeABGq 9nkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=sln+luGg; 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=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p3si17916222pjr.18.2019.07.16.02.47.13; Tue, 16 Jul 2019 02:47:29 -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=@samsung.com header.s=mail20170921 header.b=sln+luGg; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732472AbfGPJqv (ORCPT + 99 others); Tue, 16 Jul 2019 05:46:51 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:41647 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726536AbfGPJqv (ORCPT ); Tue, 16 Jul 2019 05:46:51 -0400 Received: from epcas1p4.samsung.com (unknown [182.195.41.48]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20190716094648epoutp025166222dc174896311b5e6f66dc33027~x2idsNN2r1154011540epoutp02P for ; Tue, 16 Jul 2019 09:46:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20190716094648epoutp025166222dc174896311b5e6f66dc33027~x2idsNN2r1154011540epoutp02P DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1563270408; bh=4bfSgfYoCpxhiF8FXK5rSogZNO+K2iF9TeI2hAAgd80=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=sln+luGgK+4yeGiHOrvaFfkvarEH2NYw8PG8OMNe1LtimLobdePJQ9wMdngD0vLta uDk0Puvg0Xq0aODqdvmLvN7jZuZ5i1Ay9aVfIluAnkQ4BpOLma/6uGZFW+s9iMQTJc Byl0+leQ1Qi9iXq4CBWqMQvLVWSFatLqd2yX7Ux8= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20190716094647epcas1p386efce8c9b0b24d25009925624c13438~x2idC4con0776707767epcas1p3T; Tue, 16 Jul 2019 09:46:47 +0000 (GMT) Received: from epsmges1p1.samsung.com (unknown [182.195.40.157]) by epsnrtp1.localdomain (Postfix) with ESMTP id 45nwXP3PtTzMqYln; Tue, 16 Jul 2019 09:46:45 +0000 (GMT) Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p1.samsung.com (Symantec Messaging Gateway) with SMTP id A7.FA.04088.50D9D2D5; Tue, 16 Jul 2019 18:46:45 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190716094644epcas1p2905f90d0067a302244b4cac39ca17cad~x2iaPB5AJ2000420004epcas1p27; Tue, 16 Jul 2019 09:46:44 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190716094644epsmtrp23e07c5c0a50a4932ff52915493bd109d~x2iaOEvCc0052500525epsmtrp2T; Tue, 16 Jul 2019 09:46:44 +0000 (GMT) X-AuditID: b6c32a35-85dff70000000ff8-10-5d2d9d051238 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 54.96.03706.40D9D2D5; Tue, 16 Jul 2019 18:46:44 +0900 (KST) Received: from [10.113.221.102] (unknown [10.113.221.102]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190716094644epsmtip2758a371fe6a83b23d1b4692c4a1031ee~x2iZynVEa1526415264epsmtip2K; Tue, 16 Jul 2019 09:46:44 +0000 (GMT) Subject: Re: [PATCH v1 01/50] clk: samsung: add new IDs for Exynos5420 clocks To: Lukasz Luba , 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 Cc: mturquette@baylibre.com, sboyd@kernel.org, b.zolnierkie@samsung.com, krzk@kernel.org, kgene@kernel.org, mark.rutland@arm.com, robh+dt@kernel.org, kyungmin.park@samsung.com, a.hajda@samsung.com, m.szyprowski@samsung.com, s.nawrocki@samsung.com, myungjoo.ham@samsung.com From: Chanwoo Choi Organization: Samsung Electronics Message-ID: Date: Tue, 16 Jul 2019 18:49:50 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20190715124417.4787-2-l.luba@partner.samsung.com> Content-Language: en-US Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrEJsWRmVeSWpSXmKPExsWy7bCmni7rXN1Yg+krBC1urTvHarFxxnpW i/lHgKz+x6+ZLc6f38BucbbpDbvFrQYZi02Pr7FafOy5x2pxedccNosZ5/cxWaw9cpfdYun1 i0wWF0+5WtxuXMFm0br3CLvF4TftrBb/rm1kcRDyWDNvDaPH+xut7B6bVnWyeWxeUu9x8N0e Jo++LasYPT5vkgtgj8q2yUhNTEktUkjNS85PycxLt1XyDo53jjc1MzDUNbS0MFdSyEvMTbVV cvEJ0HXLzAF6QkmhLDGnFCgUkFhcrKRvZ1OU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PH+xut7B6bVnWyeWxeUu9x8N0e Jo++LasYPT5vkgtgj+KySUnNySxLLdK3S+DKaNzay17wXbnid49eA+NG8S5GTg4JAROJszce MXUxcnEICexmlJh1bAojREJSYtrFo8xdjBxAtrDE4cPFEDVvGSU+bX3CAhIXFvCVeHXRHCQu InCOUaLv71l2kF5mgWlMEifWM0M0HGeU+Lr1AthQNgEtif0vbrCB2PwCihJXfzwGi/MK2Ekc W7KWFcRmEVCV+DXvJdggUYEIiUnXdrJA1AhKnJz5BMzmFLCXuNV9nw1imbrEn3mXmCFscYlb T+YzQdjyEs1bZzNPYBSehaR9FpKWWUhaZiFpWcDIsopRMrWgODc9t9iwwDAvtVyvODG3uDQv XS85P3cTIziStTR3MF5eEn+IUYCDUYmH98QenVgh1sSy4srcQ4wSHMxKIry2X7VjhXhTEiur Uovy44tKc1KLDzFKc7AoifM+zTsWKSSQnliSmp2aWpBaBJNl4uCUamAs3q0u9vXuht87Z8e7 Bbj+n1Qg80jKQ1iYdfKZjf0tNWuOFtj+ZhJYNnO25+a1rzabZN85bRbV9/Dqn616Riv1wh3q M8Iqwxxv/qjcpGYx7buXRcepbzfmPilPv9117QBz7mr9jEiDw49WHJPzVgj4pfHbcNrBjyJd prHz1siGyIim52vudHqsxFKckWioxVxUnAgAwMSwueACAAA= X-CMS-MailID: 20190716094644epcas1p2905f90d0067a302244b4cac39ca17cad X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20190715124434eucas1p273e2efaad8bc3904c6f76cc1671aeb6c References: <20190715124417.4787-1-l.luba@partner.samsung.com> <20190715124417.4787-2-l.luba@partner.samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Usually, when developing the clock controller driver, define the same sequence between the definition sequence in dt-bibing and clock driver. As I replied, if you squash patches, it is easy. For example, This series add clock id as following. 569 MUX(CLK_MOUT_ACLK400_ISP, "mout_aclk400_isp", mout_group1_p, 570 SRC_TOP0, 0, 2), 571 MUX(CLK_MOUT_ACLK400_MSCL, "mout_aclk400_mscl", mout_group1_p, 572 SRC_TOP0, 4, 2), 573 MUX(CLK_MOUT_ACLK400_WCORE, "mout_aclk400_wcore", mout_group1_p, 574 SRC_TOP0, 16, 2), 575 MUX(CLK_MOUT_ACLK100_NOC, "mout_aclk100_noc", mout_group1_p, 576 SRC_TOP0, 20, 2), In case of this code, you can define the IDs as following sequentially: #define CLK_MOUT_ACLK400_ISP ... #define CLK_MOUT_ACLK400_MSCL ... #define CLK_MOUT_ACLK400_WCORE ... #define CLK_MOUT_ACLK100_NOC ... But, this series define the ID as following: #define CLK_MOUT_ACLK400_WCORE 662 #define CLK_MOUT_SCLK_DPLL 663 #define CLK_MOUT_ACLK100_NOC 664 #define CLK_MOUT_ACLK200_FSYS2 665 #define CLK_MOUT_PCLK200_FSYS 666 #define CLK_MOUT_ACLK200_FSYS 667 #define CLK_MOUT_ACLK400_ISP 668 #define CLK_MOUT_ACLK400_MSCL 669 #define CLK_MOUT_SCLK_MPLL 700 #define CLK_MOUT_ACLK266 701 #define CLK_MOUT_UART0 702 #define CLK_MOUT_UART1 703 #define CLK_MOUT_UART2 704 #define CLK_MOUT_UART3 7 On 19. 7. 15. 오후 9:43, Lukasz Luba wrote: > There is a need of new IDs which will be used for modeling proper hierarchy > in the Exynos54xx SoCs. Previous implementation rely on bootloader > settings, which are not configuring properly some clocks. > These IDs provide interface to set proper parents. > > Signed-off-by: Lukasz Luba > --- > include/dt-bindings/clock/exynos5420.h | 27 +++++++++++++++++++++++++- > 1 file changed, 26 insertions(+), 1 deletion(-) > > diff --git a/include/dt-bindings/clock/exynos5420.h b/include/dt-bindings/clock/exynos5420.h > index 02d5ac469a3d..c37a28eeaf7e 100644 > --- a/include/dt-bindings/clock/exynos5420.h > +++ b/include/dt-bindings/clock/exynos5420.h > @@ -230,6 +230,30 @@ > #define CLK_MOUT_USER_MAU_EPLL 659 > #define CLK_MOUT_SCLK_SPLL 660 > #define CLK_MOUT_MX_MSPLL_CCORE_PHY 661 > +#define CLK_MOUT_ACLK400_WCORE 662 > +#define CLK_MOUT_SCLK_DPLL 663 > +#define CLK_MOUT_ACLK100_NOC 664 > +#define CLK_MOUT_ACLK200_FSYS2 665 > +#define CLK_MOUT_PCLK200_FSYS 666 > +#define CLK_MOUT_ACLK200_FSYS 667 > +#define CLK_MOUT_ACLK400_ISP 668 > +#define CLK_MOUT_ACLK400_MSCL 669 > +#define CLK_MOUT_SCLK_MPLL 700 > +#define CLK_MOUT_ACLK266 701 > +#define CLK_MOUT_UART0 702 > +#define CLK_MOUT_UART1 703 > +#define CLK_MOUT_UART2 704 > +#define CLK_MOUT_UART3 705 > +#define CLK_MOUT_SCLK_CPLL 706 > +#define CLK_MOUT_PWM 707 > +#define CLK_MOUT_ACLK266_G2D 708 > +#define CLK_MOUT_SW_ACLK400_WCORE 709 > +#define CLK_MOUT_SW_ACLK400_MSCL 710 > +#define CLK_MOUT_SW_ACLK400_ISP 711 > +#define CLK_MOUT_SW_ACLK266_ISP 712 > +#define CLK_MOUT_USER_ACLK266_ISP 713 > +#define CLK_MOUT_ACLK266_ISP 714 > +#define CLK_MOUT_MMC0 715 > > /* divider clocks */ > #define CLK_DOUT_PIXEL 768 > @@ -264,8 +288,9 @@ > #define CLK_FF_DOUT_SPLL2 797 > #define CLK_DOUT_PCLK_DREX0 798 > #define CLK_DOUT_PCLK_DREX1 799 > +#define CLK_DOUT_ACLK266_ISP 800 > > /* must be greater than maximal clock id */ > -#define CLK_NR_CLKS 800 > +#define CLK_NR_CLKS 801 > > #endif /* _DT_BINDINGS_CLOCK_EXYNOS_5420_H */ > -- Best Regards, Chanwoo Choi Samsung Electronics