From patchwork Sat Jul 20 14:19:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josua Mayer X-Patchwork-Id: 13737833 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 C12B2C3DA59 for ; Sat, 20 Jul 2024 14:21:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To: In-Reply-To:References:Message-Id:Content-Transfer-Encoding:Content-Type: Subject:Date:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=SZvsUHDZA8RNKvihZtEhaYsycYah4HLgLtgb2EkqA28=; b=y0r2p4GsSic29KAd8twK8z+Nm9 svg0QIRg9XzO93fQdLxQqCxPnjMQvFg6QyhNRCPagFuQQEdRcA8USZMYudpvp7HeE5OQUEIBjwK7l vZ9kr80DVR6wEJ5OeaePpGHjBgKu3uty69osz9tyligeIuAAJuhjyje1FtlF/WonfGKpmLasAKE3E 7FWfjFtqhOTA7x/M37t6+DkNOxxy//dbWKVhVGODDfUO6ao6VPWVzQWlgORtVLRkIDE6n1drzd4fN a85EUujJqrKVbg9siFGbrogTV8UiOib08mRT9LT6dUe0X2AiX5xvhNztYUJhMMaDl7sJic+Rdid33 PyTBvD8w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sVAxL-00000005EF3-1cqP; Sat, 20 Jul 2024 14:21:03 +0000 Received: from [2a01:111:f403:c200::1] (helo=DB3PR0202CU003.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sVAw1-00000005Dm0-1IpI; Sat, 20 Jul 2024 14:19:43 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=W3Y6nWn8ymm8DVc+Sb0qE6gn66V/5xo0m/hJPvAvnyVeZca5ED1aNfI3/xjlcxSm35+o4XoHToQuNQs+HSpZXnpChlVEiNNIY58+5/F1+Nt1DfDCS4601rSvNyCuidB3XnH3+hLa0EanFXFwsrKI/7arxFFoHOs3fhwHDBtT0YdDqaQ23B15VPkMZusFZlI2CjONLevliNYr8NIZ8PT5P5Aht/75YsI8+VaJv1W+3yqatE8a1Jzg5+RlyjnJFnYgRC1SGpUUpxzsRKXQMmunBFQdh4EzzJQ8GoLrF5ccsN/VhfRXO1fKe4PbJ4WSu/xQSrhbh9nucD96bKLIv7P+jQ== 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=SZvsUHDZA8RNKvihZtEhaYsycYah4HLgLtgb2EkqA28=; b=duKoQBCufpF+LewyiEuRHCVQO4M609i8z5Jvam+RrceLs4YQXNlzviuEyFJl+AvJi6E7dbUCG1g4yjIXTD1755/wIIBYQEvuUjF2NhflGqjHGz3bT5irljfD5B/v8qXMpDwRt22VQUbE+W6FLGlbTsvtLt7xAsCtp38v/EKwT52eX5xEzEBCXTcvnDew1Gq4c8af5yATFNnZs2hNquC4EpPostPUky1mCF3jDll1cS5Su82IdLptg1EBdAQEJ1FCTxRaHddmjMnRWIdm71L8Sax00DzQt4aOJnBjcZtlB7D8+ozvroBCQNQ3/Mlm7th3Y8MvSmC6m2ja7HbijwmlUw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=solid-run.com; dmarc=pass action=none header.from=solid-run.com; dkim=pass header.d=solid-run.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=solidrn.onmicrosoft.com; s=selector1-solidrn-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SZvsUHDZA8RNKvihZtEhaYsycYah4HLgLtgb2EkqA28=; b=S8XG5LlUMKz3aJQhdlnTdrAdYWlEVm5mDW86a1npimmbQLPbn9wMkRuPoOBy05sbOYcak9mwhpblNRzKHy16NBIfUJ8Fa//QvG9rMoGLUk9MopxrVuWwRpmYLLnUYBAniMqdWNXhUnT86GwwFHfERKXR8sPxPT2vUcuVHrmxo28= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=solid-run.com; Received: from AM9PR04MB7586.eurprd04.prod.outlook.com (2603:10a6:20b:2d5::17) by VI0PR04MB10299.eurprd04.prod.outlook.com (2603:10a6:800:238::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.16; Sat, 20 Jul 2024 14:19:28 +0000 Received: from AM9PR04MB7586.eurprd04.prod.outlook.com ([fe80::c04e:8a97:516c:5529]) by AM9PR04MB7586.eurprd04.prod.outlook.com ([fe80::c04e:8a97:516c:5529%3]) with mapi id 15.20.7762.027; Sat, 20 Jul 2024 14:19:28 +0000 From: Josua Mayer Date: Sat, 20 Jul 2024 16:19:20 +0200 Subject: [PATCH RFC v3 3/6] dt-bindings: phy: cp110-utmi-phy: add compatible string for armada-38x Message-Id: <20240720-a38x-utmi-phy-v3-3-4c16f9abdbdc@solid-run.com> References: <20240720-a38x-utmi-phy-v3-0-4c16f9abdbdc@solid-run.com> In-Reply-To: <20240720-a38x-utmi-phy-v3-0-4c16f9abdbdc@solid-run.com> To: Vinod Koul , Kishon Vijay Abraham I , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Russell King , Konstantin Porotchkin Cc: Yazan Shhady , linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Josua Mayer X-Mailer: b4 0.12.4 X-ClientProxiedBy: FR3P281CA0190.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a4::8) To AM9PR04MB7586.eurprd04.prod.outlook.com (2603:10a6:20b:2d5::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB7586:EE_|VI0PR04MB10299:EE_ X-MS-Office365-Filtering-Correlation-Id: b30e3525-f845-46bc-b70a-08dca8c6f761 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|366016|376014|52116014|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?MZmi+ysMFC+CNagJ2WnmAKnYcqU0ga/?= =?utf-8?q?CB/AVwZKgiZA60arpoPAT+kmRso0JQ50IUIeu05YPW1hKtsSFOkm8uE+30/dvMN56?= =?utf-8?q?hba40GrzO7PfrS1kzmcQx1Q4m+g1PSR/ljMObDTol6i5Z5fUHV8MNGE07YiKoZ8KW?= =?utf-8?q?4GU6nk2Cn/uCqcXafqFQI53W0L75qUa49Gc8nzEeRL7/gVTiWQPNgHQF6aVaeloUL?= =?utf-8?q?248lGKilj9U+OLGXHaooLPBfFcm1ahKJnqHBpMs3Z0kzXaFuVXGWJyt5D+OilYHke?= =?utf-8?q?k5M42iL+AxgsG/QEoHlhVCrg3+G6c1/Z4vurmjIUZOqzp0GaD3bvqT1KQFB88fUaQ?= =?utf-8?q?6MiVsG3yT5iyd68eG9+27gXFZCPJK6l4wPC7J5QYGIJmEsVkYIYQK6iR63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?utf-8?q?NSRC6vum7bIRq+2+p1I7jV24URCKsSPa1YhxOZlYQQNLdtXxTmsRcWITp0MkSK2nv?= =?utf-8?q?MnL2uGyk7P3deBp+5sQGMNmeboUkhEjAA4ZvdaXlDecGsZOk0cg5IVI=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM9PR04MB7586.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(7416014)(366016)(376014)(52116014)(1800799024)(38350700014)(921020);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?GZhyFg+BXbcuJQyx236x/xI4wNUb?= =?utf-8?q?kIIHH/JODiW/spdD6DuvVqUbNAFuKqRRm/b4MiyY10JxeKFEbgrYxMMwz1aWIL3wr?= =?utf-8?q?Cb2QqRqMEZrwDhm/MHO9bVfjjlIYJTx7rL7gp/DMJRbY6WzthnAQTw/qxeuLKAlHS?= =?utf-8?q?1yfQAJFwElXQn6PbJqOOxqPGJztHvchUUnnf3vtJuQubYVhla/t6EgFL/ONvvi6HA?= =?utf-8?q?HC/9KVWC2H1vxUmmgo2hb1nyqpMPpExtIv5wou+ZG9D4e6ONGbG5qAjOedvwDzLdd?= =?utf-8?q?w+SnNE2WIDHocnM++B2c+BglnotMtxics2lYmMdc8W7MnarJvKmyRqT97yzdKtEJ5?= =?utf-8?q?UwI1/eKmrZ9ua9msKdEbsZ55a42PUczaVbyH4xW+0sO1KcOOXbI3gmYkP/u8a1hWX?= =?utf-8?q?oujgROJgWWSHPAFwEQs3++70hIVKTnPq+CDE28tc/8W9cfCsab+3n4yrIVVJA7/me?= =?utf-8?q?oifK4GUO5T2pUqQxRABTgcL/9J5yDtj/09JzI4JJArs6tj8fjcFYwr3z8bOVKf+Nk?= =?utf-8?q?x3Z8LZiimCFFQSU2TUnn4Uw/dwiqSLyKWPcQUh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wYv/pmdqXIuQy6MSXlOX+oOk/KfV?= =?utf-8?q?lql3aEkLOC7mi/uQ8u/iaD4gIY+90wtrLEUtRu5Wdi/ySyg+pEjfzqik44jgQXdUz?= =?utf-8?q?7XKKx3pbxVBc?= X-OriginatorOrg: solid-run.com X-MS-Exchange-CrossTenant-Network-Message-Id: b30e3525-f845-46bc-b70a-08dca8c6f761 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB7586.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2024 14:19:28.7691 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a4a8aaf3-fd27-4e27-add2-604707ce5b82 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: LWPMMdShXJj6yQjlIC5CzI49SL7pd86O0Wwuxusk3uwDdxDPRW4pLLthisUeVxZIEITu2lQ/8v+vxEiowa2mlQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10299 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240720_071941_609907_5CA1569A X-CRM114-Status: GOOD ( 10.35 ) 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 Armada 38x USB-2.0 PHYs are similar to Armada 8K (CP110) and can be supported by the same driver with small differences. Add new compatible string for armada-38x variant of utmi phy. Then add descriptions and names for two additional register definitions that may be specified instead of a syscon phandle. Signed-off-by: Josua Mayer --- .../phy/marvell,armada-cp110-utmi-phy.yaml | 34 ++++++++++++++++++---- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/marvell,armada-cp110-utmi-phy.yaml b/Documentation/devicetree/bindings/phy/marvell,armada-cp110-utmi-phy.yaml index 9ce7b4c6d208..246e48d51755 100644 --- a/Documentation/devicetree/bindings/phy/marvell,armada-cp110-utmi-phy.yaml +++ b/Documentation/devicetree/bindings/phy/marvell,armada-cp110-utmi-phy.yaml @@ -23,12 +23,36 @@ description: UTMI PHY1 --------\ 1.H----- USB HOST1 + On Armada 380 there is an additional USB-2.0-only controller, + and an additional UTMI PHY respectively. + The USB device controller can only be connected to a single UTMI PHY port, + either UTMI PHY0 or UTMI PHY2. + + + properties: compatible: - const: marvell,cp110-utmi-phy + enum: + - marvell,a38x-utmi-phy + - marvell,cp110-utmi-phy reg: - maxItems: 1 + anyOf: + - items: + - description: UTMI registers + - items: + - description: UTMI registers + - description: USB config register + - description: UTMI config registers + + reg-names: + anyOf: + - items: + - const: utmi + - items: + - const: utmi + - const: usb-cfg + - const: utmi-cfg "#address-cells": const: 1 @@ -38,13 +62,14 @@ properties: marvell,system-controller: description: - Phandle to the system controller node + Phandle to the system controller node. + Optional when usb-cfg and utmi-cfg regs are given. $ref: /schemas/types.yaml#/definitions/phandle # Required child nodes: patternProperties: - "^usb-phy@[0|1]$": + "^usb-phy@[0|1|2]$": type: object description: Each UTMI PHY port must be represented as a sub-node. @@ -68,7 +93,6 @@ required: - reg - "#address-cells" - "#size-cells" - - marvell,system-controller additionalProperties: false