From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=46.4.11.11 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796153846; b=viEIk/02AyjnCHrXOb6Tmv97mYrRHj4kQIvGxyYzWjIcYLeghB6BAUOiXW3J3gfZCF/z ZVdi61GdFgrQwpDEhnoUgFJu153fmtppgL6cUhECmU3Z4YIUf7dcrXR3rFncgAXXQF6bX AuQnhGxnitByZwNQ7ZKOqm+CVpJB3bG1fbLUoUIsRSADet5s3cXwm7SpQFaEUE+jK0mAb qsw5ul1YTK3FGtuphKj5/oBiOdstPt4Mpx9QV8zzUyAVAbRLOKxQbiG9LCaEmbb1bxTik Rblw6jT8Er5YQSphjmINjRDS3zcPDksLZizfYwMRAH3urx71cBQJyZP6okac5IDptXA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796153846; h=DMARC-Filter:Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer: MIME-Version:Content-Transfer-Encoding; bh=eXTpHENyQwIUuThARZe/xmaPzjIxs5KaYdXhDkoBJnM=; b=EoO7Ongv9h2NV8cqD639/MqS0JDW1TBcWFuFfcTn5xb90JsIifDXIEvPndu+PExeCJsu NmPne0FkjZDPfrLc2LX2S0DEl7AE1hLzsEasd3KfZUNVGySK9KsNyECzYAxMjmGw9cuBg bS+CbkED2D7sfP7RFIRvEz0LCe5agh3+Fc0t5p8TjG8ro1Qo+SiHvkctVgiA1e59MJOtE DhUGbtM4F6A6MIsj5vf4XiMAy81eMEaAO9UY3xK8Sx2t70ucWtzwJrO8sLPYGg2tqKMGk HIQoM1359cM4/CH5sW2v98KsDu4zQqVFx/71a78gGRG9YymhZSMorvvEfBk1YIh0bWA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=phrozen.org; spf=pass smtp.mailfrom=phrozen.org; arc=none smtp.remote-ip=46.4.11.11 Received: from nbd.name (nbd.name [46.4.11.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6E784606A322; Tue, 1 Dec 2026 19:37:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6E784606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=phrozen.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=phrozen.org Received: from [2a04:4540:1405:15fc:bd72:1c73:6cc3:2cda] (helo=bertha10..) by ds12 with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1xYTfA-00At3c-1f; Tue, 01 Dec 2026 20:37:16 +0100 From: John Crispin To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Stephen Boyd , Brian Masney , Jerome Brunet , Philipp Zabel Cc: Daniel Lezcano , Christian Marangi , Vitaliy Sochnev , Lorenzo Bianconi , Felix Fietkau , devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, lei.dong@airoha.com, Linqi.zhang@airoha.com, Rajeev.kumar@airoha.com, upstream@airoha.com, Weifeng.xu@airoha.com, zhengping.zhang@airoha.com Subject: [PATCH v2 0/5] clk: en7523: add support for Airoha AN7589 Date: Tue, 1 Dec 2026 20:36:52 +0100 Message-Id: <20261201193657.3072138-1-john@phrozen.org> X-Mailer: git-send-email 2.34.1 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-Transfer-Encoding: 8bit This adds the clocks and resets of the Airoha AN7589 to the en7523 driver. The SCU is close to the EN7581 one, with wider mux fields, different base rates, a few new clocks and a third reset bank. Patches 1 and 2 are the bindings, patch 3 is the driver side. Patches 4 and 5 are for the MDIO controllers, which sit inside the SCU register space as children of the clock controller: 4 allows the child nodes and 5 creates the devices. The AN7583 needs the same. This is now based on clk-pile with the AN7583 series applied (536104a3ba8c). Tested on the AN7589 EVB. Changes in v2: - rebased on the applied AN7583 series, which made "decouple base clock count from clock ID count" obsolete, so that patch is gone - reworked the reset header, a few names and bits changed (2/5) - the AN7589 gets its own rule forbidding #phy-cells (2/5) - MDIO2 reset is bit 12, not 13 (3/5) - dropped the SSTR/PCIC writes at probe (3/5) - fixed the commit messages, the chip SCU has the clock source and divider registers, not the PCIe ones (1/5, 3/5, 5/5) - v1: https://lore.kernel.org/r/20261124101220.3888170-1-john@phrozen.org John Crispin (5): dt-bindings: arm: airoha: add AN7589 chip SCU dt-bindings: clock: airoha: add AN7589 clk: en7523: add support for Airoha AN7589 dt-bindings: clock: airoha: allow MDIO controllers under the SCU clk: en7523: populate SCU child devices .../bindings/arm/airoha,en7581-chip-scu.yaml | 1 + .../bindings/clock/airoha,en7523-scu.yaml | 34 +- drivers/clk/clk-en7523.c | 340 +++++++++++++++++- include/dt-bindings/clock/en7523-clk.h | 9 + .../dt-bindings/reset/airoha,an7589-reset.h | 88 +++++ 5 files changed, 468 insertions(+), 4 deletions(-) create mode 100644 include/dt-bindings/reset/airoha,an7589-reset.h base-commit: 536104a3ba8cae659daa734ccecf6c65707e1442 -- 2.34.1