diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2014-04-12 11:13:23 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-07-07 05:54:07 -0400 |
commit | d0e3bc813359360fb94098fec9403820846577f3 (patch) | |
tree | af540b8a1999005b5d1f563869b9c12557ee4fef /arch/arm/boot/dts/ste-href-tvk1281618.dtsi | |
parent | 14cdf8cbc73caf205226acb20b4fdd02f0a17f70 (diff) |
ARM: ux500: add misc sensors to the device trees
This adds the STMicroelectonics MEMS sensor devices to the Ux500
family device trees:
- Accelerometer
- Magnetometer
- Gyroscope
- Pressure (barometer)
Cc: Lee Jones <lee.jones@linaro.org>
Cc: Denis CIOCCA <denis.ciocca@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/boot/dts/ste-href-tvk1281618.dtsi')
-rw-r--r-- | arch/arm/boot/dts/ste-href-tvk1281618.dtsi | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/ste-href-tvk1281618.dtsi b/arch/arm/boot/dts/ste-href-tvk1281618.dtsi index c40565320978..18b65d1b14f2 100644 --- a/arch/arm/boot/dts/ste-href-tvk1281618.dtsi +++ b/arch/arm/boot/dts/ste-href-tvk1281618.dtsi | |||
@@ -88,6 +88,43 @@ | |||
88 | }; | 88 | }; |
89 | }; | 89 | }; |
90 | }; | 90 | }; |
91 | /* Sensors mounted on this board variant */ | ||
92 | i2c@80128000 { | ||
93 | lsm303dlh@18 { | ||
94 | /* Accelerometer */ | ||
95 | compatible = "st,lsm303dlh-accel"; | ||
96 | st,drdy-int-pin = <1>; | ||
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 | lsm303dlm@1e { | ||
104 | /* Magnetometer */ | ||
105 | compatible = "st,lsm303dlm-magn"; | ||
106 | reg = <0x1e>; | ||
107 | vdd-supply = <&ab8500_ldo_aux1_reg>; | ||
108 | vddio-supply = <&db8500_vsmps2_reg>; | ||
109 | pinctrl-names = "default"; | ||
110 | pinctrl-0 = <&magneto_tvk_mode>; | ||
111 | }; | ||
112 | l3g4200d@68 { | ||
113 | /* Gyroscope */ | ||
114 | compatible = "st,l3g4200d-gyro"; | ||
115 | st,drdy-int-pin = <2>; | ||
116 | reg = <0x68>; | ||
117 | vdd-supply = <&ab8500_ldo_aux1_reg>; | ||
118 | vddio-supply = <&db8500_vsmps2_reg>; | ||
119 | }; | ||
120 | lsp001wm@5c { | ||
121 | /* Barometer/pressure sensor */ | ||
122 | compatible = "st,lps001wp-press"; | ||
123 | reg = <0x5c>; | ||
124 | vdd-supply = <&ab8500_ldo_aux1_reg>; | ||
125 | vddio-supply = <&db8500_vsmps2_reg>; | ||
126 | }; | ||
127 | }; | ||
91 | pinctrl { | 128 | pinctrl { |
92 | /* Pull up this GPIO pin */ | 129 | /* Pull up this GPIO pin */ |
93 | tc35893 { | 130 | tc35893 { |
@@ -114,6 +151,28 @@ | |||
114 | }; | 151 | }; |
115 | }; | 152 | }; |
116 | }; | 153 | }; |
154 | accelerometer { | ||
155 | accel_tvk_mode: accel_tvk { | ||
156 | /* Accelerometer interrupt lines 1 & 2 */ | ||
157 | tvk_cfg { | ||
158 | ste,pins = "GPIO82_C1", "GPIO83_D3"; | ||
159 | ste,config = <&gpio_in_pu>; | ||
160 | }; | ||
161 | }; | ||
162 | }; | ||
163 | magnetometer { | ||
164 | magneto_tvk_mode: magneto_tvk { | ||
165 | /* Magnetometer uses GPIO 31 and 32, pull these up/down respectively */ | ||
166 | tvk_cfg1 { | ||
167 | ste,pins = "GPIO31_V3"; | ||
168 | ste,config = <&gpio_in_pu>; | ||
169 | }; | ||
170 | tvk_cfg2 { | ||
171 | ste,pins = "GPIO32_V2"; | ||
172 | ste,config = <&gpio_in_pd>; | ||
173 | }; | ||
174 | }; | ||
175 | }; | ||
117 | }; | 176 | }; |
118 | }; | 177 | }; |
119 | }; | 178 | }; |