Home
last modified time | relevance | path

Searched full:orientation (Results 1 – 25 of 233) sorted by relevance

12345678910

/linux/Documentation/firmware-guide/acpi/
H A Dintel-pmc-mux.rst20 configure the cable plug orientation and mode (with Alternate Modes). The driver
90 Orientation subsection
95 should not configure them according to the cable plug orientation. This can
97 orientation. The driver uses a specific device properties "sbu-orientation"
98 (SBU) and "hsl-orientation" (data) to know if those lines are "fixed", and to
99 which orientation. The value that these properties have is a string value, and
100 it can be one that is defined for the USB Type-C connector orientation: "normal"
106 Package () {"sbu-orientation", "normal"},
107 Package () {"hsl-orientation", "normal"},
132 Package () {"sbu-orientation", "normal"},
[all …]
/linux/drivers/usb/typec/mux/
H A Dptn36502.c74 enum typec_orientation orientation; member
81 bool reverse = (ptn->orientation == TYPEC_ORIENTATION_REVERSE); in ptn36502_set()
96 * Normal Orientation (CC1) in ptn36502_set()
101 * Flipped Orientation (CC2) in ptn36502_set()
131 * Normal Orientation (CC1) in ptn36502_set()
136 * Flipped Orientation (CC2) in ptn36502_set()
153 * Normal Orientation (CC1) in ptn36502_set()
158 * Flipped Orientation (CC2) in ptn36502_set()
214 static int ptn36502_sw_set(struct typec_switch_dev *sw, enum typec_orientation orientation) in ptn36502_sw_set() argument
219 ret = typec_switch_set(ptn->typec_switch, orientation); in ptn36502_sw_set()
[all …]
H A Dnb7vpq904m.c76 enum typec_orientation orientation; member
109 bool reverse = (nb7->orientation == TYPEC_ORIENTATION_REVERSE); in nb7vpq904m_set()
131 * Normal Orientation (CC1) in nb7vpq904m_set()
136 * Flipped Orientation (CC2) in nb7vpq904m_set()
182 * Normal Orientation (CC1) in nb7vpq904m_set()
187 * Flipped Orientation (CC2) in nb7vpq904m_set()
221 * Normal Orientation (CC1) in nb7vpq904m_set()
226 * Flipped Orientation (CC2) in nb7vpq904m_set()
254 static int nb7vpq904m_sw_set(struct typec_switch_dev *sw, enum typec_orientation orientation) in nb7vpq904m_sw_set() argument
259 ret = typec_switch_set(nb7->typec_switch, orientation); in nb7vpq904m_sw_set()
[all …]
H A Dps883x.c63 enum typec_orientation orientation; member
111 if (retimer->orientation == TYPEC_ORIENTATION_REVERSE) in ps883x_set()
178 enum typec_orientation orientation) in ps883x_sw_set() argument
183 ret = typec_switch_set(retimer->typec_switch, orientation); in ps883x_sw_set()
189 if (retimer->orientation != orientation) { in ps883x_sw_set()
190 retimer->orientation = orientation; in ps883x_sw_set()
194 orientation == TYPEC_ORIENTATION_REVERSE); in ps883x_sw_set()
196 dev_err(&retimer->client->dev, "failed to set orientation: %d\n", ret); in ps883x_sw_set()
376 "failed to acquire orientation-switch\n"); in ps883x_retimer_probe()
H A Dfsa4480.c63 enum typec_orientation orientation; member
81 bool reverse = (fsa->orientation == TYPEC_ORIENTATION_REVERSE); in fsa4480_set()
150 enum typec_orientation orientation) in fsa4480_switch_set() argument
157 if (fsa->orientation != orientation) { in fsa4480_switch_set()
158 fsa->orientation = orientation; in fsa4480_switch_set()
293 fsa->orientation = TYPEC_ORIENTATION_NONE; in fsa4480_probe()
H A Dintel_pmc_mux.c140 enum typec_orientation orientation; member
182 return port->orientation - 1; in sbu_orientation()
190 return port->orientation - 1; in hsl_orientation()
295 req.mode_data = (port->orientation - 1) << PMC_USB_ALTMODE_ORI_SHIFT; in pmc_usb_mux_dp()
345 req.mode_data = (port->orientation - 1) << PMC_USB_ALTMODE_ORI_SHIFT; in pmc_usb_mux_tbt()
398 req.mode_data |= (port->orientation - 1) << PMC_USB_ALTMODE_ORI_SHIFT; in pmc_usb_mux_usb4()
482 if (port->orientation == TYPEC_ORIENTATION_NONE) in pmc_usb_connect()
513 if (port->orientation == TYPEC_ORIENTATION_NONE || port->role == USB_ROLE_NONE) in pmc_usb_mux_set()
544 enum typec_orientation orientation) in pmc_usb_set_orientation() argument
550 port->orientation = orientation; in pmc_usb_set_orientation()
[all …]
H A Dwcd939x-usbss.c197 enum typec_orientation orientation; member
242 bool reverse = (usbss->orientation == TYPEC_ORIENTATION_REVERSE); in wcd939x_usbss_set()
535 enum typec_orientation orientation) in wcd939x_usbss_switch_set() argument
542 if (usbss->orientation != orientation) { in wcd939x_usbss_switch_set()
543 usbss->orientation = orientation; in wcd939x_usbss_switch_set()
553 /* Report orientation to codec after switch has been done */ in wcd939x_usbss_switch_set()
554 return typec_switch_set(usbss->codec_switch, orientation); in wcd939x_usbss_switch_set()
622 "failed to acquire codec orientation-switch\n"); in wcd939x_usbss_probe()
627 usbss->orientation = TYPEC_ORIENTATION_NONE; in wcd939x_usbss_probe()
/linux/include/linux/platform_data/
H A Dinvensense_mpu6050.h11 * @orientation: Orientation matrix of the chip (deprecated in favor of
15 * work on this platform. The orientation matrices are 3x3 rotation matrices
16 * that are applied to the data to rotate from the mounting orientation to the
17 * platform orientation. The values must be one of 0, 1, or -1 and each row and
23 __s8 orientation[9]; member
/linux/Documentation/devicetree/bindings/phy/
H A Dqcom,sc8280xp-qmp-usb43dp-phy.yaml77 orientation-switch: true
101 # Static lane mappings are mutually exclusive with typec-mux/orientation-mux
107 - items: # DisplayPort 1 lane, normal orientation
109 - items: # DisplayPort 1 lane, flipped orientation
111 - items: # DisplayPort 2 lanes, normal orientation
114 - items: # DisplayPort 2 lanes, flipped orientation
117 - items: # DisplayPort 4 lanes, normal orientation
122 - items: # DisplayPort 4 lanes, flipped orientation
138 # Static lane mappings are mutually exclusive with typec-mux/orientation-mux
143 - items: # USB3, normal orientation
[all …]
H A Dphy-rockchip-usbdp.yaml94 (~100K) to apply a DC offset for signalling the connector orientation.
100 (~100K) to apply a DC offset for signalling the connector orientation.
103 orientation-switch:
104 description: Flag the port as possible handler of orientation switching
115 handling orientation switching.
/linux/Documentation/devicetree/bindings/usb/
H A Dgpio-sbu-mux.yaml14 and swapped depending on the altmode and orientation. This binding describes
33 description: Orientation select
39 orientation-switch: true
45 handling altmode muxing and orientation switching.
50 - orientation-switch
108 orientation-switch;
H A Dusb-switch.yaml7 title: USB Orientation and Mode Switches Common Properties
13 Common properties for devices handling USB mode and orientation switching.
20 orientation-switch:
21 description: Possible handler of orientation switching
H A Dqcom,wcd939x-usbss.yaml18 graph description to handle USB-C altmode & orientation switching for Audio
39 orientation-switch: true
48 purpose of handling altmode muxing and orientation switching.
54 purpose of handling USB-C Audio Accessory Mode muxing and orientation switching.
80 orientation-switch;
H A Dparade,ps8830.yaml48 orientation-switch: true
67 handling altmode muxing and orientation switching.
79 - orientation-switch
112 orientation-switch;
H A Dusb-switch-ports.yaml7 title: USB Orientation and Mode Switches Ports Graph Properties
13 Ports Graph properties for devices handling USB mode and orientation switching.
20 handling altmode muxing and orientation switching.
H A Dnxp,ptn36502.yaml23 orientation-switch: true
41 handling altmode muxing and orientation switching.
66 orientation-switch;
H A Dfcs,fsa4480.yaml31 orientation-switch: true
37 handling altmode muxing and orientation switching.
99 orientation-switch;
/linux/drivers/soc/qcom/
H A Dpmic_glink_altmode.c82 enum typec_orientation orientation; member
223 typec_switch_set(alt_port->typec_switch, alt_port->orientation); in pmic_glink_altmode_worker()
248 static enum typec_orientation pmic_glink_altmode_orientation(unsigned int orientation) in pmic_glink_altmode_orientation() argument
250 if (orientation == 0) in pmic_glink_altmode_orientation()
252 else if (orientation == 1) in pmic_glink_altmode_orientation()
271 u8 orientation; in pmic_glink_altmode_sc8180xp_notify() local
287 orientation = FIELD_GET(SC8180X_ORIENTATION_MASK, notification); in pmic_glink_altmode_sc8180xp_notify()
301 alt_port->orientation = pmic_glink_altmode_orientation(orientation); in pmic_glink_altmode_sc8180xp_notify()
318 u8 orientation; in pmic_glink_altmode_sc8280xp_notify() local
333 orientation = notify->payload[1]; in pmic_glink_altmode_sc8280xp_notify()
[all …]
/linux/drivers/usb/typec/
H A Dmux.c45 * property is named "orientation-switch" (@id). The value of the device in typec_switch_match()
63 * fwnode_typec_switch_get - Find USB Type-C orientation switch
83 count = fwnode_connection_find_matches(fwnode, "orientation-switch", NULL, in fwnode_typec_switch_get()
121 * typec_switch_put - Release USB Type-C orientation switch
122 * @sw: USB Type-C orientation switch
155 * typec_switch_register - Register USB Type-C orientation switch
157 * @desc: Orientation switch description
160 * data pairs depending on the cable plug orientation from the USB Type-C
204 enum typec_orientation orientation) in typec_switch_set() argument
216 ret = sw_dev->set(sw_dev, orientation); in typec_switch_set()
[all …]
/linux/drivers/iio/imu/inv_mpu6050/
H A Dinv_mpu_magn.c269 /* fill magnetometer orientation */ in inv_mpu_magn_set_orient()
275 st->magn_orient.rotation[0] = st->orientation.rotation[3]; in inv_mpu_magn_set_orient()
276 st->magn_orient.rotation[1] = st->orientation.rotation[4]; in inv_mpu_magn_set_orient()
277 st->magn_orient.rotation[2] = st->orientation.rotation[5]; in inv_mpu_magn_set_orient()
279 st->magn_orient.rotation[3] = st->orientation.rotation[0]; in inv_mpu_magn_set_orient()
280 st->magn_orient.rotation[4] = st->orientation.rotation[1]; in inv_mpu_magn_set_orient()
281 st->magn_orient.rotation[5] = st->orientation.rotation[2]; in inv_mpu_magn_set_orient()
284 orient = st->orientation.rotation[i]; in inv_mpu_magn_set_orient()
307 st->magn_orient = st->orientation; in inv_mpu_magn_set_orient()
/linux/drivers/phy/freescale/
H A Dphy-fsl-imx8mq-usb.c106 enum typec_orientation orientation; member
127 enum typec_orientation orientation);
132 enum typec_orientation orientation) in tca_blk_typec_switch_set() argument
138 if (tca->orientation == orientation) in tca_blk_typec_switch_set()
145 tca_blk_orientation_set(tca, orientation); in tca_blk_typec_switch_set()
165 dev_err(dev, "Error register tca orientation switch: %ld", in tca_blk_get_typec_switch()
191 enum typec_orientation orientation) in tca_blk_orientation_set() argument
197 if (orientation == TYPEC_ORIENTATION_NONE) { in tca_blk_orientation_set()
220 if (orientation == TYPEC_ORIENTATION_REVERSE) in tca_blk_orientation_set()
222 else if (orientation == TYPEC_ORIENTATION_NORMAL) in tca_blk_orientation_set()
[all …]
/linux/Documentation/input/
H A Dmulti-touch-protocol.rst215 and MINOR are the major and minor axis of an ellipse. The orientation of
216 the touch ellipse can be described with the ORIENTATION parameter, and the
246 orientation of the contact and the approaching tool are assumed to be the
273 The orientation of the touching ellipse. The value should describe a signed
283 degree orientation, the reported orientation must exceed the range max to
287 Orientation can be omitted if the touch area is circular, or if the
288 information is not available in the kernel driver. Partial orientation
346 For devices reporting contacts as rectangular shapes, signed orientation
376 Rationale: We have no information about the orientation of the touching
399 and with ORIENTATION, one can detect twisting of fingers.
/linux/Documentation/devicetree/bindings/sound/
H A Dqcom,wcd939x.yaml19 to handle USB-C altmode & orientation switching for Audio Accessory Mode.
37 orientation-switch:
38 description: Flag the port as possible handler of orientation switching
45 purpose of handling altmode muxing and orientation switching to detect and
/linux/include/linux/input/
H A Dadxl34x.h305 * ADXL346 only ORIENTATION SENSING feature
306 * The orientation function of the ADXL346 reports both 2-D and
307 * 3-D orientation concurrently.
318 * orientation positions is determined by setting the Deadzone
321 * angle where the orientation is considered invalid.
338 * orientation bandwidth. Set the depth of the filter used to
340 * orientation sensing
/linux/Documentation/devicetree/bindings/iio/
H A Dmount-matrix.txt22 and thus implying that the component should be mounted in a certain orientation
28 reference to (x,y,z) orientation, with (x,y) corresponding to these axes on the
43 to this world. When using the mounting matrix, the sensor and device orientation
94 geomagnetic field. The system orientation vis-a-vis the world is defined with
151 relative orientation of any given sensor of this type with respect to the

12345678910