From patchwork Mon Sep 23 07:50:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Chen X-Patchwork-Id: 1988417 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=112.213.38.117; helo=lists.ozlabs.org; envelope-from=linux-aspeed-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=patchwork.ozlabs.org) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XBwCL4MSPz1xsN for ; Mon, 23 Sep 2024 17:50:37 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4XBwCJ2wJsz2yYk for ; Mon, 23 Sep 2024 17:50:36 +1000 (AEST) X-Original-To: linux-aspeed@lists.ozlabs.org Delivered-To: linux-aspeed@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=211.20.114.72 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1727077833; cv=none; b=eS1gRkSSr+soMeiAHMv02nysvcW4zaw80fJpCjrsbj02xj0GlEuQ70l3kDy/h43D9qI+7+3bI7Iuf8ZPc2f8UFVcGGXEShcvy1B005RniyOIrTrZrjgZmw5TnxAduzNFMlVVn+n6ltlZa9OdnHfN7tvq1Ru3u+RE/b/0rQUoQ0dP8tU5zsVoEWuAZcgb7rJP+YHnIKXGUqlBFDl9tLObRT+mnE7g9Ck+S7xh+y4rO4iU7Wix8+tfx1Sd8h6mOplSyUjeluUlt1v5T/kcmqKrksn3OYJzESzM+Y+ofqIafowHWOgTpgCWeH1rxPmUSg+2fkEHW5PG2CSns2V8yzwmWw== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1727077833; c=relaxed/relaxed; bh=QO26QMthm0qWAg+u7LEaGdgAII+A8PwsDSd2oJqEX24=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=jAZn1ntWiHJuc5wgvtWAzAXVQuoYNjAsWD1ZG2Zj9PAVGGg9tde3anZU0E6kkc7sidrJD2wOZJzt6dCpy+pUEYou8AZC5QV5jpWYsV6ilrI1pPKIaoYcK4ptyvB9o74qirQRNnEnnVAnx6zmJZAS9NpNnL5hEXCC/2ZltnBpvlzQWS65HzwtPivpBWmDFwtVDM+ms2AUSiyWdLH/QmWo8xhAzAeqV6djsUeyOungL7tVakNkVI7UTICJdiBjK2ffz/EHNo0uhY44OHQPMmIyHaUWyBLjavBLLRqwZWInXka1j/mW3nGgc+7BhOftzmq8aCYyVxkdxWpzlmfjuY5nqQ== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=aspeedtech.com; spf=pass (client-ip=211.20.114.72; helo=twmbx01.aspeed.com; envelope-from=ryan_chen@aspeedtech.com; receiver=lists.ozlabs.org) smtp.mailfrom=aspeedtech.com Authentication-Results: lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=aspeedtech.com Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=aspeedtech.com (client-ip=211.20.114.72; helo=twmbx01.aspeed.com; envelope-from=ryan_chen@aspeedtech.com; receiver=lists.ozlabs.org) 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 lists.ozlabs.org (Postfix) with ESMTPS id 4XBwCF2vgSz2yN3 for ; Mon, 23 Sep 2024 17:50:32 +1000 (AEST) 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; Mon, 23 Sep 2024 15:50:12 +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; Mon, 23 Sep 2024 15:50:12 +0800 From: Ryan Chen To: , , , , , , , , , , , , , Subject: [PATCH v4 0/3] Add support for AST2700 clk driver Date: Mon, 23 Sep 2024 15:50:09 +0800 Message-ID: <20240923075012.2264573-1-ryan_chen@aspeedtech.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: linux-aspeed@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux ASPEED SoC development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-aspeed-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Linux-aspeed" 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. 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 | 1553 +++++++++++++++++ drivers/reset/Kconfig | 6 + drivers/reset/Makefile | 1 + drivers/reset/reset-aspeed.c | 257 +++ .../dt-bindings/clock/aspeed,ast2700-scu.h | 163 ++ .../dt-bindings/reset/aspeed,ast2700-scu.h | 124 ++ 9 files changed, 2120 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