Searched +full:yoga +full:- +full:c630 +full:- +full:ec (Results 1 – 8 of 8) sorted by relevance
/linux-6.12.1/Documentation/devicetree/bindings/platform/ |
D | lenovo,yoga-c630-ec.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/platform/lenovo,yoga-c630-ec.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Lenovo Yoga C630 Embedded Controller. 10 - Bjorn Andersson <andersson@kernel.org> 13 The Qualcomm Snapdragon-based Lenovo Yoga C630 has an Embedded Controller 14 (EC) which handles things such as battery and USB Type-C. This binding 15 describes the interface, on an I2C bus, to this EC. 19 const: lenovo,yoga-c630-ec [all …]
|
/linux-6.12.1/drivers/platform/arm64/ |
D | lenovo-yoga-c630.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2022-2024, Linaro Ltd 19 #include <linux/platform_data/lenovo-yoga-c630.h> 38 static int yoga_c630_ec_request(struct yoga_c630_ec *ec, u8 *req, size_t req_len, in yoga_c630_ec_request() argument 43 lockdep_assert_held(&ec->lock); in yoga_c630_ec_request() 45 ret = i2c_smbus_write_i2c_block_data(ec->client, LENOVO_EC_REQUEST_REG, in yoga_c630_ec_request() 50 return i2c_smbus_read_i2c_block_data(ec->client, LENOVO_EC_RESPONSE_REG, in yoga_c630_ec_request() 54 int yoga_c630_ec_read8(struct yoga_c630_ec *ec, u8 addr) in yoga_c630_ec_read8() argument 60 guard(mutex)(&ec->lock); in yoga_c630_ec_read8() 63 ret = yoga_c630_ec_request(ec, req, sizeof(req), &val, 1); in yoga_c630_ec_read8() [all …]
|
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 # EC-like Drivers for aarch64 based devices. 7 bool "ARM64 Platform-Specific Device Drivers" 11 Say Y here to get to see options for platform-specific device drivers 12 for arm64 based devices, primarily EC-like device drivers. 27 Say Y here to enable the EC driver for the (Snapdragon-based) 28 Acer Aspire 1 laptop. The EC handles battery and charging 30 and USB Type-C DP HPD events. 37 tristate "Lenovo Yoga C630 Embedded Controller driver" 42 Driver for the Embedded Controller in the Qualcomm Snapdragon-based [all …]
|
D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0-only 5 # This dir should only include drivers for EC-like devices. 8 obj-$(CONFIG_EC_ACER_ASPIRE1) += acer-aspire1-ec.o 9 obj-$(CONFIG_EC_LENOVO_YOGA_C630) += lenovo-yoga-c630.o
|
/linux-6.12.1/drivers/power/supply/ |
D | lenovo_yoga_c630_battery.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2022-2024, Linaro Ltd 17 #include <linux/platform_data/lenovo-yoga-c630.h> 20 struct yoga_c630_ec *ec; member 73 struct yoga_c630_ec *ec = ecbat->ec; in yoga_c630_psy_update_bat_info() local 76 lockdep_assert_held(&ecbat->lock); in yoga_c630_psy_update_bat_info() 78 val = yoga_c630_ec_read8(ec, LENOVO_EC_BAT_PRESENT); in yoga_c630_psy_update_bat_info() 81 ecbat->bat_present = !!(val & LENOVO_EC_BAT_PRESENT_IS_PRESENT); in yoga_c630_psy_update_bat_info() 82 if (!ecbat->bat_present) in yoga_c630_psy_update_bat_info() 85 val = yoga_c630_ec_read8(ec, LENOVO_EC_BAT_ATTRIBUTES); in yoga_c630_psy_update_bat_info() [all …]
|
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 104 tristate "Active-semi ACT8945A charger driver" 108 Active-semi ActivePath ACT8945A charger. 158 tristate "DS2782/DS2786 standalone gas-gauge" 162 gas-gauge. 171 tristate "Lenovo Yoga C630 battery" 174 This driver enables battery support on the Lenovo Yoga C630 laptop. 208 tristate "Sharp SL-5500 (collie) battery" 212 SL-5500 (collie) models. 223 called ingenic-battery. [all …]
|
/linux-6.12.1/drivers/usb/typec/ucsi/ |
D | ucsi_yoga_c630.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2022-2024, Linaro Ltd 15 #include <linux/platform_data/lenovo-yoga-c630.h> 20 struct yoga_c630_ec *ec; member 30 *version = uec->version; in yoga_c630_ucsi_read_version() 41 ret = yoga_c630_ec_ucsi_read(uec->ec, buf); in yoga_c630_ucsi_read_cci() 57 ret = yoga_c630_ec_ucsi_read(uec->ec, buf); in yoga_c630_ucsi_read_message_in() 71 return yoga_c630_ec_ucsi_write(uec->ec, (u8*)&command); in yoga_c630_ucsi_async_control() 92 ucsi_connector_change(uec->ucsi, 1); in yoga_c630_ucsi_notify() 96 ret = uec->ucsi->ops->read_cci(uec->ucsi, &cci); in yoga_c630_ucsi_notify() [all …]
|
/linux-6.12.1/arch/arm64/boot/dts/qcom/ |
D | sdm850-lenovo-yoga-c630.dts | 1 // SPDX-License-Identifier: BSD-3-Clause 3 * Lenovo Yoga C630 8 /dts-v1/; 10 #include <dt-bindings/input/gpio-keys.h> 11 #include <dt-bindings/input/input.h> 12 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 13 #include <dt-bindings/sound/qcom,q6afe.h> 14 #include <dt-bindings/sound/qcom,q6asm.h> 16 #include "sdm845-wcd9340.dtsi" 24 /delete-node/ &ipa_fw_mem; [all …]
|