kirkwood-ts219-6281.dts 1.1 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_uart0 &pmx_uart1 &pmx_spi
  8. &pmx_twsi0 &pmx_sata0 &pmx_sata1
  9. &pmx_ram_size &pmx_reset_button
  10. &pmx_USB_copy_button &pmx_board_id>;
  11. pinctrl-names = "default";
  12. pmx_ram_size: pmx-ram-size {
  13. /* RAM: 0: 256 MB, 1: 512 MB */
  14. marvell,pins = "mpp36";
  15. marvell,function = "gpio";
  16. };
  17. pmx_USB_copy_button: pmx-USB-copy-button {
  18. marvell,pins = "mpp15";
  19. marvell,function = "gpio";
  20. };
  21. pmx_reset_button: pmx-reset-button {
  22. marvell,pins = "mpp16";
  23. marvell,function = "gpio";
  24. };
  25. pmx_board_id: pmx-board-id {
  26. /* 0: TS-11x, 1: TS-21x */
  27. marvell,pins = "mpp44";
  28. marvell,function = "gpio";
  29. };
  30. };
  31. };
  32. gpio_keys {
  33. compatible = "gpio-keys";
  34. #address-cells = <1>;
  35. #size-cells = <0>;
  36. button@1 {
  37. label = "USB Copy";
  38. linux,code = <133>;
  39. gpios = <&gpio0 15 1>;
  40. };
  41. button@2 {
  42. label = "Reset";
  43. linux,code = <0x198>;
  44. gpios = <&gpio0 16 1>;
  45. };
  46. };
  47. };