From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (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 7A32B3845DA for ; Sat, 25 Apr 2026 10:56:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777114602; cv=none; b=UX194irR2E5P4oYC7Xd8YJ+C/j3mB7IAIGVYnx2u3DM0gOpNhisJYuRanz+8/yEktTOyYwmx+ivw4ehEqeP3hveFkUZoDRnIrweXqNzOvibY3pL7f22cQmgdl1+W5J7xkF9E/5pbfy8AnbG2VZjWy8+z8+EfraCNQg6joLFBc2s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777114602; c=relaxed/simple; bh=G8vVfNfEog92l5bB0QaSDlC5S4L8KtRUiECZfYd7jNk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=likMPyYRadhpB99X3uvZVmRWDXWhuuq13OAO1LdoPxH5P7UDzBE0eZjIdtDYpperPXohs48zV+P1ioIk1HfsDtjPD86bMWwDjOXVATgOK47fCHXz6j7Z29PlwvF+JJuxTRWrQ+lfSzMY8dH71mc4lDluLnLBSGwFuD1v3wc7iP4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=dkcJXycG; arc=none smtp.client-ip=209.85.214.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="dkcJXycG" Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-2b23fcf90b2so82724275ad.3 for ; Sat, 25 Apr 2026 03:56:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777114601; x=1777719401; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=n09TuySP0iJDtxFxYcR0L3xSG7A7SGVHN224gUHuUN0=; b=dkcJXycGhAbKAjTG2EFXBRakFC5BQLHhN7UYIwTllD03hbqxn6JBqbIc/uMNicOeXz BQdC/4RrCtwBf/cOBB1am0UAxkXnW2FIknAml6gQV4x+L58zCcW02B/WLtqWfXrCwYND sYCuMz2FSF9AnpJmxg/ahXcwfiFu5gHB5aTA9txO2be3hUXUHX2E8VuFray79wBZIqDt ai3H3JYKJFgjmzdNvpwM7Zrvef+BpGic/DkU1Ded3PRxDVSYLAR8jFUdFaSeDSYk69ar Lb5i+ahbbjwsgg55rp/53oupUpQ/qlaZAMrpPQ8hiiYcQdmvLqi+FSXDUwAZw4Ho2zTF WfIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777114601; x=1777719401; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=n09TuySP0iJDtxFxYcR0L3xSG7A7SGVHN224gUHuUN0=; b=HrHBHjv+IXHg2DoFnquohkXj2pAkDTl5M0AWIZxMUZiW7xB0XLcz+u9FPaaoOVNoCN IL2XAhoq7is1koIsgttlZ735sKAnnxAOLZmrQ7Uz8JOa8DlKwHHD/yIOFpmLfWWk5LOA fZQvv6VtJ3+kAZy+Y21hb85BtTsz2h7h0OykXkM7pdfxc2iEaqAmqWQzYLDWdgLtlL7V fr0zwkKrWtym5MRs80Ea7GSn40wfM189fW0g8YNo8ARtSD4vKsZn7LMA2L8rmtFsUAa8 tPTJ0+xAVffLZ/Ths+AlOtOTmcbx10VKg/KI7M0WePqjJlrmVe/dr9YUz3vkSH//5CDS mNzg== X-Forwarded-Encrypted: i=1; AFNElJ8r2IegPCN8c8I9aaJdy6QQtBvq4uagsoWnQRpuVZjFDH9aX4l6g70M8uJocgx2FloUaK4p8T7yc66dEVk=@vger.kernel.org X-Gm-Message-State: AOJu0Yy/4+rQ8b0lOORMuL4n349aunFeiYgpMKkLJ/BoA2442hnTU343 nGv3zcNvE5lp8UwVh2LyLRZAOkvDU4Uzmk4mwylHI7MVATa0dk2eze+Z X-Gm-Gg: AeBDietQUueAQTuPcsTtwspKy1BWEKLHhlDYfmd2F1NB2+8jryOZFL1pHi7+4NgfpPb hoUEF4Bzhd/8Rw2N1ojP3vFAIVEBotjk5ZsnB9b6Zk1nbYRvVWKi5VhfIOs6XKsULyWyBBRAmWU mwPQeUHU/ErKAMkIWrCvC5FpPOnZU2ehYNWKX0jj/Q2/TOHssfNbkg7kQGV+iTTe1N0U5a5IAN4 4Lz+/hbPpsqD8vOEW7U3zCmN/i7SYTRmeVGPuof88U0usH4bwH7JWYU+80ldPrbnVIAG1xZmzMh FYkuVfdlzgw9yTgcP7QrZ2LgRzhp/MjHlCH2Y+WexIOK9Te0we0pzx78WzMsmLYf9QVUcyx7tKG 9UKCm78ogQS4sBgPA3J2Ui1n62MTIbg0D17jBBh6ACQjX2XVSXy8fCHm+DtH/BMZmL4qrj4QV/Y R8uLdIVp8YeEXxTpK052yObin1AIvXqwYONFWbzuc= X-Received: by 2002:a17:902:ca8f:b0:2b2:4cd2:e162 with SMTP id d9443c01a7336-2b5f9f61d80mr253247955ad.34.1777114601035; Sat, 25 Apr 2026 03:56:41 -0700 (PDT) Received: from nuvole ([144.202.86.13]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2b5faa33486sm303832345ad.33.2026.04.25.03.56.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Apr 2026 03:56:40 -0700 (PDT) From: Pengyu Luo To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Martin Kepplinger-Novakovic , Sakari Ailus , Mauro Carvalho Chehab , Hans Verkuil , Martin Kepplinger Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, Pengyu Luo Subject: [PATCH 3/4] arm64: dts: qcom: sc8280xp: gaokun3: add front camera sensor node Date: Sat, 25 Apr 2026 18:52:59 +0800 Message-ID: <20260425105300.745044-4-mitltlatltl@gmail.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260425105300.745044-1-mitltlatltl@gmail.com> References: <20260425105300.745044-1-mitltlatltl@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi846 is found on my Gaokun3, descripting it. Note that it seems that only Goakun3(3.0GHz) version is equipped with Hi846. Goakun3(2.69GHz) version is equipped with S5K4H7. Signed-off-by: Pengyu Luo --- .../boot/dts/qcom/sc8280xp-huawei-gaokun3.dts | 128 ++++++++++++++++++ 1 file changed, 128 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-huawei-gaokun3.dts b/arch/arm64/boot/dts/qcom/sc8280xp-huawei-gaokun3.dts index 9819454abe13..39e559e91289 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-huawei-gaokun3.dts +++ b/arch/arm64/boot/dts/qcom/sc8280xp-huawei-gaokun3.dts @@ -15,6 +15,7 @@ #include #include #include +#include #include #include @@ -27,6 +28,7 @@ / { compatible = "huawei,gaokun3", "qcom,sc8280xp"; aliases { + i2c2 = &cci2_i2c1; i2c4 = &i2c4; i2c15 = &i2c15; serial1 = &uart2; @@ -47,6 +49,21 @@ framebuffer0: framebuffer@c6200000 { }; }; + leds { + compatible = "gpio-leds"; + + pinctrl-0 = <&cam_indicator_en>; + pinctrl-names = "default"; + + privacy_led: privacy-led { + function = LED_FUNCTION_INDICATOR; + color = ; + gpios = <&tlmm 34 GPIO_ACTIVE_HIGH>; + default-state = "off"; + panic-indicator; + }; + }; + wcd938x: audio-codec { compatible = "qcom,wcd9380-codec"; @@ -98,6 +115,20 @@ switch-mode { }; }; + vreg_camf_1p2: regulator-camf-1p2 { + compatible = "regulator-fixed"; + + regulator-name = "vreg_camf_1p2"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + + gpio = <&tlmm 44 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-0 = <&camf_1p2_reg_en>; + pinctrl-names = "default"; + }; + vreg_misc_3p3: regulator-misc-3p3 { compatible = "regulator-fixed"; @@ -462,6 +493,13 @@ vreg_l8c: ldo8 { RPMH_REGULATOR_MODE_HPM>; }; + vreg_l11c: ldo11 { + regulator-name = "vreg_l11c"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-initial-mode = ; + }; + vreg_l12c: ldo12 { regulator-name = "vreg_l12c"; regulator-min-microvolt = <1800000>; @@ -577,6 +615,66 @@ vreg_l10d: ldo10 { }; }; +&camss { + vdda-phy-supply = <&vreg_l6b>; + vdda-pll-supply = <&vreg_l3b>; + + status = "okay"; + + ports { + port@3 { + csiphy3_ep: endpoint@0 { + reg = <0>; + + clock-lanes = <7>; + data-lanes = <0 1 2 3>; + remote-endpoint = <&hi846_ep>; + }; + }; + }; +}; + +&cci2 { + status = "okay"; +}; + +&cci2_i2c1 { + /* On Goakun3(2.69GHz), S5K4H7@2d, image quality is better than hi846 */ + camera_front: camera@20 { + compatible = "hynix,hi846"; + reg = <0x20>; + + pinctrl-0 = <&camf_rgb_default>; + pinctrl-names = "default"; + + clocks = <&camcc CAMCC_MCLK3_CLK>; + + assigned-clocks = <&camcc CAMCC_MCLK3_CLK>; + assigned-clock-rates = <24000000>; + + reset-gpios = <&tlmm 15 GPIO_ACTIVE_LOW>; + vddio-supply = <&vreg_l2c>; + vdda-supply = <&vreg_l11c>; + vddd-supply = <&vreg_camf_1p2>; + + leds = <&privacy_led>; + led-names = "privacy"; + + orientation = <0>; /* Front facing */ + rotation = <0>; + + port { + hi846_ep: endpoint { + data-lanes = <1 2 3 4>; + link-frequencies = /bits/ 64 <80000000 144000000 200000000 288000000>; + remote-endpoint = <&csiphy3_ep>; + }; + }; + }; + + /* actuator???@58, Goakun3(2.69GHz) only, eeprom@50 */ +}; + &dispcc0 { status = "okay"; }; @@ -1318,6 +1416,36 @@ hstp-sw-ctrl-pins { }; }; + cam_indicator_en: cam-indicator-en-state { + pins = "gpio34"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + camf_1p2_reg_en: camf-1p2-reg-en-state { + pins = "gpio44"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + camf_rgb_default: camf-rgb-default-state { + mclk-pins { + pins = "gpio17"; + function = "cam_mclk"; + drive-strength = <6>; + bias-disable; + }; + + sc-rgb-xshut-n-pins { + pins = "gpio15"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + }; + i2c4_default: i2c4-default-state { pins = "gpio171", "gpio172"; function = "qup4"; -- 2.54.0