Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * Copyright (c) 2022, Linaro Ltd. |
| 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
Tom Rini | 844493d | 2025-01-26 16:17:47 -0600 | [diff] [blame] | 7 | /plugin/; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 8 | |
Tom Rini | 844493d | 2025-01-26 16:17:47 -0600 | [diff] [blame] | 9 | #include <dt-bindings/clock/qcom,camcc-sdm845.h> |
| 10 | #include <dt-bindings/gpio/gpio.h> |
| 11 | |
| 12 | / { |
| 13 | reserved-memory { |
| 14 | linux,cma { |
| 15 | compatible = "shared-dma-pool"; |
| 16 | size = <0x0 0x8000000>; |
| 17 | reusable; |
| 18 | linux,cma-default; |
| 19 | }; |
| 20 | }; |
| 21 | }; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 22 | |
| 23 | &camss { |
| 24 | vdda-phy-supply = <&vreg_l1a_0p875>; |
| 25 | vdda-pll-supply = <&vreg_l26a_1p2>; |
| 26 | |
| 27 | status = "okay"; |
| 28 | |
| 29 | ports { |
| 30 | port@0 { |
| 31 | csiphy0_ep: endpoint { |
| 32 | data-lanes = <0 1 2 3>; |
| 33 | remote-endpoint = <&ov8856_ep>; |
| 34 | }; |
| 35 | }; |
| 36 | }; |
| 37 | }; |
| 38 | |
| 39 | &cci { |
| 40 | status = "okay"; |
| 41 | }; |
| 42 | |
| 43 | &cci_i2c0 { |
Tom Rini | 844493d | 2025-01-26 16:17:47 -0600 | [diff] [blame] | 44 | #address-cells = <1>; |
| 45 | #size-cells = <0>; |
| 46 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 47 | camera@10 { |
| 48 | compatible = "ovti,ov8856"; |
| 49 | reg = <0x10>; |
| 50 | |
| 51 | /* CAM0_RST_N */ |
| 52 | reset-gpios = <&tlmm 9 GPIO_ACTIVE_LOW>; |
| 53 | pinctrl-names = "default"; |
| 54 | pinctrl-0 = <&cam0_default>; |
| 55 | |
| 56 | clocks = <&clock_camcc CAM_CC_MCLK0_CLK>; |
| 57 | clock-names = "xvclk"; |
| 58 | clock-frequency = <19200000>; |
| 59 | |
| 60 | /* |
| 61 | * The &vreg_s4a_1p8 trace is powered on as a, |
| 62 | * so it is represented by a fixed regulator. |
| 63 | * |
| 64 | * The 2.8V vdda-supply and 1.2V vddd-supply regulators |
| 65 | * both have to be enabled through the power management |
| 66 | * gpios. |
| 67 | */ |
| 68 | dovdd-supply = <&vreg_lvs1a_1p8>; |
| 69 | avdd-supply = <&cam0_avdd_2v8>; |
| 70 | dvdd-supply = <&cam0_dvdd_1v2>; |
| 71 | |
| 72 | port { |
| 73 | ov8856_ep: endpoint { |
| 74 | link-frequencies = /bits/ 64 |
| 75 | <360000000 180000000>; |
| 76 | data-lanes = <1 2 3 4>; |
| 77 | remote-endpoint = <&csiphy0_ep>; |
| 78 | }; |
| 79 | }; |
| 80 | }; |
| 81 | }; |