kirkwood-ts419.dtsi 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*
  2. * Device Tree include file for QNAP TS41X
  3. *
  4. * Copyright (C) 2013, Andrew Lunn <andrew@lunn.ch>
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License
  8. * as published by the Free Software Foundation; either version
  9. * 2 of the License, or (at your option) any later version.
  10. */
  11. / {
  12. model = "QNAP TS419 family";
  13. compatible = "qnap,ts419", "marvell,kirkwood";
  14. ocp@f1000000 {
  15. pinctrl: pin-controller@10000 {
  16. pinctrl-names = "default";
  17. pmx_USB_copy_button: pmx-USB-copy-button {
  18. marvell,pins = "mpp43";
  19. marvell,function = "gpio";
  20. };
  21. pmx_reset_button: pmx-reset-button {
  22. marvell,pins = "mpp37";
  23. marvell,function = "gpio";
  24. };
  25. /*
  26. * JP1 indicates if an LCD module is installed
  27. * on the serial port (0), or if the port is used
  28. * as a console (1).
  29. */
  30. pmx_jumper_jp1: pmx-jumper_jp1 {
  31. marvell,pins = "mpp45";
  32. marvell,function = "gpio";
  33. };
  34. };
  35. };
  36. gpio_keys {
  37. compatible = "gpio-keys";
  38. #address-cells = <1>;
  39. #size-cells = <0>;
  40. pinctrl-0 = <&pmx_reset_button &pmx_USB_copy_button>;
  41. pinctrl-names = "default";
  42. button@1 {
  43. label = "USB Copy";
  44. linux,code = <KEY_COPY>;
  45. gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
  46. };
  47. button@2 {
  48. label = "Reset";
  49. linux,code = <KEY_RESTART>;
  50. gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
  51. };
  52. };
  53. };
  54. &mdio {
  55. status = "okay";
  56. ethphy1: ethernet-phy@1 {
  57. device_type = "ethernet-phy";
  58. /* overwrite reg property in board file */
  59. };
  60. };
  61. &eth1 {
  62. status = "okay";
  63. ethernet1-port@0 {
  64. phy-handle = <&ethphy1>;
  65. };
  66. };