/linux-6.14.4/Documentation/devicetree/bindings/usb/ |
D | gpio-sbu-mux.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/usb/gpio-sbu-mux.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: GPIO-based SBU mux 10 - Bjorn Andersson <[email protected]> 13 In USB Type-C applications the SBU lines needs to be connected, disconnected 14 and swapped depending on the altmode and orientation. This binding describes 21 - enum: 22 - nxp,cbdtu02043 [all …]
|
D | ite,it5205.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: ITE IT5202 Type-C USB Alternate Mode Passive MUX 10 - AngeloGioacchino Del Regno <[email protected]> 11 - Tianping Fang <[email protected]> 20 vcc-supply: 23 mode-switch: 27 orientation-switch: 28 description: Flag the port as possible handler of orientation switching [all …]
|
D | qcom,wcd939x-usbss.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/usb/qcom,wcd939x-usbss.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Qualcomm WCD9380/WCD9385 USB SubSystem Altmode/Analog Audio Switch 10 - Neil Armstrong <[email protected]> 13 Qualcomm WCD9390/WCD9395 is a standalone Hi-Fi audio codec IC with a 14 functionally separate USB SubSystem for Altmode/Analog Audio Switch 17 USB-C Mux subsystems are external to the IC, thus requiring DT port-endpoint 18 graph description to handle USB-C altmode & orientation switching for Audio [all …]
|
D | usb-switch.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/usb/usb-switch.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: USB Orientation and Mode Switches Common Properties 10 - Greg Kroah-Hartman <[email protected]> 13 Common properties for devices handling USB mode and orientation switching. 16 mode-switch: 20 orientation-switch: 21 description: Possible handler of orientation switching [all …]
|
D | fcs,fsa4480.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: ON Semiconductor Analog Audio Switch 10 - Bjorn Andersson <[email protected]> 15 - const: fcs,fsa4480 16 - items: 17 - enum: 18 - ocs,ocp96011 19 - const: fcs,fsa4480 [all …]
|
D | nxp,ptn36502.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: NXP PTN36502 Type-C USB 3.1 Gen 1 and DisplayPort v1.2 combo redriver 10 - Luca Weiss <[email protected]> 15 - nxp,ptn36502 20 vdd18-supply: 23 orientation-switch: true 24 retimer-switch: true 31 description: Super Speed (SS) Output endpoint to the Type-C connector [all …]
|
D | onnn,nb7vpq904m.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: ON Semiconductor Type-C DisplayPort ALT Mode Linear Redriver 10 - Neil Armstrong <[email protected]> 15 - onnn,nb7vpq904m 20 vcc-supply: 23 enable-gpios: true 24 orientation-switch: true 25 retimer-switch: true [all …]
|
/linux-6.14.4/drivers/usb/typec/mux/ |
D | ptn36502.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * NXP PTN36502 Type-C driver 11 #include <drm/bridge/aux-bridge.h> 72 struct mutex lock; /* protect non-concurrent retimer & switch */ 74 enum typec_orientation orientation; member 81 bool reverse = (ptn->orientation == TYPEC_ORIENTATION_REVERSE); in ptn36502_set() 86 switch (ptn->mode) { in ptn36502_set() 89 regmap_write(ptn->regmap, PTN36502_MODE_CTRL1_REG, in ptn36502_set() 96 * Normal Orientation (CC1) in ptn36502_set() 97 * A -> USB RX in ptn36502_set() [all …]
|
D | nb7vpq904m.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * OnSemi NB7VPQ904M Type-C driver 14 #include <drm/bridge/aux-bridge.h> 74 struct mutex lock; /* protect non-concurrent retimer & switch */ 76 enum typec_orientation orientation; member 97 regmap_update_bits(nb7->regmap, EQ_SETTING_REG(channel), in nb7vpq904m_set_channel() 99 regmap_update_bits(nb7->regmap, OUTPUT_COMPRESSION_AND_POL_REG(channel), in nb7vpq904m_set_channel() 101 regmap_update_bits(nb7->regmap, FLAT_GAIN_REG(channel), in nb7vpq904m_set_channel() 103 regmap_update_bits(nb7->regmap, LOSS_MATCH_REG(channel), in nb7vpq904m_set_channel() 109 bool reverse = (nb7->orientation == TYPEC_ORIENTATION_REVERSE); in nb7vpq904m_set() [all …]
|
D | fsa4480.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2021-2022 Linaro Ltd. 4 * Copyright (C) 2018-2020 The Linux Foundation 62 enum typec_orientation orientation; member 74 /* Accesses only done under fsa4480->lock */ 80 bool reverse = (fsa->orientation == TYPEC_ORIENTATION_REVERSE); in fsa4480_set() 84 if (fsa->swap_sbu_lanes) in fsa4480_set() 88 if (fsa->mode < TYPEC_STATE_MODAL || in fsa4480_set() 89 (!fsa->svid && (fsa->mode == TYPEC_MODE_USB2 || in fsa4480_set() 90 fsa->mode == TYPEC_MODE_USB3))) { in fsa4480_set() [all …]
|
D | wcd939x-usbss.c | 1 // SPDX-License-Identifier: GPL-2.0-only 72 #define WCD_USBSS_SWITCH_SELECT0_DP_AUXP_SWITCHES BIT(7) /* 1-> MG2 */ 73 #define WCD_USBSS_SWITCH_SELECT0_DP_AUXM_SWITCHES BIT(6) /* 1-> MG2 */ 76 #define WCD_USBSS_SWITCH_SELECT0_SENSE_SWITCHES BIT(1) /* 1-> SBU2 */ 77 #define WCD_USBSS_SWITCH_SELECT0_MIC_SWITCHES BIT(0) /* 1-> MG2 */ 89 #define WCD_USBSS_SWITCH_SELECT1_AGND_SWITCHES BIT(0) /* 1-> MG2 */ 197 enum typec_orientation orientation; member 242 bool reverse = (usbss->orientation == TYPEC_ORIENTATION_REVERSE); in wcd939x_usbss_set() 249 if (usbss->mode < TYPEC_STATE_MODAL || in wcd939x_usbss_set() 250 (!usbss->svid && (usbss->mode == TYPEC_MODE_USB2 || in wcd939x_usbss_set() [all …]
|
D | tusb1046.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Driver for the TUSB1046-DCI USB Type-C crosspoint switch 45 struct i2c_client *client = priv->client; in tusb1046_mux_set() 46 struct device *dev = &client->dev; in tusb1046_mux_set() 49 if (state->mode >= TYPEC_STATE_MODAL && in tusb1046_mux_set() 50 state->alt->svid != USB_TYPEC_DP_SID) in tusb1046_mux_set() 51 return -EINVAL; in tusb1046_mux_set() 53 dev_dbg(dev, "mux mode requested: %lu\n", state->mode); in tusb1046_mux_set() 55 mutex_lock(&priv->general_reg_lock); in tusb1046_mux_set() 64 switch (state->mode) { in tusb1046_mux_set() [all …]
|
D | intel_pmc_mux.c | 1 // SPDX-License-Identifier: GPL-2.0 140 enum typec_orientation orientation; member 169 /* SoC expects the USB Type-C port numbers to start with 0 */ in update_port_status() 170 port_num = port->usb3_port - 1; in update_port_status() 172 port->iom_status = readl(port->pmc->iom_base + in update_port_status() 173 port->pmc->iom_port_status_offset + in update_port_status() 174 port_num * port->pmc->iom_port_status_size); in update_port_status() 179 if (port->sbu_orientation) in sbu_orientation() 180 return port->sbu_orientation - 1; in sbu_orientation() 182 return port->orientation - 1; in sbu_orientation() [all …]
|
/linux-6.14.4/drivers/usb/typec/ |
D | mux.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * USB Type-C Multiplexer/DeMultiplexer Switch support 45 * property is named "orientation-switch" (@id). The value of the device in typec_switch_match() 52 * At this point we are sure that @fwnode is a typec switch in all in typec_switch_match() 53 * cases. If the switch hasn't yet been registered for some reason, the in typec_switch_match() 59 return dev ? to_typec_switch_dev(dev) : ERR_PTR(-EPROBE_DEFER); in typec_switch_match() 63 * fwnode_typec_switch_get - Find USB Type-C orientation switch 66 * Finds a switch linked with @dev. Returns a reference to the switch on 68 * ERR_PTR(-EPROBE_DEFER) when a connection was found but the switch 81 return ERR_PTR(-ENOMEM); in fwnode_typec_switch_get() [all …]
|
/linux-6.14.4/drivers/soc/qcom/ |
D | pmic_glink_altmode.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2019-2020, The Linux Foundation. All rights reserved. 15 #include <drm/bridge/aux-bridge.h> 82 enum typec_orientation orientation; member 118 guard(mutex)(&altmode->lock); in pmic_glink_altmode_request() 120 req.hdr.owner = cpu_to_le32(altmode->owner_id); in pmic_glink_altmode_request() 126 ret = pmic_glink_send(altmode->client, &req, sizeof(req)); in pmic_glink_altmode_request() 128 dev_err(altmode->dev, "failed to send altmode request: %#x (%d)\n", cmd, ret); in pmic_glink_altmode_request() 132 left = wait_for_completion_timeout(&altmode->pan_ack, 5 * HZ); in pmic_glink_altmode_request() 134 dev_err(altmode->dev, "timeout waiting for altmode request ack for: %#x\n", cmd); in pmic_glink_altmode_request() [all …]
|
/linux-6.14.4/drivers/iio/imu/inv_mpu6050/ |
D | inv_mpu_magn.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2019 TDK-InvenSense, Inc. 49 switch (st->chip_type) { in inv_magn_supported() 73 return -ENODEV; in inv_magn_init() 76 switch (st->chip_type) { in inv_magn_init() 101 /* switch back to power-down */ in inv_magn_init() 113 switch (st->chip_type) { in inv_magn_init() 124 return -EINVAL; in inv_magn_init() 130 * Hadj = H * (((ASA - 128) * 0.5 / 128) + 1) in inv_magn_init() 136 st->magn_raw_to_gauss[0] = (((int32_t)asa[0] + 128) * sensitivity) / 256; in inv_magn_init() [all …]
|
/linux-6.14.4/drivers/gpu/drm/i915/display/ |
D | intel_dsi.c | 1 // SPDX-License-Identifier: MIT 19 intel_dsi->panel_power_off_time); in intel_dsi_wait_panel_power_cycle() 21 if (panel_power_off_duration < (s64)intel_dsi->panel_pwr_cycle_delay) in intel_dsi_wait_panel_power_cycle() 22 msleep(intel_dsi->panel_pwr_cycle_delay - panel_power_off_duration); in intel_dsi_wait_panel_power_cycle() 34 int bpp = mipi_dsi_pixel_format_to_bpp(intel_dsi->pixel_format); in intel_dsi_bitrate() 39 return intel_dsi->pclk * bpp / intel_dsi->lane_count; in intel_dsi_bitrate() 44 switch (intel_dsi->escape_clk_div) { in intel_dsi_tlpx_ns() 63 struct drm_i915_private *dev_priv = to_i915(connector->dev); in intel_dsi_mode_valid() 67 int max_dotclk = to_i915(connector->dev)->display.cdclk.max_dotclk_freq; in intel_dsi_mode_valid() 70 drm_dbg_kms(&dev_priv->drm, "\n"); in intel_dsi_mode_valid() [all …]
|
/linux-6.14.4/Documentation/devicetree/bindings/sound/ |
D | qcom,wcd939x.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Srinivas Kandagatla <[email protected]> 13 Qualcomm WCD9390/WCD9395 Codec is a standalone Hi-Fi audio codec IC. 15 The WCD9390/WCD9395 IC has a functionally separate USB-C Mux subsystem 17 The Audio Headphone and Microphone data path between the Codec and the USB-C Mux 18 subsystems are external to the IC, thus requiring DT port-endpoint graph description 19 to handle USB-C altmode & orientation switching for Audio Accessory Mode. 22 - $ref: dai-common.yaml# [all …]
|
/linux-6.14.4/Documentation/devicetree/bindings/phy/ |
D | phy-rockchip-usbdp.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/phy/phy-rockchip-usbdp.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Frank Wang <frank.wang@rock-chips.com> 11 - Zhang Yubing <yubing.zhang@rock-chips.com> 16 - rockchip,rk3576-usbdp-phy 17 - rockchip,rk3588-usbdp-phy 22 "#phy-cells": 25 - PHY_TYPE_USB3 [all …]
|
D | qcom,msm8998-qmp-usb3-phy.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/phy/qcom,msm8998-qmp-usb3-phy.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Vinod Koul <[email protected]> 13 The QMP PHY controller supports physical layer functionality for USB-C on 19 - qcom,msm8998-qmp-usb3-phy 20 - qcom,qcm2290-qmp-usb3-phy 21 - qcom,qcs615-qmp-usb3-phy 22 - qcom,sdm660-qmp-usb3-phy [all …]
|
D | qcom,sc8280xp-qmp-usb43dp-phy.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Qualcomm QMP USB4-USB3-DP PHY controller (SC8280XP) 10 - Vinod Koul <[email protected]> 19 - qcom,sar2130p-qmp-usb3-dp-phy 20 - qcom,sc7180-qmp-usb3-dp-phy 21 - qcom,sc7280-qmp-usb3-dp-phy 22 - qcom,sc8180x-qmp-usb3-dp-phy [all …]
|
/linux-6.14.4/drivers/gpu/drm/ |
D | drm_panel_orientation_quirks.c | 1 /* SPDX-License-Identifier: MIT */ 3 * drm_panel_orientation_quirks.c -- Quirks for non-normal panel orientation 30 int orientation; member 38 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, 46 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, 54 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, 62 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, 71 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, 79 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, 86 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, [all …]
|
/linux-6.14.4/arch/arm64/boot/dts/qcom/ |
D | qcs8550-aim300-aiot.dts | 1 // SPDX-License-Identifier: BSD-3-Clause 3 * Copyright (c) 2023-2024, Qualcomm Innovation Center, Inc. All rights reserved. 6 /dts-v1/; 8 #include <dt-bindings/leds/common.h> 9 #include "qcs8550-aim300.dtsi" 16 compatible = "qcom,qcs8550-aim300-aiot", "qcom,qcs8550-aim300", "qcom,qcs8550", 24 stdout-path = "serial0:115200n8"; 27 gpio-keys { 28 compatible = "gpio-keys"; 30 pinctrl-0 = <&volume_up_n>; [all …]
|
/linux-6.14.4/drivers/staging/fbtft/ |
D | fb_uc1701.c | 1 // SPDX-License-Identifier: GPL-2.0+ 33 /* 8: select orientation */ 37 /* 10: show memory content or switch all pixels on */ 43 /* 15: output mode select (turns display upside-down) */ 58 /* column offset for normal orientation */ 60 /* column offset for bottom view orientation */ 65 par->fbtftops.reset(par); in init_display() 74 /* select orientation BOTTOMVIEW */ in init_display() 77 /* output mode select (turns display upside-down) */ in init_display() 120 u16 *vmem16 = (u16 *)par->info->screen_buffer; in write_vmem() [all …]
|
/linux-6.14.4/Documentation/driver-api/usb/ |
D | typec.rst | 3 USB Type-C connector class 7 ------------ 9 The typec class is meant for describing the USB Type-C ports in a system to the 14 The platforms are expected to register every USB Type-C port they have with the 15 class. In a normal case the registration will be done by a USB Type-C or PD PHY 18 considers the component registering the USB Type-C ports with the class as "port 26 attributes are described in Documentation/ABI/testing/sysfs-class-typec. 29 -------------------- 36 "port0-partner". Full path to the device would be 37 /sys/class/typec/port0/port0-partner/. [all …]
|