Lines Matching +full:edge +full:- +full:low

1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
35 #define pin_to_hwirq(r, p) ((r)->parent_base + (p) - (r)->pin_base)
54 int pin_out = d->hwirq; in pdc_enable_intr()
82 * GIC does not handle falling edge or active low. To allow falling edge and
83 * active low interrupts to be handled at GIC, PDC has an inverter that inverts
84 * falling edge into a rising edge and active low into an active high.
87 * Level sensitive active low LOW
88 * Rising edge sensitive NOT USED
89 * Falling edge sensitive LOW
90 * Dual Edge sensitive NOT USED
92 * Falling Edge sensitive NOT USED
93 * Rising edge sensitive HIGH
94 * Dual Edge sensitive HIGH
110 * If @type is edge triggered, forward that as Rising edge as PDC
111 * takes care of converting falling edge to rising edge signal
113 * takes care of converting falling edge to rising edge signal
142 return -EINVAL; in qcom_pdc_gic_set_type()
145 old_pdc_type = pdc_reg_read(IRQ_i_CFG, d->hwirq); in qcom_pdc_gic_set_type()
146 pdc_reg_write(IRQ_i_CFG, d->hwirq, pdc_type); in qcom_pdc_gic_set_type()
223 return irq_domain_disconnect_hierarchy(domain->parent, virq); in qcom_pdc_alloc()
231 parent_fwspec.fwnode = domain->parent->fwnode; in qcom_pdc_alloc()
252 n = of_property_count_elems_of_size(np, "qcom,pdc-ranges", sizeof(u32)); in pdc_setup_pin_mapping()
254 return -EINVAL; in pdc_setup_pin_mapping()
260 return -ENOMEM; in pdc_setup_pin_mapping()
264 ret = of_property_read_u32_index(np, "qcom,pdc-ranges", in pdc_setup_pin_mapping()
269 ret = of_property_read_u32_index(np, "qcom,pdc-ranges", in pdc_setup_pin_mapping()
274 ret = of_property_read_u32_index(np, "qcom,pdc-ranges", in pdc_setup_pin_mapping()
300 return -ENXIO; in qcom_pdc_init()
306 ret = -ENXIO; in qcom_pdc_init()
312 pr_err("%pOF: failed to init PDC pin-hwirq mapping\n", node); in qcom_pdc_init()
323 ret = -ENOMEM; in qcom_pdc_init()