Home
last modified time | relevance | path

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

12345678910>>...12

/Linux-v6.1/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-v6.1/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
269 if (mt76s_tx_pick_quota(sdio, mcu, e->buf_sz, &pse_sz, in mt76s_tx_run_queue()
298 mt76s_tx_update_quota(sdio, mcu, pse_sz, ple_sz); in mt76s_tx_run_queue()
/Linux-v6.1/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-v6.1/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-v6.1/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-v6.1/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-v6.1/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-v6.1/arch/arm64/boot/dts/ti/
Dk3-am62a.dtsi81 /* MCU Domain Range */
83 <0x00 0x79000000 0x00 0x79000000 0x00 0x00008000>, /* MCU R5 ATCM */
84 <0x00 0x79020000 0x00 0x79020000 0x00 0x00008000>, /* MCU R5 BTCM */
85 <0x00 0x79100000 0x00 0x79100000 0x00 0x00040000>, /* MCU R5 IRAM0 */
86 <0x00 0x79140000 0x00 0x79140000 0x00 0x00040000>, /* MCU R5 IRAM1 */
100 <0x00 0x79000000 0x00 0x79000000 0x00 0x00008000>, /* MCU R5 ATCM */
101 <0x00 0x79020000 0x00 0x79020000 0x00 0x00008000>, /* MCU R5 BTCM */
102 <0x00 0x79100000 0x00 0x79100000 0x00 0x00040000>, /* MCU IRAM0 */
103 <0x00 0x79140000 0x00 0x79140000 0x00 0x00040000>; /* MCU IRAM1 */
121 #include "k3-am62a-mcu.dtsi"
Dk3-am65.dtsi98 ranges = <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>, /* MCU NAVSS*/
101 <0x00 0x41000000 0x00 0x41000000 0x00 0x00020000>, /* MCU R5F Core0 */
102 <0x00 0x41400000 0x00 0x41400000 0x00 0x00020000>, /* MCU R5F Core1 */
103 <0x00 0x41c00000 0x00 0x41c00000 0x00 0x00080000>, /* MCU SRAM */
125 #include "k3-am65-mcu.dtsi"
Dk3-j7200.dtsi156 ranges = <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>, /* MCU NAVSS*/
159 <0x00 0x41000000 0x00 0x41000000 0x00 0x00020000>, /* MCU R5F Core0 */
160 <0x00 0x41400000 0x00 0x41400000 0x00 0x00020000>, /* MCU R5F Core1 */
161 <0x00 0x41c00000 0x00 0x41c00000 0x00 0x00100000>, /* MCU SRAM */
175 #include "k3-j7200-mcu-wakeup.dtsi"
/Linux-v6.1/drivers/mfd/
Dkhadas-mcu.c12 #include <linux/mfd/khadas-mcu.h>
80 { .name = "khadas-mcu-fan-ctrl", },
84 { .name = "khadas-mcu-user-mem", },
127 { .compatible = "khadas,mcu", },
135 .name = "khadas-mcu-core",
142 MODULE_DESCRIPTION("Khadas MCU core driver");
/Linux-v6.1/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-v6.1/arch/arm/mach-sa1100/
Djornada720_ssp.c30 * we need to reverse all data we receive from the mcu due to its physical location
51 * timeout after <timeout> rounds. Needs mcu running before its called.
53 * returns : %mcu output on success
106 * jornada_ssp_start - enable mcu
119 * jornada_ssp_end - disable mcu and turn off lock
154 /* enable MCU */ in jornada_ssp_probe()
/Linux-v6.1/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
Dssp_dev.c112 * This function is the first one which communicates with the mcu so it is
137 "MCU Firm Rev : Old = %8u, New = %8u\n", in ssp_check_fwbl()
361 dev_err(&data->spi->dev, "%s - MCU %s ret = %d\n", __func__, in ssp_initialize_mcu()
367 dev_info(&data->spi->dev, "MCU device ID = %d\n", ret); in ssp_initialize_mcu()
388 dev_info(&data->spi->dev, "MCU Firm Rev : New = %8u\n", in ssp_initialize_mcu()
396 * handling. It can be requested from the MCU.
449 data->mcu_ap_gpiod = devm_gpiod_get(dev, "mcu-ap", GPIOD_IN); in ssp_parse_dt()
453 data->ap_mcu_gpiod = devm_gpiod_get(dev, "ap-mcu", GPIOD_OUT_HIGH); in ssp_parse_dt()
457 data->mcu_reset_gpiod = devm_gpiod_get(dev, "mcu-reset", in ssp_parse_dt()
644 /* timesyncing is set by MCU */ in ssp_resume()
/Linux-v6.1/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-v6.1/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-v6.1/drivers/net/wireless/mediatek/mt76/mt7921/
Dusb_mac.c12 #include "mcu.h"
187 wake_up(&dev->mt76.mcu.wait); in mt7921u_init_reset()
188 skb_queue_purge(&dev->mt76.mcu.res_q); in mt7921u_init_reset()
210 wake_up(&dev->mt76.mcu.wait); in mt7921u_mac_reset()
211 skb_queue_purge(&dev->mt76.mcu.res_q); in mt7921u_mac_reset()
Dsdio_mac.c78 wake_up(&dev->mt76.mcu.wait); in mt7921s_init_reset()
79 skb_queue_purge(&dev->mt76.mcu.res_q); in mt7921s_init_reset()
103 wake_up(&dev->mt76.mcu.wait); in mt7921s_mac_reset()
104 skb_queue_purge(&dev->mt76.mcu.res_q); in mt7921s_mac_reset()
/Linux-v6.1/drivers/perf/
Dxgene_pmu.c354 XGENE_PMU_EVENT_ATTR(mcu-request, 0x12),
355 XGENE_PMU_EVENT_ATTR(mcu-rd-request, 0x13),
356 XGENE_PMU_EVENT_ATTR(mcu-hp-rd-request, 0x14),
357 XGENE_PMU_EVENT_ATTR(mcu-wr-request, 0x15),
358 XGENE_PMU_EVENT_ATTR(mcu-rd-proceed-all, 0x16),
359 XGENE_PMU_EVENT_ATTR(mcu-rd-proceed-cancel, 0x17),
360 XGENE_PMU_EVENT_ATTR(mcu-rd-response, 0x18),
361 XGENE_PMU_EVENT_ATTR(mcu-rd-proceed-speculative-all, 0x19),
362 XGENE_PMU_EVENT_ATTR(mcu-rd-proceed-speculative-cancel, 0x1a),
363 XGENE_PMU_EVENT_ATTR(mcu-wr-proceed-all, 0x1b),
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/remoteproc/
Dti,k3-r5f-rproc.yaml261 ranges = <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>, /* MCU NAVSS */
262 <0x00 0x41000000 0x00 0x41000000 0x00 0x00020000>, /* MCU R5F Core0 */
263 <0x00 0x41400000 0x00 0x41400000 0x00 0x00020000>, /* MCU R5F Core1 */
264 <0x00 0x41c00000 0x00 0x41c00000 0x00 0x00080000>; /* MCU SRAM */
266 /* AM65x MCU R5FSS node */
285 firmware-name = "am65x-mcu-r5f0_0-fw";
304 firmware-name = "am65x-mcu-r5f0_1-fw";

12345678910>>...12