Loading...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 | # SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause %YAML 1.2 --- $id: http://devicetree.org/schemas/i2c/qcom,i2c-cci.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: Qualcomm Camera Control Interface (CCI) I2C controller maintainers: - Loic Poulain <loic.poulain@linaro.org> - Robert Foss <robert.foss@linaro.org> properties: compatible: enum: - qcom,msm8226-cci - qcom,msm8916-cci - qcom,msm8974-cci - qcom,msm8996-cci - qcom,sdm845-cci - qcom,sm8250-cci - qcom,sm8450-cci "#address-cells": const: 1 "#size-cells": const: 0 clocks: minItems: 3 maxItems: 6 clock-names: minItems: 3 maxItems: 6 interrupts: maxItems: 1 power-domains: maxItems: 1 reg: maxItems: 1 patternProperties: "^i2c-bus@[01]$": $ref: /schemas/i2c/i2c-controller.yaml# unevaluatedProperties: false properties: reg: maxItems: 1 clock-frequency: default: 100000 required: - compatible - clock-names - clocks - interrupts - reg allOf: - if: properties: compatible: contains: enum: - qcom,msm8996-cci then: required: - power-domains - if: properties: compatible: contains: enum: - qcom,msm8226-cci - qcom,msm8916-cci then: properties: i2c-bus@1: false - if: properties: compatible: contains: enum: - qcom,msm8226-cci - qcom,msm8974-cci then: properties: clocks: maxItems: 3 clock-names: items: - const: camss_top_ahb - const: cci_ahb - const: cci - if: properties: compatible: contains: enum: - qcom,msm8916-cci - qcom,msm8996-cci then: properties: clocks: maxItems: 4 clock-names: items: - const: camss_top_ahb - const: cci_ahb - const: cci - const: camss_ahb - if: properties: compatible: contains: enum: - qcom,sdm845-cci then: properties: clocks: minItems: 6 clock-names: items: - const: camnoc_axi - const: soc_ahb - const: slow_ahb_src - const: cpas_ahb - const: cci - const: cci_src - if: properties: compatible: contains: enum: - qcom,sm8250-cci - qcom,sm8450-cci then: properties: clocks: minItems: 5 maxItems: 5 clock-names: items: - const: camnoc_axi - const: slow_ahb_src - const: cpas_ahb - const: cci - const: cci_src additionalProperties: false examples: - | #include <dt-bindings/clock/qcom,camcc-sdm845.h> #include <dt-bindings/gpio/gpio.h> #include <dt-bindings/interrupt-controller/arm-gic.h> cci@ac4a000 { reg = <0x0ac4a000 0x4000>; compatible = "qcom,sdm845-cci"; #address-cells = <1>; #size-cells = <0>; interrupts = <GIC_SPI 460 IRQ_TYPE_EDGE_RISING>; power-domains = <&clock_camcc TITAN_TOP_GDSC>; clocks = <&clock_camcc CAM_CC_CAMNOC_AXI_CLK>, <&clock_camcc CAM_CC_SOC_AHB_CLK>, <&clock_camcc CAM_CC_SLOW_AHB_CLK_SRC>, <&clock_camcc CAM_CC_CPAS_AHB_CLK>, <&clock_camcc CAM_CC_CCI_CLK>, <&clock_camcc CAM_CC_CCI_CLK_SRC>; clock-names = "camnoc_axi", "soc_ahb", "slow_ahb_src", "cpas_ahb", "cci", "cci_src"; assigned-clocks = <&clock_camcc CAM_CC_CAMNOC_AXI_CLK>, <&clock_camcc CAM_CC_CCI_CLK>; assigned-clock-rates = <80000000>, <37500000>; pinctrl-names = "default", "sleep"; pinctrl-0 = <&cci0_default &cci1_default>; pinctrl-1 = <&cci0_sleep &cci1_sleep>; i2c-bus@0 { reg = <0>; clock-frequency = <1000000>; #address-cells = <1>; #size-cells = <0>; camera@10 { compatible = "ovti,ov8856"; reg = <0x10>; reset-gpios = <&tlmm 9 GPIO_ACTIVE_LOW>; pinctrl-names = "default"; pinctrl-0 = <&cam0_default>; clocks = <&clock_camcc CAM_CC_MCLK0_CLK>; clock-names = "xvclk"; clock-frequency = <19200000>; dovdd-supply = <&vreg_lvs1a_1p8>; avdd-supply = <&cam0_avdd_2v8>; dvdd-supply = <&cam0_dvdd_1v2>; port { ov8856_ep: endpoint { link-frequencies = /bits/ 64 <360000000 180000000>; data-lanes = <1 2 3 4>; remote-endpoint = <&csiphy0_ep>; }; }; }; }; cci_i2c1: i2c-bus@1 { reg = <1>; clock-frequency = <1000000>; #address-cells = <1>; #size-cells = <0>; camera@60 { compatible = "ovti,ov7251"; reg = <0x60>; enable-gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>; pinctrl-names = "default"; pinctrl-0 = <&cam3_default>; clocks = <&clock_camcc CAM_CC_MCLK3_CLK>; clock-names = "xclk"; clock-frequency = <24000000>; vdddo-supply = <&vreg_lvs1a_1p8>; vdda-supply = <&cam3_avdd_2v8>; port { ov7251_ep: endpoint { data-lanes = <0 1>; remote-endpoint = <&csiphy3_ep>; }; }; }; }; }; |