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/jrv04ccqR7W06qvH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77rCC6w4Rn2WJbgWEECMCiXEdjOYOa8Z5K7hk4+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: - |