blob: efbe93135dbe45e716fb7abf46a8fe9583d89e14 [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001// SPDX-License-Identifier: GPL-2.0-only
Koen Kooi91f62782018-07-17 08:51:49 +02002/*
Alexander A. Klimov75f66812020-07-08 11:34:51 +02003 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
Koen Kooi91f62782018-07-17 08:51:49 +02004 */
5/dts-v1/;
6
7#include "am33xx.dtsi"
8#include "am335x-bone-common.dtsi"
9#include "am335x-boneblack-common.dtsi"
Paul Barkerfeb29cf2021-07-20 09:39:25 +010010#include "am335x-boneblack-hdmi.dtsi"
Paul Barker3ed92652021-07-20 09:39:26 +010011#include "am335x-sancloud-bbe-common.dtsi"
Koen Kooi91f62782018-07-17 08:51:49 +020012#include <dt-bindings/interrupt-controller/irq.h>
13
14/ {
15 model = "SanCloud BeagleBone Enhanced";
16 compatible = "sancloud,am335x-boneenhanced", "ti,am335x-bone-black", "ti,am335x-bone", "ti,am33xx";
17};
18
19&am33xx_pinmux {
Koen Kooi91f62782018-07-17 08:51:49 +020020 mpu6050_pins: pinmux_mpu6050_pins {
21 pinctrl-single,pins = <
Christina Quastc5ebf242019-04-12 18:26:23 +020022 AM33XX_PADCONF(AM335X_PIN_UART0_CTSN, PIN_INPUT, MUX_MODE7) /* uart0_ctsn.gpio1_8 */
Koen Kooi91f62782018-07-17 08:51:49 +020023 >;
24 };
25
26 lps3331ap_pins: pinmux_lps3331ap_pins {
27 pinctrl-single,pins = <
Christina Quastc5ebf242019-04-12 18:26:23 +020028 AM33XX_PADCONF(AM335X_PIN_GPMC_A10, PIN_INPUT, MUX_MODE7) /* gpmc_a10.gpio1_26 */
Koen Kooi91f62782018-07-17 08:51:49 +020029 >;
30 };
31};
32
Koen Kooi91f62782018-07-17 08:51:49 +020033&i2c0 {
34 lps331ap: barometer@5c {
Paul Barker7244c8a2021-08-06 09:59:06 +010035 pinctrl-names = "default";
36 pinctrl-0 = <&lps3331ap_pins>;
Koen Kooi91f62782018-07-17 08:51:49 +020037 compatible = "st,lps331ap-press";
38 st,drdy-int-pin = <1>;
39 reg = <0x5c>;
40 interrupt-parent = <&gpio1>;
41 interrupts = <26 IRQ_TYPE_EDGE_RISING>;
42 };
43
44 mpu6050: accelerometer@68 {
Paul Barker7244c8a2021-08-06 09:59:06 +010045 pinctrl-names = "default";
46 pinctrl-0 = <&mpu6050_pins>;
Koen Kooi91f62782018-07-17 08:51:49 +020047 compatible = "invensense,mpu6050";
48 reg = <0x68>;
49 interrupt-parent = <&gpio0>;
50 interrupts = <2 IRQ_TYPE_EDGE_RISING>;
51 orientation = <0xff 0 0 0 1 0 0 0 0xff>;
52 };
Koen Kooi91f62782018-07-17 08:51:49 +020053};