/openbmc/linux/Documentation/devicetree/bindings/media/ |
H A D | gpio-ir-receiver.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/media/gpio-ir-receiver.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> 13 - $ref: rc.yaml# 17 const: gpio-ir-receiver 22 linux,autosuspend-period: 23 description: autosuspend delay time in milliseconds 26 wakeup-source: [all …]
|
/openbmc/linux/Documentation/power/ |
H A D | runtime_pm.rst | 5 (C) 2009-2011 Rafael J. Wysocki <rjw@sisk.pl>, Novell Inc. 18 put their PM-related work items. It is strongly recommended that pm_wq be 20 them to be synchronized with system-wide power transitions (suspend to RAM, 53 The ->runtime_suspend(), ->runtime_resume() and ->runtime_idle() callbacks 57 1. PM domain of the device, if the device's PM domain object, dev->pm_domain, 60 2. Device type of the device, if both dev->type and dev->type->pm are present. 62 3. Device class of the device, if both dev->class and dev->class->pm are 65 4. Bus type of the device, if both dev->bus and dev->bus->pm are present. 69 dev->driver->pm directly (if present). 73 and bus type. Moreover, the high-priority one will always take precedence over [all …]
|
/openbmc/linux/Documentation/driver-api/usb/ |
H A D | power-management.rst | 1 .. _usb-power-management: 7 :Date: Last-updated: February 2014 11 --------- 17 * Changing the default idle-delay time 20 * The driver interface for autosuspend and autoresume 31 ------------------------- 35 component is ``suspended`` it is in a nonfunctional low-power state; it 37 ``resumed`` (returned to a functional full-power state) when the kernel 67 ---------------------- 85 -------------------------- [all …]
|
/openbmc/linux/drivers/media/rc/ |
H A D | gpio-ir-recv.c | 1 // SPDX-License-Identifier: GPL-2.0-only 17 #include <media/rc-core.h> 33 struct device *pmdev = gpio_dev->pmdev; in gpio_ir_recv_irq() 48 val = gpiod_get_value(gpio_dev->gpiod); in gpio_ir_recv_irq() 50 ir_raw_event_store_edge(gpio_dev->rcdev, val == 1); in gpio_ir_recv_irq() 62 struct device *dev = &pdev->dev; in gpio_ir_recv_probe() 63 struct device_node *np = dev->of_node; in gpio_ir_recv_probe() 66 u32 period = 0; in gpio_ir_recv_probe() local 70 return -ENODEV; in gpio_ir_recv_probe() 74 return -ENOMEM; in gpio_ir_recv_probe() [all …]
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-devices-power | 40 space to control the run-time power management of the device. 61 with the main suspend/resume thread) during system-wide power 86 attribute is read-only. If the device is not capable to wake up 98 is read-only. If the device is not capable to wake up the 110 state in progress. This attribute is read-only. If the device 122 read-only. If the device is not capable to wake up the system 133 the device is being processed (1). This attribute is read-only. 145 device, in milliseconds. This attribute is read-only. If the 156 with the device, in milliseconds. This attribute is read-only. 169 milliseconds. This attribute is read-only. If the device is [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/iio/proximity/ |
H A D | devantech-srf04.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/iio/proximity/devantech-srf04.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Andreas Klinger <ak@it-klinger.de> 13 Bit-banging driver using two GPIOs: 14 - trigger-gpio is raised by the driver to start sending out an ultrasonic 16 - echo-gpio is held high by the sensor after sending ultrasonic burst 20 https://www.robot-electronics.co.uk/htm/srf04tech.htm 22 https://www.maxbotix.com/documents/LV-MaxSonar-EZ_Datasheet.pdf [all …]
|
/openbmc/linux/drivers/iio/adc/ |
H A D | sun4i-gpadc-iio.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright (c) 2016 Quentin Schulz <quentin.schulz@free-electrons.com> 15 * This is also the reason of using autosuspend in pm_runtime. If there was no 16 * autosuspend, the thermal sensor would need X seconds after every 17 * pm_runtime_get_sync to get a value from the ADC. The autosuspend allows the 36 #include <linux/mfd/sun4i-gpadc.h> 58 .temp_offset = -1932, 67 .temp_offset = -1447, 76 .temp_offset = -1623, 85 .temp_offset = -1662, [all …]
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-sprd.c | 4 * SPDX-License-Identifier: (GPL-2.0+ OR MIT) 72 /* timeout (ms) for pm runtime autosuspend */ 95 writel(count, i2c_dev->base + I2C_COUNT); in sprd_i2c_set_count() 100 u32 tmp = readl(i2c_dev->base + I2C_CTL); in sprd_i2c_send_stop() 103 writel(tmp & ~STP_EN, i2c_dev->base + I2C_CTL); in sprd_i2c_send_stop() 105 writel(tmp | STP_EN, i2c_dev->base + I2C_CTL); in sprd_i2c_send_stop() 110 u32 tmp = readl(i2c_dev->base + I2C_CTL); in sprd_i2c_clear_start() 112 writel(tmp & ~I2C_START, i2c_dev->base + I2C_CTL); in sprd_i2c_clear_start() 117 u32 tmp = readl(i2c_dev->base + I2C_STATUS); in sprd_i2c_clear_ack() 119 writel(tmp & ~I2C_RX_ACK, i2c_dev->base + I2C_STATUS); in sprd_i2c_clear_ack() [all …]
|
H A D | i2c-davinci.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 10 * ---------------------------------------------------------------------------- 12 * ---------------------------------------------------------------------------- 29 #include <linux/platform_data/i2c-davinci.h> 32 /* ----- global defines ----------------------------------------------- */ 117 /* timeout for pm runtime autosuspend */ 147 writew_relaxed(val, i2c_dev->base + reg); in davinci_i2c_write_reg() 152 return readw_relaxed(i2c_dev->base + reg); in davinci_i2c_read_reg() 171 struct davinci_i2c_platform_data *pdata = dev->pdata; in i2c_davinci_calc_clk_dividers() 177 u32 input_clock = clk_get_rate(dev->clk); in i2c_davinci_calc_clk_dividers() [all …]
|
H A D | i2c-omap.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Copyright (C) 2004 - 2007 Texas Instruments. 30 #include <linux/platform_data/i2c-omap.h> 46 /* timeout for pm runtime autosuspend */ 203 unsigned bb_valid:1; /* true when BB-bit reflects 268 writew_relaxed(val, omap->base + in omap_i2c_write_reg() 269 (omap->regs[reg] << omap->reg_shift)); in omap_i2c_write_reg() 274 return readw_relaxed(omap->base + in omap_i2c_read_reg() 275 (omap->regs[reg] << omap->reg_shift)); in omap_i2c_read_reg() 284 omap_i2c_write_reg(omap, OMAP_I2C_PSC_REG, omap->pscstate); in __omap_i2c_init() [all …]
|
/openbmc/linux/arch/arm64/boot/dts/freescale/ |
H A D | imx8mq-evk.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 4 * Copyright (C) 2017-2018 Pengutronix, Lucas Stach <kernel@pengutronix.de> 7 /dts-v1/; 13 compatible = "fsl,imx8mq-evk", "fsl,imx8mq"; 16 stdout-path = &uart1; 24 pcie0_refclk: pcie0-refclk { 25 compatible = "fixed-clock"; 26 #clock-cells = <0>; 27 clock-frequency = <100000000>; 30 reg_pcie1: regulator-pcie { [all …]
|
H A D | imx8mn-evk.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 #include <dt-bindings/usb/pd.h> 11 stdout-path = &uart2; 14 gpio-leds { 15 compatible = "gpio-leds"; 16 pinctrl-names = "default"; 17 pinctrl-0 = <&pinctrl_gpio_led>; 22 default-state = "on"; 26 hdmi-connector { 27 compatible = "hdmi-connector"; [all …]
|
H A D | imx8mm-evk.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 8 #include <dt-bindings/phy/phy-imx8-pcie.h> 9 #include <dt-bindings/usb/pd.h> 14 stdout-path = &uart2; 22 hdmi-connector { 23 compatible = "hdmi-connector"; 29 remote-endpoint = <&adv7535_out>; 35 compatible = "gpio-leds"; 36 pinctrl-names = "default"; [all …]
|
/openbmc/linux/drivers/usb/host/ |
H A D | isp116x-hcd.c | 1 // SPDX-License-Identifier: GPL-2.0 21 * The driver passes all usbtests 1-14. 40 2. Implement platform-specific delay function possibly 42 include/linux/usb-isp116x.h for more info. Some broken 83 static const char hcd_name[] = "isp116x-hcd"; 85 /*-----------------------------------------------------------------*/ 88 Write len bytes to fifo, pad till 32-bit boundary 103 for (; len > 1; len -= 2) { in write_ptddata_to_fifo() 112 for (; len > 1; len -= 2) { in write_ptddata_to_fifo() 125 Read len bytes from fifo and then read till 32-bit boundary. [all …]
|
H A D | uhci-hcd.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 61 #define USBPORTSC_DMINUS 0x0020 /* D- high (line status) */ 80 /* PCI Intel-specific resume-enable register */ 97 /* When no queues need Full-Speed Bandwidth Reclamation, 110 * To facilitate the strongest possible byte-order checking from "sparse" 127 * with each endpoint, and qh->element (updated by the HC) is either: 128 * - the next unprocessed TD in the endpoint's queue, or 129 * - UHCI_PTR_TERM (when there's no more traffic for this endpoint). 133 * place. Then qh->element is UHCI_PTR_TERM. 135 * In the schedule, qh->link maintains a list of QHs seen by the HC: [all …]
|
H A D | oxu210hp-hcd.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * This code is *strongly* based on EHCI-HCD code by David Brownell since 7 * the chip is a quasi-EHCI compatible. 25 #include <linux/dma-mapping.h> 82 #define EHCI_TUNE_CERR 3 /* 0-3 qtd retries; 0 == don't stop */ 85 #define EHCI_TUNE_MULT_HS 1 /* 1-3 transactions/uframe; 4.10.3 */ 101 u32 hcs_params; /* HCSPARAMS - offset 0x4 */ 110 u32 hcc_params; /* HCCPARAMS - offset 0x8 */ 116 #define HCC_64BIT_ADDR(p) ((p)&(1)) /* true: can use 64-bit addr */ 117 u8 portroute[8]; /* nibbles for routing - offset 0xC */ [all …]
|
/openbmc/linux/drivers/iio/pressure/ |
H A D | zpa2326.c | 1 // SPDX-License-Identifier: GPL-2.0-only 34 * - get device out of low power mode, 35 * - setup hardware sampling period, 36 * - at end of period, upon data ready interrupt: pop pressure samples out of 38 * - when no longer needed, stop sampling process by putting device into 70 /* 200 ms should be enough for the longest conversion time in one-shot mode. */ 78 * struct zpa2326_frequency - Hardware sampling frequency descriptor 102 ARRAY_SIZE(zpa2326_sampling_frequencies) - 1]; in zpa2326_highest_frequency() 106 * struct zpa2326_private - Per-device internal private state 138 dev_err(idev->dev.parent, fmt "\n", ##__VA_ARGS__) [all …]
|
/openbmc/linux/drivers/usb/core/ |
H A D | hub.c | 1 // SPDX-License-Identifier: GPL-2.0 69 /* Protect struct usb_device->state and ->children members 70 * Note: Both are also protected by ->dev.sem, except that ->state can 78 /* synchronize hub-port add/remove and peering operations */ 88 * 10 seconds to send reply for the initial 64-byte descriptor request. 90 /* define initial 64-byte descriptor request timeout in milliseconds */ 94 "initial 64-byte descriptor request timeout in milliseconds " 95 "(default 5000 - 5.0 seconds)"); 139 if (hub_is_superspeedplus(hub->hdev)) in portspeed() 141 if (hub_is_superspeed(hub->hdev)) in portspeed() [all …]
|
/openbmc/linux/drivers/usb/fotg210/ |
H A D | fotg210-hcd.c | 1 // SPDX-License-Identifier: GPL-2.0+ 2 /* Faraday FOTG210 EHCI-like driver 6 * Author: Yuan-Hsin Chen <yhchen@faraday-tech.com> 7 * Feng-Hsin Chiang <john453@faraday-tech.com> 8 * Po-Yu Chuang <ratbert.chuang@gmail.com> 10 * Most of code borrowed from the Linux-3.7 EHCI driver 29 #include <linux/dma-mapping.h> 49 #define FOTG210_TUNE_CERR 3 /* 0-3 qtd retries; 0 == don't stop */ 52 #define FOTG210_TUNE_MULT_HS 1 /* 1-3 transactions/uframe; 4.10.3 */ 60 #define FOTG210_TUNE_FLS 1 /* (medium) 512-frame schedule */ [all …]
|
/openbmc/linux/include/scsi/ |
H A D | scsi_device.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 8 #include <linux/blk-mq.h> 49 * originate in the mid-layer) */ 86 /* put union of data structures, for non-simple event types, 92 * struct scsi_vpd - SCSI Vital Product Data 107 /* the next two are protected by the host->host_lock */ 122 unsigned long queue_ramp_up_period; /* ramp up period in jiffies */ 130 * vendor-specific cmd's */ 133 void *hostdata; /* available to low-level driver */ 162 * If true, let the high-level device driver (sd) manage the device [all …]
|
H A D | scsi_host.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 11 #include <linux/blk-mq.h> 31 * enum scsi_timeout_action - How to handle a command that timed out. 49 * Additional per-command data allocated for the driver. 77 * For compatibility, any other non-zero return is treated the 81 * this device/host completes, or a period of time determined by 123 * When unknown ioctl is passed return -ENOIOCTLCMD. 136 * define one of these if you don't want to - there is a default 139 * own strategy routine, this is where it is specified. Note - the 168 * Return values: 0 on success, non-0 on failure [all …]
|
/openbmc/linux/Documentation/admin-guide/ |
H A D | kernel-parameters.txt | 5 force -- enable ACPI if default was off 6 on -- enable ACPI but allow fallback to DT [arm64,riscv64] 7 off -- disable ACPI if default was on 8 noirq -- do not use ACPI for IRQ routing 9 strict -- Be less tolerant of platforms that are not 11 rsdt -- prefer RSDT over (default) XSDT 12 copy_dsdt -- copy DSDT to memory 26 If set to vendor, prefer vendor-specific driver 58 Documentation/firmware-guide/acpi/debug.rst for more information about 116 Format: <byte> or <bitmap-list> [all …]
|
/openbmc/linux/include/linux/ |
H A D | usb.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 14 #include <linux/errno.h> /* for -ENODEV */ 29 /*-------------------------------------------------------------------------*/ 32 * Host-side wrappers for standard USB descriptors ... these are parsed 36 * - devices have one (usually) or more configs; 37 * - configs have one (often) or more interfaces; 38 * - interfaces have one (usually) or more settings; 39 * - each interface setting has zero or (usually) more endpoints. 40 * - a SuperSpeed endpoint has a companion descriptor 44 * Devices may also have class-specific or vendor-specific descriptors. [all …]
|
/openbmc/linux/drivers/iio/accel/ |
H A D | bmc150-accel-core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * 3-axis accelerometer driver supporting many Bosch-Sensortec chips 26 #include "bmc150-accel.h" 212 struct device *dev = regmap_get_device(data->regmap); in bmc150_accel_set_mode() 216 int dur_val = -1; in bmc150_accel_set_mode() 231 return -EINVAL; in bmc150_accel_set_mode() 238 ret = regmap_write(data->regmap, BMC150_ACCEL_REG_PMU_LPW, lpw_bits); in bmc150_accel_set_mode() 256 ret = regmap_write(data->regmap, in bmc150_accel_set_bw() 262 data->bw_bits = in bmc150_accel_set_bw() 268 return -EINVAL; in bmc150_accel_set_bw() [all …]
|
/openbmc/linux/drivers/usb/isp1760/ |
H A D | isp1760-hcd.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * - ISO 7 * - OTG 33 #include "isp1760-core.h" 34 #include "isp1760-hcd.h" 35 #include "isp1760-regs.h" 46 return *(struct isp1760_hcd **)hcd->hcd_priv; in hcd_to_priv() 150 /* the rest is HCD-private */ 158 /* QTD_XFER_STARTED: valid ptd has been written to isp176x - only 204 return isp1760_field_read(priv->fields, field); in isp1760_hcd_read() [all …]
|