From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B48102E3703 for ; Tue, 15 Jul 2025 00:13:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752538387; cv=none; b=qRCOLsx4+UccGxHsaWpGimQXcpExAwmUwuJL1O+6TBG4u9smT1OWOyVGJytdTRTdyAiYepYKyVJrz/bKCm3huCllQNdo31dIj54eZ4zH55NqmyA+oy0fdfRAW7er9iN3qUICw6KsFdTDWo8O//sQf7YlBVS6eJ0GUdtbJVFQlFo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752538387; c=relaxed/simple; bh=Rtl+kg8lua8MhwuqM/aGV9rwRAtERpeCerUyDwG5VV0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=uIahvEB55bGPi72rju0CQgX0MTFeuzPZxnA126Jf2KKO4SXbydMakt6pBvUB0GWQ6gdyg0MUwvQexwVoCiWGu9zFftV4H5u8biVIurUQja+P6OpBqiHYglptDve6Mw/dwsWvFoSlGGBIKXbX4x/rgHyuPYwo0qAy6NSepO+X6fM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=M0IleP0s; arc=none smtp.client-ip=209.85.221.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="M0IleP0s" Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-3a528243636so2631474f8f.3 for ; Mon, 14 Jul 2025 17:13:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1752538384; x=1753143184; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=wjjlBO5McvqWYarNTItF1TpVtLRk0nuxtxgk1AQtFqQ=; b=M0IleP0sgw16y9WgCJk1fMPr3BfjtpxZ9QmUcTNtm/VRqp4gqZG9O76aHOKECZ8k1g Z6mYeaB9lc3GJVhWOB2wTR/W9jCl81CnBaiEml18OL3SrESnG+UTr8bTk18qv/vWdIiw eZqVN9ghaFBKJw4cSXv2p3pMPuu3h0Z476pppv5gdofex5H+T1nXCRGzGmIq8k94QDv0 MgsFJyI29O5frBN76AC2ZLJH9wGRH3qYHo6SXTOYOjweA4s5yNB3pc5fNKH+cVaHBYUM zIDIwToO9+TGghAO3AVcNdr2ZrhRu6uHjkB7ADCPea+r/10nu/VlR+axewJMzoa+HIt+ Q7Dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752538384; x=1753143184; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wjjlBO5McvqWYarNTItF1TpVtLRk0nuxtxgk1AQtFqQ=; b=R7Ac5GudGb2IakeC/YMqBR3BNf2y9ccKOh+udU4tUDkYW5cXnz0mLQ8arhpR3DJ1aX rjqh29AngxytUgzHQK18hn5583hCGNUdx2GvjRq3BY6oWwHw4G1RMg/u4bpetO0JQXAY 44vZQplLB/MQyTPEncexZfLxBB8+LJpJhClh8Vl2aeMDpJzInsHoWWB8wqx45ikhC0Ow DQSu6p2txERvuDFfO2ckCnrKYLDoD0MS6zVl9Sr017wrk+jSIN4+9niW1A21FUrw2uqv snPV9XKvx2Awks/FXVODxQQX2hs2mqIBtkTsI2kkpVVdBDZMudTKYC4JsHaPZC3/pkN5 d+OA== X-Forwarded-Encrypted: i=1; AJvYcCU/Rrw92LDYTqEcWWKa8lhbYKLjQ2oDj5gP0/RTk0hQNDbBcBTWRY6fzWiRDCjAPvTldlEOF/9FI8gZZoo=@vger.kernel.org X-Gm-Message-State: AOJu0YwOF3ztrgVQ6c9X/WzqY97CURRGVPIzFaMFjNcSY2eUpPwwpNHu 8WmFRIp5GhddofFRvzLhvXrWiH8W28xkUYCifndw5ROchqc2de8UhG52GgfRwa1jKUY= X-Gm-Gg: ASbGnctpzqIdO+fq+lvfu1gHV86VU3bs52LzHbzQ7fZFP7/2s/KqEwdg4ZgyufZ/61R esv9u9NPV5H5uyWzN5cGnlH94+s8aIMLWi9GVt1kRjeCMLkWa7Z7lmk/iEq9PmnN8YirmNd2uZX pPaV9hpTt88CLAX2/IeDhHCnyhEPGWC3rZYHGk3FS38ap5nUrYylWOHP9uFZ9wW/jaVUnUqdJze N9YPJIi07unPP8Bxepp+E0SK+AZKclQcGGLecsbulN+FcvlfsherNtJ1H8m2HZO9Afa9gv4h37K eo95amYc9h0Y3mBivHhofNQeKyjLU08/QMd7gaShAC7y2lJJ50h382bsd2nbuJcDYXSRUm6uPGQ 2vAGh8HUW3rVutvZOT+mz7ldFVEonQp+7fln5/vfOvEMVGPHqrLMa29CfDnr/cDg= X-Google-Smtp-Source: AGHT+IFJd4axtAtvmY0ckIvQbLgd8yggih4zpyTmoTOUg1GtduaU49kxIVWw0qgHHk8eix9/zHH8ow== X-Received: by 2002:a05:6000:e0a:b0:3a4:e841:b236 with SMTP id ffacd0b85a97d-3b5f18cebeemr10550712f8f.33.1752538383914; Mon, 14 Jul 2025 17:13:03 -0700 (PDT) Received: from [192.168.0.35] (188-141-3-146.dynamic.upc.ie. [188.141.3.146]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3b5e8e211dcsm13335901f8f.84.2025.07.14.17.13.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 14 Jul 2025 17:13:03 -0700 (PDT) Message-ID: <0a12879f-dc4a-47fb-87a0-ac4b8bcd4d75@linaro.org> Date: Tue, 15 Jul 2025 01:13:01 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] phy: qcom-mipi-csi2: Add a CSI2 MIPI D-PHY driver To: Vladimir Zapolskiy , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Bryan O'Donoghue , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20250710-x1e-csi2-phy-v1-0-74acbb5b162b@linaro.org> <20250710-x1e-csi2-phy-v1-2-74acbb5b162b@linaro.org> <11b573d5-ce4d-476c-b94c-216d427cd838@linaro.org> <08261aa4-689b-4d6b-bfd2-221c1976d254@linaro.org> From: Bryan O'Donoghue Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 14/07/2025 16:30, Vladimir Zapolskiy wrote: >> >> I think that is genuinely something we should handle in camss-csid.c >> maybe with some meta-data inside of the ports/endpoints.. >> > > This is a CSIPHY property, a CSIPHY hardware configuration and a wiring > of sensors to a CSIPHY. Where is the relation to CSID here? There is no. All the PHY really needs to know is the # of lanes in aggregate, which physical lanes to map to which logical lanes and the pixel clock. We should add additional support to the Kernel's D-PHY API parameters mechanism to support that physical-to-logical mapping but, that's not required for this series or for any currently know upstream user of CAMSS. > Please share at least a device tree node description, which supports > a connection of two sensors to a single CSIPHY, like it shall be done > expectedly. &camss { port@0 { csiphy0_lanes01_ep: endpoint0 { data-lanes = <0 1>; remote-endpoint = <&sensor0_ep>; }; csiphy0_lanes23_ep: endpoint0 { data-lanes = <2 3>; remote-endpoint = <&sensor1_ep>; }; }; }; &csiphy0 { status = "okay"; vdda-0p8-supply = <&vreg_0p8>; vdda-1p2-supply = <&vreg_1p2>; phy-mode = ; }; sensor0 { compatible = "manufacturer,sensor0"; port { sensor0_ep: endpoint { data-lanes = <0 1>; remote-endpoint = <&csiphy0_lanes01_ep>; }; }; }; sensor1 { compatible = "manufacturer,sensor1"; port { sensor1_ep: endpoint { data-lanes = <0 1>; remote-endpoint = <&csiphy1_lanes23_ep>; }; }; }; --- bod