From patchwork Mon Apr 14 14:57:26 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lad, Prabhakar" X-Patchwork-Id: 14050566 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 36567C369A2 for ; Mon, 14 Apr 2025 15:09:18 +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=2guMmT+3y5bQU1ta7QMThWHvf/VZQuwq6kMM95kK3s0=; b=x+epVT8q+lrRDA 7HtUtQbawTLUl9KGeKWgSPGtFQACIBcfA1l2hSKdxMvnreRO33JYK6cGeja2is/EmQaCEncL+q+OJ mud5pQNebEC4lgxZEwrnq/wAFxaesvHLdstmlSvJOn2cns4p8KC40FaK+UOVdLi2O7oStKLdB6Rd7 PoIswNJRJYYHLwndhQLtaNSLujo1Fx3OvReA1oR/AGpIJeS7HWoGYb3crGcUl61E5XLotrX05sBPS B9386nF4jHRLpgnGjbkUtABmmuAmJ2DefHoOVK5ov690uWjKDdvEe/TXFMXgqj9wDuVpy/KbQdM/w beDrjwZCJUVW8C7x5zOg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1u4LQz-00000002Ynb-3aRV; Mon, 14 Apr 2025 15:09:17 +0000 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1u4LGA-00000002W6d-02si for linux-phy@lists.infradead.org; Mon, 14 Apr 2025 14:58:07 +0000 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-43edecbfb94so47966795e9.1 for ; Mon, 14 Apr 2025 07:58:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744642684; x=1745247484; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=P6LNIjk4+CQR7WYivVqEj1OTKKERr/w582iehRk3oAk=; b=VADqt26ff74RG4kXNGNbz2e2lSYyCpXj41scjDBnHjfXynLAXGIh3ZuHqCER2ODMrS fDY8xayPJ7Fp8yHMz3bJReuvYVqKXZrxQG5nANjxpdu/Rs5WcdOii1AZlU5oByxbugQx coaJycmz7W/0CTyNlEu68e3iO3CCcMgo7qbV+1FBhh43f61KPCBa5rJRnI4c9T+p3DHL ZwOWA18mt/CIwEQEUKtdj1X8amjRsnZwj9tZNEAgHHutf2/Tfg0sDK0NIK8clDLxgfZa 6ceK7hnkDmIb+En75HLcIy6z01Kc1qp7aOd2nkba7SKQlCT/z3jwA+fXppREWaovwon4 Lq3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744642684; x=1745247484; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=P6LNIjk4+CQR7WYivVqEj1OTKKERr/w582iehRk3oAk=; b=rGH9O9GjPnyfK0vgf2RrWts4NSS6YMNefaKx4zQVdALaWPq/TuWCm2Figq2cQBoa5l RvdINGUCytiFzfiKsssK2m8tI/IwvmxIXzuYbgl3qM7/8gQpNaNYfhTVutNbqxdgK9dx VHIacFYT9I6afjmn8HOYEgc/8U50PSBWisn8FV7T1W1rT/MJU/jxDoVAczKasB7C10Wo PslZKveqFJclY6U1YM/l06Woe2Z9CvlBjltYHJdu0D15zB1tZbFz3SNDm+z1yafwiKFG MhSnc66y8Hgi1KhRoW6JJwGfoa250TaDmzp9+0pOBgNv2iuO+ft00DBrAB98vKAFAy+a 1skw== X-Gm-Message-State: AOJu0YyxkRzRlL7dXfkERTzm8y/E37iG0IIoOs0MwJYZkpdSwp8ypXc7 mljeMkCQbH6+i8rF8CMeqHSNYgZ5kaBYfvf0D51uDj9WNXsLmiJr X-Gm-Gg: ASbGncsKxmeTgXrOCddK5ZeOuBXi01WY9p0BSnTXjK/zwiXRLeyGZF9coVRxaEsije/ CqgJU4wWMDW4hR6X486PDt0eDWJy1zTSp3jVi9UpB9JTw3ol54Ctru6kKVHkTAsfBwNoZvF0cgR 5UQdwuwSQztogtIii9z56aVtTiVS3CGD2fVGlVFTFjR/c5yPwly+eoPTnD7DPGVAak6YmgeFrqD Fd9GwjDXRX2i2g7bCc8P+wqZ2/NAGMxdOJn9akOp4iCn2J/LGIhPp+l6Gd4I/7R58UwUKE7gb88 98XT17dEJqRrsGAVDp0GMu3/fM85y7ETjeiW/FluBDKGUOSgwtK3Bex1Hs0tVNf5 X-Google-Smtp-Source: AGHT+IEPz5C0J8GbuZJl8OnkFachiw/6N2wZesYOBPtnyjvfbgxyv2oJ2wOoDuHtbMr02fQDOmG88Q== X-Received: by 2002:a05:6000:18ac:b0:391:2d61:4561 with SMTP id ffacd0b85a97d-39ea51ee713mr9265668f8f.6.1744642684379; Mon, 14 Apr 2025 07:58:04 -0700 (PDT) Received: from iku.Home ([2a06:5906:61b:2d00:eb55:397c:6c6:e937]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-39eae96bdf9sm11067041f8f.22.2025.04.14.07.58.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Apr 2025 07:58:03 -0700 (PDT) From: Prabhakar X-Google-Original-From: Prabhakar To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Yoshihiro Shimoda , Geert Uytterhoeven , Magnus Damm Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Prabhakar , Biju Das , Fabrizio Castro , Lad Prabhakar Subject: [PATCH 1/4] dt-bindings: phy: renesas,usb2-phy: Add clock constraint for RZ/G2L family Date: Mon, 14 Apr 2025 15:57:26 +0100 Message-ID: <20250414145729.343133-2-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250414145729.343133-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20250414145729.343133-1-prabhakar.mahadev-lad.rj@bp.renesas.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250414_075806_058080_7ED8DA82 X-CRM114-Status: UNSURE ( 9.08 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org From: Lad Prabhakar The RZ/G2L family requires two clocks for USB2 PHY, which are already defined in the DTSI files. Add a constraint in the DT binding document to ensure validation with `dtbs_check`. Signed-off-by: Lad Prabhakar Acked-by: Rob Herring (Arm) --- Documentation/devicetree/bindings/phy/renesas,usb2-phy.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/renesas,usb2-phy.yaml b/Documentation/devicetree/bindings/phy/renesas,usb2-phy.yaml index af275cea3456..f8d15f239b18 100644 --- a/Documentation/devicetree/bindings/phy/renesas,usb2-phy.yaml +++ b/Documentation/devicetree/bindings/phy/renesas,usb2-phy.yaml @@ -107,6 +107,9 @@ allOf: contains: const: renesas,rzg2l-usb2-phy then: + properties: + clocks: + minItems: 2 required: - resets From patchwork Mon Apr 14 14:57:27 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lad, Prabhakar" X-Patchwork-Id: 14050569 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 5ED19C369B4 for ; Mon, 14 Apr 2025 15:09:18 +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=bMr6OH0B/JwNjxtcsQfpPFy72UXupkQCwrL4kfRbAn0=; b=pUVW099K7qqHjI daTMkz8Nci5MzpQ8qjuSgLxY+Hk53I2huFp4HjjW9VnmLSoYo9cku+rCmUjm0kp2Nrhp75Cr0JL0R lIS3zC0UlmhyxwQMt9phrZIXB1CyM9sz5lSovFzOQroq+oawDhk1ZrP9JHkEVHkuiliEs1hmw6OEx HiE4EF8QnYbKW34XQL32XauaHdsZ55x5Avl07rTiq/bi9p6/s8G/nRCa6rfkpxGdmwuaxc3L3OoGI wIPqHEu/3vi3zxJ+tYoXNNcNn5WIfJbQvf3D2QclotKRfHE8+rJYyhZMgeFjEE21xHgImdZEFNsuY FdAbcYP0v15cBPMuHgJw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1u4LR0-00000002Ynq-0Y4Z; Mon, 14 Apr 2025 15:09:18 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1u4LGB-00000002W7D-2J4a for linux-phy@lists.infradead.org; Mon, 14 Apr 2025 14:58:08 +0000 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-43d04ea9d9aso22134155e9.3 for ; Mon, 14 Apr 2025 07:58:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744642686; x=1745247486; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=h3SQi5bbVq7b0/N9UTMk42Mwa8HLJXYUGZ8y/oALcAE=; b=mF9faefK9w6T+u9V9zVLK9MOz1d3fIcNubJwbD7xN9IRyp0HDV02MtGZOjYvYcT1rg wte5eZBaPACsQgXrE/21XKVNMVlQXqDqnfL82z1Wptvgpkw08aokdaloTMBMnGvjVFhO QM4xW8oi1/q1yUuOnxYqV7GYcqte17gkWpPJws8CvDlm4JsZ4av8dDGZKVWB5guNaHGr /1jzRsdPl+SpkdQ7bMFQkARvkvVy0pZqU5/X6Nha+odRBYWA2Rwx7G5irY4pnjFk2xzN uQS3QCjM7EjIsN8TULsJrKbSokVF6UdEQ4r4+8ZaLo4Uoo9cESw/hQZ4p2eM4k8lSXZX /5rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744642686; x=1745247486; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=h3SQi5bbVq7b0/N9UTMk42Mwa8HLJXYUGZ8y/oALcAE=; b=VLIMehsN/HY9QFIAkFxkeKQVmitvVAa/MxQ0q1Tl7AxSJE1BQEhNR/bNr+IXipwRL5 qKAxsWpX4pQ9V+cfitKqGAh2IYSlLXwIgfrcz9jk/FuB+/2noIogjnM7nnvMUKZwaFuo MwKeqDRQVMu5uP71GUgJkAZzdK1YZnFs8QXyzypC64UUYn3+Hn2UqArzqoiEJ2Htzeik tkIh+xRfk7Cw2ZMiuowKsy9Mbnpx28izGvl6q51yrLArQP4PBZrX4O3nyHmkyisjiuH6 x4MDjJXJf3fzOXvWYnmJmApq8GfiG8OzTRbn9uqWETV5b6RxUR+6XaCyRmhT+PKD3v+i T0dQ== X-Gm-Message-State: AOJu0YzGrOOy8iQGR1eiM1y2D3VTK9dZNDH21Dm0b4DN905LFECLvV7A idvaDwy0pLD+QSjCP1ktSvbavHdPAuZaIk0VstFC91oYzsvKG4Wl X-Gm-Gg: ASbGncuXq8MLgaH1l2xYc0WTqjq1WsPRWk58oEtd3qFn4hrBIKncIW/ZUvbcvioCcqj 7pcXTugzuvD5VwsH2aW7H0OFbQjBdY6Kuw+QCKBNlEaHSR7em11zwDVvaYHr21wMHe4dEKmhl2T CROX6sfzSCPsUYeTQFLsgK6LzSB0vfj/3CYtwgKNIyuTiEUcGc0pP1cNoYi7pGczb+2BxOKwyvi nFmfuiF27fu+xwk7GI1mQliCrGoNPxXxO+ZeSRlRYUf0QKF+9o5/WTJeVY10WzCvSfAWh8hlcfL GVNj1W5AaL+gE2yghaTY03owcfj87Aca0PGiVhwd/Ht69ggCfGS4YVY15GHSqnis X-Google-Smtp-Source: AGHT+IEDsZPPhDuruTrdFcyXN9YqZckypb/C2JUNrPicgL2MaB2YrYVbt8z7U7orWDYJVrRxUv2rSw== X-Received: by 2002:a05:6000:2d09:b0:39e:cbca:7161 with SMTP id ffacd0b85a97d-39ecbca727amr5436112f8f.10.1744642685419; Mon, 14 Apr 2025 07:58:05 -0700 (PDT) Received: from iku.Home ([2a06:5906:61b:2d00:eb55:397c:6c6:e937]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-39eae96bdf9sm11067041f8f.22.2025.04.14.07.58.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Apr 2025 07:58:04 -0700 (PDT) From: Prabhakar X-Google-Original-From: Prabhakar To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Yoshihiro Shimoda , Geert Uytterhoeven , Magnus Damm Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Prabhakar , Biju Das , Fabrizio Castro , Lad Prabhakar Subject: [PATCH 2/4] dt-bindings: phy: renesas,usb2-phy: Document RZ/V2H(P) SoC Date: Mon, 14 Apr 2025 15:57:27 +0100 Message-ID: <20250414145729.343133-3-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250414145729.343133-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20250414145729.343133-1-prabhakar.mahadev-lad.rj@bp.renesas.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250414_075807_595837_9D41E39E X-CRM114-Status: GOOD ( 11.29 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org From: Lad Prabhakar Document USB2.0 phy bindings for RZ/V2H(P) ("R9A09gG57") SoC. RZ/V2H(P) USB2.0 phy is similar to one found on the RZ/G2L SoC, but it needs additional configuration to be done as compared RZ/G2L USB2.0 phy. To handle this difference a SoC specific compat string is added for RZ/V2H(P) SoC. Like the RZ/G2L SoC, the RZ/V2H(P) USB2.0 PHY requires the `resets` property and has two clocks. Signed-off-by: Lad Prabhakar Acked-by: Rob Herring (Arm) --- Documentation/devicetree/bindings/phy/renesas,usb2-phy.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/phy/renesas,usb2-phy.yaml b/Documentation/devicetree/bindings/phy/renesas,usb2-phy.yaml index f8d15f239b18..2822dce8d9f4 100644 --- a/Documentation/devicetree/bindings/phy/renesas,usb2-phy.yaml +++ b/Documentation/devicetree/bindings/phy/renesas,usb2-phy.yaml @@ -16,6 +16,7 @@ properties: - enum: - renesas,usb2-phy-r8a77470 # RZ/G1C - renesas,usb2-phy-r9a08g045 # RZ/G3S + - renesas,usb2-phy-r9a09g057 # RZ/V2H(P) - items: - enum: @@ -105,7 +106,9 @@ allOf: properties: compatible: contains: - const: renesas,rzg2l-usb2-phy + enum: + - renesas,usb2-phy-r9a09g057 + - renesas,rzg2l-usb2-phy then: properties: clocks: From patchwork Mon Apr 14 14:57:28 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lad, Prabhakar" X-Patchwork-Id: 14050567 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 AD3B1C369B9 for ; Mon, 14 Apr 2025 15:09:18 +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=6XycNKSAc52whKBgVXqRisLeINN3KkA5WuJJmadKkus=; b=neJ9RyXGJGw0bu igmNd82j40Pszw8A1EfiqG4EOjHxpsLmG6+rYb9014Khrbwfb3iVLKMcF4pEV1/qhFeKQ0YfbleXA VcdfbZnfczckTNrQz3WkUCWNslS3iKMAB8ljmCMjgc/JP0Wyh+eFwMQV8XVqbysLeulgcsRs+2tP3 OQsB6i95JzJgXReNavLH1kR29sp/GlUihDA6PPNCf+qrMk/iRGVAsAZ9xE6Vs6oB+7N4IiyWM5YDK W8m0piFwc2dl5/f3Vt64Sa3elqOunOX1ykU6W2wEYhfYfegbbLn9dKT3AX4/qN6vU4XZ8qGmHC7c7 E+TUmfY8EnPxRQBLeddw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1u4LR0-00000002Yob-1t3Y; Mon, 14 Apr 2025 15:09:18 +0000 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1u4LGC-00000002W7S-1cFl for linux-phy@lists.infradead.org; Mon, 14 Apr 2025 14:58:10 +0000 Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-3914a5def6bso2574200f8f.1 for ; Mon, 14 Apr 2025 07:58:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744642687; x=1745247487; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=DGq8xiqXi81gFjKnbUkYxKmJhAAFdXbyWQx1OPU+kwc=; b=cJ7LfWUL6FMBYbPbnaQrAAbPt1TelGdkRIK9oQlDvX9bQcbg6g+r4cSs+3lJNx2lNQ jDCLLr1gAansIWwNYqAnEFTxOJWbHhkoX/bi3fD17MhhCY+C3/qlWNG/TWa19U/LAWs5 tIPqauWRAyWQieGVJL9offRFX02FSwYmN3bcOxqDNQyQ+4FXcCvncJ3ID1WKhd6UbRd3 ZXrr4baLbLJzPNAgFHozDP/L0NmhYGdwIZxUlfPCmndGAG4Aj/nQGMNOHA32g0QYFF3o WDWos/gOxyPBEoPddTeA5hxXazHJREyQyOgcGwQrWB2GuXxVIFJe52RosZ4ewG4vKuu3 pHGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744642687; x=1745247487; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DGq8xiqXi81gFjKnbUkYxKmJhAAFdXbyWQx1OPU+kwc=; b=DLvCjUNcGmbmCAnIjrC9ZWnK5HVD+UcFQH7DwNuw6O7+KezhyMZbyLzVTgYZ3mHogT dsZHMPpx3UCZm7eX1BRLzIlqxhBYokQ0mZDFHKNo63Z43+lv7noBrgLxDKv5Vu1LYBaF H91AhOzz3QswjEmXoIHFgLEdIwBkM1kEXWW3dCxsHTjEmNy3/j1QHlfJ9it6Xcr7C6W3 tZWsIZPE2VTVpCxL77wy50XK8jb1dD1O9NwGgfn0ZV/MF3HwMzovwW9rnOCKzpDhCXGa NRB2Za3W1iSNet+GiTjDfSd4HAHbs4PK3x5haKIAFqnsU8qHF/6ELNXS1/KRSTDQIFKa T/NA== X-Gm-Message-State: AOJu0YwtM9drWBJBAWeMMy3foBn4F5UoLODV4v1OuEcQ1cWsZpmzaOei 7Anky8UmyeHciDRvFdQ+7OFfuVXmd1KHu6oqsChqEFe1tEhFh+xw X-Gm-Gg: ASbGncuTQ1SItFQEtEP+7pih60pz5bQAOKB3AmwEipfO0J2IcRTLvfqegRus5GqiJhM qVYkus3u/NNc2hgKLuWpM/SG6bJzltGmSBw7v7ka+lY509ZLIDrXOaS22k+4TC0eDyKYAY2aQXh gINdeDgbRPkSkAEDaznUKKaWLdSqzfWZOByC01p5LsrtfCurw5T/Hx9CJMSRYDA30EOKjalkqyY KzmmT49aL2XNld1z9MY1hrxtHy9jARWZlLeVx6Wx3ccaYmWfsHRi8q9BN3Gp+hfq9FKibNfwS1j QRtiZCRnLXqwb/mdXP5eUyDKiKi9HOI9rHqoiPgCj0Q38q9nRJi34f1wf39qCvIK X-Google-Smtp-Source: AGHT+IG7PSvp9NkoMogYg0HCjjGWaWgg8x773MSh4hDMNsCBCViD2qh8zvbkUHFdVV7cqTSvgz9Yrg== X-Received: by 2002:a05:6000:210b:b0:39e:cbc7:ad2c with SMTP id ffacd0b85a97d-39ecbc8a256mr5864365f8f.25.1744642686335; Mon, 14 Apr 2025 07:58:06 -0700 (PDT) Received: from iku.Home ([2a06:5906:61b:2d00:eb55:397c:6c6:e937]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-39eae96bdf9sm11067041f8f.22.2025.04.14.07.58.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Apr 2025 07:58:05 -0700 (PDT) From: Prabhakar X-Google-Original-From: Prabhakar To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Yoshihiro Shimoda , Geert Uytterhoeven , Magnus Damm Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Prabhakar , Biju Das , Fabrizio Castro , Lad Prabhakar Subject: [PATCH 3/4] phy: renesas: phy-rcar-gen3-usb2: Sort compatible entries by SoC part number Date: Mon, 14 Apr 2025 15:57:28 +0100 Message-ID: <20250414145729.343133-4-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250414145729.343133-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20250414145729.343133-1-prabhakar.mahadev-lad.rj@bp.renesas.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250414_075808_423424_4E350993 X-CRM114-Status: GOOD ( 10.72 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org From: Lad Prabhakar Reorder the compatible entries in `rcar_gen3_phy_usb2_match_table` to maintain sorting based on SoC part numbers. Keep the entries ordered numerically while ensuring the existing generic compatible strings remain at the bottom. Signed-off-by: Lad Prabhakar --- drivers/phy/renesas/phy-rcar-gen3-usb2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/phy/renesas/phy-rcar-gen3-usb2.c b/drivers/phy/renesas/phy-rcar-gen3-usb2.c index 775f4f973a6c..10d1a89558be 100644 --- a/drivers/phy/renesas/phy-rcar-gen3-usb2.c +++ b/drivers/phy/renesas/phy-rcar-gen3-usb2.c @@ -606,14 +606,14 @@ static const struct of_device_id rcar_gen3_phy_usb2_match_table[] = { .compatible = "renesas,usb2-phy-r8a77965", .data = &rcar_gen3_phy_usb2_data, }, - { - .compatible = "renesas,rzg2l-usb2-phy", - .data = &rz_g2l_phy_usb2_data, - }, { .compatible = "renesas,usb2-phy-r9a08g045", .data = &rz_g3s_phy_usb2_data, }, + { + .compatible = "renesas,rzg2l-usb2-phy", + .data = &rz_g2l_phy_usb2_data, + }, { .compatible = "renesas,rcar-gen3-usb2-phy", .data = &rcar_gen3_phy_usb2_data, From patchwork Mon Apr 14 14:57:29 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lad, Prabhakar" X-Patchwork-Id: 14050568 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 0DDDBC369BA for ; Mon, 14 Apr 2025 15:09:19 +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=40Oqx4NmgTtacaGm4Q4OYtsW0HUXdTl8Uk2345hhwXA=; b=UnuTCcBAEVs9Il YNzbjsL20213lx5wQerC4iaZXMn2DSzOn2Ay05yEd0zwOfElH5BNWWa/Dm4d6sLV97BTZp+BzoHpk Ag3OaYG6+PXSnP83JvNAPcF2/pvpgtTVkrBK+cnCDxDd/wtMgEy7mnVfd7S833d5qJ9kajYVBgbEq W4ZexFjykBWdoxo3G+ebUQZFoHoyni12wHLjWZBrKhOEulf4o6abDAKOhVqBTtAlN0kjKQwVWApjx uLKVxQCI7kMjoiWFou//wsD+8soCEAzTKPDWbUrGHY1mZgI+F/qtokmzM9kPzvbVxykwE7/Q9bL0a vCR8hW9qXgCqkVFrNkBw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1u4LR0-00000002Yp5-3K5W; Mon, 14 Apr 2025 15:09:18 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1u4LGD-00000002W7y-0gLP for linux-phy@lists.infradead.org; Mon, 14 Apr 2025 14:58:10 +0000 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-43cf3192f3bso46668705e9.1 for ; Mon, 14 Apr 2025 07:58:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744642687; x=1745247487; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pM2NKx8obz4I24MPi7gN8busyEmsDDD7XKGT8uK5+V0=; b=aT727L4W1jOCTaBsX0EPMlVm4oCwaCoiQkYv85QXXBsQlIIEnnuLRuC5GntDJmDF0x feoSFHp2xJvc3OkYWIKJT4J1ILpJkpTpjyMM9BV/WtdZQUTEii1pIqGq5xj1llD6ok4w kRz/h7SKSKyA0fymVOzwu94tRELywSmaEZWNbYqxXJGrhcUUoGmmJeaYteSmesidLynv bpakyk5qYJIZdg12yw5lGy3IwOa9ynOur6Q81RSJXzy8nwsyNB+unRhyktrEQlOTrUIi DC6X9idVAI0oWmC5Sl2Ghi3LeEQaKsmsdOcR3f7Dgd0lZBiK2IpYwxlJDP1fWy51vAeW 409w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744642687; x=1745247487; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pM2NKx8obz4I24MPi7gN8busyEmsDDD7XKGT8uK5+V0=; b=hjrnTK2V/reTLVzTg/ZQ5O+Ys3D02Pa+sc7Y7UrLcY09mBkRrHVA6eFvXn0mwwNQ5j x9PVCX2UVCduCAlBomhXTxU6n4ZTMlaRbe6geANu7hJGG7SsnzvbZIBAeVDIdJK6XDlc 7f9hdusCAzswCzB46I4t+tjElLVrnJrI+hu9icdsg01x1dXQ4urmkhET856yh24mbovX ppxSPMuJcfGz9ftwG1kPbBw705lFBMa9vPrrTwXKx8F52y9HRD9HUqDHGRRepA5ImBY0 XwZarimAVyCOcjeegZ9ig6anfcLkjIrxV0Lu08VaKY+tKFpWNkKSOvHxXZe6BxoqZMsv q6aA== X-Gm-Message-State: AOJu0YxfsluXBFhX0EoYogVxFkyk3kqmP01hsk+7LId2W3BgUyg56qfC ofBuCY6DuKSW6lp0GboMfe6ljVjPPunvOeSgAKcF9LiZEV0dYsT7 X-Gm-Gg: ASbGncun1BVut5IAhNJuyin6G9G8lb1JHMVNs/Gfj2bok3dWH9Ci0FoA754mr5zHxLl UbBfNqf04Z+EHea+ql8awiIk5dS2C15crsYAwRolg/XqPyhXxzRsMeGAMAkNRIJIlg2p8YhpHBt L5rFf5nRfEojqj2DCp5tdCK8ThsOEaXkHMmiHg/24HFlbaruzWfSfwMwW/FmB6qwaohmSimbvvp M6jIbDapXrsO7LvCWm82dp91Z984C+APcNW6UNH6aqaphcky8rEJC16ujmkVWxebRn1GLoMDJf4 HHR5pK7sTMvNx3a6DDHxbQu4TRGVQCzB+RYkEZmYTKcQdqByT2o67wc1pwIROZh/xvhll71zQFg = X-Google-Smtp-Source: AGHT+IFRZJWL166MU3lJcPNUXJ4htm76qJh+hKGtgYCkfK0g1Ix3ihH1Xoda33pQ2MGxMW6aQNp/2Q== X-Received: by 2002:a05:6000:400a:b0:394:ef93:9afc with SMTP id ffacd0b85a97d-39ea52017ecmr9812334f8f.18.1744642687246; Mon, 14 Apr 2025 07:58:07 -0700 (PDT) Received: from iku.Home ([2a06:5906:61b:2d00:eb55:397c:6c6:e937]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-39eae96bdf9sm11067041f8f.22.2025.04.14.07.58.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Apr 2025 07:58:06 -0700 (PDT) From: Prabhakar X-Google-Original-From: Prabhakar To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Yoshihiro Shimoda , Geert Uytterhoeven , Magnus Damm Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Prabhakar , Biju Das , Fabrizio Castro , Lad Prabhakar Subject: [PATCH 4/4] phy: renesas: phy-rcar-gen3-usb2: Add USB2.0 PHY support for RZ/V2H(P) Date: Mon, 14 Apr 2025 15:57:29 +0100 Message-ID: <20250414145729.343133-5-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250414145729.343133-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20250414145729.343133-1-prabhakar.mahadev-lad.rj@bp.renesas.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250414_075809_202436_2785FC6B X-CRM114-Status: GOOD ( 16.74 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org From: Lad Prabhakar Add USB2.0 PHY support for RZ/V2H(P) SoC. On the RZ/V2H(P) SoC we need to configure the UTMI to a specific value as compared to other SoCs (which doesn't need configuring it). Signed-off-by: Lad Prabhakar --- drivers/phy/renesas/phy-rcar-gen3-usb2.c | 30 ++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/drivers/phy/renesas/phy-rcar-gen3-usb2.c b/drivers/phy/renesas/phy-rcar-gen3-usb2.c index 10d1a89558be..867f43132b7a 100644 --- a/drivers/phy/renesas/phy-rcar-gen3-usb2.c +++ b/drivers/phy/renesas/phy-rcar-gen3-usb2.c @@ -28,8 +28,10 @@ #define USB2_INT_ENABLE 0x000 #define USB2_AHB_BUS_CTR 0x008 #define USB2_USBCTR 0x00c +#define USB2_REGEN_CG_CTRL 0x104 /* RZ/V2H(P) only */ #define USB2_SPD_RSM_TIMSET 0x10c #define USB2_OC_TIMSET 0x110 +#define USB2_UTMI_CTRL 0x118 /* RZ/V2H(P) only */ #define USB2_COMMCTRL 0x600 #define USB2_OBINTSTA 0x604 #define USB2_OBINTEN 0x608 @@ -50,12 +52,18 @@ #define USB2_USBCTR_DIRPD BIT(2) #define USB2_USBCTR_PLL_RST BIT(1) +/* REGEN_CG_CTRL*/ +#define USB2_REGEN_CG_CTRL_UPHY_WEN BIT(0) + /* SPD_RSM_TIMSET */ #define USB2_SPD_RSM_TIMSET_INIT 0x014e029b /* OC_TIMSET */ #define USB2_OC_TIMSET_INIT 0x000209ab +/* UTMI_CTRL */ +#define USB2_UTMI_CTRL_INIT 0x8000018f + /* COMMCTRL */ #define USB2_COMMCTRL_OTG_PERI BIT(31) /* 1 = Peripheral mode */ @@ -127,12 +135,14 @@ struct rcar_gen3_chan { bool is_otg_channel; bool uses_otg_pins; bool soc_no_adp_ctrl; + bool utmi_ctrl; }; struct rcar_gen3_phy_drv_data { const struct phy_ops *phy_usb2_ops; bool no_adp_ctrl; bool init_bus; + bool utmi_ctrl; }; /* @@ -472,6 +482,14 @@ static int rcar_gen3_phy_usb2_init(struct phy *p) rphy->otg_initialized = true; } + if (channel->utmi_ctrl) { + val = readl(usb2_base + USB2_REGEN_CG_CTRL) | USB2_REGEN_CG_CTRL_UPHY_WEN; + writel(val, usb2_base + USB2_REGEN_CG_CTRL); + + writel(USB2_UTMI_CTRL_INIT, usb2_base + USB2_UTMI_CTRL); + writel(val & ~USB2_REGEN_CG_CTRL_UPHY_WEN, usb2_base + USB2_REGEN_CG_CTRL); + } + rphy->initialized = true; return 0; @@ -589,6 +607,12 @@ static const struct rcar_gen3_phy_drv_data rz_g3s_phy_usb2_data = { .init_bus = true, }; +static const struct rcar_gen3_phy_drv_data rz_v2h_phy_usb2_data = { + .phy_usb2_ops = &rcar_gen3_phy_usb2_ops, + .no_adp_ctrl = true, + .utmi_ctrl = true, +}; + static const struct of_device_id rcar_gen3_phy_usb2_match_table[] = { { .compatible = "renesas,usb2-phy-r8a77470", @@ -610,6 +634,10 @@ static const struct of_device_id rcar_gen3_phy_usb2_match_table[] = { .compatible = "renesas,usb2-phy-r9a08g045", .data = &rz_g3s_phy_usb2_data, }, + { + .compatible = "renesas,usb2-phy-r9a09g057", + .data = &rz_v2h_phy_usb2_data, + }, { .compatible = "renesas,rzg2l-usb2-phy", .data = &rz_g2l_phy_usb2_data, @@ -763,6 +791,8 @@ static int rcar_gen3_phy_usb2_probe(struct platform_device *pdev) if (phy_data->no_adp_ctrl) channel->obint_enable_bits = USB2_OBINT_IDCHG_EN; + channel->utmi_ctrl = phy_data->utmi_ctrl; + mutex_init(&channel->lock); for (i = 0; i < NUM_OF_PHYS; i++) { channel->rphys[i].phy = devm_phy_create(dev, NULL,