From patchwork Fri Feb 23 17:12:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Xiwen via B4 Relay X-Patchwork-Id: 13569595 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 7A5B920DF8; Fri, 23 Feb 2024 17:12:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708708354; cv=none; b=AWAwqDg1BcYKqOvgorFIbtlgyZvg89ry5YEX5RAd20QJHu1hDqydjRVk9nIz7eGcuRhisW3GP3o2F51g+oprJjyBjybmR/B4qq+RsAbo7pjmr0UhdE43o6Rt8YSmlljgfrM/ptH9LjIIU2/YxQGFFAjr2VZhR3se21BL4lQJYtc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708708354; c=relaxed/simple; bh=K5l8FIKyrPGggWrNHQLgOC6spezzjnCbuGDXpU0IxpE=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=VMt9fwzCP52Cuo8tHXENGIoPVdjPrLrIzpRYFiU2GtEVhFglZFEOTKczR4l08UTsYOrplpO10BUTGo8FF6+vBV9lhE5Vq0xFdKVPhaTWfQvFUiuwL/ky/E7bvhQ7kNorHm0YpNZ17jKRsAq3GVUSubQ6VqT+liH5mYAA9k9s5wc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZHGWCknZ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZHGWCknZ" Received: by smtp.kernel.org (Postfix) with ESMTPS id 51174C433F1; Fri, 23 Feb 2024 17:12:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708708354; bh=K5l8FIKyrPGggWrNHQLgOC6spezzjnCbuGDXpU0IxpE=; h=From:Subject:Date:To:Cc:Reply-To:From; b=ZHGWCknZEIn+5e3TxlXB4SW4ao+660Cvu2JaiL4HCetNdfKgo3oDzYGz0w5sdHEdy dQf9fFGU8PBDUZoDJO1hf66/nZ3lijPETyzbT3BrzsYX7znH4yF7Uo0R0hYJ/YgesO W05rvwKCP+yX59tLv5zSDHVBXyvQM+vy692YLv96SxXWDs9Osom0xrmnYgVesxe0sR kEPJ3/fAnkzdq1n850BXicezXpZuKsu53M9X4iaHMP02CUXGwpThGHse5IcsjjO81e mJ1e9U/M1Vyyhe/XBkHbzdrTvqmA+VzCqrZT9BZbfAjwLg3myW8Zrr4EDNslTmDzQI sZOM0kWjO2aHw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 354C8C54798; Fri, 23 Feb 2024 17:12:34 +0000 (UTC) From: Yang Xiwen via B4 Relay Subject: [PATCH v5 0/6] clk: hisilicon: add support for Hi3798MV200 Date: Sat, 24 Feb 2024 01:12:27 +0800 Message-Id: <20240224-clk-mv200-v5-0-79f586d6e1a2@outlook.com> Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAPvR2GUC/23NTQ7CIBCG4asY1mKGGQqtK+9hXLR0qsQfTKtE0 /Tu0q6IuvwmPC+jGLj3PIjtahQ9Rz/4cEujWK+EO9W3I0vfpi0QUAMqI93lLK8RAaRzpauZKsM MIr2/99z519LaH9I++eER+veSjmq+/qtEJUHWWNWOsWJDZheej0sI540LVzF3IubW5haTbWyJr LkxprO/ljKLmFtKtiOwVdEUQKr8tTq3lFudLDFZLkC1Gr7+nabpA99jY2NYAQAA To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: David Yang , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Xiwen , Rob Herring , Krzysztof Kozlowski X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1708708351; l=3279; i=forbidden405@outlook.com; s=20230724; h=from:subject:message-id; bh=K5l8FIKyrPGggWrNHQLgOC6spezzjnCbuGDXpU0IxpE=; b=3523LfbLIi7nDbpmFhcG1jcEx/RqyKNSXoSd8Mx+xg6g/uZ9ApT0ofV9ZjO9SVaQdgyQH83oL kyKP8pInVSQAtdrH06Oeafw1etBrApaJYJjcZpaY0GPbEzEcl26juhe X-Developer-Key: i=forbidden405@outlook.com; a=ed25519; pk=qOD5jhp891/Xzc+H/PZ8LWVSWE3O/XCQnAg+5vdU2IU= X-Endpoint-Received: by B4 Relay for forbidden405@outlook.com/20230724 with auth_id=67 X-Original-From: Yang Xiwen Reply-To: This SoC is similar to Hi3798CV200 with a few more clocks in CRG module. Note this driver is still ongoing, many clocks are not registered in the driver now. Feedback is welcomed, especially from HiSilicon people. Signed-off-by: Yang Xiwen --- Changes in v5: - sort compatibles alphabetically (Rob Herring) - squash patch 5&6 (Rob Herring) - Link to v4: https://lore.kernel.org/r/20240223-clk-mv200-v4-0-3e37e501d407@outlook.com Changes in v4: - dt-bindings: hisi-crg: add reg and #reset-cells to required, add reset-controller to required for cv200 - dt-bindings: hisi-crg: do not add "simple-mfd" and "syscon" for hi3519 (Krzysztof Kozlowski) - dt-bindings: hi3798mv200: replace spaces with tabs (Krzysztof Kozlowski) - dt-bindings: s/DTS/DT_BINDINGS_CLOCK (Krzysztof Kozlowski) - Link to v3: https://lore.kernel.org/r/20240222-clk-mv200-v3-0-f30795b50318@outlook.com Changes in v3: - remove RFC (Krzysztof Kozlowski) - rearrange patches so dt-binding comes before drivers (Krzysztof Kozlowski) - dt-bindings: Remove lots of properties - dt-bindings: stop merging all hisi-clock bindings, only convert hisi-crg.txt for now. - dt-bindings: remove hisilicon,hisi-sdmmc-dll subnode (Rob Herring, Krzysztof Kozlowski) - split histb-clock.h into two files, deprecate this header file - fix all users (hi3798cv200.dtsi and hi3798cv200 CRG driver) - hi3798mv200-crg: add a few missing clocks - Link to v2: https://lore.kernel.org/r/20240217-clk-mv200-v2-0-b782e4eb66f7@outlook.com Changes in v2: - s/dt-binding/dt-bindings in commit logs: (Krzysztof Kozlowski) - fix bot error by adding "hisilicon,hisi-sdmmc-dll" to syscon.yaml (Rob Herring) - hi3798mv200-crg: assign fixed rate parents to some gates - hi3798mv200-crg: s/ETH/FEMAC, add GMAC ctrl clock - Link to v1: https://lore.kernel.org/r/20240216-clk-mv200-v1-0-a29ace29e636@outlook.com --- Yang Xiwen (6): dt-bindings: clock: convert hisi-crg.txt to YAML dt-bindings: clock: histb-clock: split into two header files arm64: dts: hisilicon: fix include path clk: hisilicon: fix include path for crg-hi3798cv200 dt-bindings: clock: hisilicon,hisi-crg: add Hi3798MV200 SoC clk: hisilicon: add CRG driver for Hi3798MV200 SoC .../devicetree/bindings/clock/hisi-crg.txt | 50 --- .../bindings/clock/hisilicon,hisi-crg.yaml | 76 ++++ arch/arm64/boot/dts/hisilicon/hi3798cv200.dtsi | 3 +- drivers/clk/hisilicon/Kconfig | 8 + drivers/clk/hisilicon/Makefile | 1 + drivers/clk/hisilicon/crg-hi3798cv200.c | 3 +- drivers/clk/hisilicon/crg-hi3798mv200.c | 462 +++++++++++++++++++++ .../dt-bindings/clock/hisilicon,hi3798cv200-crg.h | 62 +++ .../clock/hisilicon,hi3798cv200-sysctrl.h | 17 + .../dt-bindings/clock/hisilicon,hi3798mv200-crg.h | 150 +++++++ .../clock/hisilicon,hi3798mv200-sysctrl.h | 21 + include/dt-bindings/clock/histb-clock.h | 70 +--- 12 files changed, 810 insertions(+), 113 deletions(-) --- base-commit: 8d3dea210042f54b952b481838c1e7dfc4ec751d change-id: 20240216-clk-mv200-cc8cae396ee0 Best regards,