From patchwork Tue Oct 3 06:21:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Buddhabhatti, Jay" X-Patchwork-Id: 14847 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp1887923vqb; Mon, 2 Oct 2023 23:23:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHPXzYJzhL1TM8aXQOxb1THA5F10b2uLCvAhOoLih3ypF9dpqkboBqWnwlDTR7jCzuRpwWA X-Received: by 2002:a05:6808:60c:b0:3a7:44da:d5e6 with SMTP id y12-20020a056808060c00b003a744dad5e6mr13383304oih.38.1696314182549; Mon, 02 Oct 2023 23:23:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696314182; cv=pass; d=google.com; s=arc-20160816; b=Znl2MJExddaJFpZkh8uXQwPUT4ybG62ITOdDru0NuPrY9E+12bMCngu/DRkSgTGePO G6/izZlTFfhpbQH9NyGWNovlfAndbICEV+MnWFhEan0z6qsNdUl4Az8sl45yTbE3REF6 yhggctmmz9bWW2OcSBSanRzsQPiAeI5+o1M3DtwLha9t/1K+kMXQzBjda/ADJzqyp3Dv OW8of57xiHFsytg4NEHmYWGCcdyq5kmvs5J5H8l/ZQ8APnhRazs09JJ2WRbz1X6keryS j9Ju5nej0kE15T3g9f2Z+lU0EVX3O8LO0ZUJUsVivmktis23Q7EXsnme28kfDLsVfXhV IgFA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=EaoOu3CMYkndc/sLaTpOzxKw7/xeOWftlTmvq/r/VL0=; fh=qgqdgEGfhDbjAI1ss1X59igQOOT4WTawiJjMpbG0a4g=; b=R1gyKtAx0YJYed1Ix9zTvnLwuNr2XupNED5gnVw4a4dAAv3bOHmOvbu+AxHu55gJQi 9d5a9zl8cfSGgW7TT0QJjK3LDdc5MqEYAI8GxMGkO8FadAIeBLR7uJjAJqLcZ8I5z6Zm quCdBum/Jas+EwaED0/m1e4ox4MxF1XeFmcIxurAdRR7Fy6hsLy/XTy3ZeML3u253pnz N4n6RGW5wb8gRF5wPwvDbtcV+Hv7U/w29kR56fIHV/Ngfy8ywgpRlAQvl4fep9/GmzJF l7w7tDlFL+4xEU8dElsrzohZNjSka64+RTbJo395kVWcCDVJpMwkHKXy3DdE3mm0h2LU eoHg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=SSOfAfBx; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id b10-20020a17090a6aca00b0027749a98349si9703008pjm.4.2023.10.02.23.23.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 23:23:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=SSOfAfBx; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 883878032153; Mon, 2 Oct 2023 23:23:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230336AbjJCGWm (ORCPT + 18 others); Tue, 3 Oct 2023 02:22:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230234AbjJCGWk (ORCPT ); Tue, 3 Oct 2023 02:22:40 -0400 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2070.outbound.protection.outlook.com [40.107.237.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 936E9BB; Mon, 2 Oct 2023 23:22:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V0Q2373ZZjdElfbVE+ZLkCf1tiEiiIzwke2WZJysQoLg1UFQz7RXFfMCeLMtJAwgUy6wrJBhYP0sFU4WadCOX+GftZzYq2x5BK0BGCLf+rlBtXC3jGIrCxEf6mliUqVHyptrHhjxx7jcUK8pGVwITRskmeBflFMUVfFuUbogbWjS+Itr8LPqFNPP8Un9hJG/IxmGevZXtz5anTOKK6l7a7HM8IP3ealz8wureoqZsEMXc4CMbYG3CIgiM8fozfMgJVF5BOTRggckSTSnL9NvaaZ6uyUaZXJIP4mdB1btCcBIdH3TFJW0YANrc7qI1TgtkMP7j5ujXBapOF2nNzoCQg== 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=EaoOu3CMYkndc/sLaTpOzxKw7/xeOWftlTmvq/r/VL0=; b=LexgDcM0NA1ohSf1L3V1+4yvT47JKB1MlsuLHyK1jTMliRMS4gvm9NTbztXLf21d0gYEtTUZCv8wjrskFxqpQ3JGheGAdjoo07U7Mso/oAOSfe/95F84ApePc4CJ7RcGJtDev8FG5ZFjD6X10lCmNaBU0QzzuuAqo+sV8BartOB6F29FzZ6Nqk02sLl0IldnJSJBOKvX0iyWTenKR9xk5hu2tiqn5hvlFtodkB+i7M9M6bW/1SKWF71l2Pn83vU7U3HlJlhZAb/zXSm0YOSJfhVgXJs92Yv4KopIAgPFLb0f2DjmE6yWaRNs4tXU253+8ZwSP7Lt8pGoN58epsRiQg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=baylibre.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EaoOu3CMYkndc/sLaTpOzxKw7/xeOWftlTmvq/r/VL0=; b=SSOfAfBx+iUEf1f+mHtTCthhiTk4A53s4XwuKMS549hiUgqlQIgZgj0rxBOxm9Ddm55GOB0ozph7VY03rgP3kwO7RA7W0ess3xeV+ROXdMWueItYkAk3BHDCN7ulCjW1Js9qO7HMHMFVbGGsQM9UC4q/LctEGLzsPPd0QZ++NM4= Received: from MW4PR03CA0254.namprd03.prod.outlook.com (2603:10b6:303:b4::19) by PH7PR12MB5974.namprd12.prod.outlook.com (2603:10b6:510:1d9::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.28; Tue, 3 Oct 2023 06:22:34 +0000 Received: from CO1PEPF000044FC.namprd21.prod.outlook.com (2603:10b6:303:b4:cafe::9e) by MW4PR03CA0254.outlook.office365.com (2603:10b6:303:b4::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.33 via Frontend Transport; Tue, 3 Oct 2023 06:22:33 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by CO1PEPF000044FC.mail.protection.outlook.com (10.167.241.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6863.9 via Frontend Transport; Tue, 3 Oct 2023 06:22:33 +0000 Received: from SATLEXMB08.amd.com (10.181.40.132) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 3 Oct 2023 01:22:30 -0500 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB08.amd.com (10.181.40.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Mon, 2 Oct 2023 23:22:22 -0700 Received: from xsjarunbala50.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.27 via Frontend Transport; Tue, 3 Oct 2023 01:22:21 -0500 From: Jay Buddhabhatti To: , , CC: , , , Jay Buddhabhatti Subject: [PATCH 0/2] update for versal net platform Date: Mon, 2 Oct 2023 23:21:51 -0700 Message-ID: <20231003062153.12215-1-jay.buddhabhatti@amd.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PEPF000044FC:EE_|PH7PR12MB5974:EE_ X-MS-Office365-Filtering-Correlation-Id: f24a7ed4-194a-40e5-8a83-08dbc3d92141 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mEobcJCUtkNjG0NQeekmrHAwLQZFMxQ2pcVzTSlKlHWB3Xd3ghntBPmd2jt6T0UgNdJ13dXXMSNHV0zTqZ/VlXhs2h5j5VR33pND7hiQDHfGQE66gqVxbslUxX5SAFEIupwWk1BnDvgoAYqzSKLut4JQLMKWiUT+fRjoAKjSlE7sSm3bk7nxiqA0UYryza9U4xG4DQpnQUcaPOFuu2TV7oFUJtuoZ0VwZ+SgQr1Is51zfOQRHdSriV54z4qIxyEgFTxC7MsmOKZpDq4C2iSjOw26+8hoSfnp97zmqd6VzC9zmezoM/U2LMdrFg7vEkX49FGirVDx1SJOvU/YAtTl63dwAJinIQWaMDcMaRP0kIV4pY4yHeDIf4MOAISzXzdpt7aEmV3iq4ZT57WbFCCNHh/1EVqosbWjk2EvzZccEMY0QRTNm/CTvdZ0dnOuv1awz7HvtaVBEwWNiwJIzvn+6AJoeag0NHrWEiLndThJ2VwYeAy67OUPdSfa1Q0LV+jTe8CHhkuw2eMGP0bbGZd5F16fR9Ky3+10zKEB08ldles1rEsGiVf+IKHZ3BE3FZxoT5XfufGHr0uTIAwwDV7taZYNMSED9EDcsivV5GZVSljDNG/Hwhxuy2LRRqvJsUDe006Zg+ePSFumFGVcitHR4hocpZzzXuzkZb/yGfdPhGJPwavRsoMG0DxMpbgAPrGJR5BhA30FZgqqpczbXc/VwQm/bjQGDH1ihIu+NEWuSbD7N06FaXEzZyGsUbmVHPhNB5vMzGeWQuwRrEyM2Yl22A== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(4636009)(396003)(136003)(376002)(346002)(39860400002)(230922051799003)(451199024)(64100799003)(1800799009)(186009)(82310400011)(40470700004)(46966006)(36840700001)(426003)(336012)(2616005)(1076003)(36860700001)(81166007)(40460700003)(82740400003)(356005)(86362001)(36756003)(40480700001)(83380400001)(47076005)(316002)(70206006)(54906003)(44832011)(8676002)(4326008)(5660300002)(41300700001)(4744005)(8936002)(110136005)(70586007)(2906002)(26005)(6636002)(15650500001)(6666004)(478600001)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2023 06:22:33.4913 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f24a7ed4-194a-40e5-8a83-08dbc3d92141 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CO1PEPF000044FC.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB5974 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Mon, 02 Oct 2023 23:23:00 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778714340158017648 X-GMAIL-MSGID: 1778714340158017648 Update clock driver to support for Versal NET platforms. Versal Net is a new AMD/Xilinx SoC. Jay Buddhabhatti (2): drivers: clk: zynqmp: calculate closest mux rate drivers: clk: zynqmp: update divider round rate logic drivers/clk/zynqmp/clk-mux-zynqmp.c | 2 +- drivers/clk/zynqmp/divider.c | 70 +++++------------------------ 2 files changed, 11 insertions(+), 61 deletions(-)