Message ID | cover.1701691923.git.unicorn_wang@outlook.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp2739144vqy; Mon, 4 Dec 2023 04:54:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IFDFs6KqdMe42byeiituGbrUJznwZNqna+Xfa5yC73M0rzmkRF+255kL6k76bWhAkk8gBw0 X-Received: by 2002:a05:6a20:4325:b0:18b:902:9be with SMTP id h37-20020a056a20432500b0018b090209bemr5971540pzk.57.1701694483710; Mon, 04 Dec 2023 04:54:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701694483; cv=none; d=google.com; s=arc-20160816; b=X1Cw4fD6F42yS6cYPbRVHIF6jI08fRgYATYpgutikogWkVRchZRAbCPvtglXkt+Ty0 gQEZ8pDpFxMVBHTGPgWaX/RyZFYr27FryovL5kDYEuWQrdAipnPgBu8tZrva6z8Zk0V/ mMDc7WHK0fDNHNmi0VxJg2m1o4fdiNuI13p/xiukCentFywVACaOoQ405VXSYYKrcwBG 6V603Mu4rzPWkWQY3MBlpUHCsnkTRUikCHfD1RDndlBMrfX/EkQkPEwccXIT/RpqVYby oY/kLMbn2630U92NB3deV5WUT6eMxBauKybYpE1w9TnL5BMdg+lFoIxayxLuoTn8POBl tCNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=x/xu9nwzbmHnEYotXUPce3P+9ytlR88YxCwCFXrncBQ=; fh=KH8xm6lWnQmjdwi1VtR18ptPhMUvoKU3JPF7cI3jXZo=; b=qR58Bd5J4HQdGcRtlYd2tm6kuewCg8++tvFpaRbG7h7rNJIoGb1e8vqHscCMNjVaGU pzkaKg1epX3+z+8qPk1iIUHU8fmzmSPeJSirUSIMenFc9Qm8Lf5wPPumygsdxeAElVsZ thtmQk39/uI/fixPm8Bxiv7eM8A2wqjy5GBf1d8fOEg8ylAUsaBTNLT9jQ1oeVMClj0O QM2cfn87BDnwH34FWCplHrHCPjQ4PX0iW7ZZbeX39tifq+tjmHw4ybOsnGCxPCAfLEXR Od1PmMdaDvccKodifJyKxsW4S+cYkQZbZZJV9ZMQQIEabiRJpXFR0GUnSa5gkK1wuRln olRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=f+vv5CGK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id oo4-20020a17090b1c8400b002869b387355si2412073pjb.169.2023.12.04.04.54.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 04:54:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=f+vv5CGK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 3D1CC805C3DB; Mon, 4 Dec 2023 04:54:40 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344093AbjLDMyb (ORCPT <rfc822;chrisfriedt@gmail.com> + 99 others); Mon, 4 Dec 2023 07:54:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229944AbjLDMya (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 4 Dec 2023 07:54:30 -0500 Received: from mail-oa1-x2a.google.com (mail-oa1-x2a.google.com [IPv6:2001:4860:4864:20::2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96AD0C0; Mon, 4 Dec 2023 04:54:36 -0800 (PST) Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-1faf46f96ebso1892396fac.1; Mon, 04 Dec 2023 04:54:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701694475; x=1702299275; 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; bh=x/xu9nwzbmHnEYotXUPce3P+9ytlR88YxCwCFXrncBQ=; b=f+vv5CGKnacNhoMKUFEqbh69TZUcH9zQoh68CqSr84lFod0/HL5WRyfYHBs/fxsgTY yVXfLAylYAMEcr/+4TzViipoB6iugGys2idFgWB35YfWm15CjrvfOA2bVrODaCW88WBY MSM+Zt/MxckxQFHgQh7O++jDui9rb0ZtA0+LbEehuffvJ2u+GK4GCwsS5R6ZPZ5bzsId ENlv2VrTmCmBEWhQ1Z6JYqksTMRB/vYQkntivwavZXCcNPwZG4Y219bN/Y7nk0zWrJlj PGtOoGOzTRcQEfY39Pl8JAuHzADfq12dZJCRT/rkqfInFiepl61tKgFT1xIk4+/HbUUN pvoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701694475; x=1702299275; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=x/xu9nwzbmHnEYotXUPce3P+9ytlR88YxCwCFXrncBQ=; b=nGybAqHTmtJxtxoAAamwmKUCeubDGO37ymmJzUud0AqStRoqjMlEgJNPRtNky3hi5M DulCnDWk5kyZ/iD+1JVV7vf04nLA7jjRIZ7DXAEEuy7rLnH2HIhiI73bw/4OCSJpY3uY OlZadgJs+euvAn26+8tUq55dJMUb3J0j7ws63jRYDBau+6WeVq4HfBrbeDlurpOkbv3R jVSh01N41Kz+WMGXVtstIpnXqZiDSYUK8YPAr20LCgGAnNfRukqkapLW7EXkd7X8xOdf IYLmP4S1VVcphBa1QEKkhVeSZY4Dfxxakk3V11RZRzJGB+DRUDesNNalUrdKfL4QIw6b Q8NA== X-Gm-Message-State: AOJu0Yzc4HmkCV5sJI4JAKA39wbqsVDVe6EhcVmWBEWm7MtkgjzVB0EF /rY9to4RMmW4v1Dk9VY+9cM= X-Received: by 2002:a05:6871:58f:b0:1fa:f52a:ad2b with SMTP id u15-20020a056871058f00b001faf52aad2bmr6168296oan.8.1701694474816; Mon, 04 Dec 2023 04:54:34 -0800 (PST) Received: from localhost.localdomain ([122.8.183.87]) by smtp.gmail.com with ESMTPSA id pa18-20020a0568701d1200b001faff1908d3sm2068107oab.53.2023.12.04.04.54.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 04:54:34 -0800 (PST) From: Chen Wang <unicornxw@gmail.com> To: aou@eecs.berkeley.edu, chao.wei@sophgo.com, conor@kernel.org, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, palmer@dabbelt.com, paul.walmsley@sifive.com, richardcochran@gmail.com, robh+dt@kernel.org, sboyd@kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, haijiao.liu@sophgo.com, xiaoguang.xing@sophgo.com, guoren@kernel.org, jszhang@kernel.org, inochiama@outlook.com, samuel.holland@sifive.com Cc: Chen Wang <unicorn_wang@outlook.com> Subject: [PATCH v3 0/4] riscv: sophgo: add clock support for sg2042 Date: Mon, 4 Dec 2023 20:54:24 +0800 Message-Id: <cover.1701691923.git.unicorn_wang@outlook.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 04 Dec 2023 04:54:40 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784355994766785647 X-GMAIL-MSGID: 1784355994766785647 |
Series | riscv: sophgo: add clock support for sg2042 | |
Message
Chen Wang
Dec. 4, 2023, 12:54 p.m. UTC
From: Chen Wang <unicorn_wang@outlook.com>
This series adds clock controller support for sophgo sg2042.
Thanks,
Chen
---
Changes in v3:
The patch series is based on v6.7-rc1. You can simply review or test the
patches at the link [3].
- DTS: don't use syscon but define sg2042 specific system control node. More
background info can read [4].
- Updating minor issues in dt-bindings as per input from reviews.
Changes in v2:
The patch series is based on v6.7-rc1. You can simply review or test the
patches at the link [2].
- Squashed the patch adding clock definitions with the patch adding the
binding for the clock controller.
- Updating dt-binding for syscon, remove oneOf for property compatible;
define clock controller as child of syscon.
- DTS changes: merge sg2042-clock.dtsi into sg2042.dtsi; move clock-frequency
property of osc to board devicethree due to the oscillator is outside the
SoC.
- Fixed some bugs in driver code during testing, including removing warnings
for rv32_defconfig.
- Updated MAINTAINERS info.
Changes in v1:
The patch series is based on v6.7-rc1. You can simply review or test the
patches at the link [1].
Link: https://github.com/unicornx/linux-riscv/commits/upstream-sg2042-clock-v1 [1]
Link: https://github.com/unicornx/linux-riscv/commits/upstream-sg2042-clock-v2 [2]
Link: https://github.com/unicornx/linux-riscv/commits/upstream-sg2042-clock-v3 [3]
Link: https://lore.kernel.org/linux-riscv/MA0P287MB03329AE180378E1A2E034374FE82A@MA0P287MB0332.INDP287.PROD.OUTLOOK.COM/ [4]
---
Chen Wang (4):
dt-bindings: soc: sophgo: Add Sophgo system control module
dt-bindings: clock: sophgo: Add SG2042 bindings
clk: sophgo: Add SG2042 clock generator driver
riscv: dts: add clock generator for Sophgo SG2042 SoC
.../clock/sophgo/sophgo,sg2042-clkgen.yaml | 50 +
.../soc/sophgo/sophgo,sg2042-sysctrl.yaml | 35 +
MAINTAINERS | 7 +
.../boot/dts/sophgo/sg2042-milkv-pioneer.dts | 4 +
arch/riscv/boot/dts/sophgo/sg2042.dtsi | 79 +
drivers/clk/Kconfig | 1 +
drivers/clk/Makefile | 1 +
drivers/clk/sophgo/Kconfig | 8 +
drivers/clk/sophgo/Makefile | 2 +
drivers/clk/sophgo/clk-sophgo-sg2042.c | 1371 +++++++++++++++++
drivers/clk/sophgo/clk-sophgo-sg2042.h | 226 +++
.../dt-bindings/clock/sophgo,sg2042-clkgen.h | 169 ++
12 files changed, 1953 insertions(+)
create mode 100644 Documentation/devicetree/bindings/clock/sophgo/sophgo,sg2042-clkgen.yaml
create mode 100644 Documentation/devicetree/bindings/soc/sophgo/sophgo,sg2042-sysctrl.yaml
create mode 100644 drivers/clk/sophgo/Kconfig
create mode 100644 drivers/clk/sophgo/Makefile
create mode 100644 drivers/clk/sophgo/clk-sophgo-sg2042.c
create mode 100644 drivers/clk/sophgo/clk-sophgo-sg2042.h
create mode 100644 include/dt-bindings/clock/sophgo,sg2042-clkgen.h
base-commit: b85ea95d086471afb4ad062012a4d73cd328fa86
Comments
This version has one adt_binding_check error (thanks Rob pointed it out), so please ignore this v3, I will fix the bug and send out v4 soon. On 2023/12/4 20:54, Chen Wang wrote: > From: Chen Wang <unicorn_wang@outlook.com> > > This series adds clock controller support for sophgo sg2042. > > Thanks, > Chen > > --- > > Changes in v3: > The patch series is based on v6.7-rc1. You can simply review or test the > patches at the link [3]. > - DTS: don't use syscon but define sg2042 specific system control node. More > background info can read [4]. > - Updating minor issues in dt-bindings as per input from reviews. > > Changes in v2: > The patch series is based on v6.7-rc1. You can simply review or test the > patches at the link [2]. > - Squashed the patch adding clock definitions with the patch adding the > binding for the clock controller. > - Updating dt-binding for syscon, remove oneOf for property compatible; > define clock controller as child of syscon. > - DTS changes: merge sg2042-clock.dtsi into sg2042.dtsi; move clock-frequency > property of osc to board devicethree due to the oscillator is outside the > SoC. > - Fixed some bugs in driver code during testing, including removing warnings > for rv32_defconfig. > - Updated MAINTAINERS info. > > Changes in v1: > The patch series is based on v6.7-rc1. You can simply review or test the > patches at the link [1]. > > Link: https://github.com/unicornx/linux-riscv/commits/upstream-sg2042-clock-v1 [1] > Link: https://github.com/unicornx/linux-riscv/commits/upstream-sg2042-clock-v2 [2] > Link: https://github.com/unicornx/linux-riscv/commits/upstream-sg2042-clock-v3 [3] > Link: https://lore.kernel.org/linux-riscv/MA0P287MB03329AE180378E1A2E034374FE82A@MA0P287MB0332.INDP287.PROD.OUTLOOK.COM/ [4] > > --- > > Chen Wang (4): > dt-bindings: soc: sophgo: Add Sophgo system control module > dt-bindings: clock: sophgo: Add SG2042 bindings > clk: sophgo: Add SG2042 clock generator driver > riscv: dts: add clock generator for Sophgo SG2042 SoC > > .../clock/sophgo/sophgo,sg2042-clkgen.yaml | 50 + > .../soc/sophgo/sophgo,sg2042-sysctrl.yaml | 35 + > MAINTAINERS | 7 + > .../boot/dts/sophgo/sg2042-milkv-pioneer.dts | 4 + > arch/riscv/boot/dts/sophgo/sg2042.dtsi | 79 + > drivers/clk/Kconfig | 1 + > drivers/clk/Makefile | 1 + > drivers/clk/sophgo/Kconfig | 8 + > drivers/clk/sophgo/Makefile | 2 + > drivers/clk/sophgo/clk-sophgo-sg2042.c | 1371 +++++++++++++++++ > drivers/clk/sophgo/clk-sophgo-sg2042.h | 226 +++ > .../dt-bindings/clock/sophgo,sg2042-clkgen.h | 169 ++ > 12 files changed, 1953 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/sophgo/sophgo,sg2042-clkgen.yaml > create mode 100644 Documentation/devicetree/bindings/soc/sophgo/sophgo,sg2042-sysctrl.yaml > create mode 100644 drivers/clk/sophgo/Kconfig > create mode 100644 drivers/clk/sophgo/Makefile > create mode 100644 drivers/clk/sophgo/clk-sophgo-sg2042.c > create mode 100644 drivers/clk/sophgo/clk-sophgo-sg2042.h > create mode 100644 include/dt-bindings/clock/sophgo,sg2042-clkgen.h > > > base-commit: b85ea95d086471afb4ad062012a4d73cd328fa86