From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (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 B1F953932D8 for ; Sat, 25 Apr 2026 10:56:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777114603; cv=none; b=e0Gamt3QaeKBjxgjduwHmCJrfzhZS/uK1EGE7hBM5GO42T+MJ38Jz3lUbDQqbup0TvavV6DTXtEyfkiPVs1j0ZAty/3suuMUxRIDUnMWz2VG1FWRcPx0UjJzl/p8MsSVBJnzCPvenEdVGQ7TcLN205DRItq69P2iJiowyq61z8E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777114603; c=relaxed/simple; bh=G8vVfNfEog92l5bB0QaSDlC5S4L8KtRUiECZfYd7jNk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WbcxXv54jAnYAt3kAUKLGk1z/iWbIBPHxcR7B7AV4QJ0QljWxBN/tR+o/CGcQsagVpE/cbC7O7tuu73YVdpz67Ax0S2TFhAE81lgLo26ly1ng1bP+gDcXaCa82S7OahbRbF1yOvlAVSoAzAkjjRc/+0sRXEujTMTBEu7R+HDye8= 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.171 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-f171.google.com with SMTP id d9443c01a7336-2ad9a9be502so54602635ad.0 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=itX6E6TNTezwvYYwpDemxUISPEFXPZR0+bbWFQ0wH9zJuTFQhnWUcDme5yCrW72uFs ybr/q0+lHcm4o0XF1kARxba7rRm7XqjrT+mMX2eUcqygdTqOkW41jKkX1ty23FpK4FUr c0UAnM6/L+FsOLvkrZDjSjXRBKYtdWSekamrrHbMdAr7A5In2lvMEao2CeaHwvWpV61f BSBpISBYhIxE8PrwMFhUZg3hsFzIrhkBe5qQqciilyfm2/2dcayeg/75WRr1ExH1O8EQ UuDd6NWohgf6IrIwhplmLLKJWIWA+XTLevi5X5mLWvr+PLGdjduekoTpS8Cc9YBpLm4a RPPg== X-Forwarded-Encrypted: i=1; AFNElJ/AkWoG6kLQApBvp30mBLszAmJd6ivZYkuXC0yjMKBmJLSV9K0xGrI9PmZuguixxmvHAOd9Y8eohNAn@vger.kernel.org X-Gm-Message-State: AOJu0YxyRsvBr4S1S9XB0gixQ1QBbxINrD4XAFaL8lyJx20E8tQqDA2o ywQNwDh0KV0bPRsHA4wCwpSEx9n9JLakydl+tJEUSE3aR9Qryfo9w6fU X-Gm-Gg: AeBDieu1rjgP+vbv/4yFBCIWLxTw4kamyVAhjshloWwNPwbjNTDPONKvLgbfxFVTFda B9xj9ikOK4csZe+frIVy+6bB4mMJdefFgmemQ4zYhwfSFLdb39zXJtQLWQcKHjaROOaZxC3WiKf 3UY6hf+JLGQc7DCHF+N5t+f/CPip01c+EzYb+u+um9iWwglz8JIqe5OM6bVHWTpmTGXHl5DvVtm JapqT0q1JkKUHTM6qkcD5HFmUmNa9Za+Q9Az+RzyUIy5DOEy9lWobvSI9CxvUj0c3NBrntgOgTA 5OzpRD7C3BO9gbm/17O4YDza6hvDQdBRFabqYH+JE6pyCx+BIiBPqxcO8oCt0V1ZsicGwwqq3z3 FQ1gEMQjCrvgsAxGaKtFkGketcObdLtlkNoKZELMAE2IDns/qPNREj9xMwvKpKX7ltyx+iQG3xb i2OnhDEEMK5vWGGYyaXlII//gQH9kY18OtFZ4O0PM= 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: devicetree@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