1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Device Tree for the TVK1281618 R2 UIB 4 */ 5 6#include "ste-href-tvk1281618.dtsi" 7 8/ { 9 soc { 10 i2c@80128000 { 11 accelerometer@19 { 12 compatible = "st,lsm303dlhc-accel"; 13 st,drdy-int-pin = <1>; 14 reg = <0x19>; 15 vdd-supply = <&ab8500_ldo_aux1_reg>; 16 vddio-supply = <&db8500_vsmps2_reg>; 17 interrupt-parent = <&gpio2>; 18 interrupts = <18 IRQ_TYPE_EDGE_RISING>, 19 <19 IRQ_TYPE_EDGE_RISING>; 20 pinctrl-names = "default"; 21 pinctrl-0 = <&accel_tvk_mode>; 22 mount-matrix = "0", "-1", "0", 23 "-1", "0", "0", 24 "0", "0", "-1"; 25 }; 26 magnetometer@1e { 27 compatible = "st,lsm303dlm-magn"; 28 st,drdy-int-pin = <1>; 29 reg = <0x1e>; 30 vdd-supply = <&ab8500_ldo_aux1_reg>; 31 vddio-supply = <&db8500_vsmps2_reg>; 32 // This interrupt is not properly working with the driver 33 // interrupt-parent = <&gpio1>; 34 // interrupts = <0 IRQ_TYPE_EDGE_RISING>; 35 pinctrl-names = "default"; 36 pinctrl-0 = <&magn_tvk_mode>; 37 }; 38 gyroscope@68 { 39 /* Gyroscope */ 40 compatible = "st,l3g4200d-gyro"; 41 reg = <0x68>; 42 vdd-supply = <&ab8500_ldo_aux1_reg>; 43 vddio-supply = <&db8500_vsmps2_reg>; 44 }; 45 pressure@5c { 46 /* Barometer/pressure sensor */ 47 compatible = "st,lps001wp-press"; 48 reg = <0x5c>; 49 vdd-supply = <&ab8500_ldo_aux1_reg>; 50 vddio-supply = <&db8500_vsmps2_reg>; 51 }; 52 }; 53 54 mcde@a0350000 { 55 status = "okay"; 56 57 dsi-controller@a0351000 { 58 panel { 59 compatible = "sony,acx424akp"; 60 reg = <0>; 61 vddi-supply = <&ab8500_ldo_aux1_reg>; 62 reset-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; 63 }; 64 }; 65 }; 66 67 pinctrl { 68 accelerometer { 69 accel_tvk_mode: accel_tvk { 70 /* Accelerometer interrupt lines 1 & 2 */ 71 tvk_cfg { 72 pins = "GPIO82_C1", "GPIO83_D3"; 73 ste,config = <&gpio_in_pd>; 74 }; 75 }; 76 }; 77 magnetometer { 78 magn_tvk_mode: magn_tvk { 79 /* GPIO 32 used for DRDY, pull this down */ 80 tvk_cfg { 81 pins = "GPIO32_V2"; 82 ste,config = <&gpio_in_pd>; 83 }; 84 }; 85 }; 86 }; 87 }; 88}; 89