forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'char-misc-5.10-rc1' of git://git.kernel.org/pub/scm/linux/…
…kernel/git/gregkh/char-misc Pull char/misc driver updates from Greg KH: "Here is the big set of char, misc, and other assorted driver subsystem patches for 5.10-rc1. There's a lot of different things in here, all over the drivers/ directory. Some summaries: - soundwire driver updates - habanalabs driver updates - extcon driver updates - nitro_enclaves new driver - fsl-mc driver and core updates - mhi core and bus updates - nvmem driver updates - eeprom driver updates - binder driver updates and fixes - vbox minor bugfixes - fsi driver updates - w1 driver updates - coresight driver updates - interconnect driver updates - misc driver updates - other minor driver updates All of these have been in linux-next for a while with no reported issues" * tag 'char-misc-5.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (396 commits) binder: fix UAF when releasing todo list docs: w1: w1_therm: Fix broken xref, mistakes, clarify text misc: Kconfig: fix a HISI_HIKEY_USB dependency LSM: Fix type of id parameter in kernel_post_load_data prototype misc: Kconfig: add a new dependency for HISI_HIKEY_USB firmware_loader: fix a kernel-doc markup w1: w1_therm: make w1_poll_completion static binder: simplify the return expression of binder_mmap test_firmware: Test partial read support firmware: Add request_partial_firmware_into_buf() firmware: Store opt_flags in fw_priv fs/kernel_file_read: Add "offset" arg for partial reads IMA: Add support for file reads without contents LSM: Add "contents" flag to kernel_read_file hook module: Call security_kernel_post_load_data() firmware_loader: Use security_post_load_data() LSM: Introduce kernel_post_load_data() hook fs/kernel_read_file: Add file_size output argument fs/kernel_read_file: Switch buffer size arg to size_t fs/kernel_read_file: Remove redundant size argument ...
- Loading branch information
Showing
297 changed files
with
24,461 additions
and
10,014 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
What: /sys/bus/mhi/devices/.../serialnumber | ||
Date: Sept 2020 | ||
KernelVersion: 5.10 | ||
Contact: Bhaumik Bhatt <[email protected]> | ||
Description: The file holds the serial number of the client device obtained | ||
using a BHI (Boot Host Interface) register read after at least | ||
one attempt to power up the device has been done. If read | ||
without having the device power on at least once, the file will | ||
read all 0's. | ||
Users: Any userspace application or clients interested in device info. | ||
|
||
What: /sys/bus/mhi/devices/.../oem_pk_hash | ||
Date: Sept 2020 | ||
KernelVersion: 5.10 | ||
Contact: Bhaumik Bhatt <[email protected]> | ||
Description: The file holds the OEM PK Hash value of the endpoint device | ||
obtained using a BHI (Boot Host Interface) register read after | ||
at least one attempt to power up the device has been done. If | ||
read without having the device power on at least once, the file | ||
will read all 0's. | ||
Users: Any userspace application or clients interested in device info. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
What: /sys/bus/dfl/devices/dfl_dev.X/type | ||
Date: Aug 2020 | ||
KernelVersion: 5.10 | ||
Contact: Xu Yilun <[email protected]> | ||
Description: Read-only. It returns type of DFL FIU of the device. Now DFL | ||
supports 2 FIU types, 0 for FME, 1 for PORT. | ||
Format: 0x%x | ||
|
||
What: /sys/bus/dfl/devices/dfl_dev.X/feature_id | ||
Date: Aug 2020 | ||
KernelVersion: 5.10 | ||
Contact: Xu Yilun <[email protected]> | ||
Description: Read-only. It returns feature identifier local to its DFL FIU | ||
type. | ||
Format: 0x%x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,3 +36,11 @@ Contact: [email protected] | |
Description: | ||
Provides a means of reading/writing a 32 bit value from/to a | ||
specified FSI bus address. | ||
|
||
What: /sys/bus/platform/devices/../cfam_reset | ||
Date: Sept 2020 | ||
KernelVersion: 5.10 | ||
Contact: [email protected] | ||
Description: | ||
Provides a means of resetting the cfam that is attached to the | ||
FSI device. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,13 @@ Contact: Tomas Winkler <[email protected]> | |
Description: Stores mei client fixed address, if any | ||
Format: %d | ||
|
||
What: /sys/bus/mei/devices/.../vtag | ||
Date: Nov 2020 | ||
KernelVersion: 5.9 | ||
Contact: Tomas Winkler <[email protected]> | ||
Description: Stores mei client vtag support status | ||
Format: %d | ||
|
||
What: /sys/bus/mei/devices/.../max_len | ||
Date: Nov 2019 | ||
KernelVersion: 5.5 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,21 @@ | ||
What: /sys/bus/soundwire/devices/sdw:.../status | ||
/sys/bus/soundwire/devices/sdw:.../device_number | ||
|
||
Date: September 2020 | ||
|
||
Contact: Pierre-Louis Bossart <[email protected]> | ||
Bard Liao <[email protected]> | ||
Vinod Koul <[email protected]> | ||
|
||
Description: SoundWire Slave status | ||
|
||
These properties report the Slave status, e.g. if it | ||
is UNATTACHED or not, and in the latter case show the | ||
device_number. This status information is useful to | ||
detect devices exposed by platform firmware but not | ||
physically present on the bus, and conversely devices | ||
not exposed in platform firmware but enumerated. | ||
|
||
What: /sys/bus/soundwire/devices/sdw:.../dev-properties/mipi_revision | ||
/sys/bus/soundwire/devices/sdw:.../dev-properties/wake_capable | ||
/sys/bus/soundwire/devices/sdw:.../dev-properties/test_mode_capable | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,17 @@ What: /sys/class/habanalabs/hl<n>/armcp_kernel_ver | |
Date: Jan 2019 | ||
KernelVersion: 5.1 | ||
Contact: [email protected] | ||
Description: Version of the Linux kernel running on the device's CPU | ||
Description: Version of the Linux kernel running on the device's CPU. | ||
Will be DEPRECATED in Linux kernel version 5.10, and be | ||
replaced with cpucp_kernel_ver | ||
|
||
What: /sys/class/habanalabs/hl<n>/armcp_ver | ||
Date: Jan 2019 | ||
KernelVersion: 5.1 | ||
Contact: [email protected] | ||
Description: Version of the application running on the device's CPU | ||
Will be DEPRECATED in Linux kernel version 5.10, and be | ||
replaced with cpucp_ver | ||
|
||
What: /sys/class/habanalabs/hl<n>/clk_max_freq_mhz | ||
Date: Jun 2019 | ||
|
@@ -33,6 +37,18 @@ KernelVersion: 5.1 | |
Contact: [email protected] | ||
Description: Version of the Device's CPLD F/W | ||
|
||
What: /sys/class/habanalabs/hl<n>/cpucp_kernel_ver | ||
Date: Oct 2020 | ||
KernelVersion: 5.10 | ||
Contact: [email protected] | ||
Description: Version of the Linux kernel running on the device's CPU | ||
|
||
What: /sys/class/habanalabs/hl<n>/cpucp_ver | ||
Date: Oct 2020 | ||
KernelVersion: 5.10 | ||
Contact: [email protected] | ||
Description: Version of the application running on the device's CPU | ||
|
||
What: /sys/class/habanalabs/hl<n>/device_type | ||
Date: Jan 2019 | ||
KernelVersion: 5.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,10 +49,13 @@ Description: | |
will be changed only in device RAM, so it will be cleared when | ||
power is lost. Trigger a 'save' to EEPROM command to keep | ||
values after power-on. Read or write are : | ||
* '9..12': device resolution in bit | ||
* '9..14': device resolution in bit | ||
or resolution to set in bit | ||
* '-xx': xx is kernel error when reading the resolution | ||
* Anything else: do nothing | ||
Some DS18B20 clones are fixed in 12-bit resolution, so the | ||
actual resolution is read back from the chip and verified. Error | ||
is reported if the results differ. | ||
Users: any user space application which wants to communicate with | ||
w1_term device | ||
|
||
|
@@ -86,7 +89,7 @@ Description: | |
*write* : | ||
* '0' : save the 2 or 3 bytes to the device EEPROM | ||
(i.e. TH, TL and config register) | ||
* '9..12' : set the device resolution in RAM | ||
* '9..14' : set the device resolution in RAM | ||
(if supported) | ||
* Anything else: do nothing | ||
refer to Documentation/w1/slaves/w1_therm.rst for detailed | ||
|
@@ -114,3 +117,47 @@ Description: | |
of the bulk read command (not the current temperature). | ||
Users: any user space application which wants to communicate with | ||
w1_term device | ||
|
||
|
||
What: /sys/bus/w1/devices/.../conv_time | ||
Date: July 2020 | ||
Contact: Ivan Zaentsev <[email protected]> | ||
Description: | ||
(RW) Get, set, or measure a temperature conversion time. The | ||
setting remains active until a resolution change. Then it is | ||
reset to default (datasheet) conversion time for a new | ||
resolution. | ||
|
||
*read*: Actual conversion time in milliseconds. *write*: | ||
'0': Set the default conversion time from the datasheet. | ||
'1': Measure and set the conversion time. Make a single | ||
temperature conversion, measure an actual value. | ||
Increase it by 20% for temperature range. A new | ||
conversion time can be obtained by reading this | ||
same attribute. | ||
other positive value: | ||
Set the conversion time in milliseconds. | ||
|
||
Users: An application using the w1_term device | ||
|
||
|
||
What: /sys/bus/w1/devices/.../features | ||
Date: July 2020 | ||
Contact: Ivan Zaentsev <[email protected]> | ||
Description: | ||
(RW) Control optional driver settings. | ||
Bit masks to read/write (bitwise OR): | ||
|
||
1: Enable check for conversion success. If byte 6 of | ||
scratchpad memory is 0xC after conversion, and | ||
temperature reads 85.00 (powerup value) or 127.94 | ||
(insufficient power) - return a conversion error. | ||
|
||
2: Enable poll for conversion completion. Generate read cycles | ||
after the conversion start and wait for 1's. In parasite | ||
power mode this feature is not available. | ||
|
||
*read*: Currently selected features. | ||
*write*: Select features. | ||
|
||
Users: An application using the w1_term device |
27 changes: 0 additions & 27 deletions
27
Documentation/devicetree/bindings/extcon/extcon-ptn5150.txt
This file was deleted.
Oops, something went wrong.
60 changes: 60 additions & 0 deletions
60
Documentation/devicetree/bindings/extcon/extcon-ptn5150.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/extcon/extcon-ptn5150.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: PTN5150 CC (Configuration Channel) Logic device | ||
|
||
maintainers: | ||
- Krzysztof Kozlowski <[email protected]> | ||
|
||
description: | | ||
PTN5150 is a small thin low power CC logic chip supporting the USB Type-C | ||
connector application with CC control logic detection and indication | ||
functions. It is interfaced to the host controller using an I2C interface. | ||
properties: | ||
compatible: | ||
const: nxp,ptn5150 | ||
|
||
int-gpios: | ||
deprecated: true | ||
description: | ||
GPIO pin (input) connected to the PTN5150's INTB pin. | ||
Use "interrupts" instead. | ||
|
||
interrupts: | ||
maxItems: 1 | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
vbus-gpios: | ||
description: | ||
GPIO pin (output) used to control VBUS. If skipped, no such control | ||
takes place. | ||
|
||
required: | ||
- compatible | ||
- interrupts | ||
- reg | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/gpio/gpio.h> | ||
#include <dt-bindings/interrupt-controller/irq.h> | ||
i2c { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
ptn5150@1d { | ||
compatible = "nxp,ptn5150"; | ||
reg = <0x1d>; | ||
interrupt-parent = <&msmgpio>; | ||
interrupts = <78 IRQ_TYPE_LEVEL_HIGH>; | ||
vbus-gpios = <&msmgpio 148 GPIO_ACTIVE_HIGH>; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.