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 B4CCEC25B4E for ; Sun, 22 Jan 2023 13:44:12 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3E6D9856B7; Sun, 22 Jan 2023 14:43:58 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="a3O0Pwkp"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1E113851EB; Sun, 22 Jan 2023 09:00:14 +0100 (CET) Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) (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 DDB5385509 for ; Sun, 22 Jan 2023 09:00:10 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=digetx@gmail.com Received: by mail-lj1-x22d.google.com with SMTP id c3so10082700ljh.1 for ; Sun, 22 Jan 2023 00:00:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=NhkAT7DBsDXer11+d3zG+/1Co6UGrige8Oz8R6CaPGM=; b=a3O0PwkpQZtSlsDyE9D7Luhnwig1f/GIJBGpQ5Fp+2RlpLcHm/DPj+mrm74ZCpJXCD T44GB6STeqLIIAQZbC6qPQ4mdltfl1RF9M6h8ZpsTqTO7CAcfF0nZGbFbSUn622omaw+ HI+qozFQT0ImyUZMQyIW1Hm/uZWwq/SGoud66wb88BO/cx90/T3B+vv/XUirTEnURd0S fo9DjTMGyD8eMNKzNHEBJRhqDVO6x7t4fJezLLOlaMqRhTIgrbnR2fi1+nHxLkJRTZKr I7oaG88gb8fPyG0VrrscJiZzwsTM7iIz+nX4WkpQ7QYnll3v6K/Ut0JIns8RXshBi2ea gKag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=NhkAT7DBsDXer11+d3zG+/1Co6UGrige8Oz8R6CaPGM=; b=v9viDhJ6PLmN3kMP5d4W06AfT5+SMMIuAKwT940sushBX8Rgpv8UmVCJTQR6q46SPJ SSNSQAj2dCte93N6bwWSuIkIGcEqVs0obxK7oH1RVZ/Hb7MEGFsqD4j4m7L+kOgaLJ3y lY+khVmWrz/Up2B4XsCKVCgeDlw8Il3o6nRSg586U8nCERfKLqzcpcvdO99o0zntwT7a jQHOyz57Vmr9bESnROyLJcGuaQ6xt0VHa1EGEdkikz+sEWEvlYv0GILkUSEx3e7U/2ZO ov2cnzEee2IHJtn1sUxkPDbF6fGKazVgQhS9ltZehkh+cwMrJqZSv2zGx1O6MPiyy/j2 bG9g== X-Gm-Message-State: AFqh2kpon+NsFoipuyEtlGR6K8oR4YI29oNbCIT0NuWOGIzs6XwUc2WH bvS42E9nmZFky7rIEEiicKA= X-Google-Smtp-Source: AMrXdXu1Tq7jeA60C51KHLPT3EdOUY2905xDLPyAAzgrVz4wqaicQicefmCJ40h45L/6ItTLDX7uNw== X-Received: by 2002:a2e:a492:0:b0:27f:d42e:848c with SMTP id h18-20020a2ea492000000b0027fd42e848cmr5165502lji.37.1674374409968; Sun, 22 Jan 2023 00:00:09 -0800 (PST) Received: from [192.168.2.145] (109-252-117-89.nat.spd-mgts.ru. [109.252.117.89]) by smtp.googlemail.com with ESMTPSA id p22-20020a2eba16000000b00267232d0652sm1975041lja.46.2023.01.22.00.00.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 22 Jan 2023 00:00:09 -0800 (PST) Message-ID: Date: Sun, 22 Jan 2023 11:00:07 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH v5 0/3] Timer support for ARM Tegra To: Svyatoslav Ryhel , Rayagonda Kokatanur , Tom Warren , Thierry Reding , Marek Vasut , Maxim Schwalm , Heinrich Schuchardt , Michal Simek , Stefan Roese , Eugen Hristev , Michael Walle , Simon Glass , Jim Liu , William Zhang , Rick Chen , Stefan Herbrechtsmeier , Andre Przywara , Jaehoon Chung , Agneli Cc: u-boot@lists.denx.de References: <20230121200911.4182-1-clamor95@gmail.com> Content-Language: en-US From: Dmitry Osipenko In-Reply-To: <20230121200911.4182-1-clamor95@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Sun, 22 Jan 2023 14:42:59 +0100 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.6 at phobos.denx.de X-Virus-Status: Clean Hello Agneli, 21.01.2023 23:09, Svyatoslav Ryhel пишет: > - ARM: tegra: remap clock_osc_freq for all Tegra family > Enum clock_osc_freq was designed to use only with T20. > This patch remaps it to use additional frequencies, added in > T30+ SoC while maintaining backwards compatibility with T20. > > - drivers: timer: add timer driver for ARMv7 based Tegra devices > Add timer support for T20/T30/T114 and T124 based devices. > Driver is based on DM, has device tree support and can be > used on SPL and early boot stage. > > - ARM: tegra: include timer as default option > Enable TIMER as default option for add Tegra devices and > enable TEGRA_TIMER for TEGRA_ARMV7_COMMON. Additionally > enable SPL_TIMER if build as SPL part and drop deprecated > configs from common header. > > P. S. I have no arm64 Tegra and according to comment in > tegra-common.h > Use the Tegra US timer on ARMv7, but the architected timer on ARMv8. > > Svyatoslav Ryhel (3): > ARM: tegra: remap clock_osc_freq for all Tegra family > drivers: timer: add timer driver for ARMv7 based Tegra devices > ARM: tegra: include timer as default option > > arch/arm/Kconfig | 1 + > arch/arm/include/asm/arch-tegra/clock.h | 9 +- > arch/arm/mach-tegra/Kconfig | 2 + > arch/arm/mach-tegra/clock.c | 17 +++- > arch/arm/mach-tegra/cpu.c | 70 ++++++++++--- > arch/arm/mach-tegra/tegra114/clock.c | 13 +-- > arch/arm/mach-tegra/tegra124/clock.c | 13 +-- > arch/arm/mach-tegra/tegra20/clock.c | 4 +- > arch/arm/mach-tegra/tegra210/clock.c | 22 +---- > arch/arm/mach-tegra/tegra30/clock.c | 10 +- > drivers/timer/Kconfig | 8 ++ > drivers/timer/Makefile | 1 + > drivers/timer/tegra-timer.c | 126 ++++++++++++++++++++++++ > drivers/usb/host/ehci-tegra.c | 46 +++++++-- > include/configs/tegra-common.h | 6 -- > 15 files changed, 269 insertions(+), 79 deletions(-) > create mode 100644 drivers/timer/tegra-timer.c > Could you please give this series a test on yours T20 AC100 and reply with a tested-by if it works well? Thanks!