From patchwork Thu Oct 10 07:43:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Kemnade X-Patchwork-Id: 13829704 Received: from mail.andi.de1.cc (mail.andi.de1.cc [178.238.236.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6D7581C461D; Thu, 10 Oct 2024 07:44:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.238.236.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728546252; cv=none; b=Sn2WKF/hQoXq/sL0wio4c3M8TiUfCCoaKCZwi5fXEEUXx5r6k6/q/HN+3PyiYgbPiZzdI5t+b3K7oNkhlpv8+COH0EFSVeIg84CInB0hP3WK0PZAH7Iv5+kJb0veNMKyDHNHJOe+C+QSK0+yTd8t5awoh5nKwoXoPfnlaezvHjM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728546252; c=relaxed/simple; bh=wjQn6x7hmw05iGVXgCKPpKhnBa3dzt0E8KlKESli17g=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=ImZJwyohQbFJB+Rz0C+xzhm3zb3T0WdwnFYVixXqa6G+S+zveCq/ZPce3G9O4SxzVOumPQutwVpySCXBLfK8iOay6nADwwUwthPUhfFL+jDi9uWW/E0HhepvQ6Bzq6WSCdQJsjnm6rMNePt+OIzGY34TZ26tuPHeNP81KE5Zsk0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kemnade.info; spf=pass smtp.mailfrom=kemnade.info; dkim=pass (2048-bit key) header.d=kemnade.info header.i=@kemnade.info header.b=KsvnZSl/; arc=none smtp.client-ip=178.238.236.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kemnade.info Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kemnade.info Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kemnade.info header.i=@kemnade.info header.b="KsvnZSl/" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20220719; h=Cc:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=9j1nFx/lczpeat6SxVqYFDHmTqdMDhQGBTx9iCoyYQI=; b=KsvnZSl/3i+bHHIcc2bgGFMf28 zuDZm6PNAKUtEM5ggt5rQs2UkQBujDRlCNxDZAkmfsdUF+U6TKatmrlmkwX7A58hLFelNc2ZvqAIi 5rxU5mcUsTCpV3RZ8tXcjs0GDq0P5JBB+k0/0fa4FVkUGaPcAvth9yBfjta7EMu9zI2/9bMHbhAos qspIHX9BQssSLg0xL7SUK6UKldBGQbyyZiPjA3QcdXiBv8TZxCQR0hm3j7efShHis0XvFJzM6godL DDQWVIttUN+JtX29pYOrDcxpp3BvQKeUsKlaRCZx882Yff5nKEOaFCVYO+BET5IuhMus8G4AfPsoH mSj2xX6A==; From: Andreas Kemnade To: Kevin Hilman , Michael Turquette , Aaro Koskinen , linux-kernel@vger.kernel.org, Tony Lindgren , linux-clk@vger.kernel.org, Lee Jones , Roger Quadros , Stephen Boyd , linux-omap@vger.kernel.org Cc: Andreas Kemnade Subject: [PATCH v4 0/3] mfd: twl: Add clock for TWL6030 Date: Thu, 10 Oct 2024 09:43:52 +0200 Message-Id: <20241010074355.58161-1-andreas@kemnade.info> X-Mailer: git-send-email 2.39.5 Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Previously the clock support for only implemented for TWL6032 so add it also for the TWL6030. There are devices out there where especially WLAN only works if these clocks are enabled by some patched U-Boot. This allows to explicitly specify the clock requirements. Changes in V4: - cleanup if (TWL6032_SUBCLASS) Changes in V3: - use type enum in driver_data and twl_clock_info - revert back to store device instead of platform_device Changes in V2: - cleanup some defines - no separate ops for 6030 - remove is_prepared() - update Kconfig Andreas Kemnade (3): mfd: twl-core: Add a clock subdevice for the TWL6030 clk: twl: remove is_prepared clk: twl: add TWL6030 support drivers/clk/Kconfig | 2 +- drivers/clk/clk-twl.c | 69 ++++++++++++++++++++++++++---------------- drivers/mfd/twl-core.c | 26 +++++++++++----- 3 files changed, 62 insertions(+), 35 deletions(-)