From patchwork Mon Apr 11 10:04:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shubhrajyoti Datta X-Patchwork-Id: 559754 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 B1E33C433FE for ; Mon, 11 Apr 2022 10:05:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345034AbiDKKHU (ORCPT ); Mon, 11 Apr 2022 06:07:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345061AbiDKKHL (ORCPT ); Mon, 11 Apr 2022 06:07:11 -0400 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2077.outbound.protection.outlook.com [40.107.236.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B65A4DFAC; Mon, 11 Apr 2022 03:04:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B0gTXIxvbrfoFqKkmokdyC6ObD3uTmAZGbLWR7TEcSJVbz73TXAiXK6Z2R84D9BQst3TCy40PULR3+Sh5kpPrMTquVhvwNHXrdMSRwt3mjucB6B1X76/G7FwCrNcNAVTVdzDfEOecfWVC16q/6PXw9usiKwKq65y3K/gZcHmxdyHcQISrcHg7HQMOJajzAf6LJfrDpzofFw/XiXn3Xy46Rk3TbILkXsQyEGajfoFVLhU9ykbndZptN3y4awXdYKp73DQYdpauuluIjOqyYVA+lNrBPabWT1OUwiAoSgwwPUKW0f5zsLQm2ns+AigZkLcGLMj/AfXXy+i0zO/xUeklA== 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=ZLTs/yH/omQ/+m5FhT4GbTHTIl8DetDvfEBtfBbxQw4=; b=aEm5XnxGiKm/pmOdZWEBozuTgM9cli2bLpypT98gmgf1Qr9R4ZEUSE3umihtjLXmGPG1+NqOltouHhuIN1OGyaVK+IhmMgRVciLjcmk9cLzbHj1TgJe+M9BbklyK824Kdk8VLL55R8GpbnY3ehKv3gF00RvYvQo9m+YwW/TXtbKfyZqejLaMPjYvW5UiWMgKJRkE6LCxhZGmR6PHMrmbfK0wXOJ1ikSma6aiUmuWG5FUKQOFBsMtTvqmT7RFgVajP18PRrHeQ3FmdRYwjm2Sn9+YDvMs2C+n6xyr6Z2ZexBICy65ZZHxxEFfwf2dq7Q4HVNFQFnL9Rl1Kqna1x9vsA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZLTs/yH/omQ/+m5FhT4GbTHTIl8DetDvfEBtfBbxQw4=; b=WEuO8TGzGDi2zMTcSMlvI3XMzGxvf9iyApdxqYlQlDv6ODqTBqMueYpSue8dWh0OpPrB/lhIdAvMSMeXFCR0H5zcHciju1++KelM97/HvYPg0BDeYzlPZ6d1RyUgi9PE1kgrZdGjB6tKRW8C5DTTgQgVOLEdkRZcjj/P78566tI= Received: from BN6PR13CA0022.namprd13.prod.outlook.com (2603:10b6:404:10a::32) by BY5PR02MB6212.namprd02.prod.outlook.com (2603:10b6:a03:1f6::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.29; Mon, 11 Apr 2022 10:04:51 +0000 Received: from BN1NAM02FT032.eop-nam02.prod.protection.outlook.com (2603:10b6:404:10a:cafe::20) by BN6PR13CA0022.outlook.office365.com (2603:10b6:404:10a::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.17 via Frontend Transport; Mon, 11 Apr 2022 10:04:51 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch02.xlnx.xilinx.com; Received: from xsj-pvapexch02.xlnx.xilinx.com (149.199.62.198) by BN1NAM02FT032.mail.protection.outlook.com (10.13.3.192) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5144.21 via Frontend Transport; Mon, 11 Apr 2022 10:04:50 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Mon, 11 Apr 2022 03:04:50 -0700 Received: from smtp.xilinx.com (172.19.127.96) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Mon, 11 Apr 2022 03:04:50 -0700 Envelope-to: linux-clk@vger.kernel.org, robh+dt@kernel.org, gregkh@linuxfoundation.org, sboyd@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Received: from [10.140.6.59] (port=36530 helo=xhdshubhraj40.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1ndquf-0003Jf-LI; Mon, 11 Apr 2022 03:04:50 -0700 From: Shubhrajyoti Datta To: CC: , , , , , Shubhrajyoti Datta Subject: [PATCH v14 1/5] dt-bindings: add documentation of xilinx clocking wizard Date: Mon, 11 Apr 2022 15:34:39 +0530 Message-ID: <20220411100443.15132-2-shubhrajyoti.datta@xilinx.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220411100443.15132-1-shubhrajyoti.datta@xilinx.com> References: <20220411100443.15132-1-shubhrajyoti.datta@xilinx.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 750e4e5d-53d9-4a58-96f3-08da1ba2b7e1 X-MS-TrafficTypeDiagnostic: BY5PR02MB6212:EE_ X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: O7MwLo2yjY1Ljv4Sn/Fzz6ufgJd/a2sQgfpSC3HHwDluj/PSUmV0wTQ0UCaPiMlCmIHPCqK3sKZ2Zvr3IKbM/URMSfO3zipHet3bX/QVtO9MwRstJHBfwa2bYFZbUJvFfNDAaoCN3jUrk4Ex6NhL849Reu5aEF1zsAzASon1UAQHMywZoeHCvqtoR1VeAZiBiyNiLgyV6Bh+uSUWq5aot+wxyxoHoLTvbuYGFSUKOVJF0+ScEv6Rq1MyG/FggxmbttU78kKJ5kYWx/opBvVwY9g8MzHN1fDR6eD3OPk19pdhUaDLWUuEugGTAw2RQG7Q8PkBq8YhpDaxieN/7ecXrE61HORczXc+ZcOgi6V7swAeH5FYV88KHwHsNKs7plV1rV7S2XpFsA/FZr1EqsS1mGjTIxIzJ9fpRZ0BjjTzGDKb+WO98OYc7Is7lmrtQe/yYMsobTwuPkSqCgk13Js7O69hzVi/xq6vdaiV03v5DD/b1307CMkyniIXP5YtRvPWksJff6KZDc8IqOhI/CA1ZpmjFY52jPJL70NhVE0S0C75O/fyLcLTN7mRa5xxsZD87WMQ9KE+75CIn6RKIX3ZWAt8BF5I+u7ipTAOZmjTesMdxeYi9gIr/GMp2vHkcPVa5/OI+BkDd+74E61lROB2Vmr2VfDALoC4pGrUeNYnCBMkxl7IExHEbPPsy54oyUjNcVEFvJztEdaqt9pAOlHYzh55NbN+HkdBF9h0kXBI0IOeYXUeI45PP1Kh5AVFGYsJnGBTRcj4iF+KGb8Z1Qvyqm4mt5HW37Rpz1pO1sx9LTC2MAbc+LbuBToPugoWBTALx9R4wphZ8sncvFnDxpquTA== X-Forefront-Antispam-Report: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch02.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(13230001)(4636009)(46966006)(40470700004)(36840700001)(36860700001)(426003)(336012)(40460700003)(47076005)(26005)(1076003)(508600001)(54906003)(6916009)(36756003)(82310400005)(316002)(2616005)(107886003)(7696005)(70206006)(83380400001)(70586007)(6666004)(2906002)(186003)(44832011)(5660300002)(9786002)(8936002)(356005)(4326008)(8676002)(7636003)(102446001); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2022 10:04:50.8763 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 750e4e5d-53d9-4a58-96f3-08da1ba2b7e1 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.62.198]; Helo=[xsj-pvapexch02.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: BN1NAM02FT032.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR02MB6212 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add the devicetree binding for the xilinx clocking wizard. Signed-off-by: Shubhrajyoti Datta --- .../bindings/clock/xlnx,clocking-wizard.yaml | 77 +++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/xlnx,clocking-wizard.yaml diff --git a/Documentation/devicetree/bindings/clock/xlnx,clocking-wizard.yaml b/Documentation/devicetree/bindings/clock/xlnx,clocking-wizard.yaml new file mode 100644 index 000000000000..634b7b964606 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/xlnx,clocking-wizard.yaml @@ -0,0 +1,77 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/clock/xlnx,clocking-wizard.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Xilinx clocking wizard + +maintainers: + - Shubhrajyoti Datta + +description: + The clocking wizard is a soft ip clocking block of Xilinx versal. It + reads required input clock frequencies from the devicetree and acts as clock + clock output. + +properties: + compatible: + enum: + - xlnx,clocking-wizard + - xlnx,clocking-wizard-v5.2 + - xlnx,clocking-wizard-v6.0 + + + reg: + maxItems: 1 + + "#clock-cells": + const: 1 + + clocks: + items: + - description: clock input + - description: axi clock + + clock-names: + items: + - const: clk_in1 + - const: s_axi_aclk + + + xlnx,speed-grade: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [1, 2, 3] + description: + Speed grade of the device. Higher the speed grade faster is the FPGA device. + + xlnx,nr-outputs: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 1 + maximum: 8 + description: + Number of outputs. + +required: + - compatible + - reg + - "#clock-cells" + - clocks + - clock-names + - xlnx,speed-grade + - xlnx,nr-outputs + +additionalProperties: false + +examples: + - | + clock-controller@b0000000 { + compatible = "xlnx,clocking-wizard"; + reg = <0xb0000000 0x10000>; + #clock-cells = <1>; + xlnx,speed-grade = <1>; + xlnx,nr-outputs = <6>; + clock-names = "clk_in1", "s_axi_aclk"; + clocks = <&clkc 15>, <&clkc 15>; + }; +... From patchwork Mon Apr 11 10:04:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Shubhrajyoti Datta X-Patchwork-Id: 559752 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 5DB57C4321E for ; Mon, 11 Apr 2022 10:05:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345070AbiDKKHr (ORCPT ); Mon, 11 Apr 2022 06:07:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345063AbiDKKHS (ORCPT ); Mon, 11 Apr 2022 06:07:18 -0400 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2072.outbound.protection.outlook.com [40.107.236.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B0A5E0A6; Mon, 11 Apr 2022 03:04:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iRlfIjub7RrXGehRzuO4/5xz/z5nlytAmOMpkde2iyOD5F/QEoHR66vtcbwxPlyl2v5s3w0O+BRz10LsS/oojl5RoZU5v2y1QBat9TsdXiSFxAVdaNF46wkT7Z1HMEiHVsGrKAXSXbVZ/sBaJ9NtVGPITqhzVetgMXiVHtdYgwoJuP28sLcGJ7e7l3Xhis0wteFpcyzmsQnM48C53HMM9z7/VY+f2Us2ebVedDzVFrAyQ2g15oG7crQaYjjFXU8FwCQ8DuWRW8qZplzgJd0rSBaSIU32rorytnTLfk1srgWsVkpCaqLsrUjfFYgPi/1Z7fVbfNkfIu1Q+eZIE8tzzg== 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=nsuVcn0zsaXZC7/lxaWqAMet+tY+BkEhFwbb6/bomuY=; b=nHtFRD7VH/nq2PpNVDfpaYAZJ79fjXfpcKtlSj6m1+nDJdfCEI3JqTBkkThk6mLyEtY6Ya21s2QIzSVb6WvRYRHpIcUQRb/657OMcubd7QbgjEG+zKI8kc7scikG6rXqCWm/6XACuouQUkftfKPji4hSY1ed/FaJsbfvA5qaw4FtIux1/s5Pd/UZ5LNQLWzhT1jvOY/oUS4/OhWMpt3m/PLiU3JrJ04gmJ+f2RLPJ8LUGvDqH+WNuO5xqLK/0FqvENWhHlA+dt1bNN3CC8qi0n33vfzcXw9MxhpR1PUggz3fgI+W7E89Usm+MvoJh+YdwWykR5aPwOXRCuKOXiZvQg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nsuVcn0zsaXZC7/lxaWqAMet+tY+BkEhFwbb6/bomuY=; b=b3ILBNPaBLfErAYRJbbRl1N8vVMERetAs0+5/J9vLMyrfVWLIBEPszPXPRwHCIUF17wXKHxUF73qhU2qj5li9hUAi5+8vnVdAwgyIUagT/5c5txmY1LVwL0C1WTTe3JpgEE5f/DLbo5uRwAzq9wZR8yJTT01amgWzV1U9fvs8Lo= Received: from BN6PR1401CA0002.namprd14.prod.outlook.com (2603:10b6:405:4b::12) by BL0PR02MB4417.namprd02.prod.outlook.com (2603:10b6:208:45::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.29; Mon, 11 Apr 2022 10:04:53 +0000 Received: from BN1NAM02FT009.eop-nam02.prod.protection.outlook.com (2603:10b6:405:4b:cafe::b5) by BN6PR1401CA0002.outlook.office365.com (2603:10b6:405:4b::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.29 via Frontend Transport; Mon, 11 Apr 2022 10:04:53 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch02.xlnx.xilinx.com; Received: from xsj-pvapexch02.xlnx.xilinx.com (149.199.62.198) by BN1NAM02FT009.mail.protection.outlook.com (10.13.2.127) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5144.21 via Frontend Transport; Mon, 11 Apr 2022 10:04:53 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Mon, 11 Apr 2022 03:04:52 -0700 Received: from smtp.xilinx.com (172.19.127.96) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Mon, 11 Apr 2022 03:04:52 -0700 Envelope-to: linux-clk@vger.kernel.org, robh+dt@kernel.org, gregkh@linuxfoundation.org, sboyd@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Received: from [10.140.6.59] (port=36530 helo=xhdshubhraj40.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1ndqui-0003Jf-9l; Mon, 11 Apr 2022 03:04:52 -0700 From: Shubhrajyoti Datta To: CC: , , , , , Shubhrajyoti Datta Subject: [PATCH v14 2/5] clk: clocking-wizard: Move clocking-wizard out Date: Mon, 11 Apr 2022 15:34:40 +0530 Message-ID: <20220411100443.15132-3-shubhrajyoti.datta@xilinx.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220411100443.15132-1-shubhrajyoti.datta@xilinx.com> References: <20220411100443.15132-1-shubhrajyoti.datta@xilinx.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e20d81f2-5beb-4802-c1d6-08da1ba2b969 X-MS-TrafficTypeDiagnostic: BL0PR02MB4417:EE_ X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +pMPXILG/SY/XgKftcDqhyM26hdC3ZL+PTkKJ5AfeO+3mcNu1G/OMOCsANzORUVr7MEhnk2JeXO1qXmMd/0S2nV7WXWBXH74i6b8KWcF0pHdBAcEwQXQHK5pEKoFs9hGybRwsugFTo0B2xrn0VZKeuvmQmZCPisb/XiLDPFhkSqN8c3q5lz1fCl9v3Zgi6GX18xR+q4vmVBjfFUKgmHRvZaeDjmRrRptsh2Q750FIMUgmGN8T6tgVEcSrc9C3hw7fZAHQce9Kbt2Y1ZD0N6jrAGqx0t8rTsneMcJgRdaPupXRI1a9oBLVDcjbKI7O122mVAFfQLPnFNEasZz3XpEqeFnWoKQZJFg8WujSrHHAcsK+CUAlofPt1a6FI6g6v7xvDp4x0VQ++3kYuIZem1ShvHbcqZhyf9YNDF5/qg9YgBn5Iq24sTfAZ80c2byvj7/7OVDTbNVLiviuMCMNfWfxXNY3pZkTsldyoVnPXUkpghX72U4x+EQB5BC8ZefmcrvALsVkPgCzRKZK+h5xFfoaVQt32TUQTg7GTZzPzYGRDQOh/XMqK7ZR/v42TCW/2+KDmhZ9P3mYbkZfSXjtiPifsb49ZuuPnnT5lCusCcRKqig2PgYz/z5LCSS1lW23SBhbvo4O/gye3JOxv49nk1Gs1ySxnTljkzzkyyCbgr2TfsDHhRnZdAchzacCutPFBVMGY5/+VGKEeZWF8D0O72BWY9+qUfbozrmUtm/O3/AeHXqyNfq/6fw36DiUEY273jZS0pyXEj6isKMi86pePJQmhtx9tPWBwvKakligdO517sd//WgdI1TZx/xCGIeDSa1G+5mf97y4X9jbR6nmiK2RA== X-Forefront-Antispam-Report: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch02.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(13230001)(4636009)(46966006)(40470700004)(36840700001)(2906002)(356005)(9786002)(6666004)(8936002)(7636003)(5660300002)(44832011)(316002)(26005)(186003)(1076003)(966005)(54906003)(8676002)(508600001)(2616005)(6916009)(107886003)(7696005)(4326008)(70206006)(70586007)(36860700001)(426003)(66574015)(336012)(47076005)(82310400005)(83380400001)(40460700003)(36756003)(102446001); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2022 10:04:53.4464 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e20d81f2-5beb-4802-c1d6-08da1ba2b969 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.62.198]; Helo=[xsj-pvapexch02.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: BN1NAM02FT009.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR02MB4417 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add clocking wizard driver to clk. And delete the driver from the staging as it is in drivers/clk. Signed-off-by: Shubhrajyoti Datta --- drivers/clk/xilinx/Kconfig | 11 +++++++ drivers/clk/xilinx/Makefile | 1 + .../xilinx}/clk-xlnx-clock-wizard.c | 3 +- drivers/staging/Kconfig | 2 -- drivers/staging/Makefile | 1 - drivers/staging/clocking-wizard/Kconfig | 10 ------- drivers/staging/clocking-wizard/Makefile | 2 -- drivers/staging/clocking-wizard/TODO | 13 -------- .../staging/clocking-wizard/dt-binding.txt | 30 ------------------- 9 files changed, 14 insertions(+), 59 deletions(-) rename drivers/{staging/clocking-wizard => clk/xilinx}/clk-xlnx-clock-wizard.c (99%) delete mode 100644 drivers/staging/clocking-wizard/Kconfig delete mode 100644 drivers/staging/clocking-wizard/Makefile delete mode 100644 drivers/staging/clocking-wizard/TODO delete mode 100644 drivers/staging/clocking-wizard/dt-binding.txt diff --git a/drivers/clk/xilinx/Kconfig b/drivers/clk/xilinx/Kconfig index 5224114176ed..5b99ecfd2f06 100644 --- a/drivers/clk/xilinx/Kconfig +++ b/drivers/clk/xilinx/Kconfig @@ -17,3 +17,14 @@ config XILINX_VCU To compile this driver as a module, choose M here: the module will be called xlnx_vcu. +config COMMON_CLK_XLNX_CLKWZRD + tristate "Xilinx Clocking Wizard" + depends on COMMON_CLK && OF + help + Support for the Xilinx Clocking Wizard IP core clock generator. + Adds support for clocking wizard and compatible. + This driver supports the Xilinx clocking wizard programmable clock + synthesizer. The number of output is configurable in the design. + + If unsure, say N. + diff --git a/drivers/clk/xilinx/Makefile b/drivers/clk/xilinx/Makefile index dee8fd51e303..7ac1789c6b1b 100644 --- a/drivers/clk/xilinx/Makefile +++ b/drivers/clk/xilinx/Makefile @@ -1,2 +1,3 @@ # SPDX-License-Identifier: GPL-2.0 obj-$(CONFIG_XILINX_VCU) += xlnx_vcu.o +obj-$(CONFIG_COMMON_CLK_XLNX_CLKWZRD) += clk-xlnx-clock-wizard.o diff --git a/drivers/staging/clocking-wizard/clk-xlnx-clock-wizard.c b/drivers/clk/xilinx/clk-xlnx-clock-wizard.c similarity index 99% rename from drivers/staging/clocking-wizard/clk-xlnx-clock-wizard.c rename to drivers/clk/xilinx/clk-xlnx-clock-wizard.c index 39367712ef54..ec377f0d569b 100644 --- a/drivers/staging/clocking-wizard/clk-xlnx-clock-wizard.c +++ b/drivers/clk/xilinx/clk-xlnx-clock-wizard.c @@ -2,9 +2,10 @@ /* * Xilinx 'Clocking Wizard' driver * - * Copyright (C) 2013 - 2014 Xilinx + * Copyright (C) 2013 - 2021 Xilinx * * Sören Brinkmann + * */ #include diff --git a/drivers/staging/Kconfig b/drivers/staging/Kconfig index 932acb4e8cbc..15b4103275c6 100644 --- a/drivers/staging/Kconfig +++ b/drivers/staging/Kconfig @@ -66,8 +66,6 @@ source "drivers/staging/fwserial/Kconfig" source "drivers/staging/unisys/Kconfig" -source "drivers/staging/clocking-wizard/Kconfig" - source "drivers/staging/fbtft/Kconfig" source "drivers/staging/most/Kconfig" diff --git a/drivers/staging/Makefile b/drivers/staging/Makefile index 3ffb35ccfae2..584399d790db 100644 --- a/drivers/staging/Makefile +++ b/drivers/staging/Makefile @@ -23,7 +23,6 @@ obj-$(CONFIG_STAGING_BOARD) += board/ obj-$(CONFIG_LTE_GDM724X) += gdm724x/ obj-$(CONFIG_FIREWIRE_SERIAL) += fwserial/ obj-$(CONFIG_UNISYSSPAR) += unisys/ -obj-$(CONFIG_COMMON_CLK_XLNX_CLKWZRD) += clocking-wizard/ obj-$(CONFIG_FB_TFT) += fbtft/ obj-$(CONFIG_MOST) += most/ obj-$(CONFIG_KS7010) += ks7010/ diff --git a/drivers/staging/clocking-wizard/Kconfig b/drivers/staging/clocking-wizard/Kconfig deleted file mode 100644 index 2324b5d73788..000000000000 --- a/drivers/staging/clocking-wizard/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 -# -# Xilinx Clocking Wizard Driver -# - -config COMMON_CLK_XLNX_CLKWZRD - tristate "Xilinx Clocking Wizard" - depends on COMMON_CLK && OF && HAS_IOMEM - help - Support for the Xilinx Clocking Wizard IP core clock generator. diff --git a/drivers/staging/clocking-wizard/Makefile b/drivers/staging/clocking-wizard/Makefile deleted file mode 100644 index b1f915224d96..000000000000 --- a/drivers/staging/clocking-wizard/Makefile +++ /dev/null @@ -1,2 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 -obj-$(CONFIG_COMMON_CLK_XLNX_CLKWZRD) += clk-xlnx-clock-wizard.o diff --git a/drivers/staging/clocking-wizard/TODO b/drivers/staging/clocking-wizard/TODO deleted file mode 100644 index c7e1dc58dfba..000000000000 --- a/drivers/staging/clocking-wizard/TODO +++ /dev/null @@ -1,13 +0,0 @@ -TODO: - - support for fractional multiplier - - support for fractional divider (output 0 only) - - support for set_rate() operations (may benefit from Stephen Boyd's - refactoring of the clk primitives: - https://lore.kernel.org/lkml/1409957256-23729-1-git-send-email-sboyd@codeaurora.org) - - review arithmetic - - overflow after multiplication? - - maximize accuracy before divisions - -Patches to: - Greg Kroah-Hartman - Sören Brinkmann diff --git a/drivers/staging/clocking-wizard/dt-binding.txt b/drivers/staging/clocking-wizard/dt-binding.txt deleted file mode 100644 index efb67ff9f76c..000000000000 --- a/drivers/staging/clocking-wizard/dt-binding.txt +++ /dev/null @@ -1,30 +0,0 @@ -Binding for Xilinx Clocking Wizard IP Core - -This binding uses the common clock binding[1]. Details about the devices can be -found in the product guide[2]. - -[1] Documentation/devicetree/bindings/clock/clock-bindings.txt -[2] Clocking Wizard Product Guide -https://www.xilinx.com/support/documentation/ip_documentation/clk_wiz/v5_1/pg065-clk-wiz.pdf - -Required properties: - - compatible: Must be 'xlnx,clocking-wizard' - - reg: Base and size of the cores register space - - clocks: Handle to input clock - - clock-names: Tuple containing 'clk_in1' and 's_axi_aclk' - - clock-output-names: Names for the output clocks - -Optional properties: - - speed-grade: Speed grade of the device (valid values are 1..3) - -Example: - clock-generator@40040000 { - reg = <0x40040000 0x1000>; - compatible = "xlnx,clocking-wizard"; - speed-grade = <1>; - clock-names = "clk_in1", "s_axi_aclk"; - clocks = <&clkc 15>, <&clkc 15>; - clock-output-names = "clk_out0", "clk_out1", "clk_out2", - "clk_out3", "clk_out4", "clk_out5", - "clk_out6", "clk_out7"; - }; From patchwork Mon Apr 11 10:04:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shubhrajyoti Datta X-Patchwork-Id: 559753 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 D12AAC433EF for ; Mon, 11 Apr 2022 10:05:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345166AbiDKKHm (ORCPT ); Mon, 11 Apr 2022 06:07:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345059AbiDKKHT (ORCPT ); Mon, 11 Apr 2022 06:07:19 -0400 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2060d.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e88::60d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08BAA11162; Mon, 11 Apr 2022 03:05:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jPAJrQBvuOO62zFTRYs69EOyT5yPNn/P1FIYZUMO6DT4BvpduKKjOouXYQ2Xn++px4JxcyVQO9gC8cex0RqjrsQpiib8sihHZnLl4mVjA5jDs352e2jRkU0jwI+E4NXxMbHFWoGK4jwOHmtmLFxFHi56bmlpUO3oRl1C3ycc5UqG7VD8/tjukZ+JaqsdteU9/bPp8cKZaPiJVnqEGEhI+S8Tzqo86wdhss+AUezU61eUvJEYsMvYuNu5axJxkJ1T1TjFEAEMtdLRubAaAol35QdoWE9BAeeR7PP9qz1q2Zu27i9LIFWPD2lxQqkUnzNhQgv2XKr7N/QOKDkUCrYYEw== 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=JSUZLPVJwEa1ckpu00lCKIxlWqQv0Jh1Y3UOXdBimNE=; b=kEBG6SY+3ACfRAhdPIjc36mhZ0zWbjzBy9ZWSSrJMgJkDynB4gdo/DlTZKMVLX74XZBBhNxHrttncJtJSMNEoetWjhGfsgpA4mWIo2t5iELpb6sq8YoBH1hIuNxYOSzOPI0mcXHPeDF5EotU7Fx9whoF70tmi/EGrpvkvFx+zeJjyRQs06HBnQhi/prusIaSlNopYk20HkGnWWjmvjHcU/j1Zpe+05wO7upxFk73e7Q6mo0xI+hirXru14+6xfbCSYBkWjCvA6fg5M13QEW27HYOu75eRa0UAM2z9z+L71cxsKhnWyekErtpzsnupHlMDC8U3uIduQRkTtB2cKQbPQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JSUZLPVJwEa1ckpu00lCKIxlWqQv0Jh1Y3UOXdBimNE=; b=Gpvnh4J6WhP9m0/ysGKVQRh7JvOMoaGEk4RgfI+UWOo2XEpCDrQcaG9GcyqB5ea3XZQyZqQSiCuhtirIWsDvQGRvRtnXA/CANzdL+/Bk8ewrghDq3Son3i3iUFC+RHL2kKFoLLthjUakFI2xPJjft2UWM7rLrY3yOn9/julCtfg= Received: from BN9PR03CA0543.namprd03.prod.outlook.com (2603:10b6:408:138::8) by BY5PR02MB6755.namprd02.prod.outlook.com (2603:10b6:a03:205::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.29; Mon, 11 Apr 2022 10:04:56 +0000 Received: from BN1NAM02FT008.eop-nam02.prod.protection.outlook.com (2603:10b6:408:138:cafe::38) by BN9PR03CA0543.outlook.office365.com (2603:10b6:408:138::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.29 via Frontend Transport; Mon, 11 Apr 2022 10:04:56 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch01.xlnx.xilinx.com; Received: from xsj-pvapexch01.xlnx.xilinx.com (149.199.62.198) by BN1NAM02FT008.mail.protection.outlook.com (10.13.2.126) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5144.21 via Frontend Transport; Mon, 11 Apr 2022 10:04:56 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Mon, 11 Apr 2022 03:04:55 -0700 Received: from smtp.xilinx.com (172.19.127.96) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Mon, 11 Apr 2022 03:04:55 -0700 Envelope-to: linux-clk@vger.kernel.org, robh+dt@kernel.org, gregkh@linuxfoundation.org, sboyd@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Received: from [10.140.6.59] (port=36530 helo=xhdshubhraj40.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1ndquk-0003Jf-Uk; Mon, 11 Apr 2022 03:04:55 -0700 From: Shubhrajyoti Datta To: CC: , , , , , Shubhrajyoti Datta Subject: [PATCH v14 3/5] clk: clocking-wizard: Rename nr-outputs to xlnx,nr-outputs Date: Mon, 11 Apr 2022 15:34:41 +0530 Message-ID: <20220411100443.15132-4-shubhrajyoti.datta@xilinx.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220411100443.15132-1-shubhrajyoti.datta@xilinx.com> References: <20220411100443.15132-1-shubhrajyoti.datta@xilinx.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: dcc176df-b8d0-40a3-6851-08da1ba2bb11 X-MS-TrafficTypeDiagnostic: BY5PR02MB6755:EE_ X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cnBeajwKUFoLEwLTonTFkhf7M4dPbk4EtESc57JeFIdshvReUyAa7gQKOFjiJV14h91oI3eXvDi/6ibsljT2bGOkIwfd05YCx9LqDnj7NvALUPhI5nqoeLcnUw+mR0knLKvdb5AqAtnnx53W40UrqWTUI+rWlOKLCZ7DO9RycOE+N0NXo8UGcIJBOEQQOAEtUnQDkpaDmFEScG/hNPKKVpjOnvJPrziWj8kvhSZQGC51zIVLuoKlAkRrc7miwSuRMYFZyqVUKQbyDla9V+mrMkdEVtZcVSsMkZb9W4m+ardz5muwM3SsWJB5NKamzzCQSdShaZfVt4RPPR7KFgK9J7K177Z9zPzfbkaXw0P1Ggwc/VGLTFtK4OLncckzOsSB7F2wQcp4xJXVxYFKxucPLDUuwzrdFdXSUO3morWXnMtV0vJFsPi/qLIxbO37XIaD0I4rRrEtf2ZeAWq7cY3lhUiuf+6XUc1Yh3lQkxGmjBiXibMJgfaxXfRrz+uyE/Uw0Ma9UmK1Kz3Ury5ZFpUgzXeKUxizM/olI8gf+zOXmuGTYXW85h3NQdNoMB2YwTHfIFe1z5YiI4MhZCPnNE6reosGASPnn0vjD3A5gbV4R/ntANkKqYCzF0BIDPd5eq3s1c166xinQp52+g2y44dqytamsS+iO4yTzS3o++byeyVsNP66tZkWMfFpv1jHf4pD/3GJiG4f/OyVAPTkt5fB6g== X-Forefront-Antispam-Report: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch01.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(13230001)(4636009)(36840700001)(40470700004)(46966006)(26005)(186003)(7696005)(6666004)(356005)(316002)(7636003)(426003)(70206006)(70586007)(107886003)(4326008)(2616005)(336012)(6916009)(36860700001)(5660300002)(9786002)(83380400001)(44832011)(8676002)(4744005)(1076003)(36756003)(2906002)(47076005)(8936002)(40460700003)(508600001)(54906003)(82310400005)(102446001); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2022 10:04:56.2072 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dcc176df-b8d0-40a3-6851-08da1ba2bb11 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.62.198]; Helo=[xsj-pvapexch01.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: BN1NAM02FT008.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR02MB6755 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Rename nr-outputs to xlnx,output. Signed-off-by: Shubhrajyoti Datta --- drivers/clk/xilinx/clk-xlnx-clock-wizard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/xilinx/clk-xlnx-clock-wizard.c b/drivers/clk/xilinx/clk-xlnx-clock-wizard.c index ec377f0d569b..1e0818eb0435 100644 --- a/drivers/clk/xilinx/clk-xlnx-clock-wizard.c +++ b/drivers/clk/xilinx/clk-xlnx-clock-wizard.c @@ -480,7 +480,7 @@ static int clk_wzrd_probe(struct platform_device *pdev) goto err_disable_clk; } - ret = of_property_read_u32(np, "nr-outputs", &nr_outputs); + ret = of_property_read_u32(np, "xlnx,nr-outputs", &nr_outputs); if (ret || nr_outputs > WZRD_NUM_OUTPUTS) { ret = -EINVAL; goto err_disable_clk;