From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.48 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796001943; b=H9kROL+FmmklRwreSb9y96KrmOeLBodsC95BdMnTl7GLGUzVaNcZGmu3F1NNpMY13Osh 1sCRKvpLQdH/hOLqGRs3Y7xD3KDFU8jImz3V3cQpfoXufiYQPeLg4I7fUat0HcOR2CfBy RXEPb5grLhi5odonzsrIpBmUWLNEmTiDtQR3OE0MRaA7iYT3aEOKDSQ1y+Ioe9Uk8kpf+ DgI+ZRXPvxGeL6ithEiUV0c85H9ZQ8ky4jzJunYGN/EOi0QHRJQmZh0xGnIV8N5jfM50I 5iYjDGLPgUi5CDG6TiAJ5sGsEQXQg3miHLElR3uAqC3jDgD1q3oFBKHvU1yjh9mWoig== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796001943; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding; bh=RvA1pJ3Ucm1JTE35ma9D7fs3k/eFtJusaa0Fl8CVpkE=; b=h+s6UchOl9LOHeipJm1ISOKhDeg9trMAS05DGmbQ7mUpJscfOlH0QYxo4c7ZhD1PbgkH 6GmUBmU4F4oW2YYwl/khtw2df12sGGZGqb29H+fNv3Fn3EfBZcNWWn7/28L5SC9H5WCfA qol0ZgL+JvFWXMK9xTelToOMaw+A/xB58FLT8vl9nfTyP53qnsJvi2jZ02I3+FJnf96OF i98vQDSPnRcHz0/2/Cln+fE4B0SbFK1w9u1AyRA/ODvHJVDa4SsGnu6MuDFeBdRf3AbOm LOTKxmvghaOOI/TiKyXot7lEtZtneNmCw/ylmxWdConYLlnYr8YWHyrrMFImcI+IJFg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=k87c24gC; arc=none smtp.remote-ip=209.85.221.48 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1FDFA606A325 for ; Mon, 30 Nov 2026 01:25:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1FDFA606A325 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=k87c24gC Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-4ad6219f7d8so8991831f8f.0 for ; Sun, 29 Nov 2026 17:25:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796001940; x=1796606740; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=RvA1pJ3Ucm1JTE35ma9D7fs3k/eFtJusaa0Fl8CVpkE=; b=k87c24gCXsIbpL6j3N3EySTRShTkdhAowU+qvvExkx3A6P9vfMj5bSW5eRJuR5OXda 5usp+gNIPNZUIuKtvfRDkySwYsOKvB7wkP/+qgdWaoipP6JthlbZDOx82QKb/iFaNeZ4 kSGFd8h0n44oyJyGWzwaLcLGuK3kDdiWkcS1bbSmcGFQbHIP6wlmXLiy3MjwZg2gWQ9J vXSgffB9SSSTe5dlV0CWLKAfnGQWtosutS6jnt1B1gH9OxmK0RgFPUCixm3yeqnXEY+3 c1jVxq/HpvrA3vPeuKfGotXa4fCTMtvDoCUWztxrIrlTHlRtOAX5Z+9SD/GrBNs0KYYe XCpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796001940; x=1796606740; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=RvA1pJ3Ucm1JTE35ma9D7fs3k/eFtJusaa0Fl8CVpkE=; b=AES6MhLJfKWy55IpyqwLGpTxmv/aECGl2crAAXcu8DiRcEpf6xxCXzRR+4YhVQRIH2 li5z4H6LWmnOJaKrNfCkJfO17XE8bIBG5nSBHtWGujQGjlbYx5d+up2xWtssV1WL9MIN ncQSUOvVeQjDUuRODXpbNVQzfhDrN5ub++AJZawtXVu4cquBGwI9mUKpTdLS2ukipUwO KYQJjdRhBbAFess9vDXJ1zPFjr1y6nDQ8KBt62dbIZDra5RKPY8h5QBMOTyO1UhRLMtX 5CkGieyFN1R5qvCPZN/uZ5WUXyUu3F2MlZUod/YF9ML7eIykxifKcJgLNQUBZFA/A2yU lfqA== X-Forwarded-Encrypted: i=1; AL+hErHggtsAu8/4o3PGmVUXIKRP7+ojNuarJoAt7sxJYJKJvlkaIfzL8lvQsTCJ8EzbFom/O6314OV/Lto=@vger.kernel.org X-Gm-Message-State: APuU4Z+n+J6IGVQbWxNGRA8pI3V68X/+9BOio8YbVzQxFw5A+5LXxwle BJVnF8DE7KlTA/YSNHlqweyYQAQynG2iehdcLhm3GdVh4LJv/ZcU1hpG X-Gm-Gg: AZFdTZd7ZhxqzSnEoz0M89fw0VmSMcOmuqtNKoemEji0CvyDaeHiLJox7SJPuu5SaTt ddjRnSJYPSmhyjhBRIwkcZJHG2bokoTFvvqKNXxl1Ci8BJKNEFFpfRJ0GQvdvZyOOZywIW9zCpT aFZT3D5aKahnDRthkUo15NQRt7m70JjznXE40pzuIb2vE0pmxWqeDb8XepBaqLO0UYaqEusGsMw PlWzfAIZykRVBskqIeraER80ulVQcBGl4fP3CZc5LxquKGon8BnHvMvsNq/Z7azzwKi4tUSn4u0 Td8ERpXLXNKR0cQv87vZ4W56Yorz8UE/h48nOQu1aY85nqZTZl+Ic5R6T1k7pRbZGc3U7eRBMNo EOy0xmBUrmEih7uNHQjiJWUU0p2D5FLhwygY7punayqZXqm4KY+ysZe8dqYWA9rkfiuhdlJOzze ZsDiRRec7RiEpAAw6RjyNBRxrw8Mb8ij02ZgObvV3CYD13Rel9DkC3tgApcbkSrohi6eTss2JRn T32NsIsZOPOITXq2oztVFCT50iLh3uGrdUnmb9P2l36Z0OBOQSoEdSBQui9LpjRtoU0q206vO2T ox/S1M+gLu1AoeFR59YByipkA0L8rm9VjkHmk7woKOKbLlD5euDuUtI2A4o5QiyJAoix1cwwCVw 98E4xo9kgmJm2N1uoXOFeVHCq+lhBM9tLT24fiQ4= X-Received: by 2002:a05:6000:26ca:b0:4aa:8fc3:2909 with SMTP id ffacd0b85a97d-4abad5ac730mr56464153f8f.2.1796001940399; Sun, 29 Nov 2026 17:25:40 -0800 (PST) Received: from Ansuel-XPS24 (93-34-92-103.ip49.fastwebnet.it. [93.34.92.103]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-4b70c05b9desm36833570f8f.54.2026.11.29.17.25.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 17:25:39 -0800 (PST) From: Christian Marangi To: Stephen Boyd , Brian Masney , Jerome Brunet , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Felix Fietkau , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christian Marangi Subject: [PATCH v16 0/8] clk: add support for Airoha AN7583 clock Date: Mon, 30 Nov 2026 02:24:58 +0100 Message-ID: <20261130012507.660547-1-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.55.0 X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This small series introduce some cleanup and support for clock and reset of Airoha AN7583. The implementation is similar to EN7581 but AN7583 introduce new reset and more clock divisor support. Changes v16: - Add num_base_clk extra variable - Add .set_rate patch - Use dev_err instead of pr_err - Use dev_dbg in hot path - Better organize patch order Changes v15: - Fix num_clocks with new implementation for AN7583 Changes v14: - Fix wrong definition for chip-scu - Use scoped guard and guard API in reset - Rework for better num_clocks handling - Address some forma impovement suggested by Brian Changes v13: - Use guard API - Drop spinlock on read operation - Use enabled/disabled now that they don't sleep anymore - Rebase on top of linux-next Changes v12: - Fix dereference on pcie early unprepare Changes v11: - Move to global spinlock - Move pci ops to sleepable prepare/unprepare Changes v10: - Fix whitespace in include patch - Add reset and phy cell as required - Add additional patch for devm variant - Add additional patch for lock for clock and reset access Changes v9: - Fix compilation error for priv (again) (this time fixed) Changes v8: - Add ACK tag by Connor - Fix missing priv->base assign Changes v7: - Add further info for DT patch - Add serdes selection support - Rebase on top of linux-next Link: https://lore.kernel.org/all/20261009070725.13196-1-ansuelsmth@gmail.com/ Changes v6: - Address bot suggestion for DT patch - Add further information on chip-scu phandle - Add dedicated PERSTOUT reset and PCIE_HB reset Link: https://lore.kernel.org/all/20260819221458.30040-1-ansuelsmth@gmail.com/ Changes v5: - Rebase on top of linux-next - Drop even more patch to reduce patch delta - Make chip-scu specific to AN7583 Link: https://lore.kernel.org/all/20260528190000.9164-1-ansuelsmth@gmail.com Changes v4: - Add review tag for DT patch - Fix clock patch to use en7581-chip-scu compatible - Drop PCIE SCU SSR write Changes v3: - Drop .set_rate patch (will be proposed later) - Drop chip-scu binding and related patch Link: https://lore.kernel.org/all/20251106195935.1767696-1-ansuelsmth@gmail.com Changes v2: - Add .set_rate support - Rework DT to EN7581 implementation (clock driver is parent) - Add additional cleanup patch - Merge binding with schema patch - Add chip_scu phandle Christian Marangi (8): dt-bindings: clock: airoha: Document support for AN7583 clock clk: en7523: use devm variant for clk_hw_register and fixed clock clk: en7523: don't call PCI clk OPs for early unprepare clk: en7523: protect concurrent access to reset and PCI register clk: en7523: convert to full clk_hw implementation for en7581 clk: en7523: add support for .set_rate for en7581 clk: en7523: generalize register clocks function clk: en7523: add support for Airoha AN7583 clock .../bindings/clock/airoha,en7523-scu.yaml | 26 + drivers/clk/clk-en7523.c | 806 ++++++++++++++++-- include/dt-bindings/clock/en7523-clk.h | 3 + .../dt-bindings/reset/airoha,an7583-reset.h | 65 ++ 4 files changed, 808 insertions(+), 92 deletions(-) create mode 100644 include/dt-bindings/reset/airoha,an7583-reset.h -- 2.55.0