From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795953686; b=m1P+WnV3XZ7JtvbfEpLLIHlrOnBcuFLXVjFXKn9MlYK+Re/40cGsFfkQUWkWG49eSh1F qN69ChGr4CQAApw1mKDJz98/73e4REFhrh500xwSRW1NBbslQogxvfqo0gcyGpiVCMC99 dW8DY8ZI+VL6yOCXQ6HEm0Xpu0bwchrQZD2la6/q6W6djATqpHtMAWlKOeta3zfevTSVs VBa/DG37BHsKPnhhIansd4/TsB3hGvc47J2Y7+jFSIbYZMJs6lXnp7R5wu8FFFLoIuxNn eJIoQpsUyW7rcUlLc+2H3cFNf00A4Rbx4dyC7zemkVnKAiqeSTKMPTl/OJZI9z8sItQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795953686; h=Received:DKIM-Signature:Received:From:Subject:Date:Message-Id: MIME-Version:Content-Type:Content-Transfer-Encoding:X-B4-Tracking: X-Change-ID:To:Cc:X-Mailer:X-Developer-Signature:X-Developer-Key: X-Endpoint-Received:X-Original-From:Reply-To; bh=Lx090kgo0zBKA+PA3xFwhDBM8tAdnS7rqd94GBEE2ok=; b=CQ8BABBM/6/fsy/Rw8y7EMxdSiFllYM3rvGdk5I4imF3QvuMiytuUatiCujHwVDRbEJO X7rpYWcXp/gRnr9w2txROoY5Y9nKHmDzsCPMl5NjZzCxZgomLzrZO18clBvFnl039haWD 3uvKze+HUa8/WVKQatYzteYhoQ0MxmvFESIlZxuYKVGu0B1savPVQaouU0U52JFaNwlVS T7yagm2/+7RFAkHU+y1UZ+PWmOd82XG849TOZR7RQZErvRIXaePpvAmebXJ5Rx+wr8Hie BZwwhyrCdPUWCgjCYUnOej8Su4Ovn4VyJlz79E9eKwMtJ5VJRymG2MlFAOkLEV9LO5A== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=edDMOy4j; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BBA36606A333; Sun, 29 Nov 2026 12:01:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=edDMOy4j Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1795953685; b=u6YnqqSkhm45aTqCTA5FDKB75WofHDEjz/SnFPJsY5D7yH+I75k6ju4d2CNkDGBq/GOf 2MYi/eFP3531F82pN+1G29U+VPoEokGVWSXRbvi9BBFu52YLcdBxdTV1ZKDF6/gr18ddg RMtbxXZ4UrVtecYTlvmZf2cZ6vMOLDHUF4KQrA07bAg9kcMnesXJ5eSGdoACy905mNP1p YTBrnMPmSaHmgVm9QEFhwoev8xgjJ9fI1WReyvpHZIAwm97XI3Hm3DMbN8Iqf6hbzAC3M rnL8rPV7VMaW3LEH+vbrVPalzAaw6kpu2UNfXr2MW8+gpfTnHMoElEJOlJofYxxikiQ== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795953685; h=DKIM-Signature:Received:From:Subject:Date:Message-Id:MIME-Version: Content-Type:Content-Transfer-Encoding:X-B4-Tracking:X-Change-ID:To: Cc:X-Mailer:X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To; bh=Lx090kgo0zBKA+PA3xFwhDBM8tAdnS7rqd94GBEE2ok=; b=ezivOetjBG/h7n+LhrX6GOELq2WoiAXC6RAeUE1aggOd9ehaLyfUZ22Men1H52foNnL5 lblF3aJ+B925sGb6ukqEcTytnTMUAuo5U5kf+sJjFZxvDKCt0HPZecKZJd0R5E4OsHtTl ay4/TpFDBe+B5o3QO5mhQNdS/QNGN2WidZmtQUMXSrqh1jNYErUfYnsOexTgaQeeOTjTB 6nEH+iMEdfNMGL1FmrmXhRoNeG1dZ5joWcOW7TaNdnwcN6iKHiRbo+Cw91IPNhiuu7TPv lJ16BuHUV6PG/Rlm53XUJ3tszI3BvFv3PerPXErbKdfS9eVkztp03pc+UUOIuvPzr0g== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id B5F281F00896; Sun, 29 Nov 2026 12:01:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795953685; bh=Lx090kgo0zBKA+PA3xFwhDBM8tAdnS7rqd94GBEE2ok=; h=From:Subject:Date:To:Cc:Reply-To; b=edDMOy4jth3NzMEgWvZtzVub+i4icipckZiKWyWCREEnChfJJTpAPGzC6LckJW6FB v70g7iHGbCP6ymDRKIj5IF8qNQ1z3Fw5aKbc4VtxdDoIJhyQPXtm6AFkAEjsuevAOT xQuxXTunOqfXj4RfB/bBHJZF8aYmW7+8lywNdTX4BePxUMktgxbzgkCva+H1TxC5dD 3AnUtznBFV4IRhdq580O3adIhmnX7/ukqi0jE5WYmfqxobxRxuuHfwLKOFBieoBd5Y 2MYCucw0/QcJbgftqWeM9MOMxh3tS5sRhUkV9wJsf87zFmC3oK08Q22DN5v/uAMgnF q6REOQrVS9moA== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 171184E45C; Sun, 29 Nov 2026 12:01:19 +0000 (UTC) From: Fil Dunsky via B4 Relay Subject: [PATCH v6 0/6] soc: cortina: Add CS7542 global clocks, reset controller and pinctrl Date: Sun, 29 Nov 2026 15:00:49 +0300 Message-Id: <20261129-cs7542-syscon-v6-0-553dc4c01460@gmail.com> X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAAAAAAAC/33NTW7CMBCG4asgr3Flz3gygVXvUXXhX3AFCYppV IRy9zp0EwWV5SfN885dlDjkWMR+cxdDHHPJfVdHs90If7TdIcoc6hagoNEaUPrCZECWW/F9J4E xkCHPNoGo5jLElH8evY/Pv12+3Vf01zkyXxxzufbD7fFw1PPdf+1RSyXNrqU2NqiN2b0fzjaf3 nx/FnN7hJcaqtY+sHFAAOlJ40uNVSftFVvNClO71mapaa1N1YjIzqmAzjxpWmpea6o6kEVGz+A ULfU0Tb9ww1aYtAEAAA== X-Change-ID: 20261123-cs7542-syscon-273d545c7af2 To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Stephen Boyd , Brian Masney , Jerome Brunet , Linus Walleij , Bartosz Golaszewski , Fil Dunsky Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795953678; l=4444; i=filipp.dunsky@gmail.com; s=20260930; h=from:subject:message-id; bh=scCzAZIhrmfpVuxShxwbZcOEuYvh2/sGGrru6k1Xm00=; b=7ZIkgEJLcwyEvdlyYkPzYkM5+zg3I2ItR/6efofmIa9fnnyGPvU0Gp3n87Gxn8IIo8INlH64i Ty85eULbWqeA2eHY/AtUzCYD356zFp3Pfcede/CuFxSDtmfwaMgvs5h X-Developer-Key: i=filipp.dunsky@gmail.com; a=ed25519; pk=JAYP8e2rJ54DHOmhNtXud8rl1igAaAXoOHxtJmVXI1g= X-Endpoint-Received: by B4 Relay for filipp.dunsky@gmail.com/20260930 with auth_id=1085 X-Original-From: Fil Dunsky Reply-To: filipp.dunsky@gmail.com The CS7542 global register block selects the CPU and bus clocks, gates the three PCIe ports and provides the PCIe and network reset lines. Its pinctrl child selects GPIO or peripheral functions on the same pads. This series includes the clock changes previously posted in the global controls series together with the original clock and pinctrl patches. The early clock provider supplies timer clocks before platform devices probe. A separate platform driver in drivers/reset/ uses the same syscon regmap. The PCIe and Ethernet consumers control the timing and ordering of their own resets. The global reset provider also exposes the separate flash reset at RESET bit 14, for NAND consumers to acquire without asserting a pulse. Validated each binding and the complete parent example. Compiled the reset driver as ARM built-in and module objects with warnings as errors. Recompiled the published Almond+ DTS v2 with the new reset specifiers. Changes in v6: - Define the pinctrl child schema before the global-control binding. - Put the complete parent and pinctrl example in the global schema. - Require clock, reset and pinctrl properties on the global node. - Drop the unpublished composite reset ID and use contiguous IDs. - Link to v5: https://patch.msgid.link/20261127-cs7542-syscon-v5-0-d5a373c72b05@gmail.com Changes in v5: - Treat failed regmap reads as unprepared in the PCIe gate state callback. - Use devm_kzalloc_obj() for the native reset controller allocation. - Describe the separate flash reset and add its reset identifier. - Retain Linus Walleij's Reviewed-by on the unchanged pinctrl driver. - Link to v4: https://patch.msgid.link/20261125-cs7542-syscon-v4-0-3337bb0d3b48@gmail.com Changes in v4: - Combine the strap-selected clocks and PCIe gates in one clock driver. - Move reset registration to a separate driver in drivers/reset/. - Expose the seven network-engine reset lines individually. Leave the PCIe reset pulse timing to the PCIe driver. - Fold in the global-controls binding and its clock and reset IDs. - Global-controls v1: https://lore.kernel.org/all/20261124-b4-cs7542-global-controls-v1-0-12548785df2c@gmail.com/ - Link to v3: https://lore.kernel.org/all/20261123-cs7542-syscon-v3-0-f1c07a1703f8@gmail.com/ Changes in v3: - Introduce the parent pinctrl property and schema reference together with the pinctrl binding in patch 2, so patch 1 validates independently. - Re-run dt_binding_check and examples at both binding commits. The final source tree and driver code are unchanged from v2. - Link to v2: https://patch.msgid.link/20261123-cs7542-syscon-v2-0-1cd74b2522f9@gmail.com Changes in v2: - Identify GPIO mux functions with function_is_gpio so strict ownership allows a GPIO consumer after the default GPIO state; UART stays exclusive. - Link to v1: https://patch.msgid.link/20261123-cs7542-syscon-v1-0-49858e631449@gmail.com --- Fil Dunsky (6): dt-bindings: pinctrl: Add Cortina Systems CS7542 pin mux dt-bindings: soc: Add Cortina Systems CS7542 global controls clk: Add Cortina Systems CS7542 clocks reset: Add Cortina Systems CS7542 global reset controller pinctrl: Add Cortina Systems CS7542 pin multiplexer MAINTAINERS: Add CS7542 global control support .../bindings/pinctrl/cortina,cs7542-pinctrl.yaml | 61 +++++++ .../soc/cortina/cortina,cs7542-syscon.yaml | 76 ++++++++ MAINTAINERS | 12 ++ drivers/clk/Kconfig | 9 + drivers/clk/Makefile | 1 + drivers/clk/clk-cs7542.c | 161 +++++++++++++++++ drivers/pinctrl/Kconfig | 13 ++ drivers/pinctrl/Makefile | 1 + drivers/pinctrl/pinctrl-cs7542.c | 195 +++++++++++++++++++++ drivers/reset/Kconfig | 10 ++ drivers/reset/Makefile | 1 + drivers/reset/reset-cs7542.c | 118 +++++++++++++ include/dt-bindings/clock/cortina,cs7542-clock.h | 13 ++ include/dt-bindings/reset/cortina,cs7542-reset.h | 18 ++ 14 files changed, 689 insertions(+) --- base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f change-id: 20261123-cs7542-syscon-273d545c7af2 Best regards, -- Fil Dunsky