From patchwork Wed Oct 9 06:05:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Chen X-Patchwork-Id: 13827588 Received: from TWMBX01.aspeed.com (mail.aspeedtech.com [211.20.114.72]) (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 20E2210FF; Wed, 9 Oct 2024 06:05:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.20.114.72 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728453927; cv=none; b=uBmmSEB+jkzuxnJc12093aFs6YZk+YJ8+JstGcrc+FxNagnv0FKtVYBS3+PrjOXSjzkBp8s9bzkWPSlDlitca0OOHyYvwSmdk/wPtgXjo5/kbvSjUvYv3sKGF6zfU9YwdhnRy3URQvZvdXieiGOe5rqqjmUfMbF1mw9ifrZ+gtY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728453927; c=relaxed/simple; bh=cSKX2xOd7Gxu3dNznPtT1+XRb9ZcTAIvxo4Mo6jVNp8=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=th9JPaHMpUbzQok0llq+b8XtoS98Jme0zw2fSVg20ll7A7l1HeLWuwUmSn2wVq23VM15qFz5Zu2t2loGva+cv5KJs9KRO4EfLNp6NFziarM2ujE/ISEcfzFXNMMWlR7wYow5Iaot/y6k+Hqqwj7aHXRndcGRDPOMH133WyVpDdY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=aspeedtech.com; spf=pass smtp.mailfrom=aspeedtech.com; arc=none smtp.client-ip=211.20.114.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=aspeedtech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aspeedtech.com Received: from TWMBX01.aspeed.com (192.168.0.62) by TWMBX01.aspeed.com (192.168.0.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.12; Wed, 9 Oct 2024 14:05:21 +0800 Received: from twmbx02.aspeed.com (192.168.10.152) by TWMBX01.aspeed.com (192.168.0.62) with Microsoft SMTP Server id 15.2.1258.12 via Frontend Transport; Wed, 9 Oct 2024 14:05:21 +0800 From: Ryan Chen To: , , , , , , , , , , , , , , Subject: [PATCH v5 0/3] Add support for AST2700 clk driver Date: Wed, 9 Oct 2024 14:05:18 +0800 Message-ID: <20241009060521.2971168-1-ryan_chen@aspeedtech.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 This patch series is add clk driver for AST2700. AST2700 is the 8th generation of Integrated Remote Management Processor introduced by ASPEED Technology Inc. Which is Board Management controller (BMC) SoC family. AST2700 have two SoC connected, one is SoC0, another is SoC1, it has it's own scu, this driver inlcude SCU0 and SCU1 driver. v5: -patch-2 Kconfig: add select AUXILIARY_BUS -reset-aspeed: #define to_aspeed_reset(p) turn into static inline function. -reset-aspeed: modify spin_lock_irqsave to guard(spinlock_irqsave) -reset-aspeed: remove unnecessary parentheses. -clk-ast2700: use and refrain from define clk v4: -yaml: keep size-cells=<1>. -merge clk,reset dt binding header with yaml the same patch. -rename clk,reset dt binding header to aspeed,ast2700-scu.h -reset-aspeed: update tables tabs sapces to consistent spaces. -reset-aspeed: remove no use dev_set_drvdata. -clk-ast2700: modify reset_name to const int scu in struct clk_data. -clk-ast2700: use scu number in clk_data generate reset_name for reset driver register. -clk-ast2700: fix pll number mix up scu0,scu1. -clk-ast2700: update dt-binding clock include file. v3: -yaml: v2 missing send yaml patch, v3 add. -yaml: drop 64bits address example. -yaml: add discription about soc0 and soc1 -dt-bindings: remove (), *_NUMS, reserved. -dt-bindings: remove dulipated define number. -dt-bindings: merge clk and reset to be one patch. -reset-aspeed: add auxiliary device for reset driver. -clk-ast2700: modify reset to be auxiliary add. -clk-ast2700: modify to be platform driver. -clk-ast2700: modify each clk to const clk array. v2: -yaml: drop 64bits address example. -yaml: add discription about soc0 and soc1 -dt-bindings: remove (), *_NUMS, reserved. -dt-bindings: remove dulipated define number -clk-ast2700: drop WARN_ON, weird comment. Ryan Chen (3): dt-bindings: mfd: aspeed: support for AST2700 reset: aspeed: register AST2700 reset auxiliary bus device clk: aspeed: add AST2700 clock driver. .../bindings/mfd/aspeed,ast2x00-scu.yaml | 8 +- drivers/clk/Kconfig | 8 + drivers/clk/Makefile | 1 + drivers/clk/clk-ast2700.c | 1554 +++++++++++++++++ drivers/reset/Kconfig | 7 + drivers/reset/Makefile | 1 + drivers/reset/reset-aspeed.c | 256 +++ .../dt-bindings/clock/aspeed,ast2700-scu.h | 163 ++ .../dt-bindings/reset/aspeed,ast2700-scu.h | 124 ++ 9 files changed, 2121 insertions(+), 1 deletion(-) create mode 100644 drivers/clk/clk-ast2700.c create mode 100644 drivers/reset/reset-aspeed.c create mode 100644 include/dt-bindings/clock/aspeed,ast2700-scu.h create mode 100644 include/dt-bindings/reset/aspeed,ast2700-scu.h