arm64: dts: qcom: msm8998: Add SDCC2
authorJeffrey Hugo <jhugo@codeaurora.org>
Thu, 15 Nov 2018 17:18:09 +0000 (10:18 -0700)
committerAndy Gross <andy.gross@linaro.org>
Fri, 30 Nov 2018 01:29:03 +0000 (19:29 -0600)
SDCC2 is typically used as the controller for an external SD card slot.

Signed-off-by: Jeffrey Hugo <jhugo@codeaurora.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
arch/arm64/boot/dts/qcom/msm8998.dtsi

index a948d4b..09deee0 100644 (file)
@@ -53,7 +53,7 @@
        };
 
        clocks {
-               xo {
+               xo: xo {
                        compatible = "fixed-clock";
                        #clock-cells = <0>;
                        clock-frequency = <19200000>;
                        #mbox-cells = <1>;
                };
 
+               sdhc2: sdhci@c0a4900 {
+                       compatible = "qcom,sdhci-msm-v4";
+                       reg = <0xc0a4900 0x314>, <0xc0a4000 0x800>;
+                       reg-names = "hc_mem", "core_mem";
+
+                       interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>,
+                                    <GIC_SPI 221 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupt-names = "hc_irq", "pwr_irq";
+
+                       clock-names = "iface", "core", "xo";
+                       clocks = <&gcc GCC_SDCC2_AHB_CLK>,
+                                <&gcc GCC_SDCC2_APPS_CLK>,
+                                <&xo>;
+                       bus-width = <4>;
+                       status = "disabled";
+               };
+
                blsp2_uart1: serial@c1b0000 {
                        compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
                        reg = <0xc1b0000 0x1000>;