From patchwork Fri Aug 2 09:16:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13751311 Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazon11010031.outbound.protection.outlook.com [52.101.69.31]) (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 5E67D1DAC67 for ; Fri, 2 Aug 2024 09:16:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.69.31 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722590206; cv=fail; b=nLEucdm55GDEe8uUQuefeR5ltXYB5F09H/aXXQ7WDoFBsfOuoavARSkFOYlLCJv7kogy2bLNUPXMv28XqQ5T95Ptu6Xt72VeY2KE8M9BFrHKRBu7S59VGhQuN/Jv9TJ6IhO1BonoNqhm+pmjja7QcG9PkeR2I6wJwMVgTgKc4aw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722590206; c=relaxed/simple; bh=VoBXZF9lzqRd74Z8BV92uLxoWDZm5g/dKwzJybb9OD8=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=D3muKBlQ2jW+3chqxwwOk5ttgrrM6njCbKMR0PQESTW0cwYJLAVMHtGp/AQdAuRGeu0ZcfBRbnHvk5vtWZP4xXIx2+q3NrsHR59WLHunv3vZHOdKT7zxaSVO98XfUCxeZ/x3ClBgF9iO2qvWdVm6d/RUnb4G48IzHO/dT2oRaAc= 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 (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=Zzb6saJs; arc=fail smtp.client-ip=52.101.69.31 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 (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="Zzb6saJs" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=hNM0Tv40J/zcapLevBjqtMZmiXJ1I1TqlgMZfiqrk1JBki7WSzIxUsDlDxg8y9hx3jy520CgkxMy8/OMqnityzZqgujRhaV/rQPtNxs9GQYRLOR80NrvswWHP1M+eg3X3MDCBNYpTSCVLXX6XLwKBIlbpFErGH0CKhpUyjDvxOyCxXg+dco4XU+qpuCgIFJl01m8I/YlezLIJNuGqYpranneImjvgz4EzzoMW2noLc4RNrGhoYhNdcrx3H3DXUXz0Pf9/vDYGSqldDGlrvtdbFMKckDlwvQHs0Ada4VGKQxkfUA0UfytSNAxtMr40kX/kAwv41Gf9wPItCaYixggwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=w0o16bU5LObzjN7Bwc/SMLxwPLL0vZ3sEalmiZjdGxs=; b=lyjBiUmRBad9beWM+xiHK2P7CRanANWDd+jyVVCM87RNaAhprMpMj9oi5X2P2MASkeyftnkoxt1wbTgN1QKpIiRPDYEwvYGuXnBpQ9m8Bs3pdN/gaHRSorRFzJrp/wwade6+g1OVaejFdB4mx7uYphnpKfuLmYDbc0pjgu5NfjX5f6kyF3JmpmxHBDUDvyCZVAotsr7zoTxP+li4dS56mZ1FOJyqyOdYrdSzKGy/uNUIYdRASB0bVPgLrO0zWd6U6i43NekrB1RUjPIwIqtvApcpePSfQqwVo59C3MpYeMrXdwJmaKm+mz+osrvw0n7EaZJmYcxEFM9BSZHV6xx+YA== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=w0o16bU5LObzjN7Bwc/SMLxwPLL0vZ3sEalmiZjdGxs=; b=Zzb6saJsXSuW2V2t545UlFWwb/zQFkfYmhzFULvAHCWns+/dxo6eM8NCesX1qPJstodNC1tTP2LA2v+ZJoe3s/7oqZtd6MS4eRZli2lt4eP5Iup5P8PS2YweNvJ7hyrb242OEJN7xD63dzINZcqd6C4uIYhsWlAQMeb7iN92CC9cx8o8jYqMrmuVooZZR0NbNtDqJJm6I8pr3TxNYE6gsngh1thuPM09eAewb7ZmR1dAKNtKPSKrvJP7g65R30YS3NdRXifDz4YL5UotiVea00MngISerXbrrsAOrj+ISBSQ8B6rAsdFz3+WegtjgmLpi6WQStwGqztHORa6VpwTkA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) by PA1PR04MB10577.eurprd04.prod.outlook.com (2603:10a6:102:493::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.21; Fri, 2 Aug 2024 09:16:40 +0000 Received: from DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7]) by DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7%5]) with mapi id 15.20.7784.016; Fri, 2 Aug 2024 09:16:40 +0000 From: Xu Yang To: vkoul@kernel.org, kishon@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, gregkh@linuxfoundation.org, Frank.Li@nxp.com, jun.li@nxp.com, l.stach@pengutronix.de, aford173@gmail.com, hongxing.zhu@nxp.com, alexander.stein@ew.tq-group.com Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org Subject: [PATCH 1/5] dt-bindings: phy: imx8mq-usb: add compatible "fsl,imx95-usb-phy" Date: Fri, 2 Aug 2024 17:16:58 +0800 Message-Id: <20240802091702.2057294-1-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SI2P153CA0021.APCP153.PROD.OUTLOOK.COM (2603:1096:4:190::20) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|PA1PR04MB10577:EE_ X-MS-Office365-Filtering-Correlation-Id: 0b626e20-6ac8-48b0-e075-08dcb2d3d174 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|1800799024|52116014|376014|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: DExXrY5hzhSKP1e5tDQqj4agaBaNIttNggsGu83SFO+St8kSu/ECvebDvmxMg5J/86ixOfk8bRquyFRbstlNejTRTLzduiaD0VttnjOGT+ZUT81Vm8IrqXyrp578+TY1pR8TJRXlAMa2CdX7/jQLPDKx5hftHw3Gsi2C0jY6RI3s/0538PiZe/UsIe2gkPKgDmOqKq53Wi+srcs6OwaIEPILPjtkz0dQjhBBifj4fEeYPi57oVQiVQyCj2lOIMqS4qdyE+DkJWWLxj7MpinVA6s3FYOGSnT/g+n4v4Y1E0lvI7v6Liu4ojN7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VyWISIkHxc/bdNVHWkpUysxTICM7SE+x5flndz7x0NFaZep5v5mlcUwju6pXB/55+sk= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU2PR04MB8822.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(7416014)(1800799024)(52116014)(376014)(366016)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: dY5kDL7RGnta+UfSEjgixShLVxN3o5tBFLZnW4gycYeFjqkfF0gmD4fX4zrLQWe7yxpPZmkrZzhE9yHbz7krkeb2UvVmLNkOHBsd5ZM096gp5zQ44KebbG2YRnnitt5AmSj/BasYPEAvTZPovz+akfQST9UN/2GavmZV/Gvz6ybcJBz+vENdXe0OWv7gFEb3k+GWt2ED2ZAgYo09FjOodmLgEPO7UdnR5TZ/rY45cZBVKD5tGum/XegcqMbtpcf3HVRB72Ny8Du3/4P0o9ZlD2BoQvjcNXw6gIkRvu4Sfb7fkh9E1DAif3mSQvCZ50390rtFFn/4MYaZoHKk2U30tKavLIteUafRCCX4uopJTtMK9J5nVL37Q17awKFuYXZea4oOJBfxbdz1uvRQ3ZjoQkMEeXxyBF6NkuWJf1GVCdE5vmsDhbikaGvYAwfuOfNApjW9o2hPsvocdztrd5pV8M1X7PBZdUsj6poN9GX7qXVCKPfLlDG5Evz5ByIxwqVefLGZQfY/6GFdAdKKd5b0MB52SG/qR4KhS+1O91CjvAnl1Ft5tFHZkz0aJM4FZ4oiGrzsxgUnXhLY81ioEZUhFlLFNu3yrRbpzVs/GsM9UihWakScAXpb06r3pOAsOuPpwqOkBS+IOcxUo+8q/A+H+5iR97sxTEoeWodpQLHfPoVozE1fTIoKtExrS36XOXqpynckxICfWumK1/fov44w7AbJorCXuJ1yRRkgh6MFIK2Saai7FeXgYxo7B8zup/1x5O2vpWpB5YjS/8bZPKQ3zjbmGuUvZjAfck+XHRs6zsDj7mJH67z72gxpDBCx0x5o3EBqUn7Ld9dGe/5lQF+3dlti3j7aQh2AfXhfDz67J91YRlMN6PxeELxOC5WbVM4EZ6wZN6LzNAHHkYfQBFNW7gRp5HtlwNdLQX2KVZA31zLFelFXDKVr/DgDKmOhY8n1euTdck/YQgWciBfKoK4M11M9Kl/XxTflKSUTGY7cjsNJCSaymdNmHOeORGzSgk9oqltwx15mMcccCO95jaFQ+2EcDFd5vnL5KLYMwUs20z9eHVH2q7dTwpLeALS3lMlmdPoQSmdDvyph+TD1boSvXBa2bSkhI03RE+1ZqYP3rG1h/NQG3oMOrN+gldIXwEkDhMRTztcCqg/JdD1yxi16g1lhhnfB3BL2QZHiDGARei2uaXUkgAx6GQqbTrUUMwH2Nd03PWoDGwbpVVgHY16mUnLy0A3M+6cGr5rVdg1yNZlAd9mGY4fwY2BXK3z0k1QBOg6vwjzoDn2K0RkBylzlZQO+16DPH8RS0iZXrvGKrx6mwH4DEB4l8dESChz6SNCDQdYpXJ8KrJQPde8d3yXi9NYOmuLpvuaeIssotDgH8BK8d/ML57aYutlYpXflQ4jyQxJshnFeDv56epvd9GunQ/xilRM5axw/NKtObRqLmeTdWUIlWr8cviq4Rt7goeCaWakaiNkv434ToAY00TKELZZS5kqtD5mpMEHetowQqsfK5yNPXAZhjozmzcXlRVjJ0DMwdkQMheu3cL7GyGLASCmepU4ziLHJw9zcbVjbEr1GQ+36qJtYhbm4V4PuE10J X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0b626e20-6ac8-48b0-e075-08dcb2d3d174 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Aug 2024 09:16:40.4925 (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: YWNicSum6sp0nhD3A4lMLRfyoA9MkghuCzjk/+8QlBam0go9jKV0yw3ZLdRIXUhoaHv8J/AON2jc8g8tf73iXA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA1PR04MB10577 The usb phy in i.MX95 is compatible with i.MX8MP's, this will add a compatible "fsl,imx95-usb-phy" for i.MX95. Also change reg maxItems to 2 since i.MX95 needs another regmap to control Type-C Assist (TCA) block. Since i.MX95 usb phy is able to switch SS lanes, this will also add orientation-switch and port property to the file. Signed-off-by: Xu Yang --- .../bindings/phy/fsl,imx8mq-usb-phy.yaml | 40 +++++++++++++++++-- 1 file changed, 36 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/fsl,imx8mq-usb-phy.yaml b/Documentation/devicetree/bindings/phy/fsl,imx8mq-usb-phy.yaml index dc3a3f709fea..b0a614a9556d 100644 --- a/Documentation/devicetree/bindings/phy/fsl,imx8mq-usb-phy.yaml +++ b/Documentation/devicetree/bindings/phy/fsl,imx8mq-usb-phy.yaml @@ -11,12 +11,17 @@ maintainers: properties: compatible: - enum: - - fsl,imx8mq-usb-phy - - fsl,imx8mp-usb-phy + oneOf: + - enum: + - fsl,imx8mq-usb-phy + - fsl,imx8mp-usb-phy + - items: + - const: fsl,imx95-usb-phy + - const: fsl,imx8mp-usb-phy reg: - maxItems: 1 + minItems: 1 + maxItems: 2 "#phy-cells": const: 0 @@ -28,6 +33,17 @@ properties: items: - const: phy + orientation-switch: + description: + Flag the PHY as possible handler of USB Type-C orientation switching + type: boolean + + port: + $ref: /schemas/graph.yaml#/properties/port + description: + A port node to link the PHY to a TypeC controller for the purpose of + handling orientation switching. + power-domains: maxItems: 1 @@ -89,6 +105,22 @@ required: - clocks - clock-names +allOf: + - if: + properties: + compatible: + contains: + enum: + - fsl,imx95-usb-phy + then: + properties: + reg: + minItems: 2 + else: + properties: + reg: + maxItems: 1 + additionalProperties: false examples: