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 C87A4C433EF for ; Sat, 19 Feb 2022 22:26:55 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4CE5283C55; Sat, 19 Feb 2022 23:26:53 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1645309613; bh=Yqs6XQk7RStSJVedy7LjnmYwAOcp81Fkz8QQc+vb448=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=tS2i2ZrLO047V3Bpek64nm1n+cx/WSzsyvtgfxYjDetdw7PTh5cJW9AAOZpoDGHlK Jx3qaUU6vJ/9vYkqiQkjgMDN5FGNybJuHSJm80KJMkoljo42uI1GrpJzQahil1n39a SmljG/4AlIMCYyDQVLJ+Sh/kkYqIS3QCDiGVcb1xapTgiAxH0WLvQWTt5Xp6yFkl8C Y++eIszmzROugfE0o3EnDBvycUqtHSdrOV3mMAzxSoPDJWloSCFgIfFrONRehOFbi+ 5Ahs/WQYTiGQtiQj2HmEEm2IHMsLld/fMw9pfIL9suPgGjsKrxYvfxIqIhaxHzWsOe u1qGfwfUS4YqA== Received: from [IPV6:2001:a61:618e:a001:c5c4:290a:6b90:5244] (unknown [IPv6:2001:a61:618e:a001:c5c4:290a:6b90:5244]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sbabic@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 29BEB8321B; Sat, 19 Feb 2022 23:26:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1645309612; bh=Yqs6XQk7RStSJVedy7LjnmYwAOcp81Fkz8QQc+vb448=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=yVdLxyHz/ekHsI2EYiYXb/KkyQUpw7hLvg6w6zMxeSvadMFADoG+TnlP3I+JaB7Bk M02OGQSqqdeyY73fTR7zhg+N1DSD8ja55eCfK50zGgLM97asj6RF+Gjo873qGcm4KL 1zS/XAZ0BBwwIBYQQJcTjM1sgujvz2Ms0XmWvZG4aIhX4nX/bvG3dngaAeILt7uRid 213O2zg/BvKNmoy95xWLADBTlZ707S7pC9ZYhvMV1NQs+VRLZV3uDJjnIACWOYTbkf RLqVT3Eh5H8sN15ddVYDjG7RmJ6q5sLJtFBZMakIedigP9B6526rNP+OWSDMGwsbO8 9Rqhw1oXqCCTQ== Message-ID: Date: Sat, 19 Feb 2022 23:26:50 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v2] imx8m: clock_imx8mq: Add the ecspi clocks Content-Language: en-US To: Marek Vasut , Angus Ainslie Cc: "NXP i.MX U-Boot Team" , Stefano Babic , Fabio Estevam , Peng Fan , Ye Li , Alice Guo , Patrick Wildt , u-boot@lists.denx.de, kernel@puri.sm References: <20220214205111.923751-1-angus@akkea.ca> <7360f21aa7ca91461eae705828d759b6@akkea.ca> <9f63addb-b4b1-4337-b32f-2bfb94b821c2@denx.de> <5868df1f1f6d1236b21e5b864668905c@akkea.ca> From: Stefano Babic In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 15.02.22 21:26, Marek Vasut wrote: > On 2/15/22 18:58, Angus Ainslie wrote: >> On 2022-02-15 08:45, Marek Vasut wrote: >>> On 2/15/22 15:55, Angus Ainslie wrote: >>>> On 2022-02-15 00:01, Marek Vasut wrote: >>>>> On 2/15/22 01:51, Angus Ainslie wrote: >>>>>> On 2022-02-14 16:25, Marek Vasut wrote: >>>>>>> On 2/14/22 21:51, Angus Ainslie wrote: >>>>>>>> Enable the clocks for spi buses 1 through 3 >>>>>>>> >>>>>>>> Signed-off-by: Angus Ainslie >>>>>>>> --- >>>>>>>> >>>>>>>> Changes since v1: >>>>>>>> >>>>>>>> added MXC_CSPI_CLK to ECSPI1_CLK_ROOT mapping >>>>>>>> >>>>>>>>   arch/arm/include/asm/arch-imx8m/imx-regs.h |  9 +++++ >>>>>>>>   arch/arm/mach-imx/imx8m/clock_imx8mq.c     | 40 >>>>>>>> ++++++++++++++++++++++ >>>>>>>>   2 files changed, 49 insertions(+) >>>>>>> >>>>>>> Shouldn't all this come from DT ? >>>>>> >>>>>> This is used in the SPL. >>>>>> >>>>>> The imx8mq also doesn't have a DM clock driver. >>>>> >>>>> Hmm, would it be possible to take one of the other Ms clock drivers, >>>>> fork it into MQ one, and fill in the tables from Linux, thus creating >>>>> the missing MQ clock driver? >>>> >>>> I've begun working on that as well. I'll send the patches once I get >>>> Linux to boot. >>> >>> Thanks >>> >>> Does it make sense to wait with this patch for after 2022.04 , when it >>> might not be needed ? >>> >>> I'll let Stefano decide ... >> >> Ok, I'm not sure why it should get held back as it fixes ECSPI >> initialization and use in the SPL. > > It also enables extra clock unconditionally and there is this "TODO" > right in the middle of the patch. Right, I agree. Regards, Stefano -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de =====================================================================