| 1 |
// SPDX-License-Identifier: BSD-3-Clause |
| 2 |
/* |
| 3 |
* Copyright (c) 2024-2025 Qualcomm Innovation Center, Inc. All rights reserved. |
| 4 |
*/ |
| 5 |
|
| 6 |
/* |
| 7 |
* Camera Sensor overlay on top of leman evk core kit. |
| 8 |
*/ |
| 9 |
|
| 10 |
/dts-v1/; |
| 11 |
/plugin/; |
| 12 |
|
| 13 |
#include <dt-bindings/clock/qcom,sa8775p-camcc.h> |
| 14 |
#include <dt-bindings/gpio/gpio.h> |
| 15 |
|
| 16 |
&{/} { |
| 17 |
vreg_cam1_1p8: vreg_cam1_1p8 { |
| 18 |
compatible = "regulator-fixed"; |
| 19 |
regulator-name = "vreg_cam1_1p8"; |
| 20 |
startup-delay-us = <10000>; |
| 21 |
enable-active-high; |
| 22 |
gpio = <&pmm8654au_0_gpios 8 GPIO_ACTIVE_HIGH>; |
| 23 |
}; |
| 24 |
}; |
| 25 |
|
| 26 |
&camcc { |
| 27 |
status = "okay"; |
| 28 |
}; |
| 29 |
|
| 30 |
&camss { |
| 31 |
vdda-pll-supply = <&vreg_l1c>; |
| 32 |
vdda-phy-supply = <&vreg_l4a>; |
| 33 |
|
| 34 |
status = "okay"; |
| 35 |
|
| 36 |
ports { |
| 37 |
#address-cells = <1>; |
| 38 |
#size-cells = <0>; |
| 39 |
|
| 40 |
port@1 { |
| 41 |
reg = <1>; |
| 42 |
|
| 43 |
csiphy1_ep: endpoint { |
| 44 |
clock-lanes = <7>; |
| 45 |
data-lanes = <0 1 2 3>; |
| 46 |
remote-endpoint = <&imx577_ep1>; |
| 47 |
}; |
| 48 |
}; |
| 49 |
}; |
| 50 |
}; |
| 51 |
|
| 52 |
&cci1 { |
| 53 |
pinctrl-0 = <&cci1_0_default>; |
| 54 |
pinctrl-1 = <&cci1_0_sleep>; |
| 55 |
|
| 56 |
status = "okay"; |
| 57 |
}; |
| 58 |
|
| 59 |
&cci1_i2c0 { |
| 60 |
#address-cells = <1>; |
| 61 |
#size-cells = <0>; |
| 62 |
|
| 63 |
camera@1a { |
| 64 |
compatible = "sony,imx577"; |
| 65 |
reg = <0x1a>; |
| 66 |
|
| 67 |
reset-gpios = <&tlmm 133 GPIO_ACTIVE_LOW>; |
| 68 |
pinctrl-0 = <&cam1_default>; |
| 69 |
pinctrl-names = "default"; |
| 70 |
|
| 71 |
clocks = <&camcc CAM_CC_MCLK1_CLK>; |
| 72 |
assigned-clocks = <&camcc CAM_CC_MCLK1_CLK>; |
| 73 |
assigned-clock-rates = <24000000>; |
| 74 |
|
| 75 |
dovdd-supply = <&vreg_s4a>; |
| 76 |
avdd-supply = <&vreg_cam1_1p8>; |
| 77 |
|
| 78 |
port { |
| 79 |
imx577_ep1: endpoint { |
| 80 |
clock-lanes = <7>; |
| 81 |
link-frequencies = /bits/ 64 <600000000>; |
| 82 |
data-lanes = <0 1 2 3>; |
| 83 |
remote-endpoint = <&csiphy1_ep>; |
| 84 |
}; |
| 85 |
}; |
| 86 |
}; |
| 87 |
}; |
| 88 |
|
| 89 |
&tlmm { |
| 90 |
cam1_default: cam1-default-state { |
| 91 |
mclk-pins { |
| 92 |
pins = "gpio73"; |
| 93 |
function = "cam_mclk"; |
| 94 |
drive-strength = <2>; |
| 95 |
bias-disable; |
| 96 |
}; |
| 97 |
|
| 98 |
rst-pins { |
| 99 |
pins = "gpio133"; |
| 100 |
function = "gpio"; |
| 101 |
drive-strength = <2>; |
| 102 |
bias-disable; |
| 103 |
}; |
| 104 |
}; |
| 105 |
}; |