0003-ARM-socfpga-dts-Enable-MMC-support-at-correct-place-.patch 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. From 23d14e4479c925904bc7620a55c66eb8babacbb9 Mon Sep 17 00:00:00 2001
  2. From: Marek Vasut <marex@denx.de>
  3. Date: Mon, 21 Dec 2015 00:42:01 -0600
  4. Subject: [PATCH 03/33] ARM: socfpga: dts: Enable MMC support at correct place
  5. in the DT
  6. The socfpga.dtsi explicitly enabled MMC support, but not all boards are
  7. equiped with an MMC card. There are setups which only have QSPI NOR.
  8. Therefore, disable the MMC support on socfpga.dtsi level and enable it
  9. on per-board basis.
  10. Signed-off-by: Marek Vasut <marex@denx.de>
  11. Cc: Alan Tull <atull@altera.com>
  12. Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
  13. Cc: Marek Vasut <marex@denx.de>
  14. Cc: Olof Johansson <olof@lixom.net>
  15. Cc: Thor Thayer <tthayer@altera.com>
  16. Cc: Vince Bridgers <vbridgers2013@gmail.com>
  17. Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
  18. ---
  19. arch/arm/boot/dts/socfpga.dtsi | 1 +
  20. arch/arm/boot/dts/socfpga_arria5_socdk.dts | 1 +
  21. arch/arm/boot/dts/socfpga_cyclone5_de0_sockit.dts | 1 +
  22. arch/arm/boot/dts/socfpga_cyclone5_socdk.dts | 1 +
  23. arch/arm/boot/dts/socfpga_cyclone5_sockit.dts | 1 +
  24. 5 files changed, 5 insertions(+)
  25. diff --git a/arch/arm/boot/dts/socfpga.dtsi b/arch/arm/boot/dts/socfpga.dtsi
  26. index 39c470e..3ed4abd 100644
  27. --- a/arch/arm/boot/dts/socfpga.dtsi
  28. +++ b/arch/arm/boot/dts/socfpga.dtsi
  29. @@ -677,6 +677,7 @@
  30. #size-cells = <0>;
  31. clocks = <&l4_mp_clk>, <&sdmmc_clk_divided>;
  32. clock-names = "biu", "ciu";
  33. + status = "disabled";
  34. };
  35. ocram: sram@ffff0000 {
  36. diff --git a/arch/arm/boot/dts/socfpga_arria5_socdk.dts b/arch/arm/boot/dts/socfpga_arria5_socdk.dts
  37. index a75a666..3c88678 100644
  38. --- a/arch/arm/boot/dts/socfpga_arria5_socdk.dts
  39. +++ b/arch/arm/boot/dts/socfpga_arria5_socdk.dts
  40. @@ -79,6 +79,7 @@
  41. &mmc0 {
  42. vmmc-supply = <&regulator_3_3v>;
  43. vqmmc-supply = <&regulator_3_3v>;
  44. + status = "okay";
  45. };
  46. &usb1 {
  47. diff --git a/arch/arm/boot/dts/socfpga_cyclone5_de0_sockit.dts b/arch/arm/boot/dts/socfpga_cyclone5_de0_sockit.dts
  48. index 555e9ca..afea364 100644
  49. --- a/arch/arm/boot/dts/socfpga_cyclone5_de0_sockit.dts
  50. +++ b/arch/arm/boot/dts/socfpga_cyclone5_de0_sockit.dts
  51. @@ -100,6 +100,7 @@
  52. &mmc0 {
  53. vmmc-supply = <&regulator_3_3v>;
  54. vqmmc-supply = <&regulator_3_3v>;
  55. + status = "okay";
  56. };
  57. &uart0 {
  58. diff --git a/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts b/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts
  59. index d4d0a28..15e43f4 100644
  60. --- a/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts
  61. +++ b/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts
  62. @@ -84,6 +84,7 @@
  63. cd-gpios = <&portb 18 0>;
  64. vmmc-supply = <&regulator_3_3v>;
  65. vqmmc-supply = <&regulator_3_3v>;
  66. + status = "okay";
  67. };
  68. &usb1 {
  69. diff --git a/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts b/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts
  70. index 48bf651..b61f22f 100644
  71. --- a/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts
  72. +++ b/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts
  73. @@ -80,6 +80,7 @@
  74. &mmc0 {
  75. vmmc-supply = <&regulator_3_3v>;
  76. vqmmc-supply = <&regulator_3_3v>;
  77. + status = "okay";
  78. };
  79. &usb1 {
  80. --
  81. 2.8.1