omap3-overo-alto35-common.dtsi 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /*
  2. * Copyright (C) 2014 Florian Vaussard, EPFL Mobots group
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. /*
  9. * Alto35 expansion board is manufactured by Gumstix Inc.
  10. */
  11. #include "omap3-overo-common-peripherals.dtsi"
  12. #include "omap3-overo-common-lcd35.dtsi"
  13. #include <dt-bindings/input/input.h>
  14. / {
  15. leds {
  16. compatible = "gpio-leds";
  17. pinctrl-names = "default";
  18. pinctrl-0 = <&led_pins>;
  19. gpio148 {
  20. label = "overo:red:gpio148";
  21. gpios = <&gpio5 20 GPIO_ACTIVE_HIGH>; /* gpio 148 */
  22. };
  23. gpio150 {
  24. label = "overo:yellow:gpio150";
  25. gpios = <&gpio5 22 GPIO_ACTIVE_HIGH>; /* gpio 150 */
  26. };
  27. gpio151 {
  28. label = "overo:blue:gpio151";
  29. gpios = <&gpio5 23 GPIO_ACTIVE_HIGH>; /* gpio 151 */
  30. };
  31. gpio170 {
  32. label = "overo:green:gpio170";
  33. gpios = <&gpio6 10 GPIO_ACTIVE_HIGH>; /* gpio 170 */
  34. };
  35. };
  36. gpio_keys {
  37. compatible = "gpio-keys";
  38. #address-cells = <1>;
  39. #size-cells = <0>;
  40. pinctrl-names = "default";
  41. pinctrl-0 = <&button_pins>;
  42. button0 {
  43. label = "button0";
  44. linux,code = <BTN_0>;
  45. gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; /* gpio_10 */
  46. wakeup-source;
  47. };
  48. };
  49. };
  50. &omap3_pmx_core {
  51. led_pins: pinmux_led_pins {
  52. pinctrl-single,pins = <
  53. OMAP3_CORE1_IOPAD(0x217c, PIN_OUTPUT | MUX_MODE4) /* uart1_tx.gpio_148 */
  54. OMAP3_CORE1_IOPAD(0x2180, PIN_OUTPUT | MUX_MODE4) /* uart1_cts.gpio_150 */
  55. OMAP3_CORE1_IOPAD(0x2182, PIN_OUTPUT | MUX_MODE4) /* uart1_rx.gpio_151 */
  56. OMAP3_CORE1_IOPAD(0x21c6, PIN_OUTPUT | MUX_MODE4) /* hdq_sio.gpio_170 */
  57. >;
  58. };
  59. };
  60. &omap3_pmx_wkup {
  61. button_pins: pinmux_button_pins {
  62. pinctrl-single,pins = <
  63. OMAP3_WKUP_IOPAD(0x2a18, PIN_INPUT | MUX_MODE4) /* sys_clkout1.gpio_10 */
  64. >;
  65. };
  66. };
  67. &usbhshost {
  68. status = "disabled";
  69. };