]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
arm64: dts: Add PWM and SDHCI DT nodes for Stingray SOC
authorSrinath Mannam <srinath.mannam@broadcom.com>
Fri, 2 Jun 2017 06:34:35 +0000 (12:04 +0530)
committerFlorian Fainelli <f.fainelli@gmail.com>
Tue, 6 Jun 2017 02:07:19 +0000 (19:07 -0700)
The Stingray SoC has two instances of SDHCI controller
and one instance of iProc PWM.

Let's enable above mentioned devices in Stingray DT.

Signed-off-by: Srinath Mannam <srinath.mannam@broadcom.com>
Signed-off-by: Anup Patel <anup.patel@broadcom.com>
Reviewed-by: Ray Jui <ray.jui@broadcom.com>
Reviewed-by: Scott Branden <scott.branden@broadcom.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
arch/arm64/boot/dts/broadcom/stingray/bcm958742-base.dtsi
arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi

index ff59a26be1926d18cbe571e1b43b21a5626a4f10..5dca7d10253bb15bd1657f199889fb48cee76c02 100644 (file)
                serial2 = &uart2;
                serial3 = &uart3;
        };
+
+       sdio0_vddo_ctrl_reg: sdio0_vddo_ctrl {
+               compatible = "regulator-gpio";
+               regulator-name = "sdio0_vddo_ctrl_reg";
+               regulator-type = "voltage";
+               regulator-min-microvolt = <1800000>;
+               regulator-max-microvolt = <3300000>;
+               gpios = <&pca9505 18 0>;
+               states = <3300000 0x0
+                         1800000 0x1>;
+       };
+
+       sdio1_vddo_ctrl_reg: sdio1_vddo_ctrl {
+               compatible = "regulator-gpio";
+               regulator-name = "sdio1_vddo_ctrl_reg";
+               regulator-type = "voltage";
+               regulator-min-microvolt = <1800000>;
+               regulator-max-microvolt = <3300000>;
+               gpios = <&pca9505 19 0>;
+               states = <3300000 0x0
+                         1800000 0x1>;
+       };
 };
 
 &memory { /* Default DRAM banks */
        status = "okay";
 };
 
+&pwm {
+       status = "okay";
+};
+
 &i2c0 {
        status = "okay";
 
                #size-cells = <1>;
        };
 };
+
+&sdio0 {
+       vqmmc-supply = <&sdio0_vddo_ctrl_reg>;
+       non-removable;
+       full-pwr-cycle;
+       status = "okay";
+};
+
+&sdio1 {
+       vqmmc-supply = <&sdio1_vddo_ctrl_reg>;
+       full-pwr-cycle;
+       status = "okay";
+};
index 88a617690ed1973be01e2b4a634d5899460eec89..49933cf16c92c5be6e138eff6110910395a4b287 100644 (file)
 
                #include "stingray-pinctrl.dtsi"
 
+               pwm: pwm@00010000 {
+                       compatible = "brcm,iproc-pwm";
+                       reg = <0x00010000 0x1000>;
+                       clocks = <&crmu_ref25m>;
+                       #pwm-cells = <3>;
+                       status = "disabled";
+               };
+
                i2c0: i2c@000b0000 {
                        compatible = "brcm,iproc-i2c";
                        reg = <0x000b0000 0x100>;
                        brcm,nand-has-wp;
                        status = "disabled";
                };
+
+               sdio0: sdhci@003f1000 {
+                       compatible = "brcm,sdhci-iproc";
+                       reg = <0x003f1000 0x100>;
+                       interrupts = <GIC_SPI 204 IRQ_TYPE_LEVEL_HIGH>;
+                       bus-width = <8>;
+                       clocks = <&sdio0_clk>;
+                       iommus = <&smmu 0x6002 0x0000>;
+                       status = "disabled";
+               };
+
+               sdio1: sdhci@003f2000 {
+                       compatible = "brcm,sdhci-iproc";
+                       reg = <0x003f2000 0x100>;
+                       interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>;
+                       bus-width = <8>;
+                       clocks = <&sdio1_clk>;
+                       iommus = <&smmu 0x6003 0x0000>;
+                       status = "disabled";
+               };
        };
 };