Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4C552C433EF for ; Thu, 21 Apr 2022 11:50:34 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6DE7683AD0; Thu, 21 Apr 2022 13:50:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="Vd3gU7IJ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DDEC283A95; Thu, 21 Apr 2022 13:50:29 +0200 (CEST) Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 5E9D183CF3 for ; Thu, 21 Apr 2022 13:50:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=tommaso.merciai@amarulasolutions.com Received: by mail-ej1-x633.google.com with SMTP id u15so9437328ejf.11 for ; Thu, 21 Apr 2022 04:50:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=R8TIURsytYLhPvGrzv3mVWcu9QvOsloQ3AeZjc9evTI=; b=Vd3gU7IJBfEGpDrXrPCtkcO2Dm11RFwS9dJzdCnQzW0O/6RwBY+ERXdxwrcST9dv+G D84DTdOkuYC4pXd6o8/beZYPCiq9q9fhDXbsmZ+j9+PQ92Ph2uSHan+muCA4T0QCCpLJ En6l4iYU6AgPk6OOdSirXBgJugUWYJvOz/32o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=R8TIURsytYLhPvGrzv3mVWcu9QvOsloQ3AeZjc9evTI=; b=vlN6RyGIsWlbguznF9YvGqVK7TdofuWusa+PnF/rT6uD2mt+cWWeLUg1g5S3Ff2jfn 3O2ii7JIiOJYFjZXZRRl78madkcDzKHkLfPB1J7oS8/eUYjGacYpzxe589dpfyPMHour pVmzbJXr9ZE+GVoVYMRYO0ZJGg15TFPrTkQBav+jhCBrZLpRRb+Zlw30aRl93+GU53ib 2H2ZrVGzb6rieqAI7trLWLLSYpYk/R/zczvo80pHiQ8pzVnjezHa+9v6wCraxfkF4OpB 8w17yZXIEUWJ5cdEaj5opnFWuJg/lwxqNxwZhbH+K8clIGb831WC8xh5uXA0V7Tsj3KM tgIA== X-Gm-Message-State: AOAM531P1wNc4QdmIJa2PZiEvcSKquGo4LElSzCIIZiE5lyT8aaoS8JQ al4EJHnxhBLgCwXMKOWpULwkrQ== X-Google-Smtp-Source: ABdhPJwyR+fBMpZ0F0wa1T8g0eVAWy/0aGFJoR9WcXJ9fiqVDa7lWzLB1eIoeCjDoq8erblxqiHkRQ== X-Received: by 2002:a17:907:9485:b0:6da:aa54:a88 with SMTP id dm5-20020a170907948500b006daaa540a88mr22915394ejc.427.1650541824809; Thu, 21 Apr 2022 04:50:24 -0700 (PDT) Received: from tom-ThinkPad-T14s-Gen-2i (net-188-217-56-163.cust.vodafonedsl.it. [188.217.56.163]) by smtp.gmail.com with ESMTPSA id ek21-20020a056402371500b0042025e47eddsm10839267edb.7.2022.04.21.04.50.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Apr 2022 04:50:24 -0700 (PDT) Date: Thu, 21 Apr 2022 13:50:22 +0200 From: Tommaso Merciai To: Adam Ford Cc: U-Boot Mailing List , Lukasz Majewski , Sean Anderson , Fabio Estevam , Tim Harvey , Marek Vasut , Michael Trimarchi Subject: Re: imx8mm eLCDIF clock Message-ID: <20220421115022.GD2335@tom-ThinkPad-T14s-Gen-2i> References: <20220421064805.GA2335@tom-ThinkPad-T14s-Gen-2i> <20220421102907.GC2335@tom-ThinkPad-T14s-Gen-2i> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean On Thu, Apr 21, 2022 at 06:14:58AM -0500, Adam Ford wrote: > On Thu, Apr 21, 2022 at 5:29 AM Tommaso Merciai > wrote: > > > > On Thu, Apr 21, 2022 at 08:48:05AM +0200, Tommaso Merciai wrote: > > > > + Fabio > > + Tim > > + Michael > > + Marek > > + Adam > > > > > Hi, > > > I'm working on drivers/clk/imx/clk-imx8mm.c to port and bring up eLCDIF > > > clocks. After port all necessary clocks needed by eLCDIF I found that > > > IMX8MM_VIDEO_PLL1 clock is not enabled and need the clk_enable to enable > > > it at the end of the clk-imx8mm probe: > > > > > > struct clk *clkp; > > > > > > clk_get_by_id(IMX8MM_VIDEO_PLL1, &clkp); > > > clk_set_rate(clkp, 594000000UL); > > > clk_enable(clkp); > > > > > > What do you think about this solution? > > > There is a more standard way to do this? > > > I'm missing somethings? > > I think the LCD driver should request the clock and clock rate based > on settings the device tree. However, I think the bigger issues is > that you might run into issues with the lack of a disp-blkctrl driver. > Marek enable the GPC driver fairly recently, but the blkctrl driver > will be needed to enable the LCD and DSI portions or the system may > hang. Hi Adam, Thanks for the tips, I will investigate on that. Tommaso > > adam > > > > > > Thanks, > > > Tommmaso > > > -- > > > Tommaso Merciai > > > Embedded Linux Engineer > > > tommaso.merciai@amarulasolutions.com > > > __________________________________ > > > > > > Amarula Solutions SRL > > > Via Le Canevare 30, 31100 Treviso, Veneto, IT > > > T. +39 042 243 5310 > > > info@amarulasolutions.com > > > www.amarulasolutions.com > > > > -- > > Tommaso Merciai > > Embedded Linux Engineer > > tommaso.merciai@amarulasolutions.com > > __________________________________ > > > > Amarula Solutions SRL > > Via Le Canevare 30, 31100 Treviso, Veneto, IT > > T. +39 042 243 5310 > > info@amarulasolutions.com > > www.amarulasolutions.com -- Tommaso Merciai Embedded Linux Engineer tommaso.merciai@amarulasolutions.com __________________________________ Amarula Solutions SRL Via Le Canevare 30, 31100 Treviso, Veneto, IT T. +39 042 243 5310 info@amarulasolutions.com www.amarulasolutions.com