kirkwood-ts219-6282.dts 1.1 KB

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