.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright 2012 ST-Ericsson AB |
---|
3 | 4 | * |
---|
4 | | - * The code contained herein is licensed under the GNU General Public |
---|
5 | | - * License. You may obtain a copy of the GNU General Public License |
---|
6 | | - * Version 2 or later at the following locations: |
---|
7 | | - * |
---|
8 | | - * http://www.opensource.org/licenses/gpl-license.html |
---|
9 | | - * http://www.gnu.org/copyleft/gpl.html |
---|
10 | | - * |
---|
11 | | - * Device Tree for the TVK1281618 UIB |
---|
| 5 | + * Device Tree for the TVK1281618 family of UIBs |
---|
12 | 6 | */ |
---|
13 | 7 | |
---|
14 | 8 | #include <dt-bindings/interrupt-controller/irq.h> |
---|
.. | .. |
---|
87 | 81 | }; |
---|
88 | 82 | }; |
---|
89 | 83 | }; |
---|
90 | | - /* Sensors mounted on this board variant */ |
---|
| 84 | + /* Sensors mounted on all board variants */ |
---|
91 | 85 | i2c@80128000 { |
---|
92 | | - lsm303dlh@18 { |
---|
93 | | - /* Accelerometer */ |
---|
94 | | - compatible = "st,lsm303dlh-accel"; |
---|
95 | | - st,drdy-int-pin = <1>; |
---|
96 | | - drive-open-drain; |
---|
97 | | - reg = <0x18>; |
---|
98 | | - vdd-supply = <&ab8500_ldo_aux1_reg>; |
---|
99 | | - vddio-supply = <&db8500_vsmps2_reg>; |
---|
100 | | - pinctrl-names = "default"; |
---|
101 | | - pinctrl-0 = <&accel_tvk_mode>; |
---|
102 | | - /* |
---|
103 | | - * These interrupts cannot be used: the other component |
---|
104 | | - * ST-Micro L3D4200D gyro that is connected to the same lines |
---|
105 | | - * cannot set its DRDY line to open drain, so it cannot be |
---|
106 | | - * shared with other peripherals. The should be defined for |
---|
107 | | - * the falling edge if they could be wired together. |
---|
108 | | - * |
---|
109 | | - * interrupts-extended = |
---|
110 | | - * <&gpio1 0 IRQ_TYPE_EDGE_FALLING>, |
---|
111 | | - * <&gpio2 19 IRQ_TYPE_EDGE_FALLING>; |
---|
112 | | - */ |
---|
113 | | - }; |
---|
114 | | - lsm303dlh@1e { |
---|
115 | | - /* Magnetometer */ |
---|
116 | | - compatible = "st,lsm303dlh-magn"; |
---|
117 | | - reg = <0x1e>; |
---|
118 | | - vdd-supply = <&ab8500_ldo_aux1_reg>; |
---|
119 | | - vddio-supply = <&db8500_vsmps2_reg>; |
---|
120 | | - /* |
---|
121 | | - * These interrupts cannot be used: the other component |
---|
122 | | - * ST-Micro L3D4200D gyro that is connected to the same lines |
---|
123 | | - * cannot set its DRDY line to open drain, so it cannot be |
---|
124 | | - * shared with other peripherals. The should be defined for |
---|
125 | | - * the falling edge if they could be wired together. |
---|
126 | | - * |
---|
127 | | - * interrupts-extended = |
---|
128 | | - * <&gpio1 0 IRQ_TYPE_EDGE_FALLING>, |
---|
129 | | - * <&gpio2 19 IRQ_TYPE_EDGE_FALLING>; |
---|
130 | | - */ |
---|
131 | | - }; |
---|
132 | | - lis331dl@1c { |
---|
133 | | - /* Accelerometer */ |
---|
134 | | - compatible = "st,lis331dl-accel"; |
---|
135 | | - st,drdy-int-pin = <1>; |
---|
136 | | - reg = <0x1c>; |
---|
137 | | - vdd-supply = <&ab8500_ldo_aux1_reg>; |
---|
138 | | - vddio-supply = <&db8500_vsmps2_reg>; |
---|
139 | | - pinctrl-names = "default"; |
---|
140 | | - pinctrl-0 = <&accel_tvk_mode>; |
---|
141 | | - interrupt-parent = <&gpio2>; |
---|
142 | | - /* INT2 would need to be open drain */ |
---|
143 | | - interrupts = <18 IRQ_TYPE_EDGE_RISING>, |
---|
144 | | - <19 IRQ_TYPE_EDGE_RISING>; |
---|
145 | | - }; |
---|
146 | 86 | ak8974@f { |
---|
147 | 87 | /* Magnetometer */ |
---|
148 | 88 | compatible = "asahi-kasei,ak8974"; |
---|