From patchwork Thu Mar 10 23:33:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janusz Krzysztofik X-Patchwork-Id: 12777015 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F13DBC433F5 for ; Thu, 10 Mar 2022 23:34:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=xIX2ibJTO6KAJ5wg0LMLuKypHOr+VTRX0G9IOoQpICA=; b=OVqoIKNC4AJnX0 DO+csjD3d5jlhLFkaX283M+1xZi0EKZoW5K3He/aFsqtz+CjMsLSCHHppDcprLm2r8sniaSF261EJ pTs1y6scrR7tYEolsY5l5OwbS9Xg9E0gDWu6Q8mp8HJAfTaHmFbbgIqeP1PnhGzjL+he3119QaVUy OfHetTKOQhlpPdnnSHFr1duzXiJadXMuV1PRngKhnJ0IopazkVWlE1vvv7qqZeg4wHAw+C1PX886B upgHJYtgdPqLuhCwKvOUzZEdrNgAviy/5qseAN2Y1mJcKnrLT4Ic0TYY4M+5LEKonacICXvjAWUpB uMhhe3wGiiGLDKyD4QJg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nSSHl-00EJ28-H3; Thu, 10 Mar 2022 23:33:33 +0000 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nSSHh-00EJ19-Sn for linux-arm-kernel@lists.infradead.org; Thu, 10 Mar 2022 23:33:31 +0000 Received: by mail-lf1-x130.google.com with SMTP id bt26so12210053lfb.3 for ; Thu, 10 Mar 2022 15:33:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+GiRdS2o0Jp10Ayb6eTN0g1SxEyVYQBd6eUBGV3Vz1A=; b=j42KqE/Rq7wdyPwaY9DXI2NYGk45ZDhOAH+Cn/518yEO5gmNbfIZvT7rvol9J278X+ 1wgOs2cQVACRXg629cZfpsmMjGKwn3K69DhS4pViFL3A8VgOC66lBZtnLFSKFvtiEn3A koiCxgdiMPiht4VJ1DW9mIlEyXqc3ZtKaUznyhIpeaUPXWc9sh0ZWJJUMQweRoz1bMaW 2AjwApgOqWWP4rb5jggga3xWTuSaP4TBI+kSYHvg1icKHRrqU211T88N96CAYxr10rlh S3w7Pp3Qrjzp/234xBkoj1JyUcZWUSpJprnGT8jcJoauiaQy3NghyciN4vFym7WvwfTh 9IzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+GiRdS2o0Jp10Ayb6eTN0g1SxEyVYQBd6eUBGV3Vz1A=; b=fYioT79spJOUaoIwISpvVlSS/M85cC14nWOFp0YZhMs9WL4WWeFJo1yGAx+Oqf33N4 /jBKH+QE3JUTBj+7Omn+vZhnoiXZjg9Ek7wyPao7sIeJVjgY5LUNWHXZvUEPeJwfI78e pJgJC5ThtFYrdh9MyvLP+PicmGAY0+ULEQqODZPSRrOH+sIg2mTb+RQ6C6wA0LUnPnbS S+4+PVcb4/A3MxFUU7gxCC4SYY9eALr3XlkotWNkeWAIBB/5YxxwRB1bYDGR73mZUj/a M3jM9n4JSMmdxhkSuOlAzBv+VdYqVN5NNEEEfr43s46Uff2ecA9kX0cmd8ck873fB005 UHsA== X-Gm-Message-State: AOAM531FF2an3MOMkFR1QQxmuUTJjnNbihjaXB+QyE0ut+51puIuc12k Vnn05BR3PkuVjYbaZph6HsU9kjr6U+vyaQ26 X-Google-Smtp-Source: ABdhPJz9/0CV7K4BR9ZZSu3QogvcjmWrVZnGcdFN0E9yH1C11eCyz6rDSKCNWamfMsDS1/jNG0SUYQ== X-Received: by 2002:a19:674c:0:b0:448:3f49:e6d5 with SMTP id e12-20020a19674c000000b004483f49e6d5mr4382982lfj.518.1646955207679; Thu, 10 Mar 2022 15:33:27 -0800 (PST) Received: from dell.lan (93-181-165-181.internetia.net.pl. [93.181.165.181]) by smtp.gmail.com with ESMTPSA id s5-20020ac24645000000b00448628b8462sm598481lfo.249.2022.03.10.15.33.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Mar 2022 15:33:27 -0800 (PST) From: Janusz Krzysztofik To: Tony Lindgren Cc: Paul Walmsley , Aaro Koskinen , Alan Stern , Greg Kroah-Hartman , Helge Deller , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, Janusz Krzysztofik Subject: [RFC RFT PATCH 0/4] ARM: OMAP1: clock: Convert to CCF Date: Fri, 11 Mar 2022 00:33:03 +0100 Message-Id: <20220310233307.99220-1-jmkrzyszt@gmail.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220310_153329_977391_F9E02939 X-CRM114-Status: GOOD ( 11.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The main motivation behind this series is planned resurection of OMAP1 camera driver. Since OMAP1 clock internals have never been visible to drivers, that driver used to use v4l2-clk to expose a pixel clock for a sensor. The v4l2-clk code has been recently depreciated and removed from the media subtree, hence the need for an alternative solution. Janusz Krzysztofik (4): ARM: OMAP1: clock: Remove unused code ARM: OMAP1: clock: Remove noop code ARM: OMAP1: Prepare for conversion of OMAP1 clocks to CCF ARM: OMAP1: clock: Convert to CCF arch/arm/Kconfig | 2 +- arch/arm/mach-omap1/clock.c | 791 ++++++++++++------------------- arch/arm/mach-omap1/clock.h | 191 ++------ arch/arm/mach-omap1/clock_data.c | 491 ++++++++----------- arch/arm/mach-omap1/io.c | 5 - arch/arm/mach-omap1/mcbsp.c | 8 +- arch/arm/mach-omap1/ocpi.c | 4 +- arch/arm/mach-omap1/serial.c | 6 +- arch/arm/mach-omap1/time.c | 5 + arch/arm/mach-omap1/timer32k.c | 2 +- drivers/usb/host/ohci-omap.c | 8 +- drivers/video/fbdev/omap/lcdc.c | 6 +- 12 files changed, 582 insertions(+), 937 deletions(-) The series has been tested on OMAP1510 based Amstrad Delta board, where it works best on top of two recently submitted fixes: ARM: OMAP1: clock: Fix early UART rate issues ARM: OMAP1: clock: Fix UART rate reporting algorithm