emev2-kzm9d.dts 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /*
  2. * Device Tree Source for the KZM9D board
  3. *
  4. * Copyright (C) 2013 Renesas Solutions Corp.
  5. *
  6. * This file is licensed under the terms of the GNU General Public License
  7. * version 2. This program is licensed "as is" without any warranty of any
  8. * kind, whether express or implied.
  9. */
  10. /dts-v1/;
  11. #include "emev2.dtsi"
  12. #include <dt-bindings/gpio/gpio.h>
  13. #include <dt-bindings/input/input.h>
  14. #include <dt-bindings/interrupt-controller/irq.h>
  15. / {
  16. model = "EMEV2 KZM9D Board";
  17. compatible = "renesas,kzm9d", "renesas,emev2";
  18. memory {
  19. device_type = "memory";
  20. reg = <0x40000000 0x8000000>;
  21. };
  22. chosen {
  23. bootargs = "console=ttyS1,115200n81 ignore_loglevel root=/dev/nfs ip=dhcp";
  24. };
  25. reg_1p8v: regulator@0 {
  26. compatible = "regulator-fixed";
  27. regulator-name = "fixed-1.8V";
  28. regulator-min-microvolt = <1800000>;
  29. regulator-max-microvolt = <1800000>;
  30. regulator-always-on;
  31. regulator-boot-on;
  32. };
  33. reg_3p3v: regulator@1 {
  34. compatible = "regulator-fixed";
  35. regulator-name = "fixed-3.3V";
  36. regulator-min-microvolt = <3300000>;
  37. regulator-max-microvolt = <3300000>;
  38. regulator-always-on;
  39. regulator-boot-on;
  40. };
  41. lan9220@20000000 {
  42. compatible = "smsc,lan9220", "smsc,lan9115";
  43. reg = <0x20000000 0x10000>;
  44. phy-mode = "mii";
  45. interrupt-parent = <&gpio0>;
  46. interrupts = <1 IRQ_TYPE_EDGE_RISING>;
  47. reg-io-width = <4>;
  48. smsc,irq-active-high;
  49. smsc,irq-push-pull;
  50. vddvario-supply = <&reg_1p8v>;
  51. vdd33a-supply = <&reg_3p3v>;
  52. };
  53. gpio_keys {
  54. compatible = "gpio-keys";
  55. #address-cells = <1>;
  56. #size-cells = <0>;
  57. button@1 {
  58. debounce_interval = <50>;
  59. wakeup = <1>;
  60. label = "DSW2-1";
  61. linux,code = <KEY_1>;
  62. gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
  63. };
  64. button@2 {
  65. debounce_interval = <50>;
  66. wakeup = <1>;
  67. label = "DSW2-2";
  68. linux,code = <KEY_2>;
  69. gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
  70. };
  71. button@3 {
  72. debounce_interval = <50>;
  73. wakeup = <1>;
  74. label = "DSW2-3";
  75. linux,code = <KEY_3>;
  76. gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
  77. };
  78. button@4 {
  79. debounce_interval = <50>;
  80. wakeup = <1>;
  81. label = "DSW2-4";
  82. linux,code = <KEY_4>;
  83. gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
  84. };
  85. };
  86. };