Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1555692rwd; Sun, 14 May 2023 22:47:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5+lrYXh7s7TwuOZjFc07AVvSpg6tZXA07iCDPkdxVb7p2uWnpOeJ1yF7mTkgd7wwj2ykjm X-Received: by 2002:a05:6a21:7896:b0:101:1951:d4ae with SMTP id bf22-20020a056a21789600b001011951d4aemr28601066pzc.14.1684129659862; Sun, 14 May 2023 22:47:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684129659; cv=pass; d=google.com; s=arc-20160816; b=d8pJaS47uISFlEJRmRkDYn2XxlUcJhUN+JBQiFlvka9TDSTmXEdJ3PE0pB1CYqicpX 5/rtHGNCDV6JXRysDTGE9XCXxD4KVKsyhGyWw6MPGCSiFJ+ch2SdB0g6FbRoJ4qgjz4o fSGzNWiIHkxdZkN2myM3hop7VOJEqWsWZFokVowWtXYglIw/k5RcZEUwgZP9N4yVYT7s EYhPQXh/WmrvLS8kA49RkT4pmctjvHCwfa0DGQXovX6AhpL7ZrkXwrnPWA8kpugbos3r cn/Tgy58RsBkroOF6D+Tbvqk7vzNUGKq72sSf9PSnxTKBJX2hjFY8gaXnEi9lfLxdcSW T5lg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=4o7tmJHmmFhvUG70KdMYT50HyZV2hyvHQ944xzvH7SA=; b=Y95Csr2ivwYJLFY2w7ppSqVAjIscJGakdnCtZHZVLIdIQKaF+Iv76H6Yv/uGGu0SZd FcQjm5T5aqkOYhyPfzluyil6PBzCQJ1bHyqcbI/IScjp/YIf61BkaseYI/ESndwVqASm l8s3BzCVxRu+Zl8NOf6mDLnxGQ9RYbQv0eLnWZtsjwAwyPRpMvkM02KXo5YuBBRXOEWT eoPf80sT40s5IfTKERm7aSj+NKtKT6ZbJEtSLLm8OruY5fyg6ktoG/gQ773fhf0q3TjL 0WtSkfErL2Ly4Dl5Kgp3tR/3sRI9k9P02imjooGh6KY5CCwTrrbhDQi8e4r3VeSzQI/7 HpGw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=iKBmS3RP; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v22-20020a637a16000000b0052c44389455si16116143pgc.781.2023.05.14.22.47.25; Sun, 14 May 2023 22:47:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=iKBmS3RP; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237575AbjEOFo0 (ORCPT + 99 others); Mon, 15 May 2023 01:44:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229629AbjEOFoY (ORCPT ); Mon, 15 May 2023 01:44:24 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2105.outbound.protection.outlook.com [40.107.215.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25C1110E3; Sun, 14 May 2023 22:44:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gF1nAn2S+gyVkcJji9ydbsQjP+70iBiZGFQcw7kRXuNglepdaQe6MJTYgxaW0rePWRSc9lOTksDf4xdS3meqW8sqfW72hKMmctqUAQEM9Aki5biWMWbzlHhqOfY8E1lAyW7xXzN97DiL/SYhMF0DgP9uZ/JEpt/nNug436r18R3mS+NCc/KEtwSBSn6oU3TVke1CJRoCH3h0wMgKd/sgy4IfnmszdR875LIxLwjUNTpMEWAD8ePdDdZ3uZouL/jA8GzpEAUcqboOFDiT4sofxhYcjV/vrpZSczudPANJr+uuoz47jT+bAtg7LRwiMElsLth7K2VFPl5ayuADSncfiw== 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=4o7tmJHmmFhvUG70KdMYT50HyZV2hyvHQ944xzvH7SA=; b=ZTv/PfOr9Fj1ppFY5W19khBj7fDlXlYIa0AE6VvstXQ/TJR24fY5g1YvBM/00C/MoD7NgVyHBmnBsPiGhqfz80otsPV6g3opwFGH6u8OsHTkU0qWYGQU5vaMeBzBOZEIvImRjHbrnGxVvJU6gm8A4KG/1RjunrLrHspuQ71FS9bnIZvwWafzM37IIiQpW75jGYIVRE2EAfDdjX/fQGC39pjsWzX/llLMHOE/1PwYpQ8iF9r/HzgdwUrw+HeAYHufQeWrLB78Za1+osdli4oJmn5/ZrBT+me1a9+FyeocgBnmteenKp/qNRQdw8BjDW4G2QI7F5YrThoSWTssoQxuyA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4o7tmJHmmFhvUG70KdMYT50HyZV2hyvHQ944xzvH7SA=; b=iKBmS3RP4ZNl345o2PhLIH9e088vo+BHK8hSij8q9y8+Zr3uPbw9sLv4U9noTqpY2BpN7K06V94rctAosbQ1+dYHpNHeIWeyq045uz3IBsrwW+ozMswqfD+dKin0G3jpd7sangnlRHfrie0H7xz32GJjlw4cw57ACTljg5n6ZiaeIsRPsHo5Fqae6hUwOboUj9e7AXtYiDfoi8QPvggqqrbOXAyv77DN1rCCJO1cAhqSQfaaQqrVfQ1Fb+K3B7e1g/FixStTwlH5iZdHAYNEWVfC2cEmnTePvx4bOENlAby277CCKqEJQgI14TL+Ztb6+kOi4HygCsdzf4sw3zRVGg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by SEZPR06MB6571.apcprd06.prod.outlook.com (2603:1096:101:185::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.30; Mon, 15 May 2023 05:44:13 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965%3]) with mapi id 15.20.6387.030; Mon, 15 May 2023 05:44:12 +0000 From: Yangtao Li To: mturquette@baylibre.com, sboyd@kernel.org Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Yangtao Li Subject: [PATCH 0/3] Add T-HEAD th1520 soc clock support Date: Mon, 15 May 2023 13:43:58 +0800 Message-Id: <20230515054402.27633-1-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR02CA0064.apcprd02.prod.outlook.com (2603:1096:4:54::28) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEZPR06MB6571:EE_ X-MS-Office365-Filtering-Correlation-Id: 4677b084-436f-446c-61cc-08db5507693c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MyCtES4w0Eu/7QnIiTHfpYXn47HDzoy+1NFmFaaoZuHtgbSsElk1YlKfFJRqmX1ZCQ0rycMPmPkwm3lh+I5DMmpscw15XJVi4IvQJ9Ln0tDUbj/9502RBb9RfiiX8+64xoJkCCQO/LmIvA4ZhijvDUzur/wN5CCspTp39diJ8Vl5EaWBwaut4t6isNucFDRqxhZszY87gmwah8UB6P8onAi0wL8ockRaMvEkRNnROpLOvTOY5yvw6yDxPR92kyGDtzKQblnRnlcUc5sSCkGabg+uQ+nCW++N7z6ugy3F0JdK2OpOoqrbAMBOwIQcudyKFXCWulJ0d68/TQxPRIO7SBobHWuk4XAxQIubOiE47PpWeBkm7CJiCg9ESsec6kc+7jCPBRzhQscRfkAh2Gq7ehfCnL4j/m0fBtpXrx/MKiZJMt52QwOTpmsSbCYMczXpKR6Yr7zZEK1C6eAKrcRlWG8g85mvUzhrs+Z2QhsbHDCuNDd+UDxooEUuZTAxxCd6nPh/8Gi27QTNnbs2VMC0CqX6bu8pIhJ/CWj/uWa4dQGbrfI/wB8P0/4s2t5i/h8DyWP4zidhtTab8Dt2cMlIeTi0q4VEGKs29IHxV/kwSUo= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(346002)(376002)(366004)(136003)(396003)(39860400002)(451199021)(966005)(52116002)(66556008)(66946007)(66476007)(4326008)(478600001)(6486002)(86362001)(316002)(36756003)(83380400001)(6512007)(26005)(107886003)(1076003)(186003)(2616005)(6506007)(41300700001)(8936002)(8676002)(5660300002)(6666004)(2906002)(4744005)(38100700002)(38350700002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?TukjampMehJVO8Mj39BeT3+0El/SS4pkth5S2svqkg6fUIESVbEAu/iPmvsw?= =?us-ascii?Q?0LYK3/lTtt0UzkepOnGkoRVP/gGjra3YLMBbVrv1R9eqvcn8YyQOI9MNr4h0?= =?us-ascii?Q?6FUJnjxKEafFxBcArw28z8KdfTj878JdvxlIjb+RhvTqfaAT3ByLj5fKi6Zc?= =?us-ascii?Q?cr/BliHm5HDEVZxCETMBis6ZmMNtIZ2YaLeNMXiRHgz3GS4MHnDwW/uYRVCC?= =?us-ascii?Q?22xpL0cVIQa0AyEsDMp5pHoutYxeZ1Gc3ZbAUnY7CIM+4jrS0wLLOX+eaQeu?= =?us-ascii?Q?GZ2CWVhPFlCpuOPI4xLn/tJW0lYw7YupwsbRuwmkNB5TgTjtE8kNN5UFnwh2?= =?us-ascii?Q?Y6P7kPS83PmMQ/wuY/YZojjXBwqUQB6z0L+MDB9gtvzv3607YR/rNGWUb+Zn?= =?us-ascii?Q?d59i3KL0W/2+p5MVQUV/fU12h5w7beYz3rSCE0kPfdmlri/vJVfuOWFhvGkC?= =?us-ascii?Q?hj45mJFA93ot5cL3klzoONTqHszeMnK7x9kAb8VEkOxKNFDzhg5oS6j+zeU/?= =?us-ascii?Q?LScQhlcxgx5BkRyBMgifntLddzbFNf76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ty+Fj9pbqSndPAy871VIcchgFfJ3dk0nX/ELH2dmYV8F?= =?us-ascii?Q?sK4aPFBtX4DecZZIxP0MwgvyLbOwU9PHhy0X+UO0Q/zAjx9X5WsvkxTcLTU8?= =?us-ascii?Q?bHMrX/FDif5xj8CO2eIGjkhLXwbUFtxr1CuK3xE6?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4677b084-436f-446c-61cc-08db5507693c X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 May 2023 05:44:12.4556 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: WKJsUVty5jU185lkGPaQFUE/jwJXijTe/iCargHUYd42WF1iwYzBo8x9kYeWbEoAE098lb0DMhcxAb0URIlxQw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB6571 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It is planned to support th1520 soc from T-HEAD in Linux, which is the clock part. BTW, we are already in the shell console, and some modules are already available. This patchset depends on some of the patches in the link below: https://www.spinics.net/lists/kernel/msg4780793.html Yangtao Li (3): dt-bindings: clock: Add thead th1520 clock clk: thead: add support for the T-HEAD TH1520 CCU MAINTAINERS: update entry for T-HEAD RISC-V SoC .../bindings/clock/thead,th1520-ccu.yaml | 60 ++ MAINTAINERS | 6 +- drivers/clk/Kconfig | 6 + drivers/clk/Makefile | 1 + drivers/clk/clk-th1520.c | 999 ++++++++++++++++++ include/dt-bindings/clock/th1520-clock.h | 92 ++ 6 files changed, 1163 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/clock/thead,th1520-ccu.yaml create mode 100644 drivers/clk/clk-th1520.c create mode 100644 include/dt-bindings/clock/th1520-clock.h -- 2.39.0