Home
last modified time | relevance | path

Searched +full:assert +full:- +full:falling +full:- +full:edge (Results 1 – 25 of 43) sorted by relevance

12

/kernel/linux/linux-5.10/Documentation/devicetree/bindings/pps/
Dpps-gpio.txt1 Device-Tree Bindings for a PPS Signal on GPIO
3 These properties describe a PPS (pulse-per-second) signal connected to
7 - compatible: should be "pps-gpio"
8 - gpios: one PPS GPIO in the format described by ../gpio/gpio.txt
11 - echo-gpios: one PPS ECHO GPIO in the format described by ../gpio/gpio.txt
12 - echo-active-ms: duration in ms of the active portion of the echo pulse
15 - assert-falling-edge: when present, assert is indicated by a falling edge
16 (instead of by a rising edge)
20 pinctrl-names = "default";
21 pinctrl-0 = <&pinctrl_pps>;
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/pps/
Dpps-gpio.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/pps/pps-gpio.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Fabio Estevam <festevam@gmail.com>
14 const: pps-gpio
20 echo-gpios:
24 echo-active-ms:
27 assert-falling-edge:
28 description: Indicates a falling edge assert, when present. Rising edge if absent.
[all …]
/kernel/linux/linux-5.10/sound/drivers/
Dportman2x4.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (c) by Levent Guendogdu <levon@feature-it.com>
9 * - cleanup and rewrite
11 * - source code cleanup
13 * - fixed compilation problem with alsa 1.0.6a (removed MODULE_CLASSES,
17 * - added 2.6 kernel support
19 …* - added parport_unregister_driver to the startup routine if the driver fails to detect a po…
20 * - added support for all 4 output ports in portman_putmidi
22 * - added checks for opened input device in interrupt handler
24 * - ported from alsa 0.5 to 1.0
[all …]
/kernel/linux/linux-6.6/sound/drivers/
Dportman2x4.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (c) by Levent Guendogdu <levon@feature-it.com>
9 * - cleanup and rewrite
11 * - source code cleanup
13 * - fixed compilation problem with alsa 1.0.6a (removed MODULE_CLASSES,
17 * - added 2.6 kernel support
19 …* - added parport_unregister_driver to the startup routine if the driver fails to detect a po…
20 * - added support for all 4 output ports in portman_putmidi
22 * - added checks for opened input device in interrupt handler
24 * - ported from alsa 0.5 to 1.0
[all …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dstm32mp157c-odyssey.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
6 /dts-v1/;
8 #include "stm32mp157c-odyssey-som.dtsi"
11 model = "Seeed Studio Odyssey-STM32MP157C Board";
12 compatible = "seeed,stm32mp157c-odyssey",
13 "seeed,stm32mp157c-odyssey-som", "st,stm32mp157";
21 stdout-path = "serial0:115200n8";
27 pinctrl-0 = <&ethernet0_rgmii_pins_a>;
28 pinctrl-1 = <&ethernet0_rgmii_sleep_pins_a>;
29 pinctrl-names = "default", "sleep";
[all …]
Dstm32mp15xx-dhcom-som.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
3 * Copyright (C) 2019-2020 Marek Vasut <marex@denx.de>
6 #include "stm32mp15-pinctrl.dtsi"
7 #include "stm32mp15xxaa-pinctrl.dtsi"
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/mfd/st,stpmic1.h>
21 reserved-memory {
22 #address-cells = <1>;
23 #size-cells = <1>;
27 compatible = "shared-dma-pool";
[all …]
/kernel/linux/linux-6.6/arch/arm/boot/dts/st/
Dstm32mp157c-odyssey.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
6 /dts-v1/;
8 #include "stm32mp157c-odyssey-som.dtsi"
11 model = "Seeed Studio Odyssey-STM32MP157C Board";
12 compatible = "seeed,stm32mp157c-odyssey",
13 "seeed,stm32mp157c-odyssey-som", "st,stm32mp157";
21 stdout-path = "serial0:115200n8";
26 pinctrl-names = "default", "sleep";
27 pinctrl-0 = <&dcmi_pins_b>;
28 pinctrl-1 = <&dcmi_sleep_pins_b>;
[all …]
Dstm32mp15xx-dhcom-som.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
3 * Copyright (C) 2019-2020 Marek Vasut <marex@denx.de>
6 #include "stm32mp15-pinctrl.dtsi"
7 #include "stm32mp15xxaa-pinctrl.dtsi"
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/mfd/st,stpmic1.h>
23 stdout-path = "serial0:115200n8";
31 reserved-memory {
32 #address-cells = <1>;
33 #size-cells = <1>;
[all …]
/kernel/linux/linux-5.10/drivers/scsi/
DNCR5380.h1 /* SPDX-License-Identifier: GPL-2.0 */
9 * +1 (303) 666-5836
19 * 1+ (719) 578-3400
20 * 1+ (800) 334-5454
65 * either arbitration is occurring or the phase-indicating signals (
66 * IO, CD, MSG) in the TARGET COMMAND register and the ASSERT DATA
74 #define ICR_ASSERT_RST 0x80 /* rw Set to assert RST */
76 #define ICR_TRI_STATE 0x40 /* wo Set to tri-state drivers */
79 #define ICR_ASSERT_ACK 0x10 /* rw ini Set to assert ACK */
80 #define ICR_ASSERT_BSY 0x08 /* rw Set to assert BSY */
[all …]
/kernel/linux/linux-6.6/drivers/scsi/
DNCR5380.h1 /* SPDX-License-Identifier: GPL-2.0 */
9 * +1 (303) 666-5836
19 * 1+ (719) 578-3400
20 * 1+ (800) 334-5454
65 * either arbitration is occurring or the phase-indicating signals (
66 * IO, CD, MSG) in the TARGET COMMAND register and the ASSERT DATA
74 #define ICR_ASSERT_RST 0x80 /* rw Set to assert RST */
76 #define ICR_TRI_STATE 0x40 /* wo Set to tri-state drivers */
79 #define ICR_ASSERT_ACK 0x10 /* rw ini Set to assert ACK */
80 #define ICR_ASSERT_BSY 0x08 /* rw Set to assert BSY */
[all …]
/kernel/linux/linux-6.6/drivers/pps/clients/
Dpps-gpio.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * pps-gpio.c -- PPS client driver using GPIO
9 #define PPS_GPIO_NAME "pps-gpio"
55 rising_edge = gpiod_get_value(info->gpio_pin); in pps_gpio_irq_handler()
56 if ((rising_edge && !info->assert_falling_edge) || in pps_gpio_irq_handler()
57 (!rising_edge && info->assert_falling_edge)) in pps_gpio_irq_handler()
58 pps_event(info->pps, &ts, PPS_CAPTUREASSERT, data); in pps_gpio_irq_handler()
59 else if (info->capture_clear && in pps_gpio_irq_handler()
60 ((rising_edge && info->assert_falling_edge) || in pps_gpio_irq_handler()
61 (!rising_edge && !info->assert_falling_edge))) in pps_gpio_irq_handler()
[all …]
/kernel/linux/linux-5.10/drivers/pps/clients/
Dpps-gpio.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * pps-gpio.c -- PPS client driver using GPIO
9 #define PPS_GPIO_NAME "pps-gpio"
19 #include <linux/pps-gpio.h>
56 rising_edge = gpiod_get_value(info->gpio_pin); in pps_gpio_irq_handler()
57 if ((rising_edge && !info->assert_falling_edge) || in pps_gpio_irq_handler()
58 (!rising_edge && info->assert_falling_edge)) in pps_gpio_irq_handler()
59 pps_event(info->pps, &ts, PPS_CAPTUREASSERT, data); in pps_gpio_irq_handler()
60 else if (info->capture_clear && in pps_gpio_irq_handler()
61 ((rising_edge && info->assert_falling_edge) || in pps_gpio_irq_handler()
[all …]
/kernel/linux/linux-5.10/drivers/staging/greybus/
Darche-platform.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright 2014-2015 Google Inc.
6 * Copyright 2014-2015 Linaro Ltd.
38 WD_STATE_BOOT_INIT, /* WD = falling edge (low) */
39 WD_STATE_COLDBOOT_TRIG, /* WD = rising edge (high), > 30msec */
50 struct gpio_desc *wake_detect; /* bi-dir,maps to WAKE_MOD & WAKE_FRAME signals */
72 /* Requires calling context to hold arche_pdata->platform_state_mutex */
76 arche_pdata->state = state; in arche_platform_set_state()
79 /* Requires arche_pdata->wake_lock is held by calling context */
84 arche_pdata->wake_detect_state = state; in arche_platform_set_wake_detect_state()
[all …]
Darche-apb-ctrl.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright 2014-2015 Google Inc.
6 * Copyright 2014-2015 Linaro Ltd.
68 struct device *dev = &pdev->dev; in coldboot_seq()
72 if (apb->init_disabled || in coldboot_seq()
73 apb->state == ARCHE_PLATFORM_STATE_ACTIVE) in coldboot_seq()
77 assert_reset(apb->resetn); in coldboot_seq()
79 if (apb->state == ARCHE_PLATFORM_STATE_FW_FLASHING && apb->spi_en) in coldboot_seq()
80 devm_gpiod_put(dev, apb->spi_en); in coldboot_seq()
83 if (!IS_ERR(apb->vcore)) { in coldboot_seq()
[all …]
/kernel/linux/linux-6.6/drivers/staging/greybus/
Darche-platform.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright 2014-2015 Google Inc.
6 * Copyright 2014-2015 Linaro Ltd.
39 WD_STATE_BOOT_INIT, /* WD = falling edge (low) */
40 WD_STATE_COLDBOOT_TRIG, /* WD = rising edge (high), > 30msec */
51 struct gpio_desc *wake_detect; /* bi-dir,maps to WAKE_MOD & WAKE_FRAME signals */
73 /* Requires calling context to hold arche_pdata->platform_state_mutex */
77 arche_pdata->state = state; in arche_platform_set_state()
80 /* Requires arche_pdata->wake_lock is held by calling context */
84 arche_pdata->wake_detect_state = state; in arche_platform_set_wake_detect_state()
[all …]
Darche-apb-ctrl.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright 2014-2015 Google Inc.
6 * Copyright 2014-2015 Linaro Ltd.
68 struct device *dev = &pdev->dev; in coldboot_seq()
72 if (apb->init_disabled || in coldboot_seq()
73 apb->state == ARCHE_PLATFORM_STATE_ACTIVE) in coldboot_seq()
77 assert_reset(apb->resetn); in coldboot_seq()
79 if (apb->state == ARCHE_PLATFORM_STATE_FW_FLASHING && apb->spi_en) in coldboot_seq()
80 devm_gpiod_put(dev, apb->spi_en); in coldboot_seq()
83 if (!IS_ERR(apb->vcore)) { in coldboot_seq()
[all …]
/kernel/linux/linux-6.6/drivers/pinctrl/starfive/
Dpinctrl-starfive-jh7100.c1 // SPDX-License-Identifier: GPL-2.0
26 #include <dt-bindings/pinctrl/pinctrl-starfive-jh7100.h>
29 #include "../pinctrl-utils.h"
33 #define DRIVER_NAME "pinctrl-starfive"
37 * https://github.com/starfive-tech/JH7100_Docs
48 * The following 32-bit registers come in pairs, but only the offset of the
49 * first register is defined. The first controls (interrupts for) GPIO 0-31 and
50 * the second GPIO 32-63.
54 * Interrupt Type. If set to 1 the interrupt is edge-triggered. If set to 0 the
55 * interrupt is level-triggered.
[all …]
Dpinctrl-starfive-jh7110.c1 // SPDX-License-Identifier: GPL-2.0
27 #include <dt-bindings/pinctrl/starfive,jh7110-pinctrl.h>
30 #include "../pinctrl-utils.h"
33 #include "pinctrl-starfive-jh7110.h"
52 * | 31 - 24 | 23 - 16 | 15 - 10 | 9 - 8 | 7 - 0 |
100 const struct jh7110_pinctrl_soc_info *info = sfp->info; in jh7110_pin_dbg_show()
102 seq_printf(s, "%s", dev_name(pctldev->dev)); in jh7110_pin_dbg_show()
104 if (pin < sfp->gc.ngpio) { in jh7110_pin_dbg_show()
107 u32 dout = readl_relaxed(sfp->base + info->dout_reg_base + offset); in jh7110_pin_dbg_show()
108 u32 doen = readl_relaxed(sfp->base + info->doen_reg_base + offset); in jh7110_pin_dbg_show()
[all …]
/kernel/linux/linux-6.6/drivers/usb/dwc3/
Ddwc3-qcom.c1 // SPDX-License-Identifier: GPL-2.0
4 * Inspired by dwc3-of-simple.c
123 dwc3_qcom_setbits(qcom->qscratch_base, QSCRATCH_SS_PHY_CTRL, in dwc3_qcom_vbus_override_enable()
125 dwc3_qcom_setbits(qcom->qscratch_base, QSCRATCH_HS_PHY_CTRL, in dwc3_qcom_vbus_override_enable()
128 dwc3_qcom_clrbits(qcom->qscratch_base, QSCRATCH_SS_PHY_CTRL, in dwc3_qcom_vbus_override_enable()
130 dwc3_qcom_clrbits(qcom->qscratch_base, QSCRATCH_HS_PHY_CTRL, in dwc3_qcom_vbus_override_enable()
142 qcom->mode = event ? USB_DR_MODE_PERIPHERAL : USB_DR_MODE_HOST; in dwc3_qcom_vbus_notifier()
154 qcom->mode = event ? USB_DR_MODE_HOST : USB_DR_MODE_PERIPHERAL; in dwc3_qcom_host_notifier()
161 struct device *dev = qcom->dev; in dwc3_qcom_register_extcon()
165 if (!of_property_read_bool(dev->of_node, "extcon")) in dwc3_qcom_register_extcon()
[all …]
/kernel/linux/linux-5.10/drivers/ata/
Dpata_octeon_cf.c8 * Copyright (C) 2005 - 2012 Cavium Inc.
30 * -- 8 bits no irq, no DMA
31 * -- 16 bits no irq, no DMA
32 * -- 16 bits True IDE mode with DMA, but no irq.
109 reg_cfg.s.dmack = 0; /* Don't assert DMACK on access */ in octeon_cf_set_boot_reg_cfg()
111 reg_cfg.s.rd_dly = 0; /* Sample on falling edge of BOOT_OE */ in octeon_cf_set_boot_reg_cfg()
131 struct octeon_cf_port *cf_port = ap->private_data; in octeon_cf_set_piomode()
153 BUG_ON(ata_timing_compute(dev, dev->pio_mode, &timing, T, T)); in octeon_cf_set_piomode()
157 t2--; in octeon_cf_set_piomode()
161 trh--; in octeon_cf_set_piomode()
[all …]
/kernel/linux/linux-6.6/drivers/ata/
Dpata_octeon_cf.c8 * Copyright (C) 2005 - 2012 Cavium Inc.
31 * -- 8 bits no irq, no DMA
32 * -- 16 bits no irq, no DMA
33 * -- 16 bits True IDE mode with DMA, but no irq.
106 reg_cfg.s.dmack = 0; /* Don't assert DMACK on access */ in octeon_cf_set_boot_reg_cfg()
108 reg_cfg.s.rd_dly = 0; /* Sample on falling edge of BOOT_OE */ in octeon_cf_set_boot_reg_cfg()
128 struct octeon_cf_port *cf_port = ap->private_data; in octeon_cf_set_piomode()
150 BUG_ON(ata_timing_compute(dev, dev->pio_mode, &timing, T, T)); in octeon_cf_set_piomode()
154 t2--; in octeon_cf_set_piomode()
158 trh--; in octeon_cf_set_piomode()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_optc.c2 * Copyright 2012-15 Advanced Micro Devices, Inc.
32 optc1->tg_regs->reg
35 optc1->base.ctx
39 optc1->tg_shift->field_name, optc1->tg_mask->field_name
51 if (timing->flags.INTERLACE == 1) { in apply_front_porch_workaround()
52 if (timing->v_front_porch < 2) in apply_front_porch_workaround()
53 timing->v_front_porch = 2; in apply_front_porch_workaround()
55 if (timing->v_front_porch < 1) in apply_front_porch_workaround()
56 timing->v_front_porch = 1; in apply_front_porch_workaround()
69 optc1->vready_offset = vready_offset; in optc1_program_global_sync()
[all …]
/kernel/linux/linux-6.6/lib/zstd/decompress/
Dzstd_decompress_block.c5 * This source code is licensed under both the BSD-style license (found in the
8 * You may select, at your option, one of the above-listed licenses.
14 /*-*******************************************************
50 /*-*************************************************************
63 bpPtr->lastBlock = cBlockHeader & 1; in ZSTD_getcBlockSize()
64 bpPtr->blockType = (blockType_e)((cBlockHeader >> 1) & 3); in ZSTD_getcBlockSize()
65 bpPtr->origSize = cSize; /* only useful for RLE */ in ZSTD_getcBlockSize()
66 if (bpPtr->blockType == bt_rle) return 1; in ZSTD_getcBlockSize()
67 RETURN_ERROR_IF(bpPtr->blockType == bt_reserved, corruption_detected, ""); in ZSTD_getcBlockSize()
79 dctx->litBuffer = (BYTE*)dst + ZSTD_BLOCKSIZE_MAX + WILDCOPY_OVERLENGTH; in ZSTD_allocateLiteralsBuffer()
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_optc.c2 * Copyright 2012-15 Advanced Micro Devices, Inc.
33 optc1->tg_regs->reg
36 optc1->base.ctx
40 optc1->tg_shift->field_name, optc1->tg_mask->field_name
45 * apply_front_porch_workaround() - This is a workaround for a bug that has
54 if (timing->flags.INTERLACE == 1) { in apply_front_porch_workaround()
55 if (timing->v_front_porch < 2) in apply_front_porch_workaround()
56 timing->v_front_porch = 2; in apply_front_porch_workaround()
58 if (timing->v_front_porch < 1) in apply_front_porch_workaround()
59 timing->v_front_porch = 1; in apply_front_porch_workaround()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgb/
Dixgb_ee.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 1999 - 2008 Intel Corporation. */
23 * hw - Struct containing variables accessed by shared code
24 * eecd_reg - EECD's current value
42 * hw - Struct containing variables accessed by shared code
43 * eecd_reg - EECD's current value
61 * hw - Struct containing variables accessed by shared code
62 * data - data to send to the EEPROM
63 * count - number of bits to shift out
77 mask = 0x01 << (count - 1); in ixgb_shift_out_bits()
[all …]

12