Searched +full:cros +full:- +full:ec +full:- +full:mkbp +full:- +full:proximity (Results 1 – 2 of 2) sorted by relevance
1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)3 ---4 $id: http://devicetree.org/schemas/iio/proximity/google,cros-ec-mkbp-proximity.yaml#5 $schema: http://devicetree.org/meta-schemas/core.yaml#7 title: ChromeOS EC MKBP Proximity Sensor10 - Stephen Boyd <swboyd@chromium.org>11 - Benson Leung <bleung@chromium.org>14 Google's ChromeOS EC sometimes has the ability to detect user proximity.15 This is implemented on the EC as near/far logic and exposed to the OS16 via an MKBP switch bit.[all …]
1 // SPDX-License-Identifier: GPL-2.03 * Driver for cros-ec proximity sensor exposed through MKBP switch27 struct cros_ec_device *ec; member64 struct ec_params_mkbp_info *params = (struct ec_params_mkbp_info *)buf->data; in cros_ec_mkbp_proximity_query()66 u32 *switches = (u32 *)buf->data; in cros_ec_mkbp_proximity_query()70 msg->command = EC_CMD_MKBP_INFO; in cros_ec_mkbp_proximity_query()71 msg->version = 1; in cros_ec_mkbp_proximity_query()72 msg->outsize = sizeof(*params); in cros_ec_mkbp_proximity_query()73 msg->insize = insize; in cros_ec_mkbp_proximity_query()75 params->info_type = EC_MKBP_INFO_CURRENT; in cros_ec_mkbp_proximity_query()[all …]