| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/regulator/ |
| D | richtek,rtmv20-regulator.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/regulator/richtek,rtmv20-regulator.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - ChiYuan Huang <cy_huang@richtek.com> 27 wakeup-source: true 32 enable-gpios: 36 richtek,ld-pulse-delay-us: 38 load current pulse delay in microsecond after strobe pin pulse high. 43 richtek,ld-pulse-width-us: [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/regulator/ |
| D | richtek,rtmv20-regulator.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/regulator/richtek,rtmv20-regulator.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - ChiYuan Huang <cy_huang@richtek.com> 27 wakeup-source: true 32 enable-gpios: 36 richtek,ld-pulse-delay-us: 38 load current pulse delay in microsecond after strobe pin pulse high. 43 richtek,ld-pulse-width-us: [all …]
|
| /kernel/linux/linux-5.10/drivers/regulator/ |
| D | rtmv20-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 #include <linux/delay.h> 75 gpiod_set_value(priv->enable_gpio, 1); in rtmv20_lsw_enable() 80 /* HW re-enable, disable cache only and sync regcache here */ in rtmv20_lsw_enable() 81 regcache_cache_only(priv->regmap, false); in rtmv20_lsw_enable() 82 ret = regcache_sync(priv->regmap); in rtmv20_lsw_enable() 99 regcache_cache_only(priv->regmap, true); in rtmv20_lsw_disable() 100 regcache_mark_dirty(priv->regmap); in rtmv20_lsw_disable() 102 gpiod_set_value(priv->enable_gpio, 0); in rtmv20_lsw_disable() 113 return -EINVAL; in rtmv20_lsw_set_current_limit() [all …]
|
| /kernel/linux/linux-6.6/drivers/regulator/ |
| D | rtmv20-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 #include <linux/delay.h> 75 gpiod_set_value(priv->enable_gpio, 1); in rtmv20_lsw_enable() 80 /* HW re-enable, disable cache only and sync regcache here */ in rtmv20_lsw_enable() 81 regcache_cache_only(priv->regmap, false); in rtmv20_lsw_enable() 82 ret = regcache_sync(priv->regmap); in rtmv20_lsw_enable() 99 regcache_cache_only(priv->regmap, true); in rtmv20_lsw_disable() 100 regcache_mark_dirty(priv->regmap); in rtmv20_lsw_disable() 102 gpiod_set_value(priv->enable_gpio, 0); in rtmv20_lsw_disable() 113 return -EINVAL; in rtmv20_lsw_set_current_limit() [all …]
|
| /kernel/linux/linux-6.6/drivers/iio/adc/ |
| D | hx711.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (c) 2016 Andreas Klinger <ak@it-klinger.de> 15 #include <linux/delay.h> 24 /* gain to pulse and scale conversion */ 76 return -EINVAL; in hx711_get_scale_to_gain() 89 * 2x32-bit channel + 64-bit naturally aligned timestamp 93 * delay after a rising edge on SCK until the data is ready DOUT 107 * if preempted for more then 60us while PD_SCK is high: in hx711_cycle() 112 gpiod_set_value(hx711_data->gpiod_pd_sck, 1); in hx711_cycle() 119 ndelay(hx711_data->data_ready_delay_ns); in hx711_cycle() [all …]
|
| /kernel/linux/linux-5.10/drivers/iio/adc/ |
| D | hx711.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (c) 2016 Andreas Klinger <ak@it-klinger.de> 15 #include <linux/delay.h> 24 /* gain to pulse and scale conversion */ 76 return -EINVAL; in hx711_get_scale_to_gain() 89 * 2x32-bit channel + 64-bit naturally aligned timestamp 93 * delay after a rising edge on SCK until the data is ready DOUT 107 * if preempted for more then 60us while PD_SCK is high: in hx711_cycle() 112 gpiod_set_value(hx711_data->gpiod_pd_sck, 1); in hx711_cycle() 119 ndelay(hx711_data->data_ready_delay_ns); in hx711_cycle() [all …]
|
| /kernel/linux/linux-5.10/drivers/media/rc/ |
| D | ite-cir.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 * skeleton provided by the nuvoton-cir driver. 10 * The lirc_it87 driver was originally written by Hans-Gunter Lutke Uphues 13 * <jimbo-lirc@edwardsclan.net>. 16 * <spmf2004-lirc@yahoo.fr> in 2008. 25 #include <linux/delay.h> 29 #include <media/rc-core.h> 32 #include "ite-cir.h" 59 MODULE_PARM_DESC(tx_duty_cycle, "Override TX duty cycle, 1-100"); 64 MODULE_PARM_DESC(sample_period, "Override carrier sample period, us"); [all …]
|
| /kernel/linux/linux-5.10/drivers/iio/proximity/ |
| D | srf04.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (c) 2017 Andreas Klinger <ak@it-klinger.de> 8 * https://www.robot-electronics.co.uk/htm/srf04tech.htm 12 * +---+ 14 * trig: --+ +------------------------------------------------------ 16 * |<->| 19 * ultra +-+ +-+ +-+ 21 * burst: ---------+ +-+ +-+ +----------------------------------------- 23 * ultra . +-+ +-+ +-+ 25 * echo: ----------------------------------+ +-+ +-+ +---------------- [all …]
|
| /kernel/linux/linux-6.6/drivers/iio/proximity/ |
| D | srf04.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (c) 2017 Andreas Klinger <ak@it-klinger.de> 8 * https://www.robot-electronics.co.uk/htm/srf04tech.htm 12 * +---+ 14 * trig: --+ +------------------------------------------------------ 16 * |<->| 19 * ultra +-+ +-+ +-+ 21 * burst: ---------+ +-+ +-+ +----------------------------------------- 23 * ultra . +-+ +-+ +-+ 25 * echo: ----------------------------------+ +-+ +-+ +---------------- [all …]
|
| /kernel/linux/linux-6.6/kernel/time/ |
| D | ntp.c | 1 // SPDX-License-Identifier: GPL-2.0 49 * phase-lock loop variables 82 /* constant (boot-param configurable) NTP tick adjustment (upscaled) */ 91 * The following variables are used when a pulse-per-second (PPS) signal 142 * pps_clear - Clears the PPS state variables 161 pps_valid--; in pps_dec_valid() 195 txc->ppsfreq = shift_right((pps_freq >> PPM_SCALE_INV_SHIFT) * in pps_fill_timex() 197 txc->jitter = pps_jitter; in pps_fill_timex() 199 txc->jitter = pps_jitter / NSEC_PER_USEC; in pps_fill_timex() 200 txc->shift = pps_shift; in pps_fill_timex() [all …]
|
| /kernel/linux/linux-5.10/kernel/time/ |
| D | ntp.c | 1 // SPDX-License-Identifier: GPL-2.0 49 * phase-lock loop variables 82 /* constant (boot-param configurable) NTP tick adjustment (upscaled) */ 91 * The following variables are used when a pulse-per-second (PPS) signal 142 * pps_clear - Clears the PPS state variables 161 pps_valid--; in pps_dec_valid() 195 txc->ppsfreq = shift_right((pps_freq >> PPM_SCALE_INV_SHIFT) * in pps_fill_timex() 197 txc->jitter = pps_jitter; in pps_fill_timex() 199 txc->jitter = pps_jitter / NSEC_PER_USEC; in pps_fill_timex() 200 txc->shift = pps_shift; in pps_fill_timex() [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/panel/ |
| D | panel-samsung-s6e63m0.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * Derived from drivers/gpu/drm/panel-samsung-ld9040.c 15 #include <linux/delay.h> 19 #include <linux/media-bus-format.h> 23 #include "panel-samsung-s6e63m0.h" 32 #define MAX_BRIGHTNESS (NUM_GAMMA_LEVELS - 1) 226 /* This tells us which ACL level goes with which gamma */ 228 /* 30 - 60 cd: ACL off/NULL */ 230 /* 70 - 250 cd: 40P ACL */ 232 /* 260 - 300 cd: 50P ACL */ [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
| D | intel_dsi_vbt.c | 34 #include <asm/intel-mid.h> 132 if (hweight8(intel_dsi->ports) == 1) in intel_dsi_seq_port_to_port() 133 return ffs(intel_dsi->ports) - 1; in intel_dsi_seq_port_to_port() 136 if (intel_dsi->ports & BIT(PORT_B)) in intel_dsi_seq_port_to_port() 138 else if (intel_dsi->ports & BIT(PORT_C)) in intel_dsi_seq_port_to_port() 148 struct drm_i915_private *dev_priv = to_i915(intel_dsi->base.base.dev); in mipi_exec_send_packet() 154 drm_dbg_kms(&dev_priv->drm, "\n"); in mipi_exec_send_packet() 166 if (drm_WARN_ON(&dev_priv->drm, !intel_dsi->dsi_hosts[port])) in mipi_exec_send_packet() 169 dsi_device = intel_dsi->dsi_hosts[port]->device; in mipi_exec_send_packet() 171 drm_dbg_kms(&dev_priv->drm, "no dsi device for port %c\n", in mipi_exec_send_packet() [all …]
|
| /kernel/linux/linux-5.10/sound/soc/codecs/ |
| D | tas571x.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 16 #include <linux/delay.h> 62 return priv->chip->vol_reg_size; in tas571x_register_size() 88 for (i = size; i >= 1; --i) { in tas571x_reg_write() 99 return -EIO; in tas571x_reg_write() 116 msgs[0].addr = client->addr; in tas571x_reg_read() 121 msgs[1].addr = client->addr; in tas571x_reg_read() 126 ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); in tas571x_reg_read() 130 return -EIO; in tas571x_reg_read() 143 * register write for 8- and 20-byte registers [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/i915/display/ |
| D | intel_dsi_vbt.c | 139 if (hweight8(intel_dsi->ports) == 1) in intel_dsi_seq_port_to_port() 140 return ffs(intel_dsi->ports) - 1; in intel_dsi_seq_port_to_port() 143 if (intel_dsi->ports & BIT(PORT_B)) in intel_dsi_seq_port_to_port() 145 else if (intel_dsi->ports & BIT(PORT_C)) in intel_dsi_seq_port_to_port() 155 struct drm_i915_private *dev_priv = to_i915(intel_dsi->base.base.dev); in mipi_exec_send_packet() 161 drm_dbg_kms(&dev_priv->drm, "\n"); in mipi_exec_send_packet() 173 if (drm_WARN_ON(&dev_priv->drm, !intel_dsi->dsi_hosts[port])) in mipi_exec_send_packet() 176 dsi_device = intel_dsi->dsi_hosts[port]->device; in mipi_exec_send_packet() 178 drm_dbg_kms(&dev_priv->drm, "no dsi device for port %c\n", in mipi_exec_send_packet() 184 dsi_device->mode_flags &= ~MIPI_DSI_MODE_LPM; in mipi_exec_send_packet() [all …]
|
| /kernel/linux/linux-5.10/drivers/scsi/ufs/ |
| D | ufs-qcom.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2013-2016, Linux Foundation. All rights reserved. 12 #include <linux/reset-controller.h> 16 #include "ufshcd-pltfrm.h" 18 #include "ufs-qcom.h" 64 dev_err(hba->dev, "%s: couldn't read PA_CONNECTEDTXDATALANES %d\n", in ufs_qcom_get_connected_tx_lanes() 84 if (optional && err == -ENOENT) { in ufs_qcom_host_clk_get() 89 if (err != -EPROBE_DEFER) in ufs_qcom_host_clk_get() 109 if (!host->is_lane_clks_enabled) in ufs_qcom_disable_lane_clks() 112 clk_disable_unprepare(host->tx_l1_sync_clk); in ufs_qcom_disable_lane_clks() [all …]
|
| /kernel/linux/linux-6.6/sound/soc/codecs/ |
| D | tas571x.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 16 #include <linux/delay.h> 62 return priv->chip->vol_reg_size; in tas571x_register_size() 88 for (i = size; i >= 1; --i) { in tas571x_reg_write() 99 return -EIO; in tas571x_reg_write() 116 msgs[0].addr = client->addr; in tas571x_reg_read() 121 msgs[1].addr = client->addr; in tas571x_reg_read() 126 ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); in tas571x_reg_read() 130 return -EIO; in tas571x_reg_read() 143 * register write for 8- and 20-byte registers [all …]
|
| /kernel/linux/linux-6.6/drivers/input/touchscreen/ |
| D | cyttsp5.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * Copyright (C) 2012-2015 Cypress Semiconductor 13 #include <linux/crc-itu-t.h> 14 #include <linux/delay.h> 32 #define CY_NUM_BTN_EVENT_ID GENMASK(CY_BITS_PER_BTN - 1, 0) 226 error = regmap_bulk_read(ts->regmap, HID_INPUT_REG, temp, sizeof(temp)); in cyttsp5_read() 235 return -EINVAL; in cyttsp5_read() 238 return regmap_bulk_read(ts->regmap, HID_INPUT_REG, buf, size); in cyttsp5_read() 247 return -E2BIG; in cyttsp5_write() 263 return regmap_bulk_write(ts->regmap, reg & 0xFF, cmd, size + 1); in cyttsp5_write() [all …]
|
| /kernel/linux/linux-6.6/drivers/ufs/host/ |
| D | ufs-mediatek.c | 1 // SPDX-License-Identifier: GPL-2.0 9 #include <linux/arm-smccc.h> 12 #include <linux/delay.h> 26 #include "ufshcd-pltfrm.h" 29 #include "ufs-mediatek.h" 34 #include "ufs-mediatek-trace.h" 52 { .compatible = "mediatek,mt8183-ufshci" }, 98 return !!(host->caps & UFS_MTK_CAP_BOOST_CRYPT_ENGINE); in ufs_mtk_is_boost_crypt_enabled() 105 return !!(host->caps & UFS_MTK_CAP_VA09_PWR_CTRL); in ufs_mtk_is_va09_supported() 112 return !!(host->caps & UFS_MTK_CAP_BROKEN_VCC); in ufs_mtk_is_broken_vcc() [all …]
|
| /kernel/linux/linux-5.10/drivers/media/i2c/ |
| D | max9286.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (C) 2017-2019 Jacopo Mondi 6 * Copyright (C) 2017-2019 Kieran Bingham 7 * Copyright (C) 2017-2019 Laurent Pinchart 8 * Copyright (C) 2017-2019 Niklas Söderlund 13 #include <linux/delay.h> 19 #include <linux/i2c-mux.h> 26 #include <media/v4l2-async.h> 27 #include <media/v4l2-ctrls.h> 28 #include <media/v4l2-device.h> [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/mcde/ |
| D | mcde_dsi.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 #include <linux/delay.h> 73 d = host_to_mcde_dsi(mdsi->host); in mcde_dsi_irq() 75 dev_dbg(d->dev, "%s called\n", __func__); in mcde_dsi_irq() 77 val = readl(d->regs + DSI_DIRECT_CMD_STS_FLAG); in mcde_dsi_irq() 79 dev_dbg(d->dev, "DSI_DIRECT_CMD_STS_FLAG = %08x\n", val); in mcde_dsi_irq() 81 dev_dbg(d->dev, "direct command write completed\n"); in mcde_dsi_irq() 84 dev_dbg(d->dev, "direct command TE received\n"); in mcde_dsi_irq() 87 dev_err(d->dev, "direct command ACK ERR received\n"); in mcde_dsi_irq() 89 dev_err(d->dev, "direct command read ERR received\n"); in mcde_dsi_irq() [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/mcde/ |
| D | mcde_dsi.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 #include <linux/delay.h> 73 d = host_to_mcde_dsi(mdsi->host); in mcde_dsi_irq() 75 dev_dbg(d->dev, "%s called\n", __func__); in mcde_dsi_irq() 77 val = readl(d->regs + DSI_DIRECT_CMD_STS_FLAG); in mcde_dsi_irq() 79 dev_dbg(d->dev, "DSI_DIRECT_CMD_STS_FLAG = %08x\n", val); in mcde_dsi_irq() 81 dev_dbg(d->dev, "direct command write completed\n"); in mcde_dsi_irq() 84 dev_dbg(d->dev, "direct command TE received\n"); in mcde_dsi_irq() 87 dev_err(d->dev, "direct command ACK ERR received\n"); in mcde_dsi_irq() 89 dev_err(d->dev, "direct command read ERR received\n"); in mcde_dsi_irq() [all …]
|
| /kernel/linux/linux-6.6/drivers/usb/chipidea/ |
| D | core.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * core.c - ChipIdea USB IP core family device controller 5 * Copyright (C) 2008 Chipidea - MIPS Technologies, Inc. All rights reserved. 12 * - Four transfers are supported, usbtest is passed 13 * - USB Certification for gadget: CH9 and Mass Storage are passed 14 * - Low power mode 15 * - USB wakeup 17 #include <linux/delay.h> 19 #include <linux/dma-mapping.h> 105 ci->hw_bank.regmap[i] = in hw_alloc_regmap() [all …]
|
| /kernel/linux/linux-5.10/drivers/usb/chipidea/ |
| D | core.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * core.c - ChipIdea USB IP core family device controller 5 * Copyright (C) 2008 Chipidea - MIPS Technologies, Inc. All rights reserved. 12 * - Four transfers are supported, usbtest is passed 13 * - USB Certification for gadget: CH9 and Mass Storage are passed 14 * - Low power mode 15 * - USB wakeup 17 #include <linux/delay.h> 19 #include <linux/dma-mapping.h> 103 ci->hw_bank.regmap[i] = in hw_alloc_regmap() [all …]
|
| /kernel/linux/patches/linux-5.10/hispark_taurus_patch/ |
| D | hispark_taurus.patch | 1 diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig 3 --- a/arch/arm/Kconfig 5 @@ -322,7 +322,7 @@ config ARCH_MULTIPLATFORM 9 - select AUTO_ZRELADDR 14 @@ -650,6 +650,8 @@ source "arch/arm/mach-highbank/Kconfig" 16 source "arch/arm/mach-hisi/Kconfig" 18 +source "arch/arm/mach-hibvt/Kconfig" 20 source "arch/arm/mach-imx/Kconfig" 22 source "arch/arm/mach-integrator/Kconfig" 23 diff --git a/arch/arm/Makefile b/arch/arm/Makefile [all …]
|