From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 83F9F606A324 for ; Fri, 27 Nov 2026 07:48:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=PsRerwII; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=VRbApfej 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-Unsubscribe-Post:List-Owner; bh=OtjJFK09J7kLl7SCmO/D1bH5/8tvOtJPhkrUfr37Jdo=; b=PsRerwIIzttLcxRL3lFrTmikMs tZeznZKpA7Ey0hYfTMUaY3vqeVuOh9ydrK1WjoDaM7ASIVtxwpd+M7GJJD6jiv4Ro9i5b3TL8sgHh A5w89tjVgHKuuHYgv57+Kv+P/GZPpB/N+zW6+BIBGvYLyz1pSnVgEVay9VbkOyy6R/CJJyNr1FIv9 emqIl0fnS8mpYD95ZiJt39pXwNxnjbcylcTFEphL++tAyHJJlhQuSG0nv/1FOpvBoBc2NQkwLOWqe HbOWvVY2uY4gH5FF64jGvab+Zod/xpr62lnCkronNyHd+ZNlcWY8dAxR0ZvTBjK3oz0H6Ja8ig34O QYwXaPsg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xWqge-0000000FBfB-0k97; Fri, 27 Nov 2026 07:48:04 +0000 Received: from mail-dy1-x1335.google.com ([2607:f8b0:4864:20::1335]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xWqgY-0000000FBYM-0J9p for linux-phy@lists.infradead.org; Fri, 27 Nov 2026 07:48:01 +0000 Received: by mail-dy1-x1335.google.com with SMTP id 5a478bee46e88-386c337edfeso653910eec.1 for ; Thu, 26 Nov 2026 23:47:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795765677; x=1796370477; 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=GdqQ/1stdbLe7LW/q2pTltSdWQOOet/MTXZ5U6MTyic=; b=VRbApfejxzcXzy/xv2Lg+XQL1e9kCDqxeb3OJZTbYgDqSmumNyuq5EPWujGxpYetnk 54Ar2qCSPDHXzOgoa3XpUeCbVNdlIc3jIqCi+U6fYnilu93KDg4ZIrGK5HfRjnqU4lOz g8vgepwG8qSdkXuOtljBNmQdFB60QFGUrdqOEcXY2UJyfiwpxExw2Rrks+JXypMo3kUY 6/6itjW/qx+CeYZtMgWgj+Gij+OmnRDQZrPL1EBVgKTrJo/h+pX++c25X5S5eg8Sbh0F 11lKtwcYKQySsImn2kQ+8czz9I6SDd2/+dyAj34FO9MdcwOQE8ORBoxhqCWqSubloPui h/2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795765677; x=1796370477; 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=GdqQ/1stdbLe7LW/q2pTltSdWQ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eFVFO8CX75FaUHv3Owldo2s9WSmKXOSfzjOUbLhtXaiVb5MSHkkF1UL4fpQe4 o9RO5TtFdpGIyASLCN29y8iJfChq67AVyA43qA8IS4kHpgme0MWmhVmTPBYg4N0AEIetIFCmGd8 aecSXxhoOqRUGTxb55NsJ4ACaLLmdboTlBXJ9K1WY7Hbxg5CkG+utsunwLSf5dAjp6rZ4krhBlW ZTzwSK81HQw5Orv1IPnv0 X-Received: by 2002:a05:7300:1c24:b0:384:a0cb:a6d0 with SMTP id 5a478bee46e88-3856de58f7fmr38384098eec.1.1795765676382; Thu, 26 Nov 2026 23:47:56 -0800 (PST) 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 5a478bee46e88-385672c6f31sm68098252eec.15.2026.11.26.23.47.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2026 23:47:55 -0800 (PST) From: Jason Yang Date: Fri, 27 Nov 2026 15:47:38 +0800 Subject: [PATCH v8 2/9] dt-bindings: phy: rockchip,rk3588-mipi-dcphy: Select TX or RX, add phy-type X-Archived-By: MIME-Version: 1.0 Message-Id: <20261127-dcphy-rx-v1-v8-2-9ddfef99221d@gmail.com> References: <20261127-dcphy-rx-v1-v8-0-9ddfef99221d@gmail.com> In-Reply-To: <20261127-dcphy-rx-v1-v8-0-9ddfef99221d@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 , Quentin Schulz , 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=1795765664; l=3039; i=jason98166@gmail.com; s=20260721; h=from:subject:message-id; bh=7rrdQlfrdWzd6vh0XG1BVzWjWRFX5AHNt9d46Qfby9k=; b=PJpEud+ez2q0GsXQjeTCuSxtX3j8zOIr53Jy9X+9FVnl1qhWLNzk1uuIUPCxn7Wem/kCpfd8Y YUX34ypgZ07D1PGVlQgKmasrZrBAoNlnEImfVm9qQyVU7lLJNtOmv1F 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-20261126_234758_257973_EDD2068E X-CRM114-Status: GOOD ( 11.46 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 The Samsung MIPI D-/C-PHY block on RK3588 and RK3576 has a transmitter for DSI and a receiver for CSI-2, and the DSI host and the CSI-2 host can use the transmitter and the receiver at the same time. The single cell of this binding selects the mode and refers to the transmitter, so the receiver cannot be described. Change the cell to select the transmitter or the receiver. The transmitter and the receiver cannot operate in different modes [1], so the optional phy-type property of the PHY node sets the mode for the whole block, D-PHY by default: /* the MIPI DSI host, driving the transmitter */ phys = <&mipidcphy0 PHY_DIRECTION_TX>; /* the MIPI CSI-2 host, driving the receiver */ phys = <&mipidcphy0 PHY_DIRECTION_RX>; For C-PHY the consumers stay the same and the PHY node gets: phy-type = ; Existing DTs on a newer kernel: PHY_TYPE_DPHY and PHY_TYPE_CPHY remain valid as deprecated values. They select the transmitter and imply phy-type = or respectively, so nothing changes for them. New DTs on an older kernel: an ABI break. The older kernel ignores phy-type and takes any cell value as the mode of the block. A DSI node with PHY_DIRECTION_TX therefore gets no display, and a CSI-2 node with PHY_DIRECTION_RX gets no camera. [1] RK3588 TRM: section 22.1 (overview): "The TX and RX only support operate in the same PHY mode." Suggested-by: Michael Riesch Link: https://lore.kernel.org/r/94d47cab-10c6-4ec3-84a0-3bddc9d67f5f@collabora.com Signed-off-by: Jason Yang Reviewed-by: Rob Herring (Arm) Reviewed-by: Michael Riesch --- .../bindings/phy/rockchip,rk3588-mipi-dcphy.yaml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/rockchip,rk3588-mipi-dcphy.yaml b/Documentation/devicetree/bindings/phy/rockchip,rk3588-mipi-dcphy.yaml index c8ff5ba22a86..1ea21ab203ba 100644 --- a/Documentation/devicetree/bindings/phy/rockchip,rk3588-mipi-dcphy.yaml +++ b/Documentation/devicetree/bindings/phy/rockchip,rk3588-mipi-dcphy.yaml @@ -22,11 +22,23 @@ properties: "#phy-cells": const: 1 description: | - Argument is mode to operate in. Supported modes are: - - PHY_TYPE_DPHY - - PHY_TYPE_CPHY + Argument defines whether receiver or transmitter PHY is used. + - PHY_DIRECTION_TX + - PHY_DIRECTION_RX + + PHY_TYPE_DPHY and PHY_TYPE_CPHY are deprecated. They select the + transmitter and imply phy-type = or + respectively. Use PHY_DIRECTION_TX and phy-type instead. + See include/dt-bindings/phy/phy.h for constants. + phy-type: + description: D-PHY (default) or C-PHY mode + enum: + - 10 # PHY_TYPE_DPHY + - 11 # PHY_TYPE_CPHY + default: 10 + clocks: maxItems: 2 -- 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 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.179 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795765679; b=mSJCr/uP8AUCstLbknNOeJ8ggKkfhnD+MsSrhnr4SRIsbjtYsE4lE532eINA6L7aYzVe OqytJPi5e1Mf8HulDlTuvz9gWt1D8ocpV06gzik7lVl+4SXka/ihoNkj7lXZZzEtH0EY4 VlYVOh0/PKJZBtbheqbNHC0lJZm+WiFTZhvMckbuRYnYc2U62r/Y+tH2ZbnHATzt922en dOazUTUd9F1nzPh8Rbexz1wAl9po2AuWw2+luQ141JkzFjUc7fgiFACFtkhL8MzhmmdX/ SLT/Ce6ZNUuLg+v1kaScbNEc8J1rY51LOIHDZXkWF+2lz3YGCbqPxlX9FPiIO6JHzfw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795765679; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:Date:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key; bh=GdqQ/1stdbLe7LW/q2pTltSdWQOOet/MTXZ5U6MTyic=; b=Y16R6zVP81tEfsdz7omPNOj7sPrGiz3Pzy4KANvsyKoto3s0A9ASAaJfNRjwnqMLzpkg HkPmIr5zgqMwmalhQrOxhKIrRN4LtVMi45b6Qx8w0waOHOAd1fLam9JKnr+lJVHxhA2+K OqhWfADsUfnmHoghXgXPQu+K8NOGfcrYY8fuD9VhdRWjUtJ4Q8ZQIiLmYsXY6euOfzxwE sxlBLyD6RDxz2H8xzazydACgXQNhTE3RKk8Hynn+dBIhFHxoCAe3c8emtFAbMC4MqCGsL WT3XEoF+A1a0kjwGFy+THx/soOfekW/cigJdBtLVcSqrTPbb5wiZ8xq1U+VIuxdQ4oQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=0ofy9ShX; arc=none smtp.remote-ip=74.125.82.179 Received: from mail-dy1-f179.google.com (mail-dy1-f179.google.com [74.125.82.179]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DD30F606A323 for ; Fri, 27 Nov 2026 07:47:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DD30F606A323 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=0ofy9ShX Received: by mail-dy1-f179.google.com with SMTP id 5a478bee46e88-385c497bfddso804041eec.2 for ; Thu, 26 Nov 2026 23:47:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795765677; x=1796370477; darn=vger.kernel.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=GdqQ/1stdbLe7LW/q2pTltSdWQOOet/MTXZ5U6MTyic=; b=0ofy9ShX7MdYotp/3tfXIUG4reTq0nHGYrwVcKRxIXzmOcdE/5/P9Ktr7TX5gDQKHK 2Qse9MOZSKtwQ9+T+Jb5RHDlIUzOqxadLHkksLD0iZJ4/W9kg2Tl3F6Q+2/OPxR5frlY gld28w608lagYh/DoLUtaMJapxfYVYYyBpk8iyMviUukhMCuRgYnnH/M2OgcH6D8ID8V copV6UPXQMd2UJrcJpECLidDkvR2rHeY02mvJLH4GoswHKGkgz/4sNJHlXi4pSw2ow98 TMcYHIdStCfW9Ms9qw6XP60mvRfQu40reuMkLUq8IQOdNUXKY+WtQdQeQ5Ad9H0peGU4 7zOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795765677; x=1796370477; 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=GdqQ/1stdbLe7LW/q2pTltSdWQOOet/MTXZ5U6MTyic=; b=XB3ZbvA9cyClTOCqMtLVr8B7JQtHcbD7dxzEWSkqf6Vq+aWCPZup369vKMPu6iOuXg PcM2h0EErgQHdzacS66FyMtA9xIhYlUXekBXkNy0QQ+WRZtUnQjYLXrM+j2fEe75ta9/ Al1AetEjkccLgWe3H9qxBu1vBLaOG0SlEQxnCpQJhkFByx+ZX8gaCVtJSEL4+eA1Wvrm 1ab8y8JJA3oOexZWrgl5wL3lnjGgHR4Xn+M49EUpCqG+KGoR8BUbM7Zy0+NRot8CiFXD n0ET3pKaX09xSd3VOZLAmWU9v/YBPA2eEnB9q6oF0I7c/AtFuUOIZ+GCaYNxu5rPuLzb wB5g== X-Forwarded-Encrypted: i=1; AL+hErE7dPURwsEGkMzHzJwp6PMe6WyncXrtcvc+iLnfNmVGF+NUHCK1Km466TTN7odiBPqyVeLEwbs2tuCT@vger.kernel.org X-Gm-Message-State: APuU4Z8D0xaJ6BWKT5b80/7jONcIxPtGTode95Rumu83WdIE41sRjR9P NbWCaxVVfGIlcMNRNA2d4PurbFYueNfaBoUoxuUSiHUqwlwR7u5SwO6L X-Gm-Gg: AZFdTZcX/mxV7NyWikkClh8sVeMxZFPh3+iU0IshdCvJQpyFyYIo6gjM5vL2oeOdXPa Cw4eVI3jAaLoiX+wZz3U9Eg1p8lz8m/vubtfN0MuQIg4GxIz6/EQbwQCnK0wwGRo5yaeocjnzn5 X9weL1NmRhVbIiBlXkbxYQxPAPjvRx+P0dcJ0eg7Vj5JoG7w/iw82VpeqEoQfmDmkCjiZMo1oXg r/8OPRhcZDX/+i3cJ3SqtX0vTDfs8a+3QjGeU+eopGlT8UklCNjB/Ek9gFthxXifH0kucW1g98i NlM8RR3bl12aVUkvli5HZiCncXjfp34xODh7BrrxW8UDP/JgQEk0dNqrahwC+ryXgszqDJZ5wLk MkDKasNfIreLQD9E5DszWRifSTcHB8Ts8sKHzNLgcU3vVnfre/KNzsMUxSy8D3qL1St9ZvMgeds Zr0lgCiTGEtiWVvxwZ0kdsStqavIbC3fa1vMNm8UvNvrIvrYlv3UKqB63+nr63LXgV/8iBuNrem iQfD/wfpq7H7XTdqPuVKHJGMPzsvuCOFucnf17AtrzX+B2NVJPbZDmWnFlmixJu7ny77mNCz+gu 4ZO29D9RpS2DcIdQN0bGLB3eZks7ryPZKtPSW+CtOPG9yK5bftX5IJo8Bd7u297CH4/tKwVMjeJ +65GetBNFVjzifUaAzFL3 X-Received: by 2002:a05:7300:1c24:b0:384:a0cb:a6d0 with SMTP id 5a478bee46e88-3856de58f7fmr38384098eec.1.1795765676382; Thu, 26 Nov 2026 23:47:56 -0800 (PST) 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 5a478bee46e88-385672c6f31sm68098252eec.15.2026.11.26.23.47.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2026 23:47:55 -0800 (PST) From: Jason Yang Date: Fri, 27 Nov 2026 15:47:38 +0800 Subject: [PATCH v8 2/9] dt-bindings: phy: rockchip,rk3588-mipi-dcphy: Select TX or RX, add phy-type X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261127-dcphy-rx-v1-v8-2-9ddfef99221d@gmail.com> References: <20261127-dcphy-rx-v1-v8-0-9ddfef99221d@gmail.com> In-Reply-To: <20261127-dcphy-rx-v1-v8-0-9ddfef99221d@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 , Quentin Schulz , 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=1795765664; l=3039; i=jason98166@gmail.com; s=20260721; h=from:subject:message-id; bh=7rrdQlfrdWzd6vh0XG1BVzWjWRFX5AHNt9d46Qfby9k=; b=PJpEud+ez2q0GsXQjeTCuSxtX3j8zOIr53Jy9X+9FVnl1qhWLNzk1uuIUPCxn7Wem/kCpfd8Y YUX34ypgZ07D1PGVlQgKmasrZrBAoNlnEImfVm9qQyVU7lLJNtOmv1F X-Developer-Key: i=jason98166@gmail.com; a=ed25519; pk=xQmD001Q/ooHl39PxyQtusbUQmgbOsSfpFryRVWZ/k4= The Samsung MIPI D-/C-PHY block on RK3588 and RK3576 has a transmitter for DSI and a receiver for CSI-2, and the DSI host and the CSI-2 host can use the transmitter and the receiver at the same time. The single cell of this binding selects the mode and refers to the transmitter, so the receiver cannot be described. Change the cell to select the transmitter or the receiver. The transmitter and the receiver cannot operate in different modes [1], so the optional phy-type property of the PHY node sets the mode for the whole block, D-PHY by default: /* the MIPI DSI host, driving the transmitter */ phys = <&mipidcphy0 PHY_DIRECTION_TX>; /* the MIPI CSI-2 host, driving the receiver */ phys = <&mipidcphy0 PHY_DIRECTION_RX>; For C-PHY the consumers stay the same and the PHY node gets: phy-type = ; Existing DTs on a newer kernel: PHY_TYPE_DPHY and PHY_TYPE_CPHY remain valid as deprecated values. They select the transmitter and imply phy-type = or respectively, so nothing changes for them. New DTs on an older kernel: an ABI break. The older kernel ignores phy-type and takes any cell value as the mode of the block. A DSI node with PHY_DIRECTION_TX therefore gets no display, and a CSI-2 node with PHY_DIRECTION_RX gets no camera. [1] RK3588 TRM: section 22.1 (overview): "The TX and RX only support operate in the same PHY mode." Suggested-by: Michael Riesch Link: https://lore.kernel.org/r/94d47cab-10c6-4ec3-84a0-3bddc9d67f5f@collabora.com Signed-off-by: Jason Yang Reviewed-by: Rob Herring (Arm) Reviewed-by: Michael Riesch --- .../bindings/phy/rockchip,rk3588-mipi-dcphy.yaml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/rockchip,rk3588-mipi-dcphy.yaml b/Documentation/devicetree/bindings/phy/rockchip,rk3588-mipi-dcphy.yaml index c8ff5ba22a86..1ea21ab203ba 100644 --- a/Documentation/devicetree/bindings/phy/rockchip,rk3588-mipi-dcphy.yaml +++ b/Documentation/devicetree/bindings/phy/rockchip,rk3588-mipi-dcphy.yaml @@ -22,11 +22,23 @@ properties: "#phy-cells": const: 1 description: | - Argument is mode to operate in. Supported modes are: - - PHY_TYPE_DPHY - - PHY_TYPE_CPHY + Argument defines whether receiver or transmitter PHY is used. + - PHY_DIRECTION_TX + - PHY_DIRECTION_RX + + PHY_TYPE_DPHY and PHY_TYPE_CPHY are deprecated. They select the + transmitter and imply phy-type = or + respectively. Use PHY_DIRECTION_TX and phy-type instead. + See include/dt-bindings/phy/phy.h for constants. + phy-type: + description: D-PHY (default) or C-PHY mode + enum: + - 10 # PHY_TYPE_DPHY + - 11 # PHY_TYPE_CPHY + default: 10 + clocks: maxItems: 2 -- 2.43.0 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1DF72606A32F for ; Fri, 27 Nov 2026 07:48:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=U/69L8Ls; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=VRbApfej 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-Unsubscribe-Post:List-Owner; bh=Cg/kEEhniUOw+xxLpyBLBGn1yd4mBW8lMycJg6GyXUY=; b=U/69L8LsULRzckRKDsebKuDlwd 6XNr6cxW48ciTT2zIWVHR9ZLrJfwR1XrXgFAlYAdz6NoBcfLjp6meJSTs8eLU8mQeBKY4ovkoacgt DqUDuTk+KwkajasrKim4VA6RJMuf1T64ljJOQ8X02uLfg5oP0Rg4NCrVLSlbpmVtuVapKq4Xn6Jbp lmceH/yrshuNTTXaAGDgFnvvmZ80R1OuD1ImpH3RLVRcJsolcd7nAWQkCkHuQd5ry0L1j+FCaVLyD Cn9Gy/YEozmSaw9IGN2mb6gMybi4yL1fl8RM8VJxl1k8Lf3kbXRHwbfpU1JHLuTGj5Pnyc46NDGfR qbAHY5ug==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xWqgd-0000000FBe8-2PM8; Fri, 27 Nov 2026 07:48:03 +0000 Received: from mail-dy1-x1329.google.com ([2607:f8b0:4864:20::1329]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xWqgX-0000000FBYN-2kAb for linux-rockchip@lists.infradead.org; Fri, 27 Nov 2026 07:47:59 +0000 Received: by mail-dy1-x1329.google.com with SMTP id 5a478bee46e88-386a2dc17adso688337eec.0 for ; Thu, 26 Nov 2026 23:47:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795765677; x=1796370477; 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=GdqQ/1stdbLe7LW/q2pTltSdWQOOet/MTXZ5U6MTyic=; b=VRbApfejxzcXzy/xv2Lg+XQL1e9kCDqxeb3OJZTbYgDqSmumNyuq5EPWujGxpYetnk 54Ar2qCSPDHXzOgoa3XpUeCbVNdlIc3jIqCi+U6fYnilu93KDg4ZIrGK5HfRjnqU4lOz g8vgepwG8qSdkXuOtljBNmQdFB60QFGUrdqOEcXY2UJyfiwpxExw2Rrks+JXypMo3kUY 6/6itjW/qx+CeYZtMgWgj+Gij+OmnRDQZrPL1EBVgKTrJo/h+pX++c25X5S5eg8Sbh0F 11lKtwcYKQySsImn2kQ+8czz9I6SDd2/+dyAj34FO9MdcwOQE8ORBoxhqCWqSubloPui h/2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795765677; x=1796370477; 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=GdqQ/1stdbLe7LW/q2pT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681vH/TU 6zPRZ07DFCdkDmdeSf96CX3YCgTRIvMZ/Qb6vngelHVbizs19Thy7KRHylBuQjCDd0rC/VpzJJm DaOfQla5s4Mm8Jd7PcSHoEslafE3Ygr9a/+F561SSWV3mEGcs9HdHO3NQXrnlTgQU6KKd6nQUiQ reXWPDvCOl34JlSwM9AJFCCNFK96eqArPpLGARuo37ZqrF8XW3Pex25uXG3tiN3yixv3eW65z/h N8vj1fR+Wdw/sVzI4c6aN X-Received: by 2002:a05:7300:1c24:b0:384:a0cb:a6d0 with SMTP id 5a478bee46e88-3856de58f7fmr38384098eec.1.1795765676382; Thu, 26 Nov 2026 23:47:56 -0800 (PST) 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 5a478bee46e88-385672c6f31sm68098252eec.15.2026.11.26.23.47.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2026 23:47:55 -0800 (PST) From: Jason Yang Date: Fri, 27 Nov 2026 15:47:38 +0800 Subject: [PATCH v8 2/9] dt-bindings: phy: rockchip,rk3588-mipi-dcphy: Select TX or RX, add phy-type X-Archived-By: MIME-Version: 1.0 Message-Id: <20261127-dcphy-rx-v1-v8-2-9ddfef99221d@gmail.com> References: <20261127-dcphy-rx-v1-v8-0-9ddfef99221d@gmail.com> In-Reply-To: <20261127-dcphy-rx-v1-v8-0-9ddfef99221d@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 , Quentin Schulz , 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=1795765664; l=3039; i=jason98166@gmail.com; s=20260721; h=from:subject:message-id; bh=7rrdQlfrdWzd6vh0XG1BVzWjWRFX5AHNt9d46Qfby9k=; b=PJpEud+ez2q0GsXQjeTCuSxtX3j8zOIr53Jy9X+9FVnl1qhWLNzk1uuIUPCxn7Wem/kCpfd8Y YUX34ypgZ07D1PGVlQgKmasrZrBAoNlnEImfVm9qQyVU7lLJNtOmv1F 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-20261126_234757_718580_43D7CAC9 X-CRM114-Status: GOOD ( 11.67 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 The Samsung MIPI D-/C-PHY block on RK3588 and RK3576 has a transmitter for DSI and a receiver for CSI-2, and the DSI host and the CSI-2 host can use the transmitter and the receiver at the same time. The single cell of this binding selects the mode and refers to the transmitter, so the receiver cannot be described. Change the cell to select the transmitter or the receiver. The transmitter and the receiver cannot operate in different modes [1], so the optional phy-type property of the PHY node sets the mode for the whole block, D-PHY by default: /* the MIPI DSI host, driving the transmitter */ phys = <&mipidcphy0 PHY_DIRECTION_TX>; /* the MIPI CSI-2 host, driving the receiver */ phys = <&mipidcphy0 PHY_DIRECTION_RX>; For C-PHY the consumers stay the same and the PHY node gets: phy-type = ; Existing DTs on a newer kernel: PHY_TYPE_DPHY and PHY_TYPE_CPHY remain valid as deprecated values. They select the transmitter and imply phy-type = or respectively, so nothing changes for them. New DTs on an older kernel: an ABI break. The older kernel ignores phy-type and takes any cell value as the mode of the block. A DSI node with PHY_DIRECTION_TX therefore gets no display, and a CSI-2 node with PHY_DIRECTION_RX gets no camera. [1] RK3588 TRM: section 22.1 (overview): "The TX and RX only support operate in the same PHY mode." Suggested-by: Michael Riesch Link: https://lore.kernel.org/r/94d47cab-10c6-4ec3-84a0-3bddc9d67f5f@collabora.com Signed-off-by: Jason Yang Reviewed-by: Rob Herring (Arm) Reviewed-by: Michael Riesch --- .../bindings/phy/rockchip,rk3588-mipi-dcphy.yaml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/rockchip,rk3588-mipi-dcphy.yaml b/Documentation/devicetree/bindings/phy/rockchip,rk3588-mipi-dcphy.yaml index c8ff5ba22a86..1ea21ab203ba 100644 --- a/Documentation/devicetree/bindings/phy/rockchip,rk3588-mipi-dcphy.yaml +++ b/Documentation/devicetree/bindings/phy/rockchip,rk3588-mipi-dcphy.yaml @@ -22,11 +22,23 @@ properties: "#phy-cells": const: 1 description: | - Argument is mode to operate in. Supported modes are: - - PHY_TYPE_DPHY - - PHY_TYPE_CPHY + Argument defines whether receiver or transmitter PHY is used. + - PHY_DIRECTION_TX + - PHY_DIRECTION_RX + + PHY_TYPE_DPHY and PHY_TYPE_CPHY are deprecated. They select the + transmitter and imply phy-type = or + respectively. Use PHY_DIRECTION_TX and phy-type instead. + See include/dt-bindings/phy/phy.h for constants. + phy-type: + description: D-PHY (default) or C-PHY mode + enum: + - 10 # PHY_TYPE_DPHY + - 11 # PHY_TYPE_CPHY + default: 10 + clocks: maxItems: 2 -- 2.43.0 _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip