From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (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 D72881F891D for ; Tue, 4 Mar 2025 09:47:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741081670; cv=none; b=oTfk/QBHHmuSC5gSG3y3kNFSvhHEi97vnE/shCAK6Gf1CuZsyVyo21wSTKwoffs/zWnsKLrJsWcG/3m5cnWG2i+SAUyMKCIQEfsyWw+VJ02PoIl1nVkwJ646OUE3fc6/FALzAPHSk6KLBwctzuE0z2EtzBO6eBzZA4ySs0DG4rg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741081670; c=relaxed/simple; bh=jM+khpR6kSrzXPpnRYBzaNBVw13oVxCaP+gD5x4MJis=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=bsURHiIbL31qRuvbFqTKdTO/yV09tb7j+AaKq67AFAGGp7fSH8noPcNMI8dGdTKzk2oOJUphCT3uC1f5WvMLDPO6J6aA2IO4UlG+IgDaNpJXle9otDC1dm7qWLBLGdg7Yf6MvTrG9UDSFYT0p0AxbC7Y2hNWE5+s1oochrrWKsE= 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=IcqVUBiS; arc=none smtp.client-ip=209.85.128.44 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="IcqVUBiS" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-43995b907cfso34471455e9.3 for ; Tue, 04 Mar 2025 01:47:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741081667; x=1741686467; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=qSm1lg2/FkL1yWeHeKV4bekvslQt2WvmtVqn6o+tUnQ=; b=IcqVUBiSEsldwLum6i7goXFnHY5PQQoIAs7IH1jZYokVylwIVObVHdSZgT8W/0CYle cFti+mk+DD5KnGfDUrhSBDRh0w6JCJ/VOlDvyr4wj51jSD+08/QC7mwpkYtEF9/amLd2 1Z5eeFOpW2LzYRTGb6zIRCrCpRjzha/B9mG34c9ORjz0YkDnMTRXTwnZ4xzYDn5hy0kH EEkFp3gQrVi1x7jMHuAuzU+YHN3ibcQH5ChuH6hCQoyunsv8ilRWqJX4nbJ1GaRij/zg /nPhKxqnEbDvIMJPweVfiYSzECCzo08DijOGcQv3I0ePo1ZLqx4KcXF2Lkf4Zc3L/6G+ V2lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741081667; x=1741686467; h=content-transfer-encoding:in-reply-to:from:content-language :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=qSm1lg2/FkL1yWeHeKV4bekvslQt2WvmtVqn6o+tUnQ=; b=khLpzAz+5G/sSNTEPYHRf2ICcaWb5XCKu5ViW4W443MF/2udLe8S4w4zBbKijcR/wE bX4Bh37ODJGOl3rWnu9hhHeecuCMSQjFi9bB0gtIoEzkeH8OM6A0uGVLwhlORifUPteX 8EENQ7O1XQ945bQgofLIhC9lBUaBA+1MNrXCZ4SLNRpGAYcBIQhyUnPtgVNB4grAHTA2 Y72fboBg6DM0AchJZgnf2dtRryc1ut0qlAbkAlT4NTVwEp+RQrOpUmmHdScNTbx6ZcZY hdSukF1GQTu1jXqqoIksEo/Jv7uZj+BCV7enPh3ASpmJWUbgqoA1xVd9cuZUxQkqB2/5 OReg== X-Forwarded-Encrypted: i=1; AJvYcCUZkffByjBT6AiwWkG6A0JuIy0ujhkRT5LHy7yzlRE32kTI3dC5+MM66SFarL4Z9vqnrChfgf2sbTiA@vger.kernel.org X-Gm-Message-State: AOJu0Yx5p6wn3rkDfroRHRI3AhHZ1cOINFe1wx9MhUIM1pQW/yRtumqx U82/tJ3rGRndDIqxLbKXNISYxRgerCMfn9TTyljo36h0khAGQ4AC0Yw+NMdBAxM= X-Gm-Gg: ASbGnctw3yyWh5Vtrr+Nanzhqilk4sylP35KIirlyuospUojJvdOGkDEsHjyRPa3dm8 YW8VMlpFp/ERQQBRH7K9j2uyIZO7iF4RMwNBZcSNzMWz1ti+oqRVplwn+CE7dmIFjL6b9QRZGsj VO2ff8I0bInRuFzQEVyJyImWIK4J7VdBIjC4YleyoRN9Xkh/QVsCEpFJ1LAnf6X6to9HjNMfVID lg09rOyXN6DCCQuqVVGUmzWPH2zxU2EHhCAXbRKdjFTK5K/X/T40diYmsSPSxI5R0v4f/XUXZfe +/cAUxYxSv6pVgFWGZDfDpnj2TK2zKpqYnVNTztwIqqlXo1tT+10MAMtoqlEBdfw1Nm+boQ/xO2 rUq6gNunmRw== X-Google-Smtp-Source: AGHT+IFDmnK5YYmULhWYfPkCzV4REgmiXkQRXkNfOTnHTpTo4USjUT1kKhF/sQF1HrBw+vy8AZd5Qw== X-Received: by 2002:a05:600c:a03:b0:439:9b19:9e2d with SMTP id 5b1f17b1804b1-43ba6702becmr158936035e9.16.1741081667192; Tue, 04 Mar 2025 01:47:47 -0800 (PST) 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-390e485e13fsm16964961f8f.100.2025.03.04.01.47.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Mar 2025 01:47:46 -0800 (PST) Message-ID: Date: Tue, 4 Mar 2025 09:47:44 +0000 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v14 2/2] arm64: dts: qcom: qcs6490-rb3gen2-vision-mezzanine: Add vision mezzanine To: Jorge Ramirez , Krzysztof Kozlowski Cc: Vikram Sharma , rfoss@kernel.org, todor.too@gmail.com, mchehab@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, andersson@kernel.org, konradybcio@kernel.org, hverkuil-cisco@xs4all.nl, cros-qcom-dts-watchers@chromium.org, catalin.marinas@arm.com, will@kernel.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio References: <20250208225143.2868279-1-quic_vikramsa@quicinc.com> <20250208225143.2868279-3-quic_vikramsa@quicinc.com> Content-Language: en-US From: Bryan O'Donoghue In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 04/03/2025 08:51, Jorge Ramirez wrote: > On 04/03/25 09:40:21, Krzysztof Kozlowski wrote: >> On 04/03/2025 09:36, Jorge Ramirez wrote: >>> On 03/03/25 18:13:20, Krzysztof Kozlowski wrote: >>>> On 08/02/2025 23:51, Vikram Sharma wrote: >>>>> The Vision Mezzanine for the Qualcomm RB3 Gen 2 ships with an imx577 >>>>> camera sensor. Enable IMX577 on the vision mezzanine. >>>>> >>>>> An example media-ctl pipeline for the imx577 is: >>>>> >>>>> media-ctl --reset >>>>> media-ctl -V '"imx577 '17-001a'":0[fmt:SRGGB10/4056x3040 field:none]' >>>> >>>> AFAIU, camss does not support SRGGB10, but only SRGGB10P. >>>> >>>> Based on tests reported on IRC I think this might not have been tested >>>> correctly. >>> >>> I acquired SRGGB10P (10 bit packed) frames from the camera despite the >>> pipeline being set to SRGGB10 (16 bit) samples. >>> >>> so something does not add up. >> >> Then the commands are actually correct, just the camss or media behave >> here a bit unexpected? >> > > setting the pipeline (CSI) as SRGGB10 (16 bit samples) as per below > > media-ctl --reset > media-ctl -v -V '"imx577 '19-001a'":0[fmt:SRGGB10/4056x3040 field:none]' > media-ctl -V '"msm_csiphy3":0[fmt:SRGGB10/4056x3040]' > media-ctl -V '"msm_csid0":0[fmt:SRGGB10/4056x3040]' > media-ctl -V '"msm_vfe0_rdi0":0[fmt:SRGGB10/4056x3040]' > media-ctl -l '"msm_csiphy3":1->"msm_csid0":0[1]' > media-ctl -l '"msm_csid0":1->"msm_vfe0_rdi0":0[1]' > > allows to capture SRGGB10P samples (frames-xxxx.bin files contain 10 bit samples for the size) > > ==> yavta -B capture-mplane -c -I -n 5 -f SRGGB10P -s 4056x3040 -F /dev/video0 > > > shouldnt the CSI need to be set to SRGGB10P instead? > > >> Best regards, >> Krzysztof > No an internal media bus format MEDIA_BUS_FMT_THING is used See 87889f1b7ea40d2544b49c62092e6ef2792dced7 5480b0c67f120a6c293cc5eff72fa1d6a74de504 3c1dfb5a69cf836f513a2a49113ee946a4b9d95d Yavta is specifying a v4l2 pixel format SRGGB10P which then gets translated into a media bus format MEDIA_BUS_FMT_SRGGB10_1X10. I'm not sure what the historical reasons for that are, probably good ones. --- bod