stm32mp157c-odyssey.dts 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
  2. /*
  3. * Copyright (C) 2020 Marcin Sloniewski <[email protected]>.
  4. */
  5. /dts-v1/;
  6. #include "stm32mp157c-odyssey-som.dtsi"
  7. / {
  8. model = "Seeed Studio Odyssey-STM32MP157C Board";
  9. compatible = "seeed,stm32mp157c-odyssey",
  10. "seeed,stm32mp157c-odyssey-som", "st,stm32mp157";
  11. aliases {
  12. ethernet0 = &ethernet0;
  13. serial0 = &uart4;
  14. };
  15. chosen {
  16. stdout-path = "serial0:115200n8";
  17. };
  18. };
  19. &dcmi {
  20. pinctrl-names = "default", "sleep";
  21. pinctrl-0 = <&dcmi_pins_b>;
  22. pinctrl-1 = <&dcmi_sleep_pins_b>;
  23. };
  24. &ethernet0 {
  25. status = "okay";
  26. pinctrl-0 = <&ethernet0_rgmii_pins_a>;
  27. pinctrl-1 = <&ethernet0_rgmii_sleep_pins_a>;
  28. pinctrl-names = "default", "sleep";
  29. phy-mode = "rgmii-id";
  30. max-speed = <1000>;
  31. phy-handle = <&phy0>;
  32. assigned-clocks = <&rcc ETHCK_K>, <&rcc PLL4_P>;
  33. assigned-clock-parents = <&rcc PLL4_P>;
  34. assigned-clock-rates = <125000000>; /* Clock PLL4 to 750Mhz in ATF/U-Boot */
  35. st,eth-clk-sel;
  36. mdio {
  37. #address-cells = <1>;
  38. #size-cells = <0>;
  39. compatible = "snps,dwmac-mdio";
  40. phy0: ethernet-phy@7 { /* KSZ9031RN */
  41. reg = <7>;
  42. reset-gpios = <&gpiog 0 GPIO_ACTIVE_LOW>; /* ETH_RST# */
  43. reset-assert-us = <10000>;
  44. reset-deassert-us = <300>;
  45. };
  46. };
  47. };
  48. &i2c1 {
  49. pinctrl-names = "default", "sleep";
  50. pinctrl-0 = <&i2c1_pins_a>;
  51. pinctrl-1 = <&i2c1_sleep_pins_a>;
  52. i2c-scl-rising-time-ns = <100>;
  53. i2c-scl-falling-time-ns = <7>;
  54. status = "okay";
  55. /delete-property/dmas;
  56. /delete-property/dma-names;
  57. };
  58. &sdmmc1 {
  59. pinctrl-names = "default", "opendrain", "sleep";
  60. pinctrl-0 = <&sdmmc1_b4_pins_a>;
  61. pinctrl-1 = <&sdmmc1_b4_od_pins_a>;
  62. pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
  63. cd-gpios = <&gpioi 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
  64. disable-wp;
  65. st,neg-edge;
  66. bus-width = <4>;
  67. vmmc-supply = <&v3v3>;
  68. status = "okay";
  69. };
  70. &uart4 {
  71. pinctrl-names = "default";
  72. pinctrl-0 = <&uart4_pins_a>;
  73. /delete-property/dmas;
  74. /delete-property/dma-names;
  75. status = "okay";
  76. };