From patchwork Fri Dec 2 20:45:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13063212 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1537DC4332F for ; Fri, 2 Dec 2022 20:46:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234702AbiLBUqS (ORCPT ); Fri, 2 Dec 2022 15:46:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229527AbiLBUqR (ORCPT ); Fri, 2 Dec 2022 15:46:17 -0500 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2100.outbound.protection.outlook.com [40.107.236.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9E54E174E; Fri, 2 Dec 2022 12:46:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AzaxF1iUyGW75v14ILjL5QJimgU809aaDu5syjWYKzUILaZRNVr1qFnIGGTfHszGGJA9EFfXM/moGeGpFGYbYW7B51Xi/dORg2bvczng6PcFWtqyH1DRrK87OzZ+KC5yEscsbmcteiLWl3ea27Ho4z3XEHvGDgF8uOYSi20sskEblJbWBnje4cpdDW4Pa10cIQrXJgRWE4q4uK0DSZeNYsne8xt9BpKMIsssNPi2vmomGqa/5VAcHZKLx+vK3CvcITPPb8HxakEagLdihRxae73s/lz/9fr3hvHBjB32Q41jpK6T+WTvl3/zhNboH+ky6IwmJbdgx6lViJd25kKPQA== 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=PXFi++lkja16w/FExAPqKh64NH+6QWLAkwGLxKjTCNc=; b=j4QMaEQlhGwbTF19KV1Oz3N/y7subJErz4BGsWT8rYAnNiefefhhIVhHkJ7xTHl8fUu/Qo6pna73jUyv5qrgwQDbmcomaMnZ0g0l1+3U/klB+pGjflRqrwMMZqKj1QhyCdBnQGySta4EK+J6/5iT59+grVDOMEqWQ1I4rKVZfCsVHUji94W+MssjCj2peYZQDZB6g2Uz4/j00eYdc1uGbvPL4+JuLhQvbmlVVMeEjUyNqBjfYQzfI8/NdiFDQw7cFUfKHLb3/XScLXQq4Nf50YXblg3D2CU9LpptKtRj0UPYja1cTPtZHCXK48LnX6NaX5ixCVU4x5l8AGAMmTE3jA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=in-advantage.com; dmarc=pass action=none header.from=in-advantage.com; dkim=pass header.d=in-advantage.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inadvantage.onmicrosoft.com; s=selector2-inadvantage-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PXFi++lkja16w/FExAPqKh64NH+6QWLAkwGLxKjTCNc=; b=y5oxsdAKSd663eaxPO/bBlyKsEYKvAIhov+g05CRmAX+wVlpQiGr0k2uc5NmLfaJSnGP9gY3O9XFaXwXQQKwDZhlsTwcPOvNvXaOpCvYfhEQpolCbvwAt1TZ7OnzxpKRo4NjMlC1TsSwoJ+pbArVjQFFPqgzHmOhAOj/LRRRsmA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=in-advantage.com; Received: from MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) by BL3PR10MB6258.namprd10.prod.outlook.com (2603:10b6:208:38d::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.8; Fri, 2 Dec 2022 20:46:14 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::45b5:a860:9cea:a74c]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::45b5:a860:9cea:a74c%4]) with mapi id 15.20.5857.023; Fri, 2 Dec 2022 20:46:14 +0000 From: Colin Foster To: linux-renesas-soc@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org Cc: John Crispin , Alexandre Belloni , Claudiu Manoil , Marek Vasut , Sean Wang , DENG Qingfang , Landen Chao , =?utf-8?b?bsOnIMOcTkFM?= , Vivien Didelot , =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= , =?utf-8?q?Alv?= =?utf-8?q?in_=C5=A0ipraga?= , Linus Walleij , UNGLinuxDriver@microchip.com, Woojung Huh , Matthias Brugger , Kurt Kanzenbach , Krzysztof Kozlowski , Rob Herring , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Vladimir Oltean , Florian Fainelli , Andrew Lunn , George McCollister , Rob Herring Subject: [PATCH v4 net-next 1/9] dt-bindings: net: dsa: sf2: fix brcm,use-bcm-hdr documentation Date: Fri, 2 Dec 2022 12:45:51 -0800 Message-Id: <20221202204559.162619-2-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221202204559.162619-1-colin.foster@in-advantage.com> References: <20221202204559.162619-1-colin.foster@in-advantage.com> X-ClientProxiedBy: MW4PR03CA0201.namprd03.prod.outlook.com (2603:10b6:303:b8::26) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR1001MB2351:EE_|BL3PR10MB6258:EE_ X-MS-Office365-Filtering-Correlation-Id: 5ceb862d-b331-4adc-0576-08dad4a64004 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: d6vSPXLhePwAc1Awb/z1YhET95zN7HmaqAfWiat4lQRdIYCw/juPM2nlwnDyxTHP8Af+mQUnENA/NBSpMpjmkKBy3l0l5Ge080Gr2ESzwPwkJEWfGy3/SHXGd3DReFqTOLq10GAvBfuagB0gfa5Ogj4so2K6/dD3a6kdqrEzzTICyYYud84r5MHcOBifxspcU7mvFXcBcwYWleMptWNSRU+GPFYe0XDReSHQJ5f1rMh+FvatBCzZ35SSQDscOK5oUEW3hkKhImIehuuZed4+rn5SbvPQxgmZ8v7eliurgOyO/zee+ujs3WESlQmzncEPmsMWRaoiZK0K4doxCt3UKqiUQqk2hsltrqUUHeehrz9rLxGXJTpqhRYxh2WEdPTn1otcKxYNTy18xmcPoOdwnYM1cFh/UUA0ptY7tgTQlJDomqcHmMDi7/lwax7DVABwVAFyKniQ+kCgwXKsZYWIM7+e/eFLQ0A562yY+X9I+XbMk3Xs9e18cGehwodVFzHufBgS+riLYrRKltYGheGdOyZPIrUY2sdcNj4SdkpOcRiBJBVaBLYbo/cwIc9aSPvZhFGo9r2HGNm4dMnV41Zyy1COCb27VhGYbNT6kY3VpiCRj3YupWsrv5KJHAundufaLpxtPRdp7Cq3qXWTulvNwXuliLZFLnqqAE/9kW9J5Ss4Urgmk1YPLjqQQd2kcTzfoe1T2sb2dYre32zSwCIEgA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2351.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(396003)(39840400004)(346002)(376002)(136003)(366004)(451199015)(36756003)(86362001)(6512007)(54906003)(6486002)(6506007)(52116002)(44832011)(478600001)(7416002)(5660300002)(41300700001)(6666004)(7406005)(66556008)(316002)(4326008)(2906002)(8676002)(66946007)(66476007)(8936002)(38100700002)(38350700002)(1076003)(26005)(186003)(2616005)(83380400001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: DwoQ9nKMGN2wIwM+ruDF/Ix7neG6BLeE3klHh7+kwrfY66J9H0UOKwMqwALF0u1ULAeIJngT7NE+AUSO4ZK9+qM4jcEts7RKI5uOd7w3C9T4etVOvwVgRe2yAtx0UiUH0iy84wmo6PPeEPsRSt719POgjOL88e3FOLsRomtB4XBzLsOqDEczr4P5kIihYCiJDIcFSfmFPboq+BE5eNmiaG3BlZci5e2nEBB7/kXWo11hCOtVxXp5HkUndZHonjrrcKIG+DdSDg9To40LEIn+u6fbWRomDKE2EL4He5QBLbfAIz6tzhoLF2vjkXklI0MdcsmW8mAYJrrZ7J8PL2no3ZgFvRFn/H46ZUy/6vRxSoHKk4adke2BrnRclj3Vzeu7JMA21Tnub/ViJdWowzIdOxUtqxQ8vLrLUsC0hzkj28Bz710qmjZLbNNehAcxbd+j6W1XvRI7GdXrIRgpRLP41buqCatOjShIIEL4UwVuSy4u3mObDB9yryefu/nXiF4bPWq5SvVrWatjh3+LUkkKyTokzc4KnUJMoAoQ684Bf8wf+vT2FV1ClTE+s+vCWwunmu5lkgH9zjLRPLkZ7xFvoCWy2GC9iXN7f1FHhwedgQDcDvxJ7qGQa7DgRuC/wRXbgIjWudAM6mK7SEL9EwWtTb7UjD0tUNUaSqa3mwHYq3knHua9Kve+mAsV7hqIZVHu7ZSKdLb6z9XnD+82YebwSDHxQxNcpsotNxU2YwpBflWGCiMlWvaCYmYZRirK+hlF/Xz+CMHlRAIzI1QZDrq+KWAZNm2jUl7SBNn8BTxybsaVuleFFw3GEwrFmw0Zfr8FKNBZbHpQhGZGKor6SXf5DKAAGoxeApfQy2Uj/zOdQozKqvo8LZ/vxsMP20L+l39YpqqOFpYQeBCc+lqA/p+Ao1k12OcUCDvt8dtnXTMEqrYR4Vf/Z+T2hRKOvBYffNN2DXKR1XyZx5tnDjE207urG30GWm7p3kF8PpuOecj73Tg9N555rLPFgsEQAgYbAVdxM3Q0h0zFvArICVyHxYeTRU3+vNetfEcDVWoWyzmvY3AXrfnIviG2UuPrGQOerpEUXPMa61LpCyZNTGHc51V0BOWADjeeRSrCTjjHErxy+NJ+fumzaueXJ6pK2kDJZPOh7WQyPap6uOLzkkRehXSx0lBJNqjoll5uZ2HY7xstudvBdEY9Y4ywEjD8jvLHCtpDEfJqGlaZbWwgF+fDktX8gnIfL+FNhAJEG5ZcIZf5oAz8cJX0+ohr9XaRtGzOlqb9mo/L4Wm/HTYVqnkD5t+hrgxM8VbmvbVKpM50UkY0qmwxarVAs44wV54gM13Skr491mx2pTGO1UhQFR+apk2uawmjZYLvRNDR2Ws/FyPb5/5eNQOwX/Il8Ws5YIeipo82saY6UuB+lg0tycB5RCbPm0Id8gkoLh5gQyWKE1eTQRnd6VLgBRXSykv9G/tFR02vUJP+o/nfnhne7Gpp2diufiMNNOKYPkOKSOaE5E4RM8H+Sp3gxqo+inxo5FlNqJ2sLkp4/hbHq5tS5PDd0hNh55RW3U1hUmOQkleIUczNQFKZzl5EC1ZmbsIv7pf3mUlBHzHIjFVXNgiE4Ixm4VfQpg== X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5ceb862d-b331-4adc-0576-08dad4a64004 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Dec 2022 20:46:13.2042 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 48e842ca-fbd8-4633-a79d-0c955a7d3aae X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: inXOEd69Q4Slpxi17lVvcXFxI3DyZ4tEqDP89cQgXrHlv8IWf1LCbMjbV9bbD2CbRPFzZVKiOphzpi6lWvX/IrX2NcuFyRpMw+O/NgMEBt8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR10MB6258 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org The property use-bcm-hdr was documented as an entry under the ports node for the bcm_sf2 DSA switch. This property is actually evaluated for each port. Correct the documentation to match the actual behavior and properly reference dsa-port.yaml for additional properties of the node. Suggested-by: Rob Herring Signed-off-by: Colin Foster Acked-by: Florian Fainelli Reviewed-by: Rob Herring --- v3 -> v4 * Add Acked and Reviewed tags v3 * New patch --- .../devicetree/bindings/net/dsa/brcm,sf2.yaml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/net/dsa/brcm,sf2.yaml b/Documentation/devicetree/bindings/net/dsa/brcm,sf2.yaml index d159ac78cec1..eed16e216fb6 100644 --- a/Documentation/devicetree/bindings/net/dsa/brcm,sf2.yaml +++ b/Documentation/devicetree/bindings/net/dsa/brcm,sf2.yaml @@ -85,11 +85,16 @@ properties: ports: type: object - properties: - brcm,use-bcm-hdr: - description: if present, indicates that the switch port has Broadcom - tags enabled (per-packet metadata) - type: boolean + patternProperties: + '^port@[0-9a-f]$': + $ref: dsa-port.yaml# + unevaluatedProperties: false + + properties: + brcm,use-bcm-hdr: + description: if present, indicates that the switch port has Broadcom + tags enabled (per-packet metadata) + type: boolean required: - reg