| 1 |
// SPDX-License-Identifier: BSD-3-Clause |
| 2 |
/* |
| 3 |
* SM8550-HDK Rear Camera Card overlay |
| 4 |
* |
| 5 |
* Copyright (c) 2025, Linaro Limited |
| 6 |
*/ |
| 7 |
|
| 8 |
#include <dt-bindings/clock/qcom,sm8550-camcc.h> |
| 9 |
#include <dt-bindings/gpio/gpio.h> |
| 10 |
#include <dt-bindings/leds/common.h> |
| 11 |
|
| 12 |
/dts-v1/; |
| 13 |
/plugin/; |
| 14 |
|
| 15 |
&camss { |
| 16 |
status = "okay"; |
| 17 |
|
| 18 |
vdda-phy-supply = <&vreg_l1e_0p88>; |
| 19 |
vdda-pll-supply = <&vreg_l3e_1p2>; |
| 20 |
|
| 21 |
ports { |
| 22 |
#address-cells = <1>; |
| 23 |
#size-cells = <0>; |
| 24 |
|
| 25 |
port@3 { |
| 26 |
reg = <3>; |
| 27 |
|
| 28 |
csiphy3_ep: endpoint { |
| 29 |
clock-lanes = <4>; |
| 30 |
data-lanes = <0 1 2 3>; |
| 31 |
remote-endpoint = <&cam_tele>; |
| 32 |
}; |
| 33 |
}; |
| 34 |
}; |
| 35 |
}; |
| 36 |
|
| 37 |
&cci1 { |
| 38 |
status = "okay"; |
| 39 |
}; |
| 40 |
|
| 41 |
&cci1_i2c0 { |
| 42 |
#address-cells = <1>; |
| 43 |
#size-cells = <0>; |
| 44 |
|
| 45 |
sensor@10 { |
| 46 |
compatible = "samsung,s5k3m5"; |
| 47 |
reg = <0x10>; |
| 48 |
clocks = <&camcc CAM_CC_MCLK3_CLK>; |
| 49 |
assigned-clocks = <&camcc CAM_CC_MCLK3_CLK>; |
| 50 |
assigned-clock-rates = <24000000>; |
| 51 |
reset-gpios = <&tlmm 119 GPIO_ACTIVE_LOW>; |
| 52 |
pinctrl-0 = <&cam3_default>; |
| 53 |
pinctrl-names = "default"; |
| 54 |
afvdd-supply = <&vreg_l7n_2p96>; |
| 55 |
vdda-supply = <&vreg_l4m_2p8>; |
| 56 |
vddd-supply = <&vreg_l2m_1p056>; |
| 57 |
vddio-supply = <&vreg_l5n_1p8>; |
| 58 |
|
| 59 |
port { |
| 60 |
cam_tele: endpoint { |
| 61 |
link-frequencies = /bits/ 64 <602500000>; |
| 62 |
remote-endpoint = <&csiphy3_ep>; |
| 63 |
}; |
| 64 |
}; |
| 65 |
}; |
| 66 |
}; |
| 67 |
|
| 68 |
&pm8550_flash { |
| 69 |
status = "okay"; |
| 70 |
|
| 71 |
led-0 { |
| 72 |
function = LED_FUNCTION_FLASH; |
| 73 |
color = <LED_COLOR_ID_YELLOW>; |
| 74 |
led-sources = <1>, <4>; |
| 75 |
led-max-microamp = <500000>; |
| 76 |
flash-max-microamp = <2000000>; |
| 77 |
flash-max-timeout-us = <1280000>; |
| 78 |
function-enumerator = <0>; |
| 79 |
}; |
| 80 |
|
| 81 |
led-1 { |
| 82 |
function = LED_FUNCTION_FLASH; |
| 83 |
color = <LED_COLOR_ID_WHITE>; |
| 84 |
led-sources = <2>, <3>; |
| 85 |
led-max-microamp = <500000>; |
| 86 |
flash-max-microamp = <2000000>; |
| 87 |
flash-max-timeout-us = <1280000>; |
| 88 |
function-enumerator = <1>; |
| 89 |
}; |
| 90 |
}; |