From patchwork Tue Mar 21 20:13:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 1759600 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=2UOdy6IO; dkim=pass (2048-bit key) header.d=seco.com header.i=@seco.com header.a=rsa-sha256 header.s=selector1 header.b=2UOdy6IO; 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 4Ph2ql1BzNz247J for ; Wed, 22 Mar 2023 07:13:55 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229691AbjCUUNv (ORCPT ); Tue, 21 Mar 2023 16:13:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbjCUUNu (ORCPT ); Tue, 21 Mar 2023 16:13:50 -0400 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05hn2238.outbound.protection.outlook.com [52.100.20.238]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 266CF4AFF4 for ; Tue, 21 Mar 2023 13:13:42 -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=2UOdy6IOP2FgfalbTRspdS/6BUzYhUE6Jjk/rHm4G3JgaRrx7xz6pS6P8pfUMFc56zRe7hJQa0+BNd3w+B1rLOvaWdBJZwgplE3BjOF1hqnAu2v5szD9GC5Oqt8XwjOmcPj7qPy+5gA46jw41m91AReqJ9RYbBZkYNOhsCXSpUlDqNi3RNnecA64dM2RZoqM9/v2h80n2M4dbQcn0AgC380ouKXVL7nEwdxz0XRae+NdGpsMuT7f6kkKjxZfGmOckz8Y/TIDE124MegeuwfeFEQ8mKUtWhOT30BhIG6tcRUf4S7cIogHSUdPl6pMxaEoK99vsUk5i0E21tdwMwvM1A== Received: from FR3P281CA0077.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:1f::10) by AS8PR03MB7956.eurprd03.prod.outlook.com (2603:10a6:20b:427::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Tue, 21 Mar 2023 20:13:39 +0000 Received: from VI1EUR05FT047.eop-eur05.prod.protection.outlook.com (2603:10a6:d10:1f:cafe::fc) by FR3P281CA0077.outlook.office365.com (2603:10a6:d10:1f::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.16 via Frontend Transport; Tue, 21 Mar 2023 20:13:39 +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 VI1EUR05FT047.mail.protection.outlook.com (10.233.243.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.17 via Frontend Transport; Tue, 21 Mar 2023 20:13:39 +0000 Received: from outmta (unknown [192.168.82.140]) by inpost-eu.tmcas.trendmicro.com (Trend Micro CAS) with ESMTP id F0E032008026E; Tue, 21 Mar 2023 20:13:38 +0000 (UTC) Received: from EUR03-DBA-obe.outbound.protection.outlook.com (unknown [104.47.51.176]) by repre.tmcas.trendmicro.com (Trend Micro CAS) with ESMTPS id EFE582008006F; Tue, 21 Mar 2023 20:11:44 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XpPnHUHJA1B2Iyz+Vr7klsICDFwNHrtyxJRtWEAxsOAaSxjnQFWz/piRzt7dz1gEEAqJ95nDRio6gkEEBo732C4fNaD9dFW6eqVxccvFi0z24zBPzh3MrbqdOI0h8tdH8V4bRj36YIH/bn5qeFXfzD4wGFkyOjhaDZDPwF+s4ZNE4Q0YwMGOANzPub1ZSarAZGpLXxvpKP5u+ZohkmRUx3IzTZcsqVTZ7C2OT19PZWMkhFpqFj8EG/wZMy+eva+BWZhjJCQr5Bvp+xoTpHHBFifsqmlgvZjLOxc3YRMwfFu0KEWFpjPaW5Muo6dfN0atfEZ0l8SrJ3JkmJy+ZPDJVA== 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=MzGkrrb3Q6VubueQFPIkgqzRPBS3PEBkP4/uoos03sv+BiM3jFTqcoPjUFJHo6zN6xlyIjhZL+ltGoqickMzGrWCbyZzrPr1qlJOEg3kPrHygFaCFOLfmyDoUqbnt+cWAiiidgbmvIt8WEb5NMscIeTrYY0vxvc8A05f2jsB7iNG3hxV2t9DZbtCn6D78vceUvIKsdk+Io/rUrT8O7TMKzpKPxNz+8znv0miUFqPeO+rSktXjs22tuUnS2D/fGfVejEphYATVnY8BbrYpHmcBLdkyLzXVKM5gstioPp0YXD5j/VeiRtYxGXSofUkLbjtsk8RbOd944nQo4f/j1/CtA== 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=2UOdy6IOP2FgfalbTRspdS/6BUzYhUE6Jjk/rHm4G3JgaRrx7xz6pS6P8pfUMFc56zRe7hJQa0+BNd3w+B1rLOvaWdBJZwgplE3BjOF1hqnAu2v5szD9GC5Oqt8XwjOmcPj7qPy+5gA46jw41m91AReqJ9RYbBZkYNOhsCXSpUlDqNi3RNnecA64dM2RZoqM9/v2h80n2M4dbQcn0AgC380ouKXVL7nEwdxz0XRae+NdGpsMuT7f6kkKjxZfGmOckz8Y/TIDE124MegeuwfeFEQ8mKUtWhOT30BhIG6tcRUf4S7cIogHSUdPl6pMxaEoK99vsUk5i0E21tdwMwvM1A== 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 AM9PR03MB7044.eurprd03.prod.outlook.com (2603:10a6:20b:2d9::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Tue, 21 Mar 2023 20:13:34 +0000 Received: from DB9PR03MB8847.eurprd03.prod.outlook.com ([fe80::dbcf:1089:3242:614e]) by DB9PR03MB8847.eurprd03.prod.outlook.com ([fe80::dbcf:1089:3242:614e%6]) with mapi id 15.20.6178.037; Tue, 21 Mar 2023 20:13:34 +0000 From: Sean Anderson To: Vinod Koul , Kishon Vijay Abraham I , linux-phy@lists.infradead.org Cc: Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, Madalin Bucur , Camelia Alexandra Groza , Bagas Sanjaya , linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, Ioana Ciornei , Sean Anderson , Rob Herring Subject: [PATCH v12 01/13] dt-bindings: phy: Add 2500BASE-X and 10GBASE-R Date: Tue, 21 Mar 2023 16:13:00 -0400 Message-Id: <20230321201313.2507539-2-sean.anderson@seco.com> X-Mailer: git-send-email 2.35.1.1320.gc452695387.dirty In-Reply-To: <20230321201313.2507539-1-sean.anderson@seco.com> References: <20230321201313.2507539-1-sean.anderson@seco.com> X-ClientProxiedBy: MN2PR20CA0026.namprd20.prod.outlook.com (2603:10b6:208:e8::39) To DB9PR03MB8847.eurprd03.prod.outlook.com (2603:10a6:10:3dd::13) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: DB9PR03MB8847:EE_|AM9PR03MB7044:EE_|VI1EUR05FT047:EE_|AS8PR03MB7956:EE_ X-MS-Office365-Filtering-Correlation-Id: 12257c99-6966-40ea-556b-08db2a48c29a 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: 4nFn8dpquRAf0iVnYDPApN5nO8x2F9YFKCLgqSYAjK/h2NouvAcJyhVmkJKKWqaW53/VO9OUyzID986j90FRi9CkAujv+Yfxg0aZwQWsmWf406GP6d9mB0Q3zEwxdXwQjYj1N6SL+DBjUeEq8G5UnXATJb/epGi+9zbXdTL8n+QN/4oxURtaDkqBCCANdfs2619slIukK/9bZNmRLt5KRSKmBVqbu9/ABYPFZXr5okq+teCNZivT7aJ6fxw9nEEtt3vzCJZ1tfDoGd0bNotbLawwgiYrjzOmSZzWVtinvU0/mSw2eVwepEv+eT7PbazQ1zJOcooDITzPBbT5zk4VIqNa3NFxUQ5cuPZ7PEJCoDIFvKxONlTXzX/ycNa7LkNk3dQ7H8ZzGYsEVFkT6C7SLt5bX30XXuE+60VLiYr8cuifabXYNEj5PPVdx6HoFLXeKuqWoVW/CDZv0aNEDdELHl1nCbatOFdqkmw9XKTzy49aINF/kHRLfb+CZcdiJXUQGRzwxM+QUmYvlFrntDpCeEbtYL2pQRfXesw9/zli8R6xyzDKP2vL8EhaEKje8EZNpAu+lagpCODvqSyXqyui6k8BoACkSkeU+kPHtD3fSs8oXf6vVqMRmqEGNM3UtYAd3y5DcfnfzcGTg/Y0q1bd9tqWZGriMs3GQf6JCEzifzex3WhQaPvRVDWTQ5feiemc 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:(13230025)(376002)(396003)(346002)(39860400002)(366004)(136003)(451199018)(2616005)(54906003)(83380400001)(6512007)(7416002)(6506007)(6486002)(966005)(478600001)(316002)(1076003)(26005)(52116002)(5660300002)(6666004)(186003)(110136005)(86362001)(38350700002)(38100700002)(66946007)(41300700001)(44832011)(2906002)(8936002)(66476007)(66556008)(8676002)(4326008)(36756003);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR03MB7044 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VI1EUR05FT047.eop-eur05.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 499bb582-e9b5-485f-f4ee-08db2a48bf5e X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gICLEhQnMGpnLT7So+TpFmZRsCYoWSuCfBZoXHOVYB9Ctbtz6mMFI+eHXSwcQJdiJ17Ak15cWZRszq1vlxTrw8qkAFjvqv2DjZEE0GG36AV81BMG+tSztDGUK6cEOLUedbI1urXlTwxFDOn+Nj1YtAlM9VaDjD8X1aAoMpPQ1oIv30yIYwSd2sR5c62f9zZmwu8ye2pwsoVhKXqisc8r7byeiM/QIcaNOMmUBCbY+HXL5MbDAvg4MODm34i5Ls3KuIXrTOSpD44SDoq0LBN4xFU12zt6cFfSILyVMNHXh4bvkb2f0p4HADqTutcUg4Gmd29pUrKv5X4Q9E5DC1r7du/zEtzOIQ/SaEHkNvIwlj/BQ33yFlFnL9NfIeTmXiFURBKLyWA/HxV2a2TJWqF7OgR3iXO51KlvHAVXYrff0yW65EpNGBdtn6ilbj1qQ+UgcfarKN4kjzhiIOjJcsEGonWuDxxDVZRa/SmKDg3N1z8ZsODPRsjLKUzHnMbZM93nINXAigctFS2O7Dycf+i/GhIoyqDxQovjbwzt+fklR4/Y0iEmwtPmXF4ZFJNOE2p6GdrcNS7rEAS2CfY/WOnj+9ZzpFj3/vxIDBsb5VFdjBUPsLwBsnIziAMs4pV7xEOxqfEUpB5FhmAHIyKBrMGSwcuDT8qLivY6UORf9RCToqzlIg67zw8yGprNooGZAQRF6Iw5mqvXt3KKKs4J+IPKYidhvL1YG5hyRK2XKoWmBfLOlzEYsRlCdoC41uE/CT+y X-Forefront-Antispam-Report: CIP:20.160.56.81;CTRY:NL;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:inpost-eu.tmcas.trendmicro.com;PTR:inpost-eu.tmcas.trendmicro.com;CAT:NONE;SFS:(13230025)(39860400002)(346002)(136003)(376002)(396003)(5400799012)(451199018)(36840700001)(46966006)(40470700004)(2616005)(6666004)(336012)(6512007)(54906003)(26005)(6506007)(83380400001)(47076005)(966005)(6486002)(4326008)(316002)(1076003)(478600001)(70206006)(186003)(70586007)(110136005)(8676002)(44832011)(34070700002)(7416002)(5660300002)(41300700001)(7596003)(7636003)(82740400003)(8936002)(2906002)(36860700001)(356005)(40460700003)(86362001)(82310400005)(40480700001)(36756003)(12100799024);DIR:OUT;SFP:1501; X-OriginatorOrg: seco.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2023 20:13:39.3182 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 12257c99-6966-40ea-556b-08db2a48c29a 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: VI1EUR05FT047.eop-eur05.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR03MB7956 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 Mar 21 20:13: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: 1759603 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=B6VagWth; dkim=pass (2048-bit key) header.d=seco.com header.i=@seco.com header.a=rsa-sha256 header.s=selector1 header.b=B6VagWth; 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 4Ph2qn3XyYz247J for ; Wed, 22 Mar 2023 07:13:57 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229767AbjCUUNy (ORCPT ); Tue, 21 Mar 2023 16:13:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229778AbjCUUNw (ORCPT ); Tue, 21 Mar 2023 16:13:52 -0400 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02hn2216.outbound.protection.outlook.com [52.100.202.216]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 009C630E9E; Tue, 21 Mar 2023 13:13:45 -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=B6VagWthWhKF/Ljj7pkBq3jUtXx0oz5yM/ed9/9CpMIdhtSPllxYB6wp5r94Mgtx21edQHPvVf7prKUIFhNUVpVCeFEEFWYtoqLy7gNPvNFQOoPKXTMIxiVdw0YNpjjySbbbChCKX/2ZSDo2+KYDTUHFxTckYI/YWHFB7a9onZr+rSaRDsJp285XnY66UhfJ2ak1fkyKh607o2Qgj1LZRAA/knoaP2t6k1E8mFkf0fsLN9TZHAL3drOKZNrfQTPjp4xylXzBiAUYSffsaI9l9wySjQry/VxMROObYkmCnFerUAdha+tZEBegw6gJmsGAFZVQ5dwE0Ru1LS+vDiAKLw== Received: from FR0P281CA0176.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:b4::15) by PAWPR03MB10135.eurprd03.prod.outlook.com (2603:10a6:102:343::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Tue, 21 Mar 2023 20:13:42 +0000 Received: from VI1EUR05FT007.eop-eur05.prod.protection.outlook.com (2603:10a6:d10:b4:cafe::a8) by FR0P281CA0176.outlook.office365.com (2603:10a6:d10:b4::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.17 via Frontend Transport; Tue, 21 Mar 2023 20:13:41 +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 VI1EUR05FT007.mail.protection.outlook.com (10.233.242.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.17 via Frontend Transport; Tue, 21 Mar 2023 20:13:41 +0000 Received: from outmta (unknown [192.168.82.133]) by inpost-eu.tmcas.trendmicro.com (Trend Micro CAS) with ESMTP id 312D82008088A; Tue, 21 Mar 2023 20:13:41 +0000 (UTC) Received: from EUR03-DBA-obe.outbound.protection.outlook.com (unknown [104.47.51.172]) by repre.tmcas.trendmicro.com (Trend Micro CAS) with ESMTPS id 016122008006F; Tue, 21 Mar 2023 20:11:46 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MVsuyelCQEOj7r+fzAODmQlx1KdUGdkD2kPydT3loOgpWIm4GI+bWpsu5UkIBJaEsQmvZXWEZgcqhDXLnvNA13EzD1dkDC6W83nHld1o5WVaL9+ROKwnCg/48Z9MWlXdmWEKXLeeIP4xcQ7StacxqARZKoAL7r4sNKQcH5sAODS53q3XygeRXVNRFOAc9R0SJss5DW+x/N3Dm5jK9NYUfUtHfXNul48eRLtlMu0dVegGWrKjYCYqRsZT1tfkyyvY4kU9hfwVsCx8s9zVtLElyeaaxze8IaUJlRXZdDBQsvaJ4vMvC7pkhd2b20F/whY7sN1BYUDFjeSrNmXFI6iziA== 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=jJb8kwSnsLwZmLOcLigdos+2k5nkXT1TNrBKmnESoPP2vc7iBWQPIlkEDIFQQ71MingmGPfNN0SRq7gqEQde3iEYh83nplkBqZDZWnqF4dvAw47iM9G2xdKzgt+d4aGhA2Hoy1ExqdUTwYbbsMri6gIdfsqyA3BXtsr2NN3veaSaaWBwx8ZrsvWBnlX6oqG6D2GeAcCR0lJvfgd2OgdAsIu67Ps+Y1uyR/WSJoIuJH3grXCj2z6XNUoAZHmp0r4EWu4M8RO18qiCnab/yPxKeqgkO3deuIjOSUB69VjZaVvJY338bxF41llfa80PhjnSPO9iMQuLesfbSLiS4jkyQw== 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=B6VagWthWhKF/Ljj7pkBq3jUtXx0oz5yM/ed9/9CpMIdhtSPllxYB6wp5r94Mgtx21edQHPvVf7prKUIFhNUVpVCeFEEFWYtoqLy7gNPvNFQOoPKXTMIxiVdw0YNpjjySbbbChCKX/2ZSDo2+KYDTUHFxTckYI/YWHFB7a9onZr+rSaRDsJp285XnY66UhfJ2ak1fkyKh607o2Qgj1LZRAA/knoaP2t6k1E8mFkf0fsLN9TZHAL3drOKZNrfQTPjp4xylXzBiAUYSffsaI9l9wySjQry/VxMROObYkmCnFerUAdha+tZEBegw6gJmsGAFZVQ5dwE0Ru1LS+vDiAKLw== 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 AM9PR03MB7044.eurprd03.prod.outlook.com (2603:10a6:20b:2d9::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Tue, 21 Mar 2023 20:13:36 +0000 Received: from DB9PR03MB8847.eurprd03.prod.outlook.com ([fe80::dbcf:1089:3242:614e]) by DB9PR03MB8847.eurprd03.prod.outlook.com ([fe80::dbcf:1089:3242:614e%6]) with mapi id 15.20.6178.037; Tue, 21 Mar 2023 20:13:36 +0000 From: Sean Anderson To: Vinod Koul , Kishon Vijay Abraham I , linux-phy@lists.infradead.org Cc: Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, Madalin Bucur , Camelia Alexandra Groza , Bagas Sanjaya , linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, Ioana Ciornei , Sean Anderson , Rob Herring , Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org Subject: [PATCH v12 02/13] dt-bindings: phy: Add Lynx 10G phy binding Date: Tue, 21 Mar 2023 16:13:01 -0400 Message-Id: <20230321201313.2507539-3-sean.anderson@seco.com> X-Mailer: git-send-email 2.35.1.1320.gc452695387.dirty In-Reply-To: <20230321201313.2507539-1-sean.anderson@seco.com> References: <20230321201313.2507539-1-sean.anderson@seco.com> X-ClientProxiedBy: MN2PR20CA0026.namprd20.prod.outlook.com (2603:10b6:208:e8::39) To DB9PR03MB8847.eurprd03.prod.outlook.com (2603:10a6:10:3dd::13) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: DB9PR03MB8847:EE_|AM9PR03MB7044:EE_|VI1EUR05FT007:EE_|PAWPR03MB10135:EE_ X-MS-Office365-Filtering-Correlation-Id: d6c6b4ba-91d4-48aa-0ef1-08db2a48c3ec 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: tJgSZQBaRmm1ACy9S0OfBJh6YezXSZx6IC+IXDH6CFkmf3+lYVOPVzKqP3ar8WzYM7Bpa7H7leE+3e7s1CVpmvI0tcsFdDybamWrGJmewvGymN0lBw/1Yy3ZMjHTaHSQRCJm9mb+01W67RhvapxVy7HFDLs37MGRLlXUVAO5QqM8tiDup2tnXNksoYe0/JqkqVYYc8+5h8k3R2lU0BgDGIwgQQdt7C0UVHvtyvYAUH3fE2A6pcpTpb6CPmrXcCwD4yj7HRf7VE5zgrkYjSLQP8CnHjVzlAKQYA46bJ+tBjjoYvNvq+0EoUFCgPZw2nC7pVq4OwZBDWXevEoVg/tizT7rMOmV4VJMD3ygzfSg4Bm1hhfaHUClnnVOUIWy+ZJjjBRjg8hb3sTITHLOJseZVboD63IPjwmTyFQXOSmNrhM6ELx+xQdA5Vlx+CND0g2iognvxuxcl1RZqNFFvuCuw9SRFQgaFVeTmQK0eK+06PFNPxYIGblUDpgY/Zj4kVYaWjp8H02WKkCyETu2OVpdEZe9/wxOXPckP5fMnTVtFypc4FQAhKlIIAX4WNRsaZ6/EXEtx1iM3dE4VNtZpuXTt3XAC8m1b9xOAb5qs+EsFeDa+4M/kHkdaPXih1kKGzdjYUfdp9OfolWr7yGbi2wTmsYDwMFCAXrGfCr/yVRWysz04/CFPCyCqDE9nkl1z3G9 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:(13230025)(376002)(396003)(346002)(39860400002)(366004)(136003)(451199018)(2616005)(54906003)(83380400001)(6512007)(7416002)(6506007)(6486002)(966005)(478600001)(316002)(1076003)(26005)(52116002)(5660300002)(6666004)(186003)(110136005)(86362001)(38350700002)(38100700002)(66946007)(41300700001)(44832011)(2906002)(8936002)(66476007)(66556008)(8676002)(4326008)(36756003);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR03MB7044 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VI1EUR05FT007.eop-eur05.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: d4956018-5662-4ba5-6362-08db2a48c07d X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0uUWaggjxK4WoN7Zj5JNd4dm3jJkLGuX+AE2jmb4nAeJh8Hvptf8daO52rk5OiT5Ve+wFefJv7Xf5KB9N24EGeU5MMC2fCf+5pTI6idVBoZ4B+iTFeNeZiJpEtrKG6BNy6tTMS3E87BseCxvSB8aESvFwI642muI9CUW+hCMLypBaNYwq6jN432k6PXlG0H9Rj/Vavl7KqfiTY+zvQnOEXRpW1CTY2j3pBmNY25ktdT7wTvF4n2iO1vG8IuCdiQNNVJmvwujysVhWJfDembzqwd525NSxUcXJnwFEni0I5VgMgW1bRwUgtzCZL8tSMsfld0QbGMojIFE1S4NCjkOTY0pUCa8kWoWRbHuJCb9W8AgFFJ58JTUkhdmOw9l7dU81OEA8U7BbnowVAbaM/3surlbyGUqiNWkhw+W+usGvwkXc+1u6i/fQ9XzJMuwAgZcOjDu1tdfbauAd+8+tbq3l604oL6h9risHZNZ6c9G9YDf7cWY/BNOTn1QgTwrQrYsI0eL6vbzn8XfjyGGVfn7+SXSd6S5JVQftEtU0Nm9V6e4YHoMgqwYRVY7534Q0bQmpVyDdFd1qrbZHhxx/+Wk6j2Nn0q4FVYCAbQkg30uEMHIpEQq/V30t/hINK9ZC2dvYYPdDz/SoJTkdat/BjcfkibLVX2Kggr2T1hG5kVJjkPSURb9G2zZ5LGmErlYCJqLV+u3iDgefExohiOxIo4mVTW329pGg435Gkdh3cllFesAgMQnledOg5GZwWvimBR6 X-Forefront-Antispam-Report: CIP:20.160.56.87;CTRY:NL;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:inpost-eu.tmcas.trendmicro.com;PTR:inpost-eu.tmcas.trendmicro.com;CAT:NONE;SFS:(13230025)(396003)(39860400002)(136003)(376002)(346002)(451199018)(5400799012)(36840700001)(40470700004)(46966006)(7636003)(7596003)(966005)(6486002)(82740400003)(2906002)(83380400001)(6512007)(8936002)(6506007)(44832011)(7416002)(36756003)(1076003)(40480700001)(82310400005)(5660300002)(40460700003)(36860700001)(34070700002)(2616005)(41300700001)(47076005)(356005)(86362001)(26005)(6666004)(186003)(316002)(54906003)(110136005)(478600001)(336012)(70586007)(70206006)(4326008)(8676002)(12100799024);DIR:OUT;SFP:1501; X-OriginatorOrg: seco.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2023 20:13:41.5159 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d6c6b4ba-91d4-48aa-0ef1-08db2a48c3ec 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: VI1EUR05FT007.eop-eur05.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR03MB10135 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 Mar 21 20:13:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 1759607 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=fxpU7IV5; dkim=pass (2048-bit key) header.d=seco.com header.i=@seco.com header.a=rsa-sha256 header.s=selector1 header.b=fxpU7IV5; 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 4Ph2r14yb9z247q for ; Wed, 22 Mar 2023 07:14:09 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229734AbjCUUOI (ORCPT ); Tue, 21 Mar 2023 16:14:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229735AbjCUUOH (ORCPT ); Tue, 21 Mar 2023 16:14:07 -0400 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04hn2200.outbound.protection.outlook.com [52.100.18.200]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE3524C6DD; Tue, 21 Mar 2023 13:13:59 -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=k/g9U9YLEf9E/jAxo24sDj/7iF84qhM8WSA36wTORsA=; b=fxpU7IV5oe3+cSYpxlaGyfDO5f0tHZjNa2SY4nerfciQHFWKoaAtRkXhGRffHeTH7rM6kzshlaOrluCVETOjAKC4DUsJ1XzmwscnLgRRgke/YC+fYgs3IKFCNPMs5vV+3qQKJDJD+Ywwd0dKdDay2iLvqXFTdXs2MQMBR97Tgz8TR8KDSr+P2tnRGpl9Z5evOd6j+3s7GqZg97Dw/UTV2vA2yMPPH2sJNu9W/rFAzqGVJoUDzJmjScN2Lw72Y7XIc5RBf9m8mLUw9QwQKMJAe14gIarSm6W8Lab0y5lQLyjV4xxk49RHgdF0KLYijU+eiAeGCdaX1s4glL1TubWAuw== Received: from ZR2P278CA0027.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:46::19) by VI1PR03MB6221.eurprd03.prod.outlook.com (2603:10a6:800:134::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Tue, 21 Mar 2023 20:13:55 +0000 Received: from VI1EUR05FT012.eop-eur05.prod.protection.outlook.com (2603:10a6:910:46:cafe::6e) by ZR2P278CA0027.outlook.office365.com (2603:10a6:910:46::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37 via Frontend Transport; Tue, 21 Mar 2023 20:13:54 +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 VI1EUR05FT012.mail.protection.outlook.com (10.233.243.48) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.17 via Frontend Transport; Tue, 21 Mar 2023 20:13:54 +0000 Received: from outmta (unknown [192.168.82.140]) by inpost-eu.tmcas.trendmicro.com (Trend Micro CAS) with ESMTP id 408CD2008026E; Tue, 21 Mar 2023 20:13:54 +0000 (UTC) Received: from EUR03-DBA-obe.outbound.protection.outlook.com (unknown [104.47.51.176]) by repre.tmcas.trendmicro.com (Trend Micro CAS) with ESMTPS id 2E0AC20080074; Tue, 21 Mar 2023 20:12:38 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KuKdnODob/PepkJEBVC91zTX84tpljlsoQKzPbCEqCDBbeYA47FPxyKMPIWr0HWAPEGr6Q9miYNhKIUjjEXVfgkHvb7po9DGWC9CBSDD5afBN16oBOHiqQldpxjy2aIURG5Q/PTNdwCPZ3gKK92nzD4L1UyhlSX9LGgyHykfN9z7ICsae/CuJ7gKxwPtU52mfVU92Qg5mH5FNCZePaPMqefZfkpNe9HrvMh/7bZ0XS5Kl5bm0SMEzOi6u73lJ2fOmzC4u20PFIXWLvnHxhXyqURqCI6sl67GQAfkW9zXQPZ9FOGHYBixnbHy1SjPyqOGxBN6+kvhwYi/P/Mlu0NQ8A== 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=k/g9U9YLEf9E/jAxo24sDj/7iF84qhM8WSA36wTORsA=; b=B4wXWI4dYwa8Frttb9Czyu2n0ZYa+jf+qefo2Yg9ei5FgvZwzw0QM57udKLvyUIpl4sBdOMKSX/8vBp+UhlloWhtLFNfFpaFHs8i/Nj82zRN4ptu95jSU6FegoLm7/UnPUYVLTYscmk8ou26yXvBFo3KrrBKf66vUiNeA+I4clk5IPheNnaig24ftkf7s5FSUpWCnqyrJphAeV95hQvHBu/XPddILkyrHLPGhmVMNKBB/c0zD5zMRwQxov3oVxgDwckpHY53+GEaHV8s8zLdAtD9hdVzRYeYItVb+J44qGV9s3jhP3rKu8BK5sSOBtmH36BdliI2K0uhZpWHu1znIQ== 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=k/g9U9YLEf9E/jAxo24sDj/7iF84qhM8WSA36wTORsA=; b=fxpU7IV5oe3+cSYpxlaGyfDO5f0tHZjNa2SY4nerfciQHFWKoaAtRkXhGRffHeTH7rM6kzshlaOrluCVETOjAKC4DUsJ1XzmwscnLgRRgke/YC+fYgs3IKFCNPMs5vV+3qQKJDJD+Ywwd0dKdDay2iLvqXFTdXs2MQMBR97Tgz8TR8KDSr+P2tnRGpl9Z5evOd6j+3s7GqZg97Dw/UTV2vA2yMPPH2sJNu9W/rFAzqGVJoUDzJmjScN2Lw72Y7XIc5RBf9m8mLUw9QwQKMJAe14gIarSm6W8Lab0y5lQLyjV4xxk49RHgdF0KLYijU+eiAeGCdaX1s4glL1TubWAuw== 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 AM9PR03MB7044.eurprd03.prod.outlook.com (2603:10a6:20b:2d9::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Tue, 21 Mar 2023 20:13:38 +0000 Received: from DB9PR03MB8847.eurprd03.prod.outlook.com ([fe80::dbcf:1089:3242:614e]) by DB9PR03MB8847.eurprd03.prod.outlook.com ([fe80::dbcf:1089:3242:614e%6]) with mapi id 15.20.6178.037; Tue, 21 Mar 2023 20:13:37 +0000 From: Sean Anderson To: Vinod Koul , Kishon Vijay Abraham I , linux-phy@lists.infradead.org Cc: Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, Madalin Bucur , Camelia Alexandra Groza , Bagas Sanjaya , linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, Ioana Ciornei , Sean Anderson , Linus Walleij , Bartosz Golaszewski , =?utf-8?q?Fern=C3=A1ndez_Rojas?= , Jonas Gorski , linux-gpio@vger.kernel.org Subject: [PATCH v12 03/13] dt-bindings: Convert gpio-mmio to yaml Date: Tue, 21 Mar 2023 16:13:02 -0400 Message-Id: <20230321201313.2507539-4-sean.anderson@seco.com> X-Mailer: git-send-email 2.35.1.1320.gc452695387.dirty In-Reply-To: <20230321201313.2507539-1-sean.anderson@seco.com> References: <20230321201313.2507539-1-sean.anderson@seco.com> X-ClientProxiedBy: MN2PR20CA0026.namprd20.prod.outlook.com (2603:10b6:208:e8::39) To DB9PR03MB8847.eurprd03.prod.outlook.com (2603:10a6:10:3dd::13) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: DB9PR03MB8847:EE_|AM9PR03MB7044:EE_|VI1EUR05FT012:EE_|VI1PR03MB6221:EE_ X-MS-Office365-Filtering-Correlation-Id: 02f4a09c-b505-4093-e53e-08db2a48cbb0 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: 6s4Mm2WXQ8rz0H2+Wx79s9OcNcQWfbezJV+X3RK+zO7z8Ybeufv4gs9zmkjvk8evKEoDHOVhzL06fJV+igpQMcpxhiHSxItsFjlTyU+ei2WM3WDpJXu+sRpvSbEbJ11+bjeCKvu0baOB8fsTzoSuB9hyR3o6bkvgi2S651g9vrU4Z3UTzgwDYV4t4sRb3sIxLklCTqlyYKNvbiXDAVfqcG4hQB9Z1tBZiMow1yQr+dDNBsqu+hrOwamL61QfAy551Dyi3WPSzF0j1JfJC1Af+OlwmbUalvhYm0KWGG5HVtxFD+qSssm5w4ItUAF9gjdEvk08zTbFRQqBd8omVeehAxt26/i+dDwHQRGQsdKT5hnVXdKK8mmWBwFeOxzl5VcDUrgVrKJHSwBnsLomJrO2obIAHGtQi2muNR8AxbXVEhDNsnwMaOcelHWeUGKsKksAMdXdTU7v3aTrxHpRP5fkdvNjWlIrXhL/hbY1GKVBLDQweeRepalBQbbBUhXjqgq4DPXE6yW2LRpcly4Tatz91Y8wDLTTqGk50CVLoP3uxTREpQqbaVpmJSLIR48XGB3bln5esSaWvoQ/xnW4vm2Q7VFfYU7s05AjA3G/wrw7B2EutgFDgVjo0e+gCImUWZFa4jum4clIQUZsbIPH0mZxVNO+/UdO9cN4gR6OqsysbG+JheX3kDSe3odH992JWDuK 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:(13230025)(376002)(396003)(346002)(39860400002)(366004)(136003)(451199018)(2616005)(66574015)(54906003)(83380400001)(6512007)(7416002)(6506007)(6486002)(966005)(478600001)(316002)(1076003)(26005)(52116002)(5660300002)(6666004)(186003)(110136005)(86362001)(38350700002)(38100700002)(66946007)(41300700001)(44832011)(2906002)(8936002)(66476007)(66556008)(8676002)(4326008)(36756003);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR03MB7044 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VI1EUR05FT012.eop-eur05.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 2c42121b-b270-4fdb-f14c-08db2a48c1a9 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: L0PaAg5OY3ve7YGcNuEl7jieTlEOtGSahTwXFA3LbAwadQWzhlLF4F93jXMfjGuQuecpFHZm8F9Br7gn+PskK79HaDRlXdNJguJJHhqhnnUWSeLo9d3fGkCb0k/ZIyvTfxiOLXtLrvjgMh5JSeuFtPi1pluyPcQiXBy9P3DES0nu4p+sOqlKZXvDBlyjOkavSvLASOBoyxRIIJ4stbYH+LIlOmI9/YZydlHqDdaJ2hjuApH0qcEmmhO0Z7oDK5ETNIlMlMbIzZxVrY7XG2oCe7LFYBbZEzTmzMHR/QxGy3x10aArI/swI1Y3q50KJTRP1yVVtHFFBs8xfR6mD67OUxRsQ8ROSvPGZy+jj832H4S8b/PFn9XLCDNCM4/G0E+qhEgGrIWq1PpsgeOtACUCI26Wo92VMzn6tEvue+4Cpqv6icqTAjMUdo+BLIvRVN66SlLkcN2NF0io/pP8jmTVfgV543HCz2voXIp7EihHudXNIyc25Qd5j1LX3+1k6TYg6nPNXDmkqNk0IOfpCWmqCoqYrJK7/DhuwfvV5D5NaHEJ82GuzViq3lkf7rO9A2X1SUJHeZPOAT26FL/jd09tuCLoVPVD0jvClg6TwIqF3Ms//hL9ENMSOmwSBTB+tq4Nh/aZd12NxdeJt/WdMZ6TUU8QNdSW2isnPfnYczFBeMqoTKVUDT3M0u7YqJgWJ5Fkgw2gNh1/RxRgg07uXA+7zrNVGpoaAKuPD1lp+F94jj8= X-Forefront-Antispam-Report: CIP:20.160.56.87;CTRY:NL;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:inpost-eu.tmcas.trendmicro.com;PTR:inpost-eu.tmcas.trendmicro.com;CAT:NONE;SFS:(13230025)(376002)(396003)(346002)(39850400004)(136003)(5400799012)(451199018)(36840700001)(46966006)(2616005)(66574015)(47076005)(54906003)(34070700002)(83380400001)(82310400005)(6512007)(7416002)(6506007)(6486002)(966005)(478600001)(316002)(1076003)(26005)(5660300002)(6666004)(186003)(7636003)(36860700001)(110136005)(356005)(7596003)(86362001)(336012)(82740400003)(70586007)(40480700001)(70206006)(41300700001)(44832011)(2906002)(8936002)(8676002)(4326008)(36756003)(12100799024);DIR:OUT;SFP:1501; X-OriginatorOrg: seco.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2023 20:13:54.5499 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 02f4a09c-b505-4093-e53e-08db2a48cbb0 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: VI1EUR05FT012.eop-eur05.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR03MB6221 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 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 ------ 4 files changed, 118 insertions(+), 91 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; - }; From patchwork Tue Mar 21 20:13:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 1759604 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=i6l/K8pC; dkim=pass (2048-bit key) header.d=seco.com header.i=@seco.com header.a=rsa-sha256 header.s=selector1 header.b=i6l/K8pC; 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 4Ph2qp5Kp8z247J for ; Wed, 22 Mar 2023 07:13:58 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229670AbjCUUN5 (ORCPT ); Tue, 21 Mar 2023 16:13:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229550AbjCUUN5 (ORCPT ); Tue, 21 Mar 2023 16:13:57 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04hn2205.outbound.protection.outlook.com [52.100.17.205]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 674834BEAA for ; Tue, 21 Mar 2023 13:13:54 -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=i6l/K8pC4p3+zUPOtG8d7VUA5nhUrgwKWoAibFEUAudsTEN0ZI2Tsy0oOls+aB8i53b64D+Jg005m5t2lp00CgDSVGDAMEFbiDBWS2VBtLkiX63PNcpL+dwNIE41uR7CLhPxfbUYf/D8zsGXYxRMUFsQI9fSh0EJuj9VjcW5OI1tYAIXPfoQhmrASO5Z8k7gc9uT+luEyawyZIlxsiwnlzRg9mAyZiMIXr85BbgVABh9blmYNpGlw3zx22sJ+zurFwxke7DP0v6kw/Hgus5Lv5Od4x8jvJSirN5owtLeZF7A/0G33Cuvj51CzL2ezHYD0pV3hFZQVmhMy1pXucLOtA== Received: from AS9PR05CA0228.eurprd05.prod.outlook.com (2603:10a6:20b:494::10) by DBAPR03MB6485.eurprd03.prod.outlook.com (2603:10a6:10:197::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Tue, 21 Mar 2023 20:13:51 +0000 Received: from VI1EUR05FT057.eop-eur05.prod.protection.outlook.com (2603:10a6:20b:494:cafe::a5) by AS9PR05CA0228.outlook.office365.com (2603:10a6:20b:494::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37 via Frontend Transport; Tue, 21 Mar 2023 20:13:51 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 20.160.56.85) 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.85 as permitted sender) receiver=protection.outlook.com; client-ip=20.160.56.85; helo=inpost-eu.tmcas.trendmicro.com; pr=C Received: from inpost-eu.tmcas.trendmicro.com (20.160.56.85) by VI1EUR05FT057.mail.protection.outlook.com (10.233.242.213) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.16 via Frontend Transport; Tue, 21 Mar 2023 20:13:50 +0000 Received: from outmta (unknown [192.168.82.140]) by inpost-eu.tmcas.trendmicro.com (Trend Micro CAS) with ESMTP id 0FAEC2008026F; Tue, 21 Mar 2023 20:13:50 +0000 (UTC) Received: from EUR03-DBA-obe.outbound.protection.outlook.com (unknown [104.47.51.176]) by repre.tmcas.trendmicro.com (Trend Micro CAS) with ESMTPS id 991142008006F; Tue, 21 Mar 2023 20:12:39 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EArQL66kikGn/CdG8tLUH7YJD/a4BOBU2FVtcZky4UP7UzcRkP6XQV/G/RqEAHCtRzzRwFKr4lBSbKwwr7DkUIZUM3TKsveImja2du06/zfQ263utIO+9p8F/m6NORMVObDayBVRyN9OEvNYsmdNXG+L3XAZlCI472rtGvsqFMdf/BTIeQeSrXb1GBduX5LjC0FBSSeX5TIGrGOtiq+afkr5wMBLaWCpu8i5a4CHOdKTjACkc2fOxApuXgxvmYraiCcsuOA0tQER10mqzbDHYe/5BKUu0h3GgrNRcbrC9hDoLnhXBIqJeMramB7/vAzRNZzJMxK5cLIHyFA2QYhdXQ== 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=fOxxGMV8tmKdkXIngVx/FcmSZzavxgdI/JbzcgqgGo5LO0G5K3WBTBWrKFMr57vlE9JnaWl1DggAj0LUea5+JcFXZfueZr9rQzDJkKHuTMWDbhGflIXX8k897Ir3rMxwOxgDoeeDnn2XuKHU75gqp2D2auBkudQF/t53bsqmvRfycStJMXTR1evlSO6sGemx25wiMtgWQu9TZeksAtDITi0P87fTEgxoiSkvjiFNX1boqL4ykENtwAbwn8Bi6dZCCV2vxFVC7UeOUROTUOH/eajPQCThGGMs9FZkaNGiEGNdIxTKeeouBcxKH0nVHe1rtiAxeAjPBk4MN6vkB0zQqw== 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=i6l/K8pC4p3+zUPOtG8d7VUA5nhUrgwKWoAibFEUAudsTEN0ZI2Tsy0oOls+aB8i53b64D+Jg005m5t2lp00CgDSVGDAMEFbiDBWS2VBtLkiX63PNcpL+dwNIE41uR7CLhPxfbUYf/D8zsGXYxRMUFsQI9fSh0EJuj9VjcW5OI1tYAIXPfoQhmrASO5Z8k7gc9uT+luEyawyZIlxsiwnlzRg9mAyZiMIXr85BbgVABh9blmYNpGlw3zx22sJ+zurFwxke7DP0v6kw/Hgus5Lv5Od4x8jvJSirN5owtLeZF7A/0G33Cuvj51CzL2ezHYD0pV3hFZQVmhMy1pXucLOtA== 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 AM9PR03MB7044.eurprd03.prod.outlook.com (2603:10a6:20b:2d9::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Tue, 21 Mar 2023 20:13:39 +0000 Received: from DB9PR03MB8847.eurprd03.prod.outlook.com ([fe80::dbcf:1089:3242:614e]) by DB9PR03MB8847.eurprd03.prod.outlook.com ([fe80::dbcf:1089:3242:614e%6]) with mapi id 15.20.6178.037; Tue, 21 Mar 2023 20:13:39 +0000 From: Sean Anderson To: Vinod Koul , Kishon Vijay Abraham I , linux-phy@lists.infradead.org Cc: Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, Madalin Bucur , Camelia Alexandra Groza , Bagas Sanjaya , linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, Ioana Ciornei , Sean Anderson , Rob Herring Subject: [PATCH v12 04/13] dt-bindings: gpio-mmio: Add compatible for QIXIS Date: Tue, 21 Mar 2023 16:13:03 -0400 Message-Id: <20230321201313.2507539-5-sean.anderson@seco.com> X-Mailer: git-send-email 2.35.1.1320.gc452695387.dirty In-Reply-To: <20230321201313.2507539-1-sean.anderson@seco.com> References: <20230321201313.2507539-1-sean.anderson@seco.com> X-ClientProxiedBy: MN2PR20CA0026.namprd20.prod.outlook.com (2603:10b6:208:e8::39) To DB9PR03MB8847.eurprd03.prod.outlook.com (2603:10a6:10:3dd::13) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: DB9PR03MB8847:EE_|AM9PR03MB7044:EE_|VI1EUR05FT057:EE_|DBAPR03MB6485:EE_ X-MS-Office365-Filtering-Correlation-Id: e1cfe995-3e50-4825-0e0d-08db2a48c960 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: 3YOzFAL4pWGLvaDqF32JzyrCN99+ZLOtHjIqidgOmd1uHpHIm5h0hSxLvvmZq+afoIeP/Ym2BDQZAdEkHq/mn0zzM0KXgNx9a6mrWQVF6Fhkgfl5NRKcE5k0+yjBNgHyT162cwRuClix5jy+XttMRVGpF6lAPTvBBjcqp/GukfiKLTw7mGnzflvd5br4SWJQR00sZDFAqDs3DTZJyUVptmYQsZetjxnTQ7NiSvr2Ansj0XkvGZQr9M9MVaxAh7NP5NEKOS4wwXI++NN/OBIw723lzyl1p9lgOobzcDoZ/hbCdoCxf29g62Ltx04b0YhDxvA3nGw44CQqDqYvb+yPdi8m0LHIgdGsKmu11aLeSyrzRa5S96z/lH6GY0DjB69icajUWod5HpdOx3O/4NldYyzXx2ifHn8iwvBYTnbhJBKOrFWUU5kBf3UoG/pHPSiMUPUl5trwroYCtU0lkaUT6ty4yK2cFR/Z3OyNLpfw+TJPdYqbHwInMBmxTsyxxalerIlz/DTZgPBC2zQQIsSWCXw6lXIfDGZ1XxDmPERuzyv41EDKteG/hn8W1n5YjJ0QWsMCgcjnNHRbgJPwvMaQJwVaX7Rnp4ZrAaJJxxG4aFFe7lp7u1oIreYEBeh/p+9pP8ir2F2jUzoYvWFsH4JHSXGMMtg5YE7xRM90LKtQ6wbO6PFwMWJeM3hcR+XGogkz+rQ/ACjSu1byy/yVJc5U5g== 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:(13230025)(376002)(396003)(346002)(39860400002)(366004)(136003)(451199018)(2616005)(54906003)(83380400001)(6512007)(7416002)(6506007)(6486002)(478600001)(316002)(1076003)(26005)(52116002)(5660300002)(6666004)(186003)(110136005)(86362001)(38350700002)(38100700002)(66946007)(41300700001)(44832011)(2906002)(8936002)(66476007)(66556008)(8676002)(4326008)(36756003);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR03MB7044 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VI1EUR05FT057.eop-eur05.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: b0ee2f83-7628-4258-2de8-08db2a48c29f X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: c7KX5qJjJ0KvqOmqWUb7ha8NyvuIFRQke49d9cDlQuh/JVHKRYo/QTt6l6Ak2vSqAZNg/AOJCDRV6Rejlrw2baM/McFyaNBz5nx0Mh7zK4TdI2pYjxXMK+vR6QJTD/G5Ezc6pxOKWzYHEOCLjUJe6JbIsWqjsQMrVh/U+QFk9v0LsxxgKcSmacx7zn27ZQj9XGeGzAeJy8sIhb7cqQrcpk3AJQx6GlqQc/uD9U8yOwgrwZ9uZ1EGrtvxkajG7SjwOcOwsl95H1SromTvsGpF0Mco8JPN6LTg9CIqCc22DBo5GXJBV2ZCWogbyvOJq8WEQ/MjW5IBCZm7a5RUIgNq1Ef3aoohjPTpybfbZPG4tuCxHUuTVBhJt6FqddFy2j/5gw+1fphLLVbV1LNB9/0kMLR9TyvN7I2ZEBmAS1WGTPRQKPJ26PuU8CRvMd42Z+WK3Y6UCG5GfBtdGkZBnX/q5MJjytCzQbTJ2MdkQJYYyKElcs605bNWz3KFPzHUAKNOfi69yZtjOvXt3afeC094rQGl0P5OEBLuka1yalxpP583LkAmSZvy9zXf4uvfIas291vlTqCKUZAiMwzO5s4/uftD7ZH741XTy0902haLDsFb6QGPNLOL4wBpr3C8UOC7CI2Ilpg/BK62O7YTrnsa8RR1ERIHEkOAVKPO3wKAkN3UJCCBAEZ8z8TrE6vL1UbKOPA2xGIqrkYm+monJa8K6mcgywCKvtrhgqORK62lpNQ= X-Forefront-Antispam-Report: CIP:20.160.56.85;CTRY:NL;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:inpost-eu.tmcas.trendmicro.com;PTR:inpost-eu.tmcas.trendmicro.com;CAT:NONE;SFS:(13230025)(39850400004)(346002)(136003)(376002)(396003)(451199018)(5400799012)(36840700001)(46966006)(2616005)(47076005)(54906003)(34070700002)(83380400001)(82310400005)(6512007)(7416002)(6506007)(6486002)(478600001)(316002)(1076003)(26005)(5660300002)(6666004)(186003)(7636003)(36860700001)(110136005)(356005)(7596003)(86362001)(336012)(82740400003)(70586007)(40480700001)(70206006)(41300700001)(44832011)(2906002)(8936002)(8676002)(4326008)(36756003)(12100799024);DIR:OUT;SFP:1501; X-OriginatorOrg: seco.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2023 20:13:50.6647 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e1cfe995-3e50-4825-0e0d-08db2a48c960 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.85];Helo=[inpost-eu.tmcas.trendmicro.com] X-MS-Exchange-CrossTenant-AuthSource: VI1EUR05FT057.eop-eur05.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR03MB6485 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 Mar 21 20:13:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 1759605 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=WKcXiQAO; dkim=pass (2048-bit key) header.d=seco.com header.i=@seco.com header.a=rsa-sha256 header.s=selector1 header.b=WKcXiQAO; 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 4Ph2qs6c2tz247J for ; Wed, 22 Mar 2023 07:14:01 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229747AbjCUUOB (ORCPT ); Tue, 21 Mar 2023 16:14:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229734AbjCUUOA (ORCPT ); Tue, 21 Mar 2023 16:14:00 -0400 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03hn2203.outbound.protection.outlook.com [52.100.14.203]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 084FB4A1E0; Tue, 21 Mar 2023 13:13:54 -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=WKcXiQAODHnxVNw1wJA5kYwrolqtzbVpSHRWxMaNQWuR4RNm+wyM0YmxK9W7OLVXb4cV9KZTOYe5+xdsCqg4mxe+F/hv6ujJY4YfNtIOtv5O1nq4nTR7ANUGLCBSGF5n0Hl/gxL37lIYRrR6lr7ICDncLZmL4ZxGF/9boPBLpxUPHbwk8v8Jxt1GEKZURT+VvQPZ1W1JXFthIyOfNuwo7/na976bUkvWTuTi54Caq+nXTkRLn3weEb0D2Cjw1HmRzRXI8FG1SPOphEjGo0/gq26KtgOYW3kBAhf7W9DTPjLMtaq2mzxD71v85L9eVJ5p0aH0iOhfOOme65XKB57z9g== Received: from DU2PR04CA0299.eurprd04.prod.outlook.com (2603:10a6:10:28c::34) by AM9PR03MB7558.eurprd03.prod.outlook.com (2603:10a6:20b:415::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Tue, 21 Mar 2023 20:13:51 +0000 Received: from DB8EUR05FT011.eop-eur05.prod.protection.outlook.com (2603:10a6:10:28c:cafe::ba) by DU2PR04CA0299.outlook.office365.com (2603:10a6:10:28c::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37 via Frontend Transport; Tue, 21 Mar 2023 20:13:51 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 20.160.56.83) 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.83 as permitted sender) receiver=protection.outlook.com; client-ip=20.160.56.83; helo=inpost-eu.tmcas.trendmicro.com; pr=C Received: from inpost-eu.tmcas.trendmicro.com (20.160.56.83) by DB8EUR05FT011.mail.protection.outlook.com (10.233.238.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.16 via Frontend Transport; Tue, 21 Mar 2023 20:13:51 +0000 Received: from outmta (unknown [192.168.82.135]) by inpost-eu.tmcas.trendmicro.com (Trend Micro CAS) with ESMTP id 1A2DE20080270; Tue, 21 Mar 2023 20:13:51 +0000 (UTC) Received: from EUR03-DBA-obe.outbound.protection.outlook.com (unknown [104.47.51.176]) by repre.tmcas.trendmicro.com (Trend Micro CAS) with ESMTPS id 7D0F52008006F; Tue, 21 Mar 2023 20:12:44 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lhqzr6JHEWXeaLLKJxIYRORWOquQHPBUp6MQZiscZtdCBtNNi9kFTDxn6QyJA58204G5emqnFvR5hdPaBXCW4smB/JqeTuyxZPb38aSU2ZMEsuRsiSL/pXEzaTfvi0vhrwCDGAlkt7Slt6+eDahRoiILeBidZ/ikkj1Ge51u9H8lesPJ0g1L1GRDGC/M6Ht7wwoLlMJwI19l4jRbpezl9lhWon8i31064/nFY/0eOEcFFzo3ffyOxJt9Zbkpp0PFQbXf7cPgjWZC/iqJelfYgFxen0FfFg4rZ+GBbL3KdB8E3An31+tRYfLcuE0D4gi8RYh8qElwYvhfiyO8zv/GJg== 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=dfoJ+uNJzbXlJdRQS+wrL+OpjoArVO7osu/ndpkyg3ThC1YAb/Xd1PVot3LEw1TKGQVSyA/GuMz0LcVIp1wz+Ntcfby/brcMaS4iBfZCt06hbaEkPZthr7o74/ajD+SSEbkVY3EmK0k5JDPeeRmYyhAonVjIuGfPWhvUtRc8ErlT6MIjPBdpZC9BmMtmGzkWxmZug4MIb2dTapEcqfe7PT3FKoU27Hxp7j5Kp0fhUlahOp/O6n8+Hno8xSpaN7YVs9CGrgAT2YU7N3bcjAhGP8UXRPtJnKN1N19eM9XRrr0rSIYddrCkbXnRjY6R4XHUhs+HU8eLBQIqDuVFcSD4cw== 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=WKcXiQAODHnxVNw1wJA5kYwrolqtzbVpSHRWxMaNQWuR4RNm+wyM0YmxK9W7OLVXb4cV9KZTOYe5+xdsCqg4mxe+F/hv6ujJY4YfNtIOtv5O1nq4nTR7ANUGLCBSGF5n0Hl/gxL37lIYRrR6lr7ICDncLZmL4ZxGF/9boPBLpxUPHbwk8v8Jxt1GEKZURT+VvQPZ1W1JXFthIyOfNuwo7/na976bUkvWTuTi54Caq+nXTkRLn3weEb0D2Cjw1HmRzRXI8FG1SPOphEjGo0/gq26KtgOYW3kBAhf7W9DTPjLMtaq2mzxD71v85L9eVJ5p0aH0iOhfOOme65XKB57z9g== 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 AM9PR03MB7044.eurprd03.prod.outlook.com (2603:10a6:20b:2d9::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Tue, 21 Mar 2023 20:13:41 +0000 Received: from DB9PR03MB8847.eurprd03.prod.outlook.com ([fe80::dbcf:1089:3242:614e]) by DB9PR03MB8847.eurprd03.prod.outlook.com ([fe80::dbcf:1089:3242:614e%6]) with mapi id 15.20.6178.037; Tue, 21 Mar 2023 20:13:41 +0000 From: Sean Anderson To: Vinod Koul , Kishon Vijay Abraham I , linux-phy@lists.infradead.org Cc: Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, Madalin Bucur , Camelia Alexandra Groza , Bagas Sanjaya , linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, Ioana Ciornei , Sean Anderson , Rob Herring , Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org Subject: [PATCH v12 05/13] dt-bindings: clock: Add ids for Lynx 10g PLLs Date: Tue, 21 Mar 2023 16:13:04 -0400 Message-Id: <20230321201313.2507539-6-sean.anderson@seco.com> X-Mailer: git-send-email 2.35.1.1320.gc452695387.dirty In-Reply-To: <20230321201313.2507539-1-sean.anderson@seco.com> References: <20230321201313.2507539-1-sean.anderson@seco.com> X-ClientProxiedBy: MN2PR20CA0026.namprd20.prod.outlook.com (2603:10b6:208:e8::39) To DB9PR03MB8847.eurprd03.prod.outlook.com (2603:10a6:10:3dd::13) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: DB9PR03MB8847:EE_|AM9PR03MB7044:EE_|DB8EUR05FT011:EE_|AM9PR03MB7558:EE_ X-MS-Office365-Filtering-Correlation-Id: b558fa81-87ac-4d5f-d0bf-08db2a48c9c9 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: u9aqdYnoNgtBk7HVTVmt7Cd7l0z6dG1GuvuuoOdbRRA73e7VstarQ6N44kM0NSUjUHU9u84A7bemFC0nNpxDi6sYqnOLMK9z2QEJLQ64ZnwiRFgQUuRtuhz+SvsTqTJHMnpuceK3FimpFsi+H4lB4NGfGc5m2HJJrLtxwWbrQ6oap+dHf3PZqXC3evy6cyRaw5iNbCLOhDjwLgLs7Z9Cdfh/vLmuzD+hIxstKaJ5rgQNtppyC+MWI8SnlzuH2yK2MqYPwZSg+8AOEsg6Dt5lXNrj/wWr7nr0lBq7VTxfmOfGBHk0nfmtuEcQjJcuhHnl+/kE7cX4GgrOHD6Hwr3ctfFB9d9UswFTNMdS46HXvBAt3Lr8OUxr6XS2gGHBlF9moQmbAXh7yc1GXQecDDXijZuGn3Gq+T8bHhhDRpb0qcXZXja5Z88waMRZhVKDkXkqx9T4MRS3ACWKq0ZpNkgsRzV5RjnmFuV53B2Q0HCtEA/UyIqaiTkaps9I9bNKYuwjZaLyP2/DlsY1csNFnkunpbJHhh90xYLRPpK6nCU5KYrNUEZwYn2NBk7bwTGgzsmM5rAzUTRmJE6NmyLU/rPeUJkZAXLg/l8IJnlgUNWw7ozQhYzr14RA0aNUFFiboOAEQxysvycbCqfHQijzHwQfNKjysEhxau7Th3GQQiNbiuxtZKSJM5Qj42SOjcCGb0UIhUISMIZXcu9m1VuMlWm1yg== 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:(13230025)(376002)(396003)(346002)(39860400002)(366004)(136003)(451199018)(2616005)(54906003)(83380400001)(6512007)(7416002)(6506007)(6486002)(478600001)(316002)(1076003)(26005)(52116002)(5660300002)(6666004)(186003)(110136005)(86362001)(38350700002)(38100700002)(66946007)(41300700001)(44832011)(2906002)(8936002)(66476007)(66556008)(8676002)(4326008)(36756003);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR03MB7044 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB8EUR05FT011.eop-eur05.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 3ce737f1-184b-45e7-7647-08db2a48c3d0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: sKJYds07z1QE1fCLxO9uWvWnDS3onpYCv5bJr22lVufNmDtpU28pNAdik5wPGNd5shaymRy8O+RRYfuuFe0ZEBlFG1VGJ/ZB2puAw+beIzDkEWJBQWf0biI3OPpRMYcDGe0sAfGWB4g/9inNIrhNd2MVDvvV/Il2qoIxU9SVzPpxX6TrqhrvdyN9i79LVuXTIZgtq5/maP1CAp6bhZKyBQxAboppghojLLEgWoXeKESc6Qbw0DET0vf4onSmdIlVSP40vpm7lcpMcMqflU1RPEgcAHYX+eieMFpjlecrbwFDcnlHM0PE7ZM88lvURl9IP6WeDRxoiBzIWbOMmcoGkKdp3sUgmgrRQz8a0xLWRcClwvCFJzzhDYRAKqE1iD9mXwcujY1Qm70P1x97LaFvd+w19/ud/nmuDP7hGS0v7znmytW+Ns7kX+7ff8Q9A/xiV7bmw58+TeDtFvY44AmmxS7T0ybFrWcfLoObrTfjAMIL9NzPfN1ryOm4RwY9z71qXHzjILQOSBeGjaXPlgwfbxpmeKCWXyF6mZbau0fXw/pbC2gbCFmf1a4jg6jc3hhqAkCJgUIiJxEgJ7UbTtobb1qdRfZYnaCd4oZBUx9YOATBh4xa1+MMmdchV+fEfL5jCiBELl3mN1mQFx8aELrwaYM+HYbmriiAty/8OB+gpGBqq3ru+K0Jt5x+vHNDX/nz1se+N8A+FhP+5YrUT6dEwZnkgJ/P2MQhVls3QT9c3YsUPXbYO4wMjllE77DBVV69u4L7hWhdZEbOADUKQvMNdA== X-Forefront-Antispam-Report: CIP:20.160.56.83;CTRY:NL;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:inpost-eu.tmcas.trendmicro.com;PTR:inpost-eu.tmcas.trendmicro.com;CAT:NONE;SFS:(13230025)(39860400002)(396003)(376002)(136003)(346002)(5400799012)(451199018)(46966006)(36840700001)(40470700004)(2616005)(47076005)(186003)(6486002)(4326008)(6666004)(478600001)(336012)(83380400001)(316002)(70206006)(70586007)(54906003)(6506007)(26005)(6512007)(1076003)(110136005)(8676002)(41300700001)(34070700002)(36860700001)(7416002)(44832011)(5660300002)(7636003)(40460700003)(82740400003)(7596003)(2906002)(356005)(86362001)(82310400005)(36756003)(40480700001)(8936002)(12100799024);DIR:OUT;SFP:1501; X-OriginatorOrg: seco.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2023 20:13:51.3734 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b558fa81-87ac-4d5f-d0bf-08db2a48c9c9 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.83];Helo=[inpost-eu.tmcas.trendmicro.com] X-MS-Exchange-CrossTenant-AuthSource: DB8EUR05FT011.eop-eur05.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR03MB7558 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 */