]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
dts: Add QC MSM CCI description
authorTodor Tomov <todor.tomov@linaro.org>
Thu, 31 Mar 2016 09:00:30 +0000 (12:00 +0300)
committerTodor Tomov <todor.tomov@linaro.org>
Tue, 7 Jun 2016 15:37:39 +0000 (18:37 +0300)
Signed-off-by: Todor Tomov <todor.tomov@linaro.org>
arch/arm64/boot/dts/qcom/msm8916-pins.dtsi
arch/arm64/boot/dts/qcom/msm8916.dtsi

index 8fce5d1a051fdd86aebe48f5a5b77d2997db7e6d..241b00ef0a95d71c60322f8c012b5112a989c344 100644 (file)
                };
        };
 
+       cci_lines {
+               cci0_default: cci0_default {
+                       pinmux {
+                               function = "cci_i2c";
+                               pins = "gpio29", "gpio30";
+                       };
+                       pinconf {
+                               pins = "gpio29", "gpio30";
+                               drive-strength = <16>;
+                               bias-disable;
+                       };
+               };
+               cci0_sleep: cci0_sleep {
+                       pinmux {
+                               function = "cci_i2c";
+                               pins = "gpio29", "gpio30";
+                       };
+                       pinconf {
+                               pins = "gpio29", "gpio30";
+                               drive-strength = <16>;
+                               bias-disable;
+                       };
+               };
+       };
+
        camera_front_default: camera_front_default {
                pinmux_pwdn {
                        function = "gpio";
index da5cb604be7d542354f682c69c524f3329a6aa33..fc3ac38f5230afe7b66ff299a34024b74ba9eee6 100644 (file)
                        };
                };
 
+               cci: qcom,cci@1b0c000 {
+                       cell-index = <0>;
+                       compatible = "qcom,cci";
+                       reg = <0x1b0c000 0x1000>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg-names = "cci";
+                       interrupts = <GIC_SPI 50 0>;
+                       interrupt-names = "cci";
+                       clocks = <&gcc GCC_CAMSS_TOP_AHB_CLK>,
+                               <&gcc CCI_CLK_SRC>,
+                               <&gcc GCC_CAMSS_CCI_AHB_CLK>,
+                               <&gcc GCC_CAMSS_CCI_CLK>,
+                               <&gcc GCC_CAMSS_AHB_CLK>;
+                       clock-names = "camss_top_ahb_clk",
+                               "cci_src_clk",
+                               "cci_ahb_clk",
+                               "cci_clk",
+                               "camss_ahb_clk";
+                       qcom,clock-rates = <0 19200000 80000000 0 0>;
+                       pinctrl-names = "default", "sleep";
+                       pinctrl-0 = <&cci0_default>;
+                       pinctrl-1 = <&cci0_sleep>;
+                       i2c_freq_100Khz: qcom,i2c_standard_mode {
+                               status = "disabled";
+                       };
+                       i2c_freq_400Khz: qcom,i2c_fast_mode {
+                               status = "disabled";
+                       };
+                       i2c_freq_custom: qcom,i2c_custom_mode {
+                               status = "disabled";
+                       };
+               };
+
                msmgpio: pinctrl@1000000 {
                        compatible = "qcom,msm8916-pinctrl";
                        reg = <0x1000000 0x300000>;
 
 };
 
+&i2c_freq_100Khz {
+       qcom,hw-thigh = <78>;
+       qcom,hw-tlow = <114>;
+       qcom,hw-tsu-sto = <28>;
+       qcom,hw-tsu-sta = <28>;
+       qcom,hw-thd-dat = <10>;
+       qcom,hw-thd-sta = <77>;
+       qcom,hw-tbuf = <118>;
+       qcom,hw-scl-stretch-en = <0>;
+       qcom,hw-trdhld = <6>;
+       qcom,hw-tsp = <1>;
+       status = "ok";
+};
+
+&i2c_freq_400Khz {
+       qcom,hw-thigh = <20>;
+       qcom,hw-tlow = <28>;
+       qcom,hw-tsu-sto = <21>;
+       qcom,hw-tsu-sta = <21>;
+       qcom,hw-thd-dat = <13>;
+       qcom,hw-thd-sta = <18>;
+       qcom,hw-tbuf = <32>;
+       qcom,hw-scl-stretch-en = <0>;
+       qcom,hw-trdhld = <6>;
+       qcom,hw-tsp = <3>;
+       status = "ok";
+};
+
+&i2c_freq_custom {
+       qcom,hw-thigh = <15>;
+       qcom,hw-tlow = <28>;
+       qcom,hw-tsu-sto = <21>;
+       qcom,hw-tsu-sta = <21>;
+       qcom,hw-thd-dat = <13>;
+       qcom,hw-thd-sta = <18>;
+       qcom,hw-tbuf = <25>;
+       qcom,hw-scl-stretch-en = <1>;
+       qcom,hw-trdhld = <6>;
+       qcom,hw-tsp = <3>;
+       status = "ok";
+};
+
+
 #include "msm8916-pins.dtsi"
 #include "msm8916-iommu.dtsi"
 #include "msm8916-coresight.dtsi"