From patchwork Tue Apr 11 18:42:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 1767802 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=seco.com header.i=@seco.com header.a=rsa-sha256 header.s=selector1 header.b=UyIX6pJi; dkim=pass (2048-bit key) header.d=seco.com header.i=@seco.com header.a=rsa-sha256 header.s=selector1 header.b=UyIX6pJi; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4Pwvsg3Ssdz1yXv for ; Wed, 12 Apr 2023 04:45:11 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229907AbjDKSpK (ORCPT ); Tue, 11 Apr 2023 14:45:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229893AbjDKSpG (ORCPT ); Tue, 11 Apr 2023 14:45:06 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05hn2205.outbound.protection.outlook.com [52.100.175.205]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0EAB199A for ; Tue, 11 Apr 2023 11:45:05 -0700 (PDT) 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=AV4YSLSWUEa6icuS3ElbSt+yZKjwyRoBMk3Gdh1j9EM=; b=UyIX6pJiZh8o45rNwcMPn0gvUv1prMY4Hwl/+Bia6hD1gkyAUhFrf63KTY8wwy4bssipNgXmF2CdwXYUu+KEka/3EY2R2m63cbAf3nmljKENShur/BFWMFxEPZMFIOcxb9ei4+M33pPm3K26KhzyjqVj4fjbjIkWwA/rVxrbTerolBi7kQ3l6hBRmiMCFkB9bTwZRE9ULPuqHc6tDqp84Nx1ZULznCg9R8n6sFBbcSKeGV9yxgUzhVWLT/uPnnz4man49GN8II3IfAW8FcrE9vp2E++OpxqEJf2BbjyJdfcHBaOecEFzeOwBqn4XiNzjSLtLpNxHBRr35fOAIBR5zQ== Received: from ZR0P278CA0001.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:16::11) by AS1PR03MB8216.eurprd03.prod.outlook.com (2603:10a6:20b:470::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.38; Tue, 11 Apr 2023 18:45:03 +0000 Received: from VI1EUR05FT019.eop-eur05.prod.protection.outlook.com (2603:10a6:910:16:cafe::1c) by ZR0P278CA0001.outlook.office365.com (2603:10a6:910:16::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.40 via Frontend Transport; Tue, 11 Apr 2023 18:45:03 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 20.160.56.87) smtp.mailfrom=seco.com; dkim=pass (signature was verified) header.d=seco.com;dmarc=pass action=none header.from=seco.com; Received-SPF: Pass (protection.outlook.com: domain of seco.com designates 20.160.56.87 as permitted sender) receiver=protection.outlook.com; client-ip=20.160.56.87; helo=inpost-eu.tmcas.trendmicro.com; pr=C Received: from inpost-eu.tmcas.trendmicro.com (20.160.56.87) by VI1EUR05FT019.mail.protection.outlook.com (10.233.242.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.29 via Frontend Transport; Tue, 11 Apr 2023 18:45:02 +0000 Received: from outmta (unknown [192.168.82.140]) by inpost-eu.tmcas.trendmicro.com (Trend Micro CAS) with ESMTP id 17A602008026F; Tue, 11 Apr 2023 18:45:02 +0000 (UTC) Received: from EUR03-AM7-obe.outbound.protection.outlook.com (unknown [104.47.51.239]) by repre.tmcas.trendmicro.com (Trend Micro CAS) with ESMTPS id 6261620080074; Tue, 11 Apr 2023 18:46:00 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lEZWmeStjPNanqYVjxrCWYiYZQIxiQLByU6gI6eL+tGD2CjMyvln9cgPTIo3u1rK3VAZu47bX2jdRwzd4bB5eIQK3KNFrdRyhH2erQW625U2jjxwzjeXbG8JfvJ6hw7S0LBQhuhiRTg4I6CvEdO8UiO66YWLPxeUR/sErJScTdDqRI/LIGhRhziNCRKZMAlEw34138bpY3uVG/pRzHFNKqG8M/kgHLViPNjS9vfsxpWtmoPDYQJw1cYSwMGl04D2yXdbeeMFoK+y6SPjUfENm8olF/qeFZ3YmwyHi34M+TD62lQYldEU37IUwS/pVlLBMVszNWRvKe8/cvnQz7q4kA== 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=AV4YSLSWUEa6icuS3ElbSt+yZKjwyRoBMk3Gdh1j9EM=; b=FoLeLEmA2ldDubPDd+VqitJuK6CgFRgDw+HajeFGtvlswihX6ccYMHgFg881Bg1K+mcgbMNIxdC2yVgK6z+49PPrWgRqLfmm037u8abD+7PMzd2LD2WhNWIzfBCaYUD7SGCeX/n/v4FULFHt8bAAJyCFKOPy+Lq7irr7p9zx7WuE16aY5wEyfuJMCszM9/xYWymjJQ0NmbxTzy4S5i7Gfnbf336xdwugyvGKCajUDC7PfO9RUuetqrNlkVZ942x+etXXNzvane/N5DjEi6FBdDH6xLB5CWoOvl1ZzjEBUcy8KgJQkSAxKUNy9P5js61ZNr5kNFkS1XZXjvlFY3nQiw== 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=AV4YSLSWUEa6icuS3ElbSt+yZKjwyRoBMk3Gdh1j9EM=; b=UyIX6pJiZh8o45rNwcMPn0gvUv1prMY4Hwl/+Bia6hD1gkyAUhFrf63KTY8wwy4bssipNgXmF2CdwXYUu+KEka/3EY2R2m63cbAf3nmljKENShur/BFWMFxEPZMFIOcxb9ei4+M33pPm3K26KhzyjqVj4fjbjIkWwA/rVxrbTerolBi7kQ3l6hBRmiMCFkB9bTwZRE9ULPuqHc6tDqp84Nx1ZULznCg9R8n6sFBbcSKeGV9yxgUzhVWLT/uPnnz4man49GN8II3IfAW8FcrE9vp2E++OpxqEJf2BbjyJdfcHBaOecEFzeOwBqn4XiNzjSLtLpNxHBRr35fOAIBR5zQ== Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=seco.com; Received: from DB9PR03MB8847.eurprd03.prod.outlook.com (2603:10a6:10:3dd::13) by DB4PR03MB9433.eurprd03.prod.outlook.com (2603:10a6:10:3fa::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.38; Tue, 11 Apr 2023 18:44:40 +0000 Received: from DB9PR03MB8847.eurprd03.prod.outlook.com ([fe80::2226:eb03:a8c:a7e5]) by DB9PR03MB8847.eurprd03.prod.outlook.com ([fe80::2226:eb03:a8c:a7e5%2]) with mapi id 15.20.6277.035; Tue, 11 Apr 2023 18:44:40 +0000 From: Sean Anderson To: Vinod Koul , Kishon Vijay Abraham I , linux-phy@lists.infradead.org Cc: Camelia Alexandra Groza , Bagas Sanjaya , Ioana Ciornei , linux-arm-kernel@lists.infradead.org, Madalin Bucur , devicetree@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , linuxppc-dev@lists.ozlabs.org, Sean Anderson , Rob Herring Subject: [PATCH v13 01/15] dt-bindings: phy: Add 2500BASE-X and 10GBASE-R Date: Tue, 11 Apr 2023 14:42:58 -0400 Message-Id: <20230411184313.3679145-2-sean.anderson@seco.com> X-Mailer: git-send-email 2.35.1.1320.gc452695387.dirty In-Reply-To: <20230411184313.3679145-1-sean.anderson@seco.com> References: <20230411184313.3679145-1-sean.anderson@seco.com> X-ClientProxiedBy: BL1PR13CA0350.namprd13.prod.outlook.com (2603:10b6:208:2c6::25) To DB9PR03MB8847.eurprd03.prod.outlook.com (2603:10a6:10:3dd::13) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: DB9PR03MB8847:EE_|DB4PR03MB9433:EE_|VI1EUR05FT019:EE_|AS1PR03MB8216:EE_ X-MS-Office365-Filtering-Correlation-Id: 03f19743-9bd5-48be-87e7-08db3abcdc5b X-TrendMicro-CAS-OUT-LOOP-IDENTIFIER: 656f966764b7fb185830381c646b41a1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: aE+4z/7iImG99jAni0gaCh3gvrfolP4UmXTHIhDplV0+6g6zkO6DESqVz78Kza2oVEtP4cOe/kuJx16+YPQILXRF0WAcXrsiBomjIICN8hanU7aTILqyGdQRUFW4/BCqoaXTM6TzQgOFk6BOIqQ8ufmAnuDenUa+Lk7mda/E2MwhWbzmpK+gs/q4BXPT82RKeRK93OjRq8DWVof/Z7vgfkPKwyQlMPHSBmhfM+tgTFt+ngdvcmJqnJ3JiJKmz8egevBjMS4NgDu2qUPqjXY6pkdk7vMuFMzr3G0g/25dwuclCht1XRWUuPQYbkCDnYg4oROhgqyy5uhmKb7Y0C+A0SjMoWfUQKJMa8JIPBqzLKwXLX6NVQZeWWAqsaZ9EQd27TXThOykJFgVrsP9fnasmXOnKv2YyqG+6Dq+L1MB3WmvjBYlnc1POVz+/90Slm6kSlVoZpqY9g0ZPqosOKFo9D5iHc5nZH3UkCkpkZaiHrE+vwb29nTmuPq1FxEw7RrRAz4njbhISvwQlh/sk+Jfn1OEWIMcGE2b3uxd8m1pc4EuIe4fjL+0aUC0owv5ZaOuzcrBoEzqu6oeZa5nt7HhU+tUd5Z5isiblVIk1ZnCbYo= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB9PR03MB8847.eurprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(366004)(39850400004)(396003)(136003)(376002)(346002)(451199021)(316002)(110136005)(38350700002)(38100700002)(54906003)(66556008)(66476007)(8676002)(66946007)(4326008)(86362001)(478600001)(186003)(2616005)(26005)(41300700001)(36756003)(6506007)(1076003)(6512007)(2906002)(83380400001)(44832011)(8936002)(6666004)(52116002)(5660300002)(7416002)(966005)(6486002);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR03MB9433 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VI1EUR05FT019.eop-eur05.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 4b822c4b-8eed-40c1-cd23-08db3abccf11 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FROBZPUfyr8gfjyvTaRapHmwlWpxFvTizeMWi6t1nR/naQ0PtlVrypssi2ssO2P+OUjVtbXpTG52SIb1S/cDSxAaquzY//HjZ/VIwIk30I9bn+VtWuIFsVl8w33K6tuLyron12RLZNIOCnlMWugKRWXXFp2Vfl/CrUj7DPR77B53KLa0fLL9A5NCQib0PyN1wiPsYbqkUPhLEK8Fazp9LwGrYFQdmPYtEX70kX1uix6HV2NRsN6hpVlQTGWFPUrIG3ZsboBWXeb9QbjwgjcSOv/t6qycAL7yPBXUDgSEnTuqt2TjHXLcQcBCdy6sRcRSuHy0allfzPy6LI3EZX/tNQ4oT6Tr4d/iSEjgwMHdeLq7fA+J7dcnfolNlpOp775c2wLxKDR+K9buMevy3oOmY+K1eNZDTEDt35cOMB22St+nuBmWB0D7bfB0xfZE0EwkB90JFesZxiWgYGgFjA1EAzwsNw/0X0KPmA5J88pw+0TotLupUbvOB92dOvQIvplofFlql3P+UCBnI0c2GaKCSnzFCbsB8z7nCPxFzuvBA/V8jMwbELQhjl6k8pUaq0+vA3D0pw1CK/IZsqQrqAea4TPpuMWt+QrobHIN7yWBRDFfd4f3dHnhId3y2Ux/Uklxia4eaBpYxgzmIoOhf5+nkAzrx4bhDxAgIzL+a7UR9h2PY8jLZguvmgBs0yOg3paCF3KfElhd6wD/7eTIuBvP/VGU9JfET9cLkEoKgV3tkVMlOBBf+QES3FC+kILEwtsY X-Forefront-Antispam-Report: CIP:20.160.56.87;CTRY:NL;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:inpost-eu.tmcas.trendmicro.com;PTR:inpost-eu.tmcas.trendmicro.com;CAT:NONE;SFS:(13230028)(376002)(396003)(39850400004)(346002)(136003)(451199021)(5400799015)(36840700001)(46966006)(40470700004)(70206006)(70586007)(4326008)(8676002)(83380400001)(47076005)(40460700003)(336012)(26005)(6506007)(1076003)(2616005)(7596003)(186003)(356005)(6512007)(36860700001)(86362001)(34070700002)(40480700001)(82740400003)(7636003)(6486002)(966005)(6666004)(36756003)(316002)(54906003)(478600001)(110136005)(44832011)(2906002)(82310400005)(41300700001)(5660300002)(7416002)(8936002)(12100799027);DIR:OUT;SFP:1501; X-OriginatorOrg: seco.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2023 18:45:02.7524 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 03f19743-9bd5-48be-87e7-08db3abcdc5b X-MS-Exchange-CrossTenant-Id: bebe97c3-6438-442e-ade3-ff17aa50e733 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=bebe97c3-6438-442e-ade3-ff17aa50e733;Ip=[20.160.56.87];Helo=[inpost-eu.tmcas.trendmicro.com] X-MS-Exchange-CrossTenant-AuthSource: VI1EUR05FT019.eop-eur05.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR03MB8216 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This adds some modes necessary for Lynx 10G support. 2500BASE-X, also known as 2.5G SGMII, is 1000BASE-X/SGMII overclocked to 3.125 GHz, with autonegotiation disabled. 10GBASE-R, also known as XFI, is the protocol spoken between the PMA and PMD ethernet layers for 10GBASE-T and 10GBASE-S/L/E. It is typically used to communicate directly with SFP+ modules, or with 10GBASE-T phys. Signed-off-by: Sean Anderson Acked-by: Rob Herring --- PR increasing phy-type maximum [1]. If this commit could be applied sooner rather than later, I'd appreciate it. This should help avoid another respin if someone else adds another phy type. [1] https://github.com/devicetree-org/dt-schema/pull/85 (no changes since v6) Changes in v6: - Bump PHY_TYPE_2500BASEX to 13, since PHY_TYPE_USXGMII was added in the meantime Changes in v4: - New include/dt-bindings/phy/phy.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/dt-bindings/phy/phy.h b/include/dt-bindings/phy/phy.h index 6b901b342348..5b2b674d8d25 100644 --- a/include/dt-bindings/phy/phy.h +++ b/include/dt-bindings/phy/phy.h @@ -23,5 +23,7 @@ #define PHY_TYPE_DPHY 10 #define PHY_TYPE_CPHY 11 #define PHY_TYPE_USXGMII 12 +#define PHY_TYPE_2500BASEX 13 +#define PHY_TYPE_10GBASER 14 #endif /* _DT_BINDINGS_PHY */ From patchwork Tue Apr 11 18:42:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 1767803 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=seco.com header.i=@seco.com header.a=rsa-sha256 header.s=selector1 header.b=OUkWJY6Y; dkim=pass (2048-bit key) header.d=seco.com header.i=@seco.com header.a=rsa-sha256 header.s=selector1 header.b=OUkWJY6Y; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4Pwvsh0zpHz1yZP for ; Wed, 12 Apr 2023 04:45:12 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229893AbjDKSpL (ORCPT ); Tue, 11 Apr 2023 14:45:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229877AbjDKSpI (ORCPT ); Tue, 11 Apr 2023 14:45:08 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05hn2249.outbound.protection.outlook.com [52.100.175.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76FF012A; Tue, 11 Apr 2023 11:45:06 -0700 (PDT) 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=Iie0Bl1raO6MNQbx9dABBRV7HF/h/2HGK/e4/Sj3ooA=; b=OUkWJY6YvSQuxjNqJJ+aMDe42dTF9ePpWNhN4GRAA5Dx4Ev9apRzi4PBZHIYG2ZXq6K+PSOg9bO4cbS3Mlh8neP8iU/VmQjyzMLwM+UpXnj3myG1nJGi9BgwH3mjz7TUJPnuR8JbGXpr7m4S/H/p2O5pRjWPj4sCu2R2J7j0LKW0dAr5/5lYsRR/VrP6Axk3NTrNlRWL9ikolbHgcHuSY5yOINIw6kc2Ix/vqhB37a1YF0MFTOQRUgYisGSD9XIS3kiGMgp/DiiKW21XDGNVtqJuP0iOwA4xmbiBlor1iEcaodr5l0JFj5Etpt6/h0zfQ3IKCwo5E1AEYqPaUwKEBA== Received: from AS9PR05CA0140.eurprd05.prod.outlook.com (2603:10a6:20b:497::14) by AS2PR03MB10109.eurprd03.prod.outlook.com (2603:10a6:20b:57b::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.35; Tue, 11 Apr 2023 18:45:03 +0000 Received: from AM6EUR05FT009.eop-eur05.prod.protection.outlook.com (2603:10a6:20b:497:cafe::43) by AS9PR05CA0140.outlook.office365.com (2603:10a6:20b:497::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.29 via Frontend Transport; Tue, 11 Apr 2023 18:45:03 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 20.160.56.81) smtp.mailfrom=seco.com; dkim=pass (signature was verified) header.d=seco.com;dmarc=pass action=none header.from=seco.com; Received-SPF: Pass (protection.outlook.com: domain of seco.com designates 20.160.56.81 as permitted sender) receiver=protection.outlook.com; client-ip=20.160.56.81; helo=inpost-eu.tmcas.trendmicro.com; pr=C Received: from inpost-eu.tmcas.trendmicro.com (20.160.56.81) by AM6EUR05FT009.mail.protection.outlook.com (10.233.241.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.25 via Frontend Transport; Tue, 11 Apr 2023 18:45:02 +0000 Received: from outmta (unknown [192.168.82.132]) by inpost-eu.tmcas.trendmicro.com (Trend Micro CAS) with ESMTP id 2A1C320080270; Tue, 11 Apr 2023 18:45:02 +0000 (UTC) Received: from EUR03-AM7-obe.outbound.protection.outlook.com (unknown [104.47.51.239]) by repre.tmcas.trendmicro.com (Trend Micro CAS) with ESMTPS id 5EE6820080076; Tue, 11 Apr 2023 18:46:01 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T6eM2gneCgP3W31/DaQcEFrC2FuE7St3+7rSpIB/e5qwjXlZ4/NFSdDmJ+z0i/dwVcjAEk4Pva4MEuSfh2QlXwwrqA481Eyp4Ltto1V8MRH3IOxI6q+wSdjq2r/Z7rYcT3pMdbi0J2qOjeE4/9Id6domNdG3H2URsjgbyP9OOESRGnsnlR6XLnV9GpoyxPPXnD5k+nLrG4FkTWsyuVSK4fVybgqVs/bmbpEtIGpD5dcQcFR7xtCIuBU+O6SQMR8rBBBM0MW9uZesEgJWu+8HP+pfQieFbqawgXpEniox4NqLfNZZEiHJ+pCPSwCmebPHkAQVKw2IZBOH07v9iZAQ7Q== 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=Iie0Bl1raO6MNQbx9dABBRV7HF/h/2HGK/e4/Sj3ooA=; b=Bqp2bmkxgiYDOqjxiqi/l78AGmu5fKHM+4Nr0MtdqhV9WSlsLfp3QiSvdKF1FvDaCPbvkH3OIJ2EBa16bKAcaUJ9M8MZmdnz1YWG8LEKWqfP+nWqKBIZ+UE7CaexgNFmXFmE631PcH99AUW1hPmMIlufkmSHfSmYHTdwl08saYjEmpmaAmS0ZCOJEaw90RcKRj8SrRQsaiK6wSNT1KndgsE3YUgC3wEClMq4YDE43V0KqoVSxhO5Yy/evIInIFtpDiKAukUY6N1XEmWUn6mZ1SwEBiWh65QSpgJBRxpjQwdRlJmCo7ax+lwSPYGoj0kUgXwX1oPy2mmCkg1xxYdiMw== 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=Iie0Bl1raO6MNQbx9dABBRV7HF/h/2HGK/e4/Sj3ooA=; b=OUkWJY6YvSQuxjNqJJ+aMDe42dTF9ePpWNhN4GRAA5Dx4Ev9apRzi4PBZHIYG2ZXq6K+PSOg9bO4cbS3Mlh8neP8iU/VmQjyzMLwM+UpXnj3myG1nJGi9BgwH3mjz7TUJPnuR8JbGXpr7m4S/H/p2O5pRjWPj4sCu2R2J7j0LKW0dAr5/5lYsRR/VrP6Axk3NTrNlRWL9ikolbHgcHuSY5yOINIw6kc2Ix/vqhB37a1YF0MFTOQRUgYisGSD9XIS3kiGMgp/DiiKW21XDGNVtqJuP0iOwA4xmbiBlor1iEcaodr5l0JFj5Etpt6/h0zfQ3IKCwo5E1AEYqPaUwKEBA== Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=seco.com; Received: from DB9PR03MB8847.eurprd03.prod.outlook.com (2603:10a6:10:3dd::13) by DB4PR03MB9433.eurprd03.prod.outlook.com (2603:10a6:10:3fa::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.38; Tue, 11 Apr 2023 18:44:42 +0000 Received: from DB9PR03MB8847.eurprd03.prod.outlook.com ([fe80::2226:eb03:a8c:a7e5]) by DB9PR03MB8847.eurprd03.prod.outlook.com ([fe80::2226:eb03:a8c:a7e5%2]) with mapi id 15.20.6277.035; Tue, 11 Apr 2023 18:44:42 +0000 From: Sean Anderson To: Vinod Koul , Kishon Vijay Abraham I , linux-phy@lists.infradead.org Cc: Camelia Alexandra Groza , Bagas Sanjaya , Ioana Ciornei , linux-arm-kernel@lists.infradead.org, Madalin Bucur , devicetree@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , linuxppc-dev@lists.ozlabs.org, Sean Anderson , Rob Herring , Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org Subject: [PATCH v13 02/15] dt-bindings: phy: Add Lynx 10G phy binding Date: Tue, 11 Apr 2023 14:42:59 -0400 Message-Id: <20230411184313.3679145-3-sean.anderson@seco.com> X-Mailer: git-send-email 2.35.1.1320.gc452695387.dirty In-Reply-To: <20230411184313.3679145-1-sean.anderson@seco.com> References: <20230411184313.3679145-1-sean.anderson@seco.com> X-ClientProxiedBy: BL1PR13CA0350.namprd13.prod.outlook.com (2603:10b6:208:2c6::25) To DB9PR03MB8847.eurprd03.prod.outlook.com (2603:10a6:10:3dd::13) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: DB9PR03MB8847:EE_|DB4PR03MB9433:EE_|AM6EUR05FT009:EE_|AS2PR03MB10109:EE_ X-MS-Office365-Filtering-Correlation-Id: 433dec24-6573-4da0-4968-08db3abcdc56 X-TrendMicro-CAS-OUT-LOOP-IDENTIFIER: 656f966764b7fb185830381c646b41a1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: Fud6holjypvv9JKv2q5jKJ1EyhMF60WzHBOOJnwtQwcpPm3OUY0/ovAjwswZ84Brzn/bWgKU3rrmihZZ/6zo2xR/EJEmrEE/zI7pF7JWdtUvuYIOCGv//lUnv4z3jpyX+a6Rr+97+x0I8DNz27Ud9hU8gDXHw8tXPfwFST42q2Q9XVa3vN4qLfWIDDbFRcGnqBYufNh6y7rigtHR0rm29pxVZCUp3b9cHAXREbLpsoPm/mTPZC07O8A7VDe0nqvahJAM65zmhTsAkusL55X/ZgrfI6eCZXMJHrhzuNgPgb8wc2+kzI4TgzIqCraegplLX+UbGb3Fi3i1yE6Sak5E9HAtocIZLXkMFHTmVWV/U+qmF+wz2Sc+EOFvIfz1VDjGFyhMYP2fnEmMnsbinZqSYrKst1axwZNvMYK9jI0k51Pglet4i/jtP7wknRY1kHMyvpi80m6OYXmNP0PQZsvw5EI65gmWQ2wxrfr/G6QeHCOmhMDR5z1O/1r2+M+En85Nn/I9suOwl7Wf8uYdz9p+0SQ04cqt2dPHtiQIn92lNbqJ4zX1fCa53rpV9gw3JCEN8+ukMY6D/URyPJr0DrjmCmR8X+4Iq3FO32faOfM5KzY= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB9PR03MB8847.eurprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(366004)(39850400004)(396003)(136003)(376002)(346002)(451199021)(316002)(110136005)(38350700002)(38100700002)(54906003)(66556008)(66476007)(8676002)(66946007)(4326008)(86362001)(478600001)(186003)(2616005)(26005)(41300700001)(36756003)(6506007)(1076003)(6512007)(2906002)(83380400001)(44832011)(8936002)(6666004)(52116002)(5660300002)(7416002)(966005)(6486002);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR03MB9433 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM6EUR05FT009.eop-eur05.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: e521bfb0-f3ca-4f20-adb4-08db3abcd02d X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yeOoXIQLou3Hq+EMn/QFMJmQTdJVU/V6oMcHlPQ8UQ95oYyYahdJ6ftGgr4UviV/n5TSaNH6oQNONbBKHoO3Wwbmx7p0TL6MTZbhxPg0UuV9LeXyZ58smIIp0AIB0h2TA9qCU+oSRWxSxRRp3Ydg1qII/Gj8pGQkiJrLfPY9qYH09X6yGL0vxyOEqayNOJsz+rdXp21hpXniN6t4ocWwnKOdOHkPlqwQavQyY4LmmirGD4VQN1BVoO3/ryzGaT3ghpn7cvYH7KlMDFBqAiFldQo59YSY2YF3r0IqqFEjlJrPx+EcGeLGv4eoTGotkqL0oJGESmb6pFnAuP5n8WYVMmyeSthoZrv5bHdYJAhj46jsTuQmr1z2kAi84DNCqS5vAmzp5zFLAc9feHGPLMIpD1RMqPTA6vvt/TiltqpubHrARhQ7dzwoS9+IGW5U3MHIPMoB8g/LqgHBk/PseV00Pr7UrpHICEPMdNmlR0XRd+S9fTcinU2XNEaouZ4c7ABL7zQH3V6QQslZsG2wLP/6TjmZyyHsfpI0NuI3LIxxVCwmhZSimAfdNZTfVymClKKqgzs72l7DbvZWk79xbzB8Vwq04r6ZA/b0b3LrlIZNEyobCYRrMxF0AVFsTgPvqZ+GHqatr08YTss9ipezlm2KSZvZW3UlDN4I95WFHGCTksLCy0/0jdXoDHIUHsSvEgNjRAfizPTHuVgmNO+1g2Z3lHrKY1VRKgmESb41K24wlQzlbthBlWiMsl+Txi5U0h5E X-Forefront-Antispam-Report: CIP:20.160.56.81;CTRY:NL;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:inpost-eu.tmcas.trendmicro.com;PTR:inpost-eu.tmcas.trendmicro.com;CAT:NONE;SFS:(13230028)(136003)(396003)(346002)(376002)(39850400004)(451199021)(5400799015)(46966006)(40470700004)(36840700001)(478600001)(1076003)(6506007)(36860700001)(54906003)(336012)(316002)(110136005)(26005)(6512007)(186003)(7416002)(44832011)(966005)(2906002)(70586007)(70206006)(4326008)(8936002)(6666004)(8676002)(82310400005)(41300700001)(5660300002)(6486002)(7636003)(7596003)(356005)(82740400003)(47076005)(40480700001)(83380400001)(86362001)(40460700003)(36756003)(2616005)(34070700002)(12100799027);DIR:OUT;SFP:1501; X-OriginatorOrg: seco.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2023 18:45:02.7493 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 433dec24-6573-4da0-4968-08db3abcdc56 X-MS-Exchange-CrossTenant-Id: bebe97c3-6438-442e-ade3-ff17aa50e733 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=bebe97c3-6438-442e-ade3-ff17aa50e733;Ip=[20.160.56.81];Helo=[inpost-eu.tmcas.trendmicro.com] X-MS-Exchange-CrossTenant-AuthSource: AM6EUR05FT009.eop-eur05.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR03MB10109 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This adds a binding for the SerDes module found on QorIQ processors. Each phy is a subnode of the top-level device, possibly supporting multiple lanes and protocols. This "thick" #phy-cells is used due to allow for better organization of parameters. Note that the particular parameters necessary to select a protocol-controller/lane combination vary across different SoCs, and even within different SerDes on the same SoC. The driver is designed to be able to completely reconfigure lanes at runtime. Generally, the phy consumer can select the appropriate protocol using set_mode. There are two PLLs, each of which can be used as the master clock for each lane. Each PLL has its own reference. For the moment they are required, because it simplifies the driver implementation. Absent reference clocks can be modeled by a fixed-clock with a rate of 0. Signed-off-by: Sean Anderson Reviewed-by: Rob Herring --- (no changes since v9) Changes in v9: - Add fsl,unused-lanes-reserved to allow for a gradual transition between firmware and Linux control of the SerDes - Change phy-type back to fsl,type, as I was getting the error '#phy-cells' is a dependency of 'phy-type' Changes in v7: - Use double quotes everywhere in yaml Changes in v6: - fsl,type -> phy-type Changes in v4: - Use subnodes to describe lane configuration, instead of describing PCCRs. This is the same style used by phy-cadence-sierra et al. Changes in v3: - Manually expand yaml references - Add mode configuration to device tree Changes in v2: - Rename to fsl,lynx-10g.yaml - Refer to the device in the documentation, rather than the binding - Move compatible first - Document phy cells in the description - Allow a value of 1 for phy-cells. This allows for compatibility with the similar (but according to Ioana Ciornei different enough) lynx-28g binding. - Remove minItems - Use list for clock-names - Fix example binding having too many cells in regs - Add #clock-cells. This will allow using assigned-clocks* to configure the PLLs. - Document the structure of the compatible strings .../devicetree/bindings/phy/fsl,lynx-10g.yaml | 248 ++++++++++++++++++ 1 file changed, 248 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/fsl,lynx-10g.yaml diff --git a/Documentation/devicetree/bindings/phy/fsl,lynx-10g.yaml b/Documentation/devicetree/bindings/phy/fsl,lynx-10g.yaml new file mode 100644 index 000000000000..7c364f7de85c --- /dev/null +++ b/Documentation/devicetree/bindings/phy/fsl,lynx-10g.yaml @@ -0,0 +1,248 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/fsl,lynx-10g.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP Lynx 10G SerDes + +maintainers: + - Sean Anderson + +description: | + These Lynx "SerDes" devices are found in NXP's QorIQ line of processors. The + SerDes provides up to eight lanes. Each lane may be configured individually, + or may be combined with adjacent lanes for a multi-lane protocol. The SerDes + supports a variety of protocols, including up to 10G Ethernet, PCIe, SATA, and + others. The specific protocols supported for each lane depend on the + particular SoC. + +properties: + compatible: + items: + - enum: + - fsl,ls1046a-serdes + - fsl,ls1088a-serdes + - const: fsl,lynx-10g + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + "#clock-cells": + const: 1 + description: | + The cell contains an ID as described in dt-bindings/clock/fsl,lynx-10g.h. + Note that when assigning a rate to a PLL, the PLL's rate is divided by + 1000 to avoid overflow. A rate of 5000000 corresponds to 5GHz. + + clocks: + maxItems: 2 + description: | + Clock for each PLL reference clock input. + + clock-names: + minItems: 2 + maxItems: 2 + items: + enum: + - ref0 + - ref1 + + fsl,unused-lanes-reserved: + $ref: /schemas/types.yaml#/definitions/flag + description: | + Unused lanes are reserved for firmware use, and should not be disabled. + Normally, groups containing unused lanes may be reconfigured or disabled + to save power. However, when this property is present, unused lanes will + not be touched until they are used by another driver. This allows + migrating from firmware control of lanes to driver control. + + Lanes not present in any group will never be modified, regardless of the + presence of this property. + + reg: + maxItems: 1 + +patternProperties: + "^phy@": + type: object + + description: | + A contiguous group of lanes which will be configured together. Each group + corresponds to one phy device. Lanes not described by any group will be + left as-is. + + properties: + "#phy-cells": + const: 0 + + reg: + minItems: 1 + maxItems: 8 + description: + The lanes in the group. These must be listed in order. The first lane + will have the FIRST_LANE bit set in GCR0. The order of lanes also + determines the reset order (TRSTDIR). + + patternProperties: + "^(q?sgmii|xfi)": + type: object + + description: | + A protocol controller which may control the group of lanes. Each + controller is selected through the PCCRs. In addition to protocols + desired for use by the OS, protocols which may have been configured + by the bootloader must also be described. This ensures that only one + protocol controller is attached to a group of lanes at once. + + properties: + fsl,pccr: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + The index of the PCCR which configures this protocol controller. + This is the same as the register name suffix. For example, PCCR8 + would use a value of 8 for an offset of 0x220 (0x200 + 4 * 8). + + fsl,index: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + The index of the protocol controller. This corresponds to the + suffix in the documentation. For example, PEXa would be 0, PEXb + 1, etc. Generally, higher fields occupy lower bits. + + fsl,cfg: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 1 + description: | + The configuration value to program into the protocol controller + field. + + fsl,type: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: + - 8 # PHY_TYPE_SGMII + - 9 # PHY_TYPE_QSGMII + - 13 # PHY_TYPE_2500BASEX + - 14 # PHY_TYPE_10GBASER + description: | + The category of protocols supported by this controller. See + "dt-bindings/phy/phy.h" for the relevant definitions. Individual + protocols are selected by the phy consumer. The availability of + 1000BASE-KX and 10GBASE-KR depends on the SoC. + + - PHY_TYPE_SGMII: 1000BASE-X, SGMII, and 1000BASE-KX + - PHY_TYPE_2500BASEX: 2500BASE-X, 1000BASE-X, SGMII, and + 1000BASE-KX + - PHY_TYPE_QSGMII: QSGMII + - PHY_TYPE_10GBASER: 10GBASE-R and 10GBASE-KR + + required: + - fsl,pccr + - fsl,index + - fsl,cfg + - fsl,type + + additionalProperties: false + + required: + - "#phy-cells" + - reg + + additionalProperties: false + +required: + - "#address-cells" + - "#clock-cells" + - "#size-cells" + - compatible + - clocks + - clock-names + - reg + +additionalProperties: false + +examples: + - | + #include + + serdes1: serdes@1ea0000 { + #address-cells = <1>; + #size-cells = <0>; + #clock-cells = <1>; + compatible = "fsl,ls1046a-serdes", "fsl,lynx-10g"; + reg = <0x1ea0000 0x2000>; + clocks = <&clk_100mhz>, <&clk_156mhz>; + clock-names = "ref0", "ref1"; + + serdes1_0: phy@0 { + #phy-cells = <0>; + reg = <0>; + + /* SGMII.6 */ + sgmii-0 { + fsl,pccr = <0x8>; + fsl,index = <0>; + fsl,cfg = <0x1>; + fsl,type = ; + }; + }; + + serdes1_1: phy@1 { + #phy-cells = <0>; + reg = <1>; + + /* SGMII.5 */ + sgmii-1 { + fsl,pccr = <0x8>; + fsl,index = <1>; + fsl,cfg = <0x1>; + fsl,type = ; + }; + }; + + serdes1_2: phy@2 { + #phy-cells = <0>; + reg = <2>; + + /* SGMII.10 */ + sgmii-2 { + fsl,pccr = <0x8>; + fsl,index = <2>; + fsl,cfg = <0x1>; + fsl,type = ; + }; + + /* XFI.10 */ + xfi-0 { + fsl,pccr = <0xb>; + fsl,index = <0>; + fsl,cfg = <0x2>; + fsl,type = ; + }; + }; + + serdes1_3: phy@3 { + #phy-cells = <0>; + reg = <3>; + + /* SGMII.9 */ + sgmii-3 { + fsl,pccr = <0x8>; + fsl,index = <3>; + fsl,cfg = <0x1>; + fsl,type = ; + }; + + /* XFI.9 */ + xfi-1 { + fsl,pccr = <0xb>; + fsl,index = <1>; + fsl,cfg = <0x1>; + fsl,type = ; + }; + }; + }; +... From patchwork Tue Apr 11 18:43:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 1767798 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=seco.com header.i=@seco.com header.a=rsa-sha256 header.s=selector1 header.b=tqvxw0Q6; dkim=pass (2048-bit key) header.d=seco.com header.i=@seco.com header.a=rsa-sha256 header.s=selector1 header.b=tqvxw0Q6; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4Pwvsd5VJcz1yXv for ; Wed, 12 Apr 2023 04:45:09 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229898AbjDKSpH (ORCPT ); Tue, 11 Apr 2023 14:45:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229877AbjDKSpF (ORCPT ); Tue, 11 Apr 2023 14:45:05 -0400 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-cy1gcc01bn2079.outbound.protection.outlook.com [52.100.19.79]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA80213E; Tue, 11 Apr 2023 11:45:02 -0700 (PDT) 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=uK3k9a/CWqGjwoOwoaDDQ9hA8T+Zb0e74q/+VvHGAiw=; b=tqvxw0Q668YmlAlCWTBuRtWYUB1iOEYPjseh1bnllQ9ozyROe6Y2Awalk4JJ2HsdHvZanDZu+s1kiyfUfqUzRsh6AMgbe2lCe9mrMBpybH4CWqQEP3yNZcfS6uxckDDEvPbLb/sLR9CExl2CPQaoVit2YlUm9+/az3JDJEwwExeDi22U72C6VDk0s5LBrjY3GDRwM71q4cd5rthmJg+n3wTMfUgz6iBwyE278i8IMCqzYSKj1QHuWWQDQ+aFlUI1YCOsFS1WwgGBvVk8xYVN09kKiM532dM7m2XFRMRNn4MChHRTHUt7/Kp64yIH3N6ymxCDTekzOUexi731elpOQA== Received: from AM9P195CA0012.EURP195.PROD.OUTLOOK.COM (2603:10a6:20b:21f::17) by AS8PR03MB8347.eurprd03.prod.outlook.com (2603:10a6:20b:523::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.36; Tue, 11 Apr 2023 18:44:59 +0000 Received: from AM6EUR05FT004.eop-eur05.prod.protection.outlook.com (2603:10a6:20b:21f:cafe::44) by AM9P195CA0012.outlook.office365.com (2603:10a6:20b:21f::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.39 via Frontend Transport; Tue, 11 Apr 2023 18:44:59 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 20.160.56.80) smtp.mailfrom=seco.com; dkim=pass (signature was verified) header.d=seco.com;dmarc=pass action=none header.from=seco.com; Received-SPF: Pass (protection.outlook.com: domain of seco.com designates 20.160.56.80 as permitted sender) receiver=protection.outlook.com; client-ip=20.160.56.80; helo=inpost-eu.tmcas.trendmicro.com; pr=C Received: from inpost-eu.tmcas.trendmicro.com (20.160.56.80) by AM6EUR05FT004.mail.protection.outlook.com (10.233.240.227) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.21 via Frontend Transport; Tue, 11 Apr 2023 18:44:59 +0000 Received: from outmta (unknown [192.168.82.140]) by inpost-eu.tmcas.trendmicro.com (Trend Micro CAS) with ESMTP id E49D12008026E; Tue, 11 Apr 2023 18:44:58 +0000 (UTC) Received: from EUR03-AM7-obe.outbound.protection.outlook.com (unknown [104.47.51.239]) by repre.tmcas.trendmicro.com (Trend Micro CAS) with ESMTPS id D235320080077; Tue, 11 Apr 2023 18:46:02 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S+pAnDlJus683L00t4cADyAiGNofjOKvN5dtf8tDH25Kh0mwm+YRFGWy0FfBI8jhJsZ7OHAyumE5o6vYtPCGW7HdRSJankgb/CEdoz+6LL4PkqNaUhcvGNVj9AwV70VWJ9/YLowxUwOQESJxZ/PJWIm3jH6t/8RyIeGWe2rJkMQNP6WLyVd81eOAPq1mkNlzkORqOHIBWiYvucvMCa5uBoV8PQQnrW+73ydgZx5Vl0VZ0W9KlMmo9Q8/VKlGrRSfyokaqauhEtVac47lfn9StEbf4rLBOiZqh1WrOhtMQE0wYg9UIJIjKHt2+lqhscO+x3SHvM2qFKdZvfEUyPYZbw== 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=uK3k9a/CWqGjwoOwoaDDQ9hA8T+Zb0e74q/+VvHGAiw=; b=FnhrlrHn4mJc8VpgnwvHtvzNrU3aYDQhRsvNx5QrvW1Z458Q1MIgBuUn9QKR6IxR4wBhFVbuVBWRfIfrq5uT3WYaZYhzT8tpFCW57UyNcGLlSjwZqo1tD0Gt39VOIF2k4TlvqMv4l4Znwc/S6iZt4zXHepUMEdzVmPaNLIHj1qZfP5bT1UbSyZE49I8RwgAQDMx7e57Pa3rnhTfUqL9m+9xZiKdu9WNdm0frrcV4W7IAD+OkLI8R3kPbu+9QPncPKvGVrpxA/Qddj6KOUMxViRnFEUgx3F9b0Uv8mKsoggAmTN5LV36CuoYs0H1QLZzrgrwxzJo5BxVC5qIuGJD5OA== 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=uK3k9a/CWqGjwoOwoaDDQ9hA8T+Zb0e74q/+VvHGAiw=; b=tqvxw0Q668YmlAlCWTBuRtWYUB1iOEYPjseh1bnllQ9ozyROe6Y2Awalk4JJ2HsdHvZanDZu+s1kiyfUfqUzRsh6AMgbe2lCe9mrMBpybH4CWqQEP3yNZcfS6uxckDDEvPbLb/sLR9CExl2CPQaoVit2YlUm9+/az3JDJEwwExeDi22U72C6VDk0s5LBrjY3GDRwM71q4cd5rthmJg+n3wTMfUgz6iBwyE278i8IMCqzYSKj1QHuWWQDQ+aFlUI1YCOsFS1WwgGBvVk8xYVN09kKiM532dM7m2XFRMRNn4MChHRTHUt7/Kp64yIH3N6ymxCDTekzOUexi731elpOQA== Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=seco.com; Received: from DB9PR03MB8847.eurprd03.prod.outlook.com (2603:10a6:10:3dd::13) by DB4PR03MB9433.eurprd03.prod.outlook.com (2603:10a6:10:3fa::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.38; Tue, 11 Apr 2023 18:44:44 +0000 Received: from DB9PR03MB8847.eurprd03.prod.outlook.com ([fe80::2226:eb03:a8c:a7e5]) by DB9PR03MB8847.eurprd03.prod.outlook.com ([fe80::2226:eb03:a8c:a7e5%2]) with mapi id 15.20.6277.035; Tue, 11 Apr 2023 18:44:44 +0000 From: Sean Anderson To: Vinod Koul , Kishon Vijay Abraham I , linux-phy@lists.infradead.org Cc: Camelia Alexandra Groza , Bagas Sanjaya , Ioana Ciornei , linux-arm-kernel@lists.infradead.org, Madalin Bucur , devicetree@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , linuxppc-dev@lists.ozlabs.org, Sean Anderson , Linus Walleij , Bartosz Golaszewski , =?utf-8?q?Fern=C3=A1ndez_Rojas?= , Jonas Gorski , linux-gpio@vger.kernel.org Subject: [PATCH v13 03/15] dt-bindings: Convert gpio-mmio to yaml Date: Tue, 11 Apr 2023 14:43:00 -0400 Message-Id: <20230411184313.3679145-4-sean.anderson@seco.com> X-Mailer: git-send-email 2.35.1.1320.gc452695387.dirty In-Reply-To: <20230411184313.3679145-1-sean.anderson@seco.com> References: <20230411184313.3679145-1-sean.anderson@seco.com> X-ClientProxiedBy: BL1PR13CA0350.namprd13.prod.outlook.com (2603:10b6:208:2c6::25) To DB9PR03MB8847.eurprd03.prod.outlook.com (2603:10a6:10:3dd::13) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: DB9PR03MB8847:EE_|DB4PR03MB9433:EE_|AM6EUR05FT004:EE_|AS8PR03MB8347:EE_ X-MS-Office365-Filtering-Correlation-Id: 1c1a1bdb-3c70-49c9-8f13-08db3abcda22 X-TrendMicro-CAS-OUT-LOOP-IDENTIFIER: 656f966764b7fb185830381c646b41a1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: HyZd45xN4yrFO70SRKLTdQQ9/QKFQ+ZaurbNUE+gFrpFq/P7TgG+nJBQ520LUmUHnmwL6bfMkAo79EhKYebTfojYEEyvShLZMFUVpx3dwds4GGUXgjhHvvjT3HngwUwtNX6Sbx6u3bs8RSImBpTEaUeFS9VVnLE/fgtgg0J8TikKNzM0kA4AYjg+n5Yh7QvVVSC5fO45doJLJb0/lpObt/00Khykr49I1ywnEitI7JJNaxqKV3Lhejkf6S9mQ2sDr02DYvxhehrhCWRwxbEqYucPz0mgpbG/X2zOiVOmjtAfy2SasUN9nfU6VI+gPOJjNsirmMlZv485U05jXjEaYWFeWh7k7Virb9qTTwT4IIGxAWmd65qW7VKRoCirvUjKHqQQS27Ofj61TPUzgC0ybe9bwShGUMl9FCu6dy01bc5/Q6alfZSiHrDwjPDeh4A/32mhpMss59WyIxFN/Yt7hqBTwKK/jYmmnCjGeSJoRiO1x5zkvrjU8ZIlp+QL4Mc8of2deU2CJF+dGBrwN3jyidU5W+w/043UDtix4hJNhTG4vLCvX200iDiFEpKUOM/EZTIq6ypcsGNHdWBfapH/13VNZ0lQ7Ltr1OBr5v4nFG4= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB9PR03MB8847.eurprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(366004)(39850400004)(396003)(136003)(376002)(346002)(451199021)(316002)(110136005)(38350700002)(38100700002)(54906003)(66556008)(66476007)(8676002)(66946007)(4326008)(86362001)(478600001)(66574015)(186003)(2616005)(26005)(41300700001)(36756003)(6506007)(1076003)(6512007)(2906002)(83380400001)(30864003)(44832011)(8936002)(6666004)(52116002)(5660300002)(7416002)(966005)(6486002);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR03MB9433 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM6EUR05FT004.eop-eur05.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: d26c822b-95d5-40fa-803d-08db3abcd16d X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BrWtBPyvdhSntheaYik6cuJIOpqbv4ftom+uD4U6wVTDQlgzLPL5zEvkHqEfizYj41WNKaweJzInm9OEoEgOx3RbdulY4AFmEhAcWMJ+wZj+HAALEj77BaOCSNtngDDQmXuzxiOLzhXhslD27uEtOjjhus10TzeGIL3tReSLdCp5inFb8mo9ssUYWJrZJOsQMtIv3jLGLQAZNq0Jd04C5MUL/ZyWw68k7CE1mV+2tTwCVpeEAeT/hSjLIl5/GyEXAarEut3hawFEcBOO61D3EsRNjaFBATZ15lPVMroOsYF+CDkEMAuGCNjpi/Stqh0k43XgsGp1zebWPWmf0Ns51mQpUukWqRYfe3SbbMVHvPvteuv5htCEOKYIyrJhxFZ3/fkeVgzVSvLnIRKQkdCD/Dn7NRiU+vgOUNd/qnUE6CT7kyHj+zgEwTekPV0Xe7iajGPJhBon9pk9MxTeG+zWF3xJMad8mXThYh58sduRTlTfRtgW2B2t4DqGp1vGBkSSOhAoKgbLmnVVTT/3tGcAeBEVBETnTTCDUo1jap4frxVfKh/O9qZY/90OkmDumrHvHsSaXn6GCqhkY+9E5lPylam7M+11UI4nqlbI5j/QCxf8nHbS3p5XwZMBB7L58PbeKfTmmrTnVcyAi5bkOjoH7OihpejmxMiTUqXNSXcMvVnMBJiF3GiuxpzUqJAOlbvRE5ave7Wz4ln0AhZK7/41ttV48f8PMLSy8rRESiRCDUyhrIWQ3W2WiZoYA4Uw6Ah1 X-Forefront-Antispam-Report: CIP:20.160.56.80;CTRY:NL;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:inpost-eu.tmcas.trendmicro.com;PTR:inpost-eu.tmcas.trendmicro.com;CAT:NONE;SFS:(13230028)(346002)(136003)(376002)(396003)(39850400004)(5400799015)(451199021)(40470700004)(46966006)(36840700001)(478600001)(70586007)(86362001)(47076005)(40480700001)(40460700003)(36756003)(66574015)(83380400001)(82740400003)(7596003)(7636003)(356005)(2616005)(36860700001)(336012)(34070700002)(316002)(30864003)(2906002)(44832011)(6506007)(110136005)(1076003)(7416002)(6486002)(186003)(54906003)(26005)(6512007)(8676002)(966005)(41300700001)(6666004)(82310400005)(5660300002)(70206006)(8936002)(4326008)(12100799027);DIR:OUT;SFP:1501; X-OriginatorOrg: seco.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2023 18:44:59.0549 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1c1a1bdb-3c70-49c9-8f13-08db3abcda22 X-MS-Exchange-CrossTenant-Id: bebe97c3-6438-442e-ade3-ff17aa50e733 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=bebe97c3-6438-442e-ade3-ff17aa50e733;Ip=[20.160.56.80];Helo=[inpost-eu.tmcas.trendmicro.com] X-MS-Exchange-CrossTenant-AuthSource: AM6EUR05FT004.eop-eur05.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR03MB8347 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This is a generic binding for simple MMIO GPIO controllers. Although we have a single driver for these controllers, they were previously spread over several files. Consolidate them. The register descriptions are adapted from the comments in the source. There is no set order for the registers, and some registers may be omitted. Because of this, reg-names is mandatory, and no order is specified. Rename brcm,bcm6345-gpio to brcm,bcm63xx-gpio to reflect that bcm6345 has moved. Signed-off-by: Sean Anderson Reviewed-by: Linus Walleij --- Linus or Bartosz, feel free to pick this up as the rest of this series may not be merged any time soon. Changes in v13: - Fix references to brcm,bcm63xx-gpio.yaml (neé brcm,bcm6345-gpio) Changes in v12: - Put compatible first - Keep gpio-controller to one line - Add little-endian property - Alphabetize compatibles - Remove some comments - Remove some examples with insufficient novelty Changes in v11: - Keep empty (or almost-empty) properties on a single line - Don't use | unnecessarily - Use gpio as the node name for examples - Rename brcm,bcm6345-gpio.yaml to brcm,bcm63xx-gpio.yaml Changes in v10: - New ...m6345-gpio.yaml => brcm,bcm63xx-gpio.yaml} | 16 +-- .../devicetree/bindings/gpio/gpio-mmio.yaml | 117 ++++++++++++++++++ .../bindings/gpio/ni,169445-nand-gpio.txt | 38 ------ .../devicetree/bindings/gpio/wd,mbl-gpio.txt | 38 ------ .../mfd/brcm,bcm6318-gpio-sysctl.yaml | 4 +- .../mfd/brcm,bcm63268-gpio-sysctl.yaml | 4 +- .../mfd/brcm,bcm6328-gpio-sysctl.yaml | 4 +- .../mfd/brcm,bcm6358-gpio-sysctl.yaml | 4 +- .../mfd/brcm,bcm6362-gpio-sysctl.yaml | 4 +- .../mfd/brcm,bcm6368-gpio-sysctl.yaml | 4 +- 10 files changed, 130 insertions(+), 103 deletions(-) rename Documentation/devicetree/bindings/gpio/{brcm,bcm6345-gpio.yaml => brcm,bcm63xx-gpio.yaml} (78%) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-mmio.yaml delete mode 100644 Documentation/devicetree/bindings/gpio/ni,169445-nand-gpio.txt delete mode 100644 Documentation/devicetree/bindings/gpio/wd,mbl-gpio.txt diff --git a/Documentation/devicetree/bindings/gpio/brcm,bcm6345-gpio.yaml b/Documentation/devicetree/bindings/gpio/brcm,bcm63xx-gpio.yaml similarity index 78% rename from Documentation/devicetree/bindings/gpio/brcm,bcm6345-gpio.yaml rename to Documentation/devicetree/bindings/gpio/brcm,bcm63xx-gpio.yaml index 4d69f79df859..e11f4af49c52 100644 --- a/Documentation/devicetree/bindings/gpio/brcm,bcm6345-gpio.yaml +++ b/Documentation/devicetree/bindings/gpio/brcm,bcm63xx-gpio.yaml @@ -4,7 +4,7 @@ $id: http://devicetree.org/schemas/gpio/brcm,bcm6345-gpio.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: Broadcom BCM6345 GPIO controller +title: Broadcom BCM63xx GPIO controller maintainers: - Álvaro Fernández Rojas @@ -18,8 +18,6 @@ description: |+ BCM6338 have 8-bit data and dirout registers, where GPIO state can be read and/or written, and the direction changed from input to output. - BCM6345 have 16-bit data and dirout registers, where GPIO state can be read - and/or written, and the direction changed from input to output. BCM6318, BCM6328, BCM6358, BCM6362, BCM6368 and BCM63268 have 32-bit data and dirout registers, where GPIO state can be read and/or written, and the direction changed from input to output. @@ -29,7 +27,6 @@ properties: enum: - brcm,bcm6318-gpio - brcm,bcm6328-gpio - - brcm,bcm6345-gpio - brcm,bcm6358-gpio - brcm,bcm6362-gpio - brcm,bcm6368-gpio @@ -63,17 +60,6 @@ required: additionalProperties: false examples: - - | - gpio@fffe0406 { - compatible = "brcm,bcm6345-gpio"; - reg-names = "dirout", "dat"; - reg = <0xfffe0406 2>, <0xfffe040a 2>; - native-endian; - - gpio-controller; - #gpio-cells = <2>; - }; - - | gpio@0 { compatible = "brcm,bcm63268-gpio"; diff --git a/Documentation/devicetree/bindings/gpio/gpio-mmio.yaml b/Documentation/devicetree/bindings/gpio/gpio-mmio.yaml new file mode 100644 index 000000000000..b394e058256e --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/gpio-mmio.yaml @@ -0,0 +1,117 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/gpio-mmio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Generic MMIO GPIO + +maintainers: + - Linus Walleij + - Bartosz Golaszewski + +description: + Some simple GPIO controllers may consist of a single data register or a pair + of set/clear-bit registers. Such controllers are common for glue logic in + FPGAs or ASICs. Commonly, these controllers are accessed over memory-mapped + NAND-style parallel busses. + +properties: + compatible: + enum: + - brcm,bcm6345-gpio + - ni,169445-nand-gpio + - wd,mbl-gpio # Western Digital MyBook Live memory-mapped GPIO controller + + big-endian: true + + '#gpio-cells': + const: 2 + + gpio-controller: true + + little-endian: true + + reg: + minItems: 1 + description: + A list of registers in the controller. The width of each register is + determined by its size. All registers must have the same width. The number + of GPIOs is set by the width, with bit 0 corresponding to GPIO 0. + items: + - description: + Register to READ the value of the GPIO lines. If GPIO line is high, + the bit will be set. If the GPIO line is low, the bit will be cleared. + This register may also be used to drive GPIOs if the SET register is + omitted. + - description: + Register to SET the value of the GPIO lines. Setting a bit in this + register will drive the GPIO line high. + - description: + Register to CLEAR the value of the GPIO lines. Setting a bit in this + register will drive the GPIO line low. If this register is omitted, + the SET register will be used to clear the GPIO lines as well, by + actively writing the line with 0. + - description: + Register to set the line as OUTPUT. Setting a bit in this register + will turn that line into an output line. Conversely, clearing a bit + will turn that line into an input. + - description: + Register to set this line as INPUT. Setting a bit in this register + will turn that line into an input line. Conversely, clearing a bit + will turn that line into an output. + + reg-names: + minItems: 1 + maxItems: 5 + items: + enum: + - dat + - set + - clr + - dirout + - dirin + + native-endian: true + + no-output: + $ref: /schemas/types.yaml#/definitions/flag + description: + If this property is present, the controller cannot drive the GPIO lines. + +required: + - compatible + - reg + - reg-names + - '#gpio-cells' + - gpio-controller + +additionalProperties: false + +examples: + - | + gpio@1f300010 { + compatible = "ni,169445-nand-gpio"; + reg = <0x1f300010 0x4>; + reg-names = "dat"; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@e0100000 { + compatible = "wd,mbl-gpio"; + reg-names = "dat"; + reg = <0xe0100000 0x1>; + #gpio-cells = <2>; + gpio-controller; + no-output; + }; + + gpio@fffe0406 { + compatible = "brcm,bcm6345-gpio"; + reg-names = "dirout", "dat"; + reg = <0xfffe0406 2>, <0xfffe040a 2>; + native-endian; + gpio-controller; + #gpio-cells = <2>; + }; diff --git a/Documentation/devicetree/bindings/gpio/ni,169445-nand-gpio.txt b/Documentation/devicetree/bindings/gpio/ni,169445-nand-gpio.txt deleted file mode 100644 index ca2f8c745a27..000000000000 --- a/Documentation/devicetree/bindings/gpio/ni,169445-nand-gpio.txt +++ /dev/null @@ -1,38 +0,0 @@ -Bindings for the National Instruments 169445 GPIO NAND controller - -The 169445 GPIO NAND controller has two memory mapped GPIO registers, one -for input (the ready signal) and one for output (control signals). It is -intended to be used with the GPIO NAND driver. - -Required properties: - - compatible: should be "ni,169445-nand-gpio" - - reg-names: must contain - "dat" - data register - - reg: address + size pairs describing the GPIO register sets; - order must correspond with the order of entries in reg-names - - #gpio-cells: must be set to 2. The first cell is the pin number and - the second cell is used to specify the gpio polarity: - 0 = active high - 1 = active low - - gpio-controller: Marks the device node as a gpio controller. - -Optional properties: - - no-output: disables driving output on the pins - -Examples: - gpio1: nand-gpio-out@1f300010 { - compatible = "ni,169445-nand-gpio"; - reg = <0x1f300010 0x4>; - reg-names = "dat"; - gpio-controller; - #gpio-cells = <2>; - }; - - gpio2: nand-gpio-in@1f300014 { - compatible = "ni,169445-nand-gpio"; - reg = <0x1f300014 0x4>; - reg-names = "dat"; - gpio-controller; - #gpio-cells = <2>; - no-output; - }; diff --git a/Documentation/devicetree/bindings/gpio/wd,mbl-gpio.txt b/Documentation/devicetree/bindings/gpio/wd,mbl-gpio.txt deleted file mode 100644 index 038c3a6a1f4d..000000000000 --- a/Documentation/devicetree/bindings/gpio/wd,mbl-gpio.txt +++ /dev/null @@ -1,38 +0,0 @@ -Bindings for the Western Digital's MyBook Live memory-mapped GPIO controllers. - -The Western Digital MyBook Live has two memory-mapped GPIO controllers. -Both GPIO controller only have a single 8-bit data register, where GPIO -state can be read and/or written. - -Required properties: - - compatible: should be "wd,mbl-gpio" - - reg-names: must contain - "dat" - data register - - reg: address + size pairs describing the GPIO register sets; - order must correspond with the order of entries in reg-names - - #gpio-cells: must be set to 2. The first cell is the pin number and - the second cell is used to specify the gpio polarity: - 0 = active high - 1 = active low - - gpio-controller: Marks the device node as a gpio controller. - -Optional properties: - - no-output: GPIOs are read-only. - -Examples: - gpio0: gpio0@e0000000 { - compatible = "wd,mbl-gpio"; - reg-names = "dat"; - reg = <0xe0000000 0x1>; - #gpio-cells = <2>; - gpio-controller; - }; - - gpio1: gpio1@e0100000 { - compatible = "wd,mbl-gpio"; - reg-names = "dat"; - reg = <0xe0100000 0x1>; - #gpio-cells = <2>; - gpio-controller; - no-output; - }; diff --git a/Documentation/devicetree/bindings/mfd/brcm,bcm6318-gpio-sysctl.yaml b/Documentation/devicetree/bindings/mfd/brcm,bcm6318-gpio-sysctl.yaml index 148f1da47603..9f9a14af875e 100644 --- a/Documentation/devicetree/bindings/mfd/brcm,bcm6318-gpio-sysctl.yaml +++ b/Documentation/devicetree/bindings/mfd/brcm,bcm6318-gpio-sysctl.yaml @@ -35,11 +35,11 @@ patternProperties: "^gpio@[0-9a-f]+$": # Child node type: object - $ref: "../gpio/brcm,bcm6345-gpio.yaml" + $ref: "../gpio/brcm,bcm63xx-gpio.yaml" description: GPIO controller for the SoC GPIOs. This child node definition should follow the bindings specified in - Documentation/devicetree/bindings/gpio/brcm,bcm6345-gpio.yaml. + Documentation/devicetree/bindings/gpio/brcm,bcm63xx-gpio.yaml. "^pinctrl@[0-9a-f]+$": # Child node diff --git a/Documentation/devicetree/bindings/mfd/brcm,bcm63268-gpio-sysctl.yaml b/Documentation/devicetree/bindings/mfd/brcm,bcm63268-gpio-sysctl.yaml index 7e582243ea76..803277dd2725 100644 --- a/Documentation/devicetree/bindings/mfd/brcm,bcm63268-gpio-sysctl.yaml +++ b/Documentation/devicetree/bindings/mfd/brcm,bcm63268-gpio-sysctl.yaml @@ -35,11 +35,11 @@ patternProperties: "^gpio@[0-9a-f]+$": # Child node type: object - $ref: "../gpio/brcm,bcm6345-gpio.yaml" + $ref: "../gpio/brcm,bcm63xx-gpio.yaml" description: GPIO controller for the SoC GPIOs. This child node definition should follow the bindings specified in - Documentation/devicetree/bindings/gpio/brcm,bcm6345-gpio.yaml. + Documentation/devicetree/bindings/gpio/brcm,bcm63xx-gpio.yaml. "^pinctrl@[0-9a-f]+$": # Child node diff --git a/Documentation/devicetree/bindings/mfd/brcm,bcm6328-gpio-sysctl.yaml b/Documentation/devicetree/bindings/mfd/brcm,bcm6328-gpio-sysctl.yaml index 2230848e11c3..b9a6856ce970 100644 --- a/Documentation/devicetree/bindings/mfd/brcm,bcm6328-gpio-sysctl.yaml +++ b/Documentation/devicetree/bindings/mfd/brcm,bcm6328-gpio-sysctl.yaml @@ -35,11 +35,11 @@ patternProperties: "^gpio@[0-9a-f]+$": # Child node type: object - $ref: "../gpio/brcm,bcm6345-gpio.yaml" + $ref: "../gpio/brcm,bcm63xx-gpio.yaml" description: GPIO controller for the SoC GPIOs. This child node definition should follow the bindings specified in - Documentation/devicetree/bindings/gpio/brcm,bcm6345-gpio.yaml. + Documentation/devicetree/bindings/gpio/brcm,bcm63xx-gpio.yaml. "^pinctrl@[0-9a-f]+$": # Child node diff --git a/Documentation/devicetree/bindings/mfd/brcm,bcm6358-gpio-sysctl.yaml b/Documentation/devicetree/bindings/mfd/brcm,bcm6358-gpio-sysctl.yaml index c06693b6f7aa..4651fe4dde07 100644 --- a/Documentation/devicetree/bindings/mfd/brcm,bcm6358-gpio-sysctl.yaml +++ b/Documentation/devicetree/bindings/mfd/brcm,bcm6358-gpio-sysctl.yaml @@ -35,11 +35,11 @@ patternProperties: "^gpio@[0-9a-f]+$": # Child node type: object - $ref: "../gpio/brcm,bcm6345-gpio.yaml" + $ref: "../gpio/brcm,bcm63xx-gpio.yaml" description: GPIO controller for the SoC GPIOs. This child node definition should follow the bindings specified in - Documentation/devicetree/bindings/gpio/brcm,bcm6345-gpio.yaml. + Documentation/devicetree/bindings/gpio/brcm,bcm63xx-gpio.yaml. "^pinctrl@[0-9a-f]+$": # Child node diff --git a/Documentation/devicetree/bindings/mfd/brcm,bcm6362-gpio-sysctl.yaml b/Documentation/devicetree/bindings/mfd/brcm,bcm6362-gpio-sysctl.yaml index c560bede0e37..0330b621fd38 100644 --- a/Documentation/devicetree/bindings/mfd/brcm,bcm6362-gpio-sysctl.yaml +++ b/Documentation/devicetree/bindings/mfd/brcm,bcm6362-gpio-sysctl.yaml @@ -35,11 +35,11 @@ patternProperties: "^gpio@[0-9a-f]+$": # Child node type: object - $ref: "../gpio/brcm,bcm6345-gpio.yaml" + $ref: "../gpio/brcm,bcm63xx-gpio.yaml" description: GPIO controller for the SoC GPIOs. This child node definition should follow the bindings specified in - Documentation/devicetree/bindings/gpio/brcm,bcm6345-gpio.yaml. + Documentation/devicetree/bindings/gpio/brcm,bcm63xx-gpio.yaml. "^pinctrl@[0-9a-f]+$": # Child node diff --git a/Documentation/devicetree/bindings/mfd/brcm,bcm6368-gpio-sysctl.yaml b/Documentation/devicetree/bindings/mfd/brcm,bcm6368-gpio-sysctl.yaml index c534f5f2404e..82d3e4415bda 100644 --- a/Documentation/devicetree/bindings/mfd/brcm,bcm6368-gpio-sysctl.yaml +++ b/Documentation/devicetree/bindings/mfd/brcm,bcm6368-gpio-sysctl.yaml @@ -35,11 +35,11 @@ patternProperties: "^gpio@[0-9a-f]+$": # Child node type: object - $ref: "../gpio/brcm,bcm6345-gpio.yaml" + $ref: "../gpio/brcm,bcm63xx-gpio.yaml" description: GPIO controller for the SoC GPIOs. This child node definition should follow the bindings specified in - Documentation/devicetree/bindings/gpio/brcm,bcm6345-gpio.yaml. + Documentation/devicetree/bindings/gpio/brcm,bcm63xx-gpio.yaml. "^pinctrl@[0-9a-f]+$": # Child node From patchwork Tue Apr 11 18:43:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 1767800 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=seco.com header.i=@seco.com header.a=rsa-sha256 header.s=selector1 header.b=NsY9hj1e; dkim=pass (2048-bit key) header.d=seco.com header.i=@seco.com header.a=rsa-sha256 header.s=selector1 header.b=NsY9hj1e; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4Pwvsf4Fsgz1yXv for ; Wed, 12 Apr 2023 04:45:10 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229917AbjDKSpI (ORCPT ); Tue, 11 Apr 2023 14:45:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229879AbjDKSpF (ORCPT ); Tue, 11 Apr 2023 14:45:05 -0400 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03hn2202.outbound.protection.outlook.com [52.100.14.202]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A115CED for ; Tue, 11 Apr 2023 11:45:04 -0700 (PDT) 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=Qv1zXTjvA9ZGaObtt1TjejTod4QaRoQztRWwnCWrZJ4=; b=NsY9hj1eph/aTxMbL/TDN8CTRt4e21p8DVuVZuV948RckcIUMq7mX+CLFp6XnPPGpXvTPGgI+N0CIMQoeus8V+/OcOnyt7OJK0uBgsQc7FXkc0Xlqzq0I5FvVor9CrLX5MOl5oAjrPP21IOYfLzfi4X0Pk11OhhSahx7b/7eWT0vioTATDDDeKPzSnNaVwbzCPQfR3QpBBqsQn0ZV4uRF5fVK3+xaFLAgNxkhOuhPiEzZ4+fXMmWTHl6XIDradaet7iloo2eQJQFf2BG/1/p+e3CnyVDX7Q2+33DTcSw/IaU/9VipiXPEbLPt0dLlnU6cv1bzvC/+dsrafnjyQxxdg== Received: from AS8PR04CA0045.eurprd04.prod.outlook.com (2603:10a6:20b:312::20) by AS2PR03MB9648.eurprd03.prod.outlook.com (2603:10a6:20b:5e8::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.34; Tue, 11 Apr 2023 18:45:02 +0000 Received: from AM6EUR05FT047.eop-eur05.prod.protection.outlook.com (2603:10a6:20b:312:cafe::bb) by AS8PR04CA0045.outlook.office365.com (2603:10a6:20b:312::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.40 via Frontend Transport; Tue, 11 Apr 2023 18:45:02 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 20.160.56.80) smtp.mailfrom=seco.com; dkim=pass (signature was verified) header.d=seco.com;dmarc=pass action=none header.from=seco.com; Received-SPF: Pass (protection.outlook.com: domain of seco.com designates 20.160.56.80 as permitted sender) receiver=protection.outlook.com; client-ip=20.160.56.80; helo=inpost-eu.tmcas.trendmicro.com; pr=C Received: from inpost-eu.tmcas.trendmicro.com (20.160.56.80) by AM6EUR05FT047.mail.protection.outlook.com (10.233.241.167) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.29 via Frontend Transport; Tue, 11 Apr 2023 18:45:02 +0000 Received: from outmta (unknown [192.168.82.132]) by inpost-eu.tmcas.trendmicro.com (Trend Micro CAS) with ESMTP id 986CA2008026E; Tue, 11 Apr 2023 18:45:01 +0000 (UTC) Received: from EUR03-AM7-obe.outbound.protection.outlook.com (unknown [104.47.51.239]) by repre.tmcas.trendmicro.com (Trend Micro CAS) with ESMTPS id AAB8A20080078; Tue, 11 Apr 2023 18:46:03 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H8RSt+6/O5fg6NUn/p/kJz4UGEVCO1JaSTEYbsLWaYUJwPbqSSG/ydjw3MxhBz2TblicdL/QS/02wbpr+RjT1+zbJ2CeZLj0Z3fE9WDerN8P3+D3DdEGR92nwg7R1FzB+KZSoFLkuk3Oy7aQnVaMCs1pbD5+40AzpUfUul6asEcrWNFKQJ487tyv8aHlhrsrZvdPlIoo2fABdHTUQIeV1oxhy5V+Qxpx2pTEV+BWbw3RM4BkX9K/cyf6nhUg0LyUJyaBqnSo7JzOPg9QABJsBPwee+wukRprJIZcqrpJxJbg7Nvg7yCawNhmdlds2oNujTGiYriD3KU1wdHQPBbAVA== 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=Qv1zXTjvA9ZGaObtt1TjejTod4QaRoQztRWwnCWrZJ4=; b=D8OOSffnRkEae/AD8zQ+ZwkRsRc5K/Z4tIC7EW/l+qAUaQ7IJJyOB+acZrNc7rp14X29c3o1P7ssrzFK371O7Y6hf5yat8Ke2VohPzLqJCVLi57+voGWsU4sUx/5QrQUtxTxrG6IAHhGvnGDioy6v0Z5ncsL49sqhynnTlIB8Ji94lM1uOnl0lEGW1n2iW2oZoC2aw7fBNnhRr+ZBrcTsIR4G+pDjQuEAmv7a3TQRXZSH9cwZ1tjIwwvxqQ71OCxg1iPfWUr2JGvWhlWLQTwv01OS5M1HP7fQZi5WspJNGt1pf3RCS0DnBj5+77HLc4DT9IvfV29AVhUiiKF91BFyA== 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=Qv1zXTjvA9ZGaObtt1TjejTod4QaRoQztRWwnCWrZJ4=; b=NsY9hj1eph/aTxMbL/TDN8CTRt4e21p8DVuVZuV948RckcIUMq7mX+CLFp6XnPPGpXvTPGgI+N0CIMQoeus8V+/OcOnyt7OJK0uBgsQc7FXkc0Xlqzq0I5FvVor9CrLX5MOl5oAjrPP21IOYfLzfi4X0Pk11OhhSahx7b/7eWT0vioTATDDDeKPzSnNaVwbzCPQfR3QpBBqsQn0ZV4uRF5fVK3+xaFLAgNxkhOuhPiEzZ4+fXMmWTHl6XIDradaet7iloo2eQJQFf2BG/1/p+e3CnyVDX7Q2+33DTcSw/IaU/9VipiXPEbLPt0dLlnU6cv1bzvC/+dsrafnjyQxxdg== Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=seco.com; Received: from DB9PR03MB8847.eurprd03.prod.outlook.com (2603:10a6:10:3dd::13) by DB4PR03MB9433.eurprd03.prod.outlook.com (2603:10a6:10:3fa::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.38; Tue, 11 Apr 2023 18:44:46 +0000 Received: from DB9PR03MB8847.eurprd03.prod.outlook.com ([fe80::2226:eb03:a8c:a7e5]) by DB9PR03MB8847.eurprd03.prod.outlook.com ([fe80::2226:eb03:a8c:a7e5%2]) with mapi id 15.20.6277.035; Tue, 11 Apr 2023 18:44:46 +0000 From: Sean Anderson To: Vinod Koul , Kishon Vijay Abraham I , linux-phy@lists.infradead.org Cc: Camelia Alexandra Groza , Bagas Sanjaya , Ioana Ciornei , linux-arm-kernel@lists.infradead.org, Madalin Bucur , devicetree@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , linuxppc-dev@lists.ozlabs.org, Sean Anderson , Rob Herring Subject: [PATCH v13 04/15] dt-bindings: gpio-mmio: Add compatible for QIXIS Date: Tue, 11 Apr 2023 14:43:01 -0400 Message-Id: <20230411184313.3679145-5-sean.anderson@seco.com> X-Mailer: git-send-email 2.35.1.1320.gc452695387.dirty In-Reply-To: <20230411184313.3679145-1-sean.anderson@seco.com> References: <20230411184313.3679145-1-sean.anderson@seco.com> X-ClientProxiedBy: BL1PR13CA0350.namprd13.prod.outlook.com (2603:10b6:208:2c6::25) To DB9PR03MB8847.eurprd03.prod.outlook.com (2603:10a6:10:3dd::13) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: DB9PR03MB8847:EE_|DB4PR03MB9433:EE_|AM6EUR05FT047:EE_|AS2PR03MB9648:EE_ X-MS-Office365-Filtering-Correlation-Id: a21b3d78-5247-4a59-8b7f-08db3abcdbfd X-TrendMicro-CAS-OUT-LOOP-IDENTIFIER: 656f966764b7fb185830381c646b41a1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: GOB5SfgvfsRnC5sCZqNxKGMqRNBV1HZcV7boJkMURNPVGYmcr+n1evpIf2yRpIWaOE52c3p0xnsQI3Vbx2OHmjjKGNsbS2gE/lcFvnrU0mV4bmxpSdNTBoOXPic4UTYCtIRGILdgOsL5jufzH0wxFzWhfXn/r2/+15w+V1FH9VZxSN4nyKkWQExzM8hVMu8qwOaWu7tgfJNNKf29+/PasxvAn4IPIZ1Peahoz9zYiB4LSEucbn+QhwhqXzoY+tPA9li88stGZ1rmLUT8WMb12ERvnivIwQAb+biINMMJgTah4IPtsaka1ur4moIfrvPxXpBLz0G77tJ69qsUZW7rG4rCVG5kCnXenC53qleb3X4F4ojaViA89JQhb+7VzxR3O+jSIL81XiPlS5ZYtLDJaRwu0gT8mFDvz7LUMREt6NTBSfjl7PTBkEiDx6wH8cEi76SfgktdjIqX7yK4NKODn5hoTYkJZpAitaY3fATQm3+4qDz+7cTTCUGXseOykuQ0PGWjHT5u9gZ7ARSquMp2qlf1sakpWoJqpA0SOy7t8AZ8p05hrl6VFlRIsVOw3OgSMTIHi0dGsjX5QiMcawtkhIbbvOGTB/58IXKMZ7PRQ1ZBfS1zXOmu2+KoOznxzW0J X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB9PR03MB8847.eurprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(366004)(39850400004)(396003)(136003)(376002)(346002)(451199021)(316002)(110136005)(38350700002)(38100700002)(54906003)(66556008)(66476007)(8676002)(66946007)(4326008)(86362001)(478600001)(186003)(2616005)(26005)(41300700001)(36756003)(6506007)(1076003)(6512007)(2906002)(83380400001)(44832011)(8936002)(6666004)(52116002)(5660300002)(7416002)(6486002);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR03MB9433 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM6EUR05FT047.eop-eur05.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: f81abcbb-af7c-4162-7cfd-08db3abcd26a X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OjqYmjOwAocqB83K8/WG/Hk/qQx7i8DoBaLXVGMCZU5DqC7ZO5UQFES0VgBxrtoVEZihAnYhIVvUYQgJ4V4RmaMEwp6mbaaIS0zDiw64gCtq5pveKd+VVQ84sUJVKpcEjenIWFZOf77/O1gkskMC+OVWVgD+rq77GGJxViwQIYV3zQ8w2WBRRgdbfBBrSTI3Kr8ZEGdPhO0tfJ7xwn24V4rvsNMY1GtQ8pRQnUfcWhf7nToIcXWqp8r7j01H2adys8evgc+X2lV/xOE3yVJT3PzvdbdIf9CSLrpjtAWwMMDCBSU64feWJOk+6TO4Qy88z9FONgvf08uEVOEgkhQynr8PzY3qy/Hs+i9gte719IBtqWnjefFXH/BhpP9zlXpXr/htPNGSXXCtP2NBTByu7CDdnGD5qAYmYJ7wUAL7s5gPA5TS03e4ZJ2qS+74Ej6mMWCnQpJtuCfXUzPeIoWE0DL+dFCD2e2KbzZICr82eUW1OiKkRupxDfJe820Euo61ysCBBz+gHVxfRNaekBUSsHGz5TrvutC4pF0XwJn72d/awNkFQORVv5UqLwyAEFSCy/fFDQpU3Eba7FzuQnQQpcy+e5kVGuj7jnsYPEmwnklQXIbEazCvbmwmO/8rjBELkdLwMQb2vLL3lMkqMCtcQl3l7I/Hmn6g7HCxoygwTLH73W0xXirnWvXgx9q+jUpt+LKZAUU+UmA0c1XE4xB2cnW/UlUeXxsqCNvwijAEp3+7t8/MfMO+2rq1BPXYjddNNrCS1oOg9s8DgaT2dHHVsg== X-Forefront-Antispam-Report: CIP:20.160.56.80;CTRY:NL;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:inpost-eu.tmcas.trendmicro.com;PTR:inpost-eu.tmcas.trendmicro.com;CAT:NONE;SFS:(13230028)(136003)(396003)(346002)(376002)(39850400004)(5400799015)(451199021)(36840700001)(46966006)(40470700004)(110136005)(54906003)(36860700001)(7596003)(82740400003)(356005)(7636003)(336012)(82310400005)(2616005)(47076005)(316002)(83380400001)(478600001)(186003)(8676002)(86362001)(4326008)(7416002)(2906002)(70586007)(26005)(6512007)(34070700002)(70206006)(1076003)(6506007)(6666004)(44832011)(36756003)(5660300002)(40460700003)(40480700001)(8936002)(41300700001)(6486002)(12100799027);DIR:OUT;SFP:1501; X-OriginatorOrg: seco.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2023 18:45:02.1677 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a21b3d78-5247-4a59-8b7f-08db3abcdbfd X-MS-Exchange-CrossTenant-Id: bebe97c3-6438-442e-ade3-ff17aa50e733 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=bebe97c3-6438-442e-ade3-ff17aa50e733;Ip=[20.160.56.80];Helo=[inpost-eu.tmcas.trendmicro.com] X-MS-Exchange-CrossTenant-AuthSource: AM6EUR05FT047.eop-eur05.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR03MB9648 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org NXP has a "QIXIS" FPGA on several of their reference design boards. On the LS1088ARDB there are several registers which control GPIOs. These can be modeled with the MMIO GPIO driver. Signed-off-by: Sean Anderson Reviewed-by: Rob Herring --- (no changes since v10) Changes in v10: - New .../devicetree/bindings/gpio/gpio-mmio.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/gpio/gpio-mmio.yaml b/Documentation/devicetree/bindings/gpio/gpio-mmio.yaml index b394e058256e..5abf3dabcf39 100644 --- a/Documentation/devicetree/bindings/gpio/gpio-mmio.yaml +++ b/Documentation/devicetree/bindings/gpio/gpio-mmio.yaml @@ -18,10 +18,16 @@ description: properties: compatible: - enum: - - brcm,bcm6345-gpio - - ni,169445-nand-gpio - - wd,mbl-gpio # Western Digital MyBook Live memory-mapped GPIO controller + oneOf: + - enum: + - brcm,bcm6345-gpio + - ni,169445-nand-gpio + - wd,mbl-gpio # Western Digital MyBook Live memory-mapped GPIO controller + - items: + - enum: + - fsl,fpga-qixis-los-stat + - fsl,fpga-qixis-brdcfg9 + - const: ni,169445-nand-gpio big-endian: true From patchwork Tue Apr 11 18:43:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 1767801 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=seco.com header.i=@seco.com header.a=rsa-sha256 header.s=selector1 header.b=c5+gZ2s1; dkim=pass (2048-bit key) header.d=seco.com header.i=@seco.com header.a=rsa-sha256 header.s=selector1 header.b=c5+gZ2s1; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4Pwvsg0Pqfz1yZP for ; Wed, 12 Apr 2023 04:45:11 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229879AbjDKSpJ (ORCPT ); Tue, 11 Apr 2023 14:45:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229888AbjDKSpF (ORCPT ); Tue, 11 Apr 2023 14:45:05 -0400 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-cy1gcc01bn2011.outbound.protection.outlook.com [52.100.19.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 185B310EA; Tue, 11 Apr 2023 11:45:03 -0700 (PDT) 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=c5+gZ2s1Urwk/vUo1PNLp+DSM8UKLyMfMUlUqG53kzY2jxyLHkFNTxISRSWHjYytAdtXLWGKEJCpcT1gQcimhrgfLGHX2R1JAXqpYtFfWkArtTcQ8daykbP3+RISQ9oTY7C+uunwGDzEFI7KpVzJB+Ocmdc+c3dXH2jfbIgPJ9DnLEkZ06TDxVS9DrjYe5udfIsnWPiwJETEOUy3Hu8CjzfOLTa4/BY+QSiDRp3t579g9m8SVdF0xa5Mgkdykt5TPLIeiEEA6a8oGg2q6N7qODtA+DXFjF83/z3V4/VJpSVWAWTtj5jlWxaoh67qyQo2WhM9/c94efa9LaF++3UrVg== Received: from AS9PR05CA0067.eurprd05.prod.outlook.com (2603:10a6:20b:499::23) by AS8PR03MB6808.eurprd03.prod.outlook.com (2603:10a6:20b:29c::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.38; Tue, 11 Apr 2023 18:44:59 +0000 Received: from AM6EUR05FT054.eop-eur05.prod.protection.outlook.com (2603:10a6:20b:499:cafe::65) by AS9PR05CA0067.outlook.office365.com (2603:10a6:20b:499::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.40 via Frontend Transport; Tue, 11 Apr 2023 18:44:59 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 20.160.56.84) smtp.mailfrom=seco.com; dkim=pass (signature was verified) header.d=seco.com;dmarc=pass action=none header.from=seco.com; Received-SPF: Pass (protection.outlook.com: domain of seco.com designates 20.160.56.84 as permitted sender) receiver=protection.outlook.com; client-ip=20.160.56.84; helo=inpost-eu.tmcas.trendmicro.com; pr=C Received: from inpost-eu.tmcas.trendmicro.com (20.160.56.84) by AM6EUR05FT054.mail.protection.outlook.com (10.233.240.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.28 via Frontend Transport; Tue, 11 Apr 2023 18:44:59 +0000 Received: from outmta (unknown [192.168.82.135]) by inpost-eu.tmcas.trendmicro.com (Trend Micro CAS) with ESMTP id 157122008026F; Tue, 11 Apr 2023 18:44:59 +0000 (UTC) Received: from EUR03-AM7-obe.outbound.protection.outlook.com (unknown [104.47.51.239]) by repre.tmcas.trendmicro.com (Trend Micro CAS) with ESMTPS id 4769220080079; Tue, 11 Apr 2023 18:46:04 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nNYpJ7fEKd0FuXr/rtU2bCcCkasQfF09SZZi5kRR/alJV/XBWyQu8+B6v3nVbOkSHMaHUqhbkumltl7sEzdF6oVos+CjHjdAIDPFpV9ad81MGuVJyCqnE2CXHgYmX6Dt+CIGrTVbp4KSd0OYVkfb5gBX4hf5FSdhTHfE8KCO3fj6oatPQCT0p319d4wzetCWomRbO0DuyyRkfqItK4jt6lRNqd8SC8wlESBEKhXybXnp5iq9YBB+HNkqjXgyFJlJwwN+HXBv+sFbjB3ZTv+hqAcYy3C/m/Exj8hplAwCxGQ2TxcJAgBMOvazV0PO3wpbLtuSm25Jmpt4KOFHfHXPHQ== 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=d0+f6z380xqbq2YbPl0K1TSen02ZvzIsWwdRmde9FIohXBrkV94H/DDBJ0tjRVVgpROFlIfPuBkA5FJayWvZrLDQcfIbTsE5KIF1X1c2QoSdZlzxHgt4mb5Yy/9rdUbvN5eVkBFE3lI2MKgopFQsIc+3qJ2ElpqzJ1a9Qa/B6WTdcAycnTqV5piQMqjsBf2lq1rMf8y5jC57f8MUIeyAlcTrOxD8ab25MVDIlSfNkEdNHOVUpUna4s62kK0ZH38U4VDaJoO3V77v6kZTaabK7rf+BFqYnnRG0c27dyjTQIk7iHC3572LaKLNsYm3tH4/ohx57Xl32JOgNFIAtUi23A== 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=c5+gZ2s1Urwk/vUo1PNLp+DSM8UKLyMfMUlUqG53kzY2jxyLHkFNTxISRSWHjYytAdtXLWGKEJCpcT1gQcimhrgfLGHX2R1JAXqpYtFfWkArtTcQ8daykbP3+RISQ9oTY7C+uunwGDzEFI7KpVzJB+Ocmdc+c3dXH2jfbIgPJ9DnLEkZ06TDxVS9DrjYe5udfIsnWPiwJETEOUy3Hu8CjzfOLTa4/BY+QSiDRp3t579g9m8SVdF0xa5Mgkdykt5TPLIeiEEA6a8oGg2q6N7qODtA+DXFjF83/z3V4/VJpSVWAWTtj5jlWxaoh67qyQo2WhM9/c94efa9LaF++3UrVg== Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=seco.com; Received: from DB9PR03MB8847.eurprd03.prod.outlook.com (2603:10a6:10:3dd::13) by DB4PR03MB9433.eurprd03.prod.outlook.com (2603:10a6:10:3fa::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.38; Tue, 11 Apr 2023 18:44:48 +0000 Received: from DB9PR03MB8847.eurprd03.prod.outlook.com ([fe80::2226:eb03:a8c:a7e5]) by DB9PR03MB8847.eurprd03.prod.outlook.com ([fe80::2226:eb03:a8c:a7e5%2]) with mapi id 15.20.6277.035; Tue, 11 Apr 2023 18:44:48 +0000 From: Sean Anderson To: Vinod Koul , Kishon Vijay Abraham I , linux-phy@lists.infradead.org Cc: Camelia Alexandra Groza , Bagas Sanjaya , Ioana Ciornei , linux-arm-kernel@lists.infradead.org, Madalin Bucur , devicetree@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , linuxppc-dev@lists.ozlabs.org, Sean Anderson , Rob Herring , Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org Subject: [PATCH v13 05/15] dt-bindings: clock: Add ids for Lynx 10g PLLs Date: Tue, 11 Apr 2023 14:43:02 -0400 Message-Id: <20230411184313.3679145-6-sean.anderson@seco.com> X-Mailer: git-send-email 2.35.1.1320.gc452695387.dirty In-Reply-To: <20230411184313.3679145-1-sean.anderson@seco.com> References: <20230411184313.3679145-1-sean.anderson@seco.com> X-ClientProxiedBy: BL1PR13CA0350.namprd13.prod.outlook.com (2603:10b6:208:2c6::25) To DB9PR03MB8847.eurprd03.prod.outlook.com (2603:10a6:10:3dd::13) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: DB9PR03MB8847:EE_|DB4PR03MB9433:EE_|AM6EUR05FT054:EE_|AS8PR03MB6808:EE_ X-MS-Office365-Filtering-Correlation-Id: 7a6083c8-6f31-448c-f384-08db3abcda68 X-TrendMicro-CAS-OUT-LOOP-IDENTIFIER: 656f966764b7fb185830381c646b41a1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: AI2bUyQKPhdiBlSiVu4jCtSJDlizkwtWgEX7UYMw6AOY1LHTYGdpSvuQS6BfcT5cMDj/PUC6JN9PUGPvlmzHzmIveUhm1kLqkkH4DAIupNoxtKLYRmxBq1CwrNMVfveI8tB4ob7Gd8jMfLgS+8jpG4ksKfBWxvq9gUSomCW3R0X7nWWXsv5lufty9w/acHA90GCnmaN2T7WB0armo1L2+wgb3mbrmB3YSiOMrlTUi2t2MR/2bX43ryCrnYjgxGzQXjwoNoMBMNN4ey3CBiUihz0emGokfcwZ6GBBxjqwX1sDeuBRwBYkuHIhsdf1Ebvz9FxMiqTfRV6DpNp2VHqJMCLlCz/fwoH0zhDFL+BXzTi20tF/IHHaFHJiOWVkbFXarsMqiwke6Dj2ZcvvonelLIsE3uDrXxcaGb+LJJs3uZYDh7T4E/s72rGk26g2mDMtrrZUzDrX3tbyAIzni+/Ck5qzpMOhcsrdYOHROy84To4UI5CKkycKDjH1lkvUBQNBIkDriXdAbEaiOt59VHNAfpSucq+SvbsKHMY6xBIGgumdxsBYSPIYVqagYFeIwQ9Kh5dHAmpSzvLQ47g0tUWbV/nTy46e6ecvNUUdHdwLuNIxg+tPEeo3OX8oBbyv9mbS X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB9PR03MB8847.eurprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(366004)(39850400004)(396003)(136003)(376002)(346002)(451199021)(316002)(110136005)(38350700002)(38100700002)(54906003)(66556008)(66476007)(8676002)(66946007)(4326008)(86362001)(478600001)(186003)(2616005)(26005)(41300700001)(36756003)(6506007)(1076003)(6512007)(2906002)(83380400001)(44832011)(8936002)(6666004)(52116002)(5660300002)(7416002)(6486002);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR03MB9433 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM6EUR05FT054.eop-eur05.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: ad75789b-b6fb-4082-3fba-08db3abcd392 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xBL3kV/t3tAp92LZRIZTSrbxa5X0lbiBmwKODMo6X097CyrehPBnM/sjHBcPJXqZCiCfNwTkupzoFEej8ggK5yqZqoDyK2tYkFk75BC8C3mGg1Jik/7t6dAPmy+1uu9Oqn/ryLXpmHhq0uC6CoYQIdDyB0MsZ17gFsF86UA5mqYMkVHMfHomz/sohnP6GrnNTFmBv999B8sflkcc0n2632n8WUX0MZ9k0x8UKfBSVlH+Qsg+F1kU0PiFZrnYI3unJyiSwyWjJc3SGgLztcf90SKmG3GAT4kqW+EdtINucgHXbynvuuljrc/HD4JOu3eEsbORG6Y1PNL9C3x3Q9Q7vb8APopIG/TJbZdAi41pQc6AxK32JA30q2tu88d7j5hbiLs1IuYPaMEHiX0gY0Vpg65m7R1pFCKxwdQMT1yxEliXJAgEoQBztKJWVQDC0p1q5Exe4CvzSH90Qh+asHClO948IEg1sl741nThSiKrrPXAomdouFwOxXl2uWFnAEPgNfliHaOXimxK1jsEA6RNnx3GRZhFnFlQAwoJxCkcEhfMKA9BiBgK4WXxcH7EhdUr4DOlarirLcv1DLk9ZEv4NcErIagHbiUc52MQcBkSlXhhijzzvLJfXBPSUZt//lrhM8wDoLL4x/KJK9mxW6zyNtHXar+2ZfXAorLJNNtYvkvuQWkUdgdxaImfWNDJtR0XW4Z+/NIyv5oTctsDjuL1ay185ACA483eNqdoZKsIWYeKoQEKKQzgzVvlqhrgHEWnn6SrbOfXFmnMGXAYCgtrhw== X-Forefront-Antispam-Report: CIP:20.160.56.84;CTRY:NL;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:inpost-eu.tmcas.trendmicro.com;PTR:inpost-eu.tmcas.trendmicro.com;CAT:NONE;SFS:(13230028)(136003)(346002)(376002)(396003)(39850400004)(451199021)(5400799015)(40470700004)(46966006)(36840700001)(6486002)(356005)(7596003)(7636003)(82740400003)(36756003)(47076005)(336012)(83380400001)(186003)(40480700001)(2616005)(36860700001)(1076003)(6512007)(6506007)(26005)(34070700002)(6666004)(40460700003)(44832011)(4326008)(8676002)(70586007)(70206006)(2906002)(54906003)(110136005)(82310400005)(41300700001)(316002)(8936002)(86362001)(5660300002)(7416002)(478600001)(12100799027);DIR:OUT;SFP:1501; X-OriginatorOrg: seco.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2023 18:44:59.5162 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7a6083c8-6f31-448c-f384-08db3abcda68 X-MS-Exchange-CrossTenant-Id: bebe97c3-6438-442e-ade3-ff17aa50e733 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=bebe97c3-6438-442e-ade3-ff17aa50e733;Ip=[20.160.56.84];Helo=[inpost-eu.tmcas.trendmicro.com] X-MS-Exchange-CrossTenant-AuthSource: AM6EUR05FT054.eop-eur05.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR03MB6808 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 */