diff options
Diffstat (limited to 'drivers/misc/ad525x_dpot.h')
-rw-r--r-- | drivers/misc/ad525x_dpot.h | 37 |
1 files changed, 27 insertions, 10 deletions
diff --git a/drivers/misc/ad525x_dpot.h b/drivers/misc/ad525x_dpot.h index 78b89fd2e2fd..a662f5987b68 100644 --- a/drivers/misc/ad525x_dpot.h +++ b/drivers/misc/ad525x_dpot.h | |||
@@ -47,9 +47,9 @@ enum dpot_devid { | |||
47 | AD5258_ID = DPOT_CONF(F_RDACS_RW_TOL, BRDAC0, 6, 0), /* I2C */ | 47 | AD5258_ID = DPOT_CONF(F_RDACS_RW_TOL, BRDAC0, 6, 0), /* I2C */ |
48 | AD5259_ID = DPOT_CONF(F_RDACS_RW_TOL, BRDAC0, 8, 1), | 48 | AD5259_ID = DPOT_CONF(F_RDACS_RW_TOL, BRDAC0, 8, 1), |
49 | AD5251_ID = DPOT_CONF(F_RDACS_RW_TOL | F_CMD_INC, | 49 | AD5251_ID = DPOT_CONF(F_RDACS_RW_TOL | F_CMD_INC, |
50 | BRDAC0 | BRDAC3, 6, 2), | 50 | BRDAC1 | BRDAC3, 6, 2), |
51 | AD5252_ID = DPOT_CONF(F_RDACS_RW_TOL | F_CMD_INC, | 51 | AD5252_ID = DPOT_CONF(F_RDACS_RW_TOL | F_CMD_INC, |
52 | BRDAC0 | BRDAC3, 8, 3), | 52 | BRDAC1 | BRDAC3, 8, 3), |
53 | AD5253_ID = DPOT_CONF(F_RDACS_RW_TOL | F_CMD_INC, | 53 | AD5253_ID = DPOT_CONF(F_RDACS_RW_TOL | F_CMD_INC, |
54 | BRDAC0 | BRDAC1 | BRDAC2 | BRDAC3, 6, 4), | 54 | BRDAC0 | BRDAC1 | BRDAC2 | BRDAC3, 6, 4), |
55 | AD5254_ID = DPOT_CONF(F_RDACS_RW_TOL | F_CMD_INC, | 55 | AD5254_ID = DPOT_CONF(F_RDACS_RW_TOL | F_CMD_INC, |
@@ -93,8 +93,10 @@ enum dpot_devid { | |||
93 | BRDAC0 | BRDAC1 | BRDAC2 | BRDAC3, 8, 23), | 93 | BRDAC0 | BRDAC1 | BRDAC2 | BRDAC3, 8, 23), |
94 | AD5290_ID = DPOT_CONF(F_RDACS_WONLY | F_AD_APPDATA | F_SPI_8BIT, | 94 | AD5290_ID = DPOT_CONF(F_RDACS_WONLY | F_AD_APPDATA | F_SPI_8BIT, |
95 | BRDAC0, 8, 24), | 95 | BRDAC0, 8, 24), |
96 | AD5291_ID = DPOT_CONF(F_RDACS_RW | F_SPI_16BIT, BRDAC0, 8, 25), | 96 | AD5291_ID = DPOT_CONF(F_RDACS_RW | F_SPI_16BIT | F_CMD_OTP, |
97 | AD5292_ID = DPOT_CONF(F_RDACS_RW | F_SPI_16BIT, BRDAC0, 10, 26), | 97 | BRDAC0, 8, 25), |
98 | AD5292_ID = DPOT_CONF(F_RDACS_RW | F_SPI_16BIT | F_CMD_OTP, | ||
99 | BRDAC0, 10, 26), | ||
98 | AD5293_ID = DPOT_CONF(F_RDACS_RW | F_SPI_16BIT, BRDAC0, 10, 27), | 100 | AD5293_ID = DPOT_CONF(F_RDACS_RW | F_SPI_16BIT, BRDAC0, 10, 27), |
99 | AD7376_ID = DPOT_CONF(F_RDACS_WONLY | F_AD_APPDATA | F_SPI_8BIT, | 101 | AD7376_ID = DPOT_CONF(F_RDACS_WONLY | F_AD_APPDATA | F_SPI_8BIT, |
100 | BRDAC0, 7, 28), | 102 | BRDAC0, 7, 28), |
@@ -122,6 +124,12 @@ enum dpot_devid { | |||
122 | AD5170_ID = DPOT_CONF(F_RDACS_RW | F_CMD_OTP, BRDAC0, 8, 45), | 124 | AD5170_ID = DPOT_CONF(F_RDACS_RW | F_CMD_OTP, BRDAC0, 8, 45), |
123 | AD5172_ID = DPOT_CONF(F_RDACS_RW | F_CMD_OTP, BRDAC0 | BRDAC1, 8, 46), | 125 | AD5172_ID = DPOT_CONF(F_RDACS_RW | F_CMD_OTP, BRDAC0 | BRDAC1, 8, 46), |
124 | AD5173_ID = DPOT_CONF(F_RDACS_RW | F_CMD_OTP, BRDAC0 | BRDAC1, 8, 47), | 126 | AD5173_ID = DPOT_CONF(F_RDACS_RW | F_CMD_OTP, BRDAC0 | BRDAC1, 8, 47), |
127 | AD5270_ID = DPOT_CONF(F_RDACS_RW | F_CMD_OTP | F_SPI_16BIT, | ||
128 | BRDAC0, 10, 48), | ||
129 | AD5271_ID = DPOT_CONF(F_RDACS_RW | F_CMD_OTP | F_SPI_16BIT, | ||
130 | BRDAC0, 8, 49), | ||
131 | AD5272_ID = DPOT_CONF(F_RDACS_RW | F_CMD_OTP, BRDAC0, 10, 50), | ||
132 | AD5274_ID = DPOT_CONF(F_RDACS_RW | F_CMD_OTP, BRDAC0, 8, 51), | ||
125 | }; | 133 | }; |
126 | 134 | ||
127 | #define DPOT_RDAC0 0 | 135 | #define DPOT_RDAC0 0 |
@@ -165,15 +173,24 @@ enum dpot_devid { | |||
165 | /* AD5291/2/3 use special commands */ | 173 | /* AD5291/2/3 use special commands */ |
166 | #define DPOT_AD5291_RDAC 0x01 | 174 | #define DPOT_AD5291_RDAC 0x01 |
167 | #define DPOT_AD5291_READ_RDAC 0x02 | 175 | #define DPOT_AD5291_READ_RDAC 0x02 |
176 | #define DPOT_AD5291_STORE_XTPM 0x03 | ||
177 | #define DPOT_AD5291_CTRLREG 0x06 | ||
178 | #define DPOT_AD5291_UNLOCK_CMD 0x03 | ||
168 | 179 | ||
169 | /* AD524x use special commands */ | 180 | /* AD5270/1/2/4 use special commands */ |
170 | #define DPOT_AD5291_RDAC_AB 0x80 | 181 | #define DPOT_AD5270_1_2_4_RDAC 0x01 |
182 | #define DPOT_AD5270_1_2_4_READ_RDAC 0x02 | ||
183 | #define DPOT_AD5270_1_2_4_STORE_XTPM 0x03 | ||
184 | #define DPOT_AD5270_1_2_4_CTRLREG 0x07 | ||
185 | #define DPOT_AD5270_1_2_4_UNLOCK_CMD 0x03 | ||
186 | |||
187 | #define DPOT_AD5282_RDAC_AB 0x80 | ||
171 | 188 | ||
172 | #define DPOT_AD5273_FUSE 0x80 | 189 | #define DPOT_AD5273_FUSE 0x80 |
173 | #define DPOT_AD5270_2_3_FUSE 0x20 | 190 | #define DPOT_AD5170_2_3_FUSE 0x20 |
174 | #define DPOT_AD5270_2_3_OW 0x08 | 191 | #define DPOT_AD5170_2_3_OW 0x08 |
175 | #define DPOT_AD5272_3_A0 0x08 | 192 | #define DPOT_AD5172_3_A0 0x08 |
176 | #define DPOT_AD5270_2FUSE 0x80 | 193 | #define DPOT_AD5170_2FUSE 0x80 |
177 | 194 | ||
178 | struct dpot_data; | 195 | struct dpot_data; |
179 | 196 | ||