omap3-overo-alto35-common.dtsi 1.7 KB

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