Home
last modified time | relevance | path

Searched +full:auto +full:- +full:i2c (Results 1 – 25 of 663) sorted by relevance

12345678910>>...27

/openbmc/openpower-occ-control/test/
H A DTestI2cOcc.cpp16 const auto STR_4_0050 = "4-0050"s;
17 const auto STR_5_0051 = "5-0051"s;
18 const auto STR_6_0056 = "6-0056"s;
19 const auto STR_7_0057 = "7-0057"s;
21 const auto TEST_DIR = "test-dir/"s;
22 const auto BASE = TEST_DIR + "sys/bus/i2c/devices/";
23 const auto I2C_0 = BASE + "i2c-0";
24 const auto I2C_1 = BASE + "i2c-1";
25 const auto I2C_2 = BASE + "i2c-2";
26 const auto I2C_0_0068 = BASE + "0-0068";
[all …]
/openbmc/phosphor-logging/extensions/openpower-pels/
H A Ddevice_callouts.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
20 #include <phosphor-logging/lg2.hpp>
28 constexpr auto debugFilePath = "/etc/phosphor-logging/";
29 constexpr auto calloutFileSuffix = "_dev_callouts.json";
39 auto basePath = getPELReadOnlyDataPath(); in getJSONFilename()
49 for (const auto& name : names) in getJSONFilename()
85 * @param[in] compatibleList - The list of compatible names for this
88 * @return nlohmann::json - The JSON object
92 auto filename = getJSONFilename(compatibleList); in loadJSON()
101 // Look for i2c-A/A-00BB in getI2CSearchKeys()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/i2c/
H A Dbrcm,brcmstb-i2c.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/i2c/brcm,brcmstb-i2c.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Kamal Dasu <kdasu.kdev@gmail.com>
13 - $ref: /schemas/i2c/i2c-controller.yaml#
18 - brcm,bcm2711-hdmi-i2c
19 - brcm,brcmstb-i2c
20 - brcm,brcmper-i2c
25 - description: BSC register range
[all …]
/openbmc/linux/sound/pci/hda/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
2 menu "HD-Audio"
23 This option enables the HD-audio controller. Don't forget
27 will be called snd-hda-intel.
43 will be called snd-hda-tegra.
48 bool "Build hwdep interface for HD-audio driver"
51 Say Y here to build a hwdep interface for HD-audio driver.
52 This interface can be used for out-of-band communication
58 Say Y here to enable the HD-audio codec re-configuration feature.
60 codec setup, add extra verbs, and re-configure the codec dynamically.
[all …]
/openbmc/phosphor-power/phosphor-regulators/test/
H A Ddevice_tests.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
70 auto chassis = std::make_unique<Chassis>(1, chassisInvPath);
71 this->chassis = chassis.get();
77 this->system =
98 std::unique_ptr<i2c::I2CInterface> i2cInterface = createI2CInterface(); in TEST_F()
99 i2c::I2CInterface* i2cInterfacePtr = i2cInterface.get(); in TEST_F()
114 std::unique_ptr<i2c::I2CInterface> i2cInterface = createI2CInterface(); in TEST_F()
115 i2c::I2CInterface* i2cInterfacePtr = i2cInterface.get(); in TEST_F()
120 auto presenceDetection = in TEST_F()
128 auto configuration = in TEST_F()
[all …]
H A Dchassis_tests.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
151 auto presenceDetection = in TEST_F()
156 auto i2cInterface = std::make_unique<i2c::MockedI2CInterface>(); in TEST_F()
157 auto device = std::make_unique<Device>( in TEST_F()
170 presenceDetectionPtr->execute(services, *system, chassis, *devicePtr); in TEST_F()
171 EXPECT_TRUE(presenceDetectionPtr->getCachedPresence().has_value()); in TEST_F()
177 EXPECT_FALSE(presenceDetectionPtr->getCachedPresence().has_value()); in TEST_F()
183 auto action = std::make_unique<MockAction>(); in TEST_F()
188 auto sensorMonitoring = in TEST_F()
193 auto rail = std::make_unique<Rail>("vddr1", std::move(configuration), in TEST_F()
[all …]
H A Dphase_fault_detection_tests.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
65 * - Regulator Device
66 * - I/O expander Device
67 * - Chassis that contains the Devices
68 * - System that contains the Chassis
77 auto regI2CInterface = std::make_unique<i2c::MockedI2CInterface>();
78 this->regI2CInterface = regI2CInterface.get();
81 auto regulator = std::make_unique<Device>(
85 this->regulator = regulator.get();
88 auto ioExpI2CInterface = std::make_unique<i2c::MockedI2CInterface>();
[all …]
H A Dsystem_tests.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
77 EXPECT_EQ(system.getChassis()[0]->getNumber(), 1); in TEST()
83 EXPECT_EQ(system.getRules()[0]->getID(), "set_voltage_rule"); in TEST()
90 auto presenceDetection = in TEST()
95 auto i2cInterface = std::make_unique<i2c::MockedI2CInterface>(); in TEST()
96 auto device = std::make_unique<Device>( in TEST()
105 auto chassis = in TEST()
117 presenceDetectionPtr->execute(services, system, *chassisPtr, *devicePtr); in TEST()
118 EXPECT_TRUE(presenceDetectionPtr->getCachedPresence().has_value()); in TEST()
124 EXPECT_FALSE(presenceDetectionPtr->getCachedPresence().has_value()); in TEST()
[all …]
/openbmc/entity-manager/src/
H A Dfru_device.cpp8 // http://www.apache.org/licenses/LICENSE-2.0
30 #include <phosphor-logging/lg2.hpp>
59 #include <i2c/smbus.h>
60 #include <linux/i2c-dev.h>
78 // NOLINTBEGIN(cppcoreguidelines-avoid-non-const-global-variables)
91 // NOLINTEND(cppcoreguidelines-avoid-non-const-global-variables)
107 output << "/sys/bus/i2c/devices/" << bus << "-" << std::right in getEepromPath()
115 auto path = getEepromPath(bus, address); in hasEepromFile()
128 auto result = lseek(fd, offset, SEEK_SET); in readFromEeprom()
132 return -1; in readFromEeprom()
[all …]
/openbmc/ipmbbridge/
H A Dipmbbridged.cpp7 * http://www.apache.org/licenses/LICENSE-2.0
25 #include <phosphor-logging/log.hpp>
41 auto conn = std::make_shared<sdbusplus::asio::connection>(io);
74 // constructing ipmb request from i2c buffer in i2cToIpmbConstruct()
75 netFn = ipmbNetFnGet(ipmbBuffer->Header.Req.rsNetFnLUN); in i2cToIpmbConstruct()
76 rsLun = ipmbLunFromNetFnLunGet(ipmbBuffer->Header.Req.rsNetFnLUN); in i2cToIpmbConstruct()
77 rqSA = ipmbBuffer->Header.Req.rqSA; in i2cToIpmbConstruct()
78 seq = ipmbSeqGet(ipmbBuffer->Header.Req.rqSeqLUN); in i2cToIpmbConstruct()
79 rqLun = ipmbLunFromSeqLunGet(ipmbBuffer->Header.Req.rqSeqLUN); in i2cToIpmbConstruct()
80 cmd = ipmbBuffer->Header.Req.cmd; in i2cToIpmbConstruct()
[all …]
/openbmc/phosphor-power/tools/power-utils/
H A Dupdater.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
26 #include <phosphor-logging/lg2.hpp>
44 // Define the CRC-8 polynomial (CRC-8-CCITT)
67 for (const auto& entry : fs::directory_iterator(directory)) in getFWFilenamePath()
82 // Compute CRC-8 checksum for a vector of bytes in calculateCRC8()
87 for (const auto& byte : data) in calculateCRC8()
130 auto fileSize = std::filesystem::file_size(fileName); in validateFWFile()
147 auto inputFil in openFirmwareFile()
[all...]
H A Dutils.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
22 #include <phosphor-logging/log.hpp>
44 constexpr auto IBMCFFPSInterface =
46 constexpr auto i2cBusProp = "I2CBus";
47 constexpr auto i2cAddressProp = "I2CAddress";
51 auto depth = 0; in getPsuI2c()
52 auto objects = getSubTree(bus, "/", IBMCFFPSInterface, depth); in getPsuI2c()
63 for (const auto& [path, services] : objects) in getPsuI2c()
65 auto service = services.begin()->first; in getPsuI2c()
81 auto properties = in getPsuI2c()
[all …]
H A Daei_updater.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
27 #include <phosphor-logging/lg2.hpp>
45 constexpr uint8_t BLOCK_WRITE_SIZE = 0x25; // I2C block write size
62 constexpr uint8_t CMD_BOOT_ISP = 0x02; // Boot the In-System Programming System.
82 {"I2C_INTERFACE", "I2C interface is null pointer."}}; in doUpdate()
83 // Callout PSU & I2C in doUpdate()
86 throw std::runtime_error("I2C interface error"); in doUpdate()
106 if (retryProcessTwo == (MAX_RETRIES - 1)) in doUpdate()
139 // procedure one time starting with re-writing initial ISP in doUpdate()
174 if ((retryProcessOne < (MAX_RETRIES - in doUpdate()
[all...]
/openbmc/google-ipmi-sys/
H A Dutil.cpp7 // http://www.apache.org/licenses/LICENSE-2.0
18 #include <phosphor-logging/elog-errors.hpp>
49 auto data = nlohmann::json::parse(jsonFile, nullptr, false); in parseConfig()
66 auto msg = std::string("Unable to open file ") + fileName.c_str(); in readPropertyFile()
96 // Build a vector with i2c bus to pcie slot mapping. in buildPcieMap()
97 // Iterate through all the devices under "/sys/bus/i2c/devices". in buildPcieMap()
98 for (const auto& i2c_dev : fs::directory_iterator("/sys/bus/i2c/devices")) in buildPcieMap()
102 std::regex e("(i2c-)(\\d+)"); in buildPcieMap()
104 // Check if the device has "i2c-" in its path. in buildPcieMap()
107 // Check if the i2c device has "pcie-slot" file under "of-node" dir. in buildPcieMap()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/mfd/
H A Das3711.txt1 AS3711 is an I2C PMIC from Austria MicroSystems with multiple DCDC and LDO power
4 standard regulator properties, they must belong to a sub-node, called
9 - compatible : must be "ams,as3711"
10 - reg : specifies the I2C address
14 - su1-dev : framebuffer phandle
15 - su1-max-uA : maximum current
19 - su2-dev : framebuffer phandle
20 - su1-max-uA : maximum current
24 - su2-feedback-voltage : voltage feedback is used
25 - su2-feedback-curr1 : CURR1 input used for current feedback
[all …]
/openbmc/ibm-logging/
H A Dpolicy_find.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
18 #include <phosphor-logging/log.hpp>
29 static constexpr auto HOST_EVENT = "org.open_power.Host.Error.Event";
34 * @tparam - T the property data type
35 * @param[in] properties - the property map
36 * @param[in] name - the property name
38 * @return optional<T> - the property value
44 auto prop = properties.find(name); in getProperty()
48 return std::get<T>(prop->second); in getProperty()
60 * @param[in] additionalData - the AdditionalData property contents
[all …]
/openbmc/dbus-sensors/src/
H A DDeviceMgmt.cpp21 auto findType = cfg.find("Type"); in getI2CDeviceParams()
22 auto findBus = cfg.find("Bus"); in getI2CDeviceParams()
23 auto findAddr = cfg.find("Address"); in getI2CDeviceParams()
30 const std::string* type = std::get_if<std::string>(&findType->second); in getI2CDeviceParams()
31 const uint64_t* bus = std::get_if<uint64_t>(&findBus->second); in getI2CDeviceParams()
32 const uint64_t* addr = std::get_if<uint64_t>(&findAddr->second); in getI2CDeviceParams()
39 auto findDevType = dtmap.find(type->c_str()); in getI2CDeviceParams()
45 return I2CDeviceParams(findDevType->second, *bus, *addr); in getI2CDeviceParams()
50 return {"/sys/bus/i2c/devices/i2c-" + std::to_string(bus)}; in i2cBusPath()
56 name << bus << "-" << std::hex << std::setw(4) << std::setfill('0') in deviceDirName()
[all …]
/openbmc/phosphor-power/tools/power-utils/test/
H A Dtest_updater.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
35 using MockedI2CInterface = i2c::MockedI2CInterface;
36 using I2CInterface = i2c::I2CInterface;
49 auto tmpPath = fs::temp_directory_path(); in setupDeviceSysfs()
56 realDevicePath = fs::path(tmpDir) / "devices/3-0068"; in setupDeviceSysfs()
57 devPath = fs::path(tmpDir) / "i2c"; in setupDeviceSysfs()
61 devPath /= "3-0068"; in setupDeviceSysfs()
67 return *reinterpret_cast<MockedI2CInterface*>(updater->i2c.get()); in getMockedI2c()
87 updater->createI2CDevice(); in TEST_F()
88 auto& i2c = getMockedI2c(); in TEST_F() local
[all …]
/openbmc/phosphor-power/
H A Dpmbus.hpp15 constexpr auto READ_VIN = "in1_input";
18 constexpr auto MFR_POUT_MAX = "max_power_out";
20 constexpr auto IBM_CFFPS_1400W = 30725;
25 constexpr auto VIN_VOLTAGE_MIN = 20;
26 constexpr auto VIN_VOLTAGE_110_THRESHOLD = 160;
32 constexpr auto VIN_VOLTAGE_0 = 0;
33 constexpr auto VIN_VOLTAGE_110 = 110;
34 constexpr auto VIN_VOLTAGE_220 = 220;
38 constexpr auto STATUS_WORD = "status0";
41 constexpr auto STATUS_INPUT = "status0_input";
[all …]
/openbmc/linux/drivers/media/dvb-frontends/
H A Dsp2.c1 // SPDX-License-Identifier: GPL-2.0-or-later
8 * DVB-S2 CI card (cimax2) with following copyrights:
20 struct i2c_client *client = s->client; in sp2_read_i2c()
21 struct i2c_adapter *adap = client->adapter; in sp2_read_i2c()
24 .addr = client->addr, in sp2_read_i2c()
29 .addr = client->addr, in sp2_read_i2c()
39 dev_err(&client->dev, "i2c read error, reg = 0x%02x, status = %d\n", in sp2_read_i2c()
44 return -EIO; in sp2_read_i2c()
47 dev_dbg(&s->client->dev, "addr=0x%04x, reg = 0x%02x, data = %02x\n", in sp2_read_i2c()
48 client->addr, reg, buf[0]); in sp2_read_i2c()
[all …]
/openbmc/phosphor-fan-presence/presence/
H A Deeprom_device.hpp5 #include <phosphor-logging/lg2.hpp>
36 * @param[in] address - The bus-address string as used by drivers
38 * @param[in] driver - The I2C driver name in sysfs
39 * @param[in] bindDelayInMS - The time in milliseconds to wait
79 auto bindPath = path / "bind"; in bindTimerExpired()
101 auto devicePath = path / address; in unbindDevice()
107 auto unbindPath = path / "unbind"; in unbindDevice()
122 /** @brief The base I2C drivers directory in sysfs */
123 const std::filesystem::path baseDriverPath{"/sys/bus/i2c/drivers"};
126 * @brief The address string with the i2c bus and address.
[all …]
/openbmc/linux/drivers/media/tuners/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
2 # Analog TV tuners, auto-loaded via tuner.ko
5 …A_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT || MEDIA_RADIO_SUPPORT || MEDIA_SDR_SUPPORT) && I2C
18 comment "Tuner drivers auto-selected by 'Autoselect ancillary drivers'"
28 depends on MEDIA_SUPPORT && I2C && VIDEO_DEV
36 depends on MEDIA_SUPPORT && I2C
43 depends on MEDIA_SUPPORT && I2C
50 depends on MEDIA_SUPPORT && I2C
57 depends on MEDIA_SUPPORT && I2C && VIDEO_DEV
65 depends on MEDIA_SUPPORT && I2C
[all …]
/openbmc/linux/Documentation/hwmon/
H A Dadm9240.rst10 Addresses scanned: I2C 0x2c - 0x2f
20 Addresses scanned: I2C 0x2c - 0x2f
24 http://pdfserv.maxim-ic.com/en/ds/DS1780.pdf
30 Addresses scanned: I2C 0x2c - 0x2f
37 - Frodo Looijaard <frodol@dds.nl>,
38 - Philip Edelbrock <phil@netroedge.com>,
39 - Michiel Rook <michiel@grendelproject.nl>,
40 - Grant Coady <gcoady.lk@gmail.com> with guidance
44 ---------
45 The I2C addresses listed above assume BIOS has not changed the
[all …]
/openbmc/phosphor-logging/test/openpower-pels/
H A Ddevice_callouts_test.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
17 #include "extensions/openpower-pels/device_callouts.hpp"
18 #include "extensions/openpower-pels/paths.hpp"
29 // "I2C":
38 // "FSI-I2C":
44 // "FSI-SPI":
49 const auto calloutJSON = R"(
51 "I2C":
60 "LocationCode": "P1-C19",
64 "Dest": "proc-0 target"
[all …]
/openbmc/u-boot/drivers/i2c/
H A Dexynos_hs_i2c.c1 // SPDX-License-Identifier: GPL-2.0+
11 #include <i2c.h>
19 /* HSI2C-specific register description */
96 * @param i2c: pointer to the appropriate register bank
102 static int hsi2c_wait_for_trx(struct exynos5_hsi2c *i2c) in hsi2c_wait_for_trx() argument
106 while (i-- > 0) { in hsi2c_wait_for_trx()
107 u32 int_status = readl(&i2c->usi_int_stat); in hsi2c_wait_for_trx()
110 u32 trans_status = readl(&i2c->usi_trans_status); in hsi2c_wait_for_trx()
113 writel(int_status, &i2c->usi_int_stat); in hsi2c_wait_for_trx()
141 struct exynos5_hsi2c *hsregs = i2c_bus->hsregs; in hsi2c_get_clk_details()
[all …]

12345678910>>...27