/openbmc/x86-power-control/ |
H A D | README.md | 18 x86-power-control uses default json file (power-config-host0.json) for GPIO 20 power-config-host0.json file. 55 x86-power-control will monitor the property change from the given DbusName and 64 ### chassis-system-reset 68 ### use-plt-rst 71 de-asserts on reset. This de-assert behavior is currently used to detect warm 76 x86-power-control will use PLT_RST to detect warm resets instead of POST 79 See <https://github.com/Intel-BMC/host-misc-comm-manager> for implementation
|
/openbmc/linux/Documentation/devicetree/bindings/net/bluetooth/ |
H A D | nxp,88w8987-bt.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/net/bluetooth/nxp,88w8987-bt.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 This binding describes UART-attached NXP bluetooth chips. These chips 11 are dual-radio chips supporting WiFi and Bluetooth. The bluetooth 12 works on standard H4 protocol over 4-wire UART. The RTS and CTS lines 14 asserts break signal over UART-TX line to put the chip into power save 15 state. De-asserting break wakes up the BT chip. 18 - Neeraj Sanjay Kale <neeraj.sanjaykale@nxp.com> [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/usb/ |
H A D | snps,dwc3.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Felipe Balbi <balbi@kernel.org> 14 be presented as a standalone DT node with an optional vendor-specific 18 - $ref: usb-drd.yaml# 19 - if: 25 - dr_mode 29 $ref: usb-xhci.yaml# 35 - const: snps,dwc3 [all …]
|
/openbmc/u-boot/doc/ |
H A D | README.i2c | 4 While I2C supports multi-master buses this is difficult to get right. 6 Clock-stretching and the arbitrary time that an I2C transaction can take 8 When one or more masters can be reset independently part-way through a 11 U-Boot provides a scheme based on two 'claim' GPIOs, one driven by the 18 Since U-Boot runs on the AP, the terminology used is 'our' claim GPIO, 23 i2c-arb-gpio-challenge for the implementation. 28 - AP_CLAIM: output from AP, signalling to the EC that the AP wants the bus 29 - EC_CLAIM: output from EC, signalling to the AP that the EC wants the bus 37 1. Asserts AP_CLAIM 50 To release the bus, just de-assert the claim line. [all …]
|
/openbmc/qemu/tests/qtest/ |
H A D | libqtest.h | 11 * Andreas Färber <afaerber@suse.de> 14 * See the COPYING file in the top-level directory. 322 * Removes non-matching events from the buffer that was set by 335 * Send HMP command to QEMU via QMP's human-monitor-command. 348 * Send HMP command to QEMU via QMP's human-monitor-command. 372 * Associate qtest irqs with the GPIO-in pins of the device 382 * Associate qtest irqs with the GPIO-out pins of the device 393 * Associate a qtest irq with the named GPIO-out pin of the device 406 * Force given device/irq GPIO-in pin to the given level. 417 * Write an 8-bit value to an I/O port. [all …]
|
/openbmc/linux/tools/perf/util/ |
H A D | setup.py | 7 # Check if CC has options, as is the case in yocto, where it uses CC="cc --sysroot..." 15 cc_is_clang = b"clang version" in Popen([cc, "-v"], stderr=PIPE).stderr.readline() 19 …cc_output = Popen([cc, cc_options + option, path.join(src_feature_tests, "test-hello.c") ], stderr… 26 vars[var] = sub("-specs=[^ ]+", "", vars[var]) 27 if not clang_has_option("-mcet"): 28 vars[var] = sub("-mcet", "", vars[var]) 29 if not clang_has_option("-fcf-protection"): 30 vars[var] = sub("-fcf-protection", "", vars[var]) 31 if not clang_has_option("-fstack-clash-protection"): 32 vars[var] = sub("-fstack-clash-protection", "", vars[var]) [all …]
|
/openbmc/linux/drivers/net/ethernet/micrel/ |
H A D | ks8851_par.c | 1 // SPDX-License-Identifier: GPL-2.0-only 33 * struct ks8851_net_par - KS8851 Parallel driver private data 43 * and the DMA has been de-asserted. 56 * ks8851_lock_par - register access lock 66 spin_lock_irqsave(&ksp->lock, *flags); in ks8851_lock_par() 70 * ks8851_unlock_par - register access unlock 80 spin_unlock_irqrestore(&ksp->lock, *flags); in ks8851_unlock_par() 84 * ks_check_endian - Check whether endianness of the bus is correct 87 * The KS8851-16MLL EESK pin allows selecting the endianness of the 16bit 98 * If the endian strap on the KS8851-16MLL in incorrect and the chip in ks_check_endian() [all …]
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | sun8i-a83t-bananapi-m3.dts | 2 * Copyright 2017 Chen-Yu Tsai 4 * Chen-Yu Tsai <wens@csie.org> 6 * This file is dual-licensed: you can use it either under the terms 45 /dts-v1/; 46 #include "sun8i-a83t.dtsi" 48 #include <dt-bindings/gpio/gpio.h> 51 model = "Banana Pi BPI-M3"; 52 compatible = "sinovoip,bpi-m3", "allwinner,sun8i-a83t"; 60 stdout-path = "serial0:115200n8"; 64 compatible = "hdmi-connector"; [all …]
|
H A D | sun8i-a83t-cubietruck-plus.dts | 2 * Copyright 2015 Chen-Yu Tsai 4 * Chen-Yu Tsai <wens@csie.org> 6 * This file is dual-licensed: you can use it either under the terms 45 /dts-v1/; 46 #include "sun8i-a83t.dtsi" 48 #include <dt-bindings/gpio/gpio.h> 52 compatible = "cubietech,cubietruck-plus", "allwinner,sun8i-a83t"; 60 stdout-path = "serial0:115200n8"; 64 compatible = "gpio-leds"; 67 label = "cubietruck-plus:blue:usr"; [all …]
|
H A D | sun9i-a80-cubieboard4.dts | 5 * Chen-Yu Tsai <wens@csie.org> 7 * This file is dual-licensed: you can use it either under the terms 46 /dts-v1/; 47 #include "sun9i-a80.dtsi" 49 #include <dt-bindings/gpio/gpio.h> 53 compatible = "cubietech,a80-cubieboard4", "allwinner,sun9i-a80"; 60 stdout-path = "serial0:115200n8"; 64 compatible = "gpio-leds"; 77 vga-connector { 78 compatible = "vga-connector"; [all …]
|
/openbmc/linux/drivers/gpu/drm/panel/ |
H A D | panel-samsung-s6d16d0.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * MIPI-DSI Samsung s6d16d0 panel driver. This is a 864x480 4 * AMOLED panel with a command-only DSI interface. 51 struct mipi_dsi_device *dsi = to_mipi_dsi_device(s6->dev); in s6d16d0_unprepare() 57 dev_err(s6->dev, "failed to enter sleep mode (%d)\n", ret); in s6d16d0_unprepare() 62 gpiod_set_value_cansleep(s6->reset_gpio, 1); in s6d16d0_unprepare() 63 regulator_disable(s6->supply); in s6d16d0_unprepare() 71 struct mipi_dsi_device *dsi = to_mipi_dsi_device(s6->dev); in s6d16d0_prepare() 74 ret = regulator_enable(s6->supply); in s6d16d0_prepare() 76 dev_err(s6->dev, "failed to enable supply (%d)\n", ret); in s6d16d0_prepare() [all …]
|
/openbmc/linux/drivers/reset/ |
H A D | reset-ti-syscon.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2015-2016 Texas Instruments Incorporated - https://www.ti.com/ 15 #include <linux/reset-controller.h> 17 #include <dt-bindings/reset/ti-syscon.h> 20 * struct ti_syscon_reset_control - reset control structure 27 * @flags: reset flag indicating how the (de)assert and status are handled 40 * struct ti_syscon_reset_data - reset controller information structure 42 * @regmap: regmap handle containing the memory-mapped reset registers 57 * ti_syscon_reset_assert() - assert device reset 62 * This asserts the reset in a manner prescribed by the reset flags. [all …]
|
/openbmc/linux/drivers/input/touchscreen/ |
H A D | cy8ctmg110_ts.c | 1 // SPDX-License-Identifier: GPL-2.0-only 52 * is being powered off or on. When powering on this routine de-asserts 57 if (ts->reset_gpio) in cy8ctmg110_power() 58 gpiod_set_value_cansleep(ts->reset_gpio, !poweron); in cy8ctmg110_power() 64 struct i2c_client *client = tsc->client; in cy8ctmg110_write_regs() 75 dev_err(&client->dev, "i2c write data cmd failed\n"); in cy8ctmg110_write_regs() 76 return ret < 0 ? ret : -EIO; in cy8ctmg110_write_regs() 85 struct i2c_client *client = tsc->client; in cy8ctmg110_read_regs() 90 .addr = client->addr, in cy8ctmg110_read_regs() 96 .addr = client->addr, in cy8ctmg110_read_regs() [all …]
|
/openbmc/linux/arch/arm/boot/dts/allwinner/ |
H A D | sun8i-a83t-bananapi-m3.dts | 2 * Copyright 2017 Chen-Yu Tsai 4 * Chen-Yu Tsai <wens@csie.org> 6 * This file is dual-licensed: you can use it either under the terms 45 /dts-v1/; 46 #include "sun8i-a83t.dtsi" 48 #include <dt-bindings/gpio/gpio.h> 51 model = "Banana Pi BPI-M3"; 52 compatible = "sinovoip,bpi-m3", "allwinner,sun8i-a83t"; 60 stdout-path = "serial0:115200n8"; 64 compatible = "hdmi-connector"; [all …]
|
H A D | sun9i-a80-cubieboard4.dts | 5 * Chen-Yu Tsai <wens@csie.org> 7 * This file is dual-licensed: you can use it either under the terms 46 /dts-v1/; 47 #include "sun9i-a80.dtsi" 49 #include <dt-bindings/gpio/gpio.h> 53 compatible = "cubietech,a80-cubieboard4", "allwinner,sun9i-a80"; 60 stdout-path = "serial0:115200n8"; 64 compatible = "gpio-leds"; 66 led-0 { 71 led-1 { [all …]
|
H A D | sun8i-a83t-cubietruck-plus.dts | 2 * Copyright 2015 Chen-Yu Tsai 4 * Chen-Yu Tsai <wens@csie.org> 6 * This file is dual-licensed: you can use it either under the terms 45 /dts-v1/; 46 #include "sun8i-a83t.dtsi" 48 #include <dt-bindings/gpio/gpio.h> 52 compatible = "cubietech,cubietruck-plus", "allwinner,sun8i-a83t"; 60 stdout-path = "serial0:115200n8"; 63 hdmi-connector { 64 compatible = "hdmi-connector"; [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/iio/addac/ |
H A D | adi,ad74115.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Cosmin Tanislav <cosmin.tanislav@analog.com> 13 The AD74115H is a single-channel software configurable input/output 17 chip solution with an SPI interface. The device features a 16-bit ADC and a 18 14-bit DAC. 25 - adi,ad74115h 30 spi-max-frequency: 33 spi-cpol: true [all …]
|
/openbmc/linux/arch/arm/mach-sunxi/ |
H A D | mc_smp.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2018 Chen-Yu Tsai 5 * Chen-Yu Tsai <wens@csie.org> 7 * arch/arm/mach-sunxi/mc_smp.c 9 * Based on Allwinner code, arch/arm/mach-exynos/mcpm-exynos.c, and 10 * arch/arm/mach-hisi/platmcpm.c 14 #include <linux/arm-cci.h> 19 #include <linux/irqchip/arm-gic.h> 70 /* R_CPUCFG registers, specific to sun8i-a83t */ 110 is_compatible = of_device_is_compatible(node, "arm,cortex-a15"); in sunxi_core_is_cortex_a15() [all …]
|
/openbmc/linux/drivers/spi/ |
H A D | spi-dw-core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 #include <linux/dma-mapping.h> 17 #include <linux/spi/spi-mem.h> 21 #include "spi-dw.h" 64 snprintf(name, 32, "dw_spi%d", dws->host->bus_num); in dw_spi_debugfs_init() 65 dws->debugfs = debugfs_create_dir(name, NULL); in dw_spi_debugfs_init() 67 dws->regset.regs = dw_spi_dbgfs_regs; in dw_spi_debugfs_init() 68 dws->regset.nregs = ARRAY_SIZE(dw_spi_dbgfs_regs); in dw_spi_debugfs_init() 69 dws->regset.base = dws->regs; in dw_spi_debugfs_init() 70 debugfs_create_regset32("registers", 0400, dws->debugfs, &dws->regset); in dw_spi_debugfs_init() [all …]
|
H A D | spi-ppc4xx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2007 Gary Jennejohn <garyj@denx.de> 6 * Copyright 2008 Stefan Roese <sr@denx.de>, DENX Software Engineering 38 #include <asm/dcr-regs.h> 40 /* bits in mode register - bit 0 is MSb */ 53 * SPI_PPC4XX_MODE_RD = 0 means "MSB first" - this is the normal mode 54 * SPI_PPC4XX_MODE_RD = 1 means "LSB first" - this is bit-reversed mode 102 * CDM = (OPBCLK/4*SCPClkOut) - 1 142 dev_dbg(&spi->dev, "txrx: tx %p, rx %p, len %d\n", in spi_ppc4xx_txrx() 143 t->tx_buf, t->rx_buf, t->len); in spi_ppc4xx_txrx() [all …]
|
/openbmc/linux/arch/arm/mach-omap2/ |
H A D | pdata-quirks.c | 1 // SPDX-License-Identifier: GPL-2.0-only 20 #include <linux/platform_data/pinctrl-single.h> 21 #include <linux/platform_data/hsmmc-omap.h> 22 #include <linux/platform_data/iommu-omap.h> 23 #include <linux/platform_data/ti-sysc.h> 25 #include <linux/platform_data/asoc-ti-mcbsp.h> 26 #include <linux/platform_data/ti-prm.h> 30 #include "common-board-devices.h" 33 #include "omap-secure.h" 58 * Note that if the pins are used for MMC1, pbias-regulator [all …]
|
/openbmc/linux/arch/arc/kernel/ |
H A D | entry-arcv2.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * ARCv2 ISA based core Low Level Intr/Traps/Exceptions(non-TLB) Handling 58 .rept NR_CPU_IRQS - 8 77 # trips genirq interrupt handling asserts. 81 # Note this disable is only for consistent book-keeping as further interrupts 84 # unless this one returns (or higher prio becomes pending in 2-prio scheme) 118 ; --------------------------------------------- 120 ; - Unlike ARCompact, handles Bus errors for both User/Kernel mode, 122 ; --------------------------------------------- 141 ; TBD: optimize - do this only if a callee reg was involved [all …]
|
/openbmc/linux/drivers/clk/qcom/ |
H A D | gdsc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2015, 2017-2018, 2022, The Linux Foundation. All rights reserved. 16 #include <linux/reset-controller.h> 66 if (sc->flags & POLL_CFG_GDSCR) in gdsc_check_status() 67 reg = sc->gdscr + CFG_GDSCR_OFFSET; in gdsc_check_status() 68 else if (sc->gds_hw_ctrl) in gdsc_check_status() 69 reg = sc->gds_hw_ctrl; in gdsc_check_status() 71 reg = sc->gdscr; in gdsc_check_status() 73 ret = regmap_read(sc->regmap, reg, &val); in gdsc_check_status() 77 if (sc->flags & POLL_CFG_GDSCR) { in gdsc_check_status() [all …]
|
/openbmc/qemu/system/ |
H A D | device_tree.c | 21 #include "qemu/error-report.h" 25 #include "qemu/guest-random.h" 29 #include "qemu/config-file.h" 30 #include "qapi/qapi-commands-machine.h" 92 if (dt_size > INT_MAX / 2 - 10000) { in load_device_tree() 133 #define SYSFS_DT_BASEDIR "/proc/device-tree" 142 * the function asserts in case of error 147 struct dirent *de; in read_fstree() local 165 while ((de = readdir(d)) != NULL) { in read_fstree() 168 if (!g_strcmp0(de->d_name, ".") in read_fstree() [all …]
|
/openbmc/qemu/hw/core/ |
H A D | sysbus-fdt.c | 7 * Alex Graf <agraf@suse.de> 30 #include "hw/core/sysbus-fdt.h" 31 #include "qemu/error-report.h" 34 #include "hw/platform-bus.h" 35 #include "hw/vfio/vfio-platform.h" 36 #include "hw/vfio/vfio-calxeda-xgmac.h" 37 #include "hw/vfio/vfio-amd-xgbe.h" 74 * function asserts. An optional property is ignored if not found 101 if (props[i].optional && prop_len == -FDT_ERR_NOTFOUND) { in copy_properties_from_host() 119 {"#clock-cells", false}, [all …]
|