Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1002002rwl; Thu, 10 Aug 2023 05:10:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEYhCO+2uFT+5hr9VPdTL2q6zmZ/GpN0LNrJJpyaCQNfD3Y4NqzbcnR3bz09NtS03fPzGxl X-Received: by 2002:a17:906:3f43:b0:993:f90b:e549 with SMTP id f3-20020a1709063f4300b00993f90be549mr1949430ejj.37.1691669446629; Thu, 10 Aug 2023 05:10:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691669446; cv=none; d=google.com; s=arc-20160816; b=UQjbfBKd8nixJxwCu7CVy94ydsC/gREmJW9qshvkUpbD5efPjm98t1UNvllCNcnr/C fTrPwV2nQPU6GpgEkOPVZ0mR2Wkbw/Dbh/nPyEUZkKkBZf+ykUSpSOXEecpuTy2BfPQs Na3vezCiRsFGW83S7VvAqxUWlCW+II54dVPIWxngVMKr0rXUQcCNuMUt6rxYsDf9y2Cs 9l2K2w9Vq0s4eCSALvEfJ4TVpxrT+lgNFLnchDg1XxokSIThBNrbM48UlkGXYpMUk013 AioX8qyahXZj8Ns4VPI5PHaluNCOmjZ4jX6/Tl0hzX80nyQGdgV3lgBZtOrfU+u3TKdi vXBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type:content-language :thread-index:content-transfer-encoding:mime-version:message-id:date :subject:in-reply-to:to:from:dkim-signature:dkim-filter; bh=1EwQ3tvka1tnP4rrf4+fc98Ufzsrq0aQ0THzeIJGJbg=; fh=1PFJo2ff7HSg4gp1yOigU4+QFyP+Iw8saExz4hrESLE=; b=R+H8LJ1uf+yqX8T7en/8dggVybGDxr0YhwGO57snlBbyZ3i1dUVOxZVMghDKaWE6sh 88bl5eyoL9zlmrrNzE4l8iifBhtBVeUwFi2XB+Ue9ixfl2Du8QVei4iOVApy/uqrWWcL MBO0gEQycTLdrlqP94wwIKNOjFn/m120ydITrRVXtmcrUdo5ze1DGw9coAh3bu/s3xjy RJLW9yZwwXcadbrBYwNPK/zt0vBfRkqPGofpWr/yoJrd3ddyz8Yaae7T6H/c+C+gK4KO qzKxWQcqRKqXKLrb/sBC7VvglNL6W5QGfD1Dlfj9mbbQVF1GbiP4PYqn+s6bmq2fJR75 xm6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=AXt12thl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kg7-20020a17090776e700b009945340230esi1357839ejc.174.2023.08.10.05.10.20; Thu, 10 Aug 2023 05:10:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=AXt12thl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S234266AbjHJL0Q (ORCPT + 99 others); Thu, 10 Aug 2023 07:26:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231708AbjHJL0P (ORCPT ); Thu, 10 Aug 2023 07:26:15 -0400 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26B06268D for ; Thu, 10 Aug 2023 04:26:14 -0700 (PDT) Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20230810112612epoutp010914728f9732b62ea4a218bad52e3789~6AfdwLFEU2534025340epoutp015 for ; Thu, 10 Aug 2023 11:26:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20230810112612epoutp010914728f9732b62ea4a218bad52e3789~6AfdwLFEU2534025340epoutp015 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1691666772; bh=1EwQ3tvka1tnP4rrf4+fc98Ufzsrq0aQ0THzeIJGJbg=; h=From:To:In-Reply-To:Subject:Date:References:From; b=AXt12thlu/0DCkmyW/+kv1P1aHuS3k28OA8u5bkEc5Cebsf+ATRolfCzrTTwHWnL2 YYlpNxcUwE4NdOV7NRnmHA8Oyls/G20F8A3/CJ0Csy/eXQjpc+/LstiRRh2F56++ZO UwsH5KA01WtT3gw9ML+RoCEkBOjd5wpZ55nEiL5Q= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20230810112611epcas5p130613f0aa1ab87cf8e0a6819224b1dca~6AfdRHV1K0252402524epcas5p1o; Thu, 10 Aug 2023 11:26:11 +0000 (GMT) Received: from epsmges5p2new.samsung.com (unknown [182.195.38.183]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4RM4PG49RSz4x9Pv; Thu, 10 Aug 2023 11:26:10 +0000 (GMT) Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 75.0D.44250.259C4D46; Thu, 10 Aug 2023 20:26:10 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20230810112609epcas5p306cfbeb47cedfa0d5c7a8f781a9212a9~6AfbiM3fu2453424534epcas5p3t; Thu, 10 Aug 2023 11:26:09 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20230810112609epsmtrp294934ad0da7715f45111b43d69a0bc21~6AfbgDe6S0531305313epsmtrp2P; Thu, 10 Aug 2023 11:26:09 +0000 (GMT) X-AuditID: b6c32a4a-ec1fd7000000acda-53-64d4c95243d6 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 52.EA.30535.159C4D46; Thu, 10 Aug 2023 20:26:09 +0900 (KST) Received: from alimakhtar04 (unknown [107.122.12.5]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20230810112607epsmtip27f45ee633567ea57110f90fecdb60eb6~6AfZpotTK0095800958epsmtip2K; Thu, 10 Aug 2023 11:26:07 +0000 (GMT) From: "Alim Akhtar" To: "'Krzysztof Kozlowski'" , "'Sylwester Nawrocki'" , "'Tomasz Figa'" , "'Chanwoo Choi'" , "'Michael Turquette'" , "'Stephen Boyd'" , "'Rob Herring'" , "'Conor Dooley'" , , , , , In-Reply-To: <20230808082738.122804-5-krzysztof.kozlowski@linaro.org> Subject: RE: [PATCH 04/11] clk: samsung: exynos5260: do not define number of clocks in bindings Date: Thu, 10 Aug 2023 16:56:06 +0530 Message-ID: <004701d9cb7d$75ee1cb0$61ca5610$@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQKdkXeLsq2DobfMxxfuGwY9MCDG5gIOqRLbAgUuauCuOzkwQA== Content-Language: en-us X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrHJsWRmVeSWpSXmKPExsWy7bCmlm7QySspBuc+yFms2XuOyeL6l+es FvOPnGO12Pt6K7vFpsfXWC0+9txjtbi8aw6bxYzz+5gsLp5ytWjde4Td4vCbdlaLf9c2slis 2vWH0YHX4/2NVnaPnbPusntsWtXJ5nHn2h42j81L6j36tq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z1pao1d07q8RS nJFoqMVcVJwIADFqRUQtAwAA X-CMS-MailID: 20230810112609epcas5p306cfbeb47cedfa0d5c7a8f781a9212a9 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230808082754epcas5p20b51ec73e6c0714491da48eafa3b13e8 References: <20230808082738.122804-1-krzysztof.kozlowski@linaro.org> <20230808082738.122804-5-krzysztof.kozlowski@linaro.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Krzysztof Kozlowski > Sent: Tuesday, August 8, 2023 1:58 PM > To: Krzysztof Kozlowski ; Sylwester > Nawrocki ; Tomasz Figa > ; Chanwoo Choi ; Alim > Akhtar ; Michael Turquette > ; Stephen Boyd ; Rob > Herring ; Conor Dooley ; > linux-samsung-soc@vger.kernel.org; linux-clk@vger.kernel.org; linux-arm- > kernel@lists.infradead.org; linux-kernel@vger.kernel.org; > devicetree@vger.kernel.org > Subject: [PATCH 04/11] clk: samsung: exynos5260: do not define number of > clocks in bindings > > Number of clocks supported by Linux drivers might vary - sometimes we add > new clocks, not exposed previously. Therefore this number of clocks should > not be in the bindings, because otherwise we should not change it. > > Define number of clocks per each clock controller inside the driver directly. > > Signed-off-by: Krzysztof Kozlowski > --- Reviewed-by: Alim Akhtar > drivers/clk/samsung/clk-exynos5260.c | 41 +++++++++++++++++++--------- > 1 file changed, 28 insertions(+), 13 deletions(-) > > diff --git a/drivers/clk/samsung/clk-exynos5260.c b/drivers/clk/samsung/clk- > exynos5260.c > index e05d7323669a..16da6ef5ca0c 100644 > --- a/drivers/clk/samsung/clk-exynos5260.c > +++ b/drivers/clk/samsung/clk-exynos5260.c > @@ -15,6 +15,21 @@ > > #include > > +/* NOTE: Must be equal to the last clock ID increased by one */ > +#define CLKS_NR_TOP > (PHYCLK_USBDRD30_UDRD30_PHYCLOCK + 1) > +#define CLKS_NR_EGL (EGL_DOUT_EGL1 + 1) > +#define CLKS_NR_KFC (KFC_DOUT_KFC1 + 1) > +#define CLKS_NR_MIF > (MIF_SCLK_LPDDR3PHY_WRAP_U0 + 1) > +#define CLKS_NR_G3D (G3D_CLK_G3D + 1) > +#define CLKS_NR_AUD (AUD_SCLK_I2S + 1) > +#define CLKS_NR_MFC (MFC_CLK_SMMU2_MFCM0 > + 1) > +#define CLKS_NR_GSCL (GSCL_SCLK_CSIS0_WRAP + > 1) > +#define CLKS_NR_FSYS (FSYS_PHYCLK_USBHOST20 + > 1) > +#define CLKS_NR_PERI (PERI_SCLK_PCM1 + 1) > +#define CLKS_NR_DISP > (DISP_MOUT_HDMI_PHY_PIXEL_USER + 1) > +#define CLKS_NR_G2D (G2D_CLK_SMMU3_G2D + 1) > +#define CLKS_NR_ISP (ISP_SCLK_UART_EXT + 1) > + > /* > * Applicable for all 2550 Type PLLS for Exynos5260, listed below > * DISP_PLL, EGL_PLL, KFC_PLL, MEM_PLL, BUS_PLL, MEDIA_PLL, G3D_PLL. > @@ -135,7 +150,7 @@ static const struct samsung_cmu_info aud_cmu > __initconst = { > .nr_div_clks = ARRAY_SIZE(aud_div_clks), > .gate_clks = aud_gate_clks, > .nr_gate_clks = ARRAY_SIZE(aud_gate_clks), > - .nr_clk_ids = AUD_NR_CLK, > + .nr_clk_ids = CLKS_NR_AUD, > .clk_regs = aud_clk_regs, > .nr_clk_regs = ARRAY_SIZE(aud_clk_regs), > }; > @@ -325,7 +340,7 @@ static const struct samsung_cmu_info disp_cmu > __initconst = { > .nr_div_clks = ARRAY_SIZE(disp_div_clks), > .gate_clks = disp_gate_clks, > .nr_gate_clks = ARRAY_SIZE(disp_gate_clks), > - .nr_clk_ids = DISP_NR_CLK, > + .nr_clk_ids = CLKS_NR_DISP, > .clk_regs = disp_clk_regs, > .nr_clk_regs = ARRAY_SIZE(disp_clk_regs), > }; > @@ -389,7 +404,7 @@ static const struct samsung_cmu_info egl_cmu > __initconst = { > .nr_mux_clks = ARRAY_SIZE(egl_mux_clks), > .div_clks = egl_div_clks, > .nr_div_clks = ARRAY_SIZE(egl_div_clks), > - .nr_clk_ids = EGL_NR_CLK, > + .nr_clk_ids = CLKS_NR_EGL, > .clk_regs = egl_clk_regs, > .nr_clk_regs = ARRAY_SIZE(egl_clk_regs), > }; > @@ -489,7 +504,7 @@ static const struct samsung_cmu_info fsys_cmu > __initconst = { > .nr_mux_clks = ARRAY_SIZE(fsys_mux_clks), > .gate_clks = fsys_gate_clks, > .nr_gate_clks = ARRAY_SIZE(fsys_gate_clks), > - .nr_clk_ids = FSYS_NR_CLK, > + .nr_clk_ids = CLKS_NR_FSYS, > .clk_regs = fsys_clk_regs, > .nr_clk_regs = ARRAY_SIZE(fsys_clk_regs), > }; > @@ -580,7 +595,7 @@ static const struct samsung_cmu_info g2d_cmu > __initconst = { > .nr_div_clks = ARRAY_SIZE(g2d_div_clks), > .gate_clks = g2d_gate_clks, > .nr_gate_clks = ARRAY_SIZE(g2d_gate_clks), > - .nr_clk_ids = G2D_NR_CLK, > + .nr_clk_ids = CLKS_NR_G2D, > .clk_regs = g2d_clk_regs, > .nr_clk_regs = ARRAY_SIZE(g2d_clk_regs), > }; > @@ -643,7 +658,7 @@ static const struct samsung_cmu_info g3d_cmu > __initconst = { > .nr_div_clks = ARRAY_SIZE(g3d_div_clks), > .gate_clks = g3d_gate_clks, > .nr_gate_clks = ARRAY_SIZE(g3d_gate_clks), > - .nr_clk_ids = G3D_NR_CLK, > + .nr_clk_ids = CLKS_NR_G3D, > .clk_regs = g3d_clk_regs, > .nr_clk_regs = ARRAY_SIZE(g3d_clk_regs), > }; > @@ -776,7 +791,7 @@ static const struct samsung_cmu_info gscl_cmu > __initconst = { > .nr_div_clks = ARRAY_SIZE(gscl_div_clks), > .gate_clks = gscl_gate_clks, > .nr_gate_clks = ARRAY_SIZE(gscl_gate_clks), > - .nr_clk_ids = GSCL_NR_CLK, > + .nr_clk_ids = CLKS_NR_GSCL, > .clk_regs = gscl_clk_regs, > .nr_clk_regs = ARRAY_SIZE(gscl_clk_regs), > }; > @@ -895,7 +910,7 @@ static const struct samsung_cmu_info isp_cmu > __initconst = { > .nr_div_clks = ARRAY_SIZE(isp_div_clks), > .gate_clks = isp_gate_clks, > .nr_gate_clks = ARRAY_SIZE(isp_gate_clks), > - .nr_clk_ids = ISP_NR_CLK, > + .nr_clk_ids = CLKS_NR_ISP, > .clk_regs = isp_clk_regs, > .nr_clk_regs = ARRAY_SIZE(isp_clk_regs), > }; > @@ -959,7 +974,7 @@ static const struct samsung_cmu_info kfc_cmu > __initconst = { > .nr_mux_clks = ARRAY_SIZE(kfc_mux_clks), > .div_clks = kfc_div_clks, > .nr_div_clks = ARRAY_SIZE(kfc_div_clks), > - .nr_clk_ids = KFC_NR_CLK, > + .nr_clk_ids = CLKS_NR_KFC, > .clk_regs = kfc_clk_regs, > .nr_clk_regs = ARRAY_SIZE(kfc_clk_regs), > }; > @@ -1015,7 +1030,7 @@ static const struct samsung_cmu_info mfc_cmu > __initconst = { > .nr_div_clks = ARRAY_SIZE(mfc_div_clks), > .gate_clks = mfc_gate_clks, > .nr_gate_clks = ARRAY_SIZE(mfc_gate_clks), > - .nr_clk_ids = MFC_NR_CLK, > + .nr_clk_ids = CLKS_NR_MFC, > .clk_regs = mfc_clk_regs, > .nr_clk_regs = ARRAY_SIZE(mfc_clk_regs), > }; > @@ -1164,7 +1179,7 @@ static const struct samsung_cmu_info mif_cmu > __initconst = { > .nr_div_clks = ARRAY_SIZE(mif_div_clks), > .gate_clks = mif_gate_clks, > .nr_gate_clks = ARRAY_SIZE(mif_gate_clks), > - .nr_clk_ids = MIF_NR_CLK, > + .nr_clk_ids = CLKS_NR_MIF, > .clk_regs = mif_clk_regs, > .nr_clk_regs = ARRAY_SIZE(mif_clk_regs), > }; > @@ -1370,7 +1385,7 @@ static const struct samsung_cmu_info peri_cmu > __initconst = { > .nr_div_clks = ARRAY_SIZE(peri_div_clks), > .gate_clks = peri_gate_clks, > .nr_gate_clks = ARRAY_SIZE(peri_gate_clks), > - .nr_clk_ids = PERI_NR_CLK, > + .nr_clk_ids = CLKS_NR_PERI, > .clk_regs = peri_clk_regs, > .nr_clk_regs = ARRAY_SIZE(peri_clk_regs), > }; > @@ -1826,7 +1841,7 @@ static const struct samsung_cmu_info top_cmu > __initconst = { > .nr_gate_clks = ARRAY_SIZE(top_gate_clks), > .fixed_clks = fixed_rate_clks, > .nr_fixed_clks = ARRAY_SIZE(fixed_rate_clks), > - .nr_clk_ids = TOP_NR_CLK, > + .nr_clk_ids = CLKS_NR_TOP, > .clk_regs = top_clk_regs, > .nr_clk_regs = ARRAY_SIZE(top_clk_regs), > }; > -- > 2.34.1