Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp3059957rdb; Mon, 4 Dec 2023 15:59:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IE9iIoVSyYi00siA1aAa7ucpNdx40QV5AJy0qflTZDlmyb5Mi/IdOlZXreXFpABhyaVnn41 X-Received: by 2002:a05:6a20:1444:b0:18f:97c:5b77 with SMTP id a4-20020a056a20144400b0018f097c5b77mr2424032pzi.69.1701734341810; Mon, 04 Dec 2023 15:59:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701734341; cv=pass; d=google.com; s=arc-20160816; b=i+eskkrUWSgOrHAzu73hOTrvAbXXrrp7zzxoiGMkoKNJU2+y9Lb5ufrjpNNfiBLKWM eS4s2arRA2wA6DigSU2HtM7nZcPm9cdTX+obCPrkoiDANHTKh3jmV11mscaifWvVKWNL ERN7sKPzJ7O8viEIjS8WKK+WVPSZFqyaMb6tDa5F589KTbhGPE8nNr+IB1ysZAK8BDd1 s5GSHuSwIBJnepeJpLxK0r0ya5cR8YOPkqGcWCnwTP3nuSEcLp1UFG3XnyrBQXGFJM2z s89Qo9+INweUjFD+dF8fVVXgDk3eLBol5X4DR05XLwd176N5MaxH013EgnDIVI0U3N+p nW5w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:to:subject:user-agent:date:message-id :dkim-signature; bh=fm1Cp+VqLVbeyYlxDuFlFElJPdvB0dC9+ifSGDyEth8=; fh=8YObQZT9r5Z7lEnBZPdjxfoVPihk1dTP3sm7xraLyjY=; b=Ktt87sB94WYDcQOEGKiAGchhc5BhfDSNjul0DviDt2nTjG6359SUIR17OS3++j/Dkg G7tCM8oL+OxLf1JP3ysCYwN/5Rv1LHRvGxc6xoQVXcvAvFsAU3c8LXdwO/sGDZFTVbO6 TvE6yANlClVHSR+PQXDS1yCrvzbUTEt1l5WIl4B2ScLgyxWedvasxDb8+U1il/snhOjc Trl7KVuXZ9aVnGxap2YpvtBSxlGSX5G+X+D+SxskA1F7GwTrA9aIYjOQBqwDA0+jhQo8 y/eDNJWXw2I8oMovIUIY1XeMFg8RGYXijCp601ytjVJx6fHAaA1p7g3RUlR4Rshsff93 EG0A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=U9p92Fza; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id o9-20020a1709026b0900b001d054a8f128si6445127plk.451.2023.12.04.15.59.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 15:59:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=U9p92Fza; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 192BF80BAAA9; Mon, 4 Dec 2023 15:58:59 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234614AbjLDX6o (ORCPT + 99 others); Mon, 4 Dec 2023 18:58:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229703AbjLDX6n (ORCPT ); Mon, 4 Dec 2023 18:58:43 -0500 Received: from IND01-MAX-obe.outbound.protection.outlook.com (mail-maxind01olkn2099.outbound.protection.outlook.com [40.92.102.99]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1BDCFA; Mon, 4 Dec 2023 15:58:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m3uAHHofE39+J39rZ5P6GzwRm32pBAeZ1Hx36ODCP54FrxID+XtGedjgvVBQz8WvNJ5qffEeImEUyTG1t4nVGRNoVqAsmBmXcep7u2otEJ0Q6DB+xSV/UrAgLJ8vNFLpp6T5dYekmnbBBxxAfCySjSPMUnXS+VXmSkRaHlZHekRYE4B+/MFanjc3C4/4doKrl2LPYisE3xoQEXLZmQq0ikgqFPVj/vPmqxebVY7g/7KnTf6RGyEJO6eykeF35Gec5Bg4t/NJVVao7o6pW+pfDKqr0q5ecxzXtB7TTkMYmNezJ0GSsO/Mrhs29cjP/HL4oVgkYObYgsDRII+2Y5yphQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=fm1Cp+VqLVbeyYlxDuFlFElJPdvB0dC9+ifSGDyEth8=; b=XgfaEpKdCIrav3kzBer9pjVADZ82OlsH2YZECjLvrCPXH2JtSzfHyhhBVLTil8ToSUqGs4tVI3NY08exXSEjm0k/YLkEByfZx+H9yGk14mm2HAQzq70UUnEricdQj/+6/XjaFBOB+jC4cK9Di2aE3TBY5I/Fs6Sil31tTcjogUtBmn8dGaN3obdIkr39oRB7gnpkqJcV+VKDoSm86CobV+Hbi6WnRLSwTZIYLeTdYkBYTKvc0KQS9eJaMqZdRFm+CRqeXlmSf3fw8bAz3hFEjOZhVFh+NhtqLGK9Hpy8woMAcBu1nPcGPHiPj8hWnPnI5HQy8gZdzAtTEAtz2HAJ6A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fm1Cp+VqLVbeyYlxDuFlFElJPdvB0dC9+ifSGDyEth8=; b=U9p92FzaIsXehkkHbxutIYFHIDmDNmyhQL5KHRlhKSyAnY0penWY/gubgM923FWfv7Civzuoqzq3+lKsCiemMFMJzZEY4B4TuPHHurhZtmsq3pqjBPQbYIrBab1eTOrM8bKI5qIHOa1TArHxJ4cHO82UTMhTv4lQeEdDc4VTzEB2nL704gsa39Rn5LMy/+ahBcaGAE91zsLnRFUS6K8Tatfa00CF0OdFTdZQPbFThzvsbwHJR+4qyIKkYsltTBeYwekQmbEUwYfTiC6Yyl7/oOuWDsIl5v19lmhCqsbHdhbyoL0dZEWFCmtEPlJZHMHZZUP2DBsynAqCxbosYa4IQw== Received: from MA0P287MB0332.INDP287.PROD.OUTLOOK.COM (2603:1096:a01:ab::5) by PN3P287MB1287.INDP287.PROD.OUTLOOK.COM (2603:1096:c01:1a1::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.34; Mon, 4 Dec 2023 23:58:40 +0000 Received: from MA0P287MB0332.INDP287.PROD.OUTLOOK.COM ([fe80::b1a7:eee7:e903:9ef3]) by MA0P287MB0332.INDP287.PROD.OUTLOOK.COM ([fe80::b1a7:eee7:e903:9ef3%7]) with mapi id 15.20.7046.034; Mon, 4 Dec 2023 23:58:40 +0000 Message-ID: Date: Tue, 5 Dec 2023 07:58:32 +0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 0/4] riscv: sophgo: add clock support for sg2042 To: Chen Wang , 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 References: From: Chen Wang In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TMN: [D4XGbn0dJNAfTVE6LE0TT5TIQb8ycxZj] X-ClientProxiedBy: TYCP301CA0009.JPNP301.PROD.OUTLOOK.COM (2603:1096:400:386::7) To MA0P287MB0332.INDP287.PROD.OUTLOOK.COM (2603:1096:a01:ab::5) X-Microsoft-Original-Message-ID: <67092374-73ce-457a-80fe-7d53f2173fb3@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MA0P287MB0332:EE_|PN3P287MB1287:EE_ X-MS-Office365-Filtering-Correlation-Id: cefdc073-6163-4780-dad6-08dbf524effa X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gCf7qxc+I95ZOh2xtFc+kbvSRmIFde0UW+bYDD7G/Ih1HFCMXsXLCiK49ib7Lid9cqaKgSaJfnGdUsB8IJHmTbOElX1DN2uMGQ+yQvfvY2HGnp0v3NjSmEhBd6/tcsrmPct8qT2E7EOxamL13jK1SvxzZ0Kac+URj6gUUZgQwkixUHUyaoJMaKyllK5XONoTVZH7fCNzpNfOe5a67LI/3tJ3V02h0PEXW5hApdJRPjADA/Q3gVlM2Ih7eUBgu74H+5hODkAOF/zd7EQrFFTOHhnPHcSWWvy+JU1i4nTlST+42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hTcit4blIyZTVzb0lMTWUvYkVDL0hEemh1dUpKNlhJ?= =?utf-8?B?OWtVcHowYkUyNlRFOUVnVEg0cE1GVTVWaTRoZDY0UmdTZnZRNGFkSkhmKzZP?= =?utf-8?B?Y3lkeUlkdC9OZG1iYjJORG9Ja3dUb1NzWDRwVXlNVEx5aDdzNUR0VWxoRnIw?= =?utf-8?B?cTlaWEVBa2NGMk1HNkt0YUlac2ZtN1ZnaCtEYzJJdXkwZFhTUURBTzM3d2dz?= =?utf-8?Q?Svk2cxr4qugyFPo7TrP6j5d6t3y4Hf9pccxNRPMTUZSE=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: cefdc073-6163-4780-dad6-08dbf524effa X-MS-Exchange-CrossTenant-AuthSource: MA0P287MB0332.INDP287.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2023 23:58:40.1739 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PN3P287MB1287 X-Spam-Status: No, score=1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FORGED_MUA_MOZILLA,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 04 Dec 2023 15:58:59 -0800 (PST) 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 > > 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