| /OK3568_Linux_fs/kernel/drivers/iio/accel/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 10 tristate "Analog Devices ADIS16201 Dual-Axis Digital Inclinometer and Accelerometer" 15 Say Y here to build support for Analog Devices adis16201 dual-axis 22 tristate "Analog Devices ADIS16209 Dual-Axis Digital Inclinometer and Accelerometer" 27 Say Y here to build support for Analog Devices adis16209 dual-axis digital inclinometer 37 tristate "Analog Devices ADXL345 3-Axis Digital Accelerometer I2C Driver" 44 ADXL345 or ADXL375 3-axis digital accelerometer. 51 tristate "Analog Devices ADXL345 3-Axis Digital Accelerometer SPI Driver" 58 ADXL345 or ADXL375 3-axis digital accelerometer. 70 tristate "Analog Devices ADXL372 3-Axis Accelerometer SPI Driver" [all …]
|
| /OK3568_Linux_fs/kernel/drivers/iio/magnetometer/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 10 tristate "Asahi Kasei AK8974 3-Axis Magnetometer" 18 AMI306 I2C-based 3-axis magnetometer chips. 24 tristate "Asahi Kasei AK8975 3-Axis Magnetometer" 31 AK09911 or AK09912 3-Axis Magnetometer. 37 tristate "Asahi Kasei AK09911 3-axis Compass" 84 tristate "Freescale MAG3110 3-Axis Magnetometer" 89 Say yes here to build support for the Freescale MAG3110 3-Axis 100 tristate "HID Magenetometer 3D" 103 Magnetometer 3D. [all …]
|
| /OK3568_Linux_fs/kernel/drivers/input/sensors/accel/ |
| H A D | sc7a20.c | 3 * Copyright (C) 2012-2015 ROCKCHIP. 4 * Author: luowei <lw@rock-chips.com> 31 #include <linux/sensor-dev.h> 63 #define SC7A20_BOUNDARY (0x1 << (SC7A20_PRECISION - 1)) 69 /*noCreateAttr:the initial is 1-->no create attr. if created, change noCreateAttr to 0.*/ 96 unsigned char xpmis; //x axis positive mismatch to write 97 unsigned char xnmis; //x axis negtive mismatch to write 103 unsigned char xpoff; //x axis positive offset to write 104 unsigned char xnoff; //x axis negtive offset to write 110 unsigned char xmmis; //x axis middle mismatch to write [all …]
|
| H A D | mma7660.c | 3 * Copyright (C) 2012-2015 ROCKCHIP. 4 * Author: luowei <lw@rock-chips.com> 32 #include <linux/sensor-dev.h> 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() 82 dev_err(&client->dev, "%s:line=%d,error\n", __func__, __LINE__); in sensor_init() [all …]
|
| H A D | sc7660.c | 3 * Copyright (C) 2012-2015 ROCKCHIP. 4 * Author: luowei <lw@rock-chips.com> 31 #include <linux/sensor-dev.h> 63 #define SC7660_BOUNDARY (0x1 << (SC7660_PRECISION - 1)) 69 /*noCreateAttr:the initial is 1-->no create attr. if created, change noCreateAttr to 0.*/ 96 unsigned char xpmis; //x axis positive mismatch to write 97 unsigned char xnmis; //x axis negtive mismatch to write 103 unsigned char xpoff; //x axis positive offset to write 104 unsigned char xnoff; //x axis negtive offset to write 110 unsigned char xmmis; //x axis middle mismatch to write [all …]
|
| H A D | sc7a30.c | 3 * 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 D | kxtj9.c | 3 * Copyright (C) 2012-2015 ROCKCHIP. 4 * Author: luowei <lw@rock-chips.com> 32 #include <linux/sensor-dev.h> 82 #define FUZZ 3 83 #define FLAT 3 88 #define RESUME_ENTRIES 3 90 /* CTRL_REG1: set resolution, g-range, data ready enable */ 91 /* Output resolution: 8-bit valid or 12-bit valid */ 94 /* Output g-range: +/-2g, 4g, or 8g */ 96 #define KXTJ9_G_4G (1 << 3) [all …]
|
| H A D | mc3230.c | 34 #include <linux/sensor-dev.h> 80 #define MC3230_BOUNDARY (0x1 << (MC3230_PRECISION - 1)) 88 #define MC3210_BOUNDARY (0x1 << (MC3210_PRECISION - 1)) 105 #define MC32X0_AXES_NUM 3 111 #define IS_MC2234 3 116 static const char backup_calib_path[] = "/data/misc/mcube-calib.txt"; 118 "/data/data/com.mcube.acc/files/mcube-calib.txt"; 128 static signed int offset_data[3]; 129 static s16 G_RAW_DATA[3]; 130 static signed int gain_data[3]; [all …]
|
| H A D | da223_cust.c | 3 * mir3da.c - Linux kernel modules for 3-Axis Accelerometer 5 * Copyright (C) 2011-2013 MiraMEMS Sensing Technology Co., Ltd. 33 #include <linux/sensor-dev.h> 43 #define DA311_BOUNDARY (0x1 << (MIR3DA_PRECISION - 1)) 100 ret = -1; 104 filep->f_op->write(filep, pWorkInfo->buffer, pWorkInfo->len, &filep->f_pos); 109 pWorkInfo->rst = ret; 110 complete( &pWorkInfo->completion ); 133 ret = -1; 136 filep->f_op->read(filep, pWorkInfo->buffer, sizeof(pWorkInfo->buffer), &filep->f_pos); [all …]
|
| H A D | mxc622x.c | 3 * Copyright (C) 2012-2015 ROCKCHIP. 4 * Author: luowei <lw@rock-chips.com> 33 #include <linux/sensor-dev.h> 53 #define MXC6225_BOUNDARY (0x1 << (MXC6225_PRECISION - 1)) 76 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active() 82 sensor->ops->ctrl_data |= status; in sensor_active() 87 sensor->ops->ctrl_data &= status; in sensor_active() 90 …DBG("%s:reg=0x%x,reg_ctrl=0x%x,enable=%d\n",__func__,sensor->ops->ctrl_reg, sensor->ops->ctrl_data… in sensor_active() 91 result = sensor_write_reg(client, sensor->ops->ctrl_reg, sensor->ops->ctrl_data); in sensor_active() 105 result = sensor->ops->active(client,0,0); in sensor_init() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/input/sensors/compass/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 19 tristate "Asahi Kasei AK8975 3-Axis Magnetometer" 23 Say yes here to build support for Asahi Kasei AK8975 3-Axis 30 tristate "Asahi Kasei AK8963 3-Axis Magnetometer" 34 Say yes here to build support for Asahi Kasei AK8963 3-Axis Magnetometer. 41 tristate "Asahi Kasei AK09911 3-Axis Magnetometer" 44 Say yes here to build support for Asahi Kasei AK09911 3-Axis Magnetometer. 50 tristate "Asahi Kasei AK09911 3-Axis Magnetometer" 53 Say yes here to build support for Asahi Kasei AK09918 3-Axis Magnetometer.
|
| /OK3568_Linux_fs/kernel/drivers/input/sensors/angle/ |
| H A D | angle_kxtik.c | 3 * Copyright (C) 2012-2015 ROCKCHIP. 4 * Author: luowei <lw@rock-chips.com> 32 #include <linux/sensor-dev.h> 85 #define FUZZ 3 86 #define FLAT 3 91 #define RESUME_ENTRIES 3 93 /* CTRL_REG1: set resolution, g-range, data ready enable */ 94 /* Output resolution: 8-bit valid or 12-bit valid */ 97 /* Output g-range: +/-2g, 4g, or 8g */ 99 #define KXTIK_G_4G (1 << 3) [all …]
|
| /OK3568_Linux_fs/kernel/sound/pci/ |
| H A D | azt3328.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 /* "PU" == "power-up value", as tested on PCI168 PCI rev. 10 85 …REQ_SUSPECTED_66200 0x06 | SOUNDFORMAT_XTAL2 /* 66200 (13240 * 5); 64000 may have been nicer :-\ */ 111 #define IDX_IO_TIMER_VALUE 0x60 /* found this timer area by pure luck :-) */ 122 /* some IRQ bit in here might also be used to signal a power-management timer 150 * in case playback is active? Or is this driver-induced? 156 /* bit 5: enabling this will activate permanent counting of bytes 2/3 157 * at gameport I/O (0xb402/3) (equal values each) and cause 175 * still lets us evaluate button states, but not axis states */ 179 * --> FIFO/timing settings???) */ [all …]
|
| /OK3568_Linux_fs/kernel/drivers/input/sensors/gyro/ |
| H A D | l3g20d.c | 3 * 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 D | l3g4200d.c | 3 * 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 D | ewtsa.c | 3 * Copyright (C) 2012-2015 ROCKCHIP. 4 * Author: zhangaihui <zah@rock-chips.com> 32 #include <linux/sensor-dev.h> 62 #define DELAY_DLPF_3 3 113 #define EWTSA_RNG_MAX 3 138 #define COMMAND_NAME_EVE 3 204 smpl = ( unsigned char)(EWTSA_delay - ( unsigned char)1); in ewtsa_system_restart() 224 reg = ( unsigned char)(( unsigned char)(EWTSA_range << 3) | dlpf | ( unsigned char)0x80 ) ; 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() [all …]
|
| H A D | iam20680_gyro.c | 1 // 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 D | icm2060x_gyro.c | 1 // 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 D | mpu6500_gyro.c | 3 * 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 D | mpu6880_gyro.c | 3 * 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 …]
|
| /OK3568_Linux_fs/external/rknn-toolkit2/examples/caffe/vgg-ssd/ |
| H A D | deploy_rm_detection_output.prototxt | 9 dim: 3 31 kernel_size: 3 63 kernel_size: 3 106 kernel_size: 3 138 kernel_size: 3 181 kernel_size: 3 213 kernel_size: 3 245 kernel_size: 3 288 kernel_size: 3 320 kernel_size: 3 [all …]
|
| /OK3568_Linux_fs/kernel/drivers/input/sensors/accel/da215s/ |
| H A D | da215s.c | 1 // 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 D | da228e.c | 1 // 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/input/misc/ |
| H A D | adxl34x.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * ADXL345/346 Three-Axis Digital Accelerometers 25 #define OFSX 0x1E /* R/W X-axis offset */ 26 #define OFSY 0x1F /* R/W Y-axis offset */ 27 #define OFSZ 0x20 /* R/W Z-axis offset */ 34 #define ACT_INACT_CTL 0x27 /* R/W Axis enable control for activity and */ 36 #define THRESH_FF 0x28 /* R/W Free-fall threshold */ 37 #define TIME_FF 0x29 /* R/W Free-fall time */ 38 #define TAP_AXES 0x2A /* R/W Axis control for tap/double tap */ 46 #define DATAX0 0x32 /* R X-Axis Data 0 */ [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/pci/ |
| H A D | axis,artpec6-pcie.txt | 1 * 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 …]
|