]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: sm8650: add description of CCI controllers
authorVladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Wed, 12 Jun 2024 21:58:35 +0000 (00:58 +0300)
committerBjorn Andersson <andersson@kernel.org>
Thu, 15 Aug 2024 02:10:14 +0000 (21:10 -0500)
Qualcomm SM8650 SoC has three CCI controllers with two I2C busses
connected to each of them.

The CCI controllers on SM8650 are compatible with the ones found on
many other older generations of Qualcomm SoCs.

Signed-off-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Link: https://lore.kernel.org/r/20240612215835.1149199-5-vladimir.zapolskiy@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sm8650.dtsi

index 9d9bbb9aca64456fa8e6eee0aad6bd3524dfca8d..01ac3769ffa62ffb83c5c51878e2823e1982eb67 100644 (file)
                        #power-domain-cells = <1>;
                };
 
+               cci0: cci@ac15000 {
+                       compatible = "qcom,sm8650-cci", "qcom,msm8996-cci";
+                       reg = <0 0x0ac15000 0 0x1000>;
+                       interrupts = <GIC_SPI 426 IRQ_TYPE_EDGE_RISING>;
+                       power-domains = <&camcc CAM_CC_TITAN_TOP_GDSC>;
+                       clocks = <&camcc CAM_CC_CAMNOC_AXI_NRT_CLK>,
+                                <&camcc CAM_CC_CPAS_AHB_CLK>,
+                                <&camcc CAM_CC_CCI_0_CLK>;
+                       clock-names = "camnoc_axi",
+                                     "cpas_ahb",
+                                     "cci";
+                       pinctrl-0 = <&cci0_0_default &cci0_1_default>;
+                       pinctrl-1 = <&cci0_0_sleep &cci0_1_sleep>;
+                       pinctrl-names = "default", "sleep";
+                       status = "disabled";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       cci0_i2c0: i2c-bus@0 {
+                               reg = <0>;
+                               clock-frequency = <1000000>;
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                       };
+
+                       cci0_i2c1: i2c-bus@1 {
+                               reg = <1>;
+                               clock-frequency = <1000000>;
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                       };
+               };
+
+               cci1: cci@ac16000 {
+                       compatible = "qcom,sm8650-cci", "qcom,msm8996-cci";
+                       reg = <0 0x0ac16000 0 0x1000>;
+                       interrupts = <GIC_SPI 427 IRQ_TYPE_EDGE_RISING>;
+                       power-domains = <&camcc CAM_CC_TITAN_TOP_GDSC>;
+                       clocks = <&camcc CAM_CC_CAMNOC_AXI_NRT_CLK>,
+                                <&camcc CAM_CC_CPAS_AHB_CLK>,
+                                <&camcc CAM_CC_CCI_1_CLK>;
+                       clock-names = "camnoc_axi",
+                                     "cpas_ahb",
+                                     "cci";
+                       pinctrl-0 = <&cci1_0_default &cci1_1_default>;
+                       pinctrl-1 = <&cci1_0_sleep &cci1_1_sleep>;
+                       pinctrl-names = "default", "sleep";
+                       status = "disabled";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       cci1_i2c0: i2c-bus@0 {
+                               reg = <0>;
+                               clock-frequency = <1000000>;
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                       };
+
+                       cci1_i2c1: i2c-bus@1 {
+                               reg = <1>;
+                               clock-frequency = <1000000>;
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                       };
+               };
+
+               cci2: cci@ac17000 {
+                       compatible = "qcom,sm8650-cci", "qcom,msm8996-cci";
+                       reg = <0 0x0ac17000 0 0x1000>;
+                       interrupts = <GIC_SPI 428 IRQ_TYPE_EDGE_RISING>;
+                       power-domains = <&camcc CAM_CC_TITAN_TOP_GDSC>;
+                       clocks = <&camcc CAM_CC_CAMNOC_AXI_NRT_CLK>,
+                                <&camcc CAM_CC_CPAS_AHB_CLK>,
+                                <&camcc CAM_CC_CCI_2_CLK>;
+                       clock-names = "camnoc_axi",
+                                     "cpas_ahb",
+                                     "cci";
+                       pinctrl-0 = <&cci2_0_default &cci2_1_default>;
+                       pinctrl-1 = <&cci2_0_sleep &cci2_1_sleep>;
+                       pinctrl-names = "default", "sleep";
+                       status = "disabled";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       cci2_i2c0: i2c-bus@0 {
+                               reg = <0>;
+                               clock-frequency = <1000000>;
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                       };
+
+                       cci2_i2c1: i2c-bus@1 {
+                               reg = <1>;
+                               clock-frequency = <1000000>;
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                       };
+               };
+
                camcc: clock-controller@ade0000 {
                        compatible = "qcom,sm8650-camcc";
                        reg = <0 0x0ade0000 0 0x20000>;
 
                        wakeup-parent = <&pdc>;
 
+                       cci0_0_default: cci0-0-default-state {
+                               sda-pins {
+                                       pins = "gpio113";
+                                       function = "cci_i2c_sda";
+                                       drive-strength = <2>;
+                                       bias-pull-up = <2200>;
+                               };
+
+                               scl-pins {
+                                       pins = "gpio114";
+                                       function = "cci_i2c_scl";
+                                       drive-strength = <2>;
+                                       bias-pull-up = <2200>;
+                               };
+                       };
+
+                       cci0_0_sleep: cci0-0-sleep-state {
+                               sda-pins {
+                                       pins = "gpio113";
+                                       function = "cci_i2c_sda";
+                                       drive-strength = <2>;
+                                       bias-pull-down;
+                               };
+
+                               scl-pins {
+                                       pins = "gpio114";
+                                       function = "cci_i2c_scl";
+                                       drive-strength = <2>;
+                                       bias-pull-down;
+                               };
+                       };
+
+                       cci0_1_default: cci0-1-default-state {
+                               sda-pins {
+                                       pins = "gpio115";
+                                       function = "cci_i2c_sda";
+                                       drive-strength = <2>;
+                                       bias-pull-up = <2200>;
+                               };
+
+                               scl-pins {
+                                       pins = "gpio116";
+                                       function = "cci_i2c_scl";
+                                       drive-strength = <2>;
+                                       bias-pull-up = <2200>;
+                               };
+                       };
+
+                       cci0_1_sleep: cci0-1-sleep-state {
+                               sda-pins {
+                                       pins = "gpio115";
+                                       function = "cci_i2c_sda";
+                                       drive-strength = <2>;
+                                       bias-pull-down;
+                               };
+
+                               scl-pins {
+                                       pins = "gpio116";
+                                       function = "cci_i2c_scl";
+                                       drive-strength = <2>;
+                                       bias-pull-down;
+                               };
+                       };
+
+                       cci1_0_default: cci1-0-default-state {
+                               sda-pins {
+                                       pins = "gpio117";
+                                       function = "cci_i2c_sda";
+                                       drive-strength = <2>;
+                                       bias-pull-up = <2200>;
+                               };
+
+                               scl-pins {
+                                       pins = "gpio118";
+                                       function = "cci_i2c_scl";
+                                       drive-strength = <2>;
+                                       bias-pull-up = <2200>;
+                               };
+                       };
+
+                       cci1_0_sleep: cci1-0-sleep-state {
+                               sda-pins {
+                                       pins = "gpio117";
+                                       function = "cci_i2c_sda";
+                                       drive-strength = <2>;
+                                       bias-pull-down;
+                               };
+
+                               scl-pins {
+                                       pins = "gpio118";
+                                       function = "cci_i2c_scl";
+                                       drive-strength = <2>;
+                                       bias-pull-down;
+                               };
+                       };
+
+                       cci1_1_default: cci1-1-default-state {
+                               sda-pins {
+                                       pins = "gpio12";
+                                       function = "cci_i2c_sda";
+                                       drive-strength = <2>;
+                                       bias-pull-up = <2200>;
+                               };
+
+                               scl-pins {
+                                       pins = "gpio13";
+                                       function = "cci_i2c_scl";
+                                       drive-strength = <2>;
+                                       bias-pull-up = <2200>;
+                               };
+                       };
+
+                       cci1_1_sleep: cci1-1-sleep-state {
+                               sda-pins {
+                                       pins = "gpio12";
+                                       function = "cci_i2c_sda";
+                                       drive-strength = <2>;
+                                       bias-pull-down;
+                               };
+
+                               scl-pins {
+                                       pins = "gpio13";
+                                       function = "cci_i2c_scl";
+                                       drive-strength = <2>;
+                                       bias-pull-down;
+                               };
+                       };
+
+                       cci2_0_default: cci2-0-default-state {
+                               sda-pins {
+                                       pins = "gpio112";
+                                       function = "cci_i2c_sda";
+                                       drive-strength = <2>;
+                                       bias-pull-up = <2200>;
+                               };
+
+                               scl-pins {
+                                       pins = "gpio153";
+                                       function = "cci_i2c_scl";
+                                       drive-strength = <2>;
+                                       bias-pull-up = <2200>;
+                               };
+                       };
+
+                       cci2_0_sleep: cci2-0-sleep-state {
+                               sda-pins {
+                                       pins = "gpio112";
+                                       function = "cci_i2c_sda";
+                                       drive-strength = <2>;
+                                       bias-pull-down;
+                               };
+
+                               scl-pins {
+                                       pins = "gpio153";
+                                       function = "cci_i2c_scl";
+                                       drive-strength = <2>;
+                                       bias-pull-down;
+                               };
+                       };
+
+                       cci2_1_default: cci2-1-default-state {
+                               sda-pins {
+                                       pins = "gpio119";
+                                       function = "cci_i2c_sda";
+                                       drive-strength = <2>;
+                                       bias-pull-up = <2200>;
+                               };
+
+                               scl-pins {
+                                       pins = "gpio120";
+                                       function = "cci_i2c_scl";
+                                       drive-strength = <2>;
+                                       bias-pull-up = <2200>;
+                               };
+                       };
+
+                       cci2_1_sleep: cci2-1-sleep-state {
+                               sda-pins {
+                                       pins = "gpio119";
+                                       function = "cci_i2c_sda";
+                                       drive-strength = <2>;
+                                       bias-pull-down;
+                               };
+
+                               scl-pins {
+                                       pins = "gpio120";
+                                       function = "cci_i2c_scl";
+                                       drive-strength = <2>;
+                                       bias-pull-down;
+                               };
+                       };
+
                        hub_i2c0_data_clk: hub-i2c0-data-clk-state {
                                /* SDA, SCL */
                                pins = "gpio64", "gpio65";