am335x-sancloud-bbe.dts 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
  4. */
  5. /dts-v1/;
  6. #include "am33xx.dtsi"
  7. #include "am335x-bone-common.dtsi"
  8. #include "am335x-boneblack-common.dtsi"
  9. #include "am335x-boneblack-hdmi.dtsi"
  10. #include "am335x-sancloud-bbe-common.dtsi"
  11. #include <dt-bindings/interrupt-controller/irq.h>
  12. / {
  13. model = "SanCloud BeagleBone Enhanced";
  14. compatible = "sancloud,am335x-boneenhanced", "ti,am335x-bone-black", "ti,am335x-bone", "ti,am33xx";
  15. };
  16. &am33xx_pinmux {
  17. mpu6050_pins: pinmux_mpu6050_pins {
  18. pinctrl-single,pins = <
  19. AM33XX_PADCONF(AM335X_PIN_UART0_CTSN, PIN_INPUT, MUX_MODE7) /* uart0_ctsn.gpio1_8 */
  20. >;
  21. };
  22. lps3331ap_pins: pinmux_lps3331ap_pins {
  23. pinctrl-single,pins = <
  24. AM33XX_PADCONF(AM335X_PIN_GPMC_A10, PIN_INPUT, MUX_MODE7) /* gpmc_a10.gpio1_26 */
  25. >;
  26. };
  27. };
  28. &i2c0 {
  29. lps331ap: barometer@5c {
  30. pinctrl-names = "default";
  31. pinctrl-0 = <&lps3331ap_pins>;
  32. compatible = "st,lps331ap-press";
  33. st,drdy-int-pin = <1>;
  34. reg = <0x5c>;
  35. interrupt-parent = <&gpio1>;
  36. interrupts = <26 IRQ_TYPE_EDGE_RISING>;
  37. };
  38. mpu6050: accelerometer@68 {
  39. pinctrl-names = "default";
  40. pinctrl-0 = <&mpu6050_pins>;
  41. compatible = "invensense,mpu6050";
  42. reg = <0x68>;
  43. interrupt-parent = <&gpio0>;
  44. interrupts = <2 IRQ_TYPE_EDGE_RISING>;
  45. orientation = <0xff 0 0 0 1 0 0 0 0xff>;
  46. };
  47. };