Home
last modified time | relevance | path

Searched +full:6 +full:- +full:axis (Results 1 – 25 of 371) sorted by relevance

12345678910>>...15

/OK3568_Linux_fs/kernel/drivers/input/sensors/angle/
H A Dangle_lis3dh.c3 * Copyright (C) 2012-2015 ROCKCHIP.
4 * Author: luowei <lw@rock-chips.com>
32 #include <linux/sensor-dev.h>
38 /* full scale setting - register & mask */
68 #define LIS3DH_BOUNDARY (0x1 << (LIS3DH_PRECISION - 1))
96 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active()
98 sensor->ops->ctrl_data |= ODR100; //100HZ,if 0 then power down in sensor_active()
104 sensor->ops->ctrl_data |= status; in sensor_active()
109 sensor->ops->ctrl_data &= status; in sensor_active()
112 …DBG("%s:reg=0x%x,reg_ctrl=0x%x,enable=%d\n",__func__,sensor->ops->ctrl_reg, sensor->ops->ctrl_data… in sensor_active()
[all …]
H A Dangle_kxtik.c3 * Copyright (C) 2012-2015 ROCKCHIP.
4 * Author: luowei <lw@rock-chips.com>
32 #include <linux/sensor-dev.h>
93 /* CTRL_REG1: set resolution, g-range, data ready enable */
94 /* Output resolution: 8-bit valid or 12-bit valid */
96 #define KXTIK_RES_12BIT (1 << 6)
97 /* Output g-range: +/-2g, 4g, or 8g */
109 #define KXTIK_ODR800F 6
113 #define KXTIK_BOUNDARY (0x1 << (KXTIK_PRECISION - 1))
126 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active()
[all …]
/OK3568_Linux_fs/kernel/drivers/input/sensors/gyro/
H A Dl3g20d.c3 * Copyright (C) 2012-2015 ROCKCHIP.
4 * Author: luowei <lw@rock-chips.com>
33 #include <linux/sensor-dev.h>
47 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active()
53 sensor->ops->ctrl_data |= status; in sensor_active()
58 sensor->ops->ctrl_data &= status; in sensor_active()
61 …DBG("%s:reg=0x%x,reg_ctrl=0x%x,enable=%d\n",__func__,sensor->ops->ctrl_reg, sensor->ops->ctrl_data… in sensor_active()
62 result = sensor_write_reg(client, sensor->ops->ctrl_reg, sensor->ops->ctrl_data); in sensor_active()
79 result = sensor->ops->active(client,0,0); in sensor_init()
86 sensor->status_cur = SENSOR_OFF; in sensor_init()
[all …]
H A Dl3g4200d.c3 * Copyright (C) 2012-2015 ROCKCHIP.
4 * Author: luowei <lw@rock-chips.com>
33 #include <linux/sensor-dev.h>
47 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active()
53 sensor->ops->ctrl_data |= status; in sensor_active()
58 sensor->ops->ctrl_data &= status; in sensor_active()
61 …DBG("%s:reg=0x%x,reg_ctrl=0x%x,enable=%d\n",__func__,sensor->ops->ctrl_reg, sensor->ops->ctrl_data… in sensor_active()
62 result = sensor_write_reg(client, sensor->ops->ctrl_reg, sensor->ops->ctrl_data); in sensor_active()
79 result = sensor->ops->active(client,0,0); in sensor_init()
86 sensor->status_cur = SENSOR_OFF; in sensor_init()
[all …]
H A Diam20680_gyro.c1 // SPDX-License-Identifier: GPL-2.0
7 * Author: sxj <sxj@rock-chips.com>
26 #include <linux/sensor-dev.h>
37 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active()
42 sensor->ops->ctrl_data |= status; in sensor_active()
43 if ((sensor->ops->ctrl_data & BIT_ACCEL_STBY) == BIT_ACCEL_STBY) in sensor_active()
47 sensor->ops->ctrl_data &= status; in sensor_active()
51 result = sensor_write_reg(client, sensor->ops->ctrl_reg, sensor->ops->ctrl_data); in sensor_active()
53 dev_err(&client->dev, "%s:fail to active sensor\n", __func__); in sensor_active()
54 return -1; in sensor_active()
[all …]
H A Dmpu6500_gyro.c3 * Copyright (C) 2012-2015 ROCKCHIP.
4 * Author: ouenhui <oeh@rock-chips.com>
32 #include <linux/sensor-dev.h>
43 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active()
48 sensor->ops->ctrl_data |= status; in sensor_active()
49 if ((sensor->ops->ctrl_data & BIT_ACCEL_STBY) == BIT_ACCEL_STBY) { in sensor_active()
54 sensor->ops->ctrl_data &= status; in sensor_active()
58 result = sensor_write_reg(client, sensor->ops->ctrl_reg, sensor->ops->ctrl_data); in sensor_active()
60 dev_err(&client->dev, "%s:fail to active sensor\n", __func__); in sensor_active()
61 return -1; in sensor_active()
[all …]
H A Dmpu6880_gyro.c3 * Copyright (C) 2012-2015 ROCKCHIP.
4 * Author: ouenhui <oeh@rock-chips.com>
32 #include <linux/sensor-dev.h>
43 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active()
48 sensor->ops->ctrl_data |= status; in sensor_active()
49 if ((sensor->ops->ctrl_data & BIT_ACCEL_STBY) == BIT_ACCEL_STBY) { in sensor_active()
54 sensor->ops->ctrl_data &= status; in sensor_active()
58 result = sensor_write_reg(client, sensor->ops->ctrl_reg, sensor->ops->ctrl_data); in sensor_active()
60 dev_err(&client->dev, "%s:fail to active sensor\n", __func__); in sensor_active()
61 return -1; in sensor_active()
[all …]
H A Dicm2060x_gyro.c1 // SPDX-License-Identifier: GPL-2.0
6 * Author: Wang Jie <dave.wang@rock-chips.com>
25 #include <linux/sensor-dev.h>
36 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active()
41 sensor->ops->ctrl_data |= status; in sensor_active()
42 if ((sensor->ops->ctrl_data & BIT_ACCEL_STBY) == BIT_ACCEL_STBY) in sensor_active()
46 sensor->ops->ctrl_data &= status; in sensor_active()
50 result = sensor_write_reg(client, sensor->ops->ctrl_reg, in sensor_active()
51 sensor->ops->ctrl_data); in sensor_active()
53 dev_err(&client->dev, in sensor_active()
[all …]
H A Dlsm330_gyro.c4 * Copyright (C) 2012-2016 Rockchip Co.,Ltd.
5 * Author: Bin Yang <yangbin@rock-chips.com>
34 #include <linux/sensor-dev.h>
72 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active()
75 sensor->ops->ctrl_reg, in sensor_active()
76 sensor->ops->ctrl_data | 0x0F); in sensor_active()
79 sensor->ops->ctrl_reg, in sensor_active()
83 dev_err(&client->dev, "%s:fail to active sensor\n", __func__); in sensor_active()
87 sensor->ops->ctrl_reg, in sensor_active()
88 sensor->ops->ctrl_data, enable); in sensor_active()
[all …]
H A Dewtsa.c3 * Copyright (C) 2012-2015 ROCKCHIP.
4 * Author: zhangaihui <zah@rock-chips.com>
32 #include <linux/sensor-dev.h>
65 #define DELAY_DLPF_6 6
131 #define CONFIG_COUNTER_MIN (6+9)
204 smpl = ( unsigned char)(EWTSA_delay - ( unsigned char)1); in ewtsa_system_restart()
250 gpio_direction_output(sensor->pdata->standby_pin, GPIO_HIGH); in ewtsa_disable()
263 gpio_direction_output(sensor->pdata->standby_pin, GPIO_LOW); in ewtsa_enable()
288 gpio_direction_output(sensor->pdata->standby_pin, GPIO_HIGH); in gyro_dev_reset()
290 gpio_direction_output(sensor->pdata->standby_pin, GPIO_LOW); in gyro_dev_reset()
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/pci/
H A Daxis,artpec6-pcie.txt1 * Axis ARTPEC-6 PCIe interface
4 and thus inherits all the common properties defined in designware-pcie.txt.
7 - compatible: "axis,artpec6-pcie", "snps,dw-pcie" for ARTPEC-6 in RC mode;
8 "axis,artpec6-pcie-ep", "snps,dw-pcie" for ARTPEC-6 in EP mode;
9 "axis,artpec7-pcie", "snps,dw-pcie" for ARTPEC-7 in RC mode;
10 "axis,artpec7-pcie-ep", "snps,dw-pcie" for ARTPEC-7 in EP mode;
11 - reg: base addresses and lengths of the PCIe controller (DBI),
13 - reg-names: Must include the following entries:
14 - "dbi"
15 - "phy"
[all …]
/OK3568_Linux_fs/kernel/drivers/input/sensors/accel/
H A Dkxtj9.c3 * Copyright (C) 2012-2015 ROCKCHIP.
4 * Author: luowei <lw@rock-chips.com>
32 #include <linux/sensor-dev.h>
90 /* CTRL_REG1: set resolution, g-range, data ready enable */
91 /* Output resolution: 8-bit valid or 12-bit valid */
93 #define KXTJ9_RES_12BIT (1 << 6)
94 /* Output g-range: +/-2g, 4g, or 8g */
106 #define KXTJ9_ODR800F 6
110 #define KXTJ9_BOUNDARY (0x1 << (KXTJ9_PRECISION - 1))
123 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active()
[all …]
H A Dmma7660.c3 * Copyright (C) 2012-2015 ROCKCHIP.
4 * Author: luowei <lw@rock-chips.com>
32 #include <linux/sensor-dev.h>
46 #define MMA7660_PRECISION 6
57 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active()
61 sensor->ops->ctrl_data |= status; in sensor_active()
64 sensor->ops->ctrl_data &= status; in sensor_active()
67 result = sensor_write_reg(client, sensor->ops->ctrl_reg, sensor->ops->ctrl_data); in sensor_active()
69 dev_err(&client->dev, "%s:fail to active sensor\n", __func__); in sensor_active()
80 result = sensor->ops->active(client, 0, 0); in sensor_init()
[all …]
H A Diam20680_acc.c1 // SPDX-License-Identifier: GPL-2.0
7 * Author: sxj <sxj@rock-chips.com>
26 #include <linux/sensor-dev.h>
43 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active()
48 sensor->ops->ctrl_data |= status; in sensor_active()
49 if ((sensor->ops->ctrl_data & BIT_GYRO_STBY) == BIT_GYRO_STBY) in sensor_active()
53 sensor->ops->ctrl_data &= status; in sensor_active()
58 result = sensor_write_reg(client, sensor->ops->ctrl_reg, sensor->ops->ctrl_data); in sensor_active()
60 dev_err(&client->dev, "%s:fail to set pwrm2\n", __func__); in sensor_active()
61 return -1; in sensor_active()
[all …]
H A Dlsm330_acc.c4 * Copyright (C) 2012-2016 Rockchip Co.,Ltd.
5 * Author: Bin Yang <yangbin@rock-chips.com>
34 #include <linux/sensor-dev.h>
93 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active()
96 sensor->ops->ctrl_reg, in sensor_active()
97 sensor->ops->ctrl_data | 0x07); in sensor_active()
99 result = sensor_write_reg(client, sensor->ops->ctrl_reg, 0x00); in sensor_active()
102 dev_err(&client->dev, "%s:fail to active sensor\n", __func__); in sensor_active()
106 sensor->ops->ctrl_reg, in sensor_active()
107 sensor->ops->ctrl_data, enable); in sensor_active()
[all …]
H A Dlsm303d.c3 * Copyright (C) 2012-2015 ROCKCHIP.
4 * Author: Bruins <xwj@rock-chips.com>
33 #include <linux/sensor-dev.h>
38 /* full scale setting - register & mask */
75 #define LSM303D_BOUNDARY (0x1 << (LSM303D_PRECISION - 1))
103 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active()
105 sensor->ops->ctrl_data |= ODR100; //100HZ,if 0 then power down in sensor_active()
111 sensor->ops->ctrl_data |= status; in sensor_active()
116 sensor->ops->ctrl_data &= status; in sensor_active()
119 …DBG("%s:reg=0x%x,reg_ctrl=0x%x,enable=%d\n",__func__,sensor->ops->ctrl_reg, sensor->ops->ctrl_data… in sensor_active()
[all …]
H A Dmxc6655xa.c1 // SPDX-License-Identifier: GPL-2.0
6 * Author: Wang Jie <dave.wang@rock-chips.com>
25 #include <linux/sensor-dev.h>
50 #define MXC6655_BOUNDARY (0x1 << (MXC6655_PRECISION - 1))
59 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active()
61 sensor->ops->ctrl_data &= ~MXC6655_POWER_DOWN; in sensor_active()
63 sensor->ops->ctrl_data |= MXC6655_POWER_DOWN; in sensor_active()
65 result = sensor_write_reg(client, sensor->ops->ctrl_reg, in sensor_active()
66 sensor->ops->ctrl_data); in sensor_active()
68 dev_err(&client->dev, "%s:fail to active sensor\n", __func__); in sensor_active()
[all …]
H A Dicm2060x_acc.c1 // SPDX-License-Identifier: GPL-2.0
6 * Author: Wang Jie <dave.wang@rock-chips.com>
24 #include <linux/sensor-dev.h>
35 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active()
40 sensor->ops->ctrl_data |= status; in sensor_active()
41 if ((sensor->ops->ctrl_data & BIT_GYRO_STBY) == BIT_GYRO_STBY) in sensor_active()
45 sensor->ops->ctrl_data &= status; in sensor_active()
49 result = sensor_write_reg(client, sensor->ops->ctrl_reg, in sensor_active()
50 sensor->ops->ctrl_data); in sensor_active()
52 dev_err(&client->dev, in sensor_active()
[all …]
H A Dkxtik.c3 * Copyright (C) 2012-2015 ROCKCHIP.
4 * Author: luowei <lw@rock-chips.com>
32 #include <linux/sensor-dev.h>
92 /* CTRL_REG1: set resolution, g-range, data ready enable */
93 /* Output resolution: 8-bit valid or 12-bit valid */
95 #define KXTIK_RES_12BIT (1 << 6)
96 /* Output g-range: +/-2g, 4g, or 8g */
108 #define KXTIK_ODR800F 6
112 #define KXTIK_BOUNDARY (0x1 << (KXTIK_PRECISION - 1))
125 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active()
[all …]
H A Dmc3230.c34 #include <linux/sensor-dev.h>
80 #define MC3230_BOUNDARY (0x1 << (MC3230_PRECISION - 1))
88 #define MC3210_BOUNDARY (0x1 << (MC3210_PRECISION - 1))
106 #define MC32X0_DATA_LEN 6
114 #define IS_MC3416 6
116 static const char backup_calib_path[] = "/data/misc/mcube-calib.txt";
118 "/data/data/com.mcube.acc/files/mcube-calib.txt";
147 /* Addresses to scan -- protected by sense_data_mutex */
169 /* +1: for 4-byte alignment */
192 if (IS_ERR(fp) || !fp->f_op) in openFile()
[all …]
H A Dsc7a30.c3 * Copyright (C) 2012-2015 ROCKCHIP.
4 * Author: luowei <lw@rock-chips.com>
32 #include <linux/sensor-dev.h>
64 #define SC7A30_BOUNDARY (0x1 << (SC7A30_PRECISION - 1))
90 unsigned char xpmis; //x axis positive mismatch to write
91 unsigned char xnmis; //x axis negtive mismatch to write
97 unsigned char xpoff; //x axis positive offset to write
98 unsigned char xnoff; //x axis negtive offset to write
104 unsigned char xmmis; //x axis middle mismatch to write
105 unsigned char ymmis; //y axis middle mismatch to write
[all …]
H A Dmpu6880_acc.c3 * Copyright (C) 2012-2015 ROCKCHIP.
4 * Author: oeh<oeh@rock-chips.com>
32 #include <linux/sensor-dev.h>
45 while ((h < hz[i]) && (i < ARRAY_SIZE(d) - 1)) in mpu6880_set_lpf()
51 return -1; in mpu6880_set_lpf()
66 return -1; in mpu6880_set_rate()
68 data = rate - 1; in mpu6880_set_rate()
77 return -1; in mpu6880_set_rate()
90 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active()
95 sensor->ops->ctrl_data |= status; in sensor_active()
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/arm/
H A Daxis.txt1 Axis Communications AB
4 ARTPEC-6 ARM SoC
8 - compatible = "axis,artpec6";
10 ARTPEC-6 System Controller
11 --------------------------
13 The ARTPEC-6 has a system controller with mixed functions controlling DMA, PCIe
17 - compatible: "axis,artpec6-syscon", "syscon"
18 - reg: Address and length of the register bank.
22 compatible = "axis,artpec6-syscon", "syscon";
26 ARTPEC-6 Development board:
[all …]
/OK3568_Linux_fs/kernel/drivers/input/sensors/accel/da215s/
H A Dda215s.c1 // SPDX-License-Identifier: GPL-2.0
5 * Author: Kay Guo <kay.guo@rock-chips.com>
20 #include <linux/sensor-dev.h>
65 #define DA215S_BOUNDARY (0x1 << (DA215S_PRECISION - 1))
75 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active()
77 sensor->ops->ctrl_data &= DA215S_CTRL_NORMAL; in sensor_active()
79 sensor->ops->ctrl_data |= DA215S_CTRL_SUSPEND; in sensor_active()
81 result = sensor_write_reg(client, sensor->ops->ctrl_reg, in sensor_active()
82 sensor->ops->ctrl_data); in sensor_active()
84 dev_err(&client->dev, "%s:fail to active sensor\n", __func__); in sensor_active()
[all …]
/OK3568_Linux_fs/kernel/drivers/input/sensors/accel/da228e/
H A Dda228e.c1 // SPDX-License-Identifier: GPL-2.0
5 * Author: Kay Guo <kay.guo@rock-chips.com>
21 #include <linux/sensor-dev.h>
65 #define DA228E_BOUNDARY (0x1 << (DA228E_PRECISION - 1))
76 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active()
78 sensor->ops->ctrl_data &= DA228E_CTRL_NORMAL; in sensor_active()
80 sensor->ops->ctrl_data |= DA228E_CTRL_SUSPEND; in sensor_active()
82 result = sensor_write_reg(client, sensor->ops->ctrl_reg, in sensor_active()
83 sensor->ops->ctrl_data); in sensor_active()
85 dev_err(&client->dev, "%s:fail to active sensor\n", __func__); in sensor_active()
[all …]

12345678910>>...15