Paul Barker | 124b303 | 2021-07-12 21:14:10 +0100 | [diff] [blame] | 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 | |
| 7 | #include "am33xx.dtsi" |
| 8 | #include "am335x-bone-common.dtsi" |
| 9 | #include "am335x-boneblack-common.dtsi" |
Paul Barker | 1d49b8d | 2022-04-11 15:41:59 +0000 | [diff] [blame] | 10 | #include "am335x-boneblack-hdmi.dtsi" |
| 11 | #include "am335x-sancloud-bbe-common.dtsi" |
Paul Barker | 124b303 | 2021-07-12 21:14:10 +0100 | [diff] [blame] | 12 | #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 { |
Paul Barker | 124b303 | 2021-07-12 21:14:10 +0100 | [diff] [blame] | 20 | mpu6050_pins: pinmux_mpu6050_pins { |
| 21 | pinctrl-single,pins = < |
| 22 | AM33XX_PADCONF(AM335X_PIN_UART0_CTSN, PIN_INPUT, MUX_MODE7) /* uart0_ctsn.gpio1_8 */ |
| 23 | >; |
| 24 | }; |
| 25 | |
| 26 | lps3331ap_pins: pinmux_lps3331ap_pins { |
| 27 | pinctrl-single,pins = < |
| 28 | AM33XX_PADCONF(AM335X_PIN_GPMC_A10, PIN_INPUT, MUX_MODE7) /* gpmc_a10.gpio1_26 */ |
| 29 | >; |
| 30 | }; |
| 31 | }; |
| 32 | |
Paul Barker | 124b303 | 2021-07-12 21:14:10 +0100 | [diff] [blame] | 33 | &i2c0 { |
| 34 | lps331ap: barometer@5c { |
Paul Barker | 1d49b8d | 2022-04-11 15:41:59 +0000 | [diff] [blame] | 35 | pinctrl-names = "default"; |
| 36 | pinctrl-0 = <&lps3331ap_pins>; |
Paul Barker | 124b303 | 2021-07-12 21:14:10 +0100 | [diff] [blame] | 37 | 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 Barker | 1d49b8d | 2022-04-11 15:41:59 +0000 | [diff] [blame] | 45 | pinctrl-names = "default"; |
| 46 | pinctrl-0 = <&mpu6050_pins>; |
Paul Barker | 124b303 | 2021-07-12 21:14:10 +0100 | [diff] [blame] | 47 | 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 | }; |
Paul Barker | 124b303 | 2021-07-12 21:14:10 +0100 | [diff] [blame] | 53 | }; |