kirkwood-ts219-6281.dts 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /dts-v1/;
  2. /include/ "kirkwood-ts219.dtsi"
  3. /include/ "kirkwood-6281.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_USB_copy_button: pmx-USB-copy-button {
  15. marvell,pins = "mpp15";
  16. marvell,function = "gpio";
  17. };
  18. pmx_reset_button: pmx-reset-button {
  19. marvell,pins = "mpp16";
  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. };
  29. gpio_keys {
  30. compatible = "gpio-keys";
  31. #address-cells = <1>;
  32. #size-cells = <0>;
  33. pinctrl-0 = <&pmx_reset_button &pmx_USB_copy_button>;
  34. pinctrl-names = "default";
  35. button@1 {
  36. label = "USB Copy";
  37. linux,code = <133>;
  38. gpios = <&gpio0 15 1>;
  39. };
  40. button@2 {
  41. label = "Reset";
  42. linux,code = <0x198>;
  43. gpios = <&gpio0 16 1>;
  44. };
  45. };
  46. };