Home
last modified time | relevance | path

Searched +full:startup +full:- +full:sensor (Results 1 – 25 of 147) sorted by relevance

123456

/openbmc/linux/Documentation/devicetree/bindings/iio/proximity/
H A Dsemtech,sx9310.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Semtech's SX9310 capacitive proximity sensor
10 - Daniel Campello <campello@chromium.org>
16 https://www.semtech.com/products/smart-sensing/sar-sensors/sx9310
19 - $ref: /schemas/iio/iio.yaml#
24 - semtech,sx9310
25 - semtech,sx9311
37 vdd-supply:
[all …]
H A Dsemtech,sx9324.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Semtech's SX9324 capacitive proximity sensor
10 - Gwendal Grignou <gwendal@chromium.org>
11 - Daniel Campello <campello@chromium.org>
14 Semtech's SX9324 proximity sensor.
17 - $ref: /schemas/iio/iio.yaml#
32 vdd-supply:
35 svdd-supply:
[all …]
H A Dams,as3935.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Austrian Microsystems AS3935 Franklin lightning sensor
10 - Matt Ranostay <matt.ranostay@konsulko.com>
13 This lightning distance sensor uses an I2C or SPI interface. The
23 spi-max-frequency:
26 spi-cpha: true
31 ams,tuning-capacitor-pf:
42 Set the noise and watchdog threshold register on startup. This will
[all …]
H A Ddevantech-srf04.yaml1 # 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/Documentation/devicetree/bindings/input/
H A Dsyna,rmi4.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Jason A. Donenfeld <Jason@zx2c4.com>
11 - Matthias Schiffer <matthias.schiffer@ew.tq-group.com
12 - Vincent Huang <vincent.huang@tw.synaptics.com>
22 - syna,rmi4-i2c
23 - syna,rmi4-spi
28 '#address-cells':
31 '#size-cells':
[all …]
/openbmc/phosphor-fan-presence/monitor/
H A Dfan.hpp30 * There is a sensor when hwmon exposes one, which means there is a
31 * speed value to be read. Sometimes there is a sensor per rotor,
32 * and other times multiple rotors just use 1 sensor total where
33 * the sensor reports the slowest speed of all of the rotors.
35 * A rotor's speed is set by writing the Target value of a sensor.
36 * Sometimes each sensor in a fan supports having a Target, and other
43 * sensor changes, check if the input value is within some range of the target
44 * value. If it isn't, start a timer at the end of which the sensor will be
48 * When sensor inputs come back within a specified range of the target,
49 * stop its timer if running, make the sensor functional again if it wasn't,
[all …]
/openbmc/linux/drivers/media/usb/gspca/m5602/
H A Dm5602_core.c1 // SPDX-License-Identifier: GPL-2.0-only
36 /* A skeleton used for sending messages to the sensor */
56 struct usb_device *udev = sd->gspca_dev.dev; in m5602_read_bridge()
57 __u8 *buf = sd->gspca_dev.usb_buf; in m5602_read_bridge()
78 struct usb_device *udev = sd->gspca_dev.dev; in m5602_write_bridge()
79 __u8 *buf = sd->gspca_dev.usb_buf; in m5602_write_bridge()
116 if (!len || len > sd->sensor->i2c_regW) in m5602_read_sensor()
117 return -EINVAL; in m5602_read_sensor()
124 sd->sensor->i2c_slave_id); in m5602_read_sensor()
136 if (sd->sensor->i2c_regW == 1) { in m5602_read_sensor()
[all …]
/openbmc/telemetry/src/
H A Dmetric.cpp42 for (const auto& sensor : sensors) in initialize() local
44 sensor->registerForUpdates(weak_from_this()); in initialize()
50 for (const auto& sensor : sensors) in deinitialize() local
52 sensor->unregisterFromUpdates(weak_from_this()); in deinitialize()
58 const auto steadyTimestamp = clock->steadyTimestamp(); in getUpdatedReadings()
60 std::chrono::duration_cast<Milliseconds>(clock->systemTimestamp()) in getUpdatedReadings()
65 if (const auto value = collectionAlgorithms[i]->update(steadyTimestamp)) in getUpdatedReadings()
83 readings.emplace_back(sensors[i]->metadata(), *value, in getUpdatedReadings()
92 void Metric::sensorUpdated(interfaces::Sensor& notifier, Milliseconds timestamp, in sensorUpdated()
108 const interfaces::Sensor& notifier) in findAssociatedData()
[all …]
/openbmc/telemetry/tests/src/
H A Dtest_metric.cpp46 utils::convContainer<std::shared_ptr<interfaces::Sensor>>( in makeSut()
72 sut->initialize(); in TEST_F()
84 sut->deinitialize(); in TEST_F()
91 ASSERT_THAT(sut->getUpdatedReadings(), ElementsAre()); in TEST_F()
97 sut = makeSut(params.collectionTimeScope(CollectionTimeScope::startup)); in TEST_F()
98 sut->sensorUpdated(*sensorMocks.front(), Milliseconds{18}, 31.2); in TEST_F()
99 sut->registerForUpdates(listenerMock); in TEST_F()
103 sut->updateReadings(Milliseconds{50u}); in TEST_F()
104 sut->updateReadings(Milliseconds{100u}); in TEST_F()
110 sut = makeSut(params.collectionTimeScope(CollectionTimeScope::startup) in TEST_F()
[all …]
/openbmc/phosphor-hwmon/
H A Dmainloop.hpp6 #include "sensor.hpp"
33 * @brief hwmon-readd main application loop.
47 * @param[in] bus - sdbusplus bus client connection.
48 * @param[in] param - the path parameter provided
49 * @param[in] path - hwmon sysfs instance to manage
50 * @param[in] devPath - physical device sysfs path.
51 * @param[in] prefix - DBus busname prefix.
52 * @param[in] root - DBus sensors namespace root.
53 * @param[in] instanceId - override value to identify instance on d-bus.
58 * At startup, the application will own a busname with
[all …]
/openbmc/linux/drivers/staging/media/atomisp/i2c/
H A Datomisp-ov2722.c1 // SPDX-License-Identifier: GPL-2.0
3 * Support for OmniVision OV2722 1080p HD camera sensor.
31 #include <media/v4l2-device.h>
46 if (!client->adapter) { in ov2722_read_reg()
47 dev_err(&client->dev, "%s error, no client->adapter\n", in ov2722_read_reg()
49 return -ENODEV; in ov2722_read_reg()
54 dev_err(&client->dev, "%s error, invalid data length\n", in ov2722_read_reg()
56 return -EINVAL; in ov2722_read_reg()
61 msg[0].addr = client->addr; in ov2722_read_reg()
70 msg[1].addr = client->addr; in ov2722_read_reg()
[all …]
H A Datomisp-gc2235.c1 // SPDX-License-Identifier: GPL-2.0
3 * Support for GalaxyCore GC2235 2M camera sensor.
31 #include <media/v4l2-device.h>
46 if (!client->adapter) { in gc2235_read_reg()
47 dev_err(&client->dev, "%s error, no client->adapter\n", in gc2235_read_reg()
49 return -ENODEV; in gc2235_read_reg()
53 dev_err(&client->dev, "%s error, invalid data length\n", in gc2235_read_reg()
55 return -EINVAL; in gc2235_read_reg()
60 msg[0].addr = client->addr; in gc2235_read_reg()
68 msg[1].addr = client->addr; in gc2235_read_reg()
[all …]
/openbmc/phosphor-fan-presence/control/example/
H A Devents.yaml1 #Example set speed events for phosphor-fan-control
4 # - name: [A unique name for this group]
11 # - name: [The name associated with a supported match string function]
17 # - name: [The name associated with a supported signal function]
24 # - name: [The name associated with a supported method function]
30 # - name: [The name associated with a supported handler function]
37 # - name: [Name associated with an available precondition function]
43 # - name: [Name associated with an available action function]
49 # - name: [A unique name for this event]
53 # - name: [A group name from the list of groups]
[all …]
/openbmc/linux/drivers/iio/temperature/
H A Dmlx90614.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * mlx90614.c - Support for Melexis MLX90614/MLX90615 contactless IR temperature sensor
9 * Driver for the Melexis MLX90614/MLX90615 I2C 16-bit IR thermopile sensor
11 * MLX90614 - 17-bit ADC + MLX90302 DSP
12 * MLX90615 - 16-bit ADC + MLX90325 DSP
14 * (7-bit I2C slave address 0x5a, 100KHz bus speed only!)
21 * always has a pull-up so we do not need an extra GPIO to drive it high. If
48 #define MLX90614_CONFIG_DUAL_SHIFT 6 /* single (0) or dual (1) IR sensor */
58 #define MLX90614_TIMING_WAKEUP 34 /* time to hold SDA low for wake-up */
59 #define MLX90614_TIMING_STARTUP 250 /* time before first data after wake-up */
[all …]
/openbmc/linux/Documentation/devicetree/bindings/hwmon/pmbus/
H A Dmax31785.txt9 - compatible : One of "maxim,max31785" or "maxim,max31785a"
10 - reg : I2C address, one of 0x52, 0x53, 0x54, 0x55.
11 - #address-cells : Must be 1
12 - #size-cells : Must be 0
13 - #thermal-sensor-cells : Should be 1. The device supports:
14 - One internal sensor
15 - Four external I2C digital sensors
16 - Six external thermal diodes
19 - use-stored-presence : Do not treat the devicetree description as canon for
27 ----
[all …]
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Telemetry/
H A DReport.interface.yaml7 - name: Update
12 - name: SetReadingProperties
18 - name: ReportingType
23 - name: Interval
29 - name: Persistency
34 - name: ReadingParameters
38 [sensor path, metadata] tuples, operation type, metric ID, collection
39 timescope and collection duration. Sensor paths point to sensors
46 - name: Readings
54 - readonly
[all …]
/openbmc/linux/drivers/media/usb/gspca/stv06xx/
H A Dstv06xx.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (c) 2001 Jean-Fredric Clere, Nikolas Zimmermann, Georg Acher
4 * Mark Cave-Ayland, Carlo E Prelz, Dick Streefland
8 * P/N 861037: Sensor HDCS1000 ASIC STV0600
9 * P/N 861050-0010: Sensor HDCS1000 ASIC STV0600
10 * P/N 861050-0020: Sensor Photobit PB100 ASIC STV0600-1 - QuickCam Express
11 * P/N 861055: Sensor ST VV6410 ASIC STV0610 - LEGO cam
12 * P/N 861075-0040: Sensor HDCS1000 ASIC
13 * P/N 961179-0700: Sensor ST VV6410 ASIC STV0602 - Dexxa WebCam USB
14 * P/N 861040-0000: Sensor ST VV6410 ASIC STV0610 - QuickCam Web
[all …]
/openbmc/linux/arch/arm64/boot/dts/qcom/
H A Dsc7180-trogdor-quackingstick-r0-lte.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 * - bits 11..8: Panel ID: 0x6 (AUO)
11 #include "sc7180-trogdor-quackingstick-r0.dts"
12 #include "sc7180-trogdor-lte-sku.dtsi"
16 compatible = "google,quackingstick-sku1536", "qcom,sc7180";
21 semtech,ph0-pin = <3 1 3>;
22 semtech,ph1-pin = <2 1 2>;
23 semtech,ph2-pin = <3 3 1>;
24 semtech,ph3-pin = <1 3 3>;
25 semtech,ph01-resolution = <1024>;
[all …]
H A Dmsm8998-sony-xperia-yoshino.dtsi1 // SPDX-License-Identifier: BSD-3-Clause
8 #include <dt-bindings/input/input.h>
9 #include <dt-bindings/leds/common.h>
10 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
18 qcom,msm-id = <0x124 0x20000>, <0x124 0x20001>; /* 8998v2, v2.1 */
19 qcom,board-id = <8 0>;
23 compatible = "gpio-gate-clock";
24 pinctrl-0 = <&div_clk1>;
25 pinctrl-names = "default";
27 #clock-cells = <0>;
[all …]
/openbmc/linux/arch/arm/boot/dts/st/
H A Dste-ux500-samsung-janice.dts1 // SPDX-License-Identifier: GPL-2.0-only
3 * Devicetree for the Samsung Galaxy S Advance GT-I9070 also known as Janice.
6 /dts-v1/;
7 #include "ste-db8500.dtsi"
8 #include "ste-ab8500.dtsi"
9 #include "ste-dbx5x0-pinctrl.dtsi"
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/leds/common.h>
12 #include <dt-bindings/input/input.h>
13 #include <dt-bindings/interrupt-controller/irq.h>
[all …]
/openbmc/linux/arch/arm/boot/dts/nxp/imx/
H A Dimx6q-apalis-ixora-v1.2.dts1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 * Copyright 2014-2022 Toradex
8 /dts-v1/;
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/input/input.h>
12 #include <dt-bindings/interrupt-controller/irq.h>
14 #include "imx6qdl-apalis.dtsi"
18 compatible = "toradex,apalis_imx6q-ixora-v1.2", "toradex,apalis_imx6q",
30 stdout-path = "serial0:115200n8";
34 compatible = "gpio-leds";
[all …]
/openbmc/linux/drivers/thermal/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
37 int "Emergency poweroff delay in milli-seconds"
58 In case a sensor is registered with the thermal
60 as a hwmon. The sensor will then have the common
99 startup. If in doubt, select 'step_wise'.
144 bool "Fair-share thermal governor"
146 Enable this to manage platform thermals using fair-share governor.
240 memory-mapped reads to get the temperature. Any HW/System that
241 allows temperature reading by a single memory-mapped reading, be it
252 Enable this to plug hisilicon's thermal sensor driver into the Linux
[all …]
/openbmc/linux/drivers/thermal/st/
H A Dstm_thermal.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) STMicroelectronics 2018 - All Rights Reserved
9 #include <linux/clk-provider.h>
99 static int stm_enable_irq(struct stm_thermal_sensor *sensor) in stm_enable_irq() argument
103 dev_dbg(sensor->dev, "low:%d high:%d\n", sensor->low_temp_enabled, in stm_enable_irq()
104 sensor->high_temp_enabled); in stm_enable_irq()
107 value = readl_relaxed(sensor->base + DTS_ITENR_OFFSET); in stm_enable_irq()
110 if (sensor->low_temp_enabled) in stm_enable_irq()
113 if (sensor->high_temp_enabled) in stm_enable_irq()
117 writel_relaxed(value, sensor->base + DTS_ITENR_OFFSET); in stm_enable_irq()
[all …]
/openbmc/bmcweb/
H A DDEVELOPING.md11 - Binaries and static files should take up < 1MB of filesystem size
12 - Memory usage should remain below 10MB at all times
13 - Application startup time should be less than 1 second on target hardware
29 - All buffer boundaries must be checked before indexing or using values
30 - All pointers and iterators must be checked for null before dereferencing
31 - All input from outside the application is considered untrusted, and should be
34 - All error statuses are checked and accounted for in control flow.
35 - Where applicable, noexcept methods should be preferred to methods that use
37 - Explicitly bounded types should be preferred over implicitly bounded types
39 - no use of
[all …]
/openbmc/docs/designs/inventory/
H A Dgpio-based-hardware-inventory.md11 …om/openbmc/docs/blob/46902afd6ebd20d1148379df99fe2c0c591f56ba/designs/gpio-based-cable-presence.md)
26 and focuses on IPMI use-case.
28 …om/openbmc/docs/blob/879601d92becfa1dbc082f487abfb5e0151a5091/designs/gpio-based-cable-presence.md)
31 phosphor-multi-gpio-presence and phosphor-inventory-manager.
34 by phosphor-inventory-manager.
39 Additional item-specific properties are statically declared in the
40 phosphor-inventory-manager configuration.
44 …277cdb37e8062ae298402e9685882acb/meta-ibm/meta-sbp1/recipes-phosphor/gpio/phosphor-gpio-monitor/ph…
46-inventory-manager config](https://github.com/openbmc/openbmc/blob/1d438f68277cdb37e8062ae298402e9…
49 phosphor-multi-gpio-presence configuration:
[all …]

123456