kirkwood-ts419.dtsi 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Device Tree include file for QNAP TS41X
  4. *
  5. * Copyright (C) 2013, Andrew Lunn <[email protected]>
  6. */
  7. / {
  8. model = "QNAP TS419 family";
  9. compatible = "qnap,ts419", "marvell,kirkwood";
  10. ocp@f1000000 {
  11. pinctrl: pin-controller@10000 {
  12. pinctrl-names = "default";
  13. pmx_USB_copy_button: pmx-USB-copy-button {
  14. marvell,pins = "mpp43";
  15. marvell,function = "gpio";
  16. };
  17. pmx_reset_button: pmx-reset-button {
  18. marvell,pins = "mpp37";
  19. marvell,function = "gpio";
  20. };
  21. /*
  22. * JP1 indicates if an LCD module is installed
  23. * on the serial port (0), or if the port is used
  24. * as a console (1).
  25. */
  26. pmx_jumper_jp1: pmx-jumper_jp1 {
  27. marvell,pins = "mpp45";
  28. marvell,function = "gpio";
  29. };
  30. };
  31. };
  32. gpio_keys {
  33. compatible = "gpio-keys";
  34. #address-cells = <1>;
  35. #size-cells = <0>;
  36. pinctrl-0 = <&pmx_reset_button &pmx_USB_copy_button>;
  37. pinctrl-names = "default";
  38. copy {
  39. label = "USB Copy";
  40. linux,code = <KEY_COPY>;
  41. gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
  42. };
  43. reset {
  44. label = "Reset";
  45. linux,code = <KEY_RESTART>;
  46. gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
  47. };
  48. };
  49. };
  50. &mdio {
  51. status = "okay";
  52. ethphy1: ethernet-phy@1 {
  53. device_type = "ethernet-phy";
  54. /* overwrite reg property in board file */
  55. };
  56. };
  57. &eth1 {
  58. status = "okay";
  59. ethernet1-port@0 {
  60. phy-handle = <&ethphy1>;
  61. };
  62. };