Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 282EE2741C2 for ; Tue, 1 Jul 2025 12:23:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751372630; cv=none; b=nJo0Y3ob4axRyIN0PFHTR628guCVevD7ILLM46ngIv9gZQEVeoGEKyCNDQoMNEelHLjqRm8EZW2o0xeg4W122rlt3HvCZ/cVz/OkOPbZ+KzmxwXH5CMVifhiFFuoK0ZEHrZPNwNadWcPjKmwaBZ3kExxshB1565m2dRNWnfxZeI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751372630; c=relaxed/simple; bh=NJ124Dp79Lr/97fmwOSr//WxXPtWTp675G0RTga2t9M=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=OfSY7V6XNYHRtUq2qvuTYy9UeZB44SlGjsVodbf0iBOy6RPJK6QtU8OCQubXXKCrfjoMwl0HrOFtiwA43ulssY9MENiYOaBBtlItmiAPvF8oHrs8APt8mVQL2hy9vCgUMuJB81X2OfbJ+jFGMsKogHoqKCc8iF/JoaNWZabUQwg= 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=AA5kOqEB; arc=none smtp.client-ip=209.85.128.53 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="AA5kOqEB" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-4538bc52a8dso36587665e9.2 for ; Tue, 01 Jul 2025 05:23:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1751372626; x=1751977426; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:from :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=fP9MBwzFb18vSW3lc2L/Hc8pl9m7MaNHnOhRmIvCcfk=; b=AA5kOqEB4lYVNPXUaCRx7pSNm4iM/jvh0yJqKr/ps3Jp6NVhiFI/oc7uXgr+0rqlZU tiMwgFtitmG1DJMI07e57jqDRAMjczIRLDfk7AN8ZTDqUUxCs4OTGqdg9vrsaKQXuOdl llr/cFAZdvTuWrC4LmSio1SwgkzijmOggMr0KCzUG3tAg4ZBqykTt9Y9tWGvHrL/dYxM Nx1BEzvyhqHL6IfpUJFdNTxFsIQXpjCc4G3OiDUbkkpEVRR5n9y/ely6LCyW4yh1L2rd yPLpjwbwmCKsYz1II1TbkHtz85vDR0n5MgF8kZNFv7C73YYF1vEBO7U3fbV2GKhtPxvC KLMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751372626; x=1751977426; h=content-transfer-encoding:in-reply-to:content-language:from :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=fP9MBwzFb18vSW3lc2L/Hc8pl9m7MaNHnOhRmIvCcfk=; b=GvyKsgrX2/q4WcyTcwwkKp73ciIu+HIW2zvr0qV8aUjdl95K+o7CJSwivehm8kBRDN mCA/Q6fUWBuI0D8N6gSFa7Rfc3M0BXF3EuNdtdBN+Ourr58bo63xJeFonurxtY1ht2Hu c0ekIq6PiQTstAWngh2IKMrh6Ze8dPNygO9aDPNzuCGufIzDd4tEpubKX7+QslaT+BDx QueQa4d3Dxwe/8U+FKkfQe4pGSivvC98ILc2u8jYUGF32Av9GkQfw17B4EE10RPwWGmR FmGflWNvbcAQAyMPHMmns2vtndnKbQf6PJ9vki5cFdhK/WVOTPID4c8QX4XAmQH4K8o4 avng== X-Forwarded-Encrypted: i=1; AJvYcCWfVubq1snJ/4A+e5NPsmVEwfWQODNWe8fHgaNuFRiOJDVcHRH06hNcFjQeDfXrouOrcvOfjUZgw5/QIhsa@vger.kernel.org X-Gm-Message-State: AOJu0YwfFhuC+JTFLep4PqYYrM8WO8azLZes7B7fepvs07YUPnGHmHuX 5KrP3xt8uUNPNSwEirEh0nS1FruFK/epLXH+oQxHlzF9ZVa0qVBENq3otQRfPIL7vXY= X-Gm-Gg: ASbGncsVWKgdhVqh9Ik0g8H2bKs/HUB+KOb3mvZA40m++q3iFsxb+WVnmhXMFHKwwHY ucCEN21mvMe+hae2HPIPSrKKFjvQngChVhPsOxBZyEcieLyZ9cJbmbkg/c0TQcfWslE2y4XpZKS OzXKMHx7fE2hYWfRKUIm9KQs20xLgsAlbBLdigSX44XkeK+IwlzRwXuOCyX62iytDg4i9oGIjyl QHoYwpBS3LEahNI9i8TkBVddxBlZhMO3VpmLF0zrTtPNcWyYCvWVQRj6yR9kqFBTSFvZzJv3L0V 6tTSYVBNKxQhofQuYmJ3WgkoXM03xj8ueLPbe7xU3uZLHNn/51ejUIMkaBXkOYDbu3qzMxa7M2T kHSbOBG0aZF0GzQFKUhyBw/DsUpsV9xWATfKttQ== X-Google-Smtp-Source: AGHT+IF2T/ew6ItA1dECwcwzpkVi16Ul9/UBVeAKXTtxDNk7WlS01HZkQ9dvJOSWDY34euUgABO/8A== X-Received: by 2002:a05:600c:358d:b0:450:d367:c385 with SMTP id 5b1f17b1804b1-4538ee5d5f8mr200886185e9.16.1751372626384; Tue, 01 Jul 2025 05:23:46 -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 5b1f17b1804b1-4538233c05csm194901555e9.5.2025.07.01.05.23.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Jul 2025 05:23:45 -0700 (PDT) Message-ID: <488281f6-5e5d-4864-8220-63e2a0b2d7f2@linaro.org> Date: Tue, 1 Jul 2025 13:23:44 +0100 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 4/5] arm64: dts: qcom: sdm670-google-sargo: add imx355 front camera To: Richard Acayan , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Sakari Ailus , Tianshu Qiu , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org References: <20250630225944.320755-7-mailingradian@gmail.com> <3qGugliBdtpdHGZzR9xh_974TfJigMYERGVAfqmpCqe1R7O0CLU8FzXVcIESzTIc-SKzpk42ZAx5-38eDX00Eg==@protonmail.internalid> <20250630225944.320755-11-mailingradian@gmail.com> From: Bryan O'Donoghue Content-Language: en-US In-Reply-To: <20250630225944.320755-11-mailingradian@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 30/06/2025 23:59, Richard Acayan wrote: > The Sony IMX355 is the front camera on the Pixel 3a. It is connected to > CSIPHY1 and CCI I2C1, and uses MCLK2. Add support for it. > > Signed-off-by: Richard Acayan > --- > .../boot/dts/qcom/sdm670-google-sargo.dts | 112 ++++++++++++++++++ > 1 file changed, 112 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sdm670-google-sargo.dts b/arch/arm64/boot/dts/qcom/sdm670-google-sargo.dts > index d01422844fbf..0af6a440ecbc 100644 > --- a/arch/arm64/boot/dts/qcom/sdm670-google-sargo.dts > +++ b/arch/arm64/boot/dts/qcom/sdm670-google-sargo.dts > @@ -172,6 +172,34 @@ vreg_s2b_1p05: vreg-s2b-regulator { > regulator-min-microvolt = <1050000>; > regulator-max-microvolt = <1050000>; > }; > + > + cam_front_ldo: cam-front-ldo-regulator { > + compatible = "regulator-fixed"; > + regulator-name = "cam_front_ldo"; > + regulator-min-microvolt = <1352000>; > + regulator-max-microvolt = <1352000>; > + regulator-enable-ramp-delay = <135>; > + > + gpios = <&pm660l_gpios 4 GPIO_ACTIVE_HIGH>; > + enable-active-high; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&cam_front_ldo_pin>; > + }; > + > + cam_vio_ldo: cam-vio-ldo-regulator { > + compatible = "regulator-fixed"; > + regulator-name = "cam_vio_ldo"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-enable-ramp-delay = <233>; > + > + gpios = <&pm660_gpios 13 GPIO_ACTIVE_HIGH>; > + enable-active-high; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&cam_vio_pin>; > + }; > }; > > &apps_rsc { > @@ -392,6 +420,58 @@ vreg_bob: bob { > }; > }; > > +&camss { > + vdda-phy-supply = <&vreg_l1a_1p225>; You've got your 1p2 but looks like you are missing your 0p8 supply > + status = "okay"; > +}; > + > +&camss_endpoint1 { > + clock-lanes = <7>; > + data-lanes = <0 1 2 3>; > + remote-endpoint = <&cam_front_endpoint>; > + status = "okay"; > +}; This looks not like how the other dts are upstream. Does this work and pass the dt checker ? Right now upstream wants something like this &camss { vdda-phy-supply = <&vreg_l5a_0p88>; vdda-pll-supply = <&vreg_l9a_1p2>; status = "okay"; ports { /* The port index denotes CSIPHY id i.e. csiphy2 */ port@2 { csiphy2_ep: endpoint { clock-lanes = <7>; data-lanes = <0 1 2 3>; remote-endpoint = <&imx577_ep>; }; }; }; }; Can the upstream driver actually consume the dt as you specified above ? > + > +&cci { > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <&cci1_default &cam_mclk_default>; > + pinctrl-1 = <&cci1_sleep>; > + > + status = "okay"; > +}; > + > +&cci_i2c1 { > + camera@1a { > + compatible = "sony,imx355"; > + reg = <0x1a>; > + > + clocks = <&camcc CAM_CC_MCLK2_CLK>; > + clock-names = "mclk"; > + > + clock-frequency = <19200000>; > + > + assigned-clocks = <&camcc CAM_CC_MCLK2_CLK>; > + assigned-clock-rates = <24000000>; > + > + reset-gpios = <&tlmm 9 GPIO_ACTIVE_HIGH>; > + > + vana-supply = <&cam_front_ldo>; > + vdig-supply = <&cam_front_ldo>; > + vio-supply = <&cam_vio_ldo>; These are the downstream names, taking imx512/477 as a reference point dovdd-supply = <&vreg_l7f_1p8>; avdd-supply = <&vdc_5v>; dvdd-supply = <&vdc_5v>; I'd guess the data sheet probably has better names like that. --- bod