Home
last modified time | relevance | path

Searched +full:orientation +full:- +full:switch (Results 1 – 25 of 107) sorted by relevance

12345

/linux/Documentation/devicetree/bindings/usb/
H A Dgpio-sbu-mux.yaml1 # 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 <andersson@kernel.org>
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 …]
H A Dqcom,wcd939x-usbss.yaml1 # 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 <neil.armstrong@linaro.org>
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 …]
H A Dusb-switch.yaml1 # 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 <gregkh@linuxfoundation.org>
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 …]
H A Dparade,ps8830.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Abel Vesa <abel.vesa@linaro.org>
15 - items:
16 - const: parade,ps8833
17 - const: parade,ps8830
18 - const: parade,ps8830
25 - description: XO Clock
27 reset-gpios:
[all …]
H A Dnxp,ptn36502.yaml1 # 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 <luca.weiss@fairphone.com>
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 …]
H A Dfcs,fsa4480.yaml1 # 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 <bjorn.andersson@linaro.org>
15 - const: fcs,fsa4480
16 - items:
17 - enum:
18 - ocs,ocp96011
19 - const: fcs,fsa4480
[all …]
H A Donnn,nb7vpq904m.yaml1 # 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 <neil.armstrong@linaro.org>
15 - onnn,nb7vpq904m
20 vcc-supply:
23 enable-gpios: true
24 orientation-switch: true
25 retimer-switch: true
[all …]
H A Dusb-switch-ports.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/usb/usb-switch-ports.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: USB Orientation and Mode Switches Ports Graph Properties
10 - Greg Kroah-Hartman <gregkh@linuxfoundation.org>
13 Ports Graph properties for devices handling USB mode and orientation switching.
17 $ref: /schemas/graph.yaml#/$defs/port-base
20 handling altmode muxing and orientation switching.
24 $ref: /schemas/graph.yaml#/$defs/endpoint-base
[all …]
/linux/drivers/usb/typec/mux/
H A Dptn36502.c1 // 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 …]
H A Dnb7vpq904m.c1 // 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 …]
H A Dfsa4480.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2021-2022 Linaro Ltd.
4 * Copyright (C) 2018-2020 The Linux Foundation
63 enum typec_orientation orientation; member
75 /* Accesses only done under fsa4480->lock */
81 bool reverse = (fsa->orientation == TYPEC_ORIENTATION_REVERSE); in fsa4480_set()
85 if (fsa->swap_sbu_lanes) in fsa4480_set()
89 if (fsa->mode < TYPEC_STATE_MODAL || in fsa4480_set()
90 (!fsa->svid && (fsa->mode == TYPEC_MODE_USB2 || in fsa4480_set()
91 fsa->mode == TYPEC_MODE_USB3))) { in fsa4480_set()
[all …]
H A Dwcd939x-usbss.c1 // 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 …]
H A Dintel_pmc_mux.c1 // 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 …]
H A Dpi3usb30532.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Pericom PI3USB30532 Type-C cross switch / mux driver
5 * Copyright (c) 2017-2018 Hans de Goede <hdegoede@redhat.com>
35 if (pi->conf == new_conf) in pi3usb30532_set_conf()
38 ret = i2c_smbus_write_byte_data(pi->client, PI3USB30532_CONF, new_conf); in pi3usb30532_set_conf()
40 dev_err(&pi->client->dev, "Error writing conf: %d\n", ret); in pi3usb30532_set_conf()
44 pi->conf = new_conf; in pi3usb30532_set_conf()
49 enum typec_orientation orientation) in pi3usb30532_sw_set() argument
55 mutex_lock(&pi->lock); in pi3usb30532_sw_set()
56 new_conf = pi->conf; in pi3usb30532_sw_set()
[all …]
/linux/drivers/usb/typec/
H A Dmux.c1 // 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/drivers/soc/qcom/
H A Dpmic_glink_altmode.c1 // 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/drivers/iio/imu/inv_mpu6050/
H A Dinv_mpu_magn.c1 // 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/drivers/phy/freescale/
H A Dphy-fsl-imx8mq-usb.c1 // SPDX-License-Identifier: GPL-2.0+
105 enum typec_orientation orientation; member
125 enum typec_orientation orientation);
130 enum typec_orientation orientation) in tca_blk_typec_switch_set() argument
133 struct tca_blk *tca = imx_phy->tca; in tca_blk_typec_switch_set()
136 if (tca->orientation == orientation) in tca_blk_typec_switch_set()
139 ret = clk_prepare_enable(imx_phy->clk); in tca_blk_typec_switch_set()
143 tca_blk_orientation_set(tca, orientation); in tca_blk_typec_switch_set()
144 clk_disable_unprepare(imx_phy->clk); in tca_blk_typec_switch_set()
152 struct device *dev = &pdev->dev; in tca_blk_get_typec_switch()
[all …]
/linux/Documentation/devicetree/bindings/phy/
H A Dphy-rockchip-usbdp.yaml1 # 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 …]
H A Dqcom,sc8280xp-qmp-usb43dp-phy.yaml1 # 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 <vkoul@kernel.org>
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/Documentation/devicetree/bindings/sound/
H A Dqcom,wcd939x.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
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/arch/arm64/boot/dts/qcom/
H A Dqcs8550-aim300-aiot.dts1 // 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/drivers/staging/fbtft/
H A Dfb_uc1701.c1 // 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/Documentation/driver-api/usb/
H A Dtypec.rst3 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 …]
/linux/include/linux/input/
H A Dadxl34x.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
152 * result in the function appearing un-responsive if the
162 * holds the threshold value for Free-Fall detection.
163 * The data format is unsigned. The root-sum-square(RSS) value
167 * result in undesirable behavior if Free-Fall interrupt is
178 * free_fall_threshold to generate a Free-Fall interrupt. The
180 * undesirable behavior if Free-Fall interrupt is enabled.
189 * RATE = 3200 Hz / (2^(15 - x)). Default value is 0x0A, or 100 Hz
201 * in Full-Resolution Mode, where the output resolution increases
203 * bit is cleared the device is in 10-bit Mode and RANGE determine the
[all …]

12345