From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.169 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794981353; b=etDNyATh93ZWG0Z6TVfak07Ab3F1j4P7Srj3OC6IkR9F6+UVYvlHhXKw70LVi/L3X/Vh L3cQmO7vgfd+QOLtD5CaZCsZ+QSZ8kIgRJbepodfUZa2FKUtL4TTUX5g7pSNECpL8+ILE TSQkhroNygQwsbXIiMiLxWQPrlxxW0p+u/ucUZAPPTbRpI1pSDRIIcLkkaau32J8mE/qK ljbmgFHlYTggULPm5oq4IW5H/GylnBygydM/Q7nmB0J/U6jhdEYC5qQLDrptTP0UwApm9 zjp0NsOduIMRhvP3G1HeI8kcY3JS0gQuSkQA3ZICLFrhl/ZyGkVFEpprV9gw0V8h48w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794981353; 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=3ObCFUaPSZTRyf028wzpjWfhsH1G2ASH7OVZC8zOIUE=; b=usf9zM2GUDBkNbblHni5lZFxMikQY7BLb6QdRCp5LWVVm5FjwxnSJeHE8tOmxfEw7yYc Oc+0cDW4PQ0Seg5NjSiJ09WHV92Sk25NBaduj8/UX1gf+FEMlT4MyJ30Zy+QHMQXpBZ+0 2tzizJrbNvRH4LRAF3N7s96Wa6Iv+bV1JL/DxZ0WL+RAQnk1Sf3Xyx1OV8UfZWjzH0D2e Z3rwBmASCY3RkkTfhr+qLh/RN1Do+maAXiWwfsGuJAH2yoHG5qKbCQSvf6Mg6wLPKJ4ye DnZ4v1GgenealEU5ZcnGhGGk+5FHQ043gfKaLqWeSJ2wVH2RUm/Bb3vWHpon5Z/4AVw== 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=XgFYPzW4; arc=none smtp.remote-ip=209.85.210.169 Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.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 B8E4D606A32C for ; Wed, 18 Nov 2026 05:55:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B8E4D606A32C 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=XgFYPzW4 Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-89a837bf00eso5453b3a.2 for ; Tue, 17 Nov 2026 21:55:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1794981352; x=1795586152; 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=3ObCFUaPSZTRyf028wzpjWfhsH1G2ASH7OVZC8zOIUE=; b=XgFYPzW45fnWRS3o50AJ5vyDYd6X1usUpKtiWNBBuTGx8rw6o3FWzLY8vfPVFOfNIX PrSgLm+kShEx5S5uGEPFn7rVFuXtI9bag1Tr0mHjalHnrM6fAgMymexxaZ3O26KSVFM/ nEVdzcSXHbC8On3SvviV2xjmu8EGbe/HH1lElypWf32NZ31wf12vHqq7JYzWfJnOPOOz VWJ9uSsW5yEfOuvGcYhLUEVrCCWJKxO4m1hXunBqf4NTnSOWlgTX86jUtD/jBzH9yb1c WB9JArjSbdQLzsAYJY6CQAsG53G7EUGMPmbHfy+4NI9NvEE78T05uquiCoIV4qPzNxK4 YvKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794981352; x=1795586152; 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=3ObCFUaPSZTRyf028wzpjWfhsH1G2ASH7OVZC8zOIUE=; b=U9U2vZT4Pze90vy5qlNihzkwL9XiCzMaq7m4Q2xT9QJczVpaZrA7PE2cnfBodloCM+ lRUldBJgMZszTBDN1NwPEsbd/jtX999zWNRlLsi3DQXsa6D1gcbGL3/WBEYOk+m7xXjN DW9hmacnhwOwiDgt0/Zwb2xX0o6OcQEefTpaCk9vGUfr2iFgoOsZ1CMfCzRXzp4kjTvf xHhZka2g6GJk7eadN1dCdyPlI18w/cJ4+tSMrUZ7hh7w3flViH0aFZTJGBJVvO2xz/81 kDAy+Q9R2NzYuIvY7cNm9AfM2Kod8qoMAkAVRgXW5MxU1G5pR/3kMlMOcBj3e5cbVQDj VitA== X-Forwarded-Encrypted: i=1; AL+hErFiapN5FRucRLp7Q9qmxsA3QukxZnspKVfWjZuhyCWZxvlwPqBVDADAnuv0kQsxPfWM5n/Zv+lAV1oQ8FE=@vger.kernel.org X-Gm-Message-State: APuU4Z/uCUlexNGwhhWJqND9fWPjIyJpVNQISwBl+8c3wDQI8BbmlrmN ZMpXBcQK7yrF+OQvjmvKLU0m81VGJxvdExxq8aJ92qE2atKnFlAKD/W3 X-Gm-Gg: AYBFou3PICq5IcXlzmlmk16579xOlwUPZo7UVLPEGHsxIVfS7AdpYpcgIte1UIEfk0P DaXwAf9h2X5wr7Vn92i8Hm06ONrzRVb4K1Gne4GHIIzz5jJSkm94uyEHCYMm/MjtyEJxG4l2Npq s78bD7Y4iLC8sPRpg5JEwbTHRbfk8TNjGCnB+7F8hhzwhgzS+hBNJeVhKSozg53SNTn3hSsYoJf mFOCAJ5pifKRmB0dUqoOKcvZSQzr98/i8qzRQxUTM3xc14GGq9gXdp9jW8jDYwr+6JJCbUFQo9K MM0g4DEyWt3THpAQX8nWXL0Q6TiZteY2ybRm2ZULb/dHBkxtpJohwIe5CLNGfCugx1Z1qAWMkGT iNOwxo6PPHhItpp+WSDkqJO/A3DFg8W5g7ehqyJ//y7Wp3/L5gRHpcrNS8qFLdUTYXhvshLEvqi EZ8lclAljSpBR1gCJDJ17iiaZIUDm+yYh2ID0Z/GcnTpkuAVpEIgEjhsfKm1Tspz/1j3krEb1LQ iqnDJ7rqS/GPzOS+aDmMl1BaMsDEEul/o7422iY7rm9EKI+BPlJObCPGcDGU1dgKvlTGTXw3LPX xPmfWCd9QNH1dhrqL6Alk/NnGKyzIRbuUzyI0gJweiU2aO3NFVr74AWi9eYq2x2pEnDuM+t/quT sMWRwc2hnNHNwHw4/WyK4KLvrnu7KrjVLX3fT8D1WxA== X-Received: by 2002:a05:6a00:a603:b0:8a0:8822:e6b1 with SMTP id d2e1a72fcca58-8c5d2e60c9fmr1601116b3a.3.1794981351549; Tue, 17 Nov 2026 21:55:51 -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 d2e1a72fcca58-8c5ca5bf959sm569563b3a.20.2026.11.17.21.55.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Nov 2026 21:55:51 -0800 (PST) From: Jason Yang Date: Wed, 18 Nov 2026 13:55:15 +0800 Subject: [PATCH v7 2/9] 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: <20261118-dcphy-rx-v1-v7-2-8de1adac3a74@gmail.com> References: <20261118-dcphy-rx-v1-v7-0-8de1adac3a74@gmail.com> In-Reply-To: <20261118-dcphy-rx-v1-v7-0-8de1adac3a74@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 , Quentin Schulz X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1794981338; l=3151; i=jason98166@gmail.com; s=20260721; h=from:subject:message-id; bh=4LpfXZ3K6xdqCmT0IpRxZdhbTlUKsH209mqyN39qYpE=; b=lBTRLbvf8g7lFsWQAbxZKLjxuc/2yXGEWDu1UJGcBC5a/HMuX/Btm1Jo9VvetaGhtS3KECTo5 ezqJngNtDq9Cd+GGb6mB2i2L89PSeZdSEkBXCM3f/ahZf6JJcL71/8y 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 Tested-by: Quentin Schulz # RK3588 Tiger CSI1 2-lane IMX219, CSI0 2-lane OV5675+DSI --- .../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