/openbmc/linux/drivers/rtc/ |
H A D | rtc-sunxi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 104 * The year parameter passed to the driver is usually an offset relative to 106 * relative to the minimum year allowed by the hardware. 108 #define SUNXI_YEAR_OFF(x) ((x)->min - 1900) 146 struct sunxi_rtc_dev *chip = (struct sunxi_rtc_dev *) id; in sunxi_rtc_alarmirq() local 149 val = readl(chip->base + SUNXI_ALRM_IRQ_STA); in sunxi_rtc_alarmirq() 153 writel(val, chip->base + SUNXI_ALRM_IRQ_STA); in sunxi_rtc_alarmirq() 155 rtc_update_irq(chip->rtc, 1, RTC_AF | RTC_IRQF); in sunxi_rtc_alarmirq() 163 static void sunxi_rtc_setaie(unsigned int to, struct sunxi_rtc_dev *chip) in sunxi_rtc_setaie() argument 169 alrm_val = readl(chip->base + SUNXI_ALRM_EN); in sunxi_rtc_setaie() [all …]
|
H A D | rtc-sun6i.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (c) 2014, Chen-Yu Tsai <wens@csie.org> 7 * based on rtc-sunxi.c 15 #include <linux/clk-provider.h> 16 #include <linux/clk/sunxi-ng.h> 73 /* General-purpose data */ 108 * The year parameter passed to the driver is usually an offset relative to 110 * relative to the minimum year allowed by the hardware. 112 * The year range is 1970 - 2033. This range is selected to match Allwinner's 116 #define SUN6I_YEAR_OFF (SUN6I_YEAR_MIN - 1900) [all …]
|
H A D | rtc-ac100.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * RTC Driver for X-Powers AC100 5 * Copyright (c) 2016 Chen-Yu Tsai 7 * Chen-Yu Tsai <wens@csie.org> 11 #include <linux/clk-provider.h> 61 * The year parameter passed to the driver is usually an offset relative to 63 * relative to the minimum year allowed by the hardware. 65 * The year range is 1970 - 2069. This range is selected to match Allwinner's 70 #define AC100_YEAR_OFF (AC100_YEAR_MIN - 1900) 80 #define AC100_RTC_32K_NAME "ac100-rtc-32k" [all …]
|
/openbmc/linux/include/linux/ |
H A D | pwm.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 12 * enum pwm_polarity - polarity of a PWM signal 13 * @PWM_POLARITY_NORMAL: a high signal for the duration of the duty- 16 * @PWM_POLARITY_INVERSED: a low signal for the duration of the duty- 26 * struct pwm_args - board-dependent PWM arguments 30 * This structure describes board-dependent arguments attached to a PWM 49 * struct pwm_state - state of a PWM channel 68 * struct pwm_device - PWM channel object 71 * @hwpwm: per-chip relative index of the PWM device 73 * @chip: PWM chip providing this PWM device [all …]
|
/openbmc/linux/Documentation/hwmon/ |
H A D | lm77.rst | 10 Addresses scanned: I2C 0x48 - 0x4b 20 ----------- 23 sensor incorporates a band-gap type temperature sensor, 24 10-bit ADC, and a digital comparator with user-programmable upper 29 applies to all 3 limits. The relative difference is stored in a single 30 register on the chip, which means that the relative difference between 42 read-only. Setting temp1_crit_hyst writes the difference between 43 temp1_crit_hyst and temp1_crit into the chip, and the same relative
|
H A D | emc1403.rst | 14 - http://ww1.microchip.com/downloads/en/DeviceDoc/1412.pdf 15 - https://ww1.microchip.com/downloads/en/DeviceDoc/1402.pdf 25 - http://ww1.microchip.com/downloads/en/DeviceDoc/1403_1404.pdf 26 - http://ww1.microchip.com/downloads/en/DeviceDoc/1413_1414.pdf 36 - https://ww1.microchip.com/downloads/en/DeviceDoc/1422.pdf 46 - https://ww1.microchip.com/downloads/en/DeviceDoc/1423_1424.pdf 53 ----------- 63 hysteresis mechanism which applies to all limits. The relative difference 64 is stored in a single register on the chip, which means that the relative 77 are read-only. Setting temp1_crit_hyst writes the difference between [all …]
|
H A D | sht21.rst | 35 ----------- 39 devices is the higher level of precision of the SHT25 (1.8% relative humidity, 40 0.2 degree Celsius) compared with the SHT21 (2.0% relative humidity, 47 sysfs-Interface 48 --------------- 51 - temperature input 54 - humidity input 56 - Electronic Identification Code 59 ----- 67 Different resolutions, the on-chip heater, and using the CRC checksum
|
H A D | max6650.rst | 12 Datasheet: http://pdfserv.maxim-ic.com/en/ds/MAX6650-MAX6651.pdf 20 Datasheet: http://pdfserv.maxim-ic.com/en/ds/MAX6650-MAX6651.pdf 23 - Hans J. Koch <hjk@hansjkoch.de> 24 - John Morris <john.morris@spirentcom.com> 25 - Claus Gindhart <claus.gindhart@kontron.com> 28 ----------- 33 set, e.g. only one fan-input, instead of 4 for the MAX6651. 47 pwm1 rw relative speed (0-255), 255=max. speed. 55 ----------- 57 This driver does not auto-detect devices. You will have to instantiate the [all …]
|
H A D | sht4x.rst | 1 .. SPDX-License-Identifier: GPL-2.0 22 ----------- 24 This driver implements support for the Sensirion SHT4x chip, a humidity 25 and temperature sensor. Temperature is measured in degree celsius, relative 30 ----------- 33 address 0x44. See Documentation/i2c/instantiating-devices.rst for methods 37 -------------
|
/openbmc/linux/include/linux/gpio/ |
H A D | machine.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 22 * struct gpiod_lookup - lookup table 23 * @key: either the name of the chip the GPIO belongs to, or the GPIO line name 26 * @chip_hwnum: hardware number (i.e. relative to the chip) of the GPIO, or 50 * struct gpiod_hog - GPIO line hog table 51 * @chip_label: name of the chip the GPIO belongs to 52 * @chip_hwnum: hardware number (i.e. relative to the chip) of the GPIO
|
/openbmc/openpower-hw-diags/analyzer/ |
H A D | resolution.hpp | 33 * @param i_unitPath The devtree path of a guardable unit relative to a 34 * chip. An empty string refers to the chip itself. 44 /** The devtree path of a guardable unit relative to a chip. An empty string 45 * refers to the chip itself. */ 58 /** @brief Resolution to callout a connected chip/target. */ 65 * @param i_unitPath The path of the chip unit that is connected to the 66 * other chip. An empty string refers to the chip itself, 67 * which generally means this chip is a child of another. 82 /** The devtree path the chip unit that is connected to the other chip. An 83 * empty string refers to the chip itself, which generally means this chip [all …]
|
H A D | resolution.cpp | 9 //------------------------------------------------------------------------------ 11 // Helper function to get the root cause chip target from the service data. 19 //------------------------------------------------------------------------------ 22 // devtree path relative the the containing chip. An empty string indicates the 23 // chip target should be returned. 46 //------------------------------------------------------------------------------ 57 //------------------------------------------------------------------------------ 61 // Get the chip target from the root cause signature. in resolve() 71 //------------------------------------------------------------------------------ 75 // Get the chip target from the root cause signature. in resolve() [all …]
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-bus-iio-mpu6050 | 5 Contact: linux-iio@vger.kernel.org 9 [0, 1, 0; 1, 0, 0; 0, 0, -1]. Using this information, it would be 10 easy to tell the relative positions among sensors as well as their 11 positions relative to the board that holds these sensors. Identity matrix 12 [1, 0, 0; 0, 1, 0; 0, 0, 1] means sensor chip and device are perfectly
|
/openbmc/u-boot/board/gateworks/gw_ventana/ |
H A D | gw_ventana_spl.c | 1 // SPDX-License-Identifier: GPL-2.0+ 10 #include <asm/arch/mx6-ddr.h> 11 #include <asm/arch/mx6-pins.h> 13 #include <asm/mach-imx/boot_mode.h> 14 #include <asm/mach-imx/iomux-v3.h> 15 #include <asm/mach-imx/mxc_i2c.h> 35 /* SDCKE[0:1]: 100k pull-up */ 38 /* SDBA2: pull-up disabled */ 40 /* SDODT[0:1]: 100k pull-up, 40 ohm */ 95 /* SDCKE[0:1]: 100k pull-up */ [all …]
|
/openbmc/openpower-hw-diags/analyzer/ras-data/ |
H A D | ras-data-definition.md | 11 single chip model and EC level. 15 The value of this keyword is a `string` representing a 32-bit hexidecimal number 16 in the format `[0-9A-Fa-f]{8}`. This value is used to determine the chip model 29 unit targets on this chip. Each element of this object will have the format: 37 relative to the chip defined by the file. When necessary, the user application 38 should be able to concatenate the devtree path of the chip and the relative 44 connected to this chip. Each element of this object will have the format: 55 This describes how the bus is connected to this chip. Note that the `unit` 56 keyword is optional and the chip is used as the endpoint connection instead. 57 This is usually intended to be used when the chip is the child and we need to [all …]
|
/openbmc/linux/drivers/bcma/ |
H A D | driver_gpio.c | 6 * Copyright 2012, Hauke Mehrtens <hauke@hauke-m.de> 22 static int bcma_gpio_get_value(struct gpio_chip *chip, unsigned gpio) in bcma_gpio_get_value() argument 24 struct bcma_drv_cc *cc = gpiochip_get_data(chip); in bcma_gpio_get_value() 29 static void bcma_gpio_set_value(struct gpio_chip *chip, unsigned gpio, in bcma_gpio_set_value() argument 32 struct bcma_drv_cc *cc = gpiochip_get_data(chip); in bcma_gpio_set_value() 37 static int bcma_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) in bcma_gpio_direction_input() argument 39 struct bcma_drv_cc *cc = gpiochip_get_data(chip); in bcma_gpio_direction_input() 45 static int bcma_gpio_direction_output(struct gpio_chip *chip, unsigned gpio, in bcma_gpio_direction_output() argument 48 struct bcma_drv_cc *cc = gpiochip_get_data(chip); in bcma_gpio_direction_output() 55 static int bcma_gpio_request(struct gpio_chip *chip, unsigned gpio) in bcma_gpio_request() argument [all …]
|
/openbmc/linux/arch/mips/rb532/ |
H A D | gpio.c | 5 * Copyright 2006 Phil Sutter <n0-1@freewrt.org> 37 #include <asm/mach-rc32434/rb.h> 38 #include <asm/mach-rc32434/gpio.h> 41 /* Offsets relative to GPIOBASE */ 51 struct gpio_chip chip; member 59 .end = REGBASE + GPIOBASE + sizeof(struct rb532_gpio_reg) - 1, 64 /* rb532_set_bit - sanely set a bit 86 /* rb532_get_bit - read a bit 97 static int rb532_gpio_get(struct gpio_chip *chip, unsigned offset) in rb532_gpio_get() argument 101 gpch = gpiochip_get_data(chip); in rb532_gpio_get() [all …]
|
/openbmc/openpower-hw-diags/util/ |
H A D | pdbg.hpp | 14 class Chip; 23 /** Chip target types. */ 46 /** @return The target associated with the given chip. */ 47 pdbg_target* getTrgt(const libhei::Chip& i_chip); 55 /** @return A string representing the given chip's devtree path. */ 56 const char* getPath(const libhei::Chip& i_chip); 61 /** @return The absolute position of the given chip. */ 62 uint32_t getChipPos(const libhei::Chip& i_chip); 64 /** @return The unit position of a target within a chip. */ 70 /** @return The target type of the given chip. */ [all …]
|
/openbmc/linux/drivers/net/wwan/iosm/ |
H A D | iosm_ipc_mmio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2020-21 Intel Corporation. 9 #include <linux/io-64-nonatomic-lo-hi.h> 16 * note that MMIO_CI offsets are relative to end of chip info structure 19 /* MMIO chip info size in bytes */ 25 /* Boot ROM Chip Info struct */ 73 cp_cap = ioread32(ipc_mmio->base + ipc_mmio->offset.cp_capability); in ipc_mmio_update_cp_capability() 75 ipc_mmio->mux_protocol = ((ver >= IOSM_CP_VERSION) && (cp_cap & in ipc_mmio_update_cp_capability() 79 ipc_mmio->has_ul_flow_credit = in ipc_mmio_update_cp_capability() 92 ipc_mmio->dev = dev; in ipc_mmio_init() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/mux/ |
H A D | mux-consumer.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/mux/mux-consumer.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Peter Rosin <peda@axentia.se> 14 want to use with a property containing a 'mux-ctrl-list': 16 mux-ctrl-list ::= <single-mux-ctrl> [mux-ctrl-list] 17 single-mux-ctrl ::= <mux-ctrl-phandle> [mux-ctrl-specifier] 18 mux-ctrl-phandle : phandle to mux controller node 19 mux-ctrl-specifier : array of #mux-control-cells specifying the [all …]
|
/openbmc/u-boot/env/ |
H A D | Kconfig | 20 while U-Boot is running, but once U-Boot exits it will not be 21 stored. U-Boot will therefore always start up with a default 31 - CONFIG_ENV_OFFSET: 32 - CONFIG_ENV_SIZE: 39 in the chip address. 41 - CONFIG_ENV_EEPROM_IS_ON_I2C 45 - CONFIG_I2C_ENV_EEPROM_BUS 88 "embedded" in the text segment with the U-Boot code. This 94 4 kB sectors - with U-Boot code before and after it. With 97 between U-Boot and the environment. [all …]
|
/openbmc/linux/kernel/irq/ |
H A D | generic-chip.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Library implementing the most common irq chip callback functions 22 * irq_gc_noop - NOOP function 31 * irq_gc_mask_disable_reg - Mask chip via disable register 34 * Chip has separate enable/disable registers instead of a single mask 41 u32 mask = d->mask; in irq_gc_mask_disable_reg() 44 irq_reg_writel(gc, mask, ct->regs.disable); in irq_gc_mask_disable_reg() 45 *ct->mask_cache &= ~mask; in irq_gc_mask_disable_reg() 51 * irq_gc_mask_set_bit - Mask chip via setting bit in mask register 54 * Chip has a single mask register. Values of this register are cached [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/memory-controllers/ |
H A D | exynos-srom.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/memory-controllers/exynos-srom.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Krzysztof Kozlowski <krzk@kernel.org> 19 - const: samsung,exynos4210-srom 24 "#address-cells": 27 "#size-cells": 35 <bank-number> 0 <parent address of bank> <size> 39 "^.*@[0-3],[a-f0-9]+$": [all …]
|
/openbmc/linux/drivers/staging/media/tegra-video/ |
H A D | vi.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 16 #include <media/media-entity.h> 17 #include <media/v4l2-async.h> 18 #include <media/v4l2-ctrls.h> 19 #include <media/v4l2-device.h> 20 #include <media/v4l2-dev.h> 21 #include <media/v4l2-subdev.h> 22 #include <media/videobuf2-v4l2.h> 44 * struct tegra_vi_ops - Tegra VI operations 45 * @vi_enable: soc-specific operations needed to enable/disable the VI peripheral [all …]
|
/openbmc/linux/Documentation/i2c/muxes/ |
H A D | i2c-mux-gpio.rst | 2 Kernel driver i2c-mux-gpio 8 ----------- 10 i2c-mux-gpio is an i2c mux driver providing access to I2C bus segments 15 ---------- ---------- Bus segment 1 - - - - - 16 | | SCL/SDA | |-------------- | | 17 | |------------| | 19 | Linux | GPIO 1..N | MUX |--------------- Devices 20 | |------------| | | | 22 | | | |---------------| | 23 ---------- ---------- - - - - - [all …]
|