From patchwork Tue Oct 18 23:11:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 616150 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 D794FC4167D for ; Tue, 18 Oct 2022 23:11:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229904AbiJRXLd (ORCPT ); Tue, 18 Oct 2022 19:11:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229868AbiJRXLc (ORCPT ); Tue, 18 Oct 2022 19:11:32 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60072.outbound.protection.outlook.com [40.107.6.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39A2FD8EE9; Tue, 18 Oct 2022 16:11:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S3Bk22s1lNmY+WFykdYxFtrdml9SGG7LTRS9Gox/l8HGJCvrNR9mE0jSVFhnAUAPP878D9V7Lc5lhSvX9PkNT7H65XXdzuJERg3yg3L+xZdeUDnPhd8Xca8ZcYu+55LjjwKpqYKmY7nI0m7CaIJceKGGd3GmDUsZyZE4FsckFDYSu6TZIjFJ6efb4tOLJgxaKFzh3T7d4MqnGFIQzoXZyWk+XkwohVsuML7denfwPtplhIHeoncSLGtyFteo+JRwZvyFOegfRiU3byXWEsBB6SIYIeR8REau8btAKPEP5cF1HfvmvnQYq2/790kNQ7sI5z/8H9aUEt6JWqIS4J2FMA== 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=nHfrKvIf6uhW+PIvN7eGwoBrowmdKIkqx5wJ0m5ZL2o=; b=P5XTNRTW2LGMp7+EupsJIUf+ClgL/wdCPCUA1tb0CHDoQhUp58QskV0XhSmHLN4iBcAc8loemSjQomeUA3YwBZhmRmEdMZK/oVyz+yeswrKamoJLeO8LAiFoQL18WNvL80YAGFdeZWWhguiX4/3ZtMbJhAeauhLf/6sTcp8m8a554rbeZPiJs4LVgQCzoGJTs0ad7D6E7GsgkC8z8NgHKw9Nz53lm7WyG7z6/sotRq9L2PCjGwq4fQAKZQzgEVf+LdkmMAOWUj4128kGAIHxwvYSLHQJ1PHOHQOSQIjH6vL4g8SJfJ3ZAG9ZF24VWeBLcrFO4mHMnYY1NnnZJY4s8w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=seco.com; dmarc=pass action=none header.from=seco.com; dkim=pass header.d=seco.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seco.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nHfrKvIf6uhW+PIvN7eGwoBrowmdKIkqx5wJ0m5ZL2o=; b=G2oh05vuBrpPKpn1mtoWvHn02C6X3Pf8V75r/bYBh6jO1HiP2ZprhSMYmAvjB469DnyLyohFE01GXxDmaT3qcKbQt06oxhp09GLcCmGf6ZDIx3LDID4AQRb8ELgquy1XSUMHy5+TgBv4kBuyG35i6I1VkuEFQemkPdhMq8YsI/2Sa/UJlQEgjq25oGMW0wj56VXeMhJ9WpYQTckUUtRBixcYCjG7ynZN4x4J8gXOstY76sFK6ccx64MhhfK0MY08p0+J/cjZiS6HFvLouOCfQk0y16GEbn2W+wyre+3zBVrJH0F0bKe4LPBYqeQUZfNQB2wPU0sdU+8s16XBEv58NQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=seco.com; Received: from DB7PR03MB4972.eurprd03.prod.outlook.com (2603:10a6:10:7d::22) by PAWPR03MB9642.eurprd03.prod.outlook.com (2603:10a6:102:2e9::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.30; Tue, 18 Oct 2022 23:11:28 +0000 Received: from DB7PR03MB4972.eurprd03.prod.outlook.com ([fe80::204a:de22:b651:f86d]) by DB7PR03MB4972.eurprd03.prod.outlook.com ([fe80::204a:de22:b651:f86d%6]) with mapi id 15.20.5723.034; Tue, 18 Oct 2022 23:11:28 +0000 From: Sean Anderson To: Vinod Koul , Kishon Vijay Abraham I , linux-phy@lists.infradead.org Cc: Camelia Alexandra Groza , Krzysztof Kozlowski , linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Madalin Bucur , Rob Herring , Ioana Ciornei , Sean Anderson , Rob Herring , Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org Subject: [PATCH v7 3/8] dt-bindings: clock: Add ids for Lynx 10g PLLs Date: Tue, 18 Oct 2022 19:11:07 -0400 Message-Id: <20221018231112.2142074-4-sean.anderson@seco.com> X-Mailer: git-send-email 2.35.1.1320.gc452695387.dirty In-Reply-To: <20221018231112.2142074-1-sean.anderson@seco.com> References: <20221018231112.2142074-1-sean.anderson@seco.com> X-ClientProxiedBy: MN2PR18CA0007.namprd18.prod.outlook.com (2603:10b6:208:23c::12) To DB7PR03MB4972.eurprd03.prod.outlook.com (2603:10a6:10:7d::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB7PR03MB4972:EE_|PAWPR03MB9642:EE_ X-MS-Office365-Filtering-Correlation-Id: 59fadede-ddff-4a51-6335-08dab15e1646 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UwhAkoQKzJ7DdKnWzzFSxAL4xw82O9oDp0OlS2HHDTN1+FsC1sWKHC9f3AAIhW28OESamXrRzlBRln0NUpDqTf4bQbskgaLq8XM9YWn4dthaQjqloeZXyfw1ONk3ymX5LKOzNOMfONUL2P7g7JHUAVSSLXfaf/49BTl2gdwLTokuIRQ2tvEr8kC5RJ3B4xSWv+2jo4pd6juxavSTlgnEsvdqeWW/VpG+iGl6X9ktPRSPbHVLQKiysFyWVTZ4Q6dOGhybByR2lkYOQiYC3l0yqZbGrA4Hj5WBEIIpZHWfVjrqGvxUsxdattbb37CoCnUPVeHR6DjYnh7LqoVvsjQ+lYT1POrkTgKFUWmcyl6XMdgkaQW+B435z5ssMajlmee4MiP8jd0DjyL3+i4TQQI8jDsV5O6AmMWH/cdhWhwd6AoRDDlK6H1UP4/6QgkUzm3eRiZqmpnx6RluojZyRqeygf3kQPZbA/YR9SPvoPuhPDBNMSYPOSYp0bLNRG0y79LCJOwfK8P0GX0OCP0qABOKtl8vvrZKbgy6hjFo1NNFMooZfbNy2ftTyiEL3JU96j9cmdKa4i/HIVpS034SHLEwMaXleGnawv5uAL1CZT7xlVXoPo+3rshjPdSr0H524WWCyRquRDbbfbgozpHv2MweaNIqJDNz3kox9d5X8lg1q9dTWmlCNIgexjDwvgDwUKvtyQPPg/iU8FWlgFm2PDnNPD98CrGvNopktQsCxOALAqaI49MW89oDeURZT0dGWmwCr5CS0WVTvkPxI6Yb+y00XQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB7PR03MB4972.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(346002)(376002)(136003)(396003)(366004)(39850400004)(451199015)(6506007)(6512007)(110136005)(26005)(2906002)(86362001)(4326008)(8676002)(5660300002)(66476007)(7416002)(8936002)(36756003)(44832011)(66556008)(38350700002)(38100700002)(41300700001)(66946007)(83380400001)(316002)(1076003)(52116002)(6486002)(2616005)(186003)(478600001)(54906003)(6666004); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: kUx2r0VUgWVwp4MYPGJMGtYnvYO6yNQtZUKM/5oP5Deli/UH4SZJJW0phJH4UiKcppp8FkxPirb0KP59cJ783Fgqz6enbiB8r9FgJLHkwhSJ+fKFzVSbKBOvHTe8sewOO6noIh9bgsaoJeiJcp7un6zhS0O0I1lKmhJm3mKRismiMw1wQ/i8IOjXsHXZdEoHIFcdyGkxN+fWlDUQIvjJIL43DwZ3EJS9PkAaUjJto5i9+dopm9g73hAfCQnJEttBEeUMF3oxGs54w6nRrekJTgQ6bCVPQypy9VszPlw9IOShmjB0SZkv/Xi/4nd0hMvVvMnaZke3qDROko82TtV4okqcuwU/3SqE4DLSHw6cAD4vsKNcZ7Iu+1JcYZ5kGldntUGU1SJDlUSDPVJilOF4o3NyLYNjnLpsLJ1Dh6gpokjGYIP2P4a8eA5E7THcLpBVrZTXFPNvUeHJWfDbaG3s4b3MZ1H2CRlJm5WtTfGwGQdAo5sTTWrIsScK0V5ETR9ueqfaf3K3jNUmozf0jj+DQmg7GAozy3tPakUH87ClOC0oWoUUoZs1BnOWggPIfVK7Y0I7TegcT6O/xDUfU6H+PWWAYHTnmapMr43uUbNuG/9vdQL2i/v7vCfIuL1BZ5dhQAIuyzOjTyaRlW48fZN1u5yJgZctCrdS4lbU42OWz4M/4Uvp31E4k9QsJtzzCtAEtnKyeFdJObEosRdlAAmdXORaXzSzIXERXmEvxuLF+0X6Qycg68zdvLUk7lxRHLvhAEsxHPZoHoes7umSZnAyfAbIKhYwIFeaXeVXiBMc9ETybKdHlu9zQleJkAVe4Ec0wwgD6Y8TnY368ODID4EVv0Go/8FUkdVuv5LJYs19A3tDcJ/xt73KUq+32VLHQmcZTGaL2ZNmSFTXiYQUXRx1Z4ficQMQz6TdD0ChGdrdfujcPecQEgdIRZhm9EBJxGKLTde2S3RQFiyLiB3McES80S/fYcZSVGBYep6GLlRwoCqvknOozfSyGAQBB/k1n2xsmxc1h2TBkGRwpv6yAG4nyiFDsrWewkhV2UytUDUj+awKCgZyWTwwmSvBXhQYxs8M0IHvZ0PgRWvYjvl5d4XykvtQFIJmBtaN4SwPzPgrEUJMBQ+dFRCPo5gncDaA199B3Voec53nT3f5eS8FUN8tlUC7kCJdXucvty8wwuyyOcu9Q/W7Um0huRo2ETzUkKJj/MYEGbq0nLJdIpl7pgOHXnYzRV8qgW/giVOlE6FDrkQdnT3uCw9aRZCPyUGyyJJqy7kTIAZaqRKVcLuhg7RUNCC+ySRXLIwWCkiP7EF80qgIY06p2NTQmwSk2BXcMKeaqZahg0kgLlnYDC3yMp6Xqy20yfzJpoRO4+iDt0WtNuI9erGY7PNUSDQR2dF9Zym2am1MdUttP+Bh2R8UY8C956fZ2c767khtmMU9rq3tcQVV0SrPSzixq+bU+VUGtI0R4erULddVjLpn++wUZ4BXzCzWfHG3JWuAHiZgk8ytAkcgOPvjk5ojykGgWc1Mmd9OQU6syT471eO7h/hh9KNfYfpajoeBd4XEaskL0+Jj8mQdremLxVsezHyB5hCS6cOEtgiREln2s6xS82BGtF0rDA== X-OriginatorOrg: seco.com X-MS-Exchange-CrossTenant-Network-Message-Id: 59fadede-ddff-4a51-6335-08dab15e1646 X-MS-Exchange-CrossTenant-AuthSource: DB7PR03MB4972.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2022 23:11:28.6506 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: bebe97c3-6438-442e-ade3-ff17aa50e733 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: rnRAa9g/mA2TZASycRSw9G3i/KBc90rojXi7bi0O6Rme26safipNFpk0soaADJdERGxXlettzHLcVdPNvRr3tg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR03MB9642 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This adds ids for the Lynx 10g SerDes's internal PLLs. These may be used with assigned-clock* to specify a particular frequency to use. For example, to set the second PLL (at offset 0x20)'s frequency, use LYNX10G_PLLa(1). These are for use only in the device tree, and are not otherwise used by the driver. Signed-off-by: Sean Anderson Acked-by: Rob Herring --- (no changes since v6) Changes in v6: - frequence -> frequency Changes in v5: - Update commit description - Dual id header Changes in v4: - New include/dt-bindings/clock/fsl,lynx-10g.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 include/dt-bindings/clock/fsl,lynx-10g.h diff --git a/include/dt-bindings/clock/fsl,lynx-10g.h b/include/dt-bindings/clock/fsl,lynx-10g.h new file mode 100644 index 000000000000..15362ae85304 --- /dev/null +++ b/include/dt-bindings/clock/fsl,lynx-10g.h @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */ +/* + * Copyright (C) 2022 Sean Anderson + */ + +#ifndef __DT_BINDINGS_CLK_LYNX_10G_H +#define __DT_BINDINGS_CLK_LYNX_10G_H + +#define LYNX10G_CLKS_PER_PLL 2 + +#define LYNX10G_PLLa(a) ((a) * LYNX10G_CLKS_PER_PLL) +#define LYNX10G_PLLa_EX_DLY(a) ((a) * LYNX10G_CLKS_PER_PLL + 1) + +#endif /* __DT_BINDINGS_CLK_LYNX_10G_H */