From mboxrd@z Thu Jan 1 00:00:00 1970 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 7D5E9CCA462 for ; Fri, 16 Oct 2026 08:57:00 +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:Cc:To:In-Reply-To:References:Message-Id :MIME-Version: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=bFo7Rx0pZD8IzHtHsre9zp6c9FSwm0KcALffFAI9G9k=; b=qF2giO7t6Aj/jx dSGa9uT90TWPN8FBY16IWxrSmv2tbnSPsJdJzxqLfqQyIegm+/2VeWIuV5vipx4t/YpTDVZzbioGc gnXnjg1PgsgOqg9okhZGmqu0rktpfWlMZEbsac5G3xh0FVRwqDVn1uQd1qFohUogIUDa3D48Hs+ak 9zMeCTIzJ5q9ibw3QkxY3EpY8f5C7EURXnFqwh2Hs0aPzGpxOL5LItXaS32fCGekZdgH8rXvjeiIz 2TrIpu1bbap6EGiTgucZpr4iUSnVt478dF8Y1YfiBpfUXiJJQVGdYdOacn6OL+aTBCLGTf2DKA4Ct daYGNQy02iRLZn23UQ7A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1xHdkF-00000002O63-0d97; Fri, 16 Oct 2026 08:56:55 +0000 Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1xHdkC-00000002O3s-1Jf1 for linux-rockchip@lists.infradead.org; Fri, 16 Oct 2026 08:56:53 +0000 Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-cc785ed8aacso343431a12.2 for ; Fri, 16 Oct 2026 01:56:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1792141011; x=1792745811; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=4t98YFhToVmXSdqpvYlx+jh33cXkNHD7dPs1AUtblco=; b=b2Wr8fHP1/ARpXnQO1CI99PtwGhY5z+RgnlrCkXgys4RaqrO3Vm7d6AKvJU1ZAKMcV 1YfVrWWWYnnK1KglX1JbYtSk6iS6jy99QXRoQJ+9vgJqIpyCrZVJw00gW5mdJdN0xzN9 WmJHOZO5T0Lq+tIP79WPkNSwM4TFBGy8ntPgfiumXX9WJlbv5w8VzO3qfOCcJwNFH55w V9KIpiVENDVSdmQA7S4J4SfZWyGirTNiYlZCJ1JIIebj1B2XZ0rEoU6t0AwyV61c/Rpp UgObuDWdGrwSbJoF/k88467yJWd7NOuh3pfZU2ycQuRmrLJzDo6n3qf9WKqwtkzTJD6/ VcAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792141011; x=1792745811; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=4t98YFhToVmXSdqpvYlx+jh33cXkNHD7dPs1AUtblco=; b=OJhgERGSKCHRf+plNguUq4XH+O/zFev3pG4NVokpjpkMey1S8RLHtfORiSgickq+g7 JEEgj5dU6mOSW8cVihcJMryuCOIABAyKLK8kEJxp+UCGm4zd1TDJ5rCPjazCk/VM3u01 kZ8etOH8bHU91BYlLwfd78gcucaAhQK2Q7/FeNMQroA2hUr2oGbCj0gfCYYE+Bgxvu34 q65LIlARZHjzkOldnPmszAccIG8PYp0ZITBlV7Noy5XelZ2ZSw74HV0mIHIt1NF5KqmA wBnBl20rgZmP600AGmgqoYTzvPovYAtOEVg+B+0FJBe8kzizzknQXWFbpqaTFewnlMIe 46YA== X-Forwarded-Encrypted: i=1; AKwUvBxvss0Etbtxo0aZN+vYOo+IzXjzyUDvNAvNhnxu3jKFEJkklnM4RfUjQPNaPDd1DC++G+Q0Q+bYyYNRp6asRQ==@lists.infradead.org X-Gm-Message-State: AFq9FYIks9/6HS9Aco0wgWBMFzH+m4x6p0dinVTY48KKlVPtSVNNjvhZ wo8SHH2F6WFxPKGP6CNQCtuh+0WzRCoPZaNJMuIAknFLaZnus6UHkBiR X-Gm-Gg: AYBFou0cUL5ONtZhvz9VFQQEdWXAApAo4hNUhhdcfF6kpTQ9mDRI/RLmESyqNsZQ9sn bNU2MH7eJj55p2fVBmqMH6ik4phYeQY5ZTBATL5bH6eumeQdXG/LD+KJg41x7dWGsCGijUCdGK2 nIIpKmkQzqJKplkP1l57uFcCoylQiOjNCnRPVPPte6mUhg6/pTXdKX5Jw4DvnK/86F3iz+bbSsu l1BEooeZZnMrxduHJT9FwgaPXw+spNXnzHDsp5DXOq77Qe3+PPL9eljWzHsjPvWFnmLaM2jFoiD r9//Mqgqu9zsNNW9vtAfPufLqZvWfMMJDi3VQ3psekOY8vVo4N1oB1MRDrlz4TrKmP7hxlePXFp v3uGPc0GgEk0LV3fZ0tDj7DMxFmXKsEMywvaN2OA+o7nUS2PmCSMMOjM8nDhm/dt7sz+5orOQoX 6fHVclLHWztxPlSQIWNUKw600+eB8SYnK+7pqf0h1CQKhH3fgsb8tMZghOrRs1wpDEzuF3kQs47 CHdRfb/W2dRdhJrzavuqKOXHHCI7g== X-Received: by 2002:a17:902:dac2:b0:2dd:b95a:e1db with SMTP id d9443c01a7336-2e8429a9f89mr307105675ad.3.1792141010736; Fri, 16 Oct 2026 01:56:50 -0700 (PDT) Received: from [127.0.1.1] (211-23-39-77.hinet-ip.hinet.net. [211.23.39.77]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2e97e882a20sm6971025ad.62.2026.10.16.01.56.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Oct 2026 01:56:50 -0700 (PDT) From: Jason Yang Date: Fri, 16 Oct 2026 16:56:35 +0800 Subject: [PATCH v5 1/8] dt-bindings: phy: Add PHY_DIRECTION_TX/RX definitions MIME-Version: 1.0 Message-Id: <20261016-dcphy-rx-v1-v5-1-e63b49eabe2d@gmail.com> References: <20261016-dcphy-rx-v1-v5-0-e63b49eabe2d@gmail.com> In-Reply-To: <20261016-dcphy-rx-v1-v5-0-e63b49eabe2d@gmail.com> To: Vinod Koul , Neil Armstrong , Manivannan Sadhasivam , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Guochun Huang , Philipp Zabel Cc: Michael Riesch , Sebastian Reichel , Bryan O'Donoghue , linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Jason Yang X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1792141002; l=1157; i=jason98166@gmail.com; s=20260721; h=from:subject:message-id; bh=YkXszimtwNYxX/s0QEul4OMgnFGKSMEKdd1MDqGTukk=; b=LEId1ZHxKIWdktOliHM+CAcf07+0pEcd9I8lHvqF1BdgteiRACfEYBQ+XTP3tpx89PFHzEumx aaGdm4smqtiD2t/AMT7acnwO3RJ+9CO4aUpskESVMlXGNjLOdrzRAUn X-Developer-Key: i=jason98166@gmail.com; a=ed25519; pk=xQmD001Q/ooHl39PxyQtusbUQmgbOsSfpFryRVWZ/k4= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261016_015652_360890_64E80D47 X-CRM114-Status: GOOD ( 10.49 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org A MIPI D-PHY or C-PHY can be a transmitter or a receiver. Some PHY blocks have one of each and can use them at the same time, so one PHY node offers two PHYs. The existing cell, PHY_TYPE_DPHY or PHY_TYPE_CPHY, selects the mode of the whole block, not one of the two PHYs. Add PHY_DIRECTION_TX and PHY_DIRECTION_RX for a cell that selects the transmitter or the receiver. The first user is the Rockchip RK3588 MIPI DC-PHY, where the transmitter serves a DSI host and the receiver a CSI-2 host. Suggested-by: Michael Riesch Link: https://lore.kernel.org/r/7425ac83-f6d8-4443-a26e-a47f9306aa24@collabora.com Signed-off-by: Jason Yang --- include/dt-bindings/phy/phy.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/dt-bindings/phy/phy.h b/include/dt-bindings/phy/phy.h index 979b5dfd8353..9ead74d9a172 100644 --- a/include/dt-bindings/phy/phy.h +++ b/include/dt-bindings/phy/phy.h @@ -29,4 +29,7 @@ #define PHY_POL_INVERT 1 #define PHY_POL_AUTO 2 +#define PHY_DIRECTION_TX 0 +#define PHY_DIRECTION_RX 1 + #endif /* _DT_BINDINGS_PHY */ -- 2.43.0 _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip From mboxrd@z Thu Jan 1 00:00:00 1970 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 54FE6CCA48B for ; Fri, 16 Oct 2026 08:57:01 +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:Cc:To:In-Reply-To:References:Message-Id :MIME-Version: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=jp3pYDnJVxE6b6LbAL8IieL0r6f1vEXw+fId9usTa3U=; b=wzPYVNslg0rhiS ZZLsrswE7luNqCGumd+DH60yf4NkhTz/TyF3Bqa9hmenoPiMtEj5eVojTzZBiS+4tAVY/MXif8ZZX LyawkDIwPizQSECc0Kc9bPPzyBf+8EPJd9qtTIsN/ZHKnRyWfpMSpysDYnaM6Y769KIfn4KBD3T8u 5W8zLQ3Ua28MrOt0QEhtU5ZzEzooiyfb7JPjsQzUBmpY3y0vBpVvW5cTB+HfN29UYAtuv19gizeBS 0Cnm082/gSfwgQBVAkSxLUL6f3SRZbfKPB++pUEvDmu5bMWnw2NH4xFfb55gWVq29FOj5YoBhWldz /leiLGInw2lju65FW07g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1xHdkK-00000002OCn-351m; Fri, 16 Oct 2026 08:57:00 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1xHdkJ-00000002O9x-2GuM for linux-phy@bombadil.infradead.org; Fri, 16 Oct 2026 08:56:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Cc:To:In-Reply-To:References: Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Sender:Reply-To:Content-ID:Content-Description; bh=4t98YFhToVmXSdqpvYlx+jh33cXkNHD7dPs1AUtblco=; b=cpE4TGIK9Ve1em3ZaLyzQGF0mk SbBZF9sXSOJ3gXfjMsh/YHJ3OHs6PEBEKZ6N+A+XiErR+cXWfN+wBmCBFJtYImrlddlbKTH9LSSpt 4lyjdQfHM/gGIpYhB57Eu7BPFmDqMw1C7NDM8AYCTw9vXdr0L9SnuRCGfA2JGEQ8QunVpQ1bMUZjl RGim9mka56sUHZ4SOFxWZ59qOA6sRD5zOg1e3MvnnUNx1sAzwRGcdVEEYZLhFFUkIxiverdenYncS zBuEnUQzL4/JWWl09o0rYAnywolQqqAXGTQDP85ecj9U4FsFaDS6MqpyAnBaX+LXQPsoa71Xgql39 sspqKpjg==; Received: from mail-pg1-x535.google.com ([2607:f8b0:4864:20::535]) by desiato.infradead.org with esmtps (Exim 4.99.5 #2 (Red Hat Linux)) id 1xHdkD-00000001Hrd-2TzN for linux-phy@lists.infradead.org; Fri, 16 Oct 2026 08:56:55 +0000 Received: by mail-pg1-x535.google.com with SMTP id 41be03b00d2f7-cbe437a530dso369579a12.1 for ; Fri, 16 Oct 2026 01:56:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1792141011; x=1792745811; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=4t98YFhToVmXSdqpvYlx+jh33cXkNHD7dPs1AUtblco=; b=b2Wr8fHP1/ARpXnQO1CI99PtwGhY5z+RgnlrCkXgys4RaqrO3Vm7d6AKvJU1ZAKMcV 1YfVrWWWYnnK1KglX1JbYtSk6iS6jy99QXRoQJ+9vgJqIpyCrZVJw00gW5mdJdN0xzN9 WmJHOZO5T0Lq+tIP79WPkNSwM4TFBGy8ntPgfiumXX9WJlbv5w8VzO3qfOCcJwNFH55w V9KIpiVENDVSdmQA7S4J4SfZWyGirTNiYlZCJ1JIIebj1B2XZ0rEoU6t0AwyV61c/Rpp UgObuDWdGrwSbJoF/k88467yJWd7NOuh3pfZU2ycQuRmrLJzDo6n3qf9WKqwtkzTJD6/ VcAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792141011; x=1792745811; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=4t98YFhToVmXSdqpvYlx+jh33cXkNHD7dPs1AUtblco=; b=t8VnUFO13tkG0msN7EMAlrdQMBYIx7JLqvxBO9+CPGgg0nFb9YzLYMTNUyWFls5ov9 XXkSzn0yKH6KfHfqETYSz+xGBQ65zm4NnOtCA/EL6X4HR6bQihDJEdvTDLxXOWW12iof rGFW4Efg6uTF1owWqbLu2EdWoSdNxrIKwxeRIRMVJnlf1W/o2QhMTDZjXbH1goIBJcNE 3YYFmfY7J3CkSkYSvFY6wNBw912eI3MbApbjLohkIb94bmZjqJCVkuHIJhnVHUq1jCYp JOM9Jaeu46ip4Psfsrgu4SE8t2aFIIufG2O5SRQZQvFYyOLeKs2vFisprhVqCMnhtEd7 0bQw== X-Forwarded-Encrypted: i=1; AKwUvBwEsWzuuWIUYLcJ1Nb44udv5X2BFC7dkmpGZF5sDshE8jPTIRcRbRemGVHltTRdIGgiiPGCgZu0Jhc=@lists.infradead.org X-Gm-Message-State: AFq9FYJMZ4W1wgnoxKaXCwS/r7PZ9U/08B29pzE7tz7YUpuNfaZh0uWN 74WZDoVNExBJe5+2V/PkJTLcpaSeMj2ei4+oHHMuBXOq/JVjtTHu9IVC X-Gm-Gg: AYBFou0l7hAneO7/7NFhG28Ry6x46N2ZRM8MTqvhGaGupMgFL33fg6ZUjesm3QRbc6z XE0EVDidkJdaIEtTIqtPSikRCxtItj/gLWLFGzrvMPGudH92nKzkpB5Lma0bVUaMnp6PM2VkpI8 7Q+a6ont5+I1q7wAxdci8wD1qjdM90GL6dXVwMMyO0KhBwxGcNxq+ZJzkTvMJmoHJDNIWgsE8AN fQkOs9y8pxIHJ6ETx61347gJKv68TkVCYQ8aF2DS8mQXkVV+3syoO+aMycJGtB46CNpfQa4cwpN Un0BGXX8o5uVb01/HHaU13E9gQJ/ypooGfG2bbQ9CnCSqNetZnXchmiSQyD0ILNG8mKgcB9ZR9b L2yirtoRs6XqHeB2u2XvW+yPULcJeS0EyA8mGBniBfn4Q5oMR75TiaXZ1gJXiRB8dERblkxGnTp czftBJx8dNNKQoa4LJPbrnn+LeyKcOAytNYmWTIXZsTtofMjdVbVUIirX1VRORMoUbzSHgnOEAD OYlHsWXLXKo9lHdmthx70EDBzStzg== X-Received: by 2002:a17:902:dac2:b0:2dd:b95a:e1db with SMTP id d9443c01a7336-2e8429a9f89mr307105675ad.3.1792141010736; Fri, 16 Oct 2026 01:56:50 -0700 (PDT) Received: from [127.0.1.1] (211-23-39-77.hinet-ip.hinet.net. [211.23.39.77]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2e97e882a20sm6971025ad.62.2026.10.16.01.56.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Oct 2026 01:56:50 -0700 (PDT) From: Jason Yang Date: Fri, 16 Oct 2026 16:56:35 +0800 Subject: [PATCH v5 1/8] dt-bindings: phy: Add PHY_DIRECTION_TX/RX definitions MIME-Version: 1.0 Message-Id: <20261016-dcphy-rx-v1-v5-1-e63b49eabe2d@gmail.com> References: <20261016-dcphy-rx-v1-v5-0-e63b49eabe2d@gmail.com> In-Reply-To: <20261016-dcphy-rx-v1-v5-0-e63b49eabe2d@gmail.com> To: Vinod Koul , Neil Armstrong , Manivannan Sadhasivam , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Guochun Huang , Philipp Zabel Cc: Michael Riesch , Sebastian Reichel , Bryan O'Donoghue , linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Jason Yang X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1792141002; l=1157; i=jason98166@gmail.com; s=20260721; h=from:subject:message-id; bh=YkXszimtwNYxX/s0QEul4OMgnFGKSMEKdd1MDqGTukk=; b=LEId1ZHxKIWdktOliHM+CAcf07+0pEcd9I8lHvqF1BdgteiRACfEYBQ+XTP3tpx89PFHzEumx aaGdm4smqtiD2t/AMT7acnwO3RJ+9CO4aUpskESVMlXGNjLOdrzRAUn X-Developer-Key: i=jason98166@gmail.com; a=ed25519; pk=xQmD001Q/ooHl39PxyQtusbUQmgbOsSfpFryRVWZ/k4= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261016_095653_906216_6AE961BF X-CRM114-Status: GOOD ( 11.15 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org A MIPI D-PHY or C-PHY can be a transmitter or a receiver. Some PHY blocks have one of each and can use them at the same time, so one PHY node offers two PHYs. The existing cell, PHY_TYPE_DPHY or PHY_TYPE_CPHY, selects the mode of the whole block, not one of the two PHYs. Add PHY_DIRECTION_TX and PHY_DIRECTION_RX for a cell that selects the transmitter or the receiver. The first user is the Rockchip RK3588 MIPI DC-PHY, where the transmitter serves a DSI host and the receiver a CSI-2 host. Suggested-by: Michael Riesch Link: https://lore.kernel.org/r/7425ac83-f6d8-4443-a26e-a47f9306aa24@collabora.com Signed-off-by: Jason Yang --- include/dt-bindings/phy/phy.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/dt-bindings/phy/phy.h b/include/dt-bindings/phy/phy.h index 979b5dfd8353..9ead74d9a172 100644 --- a/include/dt-bindings/phy/phy.h +++ b/include/dt-bindings/phy/phy.h @@ -29,4 +29,7 @@ #define PHY_POL_INVERT 1 #define PHY_POL_AUTO 2 +#define PHY_DIRECTION_TX 0 +#define PHY_DIRECTION_RX 1 + #endif /* _DT_BINDINGS_PHY */ -- 2.43.0 -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy From mboxrd@z Thu Jan 1 00:00:00 1970 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 25175CCA490 for ; Fri, 16 Oct 2026 08:57:15 +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:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version: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=4t98YFhToVmXSdqpvYlx+jh33cXkNHD7dPs1AUtblco=; b=SfVGia78AbNBYDV9M6/nTZhTh/ WIp/znK82pqNMUQgfe6b7INT3p/qvK8Okyec/N9cABsuQphygWsHNpNc2Eckhwp2RAENwAXCvXOBS k7AYjxldmNzPlINHXHMc0WFkRE7fYHKomguz7gF+6p+WUTsMb2RoyEy9/VB0ZgBHejKiyPCviBHR9 mLPXeJbFbk1Egs+lDilk/KLpjbjssyUBh1rAmtsZe8ghqaPDX+UHlO538jRzMrCepmxC/rBlVJ62Y qE/4dv0Mjqgn5waCTDSxtF83t6kitSA7H3Vsw7R1b01ljG42fx3KhJAaAcdEVSa5HQ7y9dVvTXHi/ d+C0UeCw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1xHdkP-00000002OHI-04Ka; Fri, 16 Oct 2026 08:57:05 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1xHdkK-00000002OAF-0LTk for linux-arm-kernel@bombadil.infradead.org; Fri, 16 Oct 2026 08:57:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Cc:To:In-Reply-To:References: Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Sender:Reply-To:Content-ID:Content-Description; bh=4t98YFhToVmXSdqpvYlx+jh33cXkNHD7dPs1AUtblco=; b=cpE4TGIK9Ve1em3ZaLyzQGF0mk SbBZF9sXSOJ3gXfjMsh/YHJ3OHs6PEBEKZ6N+A+XiErR+cXWfN+wBmCBFJtYImrlddlbKTH9LSSpt 4lyjdQfHM/gGIpYhB57Eu7BPFmDqMw1C7NDM8AYCTw9vXdr0L9SnuRCGfA2JGEQ8QunVpQ1bMUZjl RGim9mka56sUHZ4SOFxWZ59qOA6sRD5zOg1e3MvnnUNx1sAzwRGcdVEEYZLhFFUkIxiverdenYncS zBuEnUQzL4/JWWl09o0rYAnywolQqqAXGTQDP85ecj9U4FsFaDS6MqpyAnBaX+LXQPsoa71Xgql39 sspqKpjg==; Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]) by desiato.infradead.org with esmtps (Exim 4.99.5 #2 (Red Hat Linux)) id 1xHdkD-00000001Hrc-2ULB for linux-arm-kernel@lists.infradead.org; Fri, 16 Oct 2026 08:56:55 +0000 Received: by mail-pg1-x530.google.com with SMTP id 41be03b00d2f7-cd1006978ecso358422a12.0 for ; Fri, 16 Oct 2026 01:56:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1792141011; x=1792745811; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=4t98YFhToVmXSdqpvYlx+jh33cXkNHD7dPs1AUtblco=; b=b2Wr8fHP1/ARpXnQO1CI99PtwGhY5z+RgnlrCkXgys4RaqrO3Vm7d6AKvJU1ZAKMcV 1YfVrWWWYnnK1KglX1JbYtSk6iS6jy99QXRoQJ+9vgJqIpyCrZVJw00gW5mdJdN0xzN9 WmJHOZO5T0Lq+tIP79WPkNSwM4TFBGy8ntPgfiumXX9WJlbv5w8VzO3qfOCcJwNFH55w V9KIpiVENDVSdmQA7S4J4SfZWyGirTNiYlZCJ1JIIebj1B2XZ0rEoU6t0AwyV61c/Rpp UgObuDWdGrwSbJoF/k88467yJWd7NOuh3pfZU2ycQuRmrLJzDo6n3qf9WKqwtkzTJD6/ VcAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792141011; x=1792745811; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=4t98YFhToVmXSdqpvYlx+jh33cXkNHD7dPs1AUtblco=; b=pN2BpKGgmp4L49MrX/dIlSktrjWF4RVoNRVIxxgGcJMJZ8zk9QeNSYRIuI6ip65bYe ildjUeIvmsaK1ZSIWlz/6QrszouOLs0QWiCeK8iXQrh9R7S4tkv+PU/Yy+5eL7sH6sbr 6OD09i06uPPrMaN/0O9lpydmVOXs+LSE7PAOhpEldszLK8ADGaoRzjogU2ZYNUWfCo9/ 0HVYQlQKrqIkMPvjC3wf4D0MnKEnbBaZ7eJVopjUIpqkyWTNJ8qchFlMqfcRsF/f5R/W JFoSiF8NfCLzyFqzA+q4VjBwW05d4q1XLCfkDtS39625jlG5RXXqXPdmjxp4tP3LrL5p qIFg== X-Forwarded-Encrypted: i=1; AKwUvBwTWZTeX2x2pXHbTbPPy5RD5aHmcNAyDM/0Aes/1/WufVufdu8eL3lxBI//P26bFusXkCkv3l6vOietDyUBx+iY@lists.infradead.org X-Gm-Message-State: AFq9FYKjjmh6xAMsxT43GoRMXSpTPtypEmufp4IjAMhwKcLfl3aqXN+6 HcDFjNwVQNOypfHsfBWOIYIIDwER7cdeti4U+3cBsXKuFz2XXNEoSPc13QPKDNHO X-Gm-Gg: AYBFou3G4YqxKbxmSkpCiBP2w728fyeq8VQpB6DvH0HIORYh3IzT2MBYY9+dafKe3J/ R7ZoKASi7z4aXZwGcwL4+jp0AiT0YGl1KwzpyIQrEMZla3iNo4BUBH41JmyeB1Mb3B+StZroz5w vJ/nDos7TtPllNiBUDexSaJqiC/9GVqRJdzKcmgM7FtNtxE3fqG/WlcP3FATaWX9lIwCkKnedpP eoFId7/JFoKiW0LJ7zfllmnRjYJtzSJunfT7REMM4/XEt/ua+ird5W9wAG0zR20jw9psYk+M5S9 PHRpfmY0YK+u7Ca+8aoEqjgD//5HEcxsUhezVV+i5j89sl7M5zA3OtcFRuVX7mDPW5aTVZoSaJ/ zdB750blCj+2t48V3jq/O+1wiG1Uwbq1f9Wre7ME0lv3qvCk7HtAeVxNs9i2LMR47dq/6tmhA5B X9tP28SX6hVJU1nFLDoBG+M6WIwpa3el01gwvKDAmWNGvygjIlBuxVNSRESwLII6j1vjbu7oGRK neVF7fEw4kflOrf5wBFi4IR1sJn/w== X-Received: by 2002:a17:902:dac2:b0:2dd:b95a:e1db with SMTP id d9443c01a7336-2e8429a9f89mr307105675ad.3.1792141010736; Fri, 16 Oct 2026 01:56:50 -0700 (PDT) Received: from [127.0.1.1] (211-23-39-77.hinet-ip.hinet.net. [211.23.39.77]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2e97e882a20sm6971025ad.62.2026.10.16.01.56.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Oct 2026 01:56:50 -0700 (PDT) From: Jason Yang Date: Fri, 16 Oct 2026 16:56:35 +0800 Subject: [PATCH v5 1/8] dt-bindings: phy: Add PHY_DIRECTION_TX/RX definitions MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261016-dcphy-rx-v1-v5-1-e63b49eabe2d@gmail.com> References: <20261016-dcphy-rx-v1-v5-0-e63b49eabe2d@gmail.com> In-Reply-To: <20261016-dcphy-rx-v1-v5-0-e63b49eabe2d@gmail.com> To: Vinod Koul , Neil Armstrong , Manivannan Sadhasivam , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Guochun Huang , Philipp Zabel Cc: Michael Riesch , Sebastian Reichel , Bryan O'Donoghue , linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Jason Yang X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1792141002; l=1157; i=jason98166@gmail.com; s=20260721; h=from:subject:message-id; bh=YkXszimtwNYxX/s0QEul4OMgnFGKSMEKdd1MDqGTukk=; b=LEId1ZHxKIWdktOliHM+CAcf07+0pEcd9I8lHvqF1BdgteiRACfEYBQ+XTP3tpx89PFHzEumx aaGdm4smqtiD2t/AMT7acnwO3RJ+9CO4aUpskESVMlXGNjLOdrzRAUn X-Developer-Key: i=jason98166@gmail.com; a=ed25519; pk=xQmD001Q/ooHl39PxyQtusbUQmgbOsSfpFryRVWZ/k4= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261016_095653_916737_4A0F7EC5 X-CRM114-Status: GOOD ( 12.60 ) 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 A MIPI D-PHY or C-PHY can be a transmitter or a receiver. Some PHY blocks have one of each and can use them at the same time, so one PHY node offers two PHYs. The existing cell, PHY_TYPE_DPHY or PHY_TYPE_CPHY, selects the mode of the whole block, not one of the two PHYs. Add PHY_DIRECTION_TX and PHY_DIRECTION_RX for a cell that selects the transmitter or the receiver. The first user is the Rockchip RK3588 MIPI DC-PHY, where the transmitter serves a DSI host and the receiver a CSI-2 host. Suggested-by: Michael Riesch Link: https://lore.kernel.org/r/7425ac83-f6d8-4443-a26e-a47f9306aa24@collabora.com Signed-off-by: Jason Yang --- include/dt-bindings/phy/phy.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/dt-bindings/phy/phy.h b/include/dt-bindings/phy/phy.h index 979b5dfd8353..9ead74d9a172 100644 --- a/include/dt-bindings/phy/phy.h +++ b/include/dt-bindings/phy/phy.h @@ -29,4 +29,7 @@ #define PHY_POL_INVERT 1 #define PHY_POL_AUTO 2 +#define PHY_DIRECTION_TX 0 +#define PHY_DIRECTION_RX 1 + #endif /* _DT_BINDINGS_PHY */ -- 2.43.0