Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2108396rwr; Fri, 21 Apr 2023 04:36:35 -0700 (PDT) X-Google-Smtp-Source: AKy350ZzA7LhKxysQ1MkYYqvy+cMAA7p13Mh15F2tNYRsrQGg/5PEJiYQhLsp+zKarXXFWd2tOwM X-Received: by 2002:a05:6a20:5496:b0:f1:f884:f0dd with SMTP id i22-20020a056a20549600b000f1f884f0ddmr5957681pzk.2.1682076994976; Fri, 21 Apr 2023 04:36:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682076994; cv=none; d=google.com; s=arc-20160816; b=o51MHgxICHVGMvYk+pB7I2gmqqcWMfBq6PBFLOG1GPNBYt9QTJRRkmqr9Jw9Rb3IXU OibpY7Dsqms3HNRLTiHFxmUuKEbIMrC3JHKieUdXOB4E72tFUFGC1ByJx0XwU4/UjG1y eANLuDzyeKiCidKm9HIqaarl78UM3OUKlVCUsn+65dVYlJvhE6s1nSY+VRQgQaSAe+s1 nI0qJa/cvnuP50SG38hsmIYEWtTG0iz7fjmmMij4Hq6PUZLuCSMYRx2gVUaMtuQC5t67 xyJjcidVKNo3e3PpSovLSUpdSjZtx1fS0ELaod2Ku+8XL8p3n2bF5tY9DFcu4+x5OAK+ 8SFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:content-transfer-encoding :in-reply-to:from:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature:dkim-filter; bh=X9Uc8/wiA5Xs838ROjL7g0Ad87gfoAq/y+Io8xsD7P8=; b=rJADm4sTwCZRzrhCgNAuX3sh0q1n7TJbwID4pFAD/nF1IZA1TXh9GqAYAliwfgBHlx VUdbXN/PMQ0OvjcBsZ5eouS5kpDEBeh7x5der366ZKEpi1FNRTFu1NtbVOVwLmQuoETe oo46TG+WSqq7jNfv/ZagVodHhzWutduxWYAcikctDTHvu35/LBmjp/eE8MMr7XjFBS8F IwxHx7Ov9L67Z7XBohw6TDcr6Gxt+MOLDaKRMkcKEMn4W0isaQ9cI9vfOfLMC9+9oDEc 6AAK9/7VkDi3e+wc7o4lY9A6PWWtwSj144X02SEnR6F+exPjD63iCwpvpEvnSSUYW6ju /EpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=eF5WL1cO; 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 g30-20020aa79dde000000b0063af5d600cfsi4064680pfq.302.2023.04.21.04.36.01; Fri, 21 Apr 2023 04:36:34 -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=eF5WL1cO; 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 S231233AbjDULZk (ORCPT + 99 others); Fri, 21 Apr 2023 07:25:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229709AbjDULZj (ORCPT ); Fri, 21 Apr 2023 07:25:39 -0400 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15FF593F6 for ; Fri, 21 Apr 2023 04:25:32 -0700 (PDT) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20230421112529euoutp01fb35a1eb9b3b8801a76eb178f3f2aae5~X74JuRCU32512625126euoutp01p for ; Fri, 21 Apr 2023 11:25:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20230421112529euoutp01fb35a1eb9b3b8801a76eb178f3f2aae5~X74JuRCU32512625126euoutp01p DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1682076329; bh=X9Uc8/wiA5Xs838ROjL7g0Ad87gfoAq/y+Io8xsD7P8=; h=Date:Subject:To:Cc:From:In-Reply-To:References:From; b=eF5WL1cOCRIvScF5JHW8nJ0vD/ti/rBF1RbjE0NVv45+mu+jeY/cuMORpTu4DeCjz K4jVR6DKk02nBJE/j7hpzJ8uhm4aN+deqYFVS0vPqyWokk4EgwYv97cUAZnBQudTZn 2laSjYnlhk0+cDgKId+06gf6uuvR1QHeRBlZxHUE= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20230421112528eucas1p2c36a166fe8a830b0b661643a70693641~X74JUbLYJ2901129011eucas1p2l; Fri, 21 Apr 2023 11:25:28 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id ED.5D.09503.8A272446; Fri, 21 Apr 2023 12:25:28 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20230421112528eucas1p202ae1e38ffbc63d3ff968ca9d8141d94~X74IyZduT3120531205eucas1p2i; Fri, 21 Apr 2023 11:25:28 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20230421112528eusmtrp28fd5e92e7d1e7ed2ff2de6ae20c3b1ba~X74IxqX7f1838318383eusmtrp2L; Fri, 21 Apr 2023 11:25:28 +0000 (GMT) X-AuditID: cbfec7f2-ea5ff7000000251f-f9-644272a8aaad Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 9E.DD.34412.8A272446; Fri, 21 Apr 2023 12:25:28 +0100 (BST) Received: from [106.210.134.192] (unknown [106.210.134.192]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230421112527eusmtip11e24bee1308db329ce428ae9f7dab24c~X74HlSgIj0246502465eusmtip1r; Fri, 21 Apr 2023 11:25:26 +0000 (GMT) Message-ID: <28219b3d-e2cc-63b1-555b-c3845300f45a@samsung.com> Date: Fri, 21 Apr 2023 13:25:26 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH 3/6] drm: bridge: samsung-dsim: Fetch pll-clock-frequency automatically Content-Language: en-US To: Adam Ford , dri-devel@lists.freedesktop.org Cc: marex@denx.de, aford@beaconembedded.com, Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Inki Dae , Jagan Teki , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org From: Marek Szyprowski In-Reply-To: <20230415104104.5537-3-aford173@gmail.com> Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA02SfUxbVRjGc+69vb1067wUZo9MxDXDOBQKbhkngREpRK9x6rLpNMNFmvUG iC2QlvpBIHa6wegUC4ubK58bKKxZIatNN5AOZSuUoIxtBVwBK4EI1DJgIDg+Nm0vKv897/O+ v/Oe5+RQuKieDKOysvNYdbZcKSEFhK3zQW90o1qmiK1vk6LhoR4cfd9/io+cgxcw5Kmb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XLtfcXOWaizcF9ulMnNukF/SoeRfG58qPN3/4fZ/iT3bEwMEDyys2HvmnZDg 4fM+XfNqNv44ojvTNPekRbnUltDnQtc4GRoY+Kd1X7khsKYl2dx5/cbpT1babDrV7bJQYMOj igBb1TijD96su/bf28E7+SyXitR8gbpDJzd8KHnXWr1m2pvHh00LjAuqOSepT7ZcaHi/7Zy9 EktxRqKhFnNRcSIANn5Fx8sDAAA= X-CMS-MailID: 20230421112528eucas1p202ae1e38ffbc63d3ff968ca9d8141d94 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20230415104123eucas1p103250c1748170354509932778b233900 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20230415104123eucas1p103250c1748170354509932778b233900 References: <20230415104104.5537-1-aford173@gmail.com> <20230415104104.5537-3-aford173@gmail.com> X-Spam-Status: No, score=-10.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 On 15.04.2023 12:41, Adam Ford wrote: > Fetch the clock rate of "sclk_mipi" (or "pll_clk") instead of > having an entry in the device tree for samsung,pll-clock-frequency. > > Signed-off-by: Adam Ford This one breaks DSI panel operation on my Exynos-based Trats, Trats2 and TM2e boards. I've didn't check the details, but probably something is missing in the dts to make it working properly. Surprisingly the display is still working fine on Arndale board with DSI TC358764 bridge. > --- > drivers/gpu/drm/bridge/samsung-dsim.c | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/drivers/gpu/drm/bridge/samsung-dsim.c b/drivers/gpu/drm/bridge/samsung-dsim.c > index 9fec32b44e05..73f0c3fbbdf5 100644 > --- a/drivers/gpu/drm/bridge/samsung-dsim.c > +++ b/drivers/gpu/drm/bridge/samsung-dsim.c > @@ -1744,11 +1744,6 @@ static int samsung_dsim_parse_dt(struct samsung_dsim *dsi) > struct device_node *node = dev->of_node; > int ret; > > - ret = samsung_dsim_of_read_u32(node, "samsung,pll-clock-frequency", > - &dsi->pll_clk_rate); > - if (ret < 0) > - return ret; > - > ret = samsung_dsim_of_read_u32(node, "samsung,burst-clock-frequency", > &dsi->burst_clk_rate); > if (ret < 0) > @@ -1823,13 +1818,18 @@ int samsung_dsim_probe(struct platform_device *pdev) > if (IS_ERR(dsi->clks[i])) { > if (strcmp(clk_names[i], "sclk_mipi") == 0) { > dsi->clks[i] = devm_clk_get(dev, OLD_SCLK_MIPI_CLK_NAME); > - if (!IS_ERR(dsi->clks[i])) > + if (!IS_ERR(dsi->clks[i])) { > + dsi->pll_clk_rate = clk_get_rate(dsi->clks[i]); > continue; > + } > } > > dev_info(dev, "failed to get the clock: %s\n", clk_names[i]); > return PTR_ERR(dsi->clks[i]); > } > + > + if (strcmp(clk_names[i], "sclk_mipi") == 0) > + dsi->pll_clk_rate = clk_get_rate(dsi->clks[i]); > } > > dsi->reg_base = devm_platform_ioremap_resource(pdev, 0); Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland