/openbmc/linux/Documentation/devicetree/bindings/arm/ |
H A D | arm,coresight-cti.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 4 --- 5 $id: http://devicetree.org/schemas/arm/arm,coresight-cti.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 12 to one or more CoreSight components and/or a CPU, with CTIs interconnected in 21 number is defined at design time, the maximum of each defined in the DEVID 24 CTIs are interconnected in a star topology via the CTM, using a number of 26 described in the DEVID register. The star topology is not required to be 27 described in the bindings as the actual connections are software 30 In general the connections between CTI and components via the trigger signals [all …]
|
/openbmc/linux/arch/arm64/boot/dts/arm/ |
H A D | juno-cs-r1r2.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 4 compatible = "arm,coresight-dynamic-funnel", "arm,primecell"; 8 clock-names = "apb_pclk"; 9 power-domains = <&scpi_devpd 0>; 10 out-ports { 13 remote-endpoint = <&etf1_in_port>; 17 in-ports { 27 compatible = "arm,coresight-tmc", "arm,primecell"; 31 clock-names = "apb_pclk"; 32 power-domains = <&scpi_devpd 0>; [all …]
|
H A D | juno-base.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 2 #include "juno-clocks.dtsi" 3 #include "juno-motherboard.dtsi" 11 compatible = "arm,armv7-timer-mem"; 13 clock-frequency = <50000000>; 14 #address-cells = <1>; 15 #size-cells = <1>; 19 frame-number = <1>; 31 #mbox-cells = <1>; 33 clock-names = "apb_pclk"; [all …]
|
/openbmc/linux/Documentation/iio/ |
H A D | iio_configfs.rst | 8 Configfs is a filesystem-based manager of kernel objects. IIO uses some 18 In order to use configfs support in IIO we need to select it at compile 24 $ mount -t configfs none /config 38 trigger types. A new trigger type is usually implemented as a separate 39 kernel module following the interface in include/linux/iio/sw_trigger.h:: 42 * drivers/iio/trigger/iio-trig-sample.c 59 * This undoes the actions in iio_trig_sample_probe 69 .name = "trig-sample", 77 iio-trig-sample module will create 'trig-sample' trigger type directory 78 /config/iio/triggers/trig-sample. [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/spi/ |
H A D | spi-pl022.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/spi/spi-pl022.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Linus Walleij <linus.walleij@linaro.org> 13 - $ref: spi-controller.yaml# 14 - $ref: /schemas/arm/primecell.yaml# 23 - compatible 28 - const: arm,pl022 29 - const: arm,primecell [all …]
|
/openbmc/linux/drivers/hwtracing/coresight/ |
H A D | coresight-cti-platform.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include <dt-bindings/arm/coresight-cti-dt.h> 14 #include "coresight-cti.h" 15 #include "coresight-priv.h" 17 /* Number of CTI signals in the v8 architecturally defined connection */ 23 #define CTI_DT_CONNS "trig-conns" 26 #define CTI_DT_V8ARCH_COMPAT "arm,coresight-cti-v8-arch" 27 #define CTI_DT_CSDEV_ASSOC "arm,cs-dev-assoc" 28 #define CTI_DT_TRIGIN_SIGS "arm,trig-in-sigs" 29 #define CTI_DT_TRIGOUT_SIGS "arm,trig-out-sigs" [all …]
|
H A D | coresight-cti.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 16 #include <linux/types.h> 18 #include "coresight-priv.h" 22 * 0x000 - 0x144: CTI programming and status 23 * 0xEDC - 0xEF8: CTI integration test. 24 * 0xF00 - 0xFFC: Coresight management registers. 43 #define ITCHOUT 0xEE4 /* WO RW-600 */ 44 #define ITTRIGOUT 0xEE8 /* WO RW-600 */ 55 * CTI CSSoc 400 has 8 IO triggers - other CTIs can be impl def. 56 * Max of in and out defined in the DEVID register. [all …]
|
/openbmc/linux/drivers/iio/light/ |
H A D | acpi-als.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 * Copyright (C) 2012-2013 Martin Liska <marxin.liska@gmail.com> 12 * Copyright (C) 2013-2014 Marek Vasut <marex@denx.de> 29 #define ACPI_ALS_DEVICE_NAME "acpi-als" 33 * So far, there's only one channel in here, but the specification for 63 struct iio_trigger *trig; member 69 * All types of properties the ACPI0008 block can report. The ALI, ALC, ALT 73 * The _ALR property returns tables that can be used to fine-tune the values 90 status = acpi_evaluate_integer(als->device->handle, prop, NULL, in acpi_als_read_value() 94 acpi_evaluation_failure_warn(als->device->handle, prop, status); in acpi_als_read_value() [all …]
|
H A D | rohm-bu27008.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * - BU27008 RGBC sensor 5 * - BU27010 RGBC + Flickering sensor 22 #include <linux/iio/iio-gts-helper.h> 30 * At a quick glance to the data-sheet register tables, the BU27010 has all the 38 * Unfortunately, some of the wheel has been re-invented. Even though the names 43 * Chip-specific mapping from register addresses/bits to functionality is done 44 * in bu27_chip_data structures. 127 * enum bu27008_chan_type - BU27008 channel types 133 * @BU27008_NUM_CHANS: Number of channel types. [all …]
|
/openbmc/linux/drivers/iio/chemical/ |
H A D | scd30_core.c | 1 // SPDX-License-Identifier: GPL-2.0 19 #include <linux/iio/types.h> 29 #include <linux/types.h> 53 return state->command(state, cmd, arg, NULL, 0); in scd30_command_write() 61 ret = state->command(state, cmd, 0, &tmp, sizeof(tmp)); in scd30_command_read() 79 * Power-on-reset causes sensor to produce some glitch on i2c bus and in scd30_reset() 80 * some controllers end up in error state. Try to recover by placing in scd30_reset() 93 sign = (float32 & BIT(31)) ? -1 : 1, in scd30_float_to_fp() 100 exp -= 127; in scd30_float_to_fp() 102 exp = -exp; in scd30_float_to_fp() [all …]
|
/openbmc/phosphor-fan-presence/control/ |
H A D | gen-fan-zone-defs.py | 4 This script reads in fan definition and zone definition YAML 18 Take a list of dbus types from YAML and convert it to a recursive cpp 33 # and then wrap it in a [ ] and it becomes valid YAML (assuming 48 for i in range(len(typeArray)): 55 if i < len(typeArray) - 1 and type(typeArray[i + 1]) is list: 67 Take a list of dbus types and perform validity checking, such as: 69 This function then converts the type-list into a C++ type string. 95 # Handle 0-entry parameter lists. 106 if (entry["params"] != -1) and (entry["params"] != len(rest)): 115 result += ", ".join([e[0] for e in rest]) [all …]
|
/openbmc/linux/drivers/iio/proximity/ |
H A D | sx_common.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 #include <linux/iio/types.h> 15 #include <linux/types.h> 65 * @mask_enable_chan: Mask over the channels bits in the enable channel 68 * @irq_msk_offset: Offset to enable interrupt in the IRQ mask 104 * @trig: IIO trigger object. 120 struct iio_trigger *trig; member
|
H A D | irsd200.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Driver for Murata IRS-D200 PIR sensor. 21 #include <linux/iio/types.h> 32 #define IRS_REG_FILTER 0x07 /* High-pass and low-pass filter. */ 92 /* Low-pass filter frequency. */ 94 /* High-pass filter frequency. */ 133 ret = regmap_write(data->regmap, IRS_REG_INTR, 0); in irsd200_setup() 135 dev_err(data->dev, "Could not set interrupt sources (%d)\n", in irsd200_setup() 141 ret = regmap_write(data->regmap, IRS_REG_OP, IRS_OP_ACTIVE); in irsd200_setup() 143 dev_err(data->dev, "Could not set operation mode (%d)\n", ret); in irsd200_setup() [all …]
|
/openbmc/linux/drivers/iio/adc/ |
H A D | mcp3911.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Driver for Microchip MCP3911, Two-channel Analog Front End 57 /* Internal voltage reference in mV */ 76 struct iio_trigger *trig; member 91 reg = MCP3911_REG_READ(reg, adc->dev_addr); in mcp3911_read() 92 ret = spi_write_then_read(adc->spi, ®, 1, val, len); in mcp3911_read() 97 *val >>= ((4 - len) * 8); in mcp3911_read() 98 dev_dbg(&adc->spi->dev, "reading 0x%x from register 0x%lx\n", *val, in mcp3911_read() 105 dev_dbg(&adc->spi->dev, "writing 0x%x to register 0x%x\n", val, reg); in mcp3911_write() 107 val <<= (3 - len) * 8; in mcp3911_write() [all …]
|
H A D | dln2-adc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Driver for the Diolan DLN-2 USB-ADC adapter 10 #include <linux/types.h> 22 #define DLN2_ADC_MOD_NAME "dln2-adc" 49 * Plays similar role to iio_demux_table in subsystem core; except allocated 50 * in a fixed 8-element array. 62 struct iio_trigger *trig; member 64 /* Cached sample period in milliseconds */ 87 struct dln2_adc_demux_table *p = dln2->demux_count ? in dln2_adc_add_demux() 88 &dln2->demux[dln2->demux_count - 1] : NULL; in dln2_adc_add_demux() [all …]
|
H A D | stm32-dfsdm-adc.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2017, STMicroelectronics - All Rights Reserved 10 #include <linux/dma-mapping.h> 11 #include <linux/iio/adc/stm32-dfsdm-adc.h> 13 #include <linux/iio/hw-consumer.h> 15 #include <linux/iio/timer/stm32-lptim-trigger.h> 16 #include <linux/iio/timer/stm32-timer-trigger.h> 28 #include "stm32-dfsdm.h" 43 /* Limit filter output resolution to 31 bits. (i.e. sample range is +/-2^30) */ 46 * Data are output as two's complement data in a 24 bit field. [all …]
|
H A D | at91-sama5d2_adc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 #include <linux/dma-mapping.h> 31 #include <linux/nvmem-consumer.h> 36 #include <dt-bindings/iio/adc/at91-sama5d2_adc.h> 110 /* Interrupt Enable Register - TS X measurement ready */ 112 /* Interrupt Enable Register - T 593 struct iio_trigger *trig; global() member 1127 at91_adc_configure_trigger(struct iio_trigger * trig,bool state) at91_adc_configure_trigger() argument 1149 at91_adc_reenable_trigger(struct iio_trigger * trig) at91_adc_reenable_trigger() argument 1406 struct iio_trigger *trig; at91_adc_allocate_trigger() local [all...] |
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/ |
H A D | iwl-dbg-tlv.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 3 * Copyright (C) 2018-2024 Intel Corporation 6 #include "iwl-drv.h" 7 #include "iwl-trans.h" 8 #include "iwl-dbg-tlv.h" 13 * enum iwl_dbg_tlv_type - debug TLV types 24 IWL_UCODE_TLV_TYPE_DEBUG_INFO - IWL_UCODE_TLV_DEBUG_BASE, 34 * struct iwl_dbg_tlv_ver_data - debug TLV version struct 44 * struct iwl_dbg_tlv_timer_node - timer node struct 70 u32 len = le32_to_cpu(tlv->length); in iwl_dbg_tlv_add() [all …]
|
/openbmc/u-boot/arch/arm/cpu/armv7/bcm235xx/ |
H A D | clk-core.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 37 * struct clk_ops - standard clock operations 46 * enable in struct clk. 61 unsigned long rate; /* in HZ */ 79 #define BAD_CLK_NAME ((const char *)-1) 88 #define FLAG_SET(obj, type, flag) ((obj)->flags |= FLAG(type, flag)) 89 #define FLAG_CLEAR(obj, type, flag) ((obj)->flags &= ~(FLAG(type, flag))) 90 #define FLAG_FLIP(obj, type, flag) ((obj)->flags ^= FLAG(type, flag)) 91 #define FLAG_TEST(obj, type, flag) (!!((obj)->flags & FLAG(type, flag))) 107 (div)->frac_width > 0) [all …]
|
/openbmc/u-boot/arch/arm/cpu/armv7/bcm281xx/ |
H A D | clk-core.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 37 * struct clk_ops - standard clock operations 46 * enable in struct clk. 61 unsigned long rate; /* in HZ */ 79 #define BAD_CLK_NAME ((const char *)-1) 88 #define FLAG_SET(obj, type, flag) ((obj)->flags |= FLAG(type, flag)) 89 #define FLAG_CLEAR(obj, type, flag) ((obj)->flags &= ~(FLAG(type, flag))) 90 #define FLAG_FLIP(obj, type, flag) ((obj)->flags ^= FLAG(type, flag)) 91 #define FLAG_TEST(obj, type, flag) (!!((obj)->flags & FLAG(type, flag))) 107 (div)->frac_width > 0) [all …]
|
/openbmc/linux/drivers/clk/bcm/ |
H A D | clk-kona.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 16 #include <linux/clk-provider.h> 24 #define BAD_CLK_NAME ((const char *)-1) 33 #define FLAG_SET(obj, type, flag) ((obj)->flags |= FLAG(type, flag)) 34 #define FLAG_CLEAR(obj, type, flag) ((obj)->flags &= ~(FLAG(type, flag))) 35 #define FLAG_FLIP(obj, type, flag) ((obj)->flags ^= FLAG(type, flag)) 36 #define FLAG_TEST(obj, type, flag) (!!((obj)->flags & FLAG(type, flag))) 40 #define ccu_policy_exists(ccu_policy) ((ccu_policy)->enable.offset != 0) 44 #define policy_exists(policy) ((policy)->offset != 0) 55 #define hyst_exists(hyst) ((hyst)->offset != 0) [all …]
|
/openbmc/linux/drivers/acpi/ |
H A D | resource.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * drivers/acpi/resource.c - ACPI device resources interpretation. 25 /* On X86 IO space is limited to the [0 - 64K] IO port range */ in acpi_iospace_resource_valid() 26 return res->end < 0x10003; in acpi_iospace_resource_valid() 32 * addresses mapping IO space in CPU physical address space, IO space 33 * resources can be placed anywhere in the 64-bit physical address space. 42 return ext_irq->resource_source.string_length == 0 && in is_gsi() 43 ext_irq->producer_consumer == ACPI_CONSUMER; in is_gsi() 54 u64 reslen = end - start + 1; in acpi_dev_resource_len_valid() 66 pr_debug("ACPI: invalid or unassigned resource %s [%016llx - %016llx] length [%016llx]\n", in acpi_dev_resource_len_valid() [all …]
|
/openbmc/linux/drivers/iio/accel/ |
H A D | msa311.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * MEMSensing digital 3-Axis accelerometer 5 * MSA311 is a tri-axial, low-g accelerometer with I2C digital output for 6 * sensitivity consumer applications. It has dynamic user-selectable full 7 * scales range of +-2g/+-4g/+-8g/+-16g and allows acceleration measurements 10 * MSA311 is available in an ultra small (2mm x 2mm, height 0.95mm) LGA package 11 * and is guaranteed to operate over -40C to +85C. 14 * - IIO interface 15 * - Different power modes: NORMAL, SUSPEND 16 * - ODR (Output Data Rate) selection [all …]
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | mac80211.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 3 * Copyright (C) 2012-2014, 2018-2023 Intel Corporation 4 * Copyright (C) 2013-2015 Intel Mobile Communications GmbH 5 * Copyright (C) 2016-2017 Intel Deutschland GmbH 19 #include "iwl-drv.h" 20 #include "iwl-op-mode.h" 21 #include "iwl-io.h" 24 #include "time-event.h" 25 #include "iwl-eeprom-parse.h" 26 #include "iwl-phy-db.h" [all …]
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/fw/ |
H A D | dbg.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 3 * Copyright (C) 2005-2014, 2018-2023 Intel Corporation 4 * Copyright (C) 2013-2015 Intel Mobile Communications GmbH 5 * Copyright (C) 2015-2017 Intel Deutschland GmbH 8 #include "iwl-drv.h" 12 #include "iwl-io.h" 13 #include "iwl-prph.h" 14 #include "iwl-csr.h" 15 #include "iwl-fh.h" 17 * struct iwl_fw_dump_ptrs - set of pointers needed for the fw-error-dump [all …]
|