r8a779g0-white-hawk-cpu.dtsi 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. /*
  3. * Device Tree Source for the White Hawk CPU board
  4. *
  5. * Copyright (C) 2022 Renesas Electronics Corp.
  6. */
  7. #include "r8a779g0.dtsi"
  8. #include <dt-bindings/gpio/gpio.h>
  9. #include <dt-bindings/input/input.h>
  10. #include <dt-bindings/leds/common.h>
  11. / {
  12. model = "Renesas White Hawk CPU board";
  13. compatible = "renesas,white-hawk-cpu", "renesas,r8a779g0";
  14. aliases {
  15. ethernet0 = &avb0;
  16. serial0 = &hscif0;
  17. };
  18. chosen {
  19. bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
  20. stdout-path = "serial0:921600n8";
  21. };
  22. keys {
  23. compatible = "gpio-keys";
  24. pinctrl-0 = <&keys_pins>;
  25. pinctrl-names = "default";
  26. key-1 {
  27. gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
  28. linux,code = <KEY_1>;
  29. label = "SW47";
  30. wakeup-source;
  31. debounce-interval = <20>;
  32. };
  33. key-2 {
  34. gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
  35. linux,code = <KEY_2>;
  36. label = "SW48";
  37. wakeup-source;
  38. debounce-interval = <20>;
  39. };
  40. key-3 {
  41. gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
  42. linux,code = <KEY_3>;
  43. label = "SW49";
  44. wakeup-source;
  45. debounce-interval = <20>;
  46. };
  47. };
  48. leds {
  49. compatible = "gpio-leds";
  50. led-1 {
  51. gpios = <&gpio7 0 GPIO_ACTIVE_HIGH>;
  52. color = <LED_COLOR_ID_GREEN>;
  53. function = LED_FUNCTION_INDICATOR;
  54. function-enumerator = <1>;
  55. };
  56. led-2 {
  57. gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>;
  58. color = <LED_COLOR_ID_GREEN>;
  59. function = LED_FUNCTION_INDICATOR;
  60. function-enumerator = <2>;
  61. };
  62. led-3 {
  63. gpios = <&gpio7 2 GPIO_ACTIVE_HIGH>;
  64. color = <LED_COLOR_ID_GREEN>;
  65. function = LED_FUNCTION_INDICATOR;
  66. function-enumerator = <3>;
  67. };
  68. };
  69. memory@48000000 {
  70. device_type = "memory";
  71. /* first 128MB is reserved for secure area. */
  72. reg = <0x0 0x48000000 0x0 0x78000000>;
  73. };
  74. memory@480000000 {
  75. device_type = "memory";
  76. reg = <0x4 0x80000000 0x0 0x80000000>;
  77. };
  78. memory@600000000 {
  79. device_type = "memory";
  80. reg = <0x6 0x00000000 0x1 0x00000000>;
  81. };
  82. };
  83. &avb0 {
  84. pinctrl-0 = <&avb0_pins>;
  85. pinctrl-names = "default";
  86. phy-handle = <&phy0>;
  87. tx-internal-delay-ps = <2000>;
  88. status = "okay";
  89. phy0: ethernet-phy@0 {
  90. compatible = "ethernet-phy-id0022.1622",
  91. "ethernet-phy-ieee802.3-c22";
  92. rxc-skew-ps = <1500>;
  93. reg = <0>;
  94. interrupt-parent = <&gpio7>;
  95. interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
  96. reset-gpios = <&gpio7 10 GPIO_ACTIVE_LOW>;
  97. };
  98. };
  99. &extal_clk {
  100. clock-frequency = <16666666>;
  101. };
  102. &extalr_clk {
  103. clock-frequency = <32768>;
  104. };
  105. &hscif0 {
  106. status = "okay";
  107. };
  108. &i2c0 {
  109. pinctrl-0 = <&i2c0_pins>;
  110. pinctrl-names = "default";
  111. status = "okay";
  112. clock-frequency = <400000>;
  113. eeprom@50 {
  114. compatible = "rohm,br24g01", "atmel,24c01";
  115. label = "cpu-board";
  116. reg = <0x50>;
  117. pagesize = <8>;
  118. };
  119. };
  120. &pfc {
  121. pinctrl-0 = <&scif_clk_pins>;
  122. pinctrl-names = "default";
  123. avb0_pins: avb0 {
  124. mux {
  125. groups = "avb0_link", "avb0_mdio", "avb0_rgmii",
  126. "avb0_txcrefclk";
  127. function = "avb0";
  128. };
  129. pins_mdio {
  130. groups = "avb0_mdio";
  131. drive-strength = <21>;
  132. };
  133. pins_mii {
  134. groups = "avb0_rgmii";
  135. drive-strength = <21>;
  136. };
  137. };
  138. hscif0_pins: hscif0 {
  139. groups = "hscif0_data";
  140. function = "hscif0";
  141. };
  142. i2c0_pins: i2c0 {
  143. groups = "i2c0";
  144. function = "i2c0";
  145. };
  146. keys_pins: keys {
  147. pins = "GP_5_0", "GP_5_1", "GP_5_2";
  148. bias-pull-up;
  149. };
  150. scif_clk_pins: scif_clk {
  151. groups = "scif_clk";
  152. function = "scif_clk";
  153. };
  154. };
  155. &scif_clk {
  156. clock-frequency = <24000000>;
  157. };
  158. &rwdt {
  159. timeout-sec = <60>;
  160. status = "okay";
  161. };