Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
106 lines
1.8 KiB
Plaintext
106 lines
1.8 KiB
Plaintext
// SPDX-License-Identifier: BSD-3-Clause
|
|
/*
|
|
* Copyright (c) 2024-2025 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
*/
|
|
|
|
/*
|
|
* Camera Sensor overlay on top of leman evk core kit.
|
|
*/
|
|
|
|
/dts-v1/;
|
|
/plugin/;
|
|
|
|
#include <dt-bindings/clock/qcom,sa8775p-camcc.h>
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
&{/} {
|
|
vreg_cam1_1p8: vreg_cam1_1p8 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vreg_cam1_1p8";
|
|
startup-delay-us = <10000>;
|
|
enable-active-high;
|
|
gpio = <&pmm8654au_0_gpios 8 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
};
|
|
|
|
&camcc {
|
|
status = "okay";
|
|
};
|
|
|
|
&camss {
|
|
vdda-pll-supply = <&vreg_l1c>;
|
|
vdda-phy-supply = <&vreg_l4a>;
|
|
|
|
status = "okay";
|
|
|
|
ports {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
port@1 {
|
|
reg = <1>;
|
|
|
|
csiphy1_ep: endpoint {
|
|
clock-lanes = <7>;
|
|
data-lanes = <0 1 2 3>;
|
|
remote-endpoint = <&imx577_ep1>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&cci1 {
|
|
pinctrl-0 = <&cci1_0_default>;
|
|
pinctrl-1 = <&cci1_0_sleep>;
|
|
|
|
status = "okay";
|
|
};
|
|
|
|
&cci1_i2c0 {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
camera@1a {
|
|
compatible = "sony,imx577";
|
|
reg = <0x1a>;
|
|
|
|
reset-gpios = <&tlmm 133 GPIO_ACTIVE_LOW>;
|
|
pinctrl-0 = <&cam1_default>;
|
|
pinctrl-names = "default";
|
|
|
|
clocks = <&camcc CAM_CC_MCLK1_CLK>;
|
|
assigned-clocks = <&camcc CAM_CC_MCLK1_CLK>;
|
|
assigned-clock-rates = <24000000>;
|
|
|
|
dovdd-supply = <&vreg_s4a>;
|
|
avdd-supply = <&vreg_cam1_1p8>;
|
|
|
|
port {
|
|
imx577_ep1: endpoint {
|
|
clock-lanes = <7>;
|
|
link-frequencies = /bits/ 64 <600000000>;
|
|
data-lanes = <0 1 2 3>;
|
|
remote-endpoint = <&csiphy1_ep>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&tlmm {
|
|
cam1_default: cam1-default-state {
|
|
mclk-pins {
|
|
pins = "gpio73";
|
|
function = "cam_mclk";
|
|
drive-strength = <2>;
|
|
bias-disable;
|
|
};
|
|
|
|
rst-pins {
|
|
pins = "gpio133";
|
|
function = "gpio";
|
|
drive-strength = <2>;
|
|
bias-disable;
|
|
};
|
|
};
|
|
};
|