From patchwork Tue Feb 8 18:34:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Martin_Povi=C5=A1er?= X-Patchwork-Id: 12739194 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 130B5C433F5 for ; Tue, 8 Feb 2022 18:41:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385090AbiBHSlp (ORCPT ); Tue, 8 Feb 2022 13:41:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242760AbiBHSlm (ORCPT ); Tue, 8 Feb 2022 13:41:42 -0500 Received: from hutie.ust.cz (hutie.ust.cz [185.8.165.127]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5533EC0613C9; Tue, 8 Feb 2022 10:41:38 -0800 (PST) From: =?utf-8?q?Martin_Povi=C5=A1er?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cutebit.org; s=mail; t=1644345292; bh=qwDk3NRHUss8TCYpvU94JsFuSuZCb0TDgOBElpe8C1I=; h=From:To:Cc:Subject:Date; b=qVvJLIiiQ/plel3G1U1sBOEr+yT7cKbrhTU/snWoPZUVRlNlBIyZ0WHJCisZc8zFk IippyJsezK/c/tL8hnvw158TfJBf9tkOAFhd0MWifj3KQCYVxVJqxllObbbrMYkV7l OPSqEIzM7BK1W1VZXwGK4adUv7iX1MRuNxih/77s= To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski Cc: Hector Martin , Sven Peter , Alyssa Rosenzweig , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Kettenis , =?utf-8?q?Martin_Povi=C5=A1er?= Subject: [PATCH v4 0/3] Support for Apple SoCs' NCO blocks Date: Tue, 8 Feb 2022 19:34:08 +0100 Message-Id: <20220208183411.61090-1-povik+lin@cutebit.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Hello, This is v4 of common clock driver for NCO blocks on Apple SoCs. I have to send v4 because to some people I inadvertently send their copy of v3 PGP-encrypted. Changes since v3: - change my email address - set MODULE_LICENSE to 'GPL' (was 'GPL v2') Changes since v2: - move all under applnco_ prefix - move away from signed types in register value calculations - other minor things from Stephen's review Changes since v1: - drop apple,nchannels property from the binding, rely on size of the register range instead to gauge the number of channels - add a lock to guard set_rate from racing with clock disable/enable - add short "theory of operation" comment - incorporate minor changes from Rob's, Sven's and Stephen's review (thanks!) Martin v1: https://lore.kernel.org/linux-clk/20211214120213.15649-1-povik@protonmail.com/ v2: https://lore.kernel.org/linux-clk/20220118191839.64086-1-povik+lin@protonmail.com/ v3: https://lore.kernel.org/linux-clk/20220121175441.9944-1-povik+lin@protonmail.com/ Martin PoviĊĦer (3): dt-bindings: clock: Add Apple NCO clk: clk-apple-nco: Add driver for Apple NCO MAINTAINERS: Add clk-apple-nco under ARM/APPLE MACHINE .../devicetree/bindings/clock/apple,nco.yaml | 62 ++++ MAINTAINERS | 2 + drivers/clk/Kconfig | 9 + drivers/clk/Makefile | 1 + drivers/clk/clk-apple-nco.c | 333 ++++++++++++++++++ 5 files changed, 407 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/apple,nco.yaml create mode 100644 drivers/clk/clk-apple-nco.c