kirkwood-ts219-6282.dts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /dts-v1/;
  2. /include/ "kirkwood-ts219.dtsi"
  3. /include/ "kirkwood-6282.dtsi"
  4. / {
  5. ocp@f1000000 {
  6. pinctrl: pinctrl@10000 {
  7. pinctrl-0 = <&pmx_ram_size &pmx_board_id>;
  8. pinctrl-names = "default";
  9. pmx_ram_size: pmx-ram-size {
  10. /* RAM: 0: 256 MB, 1: 512 MB */
  11. marvell,pins = "mpp36";
  12. marvell,function = "gpio";
  13. };
  14. pmx_reset_button: pmx-reset-button {
  15. marvell,pins = "mpp37";
  16. marvell,function = "gpio";
  17. };
  18. pmx_USB_copy_button: pmx-USB-copy-button {
  19. marvell,pins = "mpp43";
  20. marvell,function = "gpio";
  21. };
  22. pmx_board_id: pmx-board-id {
  23. /* 0: TS-11x, 1: TS-21x */
  24. marvell,pins = "mpp44";
  25. marvell,function = "gpio";
  26. };
  27. };
  28. pcie-controller {
  29. status = "okay";
  30. pcie@2,0 {
  31. status = "okay";
  32. };
  33. };
  34. };
  35. gpio_keys {
  36. compatible = "gpio-keys";
  37. #address-cells = <1>;
  38. #size-cells = <0>;
  39. pinctrl-0 = <&pmx_reset_button &pmx_USB_copy_button>;
  40. pinctrl-names = "default";
  41. button@1 {
  42. label = "USB Copy";
  43. linux,code = <133>;
  44. gpios = <&gpio1 11 1>;
  45. };
  46. button@2 {
  47. label = "Reset";
  48. linux,code = <0x198>;
  49. gpios = <&gpio1 5 1>;
  50. };
  51. };
  52. };