From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-07.mail-europe.com (mail-0701.mail-europe.com [51.83.17.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 77ACD43D51C; Sat, 28 Feb 2026 13:06:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=51.83.17.38 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772283964; cv=none; b=TjGMr13sSzcpA+U9zY+Yc+DcIsU7hh5DXdMF+Wv08tTp1fQ+qVLacSDzL39Te/56BQUhk5GWPklkr1fh6az48epBgKnYOnJ1Nzuc58OYcbiuSexa+hHtkO2awiHzDXpQlcNnopuBpDilcOJiN3bX9eImvO5bX35gqfG2Mic/osc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772283964; c=relaxed/simple; bh=WdHypN4wfT3NsSm0whBTavvlM81jhBrtzWRkailWbhI=; h=Date:To:From:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=AeXz6zdjB61UUZW+fdzpL0uuKXJosgX1xmDDyr9iFsyxLgFFtjszux6jmRbnhzemULjlrvdDfhdoYZCDO23LjfTy1YvDnz2mPxnV1YuvxMoZ+HcKu4LurucoSu4G/r1X4rqL5wHL3u3I+x6L/3tjBq4tJbdOEsMpkR8rQ+uj2FI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=vinarskis.com; spf=fail smtp.mailfrom=vinarskis.com; dkim=pass (2048-bit key) header.d=vinarskis.com header.i=@vinarskis.com header.b=I/H8GKCI; arc=none smtp.client-ip=51.83.17.38 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=vinarskis.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=vinarskis.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=vinarskis.com header.i=@vinarskis.com header.b="I/H8GKCI" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vinarskis.com; s=protonmail; t=1772283946; x=1772543146; bh=kNz7IuwtOBaqLn55GG5myrKDag5tFvNdn5VrQaGUXBc=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=I/H8GKCIVre7XHfw1HxZAAMnDdv/JaaJ+ZDSegZDgYTlC3NqxwGHnizJYI2LXiPMx 0e+IvBywE20H2A51pwh6bJR+6H7m44I6FxU4YstmvCvpZynD2fpeyol63Hmipt/8TT iYoBJJqWCo0v6VW3K4RCH0NLmSO1qCcFqJu6LD1r/90o7Y/BF57Oz6iK/ABPPdsxaf +U3LkD7h5jS6pWYpDL0vYqBco0K67pmw2HAnqB+IE0/fi42Psphb5TeBfREWgYM+eR E7gDZfJMYQyTYOXPDkyMij9EmV+eAg/VM14FNU0jpcylfOWmNTTBOgaX5He9MJ5Yv6 wIilHxbdvWg5Q== Date: Sat, 28 Feb 2026 13:05:41 +0000 To: Bryan O'Donoghue , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley From: Aleksandrs Vinarskis Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 10/11] arm64: dts: qcom: x1e80100-lenovo-yoga-slim7x: Add ov02c10 RGB sensor on CSIPHY4 Message-ID: <7177764d-fff7-465d-9ee4-f8e6f6455787@vinarskis.com> Feedback-ID: 158356072:user:proton X-Pm-Message-ID: 54b720a5066cd0f57cd2fc3306d793ce226eae9f Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2/26/26 15:51, Bryan O'Donoghue wrote: > Add in the RGB sensor on CSIPHY4. > > Signed-off-by: Bryan O'Donoghue Hi Bryan, Thanks for re-spin of this series, > --- > .../boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts | 77 +++++++++++++++= +++++++ > 1 file changed, 77 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts b/a= rch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts > index f10dff1da7f8e..f3f4841ad2c83 100644 > --- a/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts > +++ b/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts > @@ -7,6 +7,7 @@ > =20 > #include > #include > +#include > #include > =20 > #include "hamoa.dtsi" > @@ -856,6 +857,66 @@ &gpu_zap_shader { > =09firmware-name =3D "qcom/x1e80100/LENOVO/83ED/qcdxkmsuc8380.mbn"; > }; > =20 > +&camss { > +=09status =3D "okay"; > + > +=09ports { > +=09=09/* > +=09=09 * port0 =3D> csiphy0 > +=09=09 * port1 =3D> csiphy1 > +=09=09 * port2 =3D> csiphy2 > +=09=09 * port3 =3D> csiphy4 > +=09=09 */ > +=09=09port@3 { > +=09=09=09camss_csiphy4_inep0: endpoint@0 { > +=09=09=09=09clock-lanes =3D <7>; > +=09=09=09=09data-lanes =3D <0 1>; > +=09=09=09=09remote-endpoint =3D <&ov02c10_ep>; > +=09=09=09}; > +=09=09}; > +=09}; > +}; > + > +&cci1 { > +=09status =3D "okay"; > +}; > + > +&cci1_i2c1 { > +=09camera@36 { > +=09=09compatible =3D "ovti,ov02c10"; > +=09=09reg =3D <0x36>; > + > +=09=09reset-gpios =3D <&tlmm 237 GPIO_ACTIVE_LOW>; > +=09=09pinctrl-names =3D "default"; > +=09=09pinctrl-0 =3D <&cam_rgb_default>; > + > +=09=09clocks =3D <&camcc CAM_CC_MCLK4_CLK>; > +=09=09assigned-clocks =3D <&camcc CAM_CC_MCLK4_CLK>; > +=09=09assigned-clock-rates =3D <19200000>; > + > +=09=09orientation =3D <0>; /* front facing */ > + > +=09=09avdd-supply =3D <&vreg_l7m_2p8>; > +=09=09dvdd-supply =3D <&vreg_l2m_1p2>; > +=09=09dovdd-supply =3D <&vreg_l4m_1p8>; It probably got lost around as its been a while since last re-spin: as discussed in private and reported to 'issue' in Linaro's tree on gitlab, these are wrong. l7m/l2m/l4m are regulators used by Lenovo t14s, confirmed by device working and via AeoB dumps [1]. As per respective AeoB dump for Slim7x [2], these should be l7b/l1m/l3m instead. This arrangement was also confirmed working by community members (see discussion in gitlab issue [3])= . I have previously submitted a patch to Linaro tree to have this fixed [4], feel free to squash it with your changes. [1]=20 https://github.com/alexVinarskis/qcom-aeob-dumps/blob/master/lenovo-thinkpa= d-t14s-g6/CAMF_RES_QRD.json#L117-L155 [2]=20 https://github.com/alexVinarskis/qcom-aeob-dumps/blob/master/lenovo-yoga-sl= im7x/CAMF_RES_QRD.json#L116-L154 [3] https://gitlab.com/Linaro/arm64-laptops/linux/-/issues/9 [4] https://gitlab.com/Linaro/arm64-laptops/linux/-/work_items/26 > + > +=09=09port { > +=09=09=09ov02c10_ep: endpoint { > +=09=09=09=09data-lanes =3D <1 2>; > +=09=09=09=09link-frequencies =3D /bits/ 64 <400000000>; > +=09=09=09=09remote-endpoint =3D <&camss_csiphy4_inep0>; > +=09=09=09}; > +=09=09}; > +=09}; > +}; > + > +&csiphy4 { > +=09vdda-0p8-supply =3D <&vreg_l2c_0p8>; > +=09vdda-1p2-supply =3D <&vreg_l1c_1p2>; > + > +=09status =3D "okay"; > +}; > + > &i2c0 { > =09clock-frequency =3D <400000>; > =20 > @@ -1403,6 +1464,22 @@ &tlmm { > =09=09=09 <44 4>, /* SPI (TPM) */ > =09=09=09 <238 1>; /* UFS Reset */ > =20 > +=09cam_rgb_default: cam-rgb-default-state { > +=09=09mclk-pins { > +=09=09=09pins =3D "gpio100"; > +=09=09=09function =3D "cam_aon"; > +=09=09=09drive-strength =3D <16>; > +=09=09=09bias-disable; > +=09=09}; > + > +=09=09reset-n-pins { > +=09=09=09pins =3D "gpio237"; > +=09=09=09function =3D "gpio"; > +=09=09=09drive-strength =3D <2>; > +=09=09=09bias-disable; > +=09=09}; > +=09}; > + While at it, could you please add privacy LEDs gpios for the camera? In the same Linaro gitlab issue [4] I have added fixup patches to enable LED on t14s/slim7x/thena and confirmed them working. Feel free to add those changes directly to your patch. I could of course send them separately once this series lands, but given that its a rather small change, and this initial camera support will be used as ground-truth example by community to enable cameras on their platforms, it would be nice to have privacy indicator included from the very beginning. v4l side that would use this LED was merged a while ago. Thanks, Alex > =09edp_reg_en: edp-reg-en-state { > =09=09pins =3D "gpio70"; > =09=09function =3D "gpio"; >