r8a7744-iwg20m.dtsi 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Device Tree Source for the iWave RZ/G1N Qseven SOM
  4. *
  5. * Copyright (C) 2018 Renesas Electronics Corp.
  6. */
  7. #include "r8a7744.dtsi"
  8. #include <dt-bindings/gpio/gpio.h>
  9. / {
  10. compatible = "iwave,g20m", "renesas,r8a7744";
  11. memory@40000000 {
  12. device_type = "memory";
  13. reg = <0 0x40000000 0 0x40000000>;
  14. };
  15. reg_3p3v: 3p3v {
  16. compatible = "regulator-fixed";
  17. regulator-name = "3P3V";
  18. regulator-min-microvolt = <3300000>;
  19. regulator-max-microvolt = <3300000>;
  20. regulator-always-on;
  21. regulator-boot-on;
  22. };
  23. };
  24. &extal_clk {
  25. clock-frequency = <20000000>;
  26. };
  27. &pfc {
  28. mmcif0_pins: mmc {
  29. groups = "mmc_data8_b", "mmc_ctrl";
  30. function = "mmc";
  31. };
  32. qspi_pins: qspi {
  33. groups = "qspi_ctrl", "qspi_data2";
  34. function = "qspi";
  35. };
  36. sdhi0_pins: sd0 {
  37. groups = "sdhi0_data4", "sdhi0_ctrl";
  38. function = "sdhi0";
  39. power-source = <3300>;
  40. };
  41. };
  42. &mmcif0 {
  43. pinctrl-0 = <&mmcif0_pins>;
  44. pinctrl-names = "default";
  45. vmmc-supply = <&reg_3p3v>;
  46. bus-width = <8>;
  47. non-removable;
  48. status = "okay";
  49. };
  50. &qspi {
  51. pinctrl-0 = <&qspi_pins>;
  52. pinctrl-names = "default";
  53. status = "okay";
  54. /* WARNING - This device contains the bootloader. Handle with care. */
  55. flash: flash@0 {
  56. #address-cells = <1>;
  57. #size-cells = <1>;
  58. compatible = "jedec,spi-nor";
  59. reg = <0>;
  60. spi-max-frequency = <50000000>;
  61. spi-tx-bus-width = <2>;
  62. spi-rx-bus-width = <2>;
  63. m25p,fast-read;
  64. spi-cpol;
  65. spi-cpha;
  66. };
  67. };
  68. &sdhi0 {
  69. pinctrl-0 = <&sdhi0_pins>;
  70. pinctrl-names = "default";
  71. vmmc-supply = <&reg_3p3v>;
  72. vqmmc-supply = <&reg_3p3v>;
  73. cd-gpios = <&gpio7 11 GPIO_ACTIVE_LOW>;
  74. status = "okay";
  75. };