Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003  * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
0004  */
0005 /dts-v1/;
0006 
0007 #include "am33xx.dtsi"
0008 #include "am335x-bone-common.dtsi"
0009 #include "am335x-boneblack-common.dtsi"
0010 #include "am335x-boneblack-hdmi.dtsi"
0011 #include "am335x-sancloud-bbe-common.dtsi"
0012 #include <dt-bindings/interrupt-controller/irq.h>
0013 
0014 / {
0015         model = "SanCloud BeagleBone Enhanced";
0016         compatible = "sancloud,am335x-boneenhanced", "ti,am335x-bone-black", "ti,am335x-bone", "ti,am33xx";
0017 };
0018 
0019 &am33xx_pinmux {
0020         mpu6050_pins: pinmux_mpu6050_pins {
0021                 pinctrl-single,pins = <
0022                         AM33XX_PADCONF(AM335X_PIN_UART0_CTSN, PIN_INPUT, MUX_MODE7)    /* uart0_ctsn.gpio1_8 */
0023                 >;
0024         };
0025 
0026         lps3331ap_pins: pinmux_lps3331ap_pins {
0027                 pinctrl-single,pins = <
0028                         AM33XX_PADCONF(AM335X_PIN_GPMC_A10, PIN_INPUT, MUX_MODE7)     /* gpmc_a10.gpio1_26 */
0029                 >;
0030         };
0031 };
0032 
0033 &i2c0 {
0034         lps331ap: barometer@5c {
0035                 pinctrl-names = "default";
0036                 pinctrl-0 = <&lps3331ap_pins>;
0037                 compatible = "st,lps331ap-press";
0038                 st,drdy-int-pin = <1>;
0039                 reg = <0x5c>;
0040                 interrupt-parent = <&gpio1>;
0041                 interrupts = <26 IRQ_TYPE_EDGE_RISING>;
0042         };
0043 
0044         mpu6050: accelerometer@68 {
0045                 pinctrl-names = "default";
0046                 pinctrl-0 = <&mpu6050_pins>;
0047                 compatible = "invensense,mpu6050";
0048                 reg = <0x68>;
0049                 interrupt-parent = <&gpio0>;
0050                 interrupts = <2 IRQ_TYPE_EDGE_RISING>;
0051                 orientation = <0xff 0 0 0 1 0 0 0 0xff>;
0052         };
0053 };