Searched +full:jz4740 +full:- +full:battery (Results 1 – 13 of 13) sorted by relevance
1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)2 # Copyright 2019-2020 Artur Rojek4 ---5 $id: "http://devicetree.org/schemas/power/supply/ingenic,battery.yaml#"6 $schema: "http://devicetree.org/meta-schemas/core.yaml#"8 title: Ingenic JZ47xx battery bindings11 - Artur Rojek <contact@artur-rojek.eu>16 - const: ingenic,jz4740-battery17 - items:18 - enum:[all …]
1 // SPDX-License-Identifier: GPL-2.03 * Battery driver for the Ingenic JZ47xx SoCs4 * Copyright (c) 2019 Artur Rojek <contact@artur-rojek.eu>6 * based on drivers/power/supply/jz4740-battery.c20 struct power_supply *battery; member29 struct power_supply_battery_info *info = &bat->info; in ingenic_battery_get_property()34 ret = iio_read_channel_processed(bat->channel, &val->intval); in ingenic_battery_get_property()35 val->intval *= 1000; in ingenic_battery_get_property()36 if (val->intval < info->voltage_min_design_uv) in ingenic_battery_get_property()37 val->intval = POWER_SUPPLY_HEALTH_DEAD; in ingenic_battery_get_property()[all …]
2 * Generic battery driver code using IIO4 * based on jz4740-battery.c25 #include <linux/power/generic-adc-battery.h>66 schedule_delayed_work(&adc_bat->bat_work, msecs_to_jiffies(0)); in gab_ext_power_changed()84 * should correspond one-to-one with enum chan_type.94 struct gab_platform_data *pdata = adc_bat->pdata; in gab_charge_finished()95 bool ret = gpio_get_value(pdata->gpio_charge_finished); in gab_charge_finished()96 bool inv = pdata->gpio_inverted; in gab_charge_finished()98 if (!gpio_is_valid(pdata->gpio_charge_finished)) in gab_charge_finished()105 struct gab_platform_data *pdata = adc_bat->pdata; in gab_get_status()[all …]
1 // SPDX-License-Identifier: GPL-2.02 /dts-v1/;4 #include "jz4740.dtsi"6 #include <dt-bindings/gpio/gpio.h>7 #include <dt-bindings/iio/adc/ingenic,adc.h>8 #include <dt-bindings/clock/ingenic,tcu.h>9 #include <dt-bindings/input/input.h>18 compatible = "qi,lb60", "ingenic,jz4740";27 stdout-path = &uart0;31 compatible = "regulator-fixed";[all …]
1 # SPDX-License-Identifier: GPL-2.0-only18 ASoC provides power efficient ALSA support for embedded battery powered22 will be called snd-soc-core.53 source "sound/soc/jz4740/Kconfig"84 # generic frame-work
1 // SPDX-License-Identifier: GPL-2.04 * Copyright (c) 2019 Artur Rojek <contact@artur-rojek.eu>6 * based on drivers/mfd/jz4740-adc.c9 #include <dt-bindings/iio/adc/ingenic,adc.h>114 mutex_lock(&adc->lock); in ingenic_adc_set_adcmd()117 readl(adc->base + JZ_ADC_REG_ADCMD); in ingenic_adc_set_adcmd()124 adc->base + JZ_ADC_REG_ADCMD); in ingenic_adc_set_adcmd()130 adc->base + JZ_ADC_REG_ADCMD); in ingenic_adc_set_adcmd()138 adc->base + JZ_ADC_REG_ADCMD); in ingenic_adc_set_adcmd()144 adc->base + JZ_ADC_REG_ADCMD); in ingenic_adc_set_adcmd()[all …]
1 # SPDX-License-Identifier: GPL-2.0-only44 This clock should be battery-backed, so that it reads the correct45 time when the system boots from a power-off state. Otherwise, your48 If the clock you specify here is not battery backed, it may still83 Say yes here to add support for the non volatile (often battery132 once-per-second update interrupts, used for synchronization.150 will be called rtc-test.164 will be called rtc-88pm860x.174 will be called rtc-88pm80x.178 tristate "Abracon AB-RTCMC-32.768kHz-B5ZE-S3"[all …]
9 -------------------------30 ``diff -u`` to make the patch easy to merge. Be prepared to get your40 See Documentation/process/coding-style.rst for guidance here.46 See Documentation/process/submitting-patches.rst for details.57 include a Signed-off-by: line. The current version of this59 Documentation/process/submitting-patches.rst.70 that the bug would present a short-term risk to other users if it76 Documentation/admin-guide/security-bugs.rst for details.81 ---------------------------------------------------97 W: *Web-page* with status/info[all …]
... then 81 /usr/share/command-not-found/command-not-found -- "$ ...