From patchwork Mon May 15 05:43:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13240732 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 572F7C77B7D for ; Mon, 15 May 2023 05:44:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=bggRwPi35D7Mv6IndcfkKzCqAAKzY7Vu+ypIw2DfIMM=; b=2kuV3uNpWSbFyL lLjuOw2MLKJsdVUJ6z56p8kYdpdZ7QpcT1eXRk7wGyCPQM3tkfTjRKAsKdVlHq43jvnjxnNuLAC02 qy0Ep3bb4wHVUfahVwruoJsnOsc+lWH+jih60r/XNIAJgXN/JxGhBOGgy4vC46oSc1IVRyoeWog0V xFqR4fePjO8JhSwTDIyqKp3oqWEp3Vj3YhTslmOYcxhqukrUfQoJpKUHNOfEhuIC+5pR1VoOFGNAD yfg7lQZrYJpjIS8lfSauoXTwW7mpLuUGJ33tDkxY/cxxll3GVlXo1hNhr/KRfJnasPMeLvOdtrbzz R5T0Dpdb4C4b4SCjrSRQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pyR0Y-000ynm-25; Mon, 15 May 2023 05:44:30 +0000 Received: from mail-sgaapc01on20728.outbound.protection.outlook.com ([2a01:111:f400:feab::728] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pyR0V-000ymf-0N for linux-riscv@lists.infradead.org; Mon, 15 May 2023 05:44:29 +0000 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 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: TukjampMehJVO8Mj39BeT3+0El/SS4pkth5S2svqkg6fUIESVbEAu/iPmvsw0LYK3/lTtt0UzkepOnGkoRVP/gGjra3YLMBbVrv1R9eqvcn8YyQOI9MNr4h06FUJnjxKEafFxBcArw28z8KdfTj878JdvxlIjb+RhvTqfaAT3ByLj5fKi6Zccr/BliHm5HDEVZxCETMBis6ZmMNtIZ2YaLeNMXiRHgz3GS4MHnDwW/uYRVCC22xpL0cVIQa0AyEsDMp5pHoutYxeZ1Gc3ZbAUnY7CIM+4jrS0wLLOX+eaQeuGZ2CWVhPFlCpuOPI4xLn/tJW0lYw7YupwsbRuwmkNB5TgTjtE8kNN5UFnwh2Y6P7kPS83PmMQ/wuY/YZojjXBwqUQB6z0L+MDB9gtvzv3607YR/rNGWUb+Znd59i3KL0W/2+p5MVQUV/fU12h5w7beYz3rSCE0kPfdmlri/vJVfuOWFhvGkChj45mJFA93ot5cL3klzoONTqHszeMnK7x9kAb8VEkOxKNFDzhg5oS6j+zeU/LScQhlcxgx5BkRyBMgifntLddzbFNf76JFWfgtRJhk82IRrtOhhtx3OU64/W6p6/fp7m91Yi/R7egzlxRimRxoiY53sE9HURG7ntdpNzhlCizbaHTAquRVLn90g7BO05PdexqWDiRvqkKltdpFz3XSeHn7RPAcsNMBRghpkPzSSgbwOMUuoVzYYrWLTp5nFzmhlG4kDZWTXeVEVOoJzPxkDbrluxezib5NsQDGokXTty9D1+vLYDt4bECs2Hy4Ltrw4TxxmmjCV3yhHarsItelovRrYLQzJXFXG/YWDfQFMlqpdH9rhFu/OlGXiTSiYJNRug8IFcD9iaxf6DRJAq+raf1soYlm9FOygfgm5sHg/93wtyGN5mIp0lP/f00sCZVTBkjD8oqkMOC1QwGMo7atw+oLVzTOgp5OKfZkMWpyMa0Rn+eMM4pznu7BgM2dADCp0zZiDHSvvWjFDKYX328SzFinum17LsvpS5RApffMalejk00rOVXrAnRsLr1m9h+UQWgk3xwwaAHBkt2lqqN2ebcZK9GJo54EsEfkYBSH4APh1oZln/l6uGmd1oyvV0DOOlwFlzb0XBhERoXIBgaP42AwfzQgpNmgdOtCuaE6XyOcGA5Z6BwzyM8uruO+Usq+HMvPCqQDIGxoTloi7iCU2d9cAR39i9VvC8V/aCPBeeIdtvl1IdFd5nTMcSgB/sP7PdmYE8jJTlcwjCwxCD0ZWobG6tPOwblgEzd+qxgEv43M4SehlxlVeMF5WvHrXrzQskDRRQxbGpOGbeg6wQxK4a0aMwg44BAxHm/XRqylIFya9yLq5hWTtBHCpGnjligfWs0pD7Xt2US1JEhPB1VZSofk4NwpQiut572YvTlDKDaYGDRw9K5J5IX8GeJs/LaY4RKXpd69ZiUjbRTjk/Ty+Fj9pbqSndPAy871VIcchgFfJ3dk0nX/ELH2dmYV8FsK4aPFBtX4DecZZIxP0MwgvyLbOwU9PHhy0X+UO0Q/zAjx9X5WsvkxTcLTU8bHMrX/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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230514_224427_828284_EB3639D5 X-CRM114-Status: UNSURE ( 8.55 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.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