From patchwork Tue Sep 3 08:39:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juerg Haefliger X-Patchwork-Id: 1979909 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WyfG70YV8z1yZ9 for ; Tue, 3 Sep 2024 18:40:31 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1slP5L-0001S8-HX; Tue, 03 Sep 2024 08:40:23 +0000 Received: from smtp-relay-internal-1.internal ([10.131.114.114] helo=smtp-relay-internal-1.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1slP5J-0001NW-0d for kernel-team@lists.ubuntu.com; Tue, 03 Sep 2024 08:40:21 +0000 Received: from mail-lj1-f200.google.com (mail-lj1-f200.google.com [209.85.208.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id B64493F284 for ; Tue, 3 Sep 2024 08:40:20 +0000 (UTC) Received: by mail-lj1-f200.google.com with SMTP id 38308e7fff4ca-2f403189d83so948231fa.2 for ; Tue, 03 Sep 2024 01:40:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725352820; x=1725957620; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UYB9oygodAIeM9MSB4TNWp97IjhFwYpkptgq5KvHTz8=; b=jpae0X8+n1Ug6a9z+I3WORTgBS3aBeQte8HvKDHrxK+cZdBm6e6D+kPN36QX1R/oJs OnrYEXOjxtaxNhqUGPESu6jj4jY4cajrRWfzpnozZjA28EC82gTJ1VFsHbT3kIPiL2fu ulLchyHjX5kk/fo6KP9yJeGHESrOlJ0gmFKlnEvUJCiDCvQ9j6yTgPAxmmDFyQgMlLvM PYvD05kn/99OW/jq4/jRMuP7Nho3ikv2MrAQAneqMHrWETlKGxkTXGGGPtop81jyt3QY SqlIqXBFfEwqeoIozvqkZ2BwUyTFkGW4bFHJtG/IjLto8T4n+Y4U/x1WtRnPzKXXJAq9 vXTA== X-Gm-Message-State: AOJu0YwXzJlqE83Pk2/jmYAEaoOIA7R36pnV7HHdfUYv3h3confgtts8 wxN8lJ/xg+tO9RffIFvjNpdVhKdmGPkxcbPJofLZjzxnYjx8EXkY0at66tiPVZRZKgDaPZ9Fdza 6qh/nS8MFVmzBsNKWqzdT1h/u47SmpmNCGy60Q0YHPNJE+oHnVWbf9ziEPJH061CfRv+vXFySLM OORAqSEDC0Qg== X-Received: by 2002:a2e:be03:0:b0:2ef:2b45:b71d with SMTP id 38308e7fff4ca-2f6103c83ccmr103768321fa.24.1725352819981; Tue, 03 Sep 2024 01:40:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEU7sH93laELSjkE7E8nam3//M7Y/ombHRUSd+jAsC3/sX3kGeiblnX7er7gpwe/x1A4glRCA== X-Received: by 2002:a2e:be03:0:b0:2ef:2b45:b71d with SMTP id 38308e7fff4ca-2f6103c83ccmr103767811fa.24.1725352819109; Tue, 03 Sep 2024 01:40:19 -0700 (PDT) Received: from localhost ([81.221.247.52]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c226c7bda6sm6238123a12.41.2024.09.03.01.40.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 01:40:18 -0700 (PDT) From: Juerg Haefliger To: kernel-team@lists.ubuntu.com Subject: [O][PATCH 05/21] UBUNTU: SAUCE: arm64: dts: qcom: sc8280xp-x13s: Enable RGB sensor Date: Tue, 3 Sep 2024 10:39:54 +0200 Message-ID: <20240903084010.3746280-6-juerg.haefliger@canonical.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240903084010.3746280-1-juerg.haefliger@canonical.com> References: <20240903084010.3746280-1-juerg.haefliger@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Bryan O'Donoghue Enable the main RGB sensor on the Lenovo x13s a five megapixel 2 lane DPHY MIPI sensor connected to cisphy0. With the pm8008 patches recently applied to the x13s dtsi we can now also enable the RGB sensor. Once done we have all upstream support necessary for the RGB sensor on x13s. Reviewed-by: Vladimir Zapolskiy Signed-off-by: Bryan O'Donoghue Link: https://lore.kernel.org/r/20240806-b4-linux-next-24-07-31-camss-sc8280xp-lenovo-rgb-v2-v3-1-199767fb193d@linaro.org Signed-off-by: Johan Hovold (cherry picked from commit 21927e94caa5ae05ab2361a5c6e63d52624e8381 linux-next) Signed-off-by: Juerg Haefliger --- .../qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts index a7c5a3f5926c..6a28cab97189 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts +++ b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts @@ -592,6 +592,57 @@ vreg_l10d: ldo10 { }; }; +&camss { + vdda-phy-supply = <&vreg_l6d>; + vdda-pll-supply = <&vreg_l4d>; + + status = "okay"; + + ports { + port@0 { + csiphy0_lanes01_ep: endpoint@0 { + reg = <0>; + clock-lanes = <7>; + data-lanes = <0 1>; + remote-endpoint = <&ov5675_ep>; + }; + }; + }; +}; + +&cci2 { + status = "okay"; +}; + +&cci2_i2c1 { + camera@10 { + compatible = "ovti,ov5675"; + reg = <0x10>; + + reset-gpios = <&tlmm 15 GPIO_ACTIVE_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&cam_rgb_default>; + + clocks = <&camcc CAMCC_MCLK3_CLK>; + + orientation = <0>; /* Front facing */ + + avdd-supply = <&vreg_l6q>; + dvdd-supply = <&vreg_l2q>; + dovdd-supply = <&vreg_l7q>; + + port { + ov5675_ep: endpoint { + clock-lanes = <0>; + data-lanes = <1 2>; + link-frequencies = /bits/ 64 <450000000>; + remote-endpoint = <&csiphy0_lanes01_ep>; + }; + }; + + }; +}; + &dispcc0 { status = "okay"; }; @@ -1436,6 +1487,22 @@ cam_indicator_en: cam-indicator-en-state { bias-disable; }; + cam_rgb_default: cam-rgb-default-state { + mclk-pins { + pins = "gpio17"; + function = "cam_mclk"; + drive-strength = <16>; + bias-disable; + }; + + sc-rgb-xshut-n-pins { + pins = "gpio15"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + }; + edp_reg_en: edp-reg-en-state { pins = "gpio25"; function = "gpio";