From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.215.169 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796354351; b=r8PKDovfWgi+DT8bDriqUiY+a9iqpr8nLrwTvWksR+Nm8uxX+jGoyYkImf5MCzmObBxF 6R3wdjD2piMKRs53WTdqAKdXgU8Iscp06YT0dJMg10ApBNsQ7bUi1I5a/V6A0PpQebD0K SUb5Poukw/FnAzb7AMt6AAEvg9knADZC6CsPoyc771aHvQu9wAlrxjgwcirFrjsygVMiJ GweSixWZReNrKtYnttD5Gm5wvFkD25MCyQtiavv9houjo0U2aqLzFeg1Yiai+DIsMD07L WFd83mRWbYgrrmDOFjvsHpdB4v46b0LSqJLm6Oo+7MCsLY4HpkOPz4QPhdr8ro6Iy9Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796354351; 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=btc0HVx0aZrUN7b4n6FXDxN9XqFpKyqISKhE4VH9+EkK9sGfhJ7ggg2KESwHZqjE+y/S tvUOd7f7jToDlcT1CqRRUcSfk7EvbdV5gQqEGDpI6bQuZoSJFiS8Wh3efR01R0J3WiWW8 vi6DBbdIm2dclHeeTlxmLpb2KSzXIGQoRimA1DLPUG1llrHGcG+PXqsatbVfZ0/OTCSV2 t6zhLHjNgByGvXPFUar+0/0qQdlpPHDqfNzouFnWlFYydWOLtwOQdFtfNp6KKgKXanl3B J4lODmJnRKNPvcia1CRFXHur89lrlOBXjNxnQMfJIWsrW6h/EqFTwMmjB0p29AR4Z5A== 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=h7g5QE9K; arc=none smtp.remote-ip=209.85.215.169 Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.169]) (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 6CE25606A32C for ; Fri, 4 Dec 2026 03:19:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6CE25606A32C 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=h7g5QE9K Received: by mail-pg1-f169.google.com with SMTP id 41be03b00d2f7-cdec1c95fa2so60022a12.3 for ; Thu, 03 Dec 2026 19:19:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796354351; x=1796959151; 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=h7g5QE9KIW2rPjA6HeYID7S+mkmswc0VhikWypVHdJvCm3DgRM/3SeNnU9hLs+KowI S1v3uAftCOlnSEycP/SJoVB1DUJdwchy76dg8VWEPhwfb4BCJae9B1O9M+U8KBQK47Bm GQtN7Vrt9fJFweJJ2eLQenExbN2yxuyqP9oEz57QwUXj/uWvxCbhwHUJThGtqm1t+cx2 YRgoqlkL+oWj3AeRghoasJ33/YUCHFWikbV2zQc8OCvMYRSAJxMjPWargkQES7MatpqC fmkpR3Cx+tmJ8MPV3vcUrp7GDQLU/qzmeDB/IvIY8MyVpfuB4x8GCDtZD9pn6hRxlio3 vRGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796354351; x=1796959151; 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=qhZ7r4M9snRyCUc/yCnr+JRNfOJx1l92peh8764M/LWfjLLgyWUYcCy1TJyo7NkYJ/ WYT4AkXJbuZ6C7Jj7gUdZkpEKb9XkEQWedu3yk8SdBBUDL3H2b2BiBoj7XQeIigScL+n iJvUl/e3iwGFOc5+eOyapXnLgXlyI0sCuZe/4+Wpk/nothirRd6Tofeq6tL0zARe4mh/ isTEPh6P8JV9nlOJ3YzQq+gtdMuj5UejmCRw3nVrS9RRr2hz8/smI7IHRMQXekhHT975 P8Nuik5eUqfMhLAGQ4N6BCg4uqAuakb2yObpW8wTgrlfCUIC2h6O+xK6I/XJkHCahWxn tpDA== X-Forwarded-Encrypted: i=1; AL+hErHRZ60JB+mvin/iQRbK6WjDITjUS5EK+yBgS4UCj4KijZxf/neU6t9wJQ0NmVClYIm/IHLKN7vzYOn4AVo=@vger.kernel.org X-Gm-Message-State: APuU4Z8avxrs/+t9MZEh7i4i6wKjU+nzwUMx4bE/DXhw2TnHQSouLaqD PDJjALK9epVkr0ldgfEQVOZnogK2Y0I23NZl6LQGXD9vy1xbAhwOEK0S X-Gm-Gg: AZFdTZfUyhRZDu5nTpchjocoqd6G3NOoDbuA+TK5Lc/seRn2x577ymqA16fS+m8cKuJ Z/zapsrQjoNlTNfoM/zF1s3Y6xVvp0exffNTiuOoDEMWvXn9NBA8OT/4dEmD6pms44kwyP4isuC 2wSB6tzJ7k8NhcXF+xI1bZEBskpPTArQGKj45mybwUY+ymNlODUB711bLqsUVcEYoU4d4E8tG+y 6VoYmGFruor8VOUjrmMNUuxSgS+odNr1OMRZhaRM1sCO/rEWcTpgYo64xvsEoRPPElV848lr0bh burR7tisg00S4nVM1rPbllB7w8+DUBgcR9zRrd69jhyjHTPor8jVMPXFvwTp++JFHJ/h/c202p4 RtaST4v/1p3wSyb9RIs8InFcORYPjpKT3CvSpfI8X7t+pOgF+XC61wp6vqhz7BS5mndKvG2e44a q3QWyG+ZVrzno/FJ7MUMOtKBScj+vMiz1Vykw3HGWdp3umHPIHDcmYakFgjDie+pDQh0l+3L+OT MlhvwQ+CmMkF36vfoV2iN/xY1pxW4SDnEP1h9AWfkT8yh9OFG/I0JrBwYCogmne/Q0pn91ee4vB +TnW13xcGIlZMgvcehizQqH/4hNBVbd/x5KA6YwTHUECh17cFo2xMvspwjuKOJHJmmo/RQftUG0 qyXb4OMSQjnVzOpvXYuQl X-Received: by 2002:a17:903:2a8b:b0:2e9:5c29:9955 with SMTP id d9443c01a7336-2f1ba157394mr9708265ad.4.1796354350051; Thu, 03 Dec 2026 19:19:10 -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 d9443c01a7336-2f1b791a308sm3316285ad.28.2026.12.03.19.19.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 19:19:09 -0800 (PST) From: Jason Yang Date: Fri, 04 Dec 2026 11:18:52 +0800 Subject: [PATCH v9 02/10] dt-bindings: phy: rockchip,rk3588-mipi-dcphy: Select TX or RX, add phy-type X-Mailing-List: linux-kernel@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: <20261204-dcphy-rx-v1-v9-2-fad1cfe7f536@gmail.com> References: <20261204-dcphy-rx-v1-v9-0-fad1cfe7f536@gmail.com> In-Reply-To: <20261204-dcphy-rx-v1-v9-0-fad1cfe7f536@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=1796354337; l=3039; i=jason98166@gmail.com; s=20260721; h=from:subject:message-id; bh=7rrdQlfrdWzd6vh0XG1BVzWjWRFX5AHNt9d46Qfby9k=; b=qJMxhU7xjrnEl8ERXl8bmKHYrSDLB2KwDlv+Ad8yh36E2EIv55g3s8nvzjAGwm16IkscriVz8 0js47H6JzbfDuIJN66n8dgWZreM0bX7kYveiTjXtd2la8DqNe+4igXI 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