Home
last modified time | relevance | path

Searched full:mcu (Results 1 – 25 of 354) sorted by relevance

12345678910>>...15

/linux-6.8/arch/powerpc/platforms/83xx/
Dmcu_mpc8349emitx.c3 * Power Management and GPIO expander driver for MPC8349E-mITX-compatible MCU
24 * I don't have specifications for the MCU firmware, I found this register
33 struct mcu { struct
40 static struct mcu *glob_mcu; argument
46 struct mcu *mcu = glob_mcu; in shutdown_thread_fn() local
49 ret = i2c_smbus_read_byte_data(mcu->client, MCU_REG_CTRL); in shutdown_thread_fn()
51 pr_err("MCU status reg read failed.\n"); in shutdown_thread_fn()
52 mcu->reg_ctrl = ret; in shutdown_thread_fn()
55 if (mcu->reg_ctrl & MCU_CTRL_BTN) { in shutdown_thread_fn()
56 i2c_smbus_write_byte_data(mcu->client, MCU_REG_CTRL, in shutdown_thread_fn()
[all …]
/linux-6.8/drivers/net/wireless/mediatek/mt76/
Dmt76x02_usb_mcu.c26 WARN_ON_ONCE(len / 8 != usb->mcu.rp_len); in mt76x02u_multiple_mcu_reads()
28 for (i = 0; i < usb->mcu.rp_len; i++) { in mt76x02u_multiple_mcu_reads()
29 u32 reg = get_unaligned_le32(data + 8 * i) - usb->mcu.base; in mt76x02u_multiple_mcu_reads()
32 WARN_ON_ONCE(usb->mcu.rp[i].reg != reg); in mt76x02u_multiple_mcu_reads()
33 usb->mcu.rp[i].value = val; in mt76x02u_multiple_mcu_reads()
40 u8 *data = usb->mcu.data; in mt76x02u_mcu_wait_resp()
52 if (usb->mcu.rp) in mt76x02u_mcu_wait_resp()
60 dev_err(dev->dev, "error: MCU resp evt:%lx seq:%hhx-%lx\n", in mt76x02u_mcu_wait_resp()
83 seq = ++dev->mcu.msg_seq & 0xf; in __mt76x02u_mcu_send_msg()
85 seq = ++dev->mcu.msg_seq & 0xf; in __mt76x02u_mcu_send_msg()
[all …]
Dmcu.c41 wait_event_timeout(dev->mcu.wait, in mt76_mcu_get_response()
42 (!skb_queue_empty(&dev->mcu.res_q) || in mt76_mcu_get_response()
45 return skb_dequeue(&dev->mcu.res_q); in mt76_mcu_get_response()
51 skb_queue_tail(&dev->mcu.res_q, skb); in mt76_mcu_rx_event()
52 wake_up(&dev->mcu.wait); in mt76_mcu_rx_event()
82 mutex_lock(&dev->mcu.mutex); in mt76_mcu_skb_send_and_get_msg()
93 expires = jiffies + dev->mcu.timeout; in mt76_mcu_skb_send_and_get_msg()
105 mutex_unlock(&dev->mcu.mutex); in mt76_mcu_skb_send_and_get_msg()
Dmt76x02_mcu.c20 dev_err(mdev->dev, "MCU message %02x (seq %d) timed out\n", in mt76x02_mcu_parse_response()
51 mutex_lock(&mdev->mcu.mutex); in mt76x02_mcu_msg_send()
53 seq = ++mdev->mcu.msg_seq & 0xf; in mt76x02_mcu_msg_send()
55 seq = ++mdev->mcu.msg_seq & 0xf; in mt76x02_mcu_msg_send()
76 mutex_unlock(&mdev->mcu.mutex); in mt76x02_mcu_msg_send()
153 while ((skb = skb_dequeue(&dev->mt76.mcu.res_q)) != NULL) in mt76x02_mcu_cleanup()
Dsdio_txrx.c183 mt76s_tx_pick_quota(struct mt76_sdio *sdio, bool mcu, int buf_sz, in mt76s_tx_pick_quota() argument
191 if (mcu && sdio->hw_ver == MT76_CONNAC2_SDIO) in mt76s_tx_pick_quota()
194 if (mcu) { in mt76s_tx_pick_quota()
210 mt76s_tx_update_quota(struct mt76_sdio *sdio, bool mcu, int pse_size, in mt76s_tx_update_quota() argument
213 if (mcu) { in mt76s_tx_update_quota()
242 bool mcu = q == dev->q_mcu[MT_MCUQ_WM]; in mt76s_tx_run_queue() local
273 if (mt76s_tx_pick_quota(sdio, mcu, e->buf_sz, &pse_sz, in mt76s_tx_run_queue()
302 mt76s_tx_update_quota(sdio, mcu, pse_sz, ple_sz); in mt76s_tx_run_queue()
/linux-6.8/Documentation/devicetree/bindings/iio/
Dsamsung,sensorhub-rinato.yaml13 Sensorhub is a MCU which manages several sensors and also plays the role
28 ap-mcu-gpios:
33 mcu-ap-gpios:
38 mcu-reset-gpios:
47 - ap-mcu-gpios
48 - mcu-ap-gpios
49 - mcu-reset-gpios
68 ap-mcu-gpios = <&gpx0 0 0>;
69 mcu-ap-gpios = <&gpx0 4 0>;
70 mcu-reset-gpios = <&gpx0 5 0>;
/linux-6.8/drivers/thermal/
Dkhadas_mcu_fan.c3 * Khadas MCU Controlled FAN driver
12 #include <linux/mfd/khadas-mcu.h>
20 struct khadas_mcu *mcu; member
30 ret = regmap_write(ctx->mcu->regmap, KHADAS_MCU_CMD_FAN_STATUS_CTRL_REG, in khadas_mcu_fan_set_level()
81 struct khadas_mcu *mcu = dev_get_drvdata(pdev->dev.parent); in khadas_mcu_fan_probe() local
90 ctx->mcu = mcu; in khadas_mcu_fan_probe()
94 dev->parent->of_node, "khadas-mcu-fan", ctx, in khadas_mcu_fan_probe()
98 dev_err(dev, "Failed to register khadas-mcu-fan as cooling device: %d\n", in khadas_mcu_fan_probe()
142 { .name = "khadas-mcu-fan-ctrl", },
151 .name = "khadas-mcu-fan-ctrl",
[all …]
/linux-6.8/drivers/net/wireless/mediatek/mt7601u/
Dmcu.c16 #include "mcu.h"
70 struct urb *urb = dev->mcu.resp.urb; in mt7601u_mcu_wait_resp()
75 if (!wait_for_completion_timeout(&dev->mcu.resp_cmpl, in mt7601u_mcu_wait_resp()
82 rxfce = get_unaligned_le32(dev->mcu.resp.buf); in mt7601u_mcu_wait_resp()
86 &dev->mcu.resp, GFP_KERNEL, in mt7601u_mcu_wait_resp()
88 &dev->mcu.resp_cmpl); in mt7601u_mcu_wait_resp()
93 dev_err(dev->dev, "Error: MCU resp urb failed:%d\n", in mt7601u_mcu_wait_resp()
100 dev_err(dev->dev, "Error: MCU resp evt:%lx seq:%hhx-%lx!\n", in mt7601u_mcu_wait_resp()
124 mutex_lock(&dev->mcu.mutex); in mt7601u_mcu_msg_send()
128 seq = ++dev->mcu.msg_seq & 0xf; in mt7601u_mcu_msg_send()
[all …]
/linux-6.8/Documentation/devicetree/bindings/powerpc/fsl/
Dmcu-mpc8349emitx.txt1 Freescale MPC8349E-mITX-compatible Power Management Micro Controller Unit (MCU)
4 - compatible : "fsl,<mcu-chip>-<board>", "fsl,mcu-mpc8349emitx".
11 mcu@a {
14 "fsl,mcu-mpc8349emitx";
/linux-6.8/Documentation/devicetree/bindings/hwmon/
Dnsa320-mcu.txt5 - compatible : "zyxel,nsa320-mcu"
6 - data-gpios : The GPIO pin connected to the data line on the MCU
7 - clk-gpios : The GPIO pin connected to the clock line on the MCU
8 - act-gpios : The GPIO pin connected to the active line on the MCU
13 compatible = "zyxel,nsa320-mcu";
/linux-6.8/arch/arm64/boot/dts/ti/
Dk3-am62a.dtsi82 /* MCU Domain Range */
84 <0x00 0x79000000 0x00 0x79000000 0x00 0x00008000>, /* MCU R5 ATCM */
85 <0x00 0x79020000 0x00 0x79020000 0x00 0x00008000>, /* MCU R5 BTCM */
86 <0x00 0x79100000 0x00 0x79100000 0x00 0x00040000>, /* MCU R5 IRAM0 */
87 <0x00 0x79140000 0x00 0x79140000 0x00 0x00040000>, /* MCU R5 IRAM1 */
101 <0x00 0x79000000 0x00 0x79000000 0x00 0x00008000>, /* MCU R5 ATCM */
102 <0x00 0x79020000 0x00 0x79020000 0x00 0x00008000>, /* MCU R5 BTCM */
103 <0x00 0x79100000 0x00 0x79100000 0x00 0x00040000>, /* MCU IRAM0 */
104 <0x00 0x79140000 0x00 0x79140000 0x00 0x00040000>; /* MCU IRAM1 */
124 #include "k3-am62a-mcu.dtsi"
Dk3-am62p.dtsi80 /* MCU Domain Range */
99 <0x00 0x79000000 0x00 0x79000000 0x00 0x00008000>, /* MCU R5 ATCM */
100 <0x00 0x79020000 0x00 0x79020000 0x00 0x00008000>, /* MCU R5 BTCM */
101 <0x00 0x79100000 0x00 0x79100000 0x00 0x00040000>, /* MCU IRAM0 */
102 <0x00 0x79140000 0x00 0x79140000 0x00 0x00040000>; /* MCU IRAM1 */
124 #include "k3-am62p-mcu.dtsi"
Dk3-am65.dtsi82 ranges = <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>, /* MCU NAVSS*/
85 <0x00 0x41000000 0x00 0x41000000 0x00 0x00020000>, /* MCU R5F Core0 */
86 <0x00 0x41400000 0x00 0x41400000 0x00 0x00020000>, /* MCU R5F Core1 */
87 <0x00 0x41c00000 0x00 0x41c00000 0x00 0x00080000>, /* MCU SRAM */
109 #include "k3-am65-mcu.dtsi"
Dk3-j721s2-common-proc-board.dts200 mcu_uart0_pins_default: mcu-uart0-default-pins {
209 mcu_cpsw_pins_default: mcu-cpsw-default-pins {
226 mcu_mdio_pins_default: mcu-mdio-default-pins {
233 mcu_mcan0_pins_default: mcu-mcan0-default-pins {
240 mcu_mcan1_pins_default: mcu-mcan1-default-pins {
247 mcu_mcan0_gpio_pins_default: mcu-mcan0-gpio-default-pins {
254 mcu_mcan1_gpio_pins_default: mcu-mcan1-gpio-default-pins {
260 mcu_adc0_pins_default: mcu-adc0-default-pins {
273 mcu_adc1_pins_default: mcu-adc1-default-pins {
288 mcu_fss0_ospi1_pins_default: mcu-fss0-ospi1-default-pins {
/linux-6.8/drivers/net/ethernet/mediatek/
Dmtk_wed_mcu.c69 wait_event_timeout(wo->mcu.wait, !skb_queue_empty(&wo->mcu.res_q), in mtk_wed_mcu_get_response()
71 return skb_dequeue(&wo->mcu.res_q); in mtk_wed_mcu_get_response()
76 skb_queue_tail(&wo->mcu.res_q, skb); in mtk_wed_mcu_rx_event()
77 wake_up(&wo->mcu.wait); in mtk_wed_mcu_rx_event()
140 wo->mcu.timeout = 20 * HZ; in mtk_wed_mcu_skb_send_msg()
147 u16 seq = ++wo->mcu.seq; in mtk_wed_mcu_skb_send_msg()
150 seq = ++wo->mcu.seq; in mtk_wed_mcu_skb_send_msg()
202 mutex_lock(&wo->mcu.mutex); in mtk_wed_mcu_send_msg()
208 expires = jiffies + wo->mcu.timeout; in mtk_wed_mcu_send_msg()
216 mutex_unlock(&wo->mcu.mutex); in mtk_wed_mcu_send_msg()
[all …]
/linux-6.8/drivers/mfd/
Dkhadas-mcu.c12 #include <linux/mfd/khadas-mcu.h>
80 { .name = "khadas-mcu-fan-ctrl", },
84 { .name = "khadas-mcu-user-mem", },
126 { .compatible = "khadas,mcu", },
134 .name = "khadas-mcu-core",
141 MODULE_DESCRIPTION("Khadas MCU core driver");
/linux-6.8/Documentation/devicetree/bindings/thermal/
Dmediatek,lvts-thermal.yaml23 - mediatek,mt8192-lvts-mcu
25 - mediatek,mt8195-lvts-mcu
38 description: LVTS reset for clearing temporary data on AP/MCU.
64 - mediatek,mt8192-lvts-mcu
79 - mediatek,mt8195-lvts-mcu
112 compatible = "mediatek,mt8195-lvts-mcu";
/linux-6.8/Documentation/devicetree/bindings/net/
Dti,cc1352p7.yaml7 title: Texas Instruments Simplelink CC1352P7 wireless MCU
10 The CC1352P7 MCU can be connected via SPI or UART.
21 - description: high-frequency main system (MCU and peripherals) clock
44 mcu {
/linux-6.8/Documentation/devicetree/bindings/mfd/
Dkhadas,mcu.yaml4 $id: http://devicetree.org/schemas/mfd/khadas,mcu.yaml#
20 - khadas,mcu # MCU revision is discoverable
40 compatible = "khadas,mcu";
/linux-6.8/arch/arm/mach-sa1100/
Djornada720_ssp.c31 * we need to reverse all data we receive from the mcu due to its physical location
53 * timeout after <timeout> rounds. Needs mcu running before its called.
55 * returns : %mcu output on success
109 * jornada_ssp_start - enable mcu
122 * jornada_ssp_end - disable mcu and turn off lock
157 /* enable MCU */ in jornada_ssp_probe()
/linux-6.8/drivers/iio/common/ssp_sensors/
Dssp.h148 * @work_refresh: refresh work queue for reset request from MCU
150 * @mcu_dump_mode: mcu dump mode for debug
161 * @last_ap_state: (obsolete) sleep notification for MCU
171 * @mcu_reset_gpiod: mcu reset line
172 * @ap_mcu_gpiod: ap to mcu gpio line
173 * @mcu_ap_gpiod: mcu to ap gpio line
/linux-6.8/Documentation/devicetree/bindings/media/
Dallegro,al5e.yaml16 Each actual codec engine is controlled by a microcontroller (MCU). Host
17 software uses a provided mailbox interface to communicate with the MCU. The
46 - description: MCU clock
48 - description: MCU AXI master port clock
/linux-6.8/arch/arm64/boot/dts/amlogic/
Dmeson-g12b-a311d-khadas-vim3.dts19 * The VIM3 on-board MCU can mux the PCIe/USB3.0 shared differential
25 * If the MCU is configured to mux the PCIe/USB3.0 differential lines
30 * update these nodes accordingly if PCIe mode is selected by the MCU.
Dmeson-g12b-s922x-khadas-vim3.dts19 * The VIM3 on-board MCU can mux the PCIe/USB3.0 shared differential
25 * If the MCU is configured to mux the PCIe/USB3.0 differential lines
30 * update these nodes accordingly if PCIe mode is selected by the MCU.
/linux-6.8/drivers/perf/
Dxgene_pmu.c352 XGENE_PMU_EVENT_ATTR(mcu-request, 0x12),
353 XGENE_PMU_EVENT_ATTR(mcu-rd-request, 0x13),
354 XGENE_PMU_EVENT_ATTR(mcu-hp-rd-request, 0x14),
355 XGENE_PMU_EVENT_ATTR(mcu-wr-request, 0x15),
356 XGENE_PMU_EVENT_ATTR(mcu-rd-proceed-all, 0x16),
357 XGENE_PMU_EVENT_ATTR(mcu-rd-proceed-cancel, 0x17),
358 XGENE_PMU_EVENT_ATTR(mcu-rd-response, 0x18),
359 XGENE_PMU_EVENT_ATTR(mcu-rd-proceed-speculative-all, 0x19),
360 XGENE_PMU_EVENT_ATTR(mcu-rd-proceed-speculative-cancel, 0x1a),
361 XGENE_PMU_EVENT_ATTR(mcu-wr-proceed-all, 0x1b),
[all …]

12345678910>>...15