From patchwork Mon May 15 05:43:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 682167 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E7ECCC7EE26 for ; Mon, 15 May 2023 05:44:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232128AbjEOFo0 (ORCPT ); Mon, 15 May 2023 01:44:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234890AbjEOFoZ (ORCPT ); Mon, 15 May 2023 01:44:25 -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 271FE171F; Sun, 14 May 2023 22:44:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hyVJgnLzvUyr793xUbRITiwvnEELdJId5+gb65uLu9GRCQD7Z7iIvu08hJ69Dfr2coKvF9eS/IHhrkcQ6ert+2AzCed8GnNA8Rb6MKVLNODObvXIR9tridTWl+hZauLgm+6z0kJ+gNFxV/a7iuffwntlciF6VYRW/qLL9B0cHTe/fQwN6PLHltm6Bs8fVPVd+sqUvK6ZX4M/uA93FcPeQqH9ChYy1xKFZa3KH8fTGKHr252xN+JpjxYS2L07jv+pEBEJ+qOVOg7omYx/HABkv/Ssf3TMraepzSk03HUkczJvLrYoCVzoINg5v0IfJBNKcTW+ZJxVnMfvqiE8CXuXVg== 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=TDN4qYm81KtBcqnwJqYc7u0KrY7qHkg/+C7PG+gJ/Jo=; b=gu2OS4zrwGkGvfGCJFG7XlBQ+ydPYAc4s5XOfLD8S1hZrw7Cyk6vwCenpTsHLCfPqOPB8LQ5b6CfHrLcqs+EYneOPrYg52TWUe3lVoaZ98TBmMDcW4pd9ef1Zj8s84Nk3k4zgBoJJD/qDMt/AKqYbEFSRXRCW+RfqsAGEmOfGqhaTmhzK9EIF3Siv68hzDs2H7BS77rKKlT7HoAP3pKMsa/VgrnWKteOmkYR8JvG3RWqp6UP/+MDB83FBIdafoS+nKOaySOGXM1ZJf2gwB1bOD556fxNXEohfoVGY2YRfw6hluIXBL9ryDgjByamEGpQ+K265LliAUNPGpnYspF3xg== 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=TDN4qYm81KtBcqnwJqYc7u0KrY7qHkg/+C7PG+gJ/Jo=; b=bM0al73dMSl/JnwOoapo95wQZgbZg+x9SBeWnHaBh3jWoE5QLpkzHcDgJp45TPTY1M41eWCCuEV8sxt2uiSa454zhpWknF5ac2SgqWutzcBsFouiNsH6Go5eiNNVzF9xhSdE2OFHUn0Ib26wt0H9UOtyYqwNE4h23JPYfk+bSATfjQCIN53qJZNn+na61ncXOWW2LuwjwJ+kYnrLlNKctVlrKCJ70UoeAfp+6inMFVl4bDjkd6ORLnRHF4FzrYyrIC859BUayM58byTCgRjyrHUzd4NTlSXdhrmu58SEgPbIru3G8qYzpZUw8TXmWBBWLi3MAnjwm6od5RynoBCn7w== 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:19 +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:19 +0000 From: Yangtao Li To: mturquette@baylibre.com, sboyd@kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jisheng Zhang , Wei Fu , Yangtao Li Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Icenowy Zheng Subject: [PATCH 1/3] dt-bindings: clock: Add thead th1520 clock Date: Mon, 15 May 2023 13:43:59 +0800 Message-Id: <20230515054402.27633-2-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230515054402.27633-1-frank.li@vivo.com> References: <20230515054402.27633-1-frank.li@vivo.com> 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: 3b06802f-0479-42f5-3100-08db55076db2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vtGQR6Z4EbexVg6uMm9prgh9+Mb7fc3FPbHJnxuHq5/4L02/gxWIs+t4bzELE99rco0rGHLFdodOtmlWZEcPBRUswwtb9il/rJ9b4mgraZA0be8z35bQVP8IDSvFUrUcnV0v7d6Kpa1E6asRCUTGZirCbVamQ2Akwz1NXmC1twA4DoGyV+oSIuYxOHitklhm23G7Yunjx7A3h+ObePL2BQh4R80HckUch67/sdH6tezntDJuhAGiqvteEuMfO5x6ngowdFB4xdPAa4GNeVhCIvNYInoyC1xVDfV04glWZT35cCae2oxfCdtlpNpt/jaR0rrsknRk3hAqvXqL6lODJvPyU2aArI+/O3MixI+JQ7Kl8d/UGGjwSzkqNNyfQkzzeggP+JzQ1/R1jzUSmq3gBV3R6YudsGzsT+9+7KlxoVpFF8neeCgdZGgF8DmqaKYp69GJo0RYmR5a6AtYu6MmFTTdcXcKC1Qbr+M/N/zVZX5VWEp8tGpIhgxLuYjAIfwPOnKIpnoRvGLta0LtGKqJ4NmGEf541Lo4nf2n7hv4rFWb+mCWIXb44CLtbPGNZEDvGGKEaH6IinzbnCQNBwSJrUmeIn3T1PrP8uJl5cVvBsw= 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)(7049001)(966005)(52116002)(66556008)(66946007)(66476007)(4326008)(478600001)(6486002)(86362001)(316002)(110136005)(36756003)(83380400001)(6512007)(26005)(1076003)(186003)(2616005)(6506007)(41300700001)(8936002)(8676002)(5660300002)(7416002)(6666004)(2906002)(38100700002)(38350700002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: TRIQFF3O4saVFVSRVvIFGPomrhYab0hBsmRdct4mHzY1lSZbyzOrX2ocUj8LuWq9FdBsCwEM2jyrjQ3ibBMbUGSVWh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21Q0FrHN88B95fJw+9RtuqMZfFRMfIf8lmo1n/PshgZhOZGdLgBax9NHANB018hzo+d0cx3UiAPDtzIIBXQktOAhAsjY5jxPFAKRuXkP9IZNM6NOiyLWbEOAFXOBqDcdVnSKb3+p7vv0IAkchmY+ZHEOkDk+YxrvtmwOohdTNfYfybxdU11YL5xH3BRrj2zRTdbhuK8EDIYpTBacNcx0OYfA9zy2cPoK/Wr776hFfwzF5US0d2iVxFWItYnol9UpI95qNJcUPGvKYWW1ATja2E32Aq1MQmGlODIpP9QbgM/P0Njy7TSUV35gGqCGOX50wiGiQ5MS9wA5gkOQTDU/Bhw6b0RaNos3VeClfcEKHZL/KEwW7cX8nM8Wts02SYd6TcYW1XB9jo5Nru7FYWTNNTaFQpsvJhXMoyQbggpREjSD X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3b06802f-0479-42f5-3100-08db55076db2 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:19.8141 (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: uCdIHRT1MLDXsZdSB0XNX81ef7Gymrl6Ra0G6G8qyGq2kUZ4jbMTVC7bzI+uQZKwzEA7J5yDNX9pP9//Mh9sEw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB6571 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add devicetree binding document and related header file for the T-HEAD TH1520 clock. Cc: Icenowy Zheng Cc: Wei Fu Cc: Jisheng Zhang Signed-off-by: Yangtao Li --- .../bindings/clock/thead,th1520-ccu.yaml | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/thead,th1520-ccu.yaml diff --git a/Documentation/devicetree/bindings/clock/thead,th1520-ccu.yaml b/Documentation/devicetree/bindings/clock/thead,th1520-ccu.yaml new file mode 100644 index 000000000000..c3e2d8c7efa6 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/thead,th1520-ccu.yaml @@ -0,0 +1,60 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/thead,th1520-ccu.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: T-HEAD Clock Control Unit + +maintainers: + - Jisheng Zhang + - Wei Fu + - Yangtao Li + + +properties: + "#clock-cells": + const: 1 + + "#reset-cells": + const: 1 + + compatible: + enum: + - thead,th1520-ccu + + reg: + maxItems: 1 + + clocks: + const: 2 + items: + - description: High Frequency Oscillator (usually at 24MHz) + - description: Low Frequency Oscillator (usually at 32kHz) + + clock-names: + const: 2 + items: + - const: hosc + - const: losc + +required: + - "#clock-cells" + - compatible + - reg + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + clk: clock-controller@ffef010000 { + compatible = "thead,th1520-ccu"; + reg = <0xff 0xef010000 0x0 0x1000>; + clocks = <&osc32k>, <&osc24m>; + clock-names = "losc", "hosc"; + #clock-cells = <1>; + }; + +...