kirkwood-ts219-6281.dts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. // SPDX-License-Identifier: GPL-2.0
  2. /dts-v1/;
  3. #include "kirkwood.dtsi"
  4. #include "kirkwood-6281.dtsi"
  5. #include "kirkwood-ts219.dtsi"
  6. / {
  7. ocp@f1000000 {
  8. pinctrl: pin-controller@10000 {
  9. pinctrl-0 = <&pmx_ram_size &pmx_board_id>;
  10. pinctrl-names = "default";
  11. pmx_ram_size: pmx-ram-size {
  12. /* RAM: 0: 256 MB, 1: 512 MB */
  13. marvell,pins = "mpp36";
  14. marvell,function = "gpio";
  15. };
  16. pmx_USB_copy_button: pmx-USB-copy-button {
  17. marvell,pins = "mpp15";
  18. marvell,function = "gpio";
  19. };
  20. pmx_reset_button: pmx-reset-button {
  21. marvell,pins = "mpp16";
  22. marvell,function = "gpio";
  23. };
  24. pmx_board_id: pmx-board-id {
  25. /* 0: TS-11x, 1: TS-21x */
  26. marvell,pins = "mpp44";
  27. marvell,function = "gpio";
  28. };
  29. };
  30. };
  31. gpio_keys {
  32. compatible = "gpio-keys";
  33. #address-cells = <1>;
  34. #size-cells = <0>;
  35. pinctrl-0 = <&pmx_reset_button &pmx_USB_copy_button>;
  36. pinctrl-names = "default";
  37. copy {
  38. label = "USB Copy";
  39. linux,code = <KEY_COPY>;
  40. gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
  41. };
  42. reset {
  43. label = "Reset";
  44. linux,code = <KEY_RESTART>;
  45. gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
  46. };
  47. };
  48. };
  49. &ethphy0 { reg = <8>; };