/linux-6.12.1/Documentation/devicetree/bindings/pwm/ |
D | google,cros-ec-pwm.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/pwm/google,cros-ec-pwm.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: PWM controlled by ChromeOS EC 10 - Thierry Reding <thierry.reding@gmail.com> 11 - '"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>' 14 Google's ChromeOS EC PWM is a simple PWM attached to the Embedded Controller 15 (EC) and controlled via a host-command interface. 16 An EC PWM node should be only found as a sub-node of the EC node (see [all …]
|
/linux-6.12.1/drivers/pwm/ |
D | pwm-cros-ec.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Expose a PWM controlled by the ChromeOS EC to the host processor. 13 #include <linux/pwm.h> 16 #include <dt-bindings/mfd/cros_ec.h> 19 * struct cros_ec_pwm_device - Driver data for EC PWM 21 * @ec: Pointer to EC device 22 * @use_pwm_type: Use PWM types instead of generic channels 25 struct cros_ec_device *ec; member 44 return -EINVAL; in cros_ec_dt_type_to_pwm_type() 51 struct cros_ec_device *ec = ec_pwm->ec; in cros_ec_pwm_set_duty() local [all …]
|
D | pwm-ntxec.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * e-book readers designed by the original design manufacturer Netronix, Inc. 5 * It contains RTC, battery monitoring, system power management, and PWM 8 * This driver implements PWM output. 13 * - The get_state callback is not implemented, because the current state of 14 * the PWM output can't be read back from the hardware. 15 * - The hardware can only generate normal polarity output. 16 * - The period and duty cycle can't be changed together in one atomic action. 22 #include <linux/pwm.h> 27 struct ntxec *ec; member [all …]
|
D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 2 obj-$(CONFIG_PWM) += core.o 3 obj-$(CONFIG_PWM_AB8500) += pwm-ab8500.o 4 obj-$(CONFIG_PWM_ADP5585) += pwm-adp5585.o 5 obj-$(CONFIG_PWM_APPLE) += pwm-apple.o 6 obj-$(CONFIG_PWM_ATMEL) += pwm-atmel.o 7 obj-$(CONFIG_PWM_ATMEL_HLCDC_PWM) += pwm-atmel-hlcdc.o 8 obj-$(CONFIG_PWM_ATMEL_TCB) += pwm-atmel-tcb.o 9 obj-$(CONFIG_PWM_AXI_PWMGEN) += pwm-axi-pwmgen.o 10 obj-$(CONFIG_PWM_BCM_IPROC) += pwm-bcm-iproc.o [all …]
|
/linux-6.12.1/Documentation/devicetree/bindings/mfd/ |
D | google,cros-ec.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/mfd/google,cros-ec.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Benson Leung <bleung@chromium.org> 11 - Guenter Roeck <groeck@chromium.org> 14 Google's ChromeOS EC is a microcontroller which talks to the AP and 16 The EC can be connected through various interfaces (I2C, SPI, and others) 22 - description: 23 For implementations of the EC connected through I2C. [all …]
|
D | netronix,ntxec.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jonathan Neuschäfer <j.neuschaefer@gmx.net> 13 This EC is found in e-book readers of multiple brands (e.g. Kobo, Tolino), and 22 - description: The I2C address of the EC 24 system-power-controller: 26 description: See Documentation/devicetree/bindings/power/power-controller.txt 31 The EC can signal interrupts via a GPIO line 33 "#pwm-cells": [all …]
|
/linux-6.12.1/arch/arm64/boot/dts/rockchip/ |
D | rk3399-gru.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 5 * Copyright 2016-2017 Google, Inc 8 #include <dt-bindings/input/input.h> 9 #include "rk3399-op1.dtsi" 18 stdout-path = "serial2:115200n8"; 27 * - Rails that only connect to the EC (or devices that the EC talks to) 29 * - Rails _are_ included if the rails go to the AP even if the AP 38 * - The EC controls the enable and the EC always enables a rail as 40 * - The rails are actually connected to each other by a jumper and 45 ppvar_sys: ppvar-sys { [all …]
|
D | rk3399-gru-chromebook.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Google Gru-Chromebook shared properties 8 #include "rk3399-gru.dtsi" 11 pp900_ap: pp900-ap { 12 compatible = "regulator-fixed"; 13 regulator-name = "pp900_ap"; 15 /* EC turns on w/ pp900_ap_en; always on for AP */ 16 regulator-always-on; 17 regulator-boot-on; 18 regulator-min-microvolt = <900000>; [all …]
|
/linux-6.12.1/drivers/platform/chrome/wilco_ec/ |
D | keyboard_leds.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Since the EC will never change the backlight level of its own accord, 14 #include <linux/platform_data/wilco-ec.h> 22 struct wilco_ec_device *ec; member 33 * struct wilco_keyboard_leds_msg - Message to/from EC for keyboard LED control. 35 * @status: Set by EC to 0 on success, 0xFF on failure. 40 * @percent: Brightness in 0-100. Only meaningful in PWM mode. 55 static int send_kbbl_msg(struct wilco_ec_device *ec, in send_kbbl_msg() argument 69 ret = wilco_ec_mailbox(ec, &msg); in send_kbbl_msg() 71 dev_err(ec->dev, in send_kbbl_msg() [all …]
|
/linux-6.12.1/arch/arm64/boot/dts/qcom/ |
D | sc7280-idp-ec-h1.dtsi | 1 // SPDX-License-Identifier: BSD-3-Clause 3 * sc7280 EC/H1 over SPI (common between IDP2 and CRD) 11 pinctrl-0 = <&qup_spi10_data_clk>, <&qup_spi10_cs_gpio_init_high>, <&qup_spi10_cs_gpio>; 12 cs-gpios = <&tlmm 43 GPIO_ACTIVE_LOW>; 14 cros_ec: ec@0 { 15 compatible = "google,cros-ec-spi"; 17 interrupt-parent = <&tlmm>; 19 pinctrl-names = "default"; 20 pinctrl-0 = <&ap_ec_int_l>; 21 spi-max-frequency = <3000000>; [all …]
|
D | sc7280-herobrine.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 16 #include <dt-bindings/input/gpio-keys.h> 17 #include <dt-bindings/input/input.h> 18 #include <dt-bindings/leds/common.h> 20 #include "sc7280-qcard.dtsi" 21 #include "sc7280-chrome-common.dtsi" 25 stdout-path = "serial0:115200n8"; 38 ppvar_sys: ppvar-sys-regulator { 39 compatible = "regulator-fixed"; 40 regulator-name = "ppvar_sys"; [all …]
|
D | sc7180-trogdor.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/input/gpio-keys.h> 10 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/leds/common.h> 12 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 13 #include <dt-bindings/sound/sc7180-lpass.h> 16 #include "sc7180-firmware-tfa.dtsi" 22 thermal-zones { 23 charger_thermal: charger-thermal { [all …]
|
D | sdm845-cheza.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 #include <dt-bindings/input/input.h> 9 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 25 stdout-path = "serial0:115200n8"; 29 compatible = "pwm-backlight"; 31 enable-gpios = <&tlmm 37 GPIO_ACTIVE_HIGH>; 32 power-supply = <&ppvar_sys>; 33 pinctrl-names = "default"; 34 pinctrl-0 = <&ap_edp_bklten>; 37 /* FIXED REGULATORS - parents above children */ [all …]
|
/linux-6.12.1/drivers/mfd/ |
D | ntxec.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * e-book readers designed by the original design manufacturer Netronix, Inc. 5 * It contains RTC, battery monitoring, system power management, and PWM 9 * power-off/reset. 43 .addr = poweroff_restart_client->addr, in ntxec_poweroff() 52 res = i2c_transfer(poweroff_restart_client->adapter, msgs, ARRAY_SIZE(msgs)); in ntxec_poweroff() 54 dev_warn(&poweroff_restart_client->dev, in ntxec_poweroff() 73 * does send the full two-byte value, but doesn't check the result). in ntxec_restart() 77 .addr = poweroff_restart_client->addr, in ntxec_restart() 79 .len = sizeof(buf) - 1, in ntxec_restart() [all …]
|
/linux-6.12.1/drivers/hwmon/ |
D | oxp-sensors.c | 1 // SPDX-License-Identifier: GPL-2.0+ 10 * Fan control is provided via pwm interface in the range [0-255]. 11 * Old AMD boards use [0-100] as range in the EC, the written value is 13 * AOKZOE are not scaled but have the same EC layout. Newer models 14 * like the 2 and X1 are [0-184] and are scaled to 0-255. OrangePi 15 * are [1-244] and scaled to 0-255. 66 /* Fan reading and PWM */ 69 #define OXP_SENSOR_PWM_ENABLE_REG 0x4A /* PWM enable is 1 register long */ 70 #define OXP_SENSOR_PWM_REG 0x4B /* PWM reading is 1 register long */ 74 /* OrangePi fan reading and PWM */ [all …]
|
D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 6 obj-$(CONFIG_HWMON) += hwmon.o 7 obj-$(CONFIG_HWMON_VID) += hwmon-vid.o 10 obj-$(CONFIG_SENSORS_ACPI_POWER) += acpi_power_meter.o 11 obj-$(CONFIG_SENSORS_ATK0110) += asus_atk0110.o 12 obj-$(CONFIG_SENSORS_ASUS_EC) += asus-ec-sensors.o 13 obj-$(CONFIG_SENSORS_ASUS_WMI) += asus_wmi_sensors.o 14 obj-$(CONFIG_SENSORS_HP_WMI) += hp-wmi-sensors.o 18 obj-$(CONFIG_SENSORS_ASB100) += asb100.o 19 obj-$(CONFIG_SENSORS_W83627HF) += w83627hf.o [all …]
|
D | nct6683.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * nct6683 - Driver for the hardware monitoring functionality of 6 * Copyright (C) 2013 Guenter Roeck <linux@roeck-us.net> 9 * Copyright (C) 2012, 2013 Guenter Roeck <linux@roeck-us.net> 13 * Chip #vin #fan #pwm #temp chip ID 31 #include <linux/hwmon-sysfs.h> 58 * Super-I/O constants and functions 104 return -EBUSY; in superio_enter() 126 #define IOREGION_OFFSET 4 /* Use EC port 1 */ 299 /* ------------------------------------------------------- */ [all …]
|
/linux-6.12.1/drivers/rtc/ |
D | rtc-ntxec.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * e-book readers designed by the original design manufacturer Netronix, Inc. 5 * It contains RTC, battery monitoring, system power management, and PWM 22 struct ntxec *ec; member 43 res = regmap_read(rtc->ec->regmap, NTXEC_REG_READ_MINUTE_SECOND, &value); in ntxec_read_time() 47 tm->tm_min = value >> 8; in ntxec_read_time() 48 tm->tm_sec = value & 0xff; in ntxec_read_time() 50 res = regmap_read(rtc->ec->regmap, NTXEC_REG_READ_MDAY_HOUR, &value); in ntxec_read_time() 54 tm->tm_mday = value >> 8; in ntxec_read_time() 55 tm->tm_hour = value & 0xff; in ntxec_read_time() [all …]
|
/linux-6.12.1/arch/arm/boot/dts/amlogic/ |
D | meson8b-ec100.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/input/input.h> 22 stdout-path = "serial0:115200n8"; 30 emmc_pwrseq: emmc-pwrseq { 31 compatible = "mmc-pwrseq-emmc"; 32 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>; 35 gpio-keys { 36 compatible = "gpio-keys-polled"; [all …]
|
/linux-6.12.1/arch/arm64/boot/dts/mediatek/ |
D | mt8192-asurada.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 6 /dts-v1/; 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/spmi/spmi.h> 25 stdout-path = "serial0:115200n8"; 33 backlight_lcd0: backlight-lcd0 { 34 compatible = "pwm-backlight"; 36 power-supply = <&ppvar_sys>; 37 enable-gpios = <&pio 152 0>; 38 brightness-levels = <0 1023>; [all …]
|
D | mt8183-kukui-jacuzzi.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 6 #include "mt8183-kukui.dtsi" 7 /* Must come after mt8183-kukui.dtsi to modify cros_ec */ 8 #include <arm/cros-ec-keyboard.dtsi> 11 pp1200_mipibrdg: pp1200-mipibrdg { 12 compatible = "regulator-fixed"; 13 regulator-name = "pp1200_mipibrdg"; 14 pinctrl-names = "default"; 15 pinctrl-0 = <&pp1200_mipibrdg_en>; 17 enable-active-high; [all …]
|
D | mt8195-cherry.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 6 #include <dt-bindings/gpio/gpio.h> 7 #include <dt-bindings/spmi/spmi.h> 25 backlight_lcd0: backlight-lcd0 { 26 compatible = "pwm-backlight"; 27 brightness-levels = <0 1023>; 28 default-brightness-level = <576>; 29 enable-gpios = <&pio 82 GPIO_ACTIVE_HIGH>; 30 num-interpolated-steps = <1023>; 32 power-supply = <&ppvar_sys>; [all …]
|
/linux-6.12.1/Documentation/admin-guide/laptops/ |
D | thinkpad-acpi.rst | 9 - Borislav Deianov <borislav@users.sf.net> 10 - Henrique de Moraes Holschuh <hmh@hmh.eng.br> 12 http://ibm-acpi.sf.net/ 16 through the ACPI and ACPI EC framework, but not otherwise fully 19 This driver used to be named ibm-acpi until kernel 2.6.21 and release 20 0.13-20070314. It used to be in the drivers/acpi tree, but it was 21 moved to the drivers/misc tree and renamed to thinkpad-acpi for kernel 25 The driver is named "thinkpad-acpi". In some places, like module 29 "tpacpi" is used as a shorthand where "thinkpad-acpi" would be too 33 ------ [all …]
|
/linux-6.12.1/arch/arm/boot/dts/nvidia/ |
D | tegra124-nyan.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 2 #include <dt-bindings/input/input.h> 3 #include <dt-bindings/thermal/thermal.h> 14 stdout-path = "serial0:115200n8"; 20 * missing a unit-address. However, the bootloader on these Chromebook 22 * Adding the unit-address causes the bootloader to create a /memory 34 /delete-node/ memory@80000000; 40 vdd-supply = <&vdd_3v3_hdmi>; 41 pll-supply = <&vdd_hdmi_pll>; 42 hdmi-supply = <&vdd_5v0_hdmi>; [all …]
|
/linux-6.12.1/arch/arm/boot/dts/nxp/imx/ |
D | imx6sl-tolino-vision.dts | 1 // SPDX-License-Identifier: GPL-2.0 5 * Name on mainboard is: 37NB-E60Q30+4A3 11 /dts-v1/; 13 #include <dt-bindings/leds/common.h> 14 #include <dt-bindings/input/input.h> 15 #include <dt-bindings/gpio/gpio.h> 20 compatible = "kobo,tolino-vision", "fsl,imx6sl"; 28 compatible = "pwm-backlight"; 29 pwms = <&ec 0 50000>; 30 power-supply = <&backlight_regulator>; [all …]
|