1*8bab661aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0 2*8bab661aSEmmanuel Vadot/* 3*8bab661aSEmmanuel Vadot * Copyright (c) 2022, Linaro Ltd. 4*8bab661aSEmmanuel Vadot */ 5*8bab661aSEmmanuel Vadot 6*8bab661aSEmmanuel Vadot/dts-v1/; 7*8bab661aSEmmanuel Vadot 8*8bab661aSEmmanuel Vadot#include "sdm845-db845c.dts" 9*8bab661aSEmmanuel Vadot 10*8bab661aSEmmanuel Vadot&camss { 11*8bab661aSEmmanuel Vadot vdda-phy-supply = <&vreg_l1a_0p875>; 12*8bab661aSEmmanuel Vadot vdda-pll-supply = <&vreg_l26a_1p2>; 13*8bab661aSEmmanuel Vadot 14*8bab661aSEmmanuel Vadot status = "okay"; 15*8bab661aSEmmanuel Vadot 16*8bab661aSEmmanuel Vadot ports { 17*8bab661aSEmmanuel Vadot port@0 { 18*8bab661aSEmmanuel Vadot csiphy0_ep: endpoint { 19*8bab661aSEmmanuel Vadot data-lanes = <0 1 2 3>; 20*8bab661aSEmmanuel Vadot remote-endpoint = <&ov8856_ep>; 21*8bab661aSEmmanuel Vadot }; 22*8bab661aSEmmanuel Vadot }; 23*8bab661aSEmmanuel Vadot }; 24*8bab661aSEmmanuel Vadot}; 25*8bab661aSEmmanuel Vadot 26*8bab661aSEmmanuel Vadot&cci { 27*8bab661aSEmmanuel Vadot status = "okay"; 28*8bab661aSEmmanuel Vadot}; 29*8bab661aSEmmanuel Vadot 30*8bab661aSEmmanuel Vadot&cci_i2c0 { 31*8bab661aSEmmanuel Vadot camera@10 { 32*8bab661aSEmmanuel Vadot compatible = "ovti,ov8856"; 33*8bab661aSEmmanuel Vadot reg = <0x10>; 34*8bab661aSEmmanuel Vadot 35*8bab661aSEmmanuel Vadot /* CAM0_RST_N */ 36*8bab661aSEmmanuel Vadot reset-gpios = <&tlmm 9 GPIO_ACTIVE_LOW>; 37*8bab661aSEmmanuel Vadot pinctrl-names = "default"; 38*8bab661aSEmmanuel Vadot pinctrl-0 = <&cam0_default>; 39*8bab661aSEmmanuel Vadot 40*8bab661aSEmmanuel Vadot clocks = <&clock_camcc CAM_CC_MCLK0_CLK>; 41*8bab661aSEmmanuel Vadot clock-names = "xvclk"; 42*8bab661aSEmmanuel Vadot clock-frequency = <19200000>; 43*8bab661aSEmmanuel Vadot 44*8bab661aSEmmanuel Vadot /* 45*8bab661aSEmmanuel Vadot * The &vreg_s4a_1p8 trace is powered on as a, 46*8bab661aSEmmanuel Vadot * so it is represented by a fixed regulator. 47*8bab661aSEmmanuel Vadot * 48*8bab661aSEmmanuel Vadot * The 2.8V vdda-supply and 1.2V vddd-supply regulators 49*8bab661aSEmmanuel Vadot * both have to be enabled through the power management 50*8bab661aSEmmanuel Vadot * gpios. 51*8bab661aSEmmanuel Vadot */ 52*8bab661aSEmmanuel Vadot dovdd-supply = <&vreg_lvs1a_1p8>; 53*8bab661aSEmmanuel Vadot avdd-supply = <&cam0_avdd_2v8>; 54*8bab661aSEmmanuel Vadot dvdd-supply = <&cam0_dvdd_1v2>; 55*8bab661aSEmmanuel Vadot 56*8bab661aSEmmanuel Vadot port { 57*8bab661aSEmmanuel Vadot ov8856_ep: endpoint { 58*8bab661aSEmmanuel Vadot link-frequencies = /bits/ 64 59*8bab661aSEmmanuel Vadot <360000000 180000000>; 60*8bab661aSEmmanuel Vadot data-lanes = <1 2 3 4>; 61*8bab661aSEmmanuel Vadot remote-endpoint = <&csiphy0_ep>; 62*8bab661aSEmmanuel Vadot }; 63*8bab661aSEmmanuel Vadot }; 64*8bab661aSEmmanuel Vadot }; 65*8bab661aSEmmanuel Vadot}; 66*8bab661aSEmmanuel Vadot 67*8bab661aSEmmanuel Vadot&cci_i2c1 { 68*8bab661aSEmmanuel Vadot camera@60 { 69*8bab661aSEmmanuel Vadot compatible = "ovti,ov7251"; 70*8bab661aSEmmanuel Vadot 71*8bab661aSEmmanuel Vadot /* I2C address as per ov7251.txt linux documentation */ 72*8bab661aSEmmanuel Vadot reg = <0x60>; 73*8bab661aSEmmanuel Vadot 74*8bab661aSEmmanuel Vadot /* CAM3_RST_N */ 75*8bab661aSEmmanuel Vadot enable-gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>; 76*8bab661aSEmmanuel Vadot pinctrl-names = "default"; 77*8bab661aSEmmanuel Vadot pinctrl-0 = <&cam3_default>; 78*8bab661aSEmmanuel Vadot 79*8bab661aSEmmanuel Vadot clocks = <&clock_camcc CAM_CC_MCLK3_CLK>; 80*8bab661aSEmmanuel Vadot clock-names = "xclk"; 81*8bab661aSEmmanuel Vadot clock-frequency = <24000000>; 82*8bab661aSEmmanuel Vadot 83*8bab661aSEmmanuel Vadot /* 84*8bab661aSEmmanuel Vadot * The &vreg_s4a_1p8 trace always powered on. 85*8bab661aSEmmanuel Vadot * 86*8bab661aSEmmanuel Vadot * The 2.8V vdda-supply regulator is enabled when the 87*8bab661aSEmmanuel Vadot * vreg_s4a_1p8 trace is pulled high. 88*8bab661aSEmmanuel Vadot * It too is represented by a fixed regulator. 89*8bab661aSEmmanuel Vadot * 90*8bab661aSEmmanuel Vadot * No 1.2V vddd-supply regulator is used. 91*8bab661aSEmmanuel Vadot */ 92*8bab661aSEmmanuel Vadot vdddo-supply = <&vreg_lvs1a_1p8>; 93*8bab661aSEmmanuel Vadot vdda-supply = <&cam3_avdd_2v8>; 94*8bab661aSEmmanuel Vadot 95*8bab661aSEmmanuel Vadot status = "disabled"; 96*8bab661aSEmmanuel Vadot 97*8bab661aSEmmanuel Vadot port { 98*8bab661aSEmmanuel Vadot ov7251_ep: endpoint { 99*8bab661aSEmmanuel Vadot data-lanes = <0 1>; 100*8bab661aSEmmanuel Vadot/* remote-endpoint = <&csiphy3_ep>; */ 101*8bab661aSEmmanuel Vadot }; 102*8bab661aSEmmanuel Vadot }; 103*8bab661aSEmmanuel Vadot }; 104*8bab661aSEmmanuel Vadot}; 105