From patchwork Fri Jun 7 15:41:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 802559 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2057.outbound.protection.outlook.com [40.107.21.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 39C7F1667DE; Fri, 7 Jun 2024 15:41:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.57 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717774902; cv=fail; b=rEW7qlf0e2I4NX4cF9y4UXIhnsmB9H7tgn1AEeGZ9CHGtbhJ4Vtmeq09pz7V4+cttAkzf6F/kW5e8P/7HA8QYILsS4jgv3h8tECVYwchgM46gtz7cErfnQjcoM/OQREiR+gR0X9h0XBJ+CtEAdgMZyeK3fZqRhq7Lb2k3Lg7z6c= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717774902; c=relaxed/simple; bh=375alDv6D2y/YQOqZmqyEtmYGu+LeAXh9p0tA0zR+UE=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=DLwQ+k/t/MsJtZNcJurBSXEulB7gJuBmi9tmrfEXJuvuktDldzsC5fx0NnU4ku+XcI4V0yU+/2+Ll/6NpiUFYgQO/D7HNjJM2alzl3FzMvCWsM++Bu+TfwZLFpo2NEaO4xX0sPi4QSz0Luwo8druvSDTExOi5mw5wA6mbzIh1aM= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=D25HrCpj; arc=fail smtp.client-ip=40.107.21.57 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="D25HrCpj" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=X7f0bsRBmnDBhSZ/s6iPz+eZ/rLm0AZLrA9URT700z7r1BjuFrnu74tD9DwK4kv5rH8jlKRGJ7kw41FQXVvWKezh0kFwvoDVw+5ZrS1S9rY6tx7MwAFK2YTvOMJTg3Sc/kwwOHF6foERQ/PJyzT+gJdjOkKSh7e6OYW1nFwcKpFyYIXvQOFIG4nUOhqyu4T1rMGNmlGz9HTDOymEH8vGgF5FNNd3/cNyofFib/VVcPym0n+o0BNkHL4VAe/m6Dt5FwKzEUrmlHbcf2GZZZgEOrjlghRTM6y1hcsWJBIJpSWrBdFY70fY9DRMeBmcZL5eTmMjQnEiUyAGhGj0G8OwDQ== 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=89I21VWJ9LAjxQ8NOx4YFHYv7JrSE7ToxeaiT69lacA=; b=Z5lPsANL+O+wPXCivEy5fYrYSKi+YBZh9HSi8p2XXwEd961rXbr3SL4Qi88kJXWWVpC7Xj3NazN60+8QEZNjQ4qqwobEebQCAFGacsvE33/HwnHtr7rzvndjuGvoAHdxAiPkp9rVPtDB3aHvvGDJUYZ7ia7/OteIv4VutmV+kYcfFzcnI+eAm1sgykin+2/xgVXWCB4QSMHpBCtd+g94BvliXzUiSOcvdXtb1sj+8AA3iy1PvcVC/XCffs8nw1dkHio9SW//ise1QZsM5ff6jeqgVW/dHK+mv7ajmEvUIl9fr6ujtw0MMdgUMNfr69nnW0NEyw3WNtK7PnghkqtAvA== 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=89I21VWJ9LAjxQ8NOx4YFHYv7JrSE7ToxeaiT69lacA=; b=D25HrCpjEsPVSoUfgdSR01Ar31pZRy9tDNjw76RF3FcvNgQnfQkZiNgNAAbsdVJchSC0H+tV3cnSqR6QnW5jhoN91JtmIFP6Fou8GNfngcda0H09hBwBzQ5V9L/VvRnGKDDA/FHb0oaX1X75PkMuwVLuTCqISg5VD4KlxiiKJHI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by AM9PR04MB8179.eurprd04.prod.outlook.com (2603:10a6:20b:3b5::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.34; Fri, 7 Jun 2024 15:41:37 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%2]) with mapi id 15.20.7633.033; Fri, 7 Jun 2024 15:41:37 +0000 From: Frank Li To: krzk@kernel.org Cc: Frank.Li@nxp.com, conor+dt@kernel.org, devicetree@vger.kernel.org, gregkh@linuxfoundation.org, imx@lists.linux.dev, krzk+dt@kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, pawell@cadence.com, peter.chen@kernel.org, robh@kernel.org, rogerq@kernel.org Subject: [PATCH v2 1/1] dt-bindings: usb: cdns,usb3: use common usb-drd yaml Date: Fri, 7 Jun 2024 11:41:19 -0400 Message-Id: <20240607154119.1543290-1-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SJ0PR05CA0013.namprd05.prod.outlook.com (2603:10b6:a03:33b::18) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|AM9PR04MB8179:EE_ X-MS-Office365-Filtering-Correlation-Id: b11a9c6b-bdbc-45e1-2923-08dc87085145 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|1800799015|7416005|376005|52116005|366007|38350700005; X-Microsoft-Antispam-Message-Info: KcIIXmsvl1WUv507gQKs2r1/ixl/ThnfOSVnsbTsFkOxTlWfrRn57DsfUBEJnFE2Rdb47DalO83xT4+ua8nO9a/cFpNkw1RBLIEPPeWIAv9thK5wdnuDKyM4N9RWgepDfePadqfBKIzyOHdf48kNp7AFoeKOxapv3Php6RYZcwnK50KG3OEo7YAs2eFppzYWE7R1y5DHj9rB3GHsqU7NFL18/php6dg0NWw6RXMA+c/7xYvpXxS3RiaS2UoaWNBw3sWQJ7DXEfeH8Jy6ZnSWXYrflp6dtn9E+A91wIvkKr+PpE6GMKt7apLrJ2mMKH7VUD+RclMMuGRgimqDkNitn1U1sgx47EVkZOPhzFazxdf1/mgNuVlprISZulwqycFcTUEGtw5ZriU6Kcr50WRyBREBMl/cGeYACIShDoXT2UnY3FtHygvASmrnTRI7449R08KQD0aEgipPkk0X2rSWkfWt9XzaBxW0Ona+DIN5+Hf9m136UGMIS1x5V48vhO3Vd7ir/xLkqHQsK372rrHozeIIOeUOeBy4SuuGgjIbjOKJR4AUMvwqZ98iw5oZfFwvKKuBtspkTePeX2j44GTWYSeKwonStjzl3NoSb972DQbaR0rvYUuwZQgY7kcDjIWCoVSVSAOftMRY4Eri40IoTrIcCPm0apcA2a54Nj6nYmoS2Cenw0diBqqajwy0EHJHhs28hFrKIgDDrWGwld2w5tdOvWVzUmiArSzEyU4KPAzTU3qJSSbXoZSqe8ICKbFM5LkpNuIlHEgHC8Fy8bTOkf+XpP50krWlGmjIRbtrZB8gkHDfMYrwhkTzUVcQ0GfetS3x0MqTB5YQ3EUn6Cz1LfMkV/5Dgdf6ZVVTZrDazt29NcZiRKW35VKsVs4OmQnT0hz9bUdtkSOZSHHdB4V1S29wVHoRfX22RwT8rlzNXluygtmahq9qJI8wpK7c+oJtC1cCsk2nkelwvCyoL1cnQOv+17V2rd/U8SogfnQ5hj2otVWAyM/YLD7x6RYWsaVmall1sfRpUmtGnkbxGKKJld5zlrXGIJ/qHHlcK+vJxePfRmWPPGHH6CWXbDfA97bmmd2Tb383m6hNsmxxl8X9bQgtg93lyYjoKBm7IwLDjKls2tJEGk5e/psqjz/+Vihm0Z3ihXx8lnquV5yI1NNANf3xEnPnZ80eBPuVm0c3vY08kyxj9raLxdHLTNRWXXRKsVpj0+fq1L0rVCfWz53X5gGdGjygBwRVKjNuah7AEdr6uapMnLhM///xX16HgdHc7irh4omZbROkv+glPpjD4SLqvWd4WW+gQhAYXeVZXuxrsY6zQg6AO+O9K0xSagvS1rk1tYtNwdwkccOBxOGUkQJXoAo+PV9MYbJcWFUzFK4= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAXPR04MB9642.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(1800799015)(7416005)(376005)(52116005)(366007)(38350700005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Y38miWiLanXztJOelqofD6VG20vnrGwJF3tCcZhtzgwXmsTwna7Q6lTKBDKSNsYni3HYN4pCO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Bdj0oskKv48UUcCUNtk6B0cV3VvGCd32YCSBm1Pn7wzdeDdJ5wq1yb5A2xSnJ+uTATgB2vLLai5tpDqt4X+Q/K43F/Yxy9Sg1Ka5qrRtq4XKRi8OxfKAQcoU7m7SVfR0qZ0u9+5wZKBvBSPEEWtPYwxwHHhS1a33yNTEhml0TsTK4Q2hbJd1LpokZymqxKtHrtXV1lD8HeUfU+/+MppHPnT/syZniWeEQxctpMzHUhjKDoyUOH04xsqydnd7RNMa4XEp3rroi9PLHILFQRnmjeZB7sSRv13JwLS9akMyzJK1nd6Iiym4NcIJcSbCZWuMornT+sSvPkvSm0ZWQ7s+rgfFPoH8OooTymYEZyRBHYemKHnZq3Fo26e0he2SW4kSH7C7BcZZMzZxC/36YJGe6j184JCND6S+U9BJFe72U9+6gYe7pb+BUgAW2hs+IgOYch X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b11a9c6b-bdbc-45e1-2923-08dc87085145 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jun 2024 15:41:37.4095 (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: YR2y25h1dCIG/mCxgPbB3OmOF9E2tLjxfsGakkWzV13fDQVaZm4goJtxzmtB5KqK1Ohal9+f9wR7Wl3WcALCPg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8179 Use common usb-drd yaml for usb OTG related propteries to fix below DTB_CHECK warning. arch/arm64/boot/dts/freescale/imx8qxp-mek.dtb: usb@5b110000: usb@5b120000: 'port', 'usb-role-switch' do not match any of the regexes: 'pinctrl-[0-9]+' Add "port" proptery to use connect type C connector and fix below warning. arch/arm64/boot/dts/freescale/imx8qxp-mek.dtb: usb@5b110000: usb@5b120000: Unevaluated properties are not allowed ('port' was unexpected) Signed-off-by: Frank Li Reviewed-by: Rob Herring (Arm) --- Notes: change from v1 to v2 - add dependences - remove dr-mode : true and usb-role-switch: true - update commit message pass dt_binding_check make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j8 dt_binding_check DT_SCHEMA_FILES=cdns,usb3.yaml SCHEMA Documentation/devicetree/bindings/processed-schema.json CHKDT Documentation/devicetree/bindings LINT Documentation/devicetree/bindings DTEX Documentation/devicetree/bindings/usb/cdns,usb3.example.dts DTC_CHK Documentation/devicetree/bindings/usb/cdns,usb3.example.dtb .../devicetree/bindings/usb/cdns,usb3.yaml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/cdns,usb3.yaml b/Documentation/devicetree/bindings/usb/cdns,usb3.yaml index 69a93a0722f07..f454ddd9bbaa6 100644 --- a/Documentation/devicetree/bindings/usb/cdns,usb3.yaml +++ b/Documentation/devicetree/bindings/usb/cdns,usb3.yaml @@ -42,8 +42,11 @@ properties: - const: otg - const: wakeup - dr_mode: - enum: [host, otg, peripheral] + port: + $ref: /schemas/graph.yaml#/properties/port + description: + This port is used with the 'usb-role-switch' property to connect the + cdns3 to type C connector. maximum-speed: enum: [super-speed, high-speed, full-speed] @@ -70,6 +73,9 @@ properties: description: Enable resetting of PHY if Rx fail is detected type: boolean +dependencies: + port: [ usb-role-switch ] + required: - compatible - reg @@ -77,7 +83,10 @@ required: - interrupts - interrupt-names -additionalProperties: false +allOf: + - $ref: usb-drd.yaml# + +unevaluatedProperties: false examples: - |