Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3314505pxb; Mon, 18 Oct 2021 12:33:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEwP3RRj7k3IRdWmB5Uholx0RZDeNrsAwG4Bx7Ba2BzL8Yw7+1/HMDiPxuJMY51hEkhrrv X-Received: by 2002:a17:906:3842:: with SMTP id w2mr33067797ejc.28.1634585614237; Mon, 18 Oct 2021 12:33:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1634585614; cv=pass; d=google.com; s=arc-20160816; b=YcfExR4B0Vngvn2BW8MgFF1i1UY2iP7lmjPNAo59ptMnEZeiwU9CmwHLIb+FxppFnk PZOYrBfQYor/T+FtqMzaMnW0bMGloGk8bOkJ/hz4vm2uvymWJrrwvBrdvDjy7rXN2StD ZzO/F40fZjwiquzb51yxjCzS2gtB2nVkgAUnASk0pjvVjSuT54Xj7ErHfS4dako9MiXR 4TlCWJQwjzhxQxSNbCqf+PAoVrOHkgO7qcI4OX98xDlDrGNyXu2T4wyQn6RlT0rXlQU8 9hjVgg6AXwQcajlo14P+VfgDQ75QNrw2NNGJTUVJdQui0kgwdl97fdCiFmHVQ2XwT+bK yEKA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=oPq293RXjtrJks4emNtlPYMhyYxPohQ3QB4xOkzTfDU=; b=iclJbTx9EFb0cBxVv9SQ5PqWrVTdD4nNrNPfDY7AhCx8wzmDRJ9B2MSCaqz7Qk7OpM WtR0rJ5ZYzMLf2AF+gSXd1xMhdVEXc8LmN5xmspbSWe3JvArbIJr0OpD33JGGf9Wqmvx G025ziWQU7hcohou9DQet7EisylAW/SOkgh3/xm2hh1HOE4BrZt8644XrW2uLwGRvDVb oIWY1lYJaBIbk6THw4s7ir/6SWCXMZ7c2MMlvKnSzhZgYqy++5sK8ZMUlrcuQ2DEsw/S b6nB6bLD8ZkZqZkV7T4FDzDriq/zBrxxZZxnCpa/eze+rvxguETa84EvtTjuMESxzi2O 0/dw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=MrB08T6B; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hr16si23731903ejc.322.2021.10.18.12.33.11; Mon, 18 Oct 2021 12:33:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=MrB08T6B; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233807AbhJRTc4 (ORCPT + 99 others); Mon, 18 Oct 2021 15:32:56 -0400 Received: from mail-eopbgr150079.outbound.protection.outlook.com ([40.107.15.79]:13540 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233664AbhJRTco (ORCPT ); Mon, 18 Oct 2021 15:32:44 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OYuKIXv+UC7M7OgK9L0WhxNJzQYt/4YCZVJja3nbAUidouNXEomRcIlAH1s5kc1CkwdYXdABpPsJg15EnlCZ4cPrFW3E9p7WNdPq3YtINV7vi5DVcH/yuGK87qTj3+YNe2osXKIej3FKtyrSTEpyUYcBpFfP0OJF3R357QgMxoHi8dbl3eeeT3mq+xP3xE6958HqbmtwSMIQdYT2Lw74EbuAaQjzxqh32+0/V1JFGrr3Pc0fsy7Lce8XbtS6tp1I28Q+9eiqVRqfT37cViePTOFqnjgEYGzUe32r8H5W4ejZftvQEa7w6kkPvhlhtVBh8IqeSQJ+G+GgzwRH9bCdrw== 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=oPq293RXjtrJks4emNtlPYMhyYxPohQ3QB4xOkzTfDU=; b=BIsHv7UYvS/fZPZ6dGWGep2ND4vKq5QUUhLab6hYHj5YRoh/LvqCWNsMtoblWqk+T0yQfyL0UppD5+ZFCoKGY7d7xzxe3V/JyleFuuZ7FYjFzwPwe2HjnV1uPGALLvP25G5GfsnBv/Gd1+1MXSIt0DIPKKvsjo5W+qaxtM3zczbH9mlLsTtFpv3D2/0e/WlxfEzfkIt9K41cge7wcHIcEj0fH+KZNc3e2XhOZO7jdhY5eN4Re1XiB6uJJklHm1nS74JMJUTC34bWJ07+OHXDnvryQoNz4wZucTycgn2QRexv36PrUL8B2dUF0yVDpdVTi6IQhwaXEZF7wO9NPi0LSg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oPq293RXjtrJks4emNtlPYMhyYxPohQ3QB4xOkzTfDU=; b=MrB08T6BE+OqBlP1l/s0yMXjjer08iY1EvXv8W7IWxrKR0A1GRwZntYecDV2IWRORPwU7TqOpRHJb5Cl+JGD+fNz0KP9mTzWEW/ZXaYhco6D6ZPyIUaZEpt94GVC7lovANHr+0ij7kQO8WLhGTswalTJSULJxYFL38gkYnI1bSg= Authentication-Results: davemloft.net; dkim=none (message not signed) header.d=none;davemloft.net; dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB5136.eurprd04.prod.outlook.com (2603:10a6:803:55::19) by VI1PR0402MB3711.eurprd04.prod.outlook.com (2603:10a6:803:18::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.15; Mon, 18 Oct 2021 19:30:30 +0000 Received: from VI1PR04MB5136.eurprd04.prod.outlook.com ([fe80::e157:3280:7bc3:18c4]) by VI1PR04MB5136.eurprd04.prod.outlook.com ([fe80::e157:3280:7bc3:18c4%5]) with mapi id 15.20.4608.018; Mon, 18 Oct 2021 19:30:30 +0000 From: Vladimir Oltean To: "David S . Miller" , Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: devicetree@vger.kernel.org, Rob Herring , Andrew Lunn , Heiner Kallweit , Russell King , Vivien Didelot , Florian Fainelli , Prasanna Vengateshan , Ansuel Smith , =?UTF-8?q?Alvin=20=C5=A0ipraga?= Subject: [PATCH net-next 2/4] dt-bindings: net: dsa: inherit the ethernet-controller DT schema Date: Mon, 18 Oct 2021 22:29:50 +0300 Message-Id: <20211018192952.2736913-3-vladimir.oltean@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211018192952.2736913-1-vladimir.oltean@nxp.com> References: <20211018192952.2736913-1-vladimir.oltean@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: AS8PR04CA0160.eurprd04.prod.outlook.com (2603:10a6:20b:331::15) To VI1PR04MB5136.eurprd04.prod.outlook.com (2603:10a6:803:55::19) MIME-Version: 1.0 Received: from localhost.localdomain (188.26.184.231) by AS8PR04CA0160.eurprd04.prod.outlook.com (2603:10a6:20b:331::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16 via Frontend Transport; Mon, 18 Oct 2021 19:30:28 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1fad497b-999d-4683-0b91-08d9926dbead X-MS-TrafficTypeDiagnostic: VI1PR0402MB3711: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2449; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cP3C8PwQsZOg4yXSw1gZ9WcD/1GzAic8wWIGnHjtwXJCa/RmTHnVxo45fGdvDUZG5SQYFA3K7fgDDpZE0K6SA5uLsyeTy3YSS5tDEW2Fs4clM4X5lKjVzKSj1JUzyNXvxMbSUXbVQLq52jjOnaRcjumozxZPZcNbYwIjj01SqbeBeizpxtz6RzAbD/mdfs9CEcrEHU5lCzRB1MvlmrTaRCXsfoe0URf/2M4p+UVtYLEDux/GJQU032/eoakCdnMHxSNQEigz2I35Ps7EZySZF+1EBUKYjYA0o5F6MfSrZQV8rWvm/7DE7QFAUxVjgSbHoJ3JyB/ihyAnC5ceOnn0znP23dL4RGJR9egx1uywvLwRafxKikGltfQK/HylWJhf5sYseLuIZTDrkrIkwXiDoxrjnbau49mtZdTAGj9XdmFqnbRTbKdrdE0xNucj7pIvtajmy6wbNl0lnwugE4yO5D0Vd55MnnCnjmpUW8/r1LxtSgzcdhsMdVbbAceV2nYQBWLfj88mixFg1XNSj6N6SdJzy9JJ5J+JLjiN7OudjOyUs5TxY1nYVS41RDGN5VsZDmmGsYtHqzuy7APLQr0cVcDfeUKaZ9ek/t5Mv78xFu7Oy822yh/JmlX+plloFC3vOh4JbTEOpS6pceo6JQHg0xALR0rbKDIcR3bSt9xUT1GxxGG9LUjS3rvONB3FI2zON/hJ8Tkyd4X9PPRbYAw31tpDmEb4BzBnZIwoL/DmWpTTYI/8jH3hZQmzU2wTKaDO9chYDSo0+EESnQ4xBM2kU2llCHqSNZJ1DbQehxZrt1w= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5136.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(5660300002)(186003)(6506007)(26005)(66476007)(44832011)(2906002)(66946007)(956004)(1076003)(6512007)(8936002)(66556008)(54906003)(86362001)(6486002)(508600001)(4326008)(2616005)(7416002)(8676002)(4744005)(316002)(36756003)(6666004)(38350700002)(110136005)(38100700002)(52116002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?Ah6KmeLhSQ8kChtoeu8OUAbb5sz0DUj2hFhuOu2+vFj1zmc4iTixWsBVYRIZ?= =?us-ascii?Q?0g/E1+SYXl5+1yUJIWz6VRW0e9dutI0qdsBu+a5vwO2JAcXl0jqUszWJa6Vy?= =?us-ascii?Q?XU2Wh8zoIbluEB5Vky4+/JuK133V6c+LOnNg664Iy4MtdqT3dJZa/CwqFo3y?= =?us-ascii?Q?4tYdXDUZIHKVr2AitqMiRh9gdMWFXfCvzqqSdZdRMyXhW/49b198PQ9fV4yL?= =?us-ascii?Q?gBHE7ZcVniCo523X8xrryHopDwXOlIOHfdix2BwzI6NY6Q7E2gk+2M6W6LNb?= =?us-ascii?Q?Bz1tYMdd1bggLdyvDe4DLuHaa7HyVGaCGnI9FXZKmLItvy6n4JO8eW54KgHN?= =?us-ascii?Q?GkxldTWAzNOaTWL2fJn6HhpzNSPf7t6lrtx6w2FswQpy2LAHxtYafnQuNxfR?= =?us-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SlvLJKYxW3TVK0X7Nw2i7U?= =?us-ascii?Q?r/jJsuj1F9uhLcdtOYcNsRS5?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1fad497b-999d-4683-0b91-08d9926dbead X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5136.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2021 19:30:29.9816 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: NvwyIcBbXqtPATZ8MIe1m+4fn1LynQbw6shxWKI/fdFhHFOH3WInOXHdV1FHvIIhuyJF3U9sJ2tGDA5ElcnTmQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3711 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since a switch is basically a bunch of Ethernet controllers, just inherit the common schema for one to get stronger type validation of the properties of a port. For example, before this change it was valid to have a phy-mode = "xfi" even if "xfi" is not part of ethernet-controller.yaml, now it is not. Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli --- Documentation/devicetree/bindings/net/dsa/dsa.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/net/dsa/dsa.yaml b/Documentation/devicetree/bindings/net/dsa/dsa.yaml index 224cfa45de9a..9cfd08cd31da 100644 --- a/Documentation/devicetree/bindings/net/dsa/dsa.yaml +++ b/Documentation/devicetree/bindings/net/dsa/dsa.yaml @@ -46,6 +46,9 @@ patternProperties: type: object description: Ethernet switch ports + allOf: + - $ref: "http://devicetree.org/schemas/net/ethernet-controller.yaml#" + properties: reg: description: Port number -- 2.25.1