Merge tag 'omap-for-v5.8/dt-missed-signed' of git://git.kernel.org/pub/scm/linux...
authorArnd Bergmann <arnd@arndb.de>
Sun, 28 Jun 2020 12:44:39 +0000 (14:44 +0200)
committerArnd Bergmann <arnd@arndb.de>
Sun, 28 Jun 2020 12:44:41 +0000 (14:44 +0200)
Missed sdhci patch for am3 and am4

I forgot to send a pull request earlier for converting am3 and am4 to
use sdhci-omap driver instead of the old omap_hsmmc driver.

There was a display subsystem related suspend and resume regression found
recently and looks like I forgot to send a pull request for this patch
while debugging the regression. This patch has been tested without the
display subsystem, and has been in Linux next for several weeks now, so
would be good to have merged for v5.8.

* tag 'omap-for-v5.8/dt-missed-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap:
  ARM: dts: Move am33xx and am43xx mmc nodes to sdhci-omap driver

Link: https://lore.kernel.org/r/pull-1591637467-607254@atomide.com
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1  2 
arch/arm/boot/dts/am33xx-l4.dtsi
arch/arm/boot/dts/am33xx.dtsi
arch/arm/boot/dts/am4372.dtsi
arch/arm/boot/dts/am437x-gp-evm.dts
arch/arm/boot/dts/am437x-l4.dtsi
arch/arm/boot/dts/am437x-sk-evm.dts

                        };
                };
  
 -              target-module@31000 {                   /* 0x44e31000, ap 25 40.0 */
 +              timer1_target: target-module@31000 {    /* 0x44e31000, ap 25 40.0 */
                        compatible = "ti,sysc-omap2-timer", "ti,sysc";
 -                      ti,hwmods = "timer1";
                        reg = <0x31000 0x4>,
                              <0x31010 0x4>,
                              <0x31014 0x4>;
                        };
                };
  
 -              target-module@40000 {                   /* 0x48040000, ap 22 1e.0 */
 +              timer2_target: target-module@40000 {    /* 0x48040000, ap 22 1e.0 */
                        compatible = "ti,sysc-omap4-timer", "ti,sysc";
 -                      ti,hwmods = "timer2";
                        reg = <0x40000 0x4>,
                              <0x40010 0x4>,
                              <0x40014 0x4>;
                        ranges = <0x0 0x60000 0x1000>;
  
                        mmc1: mmc@0 {
-                               compatible = "ti,omap4-hsmmc";
-                               ti,dual-volt;
+                               compatible = "ti,am335-sdhci";
                                ti,needs-special-reset;
-                               ti,needs-special-hs-handling;
                                dmas = <&edma_xbar 24 0 0
                                        &edma_xbar 25 0 0>;
                                dma-names = "tx", "rx";
                        ranges = <0x0 0xd8000 0x1000>;
  
                        mmc2: mmc@0 {
-                               compatible = "ti,omap4-hsmmc";
+                               compatible = "ti,am335-sdhci";
                                ti,needs-special-reset;
                                dmas = <&edma 2 0
                                        &edma 3 0>;
                        ranges = <0x0 0x47810000 0x1000>;
  
                        mmc3: mmc@0 {
-                               compatible = "ti,omap4-hsmmc";
+                               compatible = "ti,am335-sdhci";
                                ti,needs-special-reset;
                                interrupts = <29>;
                                reg = <0x0 0x1000>;
+                               status = "disabled";
                        };
                };
  
                              <0x47400010 0x4>;
                        reg-names = "rev", "sysc";
                        ti,sysc-mask = <(SYSC_OMAP4_FREEEMU |
 -                                       SYSC_OMAP2_SOFTRESET)>;
 +                                       SYSC_OMAP4_SOFTRESET)>;
                        ti,sysc-midle = <SYSC_IDLE_FORCE>,
                                        <SYSC_IDLE_NO>,
                                        <SYSC_IDLE_SMART>;
                        clock-names = "fck";
                        #address-cells = <1>;
                        #size-cells = <1>;
 -                      ranges = <0x0 0x47400000 0x5000>;
 +                      ranges = <0x0 0x47400000 0x8000>;
  
                        usb0_phy: usb-phy@1300 {
                                compatible = "ti,am335x-usb-phy";
                #reset-cells = <1>;
        };
  };
 +
 +/* Preferred always-on timer for clocksource */
 +&timer1_target {
 +      ti,no-reset-on-init;
 +      ti,no-idle;
 +      timer@0 {
 +              assigned-clocks = <&timer1_fck>;
 +              assigned-clock-parents = <&sys_clkin_ck>;
 +      };
 +};
 +
 +/* Preferred timer for clockevent */
 +&timer2_target {
 +      ti,no-reset-on-init;
 +      ti,no-idle;
 +      timer@0 {
 +              assigned-clocks = <&timer2_fck>;
 +              assigned-clock-parents = <&sys_clkin_ck>;
 +      };
 +};
                        ranges = <0x0 0x47810000 0x1000>;
  
                        mmc3: mmc@0 {
-                               compatible = "ti,omap4-hsmmc";
+                               compatible = "ti,am437-sdhci";
                                ti,needs-special-reset;
                                interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
                                reg = <0x0 0x1000>;
+                               status = "disabled";
                        };
                };
  
                #reset-cells = <1>;
        };
  };
 +
 +/* Preferred always-on timer for clocksource */
 +&timer1_target {
 +      ti,no-reset-on-init;
 +      ti,no-idle;
 +      timer@0 {
 +              assigned-clocks = <&timer1_fck>;
 +              assigned-clock-parents = <&sys_clkin_ck>;
 +      };
 +};
 +
 +/* Preferred timer for clockevent */
 +&timer2_target {
 +      ti,no-reset-on-init;
 +      ti,no-idle;
 +      timer@0 {
 +              assigned-clocks = <&timer2_fck>;
 +              assigned-clock-parents = <&sys_clkin_ck>;
 +      };
 +};
  
                backlight = <&lcd_bl>;
  
 -              panel-timing {
 -                      clock-frequency = <33000000>;
 -                      hactive = <800>;
 -                      vactive = <480>;
 -                      hfront-porch = <210>;
 -                      hback-porch = <16>;
 -                      hsync-len = <30>;
 -                      vback-porch = <10>;
 -                      vfront-porch = <22>;
 -                      vsync-len = <13>;
 -                      hsync-active = <0>;
 -                      vsync-active = <0>;
 -                      de-active = <1>;
 -                      pixelclk-active = <1>;
 -              };
 -
                port {
                        lcd_in: endpoint {
                                remote-endpoint = <&dpi_out>;
        pinctrl-names = "default", "sleep";
        pinctrl-0 = <&emmc_pins_default>;
        pinctrl-1 = <&emmc_pins_sleep>;
-       ti,non-removable;
+       non-removable;
  };
  
  &mmc3 {
        pinctrl-1 = <&mmc3_pins_sleep>;
        cap-power-off-card;
        keep-power-in-suspend;
-       ti,non-removable;
+       non-removable;
  
        #address-cells = <1>;
        #size-cells = <0>;
  
  &cpsw_emac0 {
        phy-handle = <&ethphy0>;
 -      phy-mode = "rgmii";
 +      phy-mode = "rgmii-rxid";
  };
  
  &elm {
                        };
                };
  
 -              target-module@31000 {                   /* 0x44e31000, ap 24 40.0 */
 +              timer1_target: target-module@31000 {    /* 0x44e31000, ap 24 40.0 */
                        compatible = "ti,sysc-omap2-timer", "ti,sysc";
 -                      ti,hwmods = "timer1";
                        reg = <0x31000 0x4>,
                              <0x31010 0x4>,
                              <0x31014 0x4>;
  
                target-module@86000 {                   /* 0x44e86000, ap 40 70.0 */
                        compatible = "ti,sysc-omap2", "ti,sysc";
 -                      ti,hwmods = "counter_32k";
                        reg = <0x86000 0x4>,
                              <0x86004 0x4>;
                        reg-names = "rev", "sysc";
                        };
                };
  
 -              target-module@40000 {                   /* 0x48040000, ap 18 1e.0 */
 +              timer2_target: target-module@40000 {    /* 0x48040000, ap 18 1e.0 */
                        compatible = "ti,sysc-omap4-timer", "ti,sysc";
 -                      ti,hwmods = "timer2";
                        reg = <0x40000 0x4>,
                              <0x40010 0x4>,
                              <0x40014 0x4>;
                        ranges = <0x0 0x60000 0x1000>;
  
                        mmc1: mmc@0 {
-                               compatible = "ti,omap4-hsmmc";
+                               compatible = "ti,am437-sdhci";
                                reg = <0x0 0x1000>;
-                               ti,dual-volt;
                                ti,needs-special-reset;
                                dmas = <&edma 24 0>,
                                        <&edma 25 0>;
                        ranges = <0x0 0xd8000 0x1000>;
  
                        mmc2: mmc@0 {
-                               compatible = "ti,omap4-hsmmc";
+                               compatible = "ti,am437-sdhci";
                                reg = <0x0 0x1000>;
                                ti,needs-special-reset;
                                dmas = <&edma 2 0>,
  
                enable-gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
  
 -              panel-timing {
 -                      clock-frequency = <9000000>;
 -                      hactive = <480>;
 -                      vactive = <272>;
 -                      hfront-porch = <2>;
 -                      hback-porch = <2>;
 -                      hsync-len = <41>;
 -                      vfront-porch = <2>;
 -                      vback-porch = <2>;
 -                      vsync-len = <10>;
 -                      hsync-active = <0>;
 -                      vsync-active = <0>;
 -                      de-active = <1>;
 -                      pixelclk-active = <1>;
 -              };
 -
                port {
                        lcd_in: endpoint {
                                remote-endpoint = <&dpi_out>;
        pinctrl-1 = <&mmc3_pins_sleep>;
        cap-power-off-card;
        keep-power-in-suspend;
-       ti,non-removable;
+       non-removable;
  
        #address-cells = <1>;
        #size-cells = <0>;
  
  &cpsw_emac0 {
        phy-handle = <&ethphy0>;
 -      phy-mode = "rgmii";
 +      phy-mode = "rgmii-rxid";
        dual_emac_res_vlan = <1>;
  };
  
  &cpsw_emac1 {
        phy-handle = <&ethphy1>;
 -      phy-mode = "rgmii";
 +      phy-mode = "rgmii-rxid";
        dual_emac_res_vlan = <2>;
  };