Thomas Gleixner | d2912cb | 2019-06-04 10:11:33 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-only |
Koen Kooi | 91f6278 | 2018-07-17 08:51:49 +0200 | [diff] [blame] | 2 | /* |
Alexander A. Klimov | 75f6681 | 2020-07-08 11:34:51 +0200 | [diff] [blame] | 3 | * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/ |
Koen Kooi | 91f6278 | 2018-07-17 08:51:49 +0200 | [diff] [blame] | 4 | */ |
| 5 | /dts-v1/; |
| 6 | |
| 7 | #include "am33xx.dtsi" |
| 8 | #include "am335x-bone-common.dtsi" |
| 9 | #include "am335x-boneblack-common.dtsi" |
Paul Barker | feb29cf | 2021-07-20 09:39:25 +0100 | [diff] [blame] | 10 | #include "am335x-boneblack-hdmi.dtsi" |
Paul Barker | 3ed9265 | 2021-07-20 09:39:26 +0100 | [diff] [blame] | 11 | #include "am335x-sancloud-bbe-common.dtsi" |
Koen Kooi | 91f6278 | 2018-07-17 08:51:49 +0200 | [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 { |
Koen Kooi | 91f6278 | 2018-07-17 08:51:49 +0200 | [diff] [blame] | 20 | mpu6050_pins: pinmux_mpu6050_pins { |
| 21 | pinctrl-single,pins = < |
Christina Quast | c5ebf24 | 2019-04-12 18:26:23 +0200 | [diff] [blame] | 22 | AM33XX_PADCONF(AM335X_PIN_UART0_CTSN, PIN_INPUT, MUX_MODE7) /* uart0_ctsn.gpio1_8 */ |
Koen Kooi | 91f6278 | 2018-07-17 08:51:49 +0200 | [diff] [blame] | 23 | >; |
| 24 | }; |
| 25 | |
| 26 | lps3331ap_pins: pinmux_lps3331ap_pins { |
| 27 | pinctrl-single,pins = < |
Christina Quast | c5ebf24 | 2019-04-12 18:26:23 +0200 | [diff] [blame] | 28 | AM33XX_PADCONF(AM335X_PIN_GPMC_A10, PIN_INPUT, MUX_MODE7) /* gpmc_a10.gpio1_26 */ |
Koen Kooi | 91f6278 | 2018-07-17 08:51:49 +0200 | [diff] [blame] | 29 | >; |
| 30 | }; |
| 31 | }; |
| 32 | |
Koen Kooi | 91f6278 | 2018-07-17 08:51:49 +0200 | [diff] [blame] | 33 | &i2c0 { |
| 34 | lps331ap: barometer@5c { |
Paul Barker | 7244c8a | 2021-08-06 09:59:06 +0100 | [diff] [blame] | 35 | pinctrl-names = "default"; |
| 36 | pinctrl-0 = <&lps3331ap_pins>; |
Koen Kooi | 91f6278 | 2018-07-17 08:51:49 +0200 | [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 | 7244c8a | 2021-08-06 09:59:06 +0100 | [diff] [blame] | 45 | pinctrl-names = "default"; |
| 46 | pinctrl-0 = <&mpu6050_pins>; |
Koen Kooi | 91f6278 | 2018-07-17 08:51:49 +0200 | [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 | }; |
Koen Kooi | 91f6278 | 2018-07-17 08:51:49 +0200 | [diff] [blame] | 53 | }; |