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: 13063239 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 54305C4321E for ; Fri, 2 Dec 2022 20:47:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=xXTMRAMx4EfOeWMW+qUC6T1Ntl2Yyu4pKX2Wm0V5ktE=; b=MBKetjnbJfeXOL fwGxUI+Q0QAH2aFk/DMNG4jWynBxcVBPei7hMoPjdizvtT3xmcwXwoFDAAT4ePfh6lGQYlYh8pHGB 6E4v3VKqYmlq//1ZWyg9fcTr22ROkW0aifDyQHu4RTrd7NLS6XfDLKnEhCOUepX+1uwVuEXBtLrMw gqx1punLkQw/y4QU2b/5abuHzBxtzJ12KrUyDIC2Bcl2a68ZqTGVSeCDy6jqKT1qf7Bvzls2/sPA5 cFXiMESzQA7wyct95KQysLmcigSotT/rnkjiRukP8LYI/IyFxr4LLn0D5WnEjy438vTxrQZyqcUm8 1Q+8NjIqVZtt6sobtt8Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p1CvP-001Ce8-7V; Fri, 02 Dec 2022 20:46:23 +0000 Received: from mail-bn8nam04on20730.outbound.protection.outlook.com ([2a01:111:f400:7e8d::730] helo=NAM04-BN8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p1CvM-001Cd9-27; Fri, 02 Dec 2022 20:46:21 +0000 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221202_124620_374953_32ACC7E7 X-CRM114-Status: GOOD ( 10.50 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 From patchwork Fri Dec 2 20:45:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13063241 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EE411C47088 for ; Fri, 2 Dec 2022 20:47:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=/fFfDgca5eHb40NClLNU+0syxZ/gJscoQRJBa00Y2tQ=; b=kKCvhvtAlEytOL DQNRgb+sbiR6ebwnaHduwj2V9rtUAoWZaWnQKxLOD3w/+Ldrn9840Xzhf8hUvxaH/0iHwCtw0Iemv DWMPRtwwySt/7RBl3mOqIAxO2iAIdD4d1MTv4cKkRdlf6F/vsO6alDynjiLtLO+SGO0I5rIAdb+q4 ZTsnnlVoCaRtiAxypydY5y7TFUJc5lWS+wsOgWqQ0K2ifmS0hB2fl8nl+l46oVSLP/citSLqduyZ2 VasAtFuIrfla0P/RbuJ/djg6hR65mu86kz9K1Afggkb1q0+chHMBYBHTDhi2wyMFrGFf2IyBekMbm Y96foDheZfLPMCr56RJg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p1Cvk-001CmG-80; Fri, 02 Dec 2022 20:46:44 +0000 Received: from mail-bn8nam04on20730.outbound.protection.outlook.com ([2a01:111:f400:7e8d::730] helo=NAM04-BN8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p1CvP-001Cd9-GY; Fri, 02 Dec 2022 20:46:24 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V2zTsdpp0VienMyDmLQmjqYJZpd39IGFWmfdBJdUmb6imTaBuCcQjAKXFywuxMdJvY8Vg2nGnReQGhJ8h7So3vbe5FXMUB7qNy+jFWzpTi5DnmLRI3O+zBLAbH18RvM8RI6BX7SlJyV+iqptITgn9Ztqv9lhkNQoWMbcHhi47XJeN0fYWkKSWE3q4BbvwdPqxe9iqpD1eeqpW5iZjJ4wHCSZb1txDsbBS0xilP1DeTNl8NrweOm+SDEnuydNgeBGUUlw2JCvF50F4IHMI7q4cLyzBwPMIXPegDo4+oC/Yb6+PjunhWvldZMnIATaOuTOCQhXOi9Kdpa+FhTNXZAXdQ== 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=CqowWdbwrOBX+gL8pv46Sj6JX66PJp7cdXQee/ebLmw=; b=lqByfXl75wNKuuQzTHVS55CsnByIALuFrOjwOadjcrjcngG40BsM1FlM22PzkAC/8vobPOtKY7eZ7LBFwy6peH3EAbv/AFeHCCgKcMY0JwobxsXBgum7LCN7XDg0zYMiYClO6z2uvUNDXBys8VkRazoauV/RtblOIYRmGa82Vzj+9XrCz2lt+jz1/prb6fr0UGOhfZBcBpd+ohZiVdwvU+r2D4gVbPqJInxsygB8CYrmWh/IH9Yyq7QjyO2YiBABW8odYyqMldavDJVNtq4Cg/re9a9aGRmAJY7CDF17FzOQ7T8Pk+6D0xaA7gyYS55G09kr4SAtx6L/GD/1e12syw== 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=CqowWdbwrOBX+gL8pv46Sj6JX66PJp7cdXQee/ebLmw=; b=dyrxCHYVYh3I5sT7ndT/QMM1Zhw53hrYL7NAO/HyYkVgN35vwYNkjJg1u9y7la7PALNfK0c+LMdrT7H9010aUrLBVqlwpL86k22F/QDo5+Pp8XrSRCoXVYViKcacuFwC/N6/6RFZ05S+QiRzlV5JKYkHIsT5Jy9/yfo4kqQqnPE= 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:15 +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:15 +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 2/9] dt-bindings: net: dsa: qca8k: remove address-cells and size-cells from switch node Date: Fri, 2 Dec 2022 12:45:52 -0800 Message-Id: <20221202204559.162619-3-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: 8a05f89c-9101-4505-e71b-08dad4a640aa X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SrGJkOnfC0vDie/RXJZXihtKyamLqcHoj7C47c87+m8BYElrhAN5jNtd65hwnLyHZusedtPnPbR0xu38+eSbgKsjYlB62hMPnSVR6onSBKZJdrrI9cyKl6n5jwIpWIbR5ENuZ9F5VAZXilCu1k/M6qU9zrdRITxhUZ57TmOAR/DYRpQntyLJmKINGs29S0urR1dwIGqyBYYGS4LHhmfJHW7X6Y9Hovo0d2a3KR31tFatvo/iCP7WWQIIZb0/1y5mgZh0H1msaHzll32p1Pb8eo1foQLmpIvwCuWYBWdi08ql0HI6NkrXApVxFMx8PpGcWWKu3rByM89uNKfiGF3Aj5ngKxzbOTBXLL2a5SCRr9M7lrPFLAMtsfqVhg/Za2SCd15oVunfiO9fTRIVhSPOWdpZ9sZL5UzjwZoYOuaZ81ssngJdVMb145UHL2g68dmE3BCo3TLpRgEbi9UEEYFKE+AAlqhLOF3h3/kukImLXskBHUh7whF08s3fF+JQcAupEVLY2CDma75VNzE1A5Rr9cof/76YbCSwrjU4IS/RCJVHLTqxVCBwz1spJmD0REYIx2kV9IjhJfnxAHT76L9rfAd1z0VY4tFgwOdxyuRVOSD9usZVlmSQcH0Ww1KwX5PmK8UxWqrUHjDDh/zWGVuORGsaQKr/uSOj34GEG4CyJUeh6oXNca4U40fcv8j3SQIXvQMkq//BK6njlHZog7T7rw== 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)(32563001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: zgeH1Y3qMhsF9BdRjczL/xzkklQczvKsPL37GN7lSRQWLT2Nruwi8k92N8fTibNtAIN1B9O4MPINsojGhLq7baVO++4u1SwAol+cxQ4kvDyk5U+M0yHjeNV/xQY+cmTJDAB295bc8ffpT3MvgTKwcjAZAmiLhUUPZdsf7foRn93fnZ+26PXdHgldgTEz5wQdWB+U2BuY3J2WZdEox5Airo+OKbbU9JyX++MVWaqyfSg8Uro5QXIQ2RolFE/M0mV/vOiIsmC3IoDGHx7FylPHJiIeT6oNycI3B2cJbDf1klaVtvyjVd8v8IZ4Knr5GHAcWi/Nj5FkWh5GhmMQO90Hnz0aUheCVMNaIu+96jKz9kbHoKu5+1kZqwvLbv/OlBX02e6mvm2tGnZmWyKWjz5rqzYUufvrX3XJyih2uLoW8eemCIeS7R7r7K75k+CVDziw5KoC8tKC/E8t1zIW7tjVOkabiAY1/uYjN3Y9EQs97MB/Aq4PaMbURFGhziC2JIiQq9QDC+Z+9uqdtLUjSIsoBvUm01JuKBKqFC7LHpOLOeT22IfVCMQrI8nQwfXkm5VBUCVArhLpAOWdi96VHEhe26JKNvpRjVBdG5tsizS2fcSCJ7blC4ls248XoXTW466Nkkaue4bXB/+6iwS/6F/4IHPaq8LcRmhQCNt/kfQAn4VQpntxRdWjCJlAZqE0D/dHVzQdW6zijXZBZGN1qvw/Es1gygbYCyDmQD4Q0loxeoTNznY8QmtaShYXZhGvENBFBup5ntIi6gaJVXQEg9Y4v3EvKFnPT+YX8n9ld8aUBshwXGTtMOLLjsd/LrOSv30uKC/Z7YIj7VvcHYPV/WwQzbWNdTL0KXL8S0fc3keyWJZ8Pw+RYTQP2geURFMP4cv/ZFgBtT80DBZMNp6/KIwMbjv4LgdyjI+UGUzGJXCjHpZC5+8EydSKJe3hJyhgQNz0PEG3Tkzw7HXn5Q2mVAt7KH5NW/BOloEgznv9xwoZxVusdHnboketopAfRMtoUQxgFu3WHQ/MPqVkAq9zHQu+MorLHQ6xTO7JkxoTmiFecKzIDpIV41ZeFpAY3tL0tSVWEW6Uhjw8rZK08VhzBmc/k4Iu4kt7Jz4Yt+u+cbjDDiZ/sGM07wxMZ49+pc+MVtM43uINJWPnLRHEKga7E0zz0pSIr4RnLdterXA3hYvadQQn28LEJg9qMweQHeP+ZoO1vWjfd/IAT3QdJy86JleFpzdMIO4jTeMq620b6vt6UO3tj3ZnkptlFNaOGJpv1f68bpPAjuqQXzliMIYSWgC5Abe4MoH9W4vFA64utc55VMwDyjJTfDnJL9scHPyxlepBAbBhNbULF6cjL2G4iz4caqA7Xtr0kFBpNREVvQFj8QDF5zYiRsJaJAMOTaQZxcdcdm1mkL8Op2l4Ni3TQvsSuYr0c6Bd8s9+B/0KMEEaiBeZsL5Xsp+hsHgtd42Srgs0RLCCw8ELWeEARarr6A3EvcAtUaxypQxeFmdJeXsXR4iaykMfPVO+SJM7v3DrwRdu66kaOOL/N7RkxEudKv4bim+y3VIVPDQYFfotfwdpLFR9KGuKUAAfyxfIGrUJjE4t2PYIlSYQ9cCYI+GqOpIk+A== X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8a05f89c-9101-4505-e71b-08dad4a640aa 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:14.2823 (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: y7ozENhH506lFku4DXYGfm1/kDv62IA6f6Y5nX3XzGVUBZUhQLgzMNHbiQwulgA3ZAlHrsanDIjtdY0ugSP2nglMFIaEzXPXeB0GQE6IAC8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR10MB6258 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221202_124623_602729_B40E0453 X-CRM114-Status: GOOD ( 10.53 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The children of the switch node don't have a unit address, and therefore should not need the #address-cells or #size-cells entries. Fix the example schemas accordingly. Suggested-by: Vladimir Oltean Signed-off-by: Colin Foster Reviewed-by: Florian Fainelli Reviewed-by: Rob Herring --- v3 -> v4 * Add Reviewed tags v3 * New patch --- Documentation/devicetree/bindings/net/dsa/qca8k.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Documentation/devicetree/bindings/net/dsa/qca8k.yaml b/Documentation/devicetree/bindings/net/dsa/qca8k.yaml index 978162df51f7..6fc9bc985726 100644 --- a/Documentation/devicetree/bindings/net/dsa/qca8k.yaml +++ b/Documentation/devicetree/bindings/net/dsa/qca8k.yaml @@ -148,8 +148,6 @@ examples: switch@10 { compatible = "qca,qca8337"; - #address-cells = <1>; - #size-cells = <0>; reset-gpios = <&gpio 42 GPIO_ACTIVE_LOW>; reg = <0x10>; @@ -209,8 +207,6 @@ examples: switch@10 { compatible = "qca,qca8337"; - #address-cells = <1>; - #size-cells = <0>; reset-gpios = <&gpio 42 GPIO_ACTIVE_LOW>; reg = <0x10>; From patchwork Fri Dec 2 20:45:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13063245 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ADAAFC4332F for ; Fri, 2 Dec 2022 20:49:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=xQxCGoVe9I9w5RwLcluif0ahb4t4edxceCzmtdWrCCM=; b=sZc08lA61z/CXv 8uNKVLfCMCw7stFLt6IqGzfRUrzeSe9oGdxEG0QqTETHYaShACU4A3HHMQEJR1on141BxLO5d6rFy wXu9fQqS5e+JESnh6OsqVcy8piP0sjZf0blOu4cYmOgu0uVgWeYwp79oZqPF0vYVMbxCnps1kyYJm 3wKG0i3P5PS1cJen1G7/OWm/nz4RGfFIX59yY1C+WITtLNXhq3CtGHR0UELX3/gJyxH/Q8a6D9e+S R1Id9F0GDnJm21bq++vgeeCkghH78LK7OPOk86OBZt/fKe8rIhege95I4qUImqip9M2zSkQOxFe1C y03vs8MyvHSICKqmjPeQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p1CxU-001DWW-4y; Fri, 02 Dec 2022 20:48:32 +0000 Received: from mail-mw2nam10on20720.outbound.protection.outlook.com ([2a01:111:f400:7e89::720] helo=NAM10-MW2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p1CvS-001CeB-5o; Fri, 02 Dec 2022 20:46:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Yq7MPRoleqCoh+GT7Tdeg++XJPO77E43nt0NZLSMZyahWBiNmHUq65ErCIvtjQWoPYBOILR55ZZxApjtAMex9DuM+QlNohPpWAM5t+7+oMwfqbjbJHhJEkBQMA6BwGTgolqXIcMdz/l0SSVht41QwMTZFft2C3QtrzuYke234AL1H2qUd0TuS+lB0dnrBPpHUipwKuSU7WcDmyb9py1ZDWHqDWjSx/r3fGZAbXkPQ0q2LCjkFcrFUW3wnO7rynvJEr3WELYtgwn7BUwgmMbhcyd9pfSeC16SVqJgcjZ/qbxBqNUvRvsfn7JJ1wYUclD2DVViZNFUi8yJIXH+KQvGuA== 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=qYbz0ScqR0u+Wgwm+mP3P9fH0olF7XMLqKQkE7hunes=; b=RJhnL0qvIe6b0s+Ng8Gi82Khte9BWgGRXPexeC9qt5hkOnrIAy2PPp9MhoxoCkS3pXYFdbEoCj5ERRDs1gqhYggEIJC9McoLJ8+NixL5rCJAvQB60EnogzhL2vHWCrHaTmBgxsuxs5b9SEJr2EEUTZF4KfQg763TgsQbNRhvHqu52NdfCYrb+zZLd4dmz5/y/i1EiXaWglWzwuwwvFJz2H2d7QRfZNznooDQAw85zI7cgVJ3YwQfTI1bgX4qZC1vUAZlt/nzMf/u/nUWUQNTjZTzAvMImUCFmYl2zPuEUO9r0XacgBAB1UPDyPJdvQ1gjj7eRc/TKS1PF2XDOHy7nw== 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=qYbz0ScqR0u+Wgwm+mP3P9fH0olF7XMLqKQkE7hunes=; b=EEJMZsfeBYMKQBD9kWaI8pwa2aiG1+8bOFZiXCCEnL1qal2KukljcsM2phcUat8LqKV8HLr6K6kZ7eDDn1+gWzFWsZJkbyCKZzHCTamT1Y2OYz4h/i1g0/GSvhz87tCWlCJtG4xzKa6tj64qj0yRvfz7qCp1GXsFuePSj2iakrM= 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 PH0PR10MB5547.namprd10.prod.outlook.com (2603:10b6:510:da::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.10; Fri, 2 Dec 2022 20:46:16 +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:16 +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 3/9] dt-bindings: net: dsa: utilize base definitions for standard dsa switches Date: Fri, 2 Dec 2022 12:45:53 -0800 Message-Id: <20221202204559.162619-4-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_|PH0PR10MB5547:EE_ X-MS-Office365-Filtering-Correlation-Id: 63e64de8-d2dd-4232-df2a-08dad4a64126 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GXTAC4t4BVpkBJLSscTmkbVey5sv6gnoaSOdV4EVHIaTJl561GblievAgsHbbYOER55Q4rj0fpsXziA0UP2mct4R9au59UBLbiNEU6dv0Vg925JbBJuTT+8XEK77i+PBaCKRAjEPZ/8BW59nxJA0e5awYbg2ua6lHwIpW4BqqN8Cw7otWX6K2KwYUculIcAjXUFS6myTbgiT09+mOPJGXAIN1EDC+15Mj8ZPK+wtqms1WNVLTC6XqMTsObv2yP3DtGfG9KZNF843/17iepcG/bmwVbSmL/OSFPYc1bZeqf6RduSR5ZA7tQojKJMyqR2lXe0nQxhXh6YVSQhGiAzGgT/iIcOsra6zCWeG5sZAeVWHd9iYNzgXYKRJsSpMzNuF31yx2pxViiK8pnN0Gn4qFPRbV65NCF2mOI5S/00+ii1kuXGuW+7kBS4pbs5gaCAcgYpQdIEoWC7bdRqubPgS6PJthy9inJ5pB0rNjr6wvu33mkMsBAp2T2cZAXwXwOHqc5YPlAlEIEb4/F5X3TnQznnUuOBECae3N3BIPU/ETskWyjBkyVTU7wqgMWe+oocxHzkexI4bmwWuk1W2bGC7XHXszJAoAIp70O0ZstSNJ1yrtcr+yB+TPu838f41AK1vXoinGSYxCeOEnXs5oj5WRuY7hJz8Oc8xYj/YmB/GI8TWdMj38t2w1LbMKI5mLDxlg1di1zx3J4QZHOmuDyXLajlukt0WazYW13nxo6Lsq08= 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)(136003)(366004)(396003)(376002)(39830400003)(346002)(451199015)(54906003)(316002)(66556008)(8936002)(44832011)(7416002)(2906002)(7406005)(38350700002)(41300700001)(5660300002)(4326008)(8676002)(66476007)(186003)(66946007)(38100700002)(2616005)(1076003)(83380400001)(966005)(52116002)(478600001)(6486002)(86362001)(26005)(6512007)(6506007)(6666004)(36756003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?Z+N64wDgNp6OEWwKwRIderyqdA8G?= =?utf-8?q?2HjZCxRvY5taKoc9Ild66utahsuPdecZzxkKiqFb4k0+QRf0gHVjIjGq3F+k9q20Y?= =?utf-8?q?tnS7iJsn2dVh/b75Hm3klUfJdmVJEsxEnEJqCNFsphb/uw4VEFIgGHjk4akSryNmi?= =?utf-8?q?J8lkjot2FstEaVu2biCk2K681HLT3R7n94GPf2eJd8RST0Yb0X0ZBaztV7lhYYe2R?= =?utf-8?q?B2LbSqUxL1KAoj9rabmNnkcKVW8VPfJjfAshsOczdQPspcx38mFQkpJLJPSG2RwNH?= =?utf-8?q?RTeSF5Od9wtCNuHCbDKOMI0WK5jBI7Sf09eZJOckLUaeiff3snxBttSuGj+e+PsEY?= =?utf-8?q?XPpre4zscEHZ+m4MTg1dqetcPsDOQKFdSzV19NlG2Voxi+X0olnq+J+Rad0dweNPW?= =?utf-8?q?ttKncter6+ParCKsjn50N6cVJNtMNQQRaFvuoig0SbexZ1Tme4Itm8WPl2lZGHco+?= =?utf-8?q?P6QdWTsrvWwr3EXxqOibSRs58K2w4nPCda92atDpqkl6LxMD1bis/v1dKcw5FuBDR?= =?utf-8?q?h1BXJe7RmVQC4UR/6HIN1ubi5JFBdaPTiw1ZPpu7u0zx0C7HxM4FaiMql2KpBYjBY?= =?utf-8?q?CwIfei0/IPJ1FKyJsDwBfDF0mpt8nRTdT1CDeTjSnHQDQli6nxTjXdB5TM4aD3sNO?= =?utf-8?q?6suGse6M6/sKcCjWgZnw7HpHaQSx4ddbwam35NqNcdVFmA+3CVp6Ur8ljOcvTpOdO?= =?utf-8?q?ek4ps/LVZuIVX5PPgW+/hX4QWlr1hCuFZdA1YNs39t8w/18VqcIxUJYSSXxrXnddP?= =?utf-8?q?IdYsKKADc0g35/cjcFmfzkBUD0G6i6GgqkPi4ZMAmZtdeBQKrbkaq7LsHGMvF4z0A?= =?utf-8?q?g1ydCkgaUP7a9N3P+Tu4PfPt3AxiGE1VOLxYgR87bQM9wMoBMreBZMRc+ajACfWlh?= =?utf-8?q?o3qtoVYTNwSXC12gwGUcnYWD42NRtk4aC9KcYNAn7oXbpm8sRxvoMOjFHXZ07EwDI?= =?utf-8?q?GYq48UxuXJc8lt15w1C+gGnt8daC0YQ7C855Gp7fNGnSsOWpcSnTtkfkqM9IQwve9?= =?utf-8?q?EFx/jrYIOlPjoEEbjoQ7yMN02WVb3PQnY+2C2wVkYoY2V4XYSW5mz2CWXTog8KgEQ?= =?utf-8?q?jtgxMEeQLJvcPd5VHMI8+l2qQdfl5uqUtcLseKqhOekHHRPHTX9MqabhEW5TCAb8K?= =?utf-8?q?YtLKWaPpUBBTiZDfWTp1p4netGHt7RQotcrAZ+I3Fuu/+Edk1PFBRa+KhyZdNR67T?= =?utf-8?q?Lrcb1TMDLwpQ1yLZJeQ4hzfbazyFV9adFdodUtU0woU53rCtH9lORjHV/EYxWmn6F?= =?utf-8?q?TwbZ6bjYgOZuhqkIEGa4zwHZqvQK6Doktfg58pwD6BiyB4nltXGhS9Tuu4KvjGAC6?= =?utf-8?q?5Q2Z9eZgf5tIwV7kvp8rCNK9hfMLzcwcyQOiObH17Fjomip5Ltid1UnSvHxn/RRpg?= =?utf-8?q?2Km5xda25kEIAY97T5PdUgiEyAitAKJ2cWYl5vi7XotxEWIz6lBV9lGGKyafdbYry?= =?utf-8?q?3enIHBS5I9CwL2Q8siSL59VivZA+QuoZWlcjBeBRRxhHy7i/xeBYAZBxEBRlFCKB/?= =?utf-8?q?27pKXwJVxo7j15f/7zxMXnHIyVVSVQpw5A=3D=3D?= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 63e64de8-d2dd-4232-df2a-08dad4a64126 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:15.1416 (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: EHUNTYqiTwvQI6RpWJ8tg12STAdmEZmAhOOh4cy7s/CJjlow+Nb9r6Orx89dZaM0vX6F76GnZlpUX82sf6+EfH5WzPenaNa5Lf0Cde4Ml6g= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB5547 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221202_124626_260640_849521CD X-CRM114-Status: GOOD ( 14.25 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DSA switches can fall into one of two categories: switches where all ports follow standard '(ethernet-)?port' properties, and switches that have additional properties for the ports. The scenario where DSA ports are all standardized can be handled by swtiches with a reference to the new 'dsa.yaml#/$defs/ethernet-ports'. The scenario where DSA ports require additional properties can reference '$dsa.yaml#' directly. This will allow switches to reference these standard defitions of the DSA switch, but add additional properties under the port nodes. Suggested-by: Rob Herring Signed-off-by: Colin Foster Reviewed-by: Linus Walleij Reviewed-by: Florian Fainelli Acked-by: Alvin Šipraga # realtek Acked-by: Arınç ÜNAL Reviewed-by: Rob Herring --- v3 -> v4 * Rename "$defs/base" to "$defs/ethernet-ports" to avoid implication of a "base class" and fix commit message accordingly * Add the following to the common etherent-ports node: "additionalProperties: false" "#address-cells" property "#size-cells" property * Fix "etherenet-ports@[0-9]+" to correctly be "ethernet-port@[0-9]+" * Remove unnecessary newline * Apply changes to mediatek,mt7530.yaml that were previously in a separate patch * Add Reviewed and Acked tags v3 * New patch --- .../bindings/net/dsa/arrow,xrs700x.yaml | 2 +- .../devicetree/bindings/net/dsa/brcm,b53.yaml | 2 +- .../devicetree/bindings/net/dsa/dsa.yaml | 25 ++++++++++++++++--- .../net/dsa/hirschmann,hellcreek.yaml | 2 +- .../bindings/net/dsa/mediatek,mt7530.yaml | 16 +++--------- .../bindings/net/dsa/microchip,ksz.yaml | 2 +- .../bindings/net/dsa/microchip,lan937x.yaml | 2 +- .../bindings/net/dsa/mscc,ocelot.yaml | 2 +- .../bindings/net/dsa/nxp,sja1105.yaml | 2 +- .../devicetree/bindings/net/dsa/realtek.yaml | 2 +- .../bindings/net/dsa/renesas,rzn1-a5psw.yaml | 2 +- 11 files changed, 35 insertions(+), 24 deletions(-) diff --git a/Documentation/devicetree/bindings/net/dsa/arrow,xrs700x.yaml b/Documentation/devicetree/bindings/net/dsa/arrow,xrs700x.yaml index 259a0c6547f3..5888e3a0169a 100644 --- a/Documentation/devicetree/bindings/net/dsa/arrow,xrs700x.yaml +++ b/Documentation/devicetree/bindings/net/dsa/arrow,xrs700x.yaml @@ -7,7 +7,7 @@ $schema: http://devicetree.org/meta-schemas/core.yaml# title: Arrow SpeedChips XRS7000 Series Switch Device Tree Bindings allOf: - - $ref: dsa.yaml# + - $ref: dsa.yaml#/$defs/ethernet-ports maintainers: - George McCollister diff --git a/Documentation/devicetree/bindings/net/dsa/brcm,b53.yaml b/Documentation/devicetree/bindings/net/dsa/brcm,b53.yaml index 1219b830b1a4..5bef4128d175 100644 --- a/Documentation/devicetree/bindings/net/dsa/brcm,b53.yaml +++ b/Documentation/devicetree/bindings/net/dsa/brcm,b53.yaml @@ -66,7 +66,7 @@ required: - reg allOf: - - $ref: dsa.yaml# + - $ref: dsa.yaml#/$defs/ethernet-ports - if: properties: compatible: diff --git a/Documentation/devicetree/bindings/net/dsa/dsa.yaml b/Documentation/devicetree/bindings/net/dsa/dsa.yaml index b9d48e357e77..b9e366e46aed 100644 --- a/Documentation/devicetree/bindings/net/dsa/dsa.yaml +++ b/Documentation/devicetree/bindings/net/dsa/dsa.yaml @@ -19,9 +19,6 @@ description: select: false properties: - $nodename: - pattern: "^(ethernet-)?switch(@.*)?$" - dsa,member: minItems: 2 maxItems: 2 @@ -58,4 +55,26 @@ oneOf: additionalProperties: true +$defs: + ethernet-ports: + description: A DSA switch without any extra port properties + $ref: '#/' + + patternProperties: + "^(ethernet-)?ports$": + type: object + additionalProperties: false + + properties: + '#address-cells': + const: 1 + '#size-cells': + const: 0 + + patternProperties: + "^(ethernet-)?port@[0-9]+$": + description: Ethernet switch ports + $ref: dsa-port.yaml# + unevaluatedProperties: false + ... diff --git a/Documentation/devicetree/bindings/net/dsa/hirschmann,hellcreek.yaml b/Documentation/devicetree/bindings/net/dsa/hirschmann,hellcreek.yaml index 73b774eadd0b..748ef9983ce2 100644 --- a/Documentation/devicetree/bindings/net/dsa/hirschmann,hellcreek.yaml +++ b/Documentation/devicetree/bindings/net/dsa/hirschmann,hellcreek.yaml @@ -7,7 +7,7 @@ $schema: http://devicetree.org/meta-schemas/core.yaml# title: Hirschmann Hellcreek TSN Switch Device Tree Bindings allOf: - - $ref: dsa.yaml# + - $ref: dsa.yaml#/$defs/ethernet-ports maintainers: - Andrew Lunn diff --git a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml index f2e9ff3f580b..b815272531fa 100644 --- a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml +++ b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml @@ -156,17 +156,6 @@ patternProperties: patternProperties: "^(ethernet-)?port@[0-9]+$": - type: object - description: Ethernet switch ports - - unevaluatedProperties: false - - properties: - reg: - description: - Port address described must be 5 or 6 for CPU port and from 0 to 5 - for user ports. - allOf: - $ref: dsa-port.yaml# - if: @@ -174,6 +163,9 @@ patternProperties: then: properties: reg: + description: + Port address described must be 5 or 6 for CPU port and from + 0 to 5 for user ports enum: - 5 - 6 @@ -238,7 +230,7 @@ $defs: - sgmii allOf: - - $ref: dsa.yaml# + - $ref: dsa.yaml#/$defs/ethernet-ports - if: required: - mediatek,mcm diff --git a/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml b/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml index 4da75b1f9533..a4b53434c85c 100644 --- a/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml +++ b/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml @@ -11,7 +11,7 @@ maintainers: - Woojung Huh allOf: - - $ref: dsa.yaml# + - $ref: dsa.yaml#/$defs/ethernet-ports - $ref: /schemas/spi/spi-peripheral-props.yaml# properties: diff --git a/Documentation/devicetree/bindings/net/dsa/microchip,lan937x.yaml b/Documentation/devicetree/bindings/net/dsa/microchip,lan937x.yaml index 630bf0f8294b..4aee3bf4c2f4 100644 --- a/Documentation/devicetree/bindings/net/dsa/microchip,lan937x.yaml +++ b/Documentation/devicetree/bindings/net/dsa/microchip,lan937x.yaml @@ -10,7 +10,7 @@ maintainers: - UNGLinuxDriver@microchip.com allOf: - - $ref: dsa.yaml# + - $ref: dsa.yaml#/$defs/ethernet-ports properties: compatible: diff --git a/Documentation/devicetree/bindings/net/dsa/mscc,ocelot.yaml b/Documentation/devicetree/bindings/net/dsa/mscc,ocelot.yaml index 8d93ed9c172c..85014a590a35 100644 --- a/Documentation/devicetree/bindings/net/dsa/mscc,ocelot.yaml +++ b/Documentation/devicetree/bindings/net/dsa/mscc,ocelot.yaml @@ -78,7 +78,7 @@ required: - reg allOf: - - $ref: dsa.yaml# + - $ref: dsa.yaml#/$defs/ethernet-ports - if: properties: compatible: diff --git a/Documentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml b/Documentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml index 1e26d876d146..826e2db98974 100644 --- a/Documentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml +++ b/Documentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml @@ -13,7 +13,7 @@ description: depends on the SPI bus master driver. allOf: - - $ref: "dsa.yaml#" + - $ref: dsa.yaml#/$defs/ethernet-ports - $ref: /schemas/spi/spi-peripheral-props.yaml# maintainers: diff --git a/Documentation/devicetree/bindings/net/dsa/realtek.yaml b/Documentation/devicetree/bindings/net/dsa/realtek.yaml index 1a7d45a8ad66..cfd69c2604ea 100644 --- a/Documentation/devicetree/bindings/net/dsa/realtek.yaml +++ b/Documentation/devicetree/bindings/net/dsa/realtek.yaml @@ -7,7 +7,7 @@ $schema: http://devicetree.org/meta-schemas/core.yaml# title: Realtek switches for unmanaged switches allOf: - - $ref: dsa.yaml# + - $ref: dsa.yaml#/$defs/ethernet-ports maintainers: - Linus Walleij diff --git a/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml b/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml index 0a0d62b6c00e..833d2f68daa1 100644 --- a/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml +++ b/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml @@ -14,7 +14,7 @@ description: | handles 4 ports + 1 CPU management port. allOf: - - $ref: dsa.yaml# + - $ref: dsa.yaml#/$defs/ethernet-ports properties: compatible: From patchwork Fri Dec 2 20:45:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13063242 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D6CC0C4332F for ; Fri, 2 Dec 2022 20:48:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=r3DfGcc0JNY29vd8cGA/dYxeW1rHehPWF9gU82uRAHk=; b=cwkYzszJlw3vfY bx4f2JkTZ42L5p/UfQ6JJ7mQpdk/XDiul0GZwCoBxBgPNpqZBNQaunriqRMyhRS9o0vKBl9qAbgtr +/wF3Cdc0E0VxOYSQFSzuO7h23VuEIVs9JASKmhGixI5caStFwdkEuMm9xY747f25LQcfD4hCD3Ma 4gnmS7FCsm7qsMxZfHt20QXsjpIcuR6gyJB515APr3YSEl4/bv06s4lwfQhEbb5nfbvVe3PEjGAM4 7vu/E74s2PtwGBh5Fp74Ky1oyHpdAgtSffM2h6cakzaXABLBPwLV+ZdDAQdK7Y3YTmau3ko0B/+vZ NJei4EBerHJvLZf0BJhw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p1Cvu-001Cp1-5P; Fri, 02 Dec 2022 20:46:54 +0000 Received: from mail-mw2nam10on20720.outbound.protection.outlook.com ([2a01:111:f400:7e89::720] helo=NAM10-MW2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p1CvQ-001CeB-NA; Fri, 02 Dec 2022 20:46:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MXgJfNuGM8PUCnstziPltBk7K5qp7LXNi3PNz3jvx+73tftOSeEq33ddlfqmWcY1VjNwIkzWgitKKOCbVhAWdB50+nKKcHLM3GCB7a+Oh7wRfgX82KggMmOVWdNt4tujjVfv0jyoyjTdB2KiXDwvzvhMyCrZMSTrJQknW39iIb8XxPP9+mxhcedz3I274dQeYZtIkGEDndlJA9sxRnUw8JS3tRwFjvnz4Gg6IGEUJpObsIeEWrHdD0eCwkbUj5nIwMD8jegx68IDCe5ECVykmcaJztmvwVZzEXnlZuf6MejPHmtlsyz8vBiUElYUBoT1ToodwCwedJfupOU6cCGXPg== 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=ZsHMt7pE+tiQecrta3QILh3daloCZA3Js0ebcUMmVn4=; b=EYKxiTHSKgndVPd5YQFNBKeEq1MBCvQo40ZMH8ei2/YI7cgahLC9UGBdIwIOFc7v+bqVxrB2pcnNBS2Ldlk88YwKDMhCsesusRACo3i1bsPUXFxa2JH4OG2tHoI0f5CP04rniPnd+smaBhniMIlg/ecJItmAiPRVmBN8HReyWBKVcrQE0Qvtrw+a5KRP4t+h3h2U4zJCFdxWIFdNBU8c9L4JXUQSNrpRGysWr/2rM8aVnovpXCCmr1a/JB3sQSFNG1Pu6XrLwhPpNNPyQ77iIu9ixR52J0SIKd8FJQZJUmy+LYHvENVgNDS8Xt9YAFyC5DbEbGLIG4ZZE9yhslEW5A== 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=ZsHMt7pE+tiQecrta3QILh3daloCZA3Js0ebcUMmVn4=; b=ZSiSIX305EfxK2+b487Oj1Z84vOYMGN6inUJ3pTQNLEyibXfIRuiGpuxKMLQW33AtJEwelQdEPx1ryuXnIjWoYynMukJOWAfGV6Z56SgMz/p87LxMAVqtKz94SZErqIDn90NbiQuyfx4PT7tshUmSTDvS4bB3yvcolVwUdCyUU4= 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 PH0PR10MB5547.namprd10.prod.outlook.com (2603:10b6:510:da::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.10; Fri, 2 Dec 2022 20:46:18 +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:18 +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 Subject: [PATCH v4 net-next 4/9] dt-bindings: net: dsa: allow additional ethernet-port properties Date: Fri, 2 Dec 2022 12:45:54 -0800 Message-Id: <20221202204559.162619-5-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_|PH0PR10MB5547:EE_ X-MS-Office365-Filtering-Correlation-Id: cdc46ed9-43d9-4413-c2c8-08dad4a641ae X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oklFmiuPNN2iwoncpVkKQZgEh6GOAuHRwaC8iqCiIcObOBZVo/s6dJC+ipcXeUzBqnRthYou20guDFo9Zt3B/hn8+ICTzfKBfYrCT71E02+sCuXDv6lPFF9zNz+yDHVXTSGMRf1TMLouFyUeqVCtmRKsA+fYC1F9Txr4eytBjpOyX0LGkZw00yQ75gvI6l1o10A+L/oqmh9+FWsXEKl+NulE8IxuLrGVRU0rwXTlKE0A69/bodKqAPJzkaRBiZhHs+t9PcIjzh5KH3ofxXB51+HwDJwxU03XfGbRzqBy/lZLGtlvMka26JYcrQS6GVhmVXQutBtAsqWlURZbptllHbg2URpjEm9d48wwwO1/dxPIJeh8DPC1QxNQCmACf++LPV1Wr3kfIfQ0/3+3JF1MNJ6IBKAQp61yuHj5ZWacDSTmrdmEfb47CJ+PNDET9QY9dTrZj3V8nTmRaERDsNuGSlc1cvonE5pqW1RkxT9xld+f+k8Ch5UytFo33GffrcSbCCmsYEZdrq4vVdFcnKtCKdZIIyn94QAXuAXHZFL1pxoAohIBxS61W/bxtMTEUi0hzfQeNnhMpydUyK9KULKTzZc3UqD/MZPMmnjD+m8rK0bNL39LjAw7jO2d1djx+w7Fu+rq6aM7Ge9btEzoNCm3ysXh+EsiUY4zj2HZflSe2KxTbJ+/zq5PTlus4/Yvg6HV 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)(136003)(366004)(396003)(376002)(39830400003)(346002)(451199015)(54906003)(316002)(66556008)(8936002)(44832011)(7416002)(2906002)(7406005)(38350700002)(41300700001)(5660300002)(4326008)(8676002)(66476007)(186003)(66946007)(38100700002)(2616005)(1076003)(83380400001)(52116002)(478600001)(6486002)(86362001)(26005)(6512007)(6506007)(6666004)(36756003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: EaCmYvGHadnbpRJY3nJrO2pAUAndUqugCHAHPWk07pWt/EqcG8NRNTbMl3zCAPo7WkuH2fU82/ninSahPLsJXyuA4imc/XyUdkPaQjdEtvK2mcs6ZqdJYYaScsWT7oqUyhX2Zdd5CZxmIaXyu6U/5YTEbEZYAmLOh69K+MkQT61kaKJnx+EqOi8BXPsukLJFYMpZskP6pCmi54BkCJjih7eHE0R4oE584vLaYyqRRhwS9LtnxJzDhJUKuG1Tq3U6lJCsDsARRFzKhu2NCscpVpM4qw4I1cYucQsbgPoWnR0SMq4Sw+E0fitNAqQJq/8NtuqJtMsENcvhO5mPJuAlJcfdcbWmD5rMUSJQIr3dpDN+VfQAbZZi4iQjFs1ubKtSM2duzYFsOM2eFQsgpsq6MYYzlJYzIIX3VF0r/hP8sgvMdFbXVb8sAXgtci6BUxylBpSskYSpIZ/kMOksog3r0/N6on5XnDO9h4U4aKUs+9MYL1vlu+MwQ1rPF2lHSDwr4qMug9tPVaHrmIeUaBpx8uZUTJGcGIL7cHTh+SID6ViMMZ9y76N5OiFThpPT6COhPaB5MZcrRZIoCGE2+62QKidyMpFivEIsRm1T9wyBUfGV/vcSx+8ejkzDWTcq93jDkHSKaqW3FF2+r4n71FgqTtDyA01IGSSiIqTa3RcSRuL4LposBd9r90tDRrUklYXjuy8dSaPQi5O9CNTkKZh1K77KhjW29vRNc0oEAJT4lAprUz0REgCHYoSYW/U6slromKAq8VCO9dkeI03dWxbpuJz99xQR0jsgApvwpmpRKgNPEKzVeF1zRnLnRBVVPD+XzjoDf0QjllScNRj4Y7k05Q2R+LBjrA6hf8WC496vsXzG4syaNo6AcmNJt2ocikf0LrBprdTCk/CUIfzbkgvcciqxlnitQxa8qnQqwdXnGuM63KVslQf+ID7bfyw+RD8w1ulwoIGSe+eccSaGryb4WKWTRroqvbdgINEtmmDD2/GMGCER9Yhsdq8iKyenDb4AcdtDjxCnhN4Xf3Z1T3EehZdgfbfvsJgluAUhTU0/A57DRmEZRLjW8E1nsnVStI/q6EtuT+i5hB0tJ2uh6IXQfBRJNtrCXOHTSDyHB8ykRu/SxFJhcRN4tKI9V5H6fbAJwSIDP/aBQDgsiIgBzCVrFOnuUyrMiASj8RFBOfOsK7eu3H+OqQj+W6xrvZhpCJPIQD7VtLAhAp2AIei79RqXgMaxmdV9JbWEkrgt8H5AtPpgSjDmd6h2nbuIuBfO4E81oxo7Zra+BTswrAv/Id7UTN/gfAUg9M+GfdVQtNnY9IQoXFW7bP2GhcpbpHBwv2FN2/A7HgOlMaLFP9oe2Co+XiDYkg8aCFMjUwm+MXBMA4UASFqclLN2Mw2OCTzHtnjQW87hToUMAcC/cLvALsvZXLlwqSucHI05L9eB7T4cFndxrGaMTDbEzSVaIsjRkKOJFXTNa+DlkZN8/zmU64oFYLgosH1VdwxYUgfhMzsCQs/YOGoUEMzubhyq8WIJU3dSBIu54hls/fb9M20s20S+XiSTdNL6xUw+qB73T4kqfkxqqUnLLc3k5vhqQeAMxTRsL+yzEix7ipx5Qsn+rEpMAA== X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: cdc46ed9-43d9-4413-c2c8-08dad4a641ae 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:16.0009 (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: dbLEcspcWvvxuV0Oed+Dw5fKNh4I9vEZIbrCERaJPGHQed0l4cq+xbW5Pk/yF2yZssu1mpBhGLl6LwBI+vE0blp6hikg5O1IebaWOCXn29c= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB5547 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221202_124624_779226_9B52D202 X-CRM114-Status: GOOD ( 11.23 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Explicitly allow additional properties for both the ethernet-port and ethernet-ports properties. This specifically will allow the qca8k.yaml binding to use shared properties. Signed-off-by: Colin Foster Reviewed-by: Florian Fainelli Reviewed-by: Rob Herring --- v3 -> v4 * Change ethernet-ports node to have "unevaluatedProperties: false" instead of "additionalProperties: true" * Change ethernet-port node to have "additionalProperties: true" instead of "unevaluatedProperties: true" * Add Reviewed tag v2 -> v3 * No change v1 -> v2 * New patch --- Documentation/devicetree/bindings/net/dsa/dsa.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/dsa/dsa.yaml b/Documentation/devicetree/bindings/net/dsa/dsa.yaml index b9e366e46aed..5081f4979f1b 100644 --- a/Documentation/devicetree/bindings/net/dsa/dsa.yaml +++ b/Documentation/devicetree/bindings/net/dsa/dsa.yaml @@ -38,6 +38,8 @@ patternProperties: '#size-cells': const: 0 + unevaluatedProperties: false + patternProperties: "^(ethernet-)?port@[0-9]+$": type: object @@ -45,7 +47,7 @@ patternProperties: $ref: dsa-port.yaml# - unevaluatedProperties: false + additionalProperties: true oneOf: - required: From patchwork Fri Dec 2 20:45:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13063243 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 63A6BC4332F for ; Fri, 2 Dec 2022 20:48:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+Z+ewpkQjWIbzQyVTVWYzSEXBXHxw2GZrP59XD5MJlU=; b=2y7TmLqypjqfnD zQzZLb8WVUTkox2gcTf1MWh7jQtAJvdfzEHXmKtMxS3fItdDerIrUXJxpjAJtkwA+RX/t0OOLOWdB nW/YMIVT3+ql+d6M7J8P//GB4Sds7ffGxauSXYnei+bQ8QtuVHg98G3PS3xYfZ/Uif9pk6tahYG28 WlkkS4Uvlv+s+rIK2jC68kc6911/iqQwiq84pbm6iHnPx8MXKYso5Iik6b2AFV8wrAvqaHIvFXjzh pF549d7pLJ0gVMSw3RFpjSiXH42XCLG4LhOzgJA3e2wGbaVdtUjhQ8pcNobD/TaE91yDb1G762mAv p6o5O7u+3P+W9fI7HiOQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p1Cw9-001Cvf-BN; Fri, 02 Dec 2022 20:47:09 +0000 Received: from mail-dm6nam12on2070c.outbound.protection.outlook.com ([2a01:111:f400:fe59::70c] helo=NAM12-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p1CvR-001CeI-0z; Fri, 02 Dec 2022 20:46:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g6E3DCtRaUcXY+S6lZQSyXa9bQdEnvrcVfsYX2RF9UoPDaFxfEgkU5s+A4o5CuE8Lbv/9Q+fTnlluAJR4fbD1EHrLQcFDB7nhNVCRxXXwbnp2FG9i/fWbMJHW8JdALKn69KzpMDXoUYOfS95y+y4vnvqgL3Vp/rTJSP68nYpT0GEqf/4hJBgwFd4QZeRh/9g3tJwSJoeYtdPk2X2dRUtCyljVn2tf/VLMqTdiHLJyr5TQILDU4TLZ00GNf4W1CGwDgrB+O/eiGvfoGKUHY96iMYVNw2TvhnBOzg7iN6hh0QxrLWQUHnuZac2YxgH2T5DcAR/b5uUsO2gKJvjsnfNIw== 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=yIsrSGxiZGQmx9it4ot+6H6XNrQtq/D+2osbZnhCIg4=; b=XwGDfr5nNEkhXrT7ryoQd0TTH8VSmakHPOkdRt6hdjF6Cn+Q32fodkM8Oi2+slVvMQTB2eHOhcu4SGn9+WF2KtEqJLM3zeLsd/Cyf82YNZsKWpdY3QqynDygk9xFLJ5ix/nCtMFMaGWy2cim9d3QcxwxjXpR7HVvsBZdzOwPoAmpqKhGNAjruDRzut2vUiQLI+DF8qah9XDRt160hfT4snNsaVxu0kT4MFwosxoQ4UA5DzFFJbHllmWjE72DZUuOtwfKKkRRixq/bj2Pf47cXqPEOzy/6UD+5Pyy7/0PYbEtfHleAQlFCeaST/m7k8ekQcuZAboxDY1kJYKxD9LCag== 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=yIsrSGxiZGQmx9it4ot+6H6XNrQtq/D+2osbZnhCIg4=; b=YxRiLSbOjAqpQ/foybSrwVRthYq+OHwApRjFaOAS3BAJznOOsz1YYBEAOeXTf3cCQ0fjoPbm6+fBZDrjhaqKmINR+v0fWRY8mv7y/KNS3NNlYTz/PsAQf68XGTzKIwplY0mcA+6YH/KHZa/eToNVT5QPmWOCxpjqDgDQjZFpod4= 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 DS7PR10MB4944.namprd10.prod.outlook.com (2603:10b6:5:38d::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.10; Fri, 2 Dec 2022 20:46:20 +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:19 +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 Subject: [PATCH v4 net-next 5/9] dt-bindings: net: dsa: qca8k: utilize shared dsa.yaml Date: Fri, 2 Dec 2022 12:45:55 -0800 Message-Id: <20221202204559.162619-6-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_|DS7PR10MB4944:EE_ X-MS-Office365-Filtering-Correlation-Id: 05a51410-0457-4303-1d45-08dad4a6422d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QPZ6R/ea8zIDiIqwg3I41iGTZMfeRdr/q9LoljWMqOVPmx5ogWs+O2UPkRVqjSjCqFb71NZR/WLYVrKBISNUTxBkO4WzE7hbZetYolP1bxbaVDD5YAHgtGl6MVAYNBd+yIt7qdO/bCmCHx7OK1eFeNqIn+HZn1/22YTbBOEEcBpC4pQfiNBHG1IecxoSPDWC4M3TTHhdZ+dHERbVncYeegtqtMsOoWHUnYa+SEpiD1IBEl1vJgHh2I0lm5MqoPOq5gmpVwVXxxMGuz8NRQ42jc10v6gQgVM29Fv8Vz/YPcdKDwh7zEf1nAOiu+NTGDoJDJbuNV4ywJCg6jjFtjoe+aRbbNQ662tgzEu5VhP9rwvNbi9A+uwYQ3BTpJy2isFPGCDiu/QJS1kgaFK4g/8GKUNYpad3IlN/DgFFmh6ZVx2N6jmWzC4bVCb6WMGgJ4FBmhyC0QqjtU4vdsn7K9HbqPoAHsgwJco9hzB6OEr/5sQ7H7OT4HG78mQz/EMJkxaIYb5gytd6+u4E3QSuh4IzHqaYFm/aFQGUNJKq2hPzOvDTkny/icX1H0StIS7hWJgKb7gAEzk5tNdmM8uVFurmSnGgZI62AcH74R8rB5bT3AZL2jjkWnncLhyb1PtbA/flADognGpF9dKdkj+6D/wSHd0yvFwSOZtJcXLDKgDH1j+JqwviXYP4s8a/u13qYMrb3nULtCwsk59Qb7WlAF/oaA== 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)(39840400004)(396003)(376002)(346002)(136003)(366004)(451199015)(38100700002)(38350700002)(8676002)(66476007)(66556008)(66946007)(186003)(26005)(6512007)(316002)(4326008)(54906003)(44832011)(5660300002)(7416002)(7406005)(83380400001)(2906002)(41300700001)(36756003)(2616005)(1076003)(8936002)(478600001)(6506007)(6666004)(6486002)(86362001)(52116002)(32563001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: CAhmlYiauK/JmuM/05ES9jN5YSWbwOCQb+tix4q0bhQOR+W04obIlRv4hnkyYtOfTyDA9R0EHP7KZE+oq53QQLmBiZ8IeKOWqL87loLxDBmR+a+COZkkssBf3VbPUvQCAhVepN05IgGMw2b39o66I/5rH6iclyToKQX/olWM6Vj2j+LBT+zGfDbQqRTy6/fmfMAQ7iUhtu5nUASfH22R/jrv04ccqR7W06qvHsZ2KDQ9r3p6uB/SGPWNPforcYz+dU0DFuCVOCtkKTd9wTwMIJXr9UFQhhbVmPGppoMZMYdK0x0VATW50H7/mElaR8xo1MjGGYb/4YNBgJO+TNcabcO7A59rojW44zzEYxUGrFkKWoHjj/0TVYYf47hAsb4A8PSUqrPOjvjHFzc5DFJ8zXBBWkbUUl4In4ZBSChycHLjjMIfPPv1NHUBkHNWB1iGmyTcWSAyiuuB2kSP/xDrSEEmlpzGff5SjQUNGrnNF5nPcTLnYxybLwDNJQDcSGJ6QgwqhTnKbOryk7y6Kq+w4v7HSrne6PObBSIG3rat8YYW/qO7CBRquoXpciaaU1/aYRQMnwGB01j469zeQoL9Ra8jf5Ok3MzqhbCek1U/yzV3E/Px7wlF6PKYPWMYyyfqMNCiBnfItGGIdb0F7HlpM9aUpeRJnvAIy4Yd8MpwRSvsn0h8sHjAfB8SPD847X9QiB10Gw8xxbcQlDfbNMDiH7FAqiaaau9q/wgICPIzVzLar4KnGfcgnPmrde+LY3ETbWchzl/O96SJV1LndKHdk5V3j+PjYWLYkWPCWZrjOdKL1IkZx08IC+iug7s6rpSE8cnmy7LMxoIfjzUsKVs+I1xx7xKhpp1TcXQJq8xbDYOKIeb57VkGYPbmW36K13zFRn3RiTgAI62NEJX2vpfyW2x912P2NWSwhzYDR1XUOx7hPmasdDXlSn0LF5ACxCCgwu32hLL7hFE2+dkOKCof2SsT1kTHTo9j8bLG8Y+PooA6F+Hl1+lCbCZewq2lOA/VIPLNX5xDXumScx1PQuOoPKYjtkDZeqYNcjd7CVtkvdwmvH1uA2trhkan8rVnhhOX5SsCJhLcId6om84FZ/SVt7QSdCOXDP59BcqHZGS/tYT/Jn0kvD84GCtGaphQexL6aEy2+pzT5c9nqyC8k80NeZpAtEQBsch4XnMUYbSbQB0qw7KljJcsQRA0iF6EzIaCFfkWcrRnVbQqqey7PliKuDJXRmW9JGeqgfpUchHwwcoy8T/+ISxHgdSoGyL/MQx3npVtbm86SDW3NDA/RO3b5EDenFxoi77rCC6w4Rn2WJbgWEECMCiXEdjOYOa8Z5K7hk4+Xt2ntIUU2s2mCx37UdGm0o7UNTs3w0CEXCLvnRBQHThZLHVUOrCHoTP/6U2AI0SRlOu5aNsDkmGmQVibzNctyqo1ED7HdylXTPMsqC0P/pL+j9J7fFDp03NFZgQvEDpV2JczuXRCgLVTMpmrXlVVNH2mWlCDwB4iVQtLZ9tafaRldYgE53NY7BcYpz3lm/FFKyLKuhD6EVC7vDAVmYwMkpLKMpyDqIcEiUnI1hE7+1MrJZqE73Nz+Uq4QiWOXj+jkRyvavdbTwnfJEBwQA== X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 05a51410-0457-4303-1d45-08dad4a6422d 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:16.8446 (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: wJ2W7mIuBKUDvp6w8LV+uX9/aGZY51wXMgBo1IuZG4KGS51mpiAouGI0sMgJvGp82P8tQp9CBFQSA2pk2A28UWzUmLwfHOGlwQmykvhQjhY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR10MB4944 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221202_124625_114187_D899806A X-CRM114-Status: GOOD ( 10.77 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The dsa.yaml binding contains duplicated bindings for address and size cells, as well as the reference to dsa-port.yaml. Instead of duplicating this information, remove the reference to dsa-port.yaml and include the full reference to dsa.yaml. Signed-off-by: Colin Foster Suggested-by: Vladimir Oltean Reviewed-by: Florian Fainelli Reviewed-by: Rob Herring --- v3 -> v4 * Add Reviewed tag * Remove unnecessary blank line deletion v2 -> v3 * Remove #address-cells and #size-cells from v2. The examples were incorrect and fixed elsewhere. * Remove erroneous unevaluatedProperties: true under Ethernet Port. * Add back ref: dsa-port.yaml#. v1 -> v2 * Add #address-cells and #size-cells to the switch layer. They aren't part of dsa.yaml. * Add unevaluatedProperties: true to the ethernet-port layer so it can correctly read properties from dsa.yaml. --- Documentation/devicetree/bindings/net/dsa/qca8k.yaml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/net/dsa/qca8k.yaml b/Documentation/devicetree/bindings/net/dsa/qca8k.yaml index 6fc9bc985726..389892592aac 100644 --- a/Documentation/devicetree/bindings/net/dsa/qca8k.yaml +++ b/Documentation/devicetree/bindings/net/dsa/qca8k.yaml @@ -66,15 +66,11 @@ properties: With the legacy mapping the reg corresponding to the internal mdio is the switch reg with an offset of -1. +$ref: "dsa.yaml#" + patternProperties: "^(ethernet-)?ports$": type: object - properties: - '#address-cells': - const: 1 - '#size-cells': - const: 0 - patternProperties: "^(ethernet-)?port@[0-6]$": type: object @@ -116,7 +112,7 @@ required: - compatible - reg -additionalProperties: true +unevaluatedProperties: false examples: - | From patchwork Fri Dec 2 20:45:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13063244 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 22A08C4332F for ; Fri, 2 Dec 2022 20:48:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=6p1lXZAriEzBczxnnY4/goMzk0+eGeE1z2Nd0p4glTc=; b=mO2qnnJwVwQAZK ivgs7AjxaHLvPhB+HJY3Ok3gClBhLkfT+HD6OyGQ85qn0yn2BSNEHdyD36vRJ7/MK9tGni15Ok/x0 r3hb6d+3UQxD0ZLEve0uq8LUwHBF4ChfsnVU7wObja/c3FOfGD077+RxSN8xmZBK7FwaG5ff+3BFc WTij3HxGiJWbt79LYcDm5MUfeIORcep6pycgt7bg5ncREY3ciA3fSq/OetisCdX59ABrgKv5ImnXR kBfizhP70fZSxhpkO2K2InlFQOm/vTcX31mDK+xJyLPFl//obyWu2qYGgGcsFmUY7/fZWYgPvcZIG QFsijyKAWDiKm46LuU3A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p1Cwe-001D9g-52; Fri, 02 Dec 2022 20:47:40 +0000 Received: from mail-dm6nam12on2070c.outbound.protection.outlook.com ([2a01:111:f400:fe59::70c] helo=NAM12-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p1CvS-001CeI-Ig; Fri, 02 Dec 2022 20:46:27 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SbNpYoUQMz+iXr6CP6HspaLyM+Rl+XyEcWlIusVIOy2a08OqTMJP/7CDoKpTTvtWfxhVi88QzYrZI1qULAeuHbhzTBmgEZFYI8xs98RTHXZNqb39Gp7mZKyHoWbBmF0wPuPHQYp8PbHrE7WpWmbdIOTcnlkGv/nhBL+cYHUk2ZkpcQEnpwChDCgX4wiW8IQztALYr1rV+D3xe+k5DE0AAS3AQ/KmKxb8Xm+3c5WwT/FE7nE8bDPgg65DKBX4+t5hDqHxcIHpBgz10V0bpPIv428fUUtm4uOSV4nLtvs1L4uZESivcI4amUyM1dk/96MtOeSTl+pmWvfsIfieXByvVg== 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=Jl/NCYpi16aa7JdocSQYkcxqUtpWAhrJCMBBpd96lyc=; b=ROkv2ughFnqPqKJTTy4cN0ov56eTrz1znyJ55oQgePj1Jb5IjKM/jsJlxUHzwGUGYbAifQhVJAD8hr1hcAp/PK8BfQEFvOOzT/BRa2DhmcF3715ERrXjscTdrD9qxw/wx94FsrlZ56ve3ROuJPZ0jpkgiqxogFW/LJ0PjKuZJi6XOgA6tKxpagd7bwG+xm5LEp0mibjw51OZy15F3DBWUXQ7JVrrZF34WqYhOm6OHjWlqDD2BNHxClyQ/7jADT2FvgiWHcXeiQJQ5dZZ6+9RorqMa75lUDZ/dxDO4NvT/BpTaDLt1ItbKeUEXFyXNBj12zJjik0GargAcTWj3ehz6A== 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=Jl/NCYpi16aa7JdocSQYkcxqUtpWAhrJCMBBpd96lyc=; b=s2rwrLLUn3P8aKOUWczRoovPcIyzMfPj1ie5LY+4OKTgWl/R9bvJJSRDaGk0H/jLz1fweE17toFVhtwB2Opap7pT0dYS54+mEx9WgHgxmHymSrS7ClavoMViAEzSKR2r2Obeo4P9wVx6IRPqYU68FEQu8Hc7uNDZtfSDdWzT1rc= 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 DS7PR10MB4944.namprd10.prod.outlook.com (2603:10b6:5:38d::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.10; Fri, 2 Dec 2022 20:46:21 +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:21 +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 Subject: [PATCH v4 net-next 6/9] dt-bindings: net: dsa: mediatek,mt7530: remove unnecessary dsa-port reference Date: Fri, 2 Dec 2022 12:45:56 -0800 Message-Id: <20221202204559.162619-7-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_|DS7PR10MB4944:EE_ X-MS-Office365-Filtering-Correlation-Id: b297dc20-bdb0-44cb-d9d7-08dad4a642ad X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Fx8al0o4fwoVCz5iG7RZkILFpqPQ3Y9cNyAG3G/Jlr8NMSBNo1F3E6o5mJN9/lUdfkI7RncrPu8smVsGWoODJN6EPhtduFjwl00VDs+uoVEKbhAhriR/8pR28HIeV+FYirJAlw3eQJOu0EI5ilL5EJ7rVbxQvZfXSinGz7885s31AG2fYQfdLDycmUl7dKIWWQi3tPOkhzp+1dNy+Z2GZhwUq0nF8PlgojH+ci1dBAL+cS4yVpLsQqbbEPYL6HzdlScO4PfXpGwFl4eBcMawxZvxmYmg43vEYtV3WgEenNWlbmUlwIEY2g41g4yH92Bp9Y0Bac48tyPblR31cm0BeMB/rca9eJw+MOfLgmjhVmpYuMPbnKRw7ZwUNpK2nfM+6/eSZqlmYCIS7KdvZHYrgS4uo6ZlOwp/wxLdPeDpnhLSZFRjeIRQX9HycOKutLVePasye0zdM6tyiuIvjdncA/A0ol2bnQPXgPLsxDbtkzgvYvWTDLCU9F67qK/ReKD0SWUEUBzRD390icjSaV85FDOZWyOVQkbb4Ghu7LQdIzvj6TvEpc/G1LOXvd2E6tvDR+BVb8GBckN8wyD5WYQD+J5TW811UpZTfoAb8Kz/YBKtM3TCwqqKB95HA+9IrEtCrx85wYAoL048dGBHB3JMj7WduZwpHeUmvneXmx+Hq9MAxLgtkz7t3CpD50xODnrS 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)(39840400004)(396003)(376002)(346002)(136003)(366004)(451199015)(38100700002)(38350700002)(8676002)(66476007)(66556008)(66946007)(186003)(26005)(6512007)(316002)(4326008)(54906003)(44832011)(5660300002)(66574015)(7416002)(7406005)(83380400001)(2906002)(41300700001)(36756003)(2616005)(1076003)(8936002)(478600001)(6506007)(6666004)(6486002)(86362001)(52116002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?ue51ji6b3duBI+SafFgWhWyXWLSW?= =?utf-8?q?ye8Q4dkHuQVONVgYsWxU1lw126dykPWMVwDtE9D/bpAZ7VOfO33G183RTc7IoSbNv?= =?utf-8?q?Fhgn/jhARYJq6udWmKNxpgp9WuRK2wllQCukbRwMMr+VPuArsvkb2AIF2WMUoIAYX?= =?utf-8?q?T796BTugThl2tSHOl7VF0LkbykckeN/3D/rg/ioDCrMRkm2kYMHeloeLJdm1HGB+n?= =?utf-8?q?gE1OlpRpyyA/I/JIpUg6eHxD/JTfITCa5xa1xBQaolHSvHHmW2/L/jpNOfmZihbl4?= =?utf-8?q?zYoFD7ziu0DiHRLp0Je0kBxvnrnTVc5IQ4daGg686HOvTcn/bm737naOcA+HpnSto?= =?utf-8?q?GXXdKiIsZgCbKym6TArsHOw290S0stX3B2L8Sfl0cd3dnOf7sgHiD1vcuMw4exe2m?= =?utf-8?q?AXNF6pkpx9JaU9ewIrmygBhUJ6wo6+iUOAwKIiKFLNA33ccOheC7U+SYz9EpQJku9?= =?utf-8?q?xG7BsXHRZrCkcBIFqJzmTqiNzEvKilTjJmExdjQn2VkBiZ4ekTjLkCJnlPD5izy19?= =?utf-8?q?dbuqK/M+JLvhluOaqG7XOVZSIeFV7h3u1fMBXUH6LHxQyf6U1pdIgdV7OHmSGfQrk?= =?utf-8?q?exIwRKnlXaTy4T9lVBzk4OdlPDSaKqE/c/PQ3H3FkdhxRfaToBticBTj65IC6ymCD?= =?utf-8?q?e4EnWvCs6rYLno8d87dRiHdHNhUC17e+ZtybiNKVnSMvzbBkMPl8yH47LrJHX7imX?= =?utf-8?q?/BwNcGffCqlnFThePyEgO8zMI17SOtwow9voJJSQLXoql44lk2jVvwSrNasp4ipec?= =?utf-8?q?id3P/DTOo+CYkO7sR9qFQiDifvtXpJMlgSzwu0jP8LyZBLkSfH0B3yhs29PyctvSB?= =?utf-8?q?ExX3MFDW0NWkzSiEYyXyhW4OM/fntu64vSmAZ6Jqkq/i2ci9tC88aTpqwtD995wbh?= =?utf-8?q?9k+pavtimip9FPPxsYIne8bL92eXw1EfoI+M82FkS8bzO9J0aJeztvRHK4nGIyuW0?= =?utf-8?q?aYm6KWd+FHrrb8d1sNbaGuE47usto7H9al9Sm+JThP72vM4hJt6dhnUH5BevkIu0a?= =?utf-8?q?0MOFIbIsdOcA+0nMrchBMvEFIoUk/ZoMV84Fj7HlmRKn7tBLM+1eKfwqE2uqPu0J3?= =?utf-8?q?J8d+1WmyfReUd29S7LrYF+47xYmxgp4/whHnMlep22++e6+mFSIKu8MOAbWU99yAH?= =?utf-8?q?vOLbqxuupjUMM3/3XHBBqXPlJMUiHy3oJMPzZXAKtWgD8Qsd9368eqy4GWmhjQqM4?= =?utf-8?q?aImGMMWGpxoIzGn5dQ9v1j0VTEWqCiL6x89hhoS5IAtx3k43Iwf2I5Rn5+HMyY6QG?= =?utf-8?q?UaX0VRtTUK6B/2AqbfQ9JUsFiy8vl0JadXZiWMBKq8IV3aPSuuwtMxxy5rb5gtICf?= =?utf-8?q?jKK2oPfX2OvdUBLGl9LFe9kMCkrhNZG7fXAiEyZczPAB4LcLr3wEcUhBvYaRaW7W2?= =?utf-8?q?BiR83bIGHbY499fSseCGSs7WJiBVCfrGu5cFNOY4NWCJd0tHvLglLozkiLM3Dqs2U?= =?utf-8?q?HBvLB9djD9g0Jpxyq4MPqUU5X901uodEYOd2CBnOacARxgCvsyLtkAo8TOgsmMb+c?= =?utf-8?q?p+2jJTOWVJOkNVvcp0XrZrjoOUuWuJJ92w=3D=3D?= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: b297dc20-bdb0-44cb-d9d7-08dad4a642ad 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:17.6727 (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: odBkeUmeCiy12b8eBiTd/HWQ3b7Pq+IYTU5wedAfQLdGgtA2TjKEX7uF9wY+rG2nbvXFvEl8zo/Eaa3QruKL5JaVQRff3+0W8S9JXzLWxNA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR10MB4944 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221202_124626_662783_AD132A2D X-CRM114-Status: GOOD ( 10.26 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org dsa.yaml contains a reference to dsa-port.yaml, so a duplicate reference to the binding isn't necessary. Remove this unnecessary reference. Signed-off-by: Colin Foster Suggested-by: Vladimir Oltean Reviewed-by: Arınç ÜNAL Reviewed-by: Florian Fainelli Reviewed-by: Rob Herring --- v3 -> v4 * Add Florian Reviewed tag v2 -> v3 * Keep "unevaluatedProperties: false" under the switch ports node. v1 -> v2 * Add Reviewed-by --- Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml index b815272531fa..b65e55be3ae2 100644 --- a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml +++ b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml @@ -157,7 +157,6 @@ patternProperties: patternProperties: "^(ethernet-)?port@[0-9]+$": allOf: - - $ref: dsa-port.yaml# - if: required: [ ethernet ] then: From patchwork Fri Dec 2 20:45:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13063246 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C91FEC4332F for ; Fri, 2 Dec 2022 20:50:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=i7ohC13DLwGP9cMJ5t2hPJQ+8WoFjDImu9AugdgAxbY=; b=s9QL4q5GYIzMOD XzHDND7Ajd1wulnAA+FLrXUe4t3izWCvv7spZUFGkmeABw1twaBwd+7q299rNQheQ9yBU0eSWOoKD olAzhqoporYp9bYomzZPMZq4N/tD5KZL8kXn+Qv8Vty7sKL27z17cnN0u5B7blYqCGNeNhAcfBRX0 +/5yKKRyzkfUJw6RqDFQLVkyq0dr9mkonFXrSxmap2ZO5ZnnLpcG37M7mQzA6K+1qXVznBgByOEAH p1/KeLa5z8LNmm2uXIxFA/cB6x1uWokn46r1/mrCSXz6L1GtJQgDPjZv4E6t8dQ12eJqKIAHNnmVR /eb/6oH/o6Wdb1xfiJhg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p1Cxw-001DiD-Ie; Fri, 02 Dec 2022 20:49:01 +0000 Received: from mail-dm6nam12on2070c.outbound.protection.outlook.com ([2a01:111:f400:fe59::70c] helo=NAM12-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p1CvU-001CeI-1T; Fri, 02 Dec 2022 20:46:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eCggDoZ98Hp2BZjo4b/AkHITGKG7MD1VAvfGlwZcU4FXvcqfkDkGuUPZFXdJO7M86wVZqRTDr/nRatpZ1/KKipQYwkrSyUSh0gQwG24i7DiffLR+NL9ESVzVN+mmC368F0BeeDW1d11e+3sQ7NSPjq00r3RdUfzDBo6x0QMMh6tY2SmrbXVqg5AG+PE6UhB++oUDwn3o+CEAj7wLP1SW6nbqxpn8XHAiRyPpht0CZBSbcfDUW5fHjlgp8PdazJT98iqeA2XmivFwCq0pPz727OB6vwO6aUlNZvBcgieNkw52F8sEWLuo1QZPmPw1P3CmsQY10r9c7g4cv9rmoSLAYw== 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=tSkb6ui12r5CNdsQ31HTjM49LQkjL5sPJ7zGzzHnv14=; b=J50w73sGiUDcWvzvuiWDgFNiUw7SO3RlXdGIBeL4mACPnhN7BLbdiTkh7TUPpVbs1+QtSexEh/TFDmO/As+/2/jBuM7/gGqHST+UUvnZxXCuLr31kXHGg1iP+AxiKuvyDCz0DqQOJpmAbcLyzFOqJxtwqBIN1lsAUlp7lSVWUG1HZLxWaNRSDB64x6o5IU+N80aTdZCFtA7CXDIFLRyDPlcEL/Zu9AMruXJeLNbhrKut5YaOdB1ahRUWJIq7mZLSPYETACHyjhVCXNZ3dwM+HV8/Tx1o3ivjdTwidltBXg39ErZ451SNOzfOIfAUUVSy6FeLhnENzPC23+QJcKF6hQ== 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=tSkb6ui12r5CNdsQ31HTjM49LQkjL5sPJ7zGzzHnv14=; b=jW72srcB8hBfCwQTW9P5IC7KXSCbu+Ivv4Eou4584cG1KFWlz6rxUBBLynKS4rqXgaCAc1fBGz6p9di/VMVoFC3SoXcbVQBUXyie131cSckH+UZUyHppsx/aLxB4qk+yorweFkYfABsBZ+cYrgIO24XbucoeKFi/i/28ENEnqg8= 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 DS7PR10MB4944.namprd10.prod.outlook.com (2603:10b6:5:38d::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.10; Fri, 2 Dec 2022 20:46:22 +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:22 +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 Subject: [PATCH v4 net-next 7/9] dt-bindings: net: add generic ethernet-switch Date: Fri, 2 Dec 2022 12:45:57 -0800 Message-Id: <20221202204559.162619-8-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_|DS7PR10MB4944:EE_ X-MS-Office365-Filtering-Correlation-Id: 4939aae8-f884-47f5-9682-08dad4a6432e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YgCCbXHah2q9nAaMNuZWrB/NwOocZPW5a3L5t3AkHktiELkvht2nRHA+WXBFhRzbhJE0b6ctKJJQFDrytSpfbl+o569UKiPrggJbgkYPgKSHof7cutzSolrdq2uQ3BaWJybu1EFNNlX8gbbRMcjNsJX2dLiJOdTKIhYngaY4y9EnGBPe6sxSJibnG84YPmW0I7M+RrMZBCCDef3JUZ+dCWNaFQQY5fzRaadnMGj7G5/rSfzL/LENHCDyAyYN9bAPjBlngXlppZqmaX2xd9OWiDtfCBqiyW+/LQomDfVCudATVOsadfR5LJd2UPj3xex7htINnbHHWkztycoJ/AHnGSeqo02HJCv+/CNSFLXmwynLQSfoetucgbZrGUdS35PrmOebmWe4P0ibkJj9hofwkmCltfdShCWw/nM6DFzLdUzeKfECJfw6phINt1OoVcXzKYjOPO/Vfg7HPIpQzj08lODLaTW/YJ7zvydZL9ZOoWTae6Iz2iPMjBlU5FlNgDvPSPWOUcAeTBxS7svTM2/8ud6EbRk7+2LgIII38im4HVuMFj84GsgaO9iUXGpVRxhqhGfccC5jFC7G/BhBuaz4Pq3ZE+xB6DjBpFn3Zl5g2cp9LXmDp2/f3zlZ+ygd5OLkWm7hztGQEjSb6fIYp/sGNzMmYv1nPFgnfWQbppstbVeHyfbCacMgnQzyk+I0R00K3q1vz8YD0+0LwpDjtzVwOTrNWrkEKL9IA1BlMDYsSe5IlkDRDtwylzscGz12HAfG 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)(39840400004)(396003)(376002)(346002)(136003)(366004)(451199015)(38100700002)(38350700002)(8676002)(66476007)(66556008)(66946007)(186003)(26005)(6512007)(316002)(4326008)(54906003)(44832011)(5660300002)(7416002)(7406005)(83380400001)(2906002)(41300700001)(36756003)(2616005)(1076003)(8936002)(966005)(478600001)(6506007)(6666004)(6486002)(86362001)(52116002)(41533002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: V/1y4S8gdwYIVYA+ka0IYzsfSdVtbgISNIemkeurKHDg8L33BI8E2U8NWnMf8l1UwgWpIuJ21vfqHEVpkhVK7EXJVEif8PsEutJrX2Cxy+4D4coRodWKAe/MEYAsF8n1MTzXiNyxV5bUMaD4npbOW8fYy2rFSY/fL3slzJ2mKzeCQ7eJq7H5F2ak9r8ZWTOjCi6JJ9Y+Gev3YqL3ML8lsHszl18s+OQCCW7R20+vl1133nWkl1aCxMn1APu+rA4J0tBZ/XvSZEILDli1/tInG43g6z8iRKnOtKIlH7J5sZUTxfHuqH/Xg2v2O/uxf87pvcZATu696wHBdSScdIpjA0rVmTF+yXYd4PlLH4jw6IH58ORM/gmDwhe9bgA4zge+u2CTwNoPllTGpL1RfHabj7OfFzh3AWSwBFzqi2GF0eeW5qK1QqrgoMGpAdsqb8ihXKZXCKXiBC4kzSm9crjT4HjhKtgIp/W+BQNL1MS3El6MX9cRU8OcR9Im1tKqizAe2Ly9+gK+7bhQoUc0eOvFs+jS+bhPdjvtXwIisiStZDmbm9CDuyNN45y+JfAc13/sOAWKDjfIaWQV1axtEi+fLM3G9hPF8z5/tGiCaZrfSzsNDhWldJFowGRTYSOfU06XRA8tfuEhdRrC1mW3pV5Rs53yOO6nax4Nk0gGQNzeganSE/5NVN+NxFp8ujeypf+nykiQcH6px/Tof1Oj42b8OfxaOIichn4GyoelOy9knaWa39htqW5ZbkuU0o380hTvY9CldSe8zh+E84cMkl5ZpkbDpfem5VXpHEgvtPSLJ1QCvfPoza40TiSM7Bzk08fbSWu4EyiPfybKIfCHqYZrv6TTMcMRNVtIZz8y6WdW+ACzQQ2vnxJv97qPeJM6SnkO7sB3+2lNaAS30Y6VJvCrnTwUb3ft7fdtaBwAiawhR7ZVmIj+SDghXNAuJzXtEsweskCXk0Pca6BCdCpH/arOeBmNJ06MgdWUBeyC0uhB3U8puFjPQihsWdaeAogY3eRLHRvA8mFY1Sx5FqkwHTGkPc95sg6KJJdiDkV3MtbZbp8DKZx1ic/3VauN3ENhLRJtwFpNG2aOgfFpzPWbJgqJGPfgKjAEC87cOnBLjAwm0GEESAJbX1519lQq9gO3O8vieSSJC4jZiWAGOI34cq6n/9Gk9/dJDtOKSYbeuZQm9NROEUMWIv5HQ92xu5aL2sjevH19V59QuZTZ5x5yMRXamJKOOpUCI9KSogvZIA1SFf4vQm+nUndV2KDlXT/UcOXrt5aZySIXZhVAmqa5e4jfu4wunxkGayWSMvgC8RPsy67qcZVgBs7QBJxR/JLC6QVmH/FJAvezHIhc6Pt4xL5x+kYDu21SW40BjWvnJ/w8i144bZ4uLbD93q/drcWvJc2FcNj6j8WWCtP2d/VDAoNrJBK0jDEYqy6xTXW2G+g7Ws/Bb0KVns+wuxA3uSRGXDRHTrHnHI0rBfLH/WZGEOEHX/Hkx9jynIn/VQENvHEUMlBbqfHSv7xarbmyBlzF35aGqsjwSMqVBUX0bS8DOBHPJRJRdH9ogNZnbIMAP0kEGv1VK+vF7vY3y2pUdrxSLVRnmC20yKdZgxQ3gqOKaXXtXhV0XQqJtL1LyfvTyECcpFQ= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4939aae8-f884-47f5-9682-08dad4a6432e 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:18.5163 (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: 397WAyS3+ZiNa9P7SDiBKCwUm7pQ8FjdqgnOLGgrH1OhvWvxveRVs6DEj8q4aWXVruKwz3cmophwmbWC1Nd79pxEOxzc+o5jLUYvYs32+gs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR10MB4944 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221202_124628_125496_E1F80563 X-CRM114-Status: GOOD ( 15.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The dsa.yaml bindings had references that can apply to non-dsa switches. To prevent duplication of this information, keep the dsa-specific information inside dsa.yaml and move the remaining generic information to the newly created ethernet-switch.yaml. Signed-off-by: Colin Foster Suggested-by: Vladimir Oltean Reviewed-by: Florian Fainelli Reviewed-by: Rob Herring --- v3 -> v4 * Update ethernet-ports and ethernet-port nodes to match what the new dsa.yaml has. Namely: "unevaluatedProperties: false" instead of "additionalProperties: true" "additionalProperties: true" instead of "unevaluatedProperties: true" for ethernet-ports and ethernet-port, respectively. * Add Florian Reviewed tag v2 -> v3 * Change ethernet-switch.yaml title from "Ethernet Switch Device Tree Bindings" to "Generic Ethernet Switch" * Rework ethernet-switch.yaml description * Add base defs structure for switches that don't have any additional properties. * Add "additionalProperties: true" under "^(ethernet-)?ports$" node * Correct port reference from /schemas/net/dsa/dsa-port.yaml# to ethernet-controller.yaml# v1 -> v2 * No net change, but deletions from dsa.yaml included the changes for "addionalProperties: true" under ports and "unevaluatedProperties: true" under port. --- .../devicetree/bindings/net/dsa/dsa.yaml | 28 +------- .../bindings/net/ethernet-switch.yaml | 66 +++++++++++++++++++ MAINTAINERS | 1 + 3 files changed, 69 insertions(+), 26 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/ethernet-switch.yaml diff --git a/Documentation/devicetree/bindings/net/dsa/dsa.yaml b/Documentation/devicetree/bindings/net/dsa/dsa.yaml index 5081f4979f1b..843205ea722d 100644 --- a/Documentation/devicetree/bindings/net/dsa/dsa.yaml +++ b/Documentation/devicetree/bindings/net/dsa/dsa.yaml @@ -18,6 +18,8 @@ description: select: false +$ref: "/schemas/net/ethernet-switch.yaml#" + properties: dsa,member: minItems: 2 @@ -29,32 +31,6 @@ properties: (single device hanging off a CPU port) must not specify this property $ref: /schemas/types.yaml#/definitions/uint32-array -patternProperties: - "^(ethernet-)?ports$": - type: object - properties: - '#address-cells': - const: 1 - '#size-cells': - const: 0 - - unevaluatedProperties: false - - patternProperties: - "^(ethernet-)?port@[0-9]+$": - type: object - description: Ethernet switch ports - - $ref: dsa-port.yaml# - - additionalProperties: true - -oneOf: - - required: - - ports - - required: - - ethernet-ports - additionalProperties: true $defs: diff --git a/Documentation/devicetree/bindings/net/ethernet-switch.yaml b/Documentation/devicetree/bindings/net/ethernet-switch.yaml new file mode 100644 index 000000000000..afeb9ffd84c8 --- /dev/null +++ b/Documentation/devicetree/bindings/net/ethernet-switch.yaml @@ -0,0 +1,66 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/ethernet-switch.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Generic Ethernet Switch + +maintainers: + - Andrew Lunn + - Florian Fainelli + - Vivien Didelot + +description: + Ethernet switches are multi-port Ethernet controllers. Each port has + its own number and is represented as its own Ethernet controller. + The minimum required functionality is to pass packets to software. + They may or may not be able to forward packets automonously between + ports. + +select: false + +properties: + $nodename: + pattern: "^(ethernet-)?switch(@.*)?$" + +patternProperties: + "^(ethernet-)?ports$": + type: object + unevaluatedProperties: false + + properties: + '#address-cells': + const: 1 + '#size-cells': + const: 0 + + patternProperties: + "^(ethernet-)?port@[0-9]+$": + type: object + description: Ethernet switch ports + + $ref: ethernet-controller.yaml# + + additionalProperties: true + +oneOf: + - required: + - ports + - required: + - ethernet-ports + +additionalProperties: true + +$defs: + base: + description: An ethernet switch without any extra port properties + $ref: '#/' + + patternProperties: + "^(ethernet-)?port@[0-9]+$": + description: Ethernet switch ports + $ref: ethernet-controller.yaml# + unevaluatedProperties: false + +... diff --git a/MAINTAINERS b/MAINTAINERS index 52aeb86c1167..d574cae901b3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14337,6 +14337,7 @@ M: Florian Fainelli M: Vladimir Oltean S: Maintained F: Documentation/devicetree/bindings/net/dsa/ +F: Documentation/devicetree/bindings/net/ethernet-switch.yaml F: drivers/net/dsa/ F: include/linux/dsa/ F: include/linux/platform_data/dsa.h From patchwork Fri Dec 2 20:45:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13063247 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CB30AC4332F for ; Fri, 2 Dec 2022 20:50:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=BBhctIN/+O6WIVDNZl1LP3cCeEps8G/rQnpmoNBwA3E=; b=Nw/ypcFeo6LwKM ES9M/PSCJfxrIye2PO5PtNuDxt10SWiC9rxkPBKM0Z4NxRKIG6+AmR+cXRM0HRTG9HIMPxRwQffsd C8gr7qyhsVMwB4+qX0G2N6GZydVvg5Hd9Jq7Z7Vd0L8Exu6L3k//iMgM1VdIJ5aelRMZQP+Ac9Jyr K3Ia796LhXto3n/VmNt9Tq2Rj2TlZd34x/Y30e6zAneSlOb6ohW7Jrtqgc1FszJRdspQOqdU4tG53 gh6IpyeT5evOTtSG9XAsZG2CAkGvOxaz8gi3yVMiF7MWqhBj5l3K0ug3dwWMK7Bf6RuR6i+hu3oc/ Vaaw4lPO+sK588e2pfQA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p1CyX-001Dwc-Kd; Fri, 02 Dec 2022 20:49:38 +0000 Received: from mail-dm6nam12on2070c.outbound.protection.outlook.com ([2a01:111:f400:fe59::70c] helo=NAM12-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p1CvV-001CeI-Ua; Fri, 02 Dec 2022 20:46:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bsrzRb/Vu9FuDAAApE61SZxjUKbX3UqOEgdE/jWHTwYLekXC3G24bDSqtymWcm8tvZPrCC6+qrx22By8DtaDSgCxllkXliLiFncGZN3hHNWYLOT4Iaj5cTatpaqNlzQ9ItBAq1j1qRJiU33sQpsjpvtHozNU7wLxgxn7MvR6UiSZnC0HkwH6Oxi15Ouu/UT98gtKH9QVio6mOt6uZKI0/zHhANeiAlQ3/Ad9Wq5gF9yB2P7PeicpnDiAhg9zb/04pUdIw3ARzLY58d6pX3Tx4Sp8sFzn6KMtBWyYgcG5YNW02C52S5vDIEQDRbAE3hp2mn3c1l7RXE1F+FycdbzBnQ== 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=psN6fFa8QpKmg29sah/pAyvCcII6SzIWv+35ik34oF4=; b=n/eF+iObwasl7eC5ek3ouOD5321OdnFdB41Raz2ChLZmBHUCodvbDnydpgb154YhvISxwJVNIRfQ+cBubNecICht8h9Y6+DGa1bpTk3+4GWDkWi8jLsVozqsmY6d58yhobZFSZsFiUARaemJuLTbP17Eo4YNNx0gcCQjqrgdT/SNvPH5efreV8WBI8XBOsw8ueI9n4LGLYNHIqS+PEQU0h6qJJVWN2nz8J1r8xeYbhV00v7nGpWHuZNngvlSC97NdOrRmyaZdFxpbRYDPLjD2cH0JxiKv6Y8sjx9hJEELLqUrsGqsBRO2LueTKpstvRvLImmV9xnZjyId/QYWadC7g== 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=psN6fFa8QpKmg29sah/pAyvCcII6SzIWv+35ik34oF4=; b=i3fKAZxvAa41X2ZBv2zRraNJXfrNq2f3CFYWEpsEsFH3qv8SUAy2OdhgWVO7YBeB1vp96nZpp4NLa7mbXiwvtG7i5wSTDxwvfUecI7SwrbPU3VW3rb13ASp5CrCJ+JF5jKvIWfLiX9764iyCDpP6b+JQENmKPVzVohCswKVk9/w= 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 DS7PR10MB4944.namprd10.prod.outlook.com (2603:10b6:5:38d::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.10; Fri, 2 Dec 2022 20:46:24 +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:24 +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 Subject: [PATCH v4 net-next 8/9] dt-bindings: net: add generic ethernet-switch-port binding Date: Fri, 2 Dec 2022 12:45:58 -0800 Message-Id: <20221202204559.162619-9-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_|DS7PR10MB4944:EE_ X-MS-Office365-Filtering-Correlation-Id: d6901ae6-10c5-4daa-2c44-08dad4a643a8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VdPRFIe/4oxYxE5sCp+5DUFuyTSAWymiOJSb7s42Yok3skKmnvvIMiv2ngFL+DgyVw64sVmi8maoN17QvVoFV52ERbiq+zHfrl7QgyBmSublQZbjxk7nWbwOdLN2cyh162fW7AxT8xKumcP/Iae2knlJ8ShZ2d0S782saFserkQiorMdojBjX1fjjMXl8hvp5YN1xuSXOM742RouWgusO1oncrruPR5fdINiab91dBK1PoGbvQK9WmxIC+XTPmozQS8oY9EWS0JtFPjfwVJfSJ0gxTcMqxgD+bRhkP6gRmZWX2inbQZ5PXPJHSIgdLdanw6dDpHEvc44PsiIuSZyf6uvcm+HDN6yirA4pmMciudn02iFI5E5pbaw7JeJVdNGCsynhjpkjFdUX+EdGgNtGbVpEXprPB2YR4MJlaswRnbL/dui37cRjBiUrf159XgzNB0EwKVSpnOmPdkp0o515cRV3XMvCdezOXhg+iuMnGmIWBwP0JZJSoidk9e0R4JZOYQCnvYzdaBuMJfaMsFSdgRno3m2plfTxeoR29TH1vw2Ekh9zf1SMHKSi6snFarLvNcDRaLSq1GK0BupXHdOxMxa9XVaK+YVTNnrAX7QqhMkPv3b6v3Lr85MQQPB3RM2OcB/UE5HySZ5tCV33bkM6vgeeC6t5EAiWXIrQYbgh7rcGPis0FZ8ZIiiIywVRP3i4PemVtOISvB1oWEOfGWwSysckWX5SgbTwnILesXN98YeIm/CwnCWY/tfxOzN4dNJ 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)(39840400004)(396003)(376002)(346002)(136003)(366004)(451199015)(38100700002)(38350700002)(8676002)(66476007)(66556008)(66946007)(186003)(26005)(6512007)(316002)(4326008)(54906003)(44832011)(5660300002)(7416002)(7406005)(83380400001)(2906002)(41300700001)(36756003)(2616005)(1076003)(8936002)(966005)(478600001)(6506007)(6666004)(6486002)(86362001)(52116002)(41533002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 1Z4LPcbtpymuWVKb6YmIDwaSluJYoJs0AO8OpNbPAcTAYbU6xLIXKLuX3cPCCb6g2wv6Yx6DI84Bt+0LU2+NroSNIRgIabb00S70Y7Wiod1Rp7wG0L+q0TnyAEBDT8/6YGgL0oBxyzF4AM6ap7YpMXIK+pLNfdcEwTSTYtrQ6C0SCSuutUgHVPfkejvZS6ntEflzbF3pd9ubsZbW6gXypWwkiSGpw2QA2zmb8zjSBVTGF9TWHws0i+7WP69xwJLKqAEUgh7q/gh6XynWVlSdtQJyaAIg4gk9W6Ydb5wJlx/QOnA5wOzmZKGV2nSVbwuWe97WpyMmzFwuzU94L6EsCFiEUcyEULsaQNLGAjbC2DuchxqrjXt5sgnBOQ9FlRe0uOZpEoiyZoEG0oN1hQmRbRNvo9lfrVm51W+rjn+ySV560Hz+Ssl9YTc0HF6f5vbK5Zdzl4B9we/9Em6f2pUWbx3u8J9Al160X8TRPvewncMAJI4uvyq+Q3mbpZ5mMQBvHDhbEw5AUuqBMzI4U9HFNSysyBcKdEM4f/gGB/IaJG1hYZXmGJYqy+kEKqqEEn8Mu1Up8oghnw1bQ2AsPqDKkLpqW73BIKe5Id4O+MAIw4lS4S/xcp7ysqekiURhsh6fmt2YbQhp/5bwcafUNE7k+pxsGlnccXkEdlexbGzDcAxLHwJlEX8ZFjsIjEf+mSWnrEO8wMDwVP44kkF45tWlEP9a9A0g+ctfwhhfQq1XD7UBd0bR/PYUKObFxb8lMHIGYrnYbewNMqiz+hNQpLBD821QwMPP+v8JJWy3PfdG0u1esLgzwHgequ9vU8hc4JwZv7ErZU9pQtZ5+YkzCGcDH3jhRR7xGepZXSV8sroJlhSQ3fYciuUObi/zGgKC8H0wO+dF3ozVjWNQJcdCrsw6gdMC5Ogu6JcEd7XokHfI7ZwykalGdMSqK76xdEVzqgEai69LS3S0tgFB8nnniecfyY4eGR5AM0bWX+I91xBK6J1f55TpCkHpwObr2MrPxi8o3UYvjn6gnFLNFuCOc3mdt/0rA+m+Y9M24ilm8i8foSLidq7WAbqfiIahAdZg+jDJ621ujQzNHk90SAr+SrF9Xvi6vHEm5IBW2etgfkgmCDacE1FqfjMzHJ49QzQCFAaq+MY7zii37FTEZgbpz9MWFoozKXIA4J9Bv26O6QRRYC0C79xCYRynyQQlaETFF4m0v5HFzGFmtL3nOC2SlOSx76/WIQOs16TUDcld7fbelDPDizga80Tq5y8dSAFt3iC6Xc/WdjMCohP32p9PzB81b1Y2EZ5jos6A308VTmnnG9QUamlo8OS7z4z2CTXKTzk2nKmtSDkf4X64KPOLm5Pv/wYrQgN23FmT8yyZM8WA7HGBWDrMVC1BHyrHF0zvv+g8c5l2w0M8Ih9gTqEIFrtz0dVnD7JDrQTVxrquM9H7tjtWjgEdtkzA9B5lPmH8k9fdncuPIlXfHXWTf5yL0Urj/gjGTpMwjf/FejXSB8ub9r5sA4rn0f/kCrzEod0dSVg2wdESU7nqmPHux7c2yL9REIx0/5p2VgVDZk1OeFumkkJZHJsy5p0Hx7y007Bd73bmLdnr9PgDOFwB5owmvM7W+ozxNg86CRlWi4GeCB7PZJ8= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: d6901ae6-10c5-4daa-2c44-08dad4a643a8 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:19.3132 (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: k8ojPipjvJR2ShRBGotNJptnSaGTdBBnxD36JpDXUVCaJWGOThlpt6Dy4JyGzjOo6V9t4bAGxR5RO5G21XVfWV3XmJ3VrR7F2GA+/9Sv3Wo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR10MB4944 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221202_124630_018546_ECB0AF83 X-CRM114-Status: GOOD ( 16.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The dsa-port.yaml binding had several references that can be common to all ethernet ports, not just dsa-specific ones. Break out the generic bindings to ethernet-switch-port.yaml they can be used by non-dsa drivers. Signed-off-by: Colin Foster Suggested-by: Vladimir Oltean Reviewed-by: Florian Fainelli Reviewed-by: Rob Herring --- v3 -> v4 * Add Florian Reviewed tag v2 -> v3 * Change dsa-port title from "DSA Switch port Device Tree Bindings" to "Generic DSA Switch port" * Add reference to ethernet-switch-port.yaml# in dsa-port.yaml * Change title of ethernet-switch-port.yaml from "Ethernet Switch port Device Tree Bindings" to "Generic Ethernet Switch port" * Remove most properties from ethernet-switch-port.yaml. They're all in ethernet-controller, and are all allowed. * ethernet-switch.yaml now only references ethernet-switch-port.yaml# under the port node. v1 -> v2 * Remove accidental addition of "$ref: /schemas/net/ethernet-switch-port.yaml" which should be kept out of dsa-port so that it doesn't get referenced multiple times through both ethernet-switch and dsa-port. --- .../devicetree/bindings/net/dsa/dsa-port.yaml | 24 ++---------------- .../bindings/net/ethernet-switch-port.yaml | 25 +++++++++++++++++++ .../bindings/net/ethernet-switch.yaml | 6 +---- MAINTAINERS | 1 + 4 files changed, 29 insertions(+), 27 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/ethernet-switch-port.yaml diff --git a/Documentation/devicetree/bindings/net/dsa/dsa-port.yaml b/Documentation/devicetree/bindings/net/dsa/dsa-port.yaml index 9abb8eba5fad..5b457f41273a 100644 --- a/Documentation/devicetree/bindings/net/dsa/dsa-port.yaml +++ b/Documentation/devicetree/bindings/net/dsa/dsa-port.yaml @@ -4,7 +4,7 @@ $id: http://devicetree.org/schemas/net/dsa/dsa-port.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: Ethernet Switch port Device Tree Bindings +title: Generic DSA Switch port maintainers: - Andrew Lunn @@ -14,8 +14,7 @@ maintainers: description: Ethernet switch port Description -allOf: - - $ref: /schemas/net/ethernet-controller.yaml# +$ref: /schemas/net/ethernet-switch-port.yaml# properties: reg: @@ -58,25 +57,6 @@ properties: - rtl8_4t - seville - phy-handle: true - - phy-mode: true - - fixed-link: true - - mac-address: true - - sfp: true - - managed: true - - rx-internal-delay-ps: true - - tx-internal-delay-ps: true - -required: - - reg - # CPU and DSA ports must have phylink-compatible link descriptions if: oneOf: diff --git a/Documentation/devicetree/bindings/net/ethernet-switch-port.yaml b/Documentation/devicetree/bindings/net/ethernet-switch-port.yaml new file mode 100644 index 000000000000..3d7da6916fb8 --- /dev/null +++ b/Documentation/devicetree/bindings/net/ethernet-switch-port.yaml @@ -0,0 +1,25 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/ethernet-switch-port.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Generic Ethernet Switch port + +maintainers: + - Andrew Lunn + - Florian Fainelli + - Vivien Didelot + +description: + Ethernet switch port Description + +$ref: ethernet-controller.yaml# + +properties: + reg: + description: Port number + +additionalProperties: true + +... diff --git a/Documentation/devicetree/bindings/net/ethernet-switch.yaml b/Documentation/devicetree/bindings/net/ethernet-switch.yaml index afeb9ffd84c8..1e8b7649a9b2 100644 --- a/Documentation/devicetree/bindings/net/ethernet-switch.yaml +++ b/Documentation/devicetree/bindings/net/ethernet-switch.yaml @@ -40,10 +40,6 @@ patternProperties: type: object description: Ethernet switch ports - $ref: ethernet-controller.yaml# - - additionalProperties: true - oneOf: - required: - ports @@ -60,7 +56,7 @@ $defs: patternProperties: "^(ethernet-)?port@[0-9]+$": description: Ethernet switch ports - $ref: ethernet-controller.yaml# + $ref: ethernet-switch-port.yaml# unevaluatedProperties: false ... diff --git a/MAINTAINERS b/MAINTAINERS index d574cae901b3..fe5f52c9864a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14337,6 +14337,7 @@ M: Florian Fainelli M: Vladimir Oltean S: Maintained F: Documentation/devicetree/bindings/net/dsa/ +F: Documentation/devicetree/bindings/net/ethernet-switch-port.yaml F: Documentation/devicetree/bindings/net/ethernet-switch.yaml F: drivers/net/dsa/ F: include/linux/dsa/ From patchwork Fri Dec 2 20:45:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13063248 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2C08DC4708D for ; Fri, 2 Dec 2022 20:52:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=4MmJ2N81TP8yYif8lZPKpRawfekgx3fAIwH2dbFPMso=; b=idmWSQfN4CeLRJ 8RpH0OHnzQ4TgGMzZWogwP+dc6CElcUs6cdPis196TokhFIYanCmkCAQwMRgZvyCEsKCkxOlVVMdr vHPfkQHDpP/IgTxJBP3new1EFQb9oUJRMKCp04UM/WGeGty4L93LdT7J6rteglONQhlgLI2BRWxrM FZfrM1N7RUrat1kEFGbhJCSDCyoBhwofWm0rDPqgB9gnlXzGlmsgUIDn0u2c/Wxomk1z1uP4ndNOw sGaladRXuO5JQ3qq8SKg0+dmImnWy9ldKfrEdtSPXhMHeVvlXgi3F+Ak6ad9F5XvKw9DsTMfZg2Dl sI6gUa5oT12t4axvunDA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p1CzR-001EJE-Ts; Fri, 02 Dec 2022 20:50:34 +0000 Received: from mail-dm6nam12on2070c.outbound.protection.outlook.com ([2a01:111:f400:fe59::70c] helo=NAM12-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p1CvY-001CeI-0h; Fri, 02 Dec 2022 20:46:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=akfZxxzaItfD77JbZDcwzgT5bAyEhAQbNwNc3MBTSjEVKMtRbZMDRE11S+j64cw5ZSf009kvb6cNYggdcKuszT6jQECCI6KJj6roXtsdbRWtHnAaDUSa8af/dbhpFJe6ciiub450hPh1dpKHV7GecG8h8z2yqwum7nIkPYP8pln6YuNlWlklssaZn+IFprAWYBR5FNrJvbl6hXa9xoN5IGLXUP9oiZFsnA2bQ92KPnZbtGtpAPHEv3tJcQqi6j5bJJ80JYloXjrBKrMt+F0wwY0rR8rkyugG4X/RekOcrZ9pW+xQJzo+d6QUcHh5qnlg7j17Qqsxsf3RhGef1itcHA== 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=VO/XnZfLZNbKy648fqmUy3e/6vlO3qXM+7l91uNvhJY=; b=Ai9epFlOTFBNku3RRj8T6sqT5nChtUGzQDLw8H9UTymgh0njpFEQA6tAGdSfq9nW4ZftNoiZ6snSmqOn6G4NSQ1iEj5MtwAOTINhLU778M5+jEllhECZQqyO9hPKeQJZe5fyL+zUfqYt1Ge2O2VZDbm0RN66AQkZvnOkhn/Hbhbz3b6TE5NFbeAw/hJKvU0Bf6L7NXhM38kuka7YX65fO3FXc+eF0dpCaPmYP0JJJPuwHudUb4lVbKzECAnUfrvOVALxmXlauY4+jkM3L7ZmaA1Dv6EGvTioCMUTCytrvaUemGFnppYodKmMaVzOTp7+sENhSZwmzrR9lU+4Pvixyg== 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=VO/XnZfLZNbKy648fqmUy3e/6vlO3qXM+7l91uNvhJY=; b=M4GgROrXY9DeGH1w3Qv0L3orQxuIRztKdSoOYQtB4pgwSRqwGF9LDfacrmVSKjvZgJqgNyw6vEHd45BkuBUNQWgKQMudU2gxVh9284wkoCTOKiaxcghJdy1YKiXCTIYwS26gBru3lHqdQe/x7YOdUIx3SRKMto21bv5j+e1YXdU= 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 DS7PR10MB4944.namprd10.prod.outlook.com (2603:10b6:5:38d::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.10; Fri, 2 Dec 2022 20:46:25 +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:25 +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 Subject: [PATCH v4 net-next 9/9] dt-bindings: net: mscc,vsc7514-switch: utilize generic ethernet-switch.yaml Date: Fri, 2 Dec 2022 12:45:59 -0800 Message-Id: <20221202204559.162619-10-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_|DS7PR10MB4944:EE_ X-MS-Office365-Filtering-Correlation-Id: 9f1f5cb0-a5a4-4587-86a4-08dad4a64426 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GeC/RXTPcYcMj1q8OMIoAMLH5BMuLjgeJCVKu+E6TxMkwYPx4IJPmj7WzfEbsNYZBV7ej1e9iXPN1Sy0gYSt8Nv4efaeNihfsVuqCjETOjlowQ4GVn5sgiwEjW1tYtAGR1i+Y2ok+KVfsoOYkAAKQGV/6YVca0UJdJAa+gbZ+CqUu/YIjV+FBa86hp2GTHL7dPphM593bVeHmEUosi7omoVTtRZl+xLoZ8Aeg2aiMvEKZmtJ8OeR5Ahlz0p2ke+9GHKqKOXiQofPT8HTZLEY/mwtZgaavdDvHLYEXyl0soqYCc6CBPv0DW/yF+APPWV6h3fLT8hWUkQ8rorbdtrcSHbXXzxRPcf0iBta6x8B39k+UKkwyf1Hf2tm/k4tytIJL6H9YFQ/UQhMStfH2wxBbnq4z/+4Dj3dtQ1bHhlj9kGmYW/bsHc2vIYOktmPFU5Trejuht0n2EA3wZYqJFGDqhcQbTAiWmtBtU+49HPv1tE6OkgXZdUhC+/0FOH7skCknsLA27RJiXwpYkYHIV1yzGzbVvH3SES1Lrzxe4Ix0GYplbhocgrwtTVKbhzTtbhZVLo1GX0wTJm6Eug+/n1W60fz3e/3uMf+vBMXyF9eBqagg6WsWhwa6GoEbdhS4G+gbU2kbOW0AxxZ/CPTdYPzuyRvnsRyBLHLereuHbOmC6PGs7ApY+LlH7Pzz5odGVRPr/fqUF6uZbgKYoyZEaVdkg== 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)(39840400004)(396003)(376002)(346002)(136003)(366004)(451199015)(38100700002)(38350700002)(8676002)(66476007)(66556008)(66946007)(186003)(26005)(6512007)(316002)(4326008)(54906003)(44832011)(5660300002)(7416002)(7406005)(83380400001)(2906002)(41300700001)(36756003)(2616005)(1076003)(8936002)(478600001)(6506007)(6666004)(6486002)(86362001)(52116002)(41533002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 3xPXRfOQ396/HteBWVq0m+Srfu4p9gvxn0uwRBF+5C8+eglPsL1fbkbPtlM8XiYMdc0A7nBLHfGgWUJ4umfCfA+HQfDfcoOMbsocpgI7c0oPqgDwGuJkuMQvrX1Qho1q0FXFWgT+7cjtfjohOAwB9+ZH/yhZFaQS1M4wsdxfkAcQEOznJQ0NAjrZfkYSYDLKcxYgME6qOeGTUBLBGv9Cf8SMaYW/rJ6jg5T9VaX6iWiZ+D37pyQzhtD63uMc7APtuxPyPcFietfzsyIhtC3UpiBS3W71W4NnYCCJFeWtVp1rdvOWRz4LDGCTk5qUCiQN+lArHMFKqnqUkW0Qg4T1eVPw5qfRLD7xWqQXzbVF+xgel7A+sxId74GMAkmQnvkAGnAWQH8KXcb2kAvRnviTQd2Cs1FBD94xPPtHpbkaKQVT6itEn391LaqSEePsQqF92ou1X0JZEBnMG314sihzy3xYrXKiecph5lTOCRgXJg2hoZTPkAqqrCvvhyoFiFM1rEcuwBm1uqehuuLgTUPoZIipxJOArQR7dUQx0JE7VFl7r06WaP/Fz5amZwbeWp2rYg9u229z71d9mavWZyak2i2eskU4XhhtSTl026KfNMvRDtFy3ujz2YPL2mPsJ/yoKwVx/80zI3HF0Okkz8AvIGRmkwF/0r4Qw9T/cZPXvOL+bn4ufeenpsBVt/RlDUifez6s00reVfNQhoI52L2KnQ6RwH3G/dhQkSYWS2YZNIsr6rYvUC897HKwa8A1abmXCxzidI5H4PudlYHHyjTkqS0LYE7AE98L+STq307ckSVz6FpiR3j6BtSHe9eVlELg09HyLPrBT+W//GRS/w0plUkI0NTLpQlW/LbhO8rIRJIXGl/YL9qwhZ+hT+2ZxVaAYj7LHihyv8nU6UAP1zngp0QF05i3tRZE5nvffi3DGjn6y7FAF5s/kmoIHWDC0ErKGTE7bRMoutqBdXGZFwPgeqp1UezM17ACFo44vgXB8B3dsEtZu5oruvisVwHkbsp0iDlVins+MFfcfZS8XQAprYOUYUfsa6DRLZTcCzTI3xXG6PwCl5Tb2C0If7/5rTAyjTF03b78SCd33xmACH/1GaABalcFVC2cUuDx6wL+DwQcUC6AeBpGkd0tUKji4r9q/YIopkUDn5MX0awYzW7KSv7muI5rCDiLx1xHbNOOZoXo8j6OY/1W3ILxD8XN1qA/VuztN2rqL54lhkZRbybz67xyNS9UZgdoZlOG50J4EH7vvkS6VNL9IGiv+mGo7zGQoEmzm9Ci5yJm0h5nfGVM0nWQYItpJDrNBu68Zq3xSkgkqewj8Ykodja0sMPei+WT/Y4zPOwgSappngd4NmkE+THAjnbxJLCNPCuNiR+qus9tUlZucLBVubNnMzW0eGanOAfpbgNIHh46uXTHJwaUHkoVVG9J8BDHMo/ROg6swJ9TwG/qco/WuM5yWljiUMXLb1Kx9Vkmne8IlVk76Bv/OTdBzU3pHwsuTUgGJE1H3PwNnF2iRk/SpQOJN1ncsB8zotBM+wRL3cTOx1uUlrz6ZtVEUSMX5Qyqd6QRQD73KzSE4LmAu0S1PAsiIbXMICZA+ueBVdasZGhbxziOzHzJtdgpV7TmoFJY22MUUtBjtEw= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9f1f5cb0-a5a4-4587-86a4-08dad4a64426 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:20.1256 (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: cpyacNXEjnsAmnr567+cFjoyBeaX1nGX3Ni9u5GN7QZ4DDY7GRZgJLih8tV/8jblUwC8oLMtVBeQu9O0P8ZhCMCFlhREDm8y6Eb1al0gCKs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR10MB4944 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221202_124632_088355_683D3455 X-CRM114-Status: GOOD ( 10.50 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Several bindings for ethernet switches are available for non-dsa switches by way of ethernet-switch.yaml. Remove these duplicate entries and utilize the common bindings for the VSC7514. Signed-off-by: Colin Foster Suggested-by: Vladimir Oltean Reviewed-by: Florian Fainelli --- v3 -> v4 * Add Florian Reviewed tag v2 -> v3: * Reference ethernet-switch-port.yaml# instead of ethernet-controller * Undo the addition of "unevaluatedProperties: true" from v2. Those were only added because of my misunderstandings. * Keep #address-cells and #size-cells in the ports node. v1 -> v2: * Fix "$ref: ethernet-switch.yaml" placement. Oops. * Add "unevaluatedProperties: true" to ethernet-ports layer so it can correctly read into ethernet-switch.yaml * Add "unevaluatedProperties: true" to ethernet-port layer so it can correctly read into ethernet-controller.yaml --- .../bindings/net/mscc,vsc7514-switch.yaml | 31 ++----------------- 1 file changed, 3 insertions(+), 28 deletions(-) diff --git a/Documentation/devicetree/bindings/net/mscc,vsc7514-switch.yaml b/Documentation/devicetree/bindings/net/mscc,vsc7514-switch.yaml index ee0a504bdb24..5ffe831e59e4 100644 --- a/Documentation/devicetree/bindings/net/mscc,vsc7514-switch.yaml +++ b/Documentation/devicetree/bindings/net/mscc,vsc7514-switch.yaml @@ -18,10 +18,9 @@ description: | packets using CPU. Additionally, PTP is supported as well as FDMA for faster packet extraction/injection. -properties: - $nodename: - pattern: "^switch@[0-9a-f]+$" +$ref: ethernet-switch.yaml# +properties: compatible: const: mscc,vsc7514-switch @@ -100,35 +99,11 @@ properties: patternProperties: "^port@[0-9a-f]+$": - type: object - description: Ethernet ports handled by the switch - $ref: ethernet-controller.yaml# + $ref: ethernet-switch-port.yaml# unevaluatedProperties: false - properties: - reg: - description: Switch port number - - phy-handle: true - - phy-mode: true - - fixed-link: true - - mac-address: true - - required: - - reg - - phy-mode - - oneOf: - - required: - - phy-handle - - required: - - fixed-link - required: - compatible - reg