0002-ARM-stm32-Supply-a-DTS-file-for-the-STM32F469-Discov.patch 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. From a08561ffdfb13986e2628296ccfd42f8a273b729 Mon Sep 17 00:00:00 2001
  2. From: Lee Jones <lee.jones@linaro.org>
  3. Date: Tue, 16 Feb 2016 13:53:47 +0000
  4. Subject: [PATCH] ARM: stm32: Supply a DTS file for the STM32F469 Discovery
  5. board
  6. It's pretty similar to the STM32F429, but there are some
  7. subtle changes required to boot successfully.
  8. Signed-off-by: Lee Jones <lee.jones@linaro.org>
  9. [Thomas: remove rdinit= from /chosen/bootargs.]
  10. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  11. ---
  12. arch/arm/boot/dts/stm32f469-disco.dts | 75 +++++++++++++++++++++++++++++++++++
  13. 1 file changed, 75 insertions(+)
  14. create mode 100644 arch/arm/boot/dts/stm32f469-disco.dts
  15. diff --git a/arch/arm/boot/dts/stm32f469-disco.dts b/arch/arm/boot/dts/stm32f469-disco.dts
  16. new file mode 100644
  17. index 0000000..9e73656
  18. --- /dev/null
  19. +++ b/arch/arm/boot/dts/stm32f469-disco.dts
  20. @@ -0,0 +1,75 @@
  21. +/*
  22. + * Copyright 2016 - Lee Jones <lee.jones@linaro.org>
  23. + *
  24. + * This file is dual-licensed: you can use it either under the terms
  25. + * of the GPL or the X11 license, at your option. Note that this dual
  26. + * licensing only applies to this file, and not this project as a
  27. + * whole.
  28. + *
  29. + * a) This file is free software; you can redistribute it and/or
  30. + * modify it under the terms of the GNU General Public License as
  31. + * published by the Free Software Foundation; either version 2 of the
  32. + * License, or (at your option) any later version.
  33. + *
  34. + * This file is distributed in the hope that it will be useful,
  35. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  36. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  37. + * GNU General Public License for more details.
  38. + *
  39. + * You should have received a copy of the GNU General Public
  40. + * License along with this file; if not, write to the Free
  41. + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
  42. + * MA 02110-1301 USA
  43. + *
  44. + * Or, alternatively,
  45. + *
  46. + * b) Permission is hereby granted, free of charge, to any person
  47. + * obtaining a copy of this software and associated documentation
  48. + * files (the "Software"), to deal in the Software without
  49. + * restriction, including without limitation the rights to use,
  50. + * copy, modify, merge, publish, distribute, sublicense, and/or
  51. + * sell copies of the Software, and to permit persons to whom the
  52. + * Software is furnished to do so, subject to the following
  53. + * conditions:
  54. + *
  55. + * The above copyright notice and this permission notice shall be
  56. + * included in all copies or substantial portions of the Software.
  57. + *
  58. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  59. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  60. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  61. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  62. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  63. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  64. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  65. + * OTHER DEALINGS IN THE SOFTWARE.
  66. + */
  67. +
  68. +/dts-v1/;
  69. +#include "stm32f429.dtsi"
  70. +
  71. +/ {
  72. + model = "STMicroelectronics STM32F469i-DISCO board";
  73. + compatible = "st,stm32f469i-disco", "st,stm32f469";
  74. +
  75. + chosen {
  76. + bootargs = "root=/dev/ram";
  77. + stdout-path = "serial0:115200n8";
  78. + };
  79. +
  80. + memory {
  81. + reg = <0x00000000 0x800000>;
  82. + };
  83. +
  84. + aliases {
  85. + serial0 = &usart3;
  86. + };
  87. +};
  88. +
  89. +&clk_hse {
  90. + clock-frequency = <8000000>;
  91. +};
  92. +
  93. +&usart3 {
  94. + status = "okay";
  95. +};
  96. --
  97. 2.6.4