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-4.16-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 pull request for char/misc drivers for 4.16-rc1. There's a lot of stuff in here. Three new driver subsystems were added for various types of hardware busses: - siox - slimbus - soundwire as well as a new vboxguest subsystem for the VirtualBox hypervisor drivers. There's also big updates from the FPGA subsystem, lots of Android binder fixes, the usual handful of hyper-v updates, and lots of other smaller driver updates. All of these have been in linux-next for a long time, with no reported issues" * tag 'char-misc-4.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (155 commits) char: lp: use true or false for boolean values android: binder: use VM_ALLOC to get vm area android: binder: Use true and false for boolean values lkdtm: fix handle_irq_event symbol for INT_HW_IRQ_EN EISA: Delete error message for a failed memory allocation in eisa_probe() EISA: Whitespace cleanup misc: remove AVR32 dependencies virt: vbox: Add error mapping for VERR_INVALID_NAME and VERR_NO_MORE_FILES soundwire: Fix a signedness bug uio_hv_generic: fix new type mismatch warnings uio_hv_generic: fix type mismatch warnings auxdisplay: img-ascii-lcd: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE uio_hv_generic: add rescind support uio_hv_generic: check that host supports monitor page uio_hv_generic: create send and receive buffers uio: document uio_hv_generic regions doc: fix documentation about uio_hv_generic vmbus: add monitor_id and subchannel_id to sysfs per channel vmbus: fix ABI documentation uio_hv_generic: use ISR callback method ...
- Loading branch information
Showing
150 changed files
with
14,288 additions
and
1,142 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 |
---|---|---|
|
@@ -42,72 +42,93 @@ Contact: K. Y. Srinivasan <[email protected]> | |
Description: The 16 bit vendor ID of the device | ||
Users: tools/hv/lsvmbus and user level RDMA libraries | ||
|
||
What: /sys/bus/vmbus/devices/vmbus_*/channels/relid/cpu | ||
What: /sys/bus/vmbus/devices/vmbus_*/channels/NN | ||
Date: September. 2017 | ||
KernelVersion: 4.14 | ||
Contact: Stephen Hemminger <[email protected]> | ||
Description: Directory for per-channel information | ||
NN is the VMBUS relid associtated with the channel. | ||
|
||
What: /sys/bus/vmbus/devices/vmbus_*/channels/NN/cpu | ||
Date: September. 2017 | ||
KernelVersion: 4.14 | ||
Contact: Stephen Hemminger <[email protected]> | ||
Description: VCPU (sub)channel is affinitized to | ||
Users: tools/hv/lsvmbus and other debuggig tools | ||
Users: tools/hv/lsvmbus and other debugging tools | ||
|
||
What: /sys/bus/vmbus/devices/vmbus_*/channels/relid/cpu | ||
What: /sys/bus/vmbus/devices/vmbus_*/channels/NN/cpu | ||
Date: September. 2017 | ||
KernelVersion: 4.14 | ||
Contact: Stephen Hemminger <[email protected]> | ||
Description: VCPU (sub)channel is affinitized to | ||
Users: tools/hv/lsvmbus and other debuggig tools | ||
Users: tools/hv/lsvmbus and other debugging tools | ||
|
||
What: /sys/bus/vmbus/devices/vmbus_*/channels/relid/in_mask | ||
What: /sys/bus/vmbus/devices/vmbus_*/channels/NN/in_mask | ||
Date: September. 2017 | ||
KernelVersion: 4.14 | ||
Contact: Stephen Hemminger <[email protected]> | ||
Description: Inbound channel signaling state | ||
Description: Host to guest channel interrupt mask | ||
Users: Debugging tools | ||
|
||
What: /sys/bus/vmbus/devices/vmbus_*/channels/relid/latency | ||
What: /sys/bus/vmbus/devices/vmbus_*/channels/NN/latency | ||
Date: September. 2017 | ||
KernelVersion: 4.14 | ||
Contact: Stephen Hemminger <[email protected]> | ||
Description: Channel signaling latency | ||
Users: Debugging tools | ||
|
||
What: /sys/bus/vmbus/devices/vmbus_*/channels/relid/out_mask | ||
What: /sys/bus/vmbus/devices/vmbus_*/channels/NN/out_mask | ||
Date: September. 2017 | ||
KernelVersion: 4.14 | ||
Contact: Stephen Hemminger <[email protected]> | ||
Description: Outbound channel signaling state | ||
Description: Guest to host channel interrupt mask | ||
Users: Debugging tools | ||
|
||
What: /sys/bus/vmbus/devices/vmbus_*/channels/relid/pending | ||
What: /sys/bus/vmbus/devices/vmbus_*/channels/NN/pending | ||
Date: September. 2017 | ||
KernelVersion: 4.14 | ||
Contact: Stephen Hemminger <[email protected]> | ||
Description: Channel interrupt pending state | ||
Users: Debugging tools | ||
|
||
What: /sys/bus/vmbus/devices/vmbus_*/channels/relid/read_avail | ||
What: /sys/bus/vmbus/devices/vmbus_*/channels/NN/read_avail | ||
Date: September. 2017 | ||
KernelVersion: 4.14 | ||
Contact: Stephen Hemminger <[email protected]> | ||
Description: Bytes availabble to read | ||
Description: Bytes available to read | ||
Users: Debugging tools | ||
|
||
What: /sys/bus/vmbus/devices/vmbus_*/channels/relid/write_avail | ||
What: /sys/bus/vmbus/devices/vmbus_*/channels/NN/write_avail | ||
Date: September. 2017 | ||
KernelVersion: 4.14 | ||
Contact: Stephen Hemminger <[email protected]> | ||
Description: Bytes availabble to write | ||
Description: Bytes available to write | ||
Users: Debugging tools | ||
|
||
What: /sys/bus/vmbus/devices/vmbus_*/channels/relid/events | ||
What: /sys/bus/vmbus/devices/vmbus_*/channels/NN/events | ||
Date: September. 2017 | ||
KernelVersion: 4.14 | ||
Contact: Stephen Hemminger <[email protected]> | ||
Description: Number of times we have signaled the host | ||
Users: Debugging tools | ||
|
||
What: /sys/bus/vmbus/devices/vmbus_*/channels/relid/interrupts | ||
What: /sys/bus/vmbus/devices/vmbus_*/channels/NN/interrupts | ||
Date: September. 2017 | ||
KernelVersion: 4.14 | ||
Contact: Stephen Hemminger <[email protected]> | ||
Description: Number of times we have taken an interrupt (incoming) | ||
Users: Debugging tools | ||
|
||
What: /sys/bus/vmbus/devices/vmbus_*/channels/NN/subchannel_id | ||
Date: January. 2018 | ||
KernelVersion: 4.16 | ||
Contact: Stephen Hemminger <[email protected]> | ||
Description: Subchannel ID associated with VMBUS channel | ||
Users: Debugging tools and userspace drivers | ||
|
||
What: /sys/bus/vmbus/devices/vmbus_*/channels/NN/monitor_id | ||
Date: January. 2018 | ||
KernelVersion: 4.16 | ||
Contact: Stephen Hemminger <[email protected]> | ||
Description: Monitor bit associated with channel | ||
Users: Debugging tools and userspace drivers |
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,87 @@ | ||
What: /sys/bus/siox/devices/siox-X/active | ||
KernelVersion: 4.16 | ||
Contact: Gavin Schenk <[email protected]>, Uwe Kleine-König <[email protected]> | ||
Description: | ||
On reading represents the current state of the bus. If it | ||
contains a "0" the bus is stopped and connected devices are | ||
expected to not do anything because their watchdog triggered. | ||
When the file contains a "1" the bus is operated and periodically | ||
does a push-pull cycle to write and read data from the | ||
connected devices. | ||
When writing a "0" or "1" the bus moves to the described state. | ||
|
||
What: /sys/bus/siox/devices/siox-X/device_add | ||
KernelVersion: 4.16 | ||
Contact: Gavin Schenk <[email protected]>, Uwe Kleine-König <[email protected]> | ||
Description: | ||
Write-only file. Write | ||
|
||
<type> <inbytes> <outbytes> <statustype> | ||
|
||
to add a new device dynamically. <type> is the name that is used to match | ||
to a driver (similar to the platform bus). <inbytes> and <outbytes> define | ||
the length of the input and output shift register in bytes respectively. | ||
<statustype> defines the 4 bit device type that is check to identify connection | ||
problems. | ||
The new device is added to the end of the existing chain. | ||
|
||
What: /sys/bus/siox/devices/siox-X/device_remove | ||
KernelVersion: 4.16 | ||
Contact: Gavin Schenk <[email protected]>, Uwe Kleine-König <[email protected]> | ||
Description: | ||
Write-only file. A single write removes the last device in the siox chain. | ||
|
||
What: /sys/bus/siox/devices/siox-X/poll_interval_ns | ||
KernelVersion: 4.16 | ||
Contact: Gavin Schenk <[email protected]>, Uwe Kleine-König <[email protected]> | ||
Description: | ||
Defines the interval between two poll cycles in nano seconds. | ||
Note this is rounded to jiffies on writing. On reading the current value | ||
is returned. | ||
|
||
What: /sys/bus/siox/devices/siox-X-Y/connected | ||
KernelVersion: 4.16 | ||
Contact: Gavin Schenk <[email protected]>, Uwe Kleine-König <[email protected]> | ||
Description: | ||
Read-only value. "0" means the Yth device on siox bus X isn't "connected" i.e. | ||
communication with it is not ensured. "1" signals a working connection. | ||
|
||
What: /sys/bus/siox/devices/siox-X-Y/inbytes | ||
KernelVersion: 4.16 | ||
Contact: Gavin Schenk <[email protected]>, Uwe Kleine-König <[email protected]> | ||
Description: | ||
Read-only value reporting the inbytes value provided to siox-X/device_add | ||
|
||
What: /sys/bus/siox/devices/siox-X-Y/status_errors | ||
KernelVersion: 4.16 | ||
Contact: Gavin Schenk <[email protected]>, Uwe Kleine-König <[email protected]> | ||
Description: | ||
Counts the number of time intervals when the read status byte doesn't yield the | ||
expected value. | ||
|
||
What: /sys/bus/siox/devices/siox-X-Y/type | ||
KernelVersion: 4.16 | ||
Contact: Gavin Schenk <[email protected]>, Uwe Kleine-König <[email protected]> | ||
Description: | ||
Read-only value reporting the type value provided to siox-X/device_add. | ||
|
||
What: /sys/bus/siox/devices/siox-X-Y/watchdog | ||
KernelVersion: 4.16 | ||
Contact: Gavin Schenk <[email protected]>, Uwe Kleine-König <[email protected]> | ||
Description: | ||
Read-only value reporting if the watchdog of the siox device is | ||
active. "0" means the watchdog is not active and the device is expected to | ||
be operational. "1" means the watchdog keeps the device in reset. | ||
|
||
What: /sys/bus/siox/devices/siox-X-Y/watchdog_errors | ||
KernelVersion: 4.16 | ||
Contact: Gavin Schenk <[email protected]>, Uwe Kleine-König <[email protected]> | ||
Description: | ||
Read-only value reporting the number to time intervals when the | ||
watchdog was active. | ||
|
||
What: /sys/bus/siox/devices/siox-X-Y/outbytes | ||
KernelVersion: 4.16 | ||
Contact: Gavin Schenk <[email protected]>, Uwe Kleine-König <[email protected]> | ||
Description: | ||
Read-only value reporting the outbytes value provided to siox-X/device_add. |
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
19 changes: 19 additions & 0 deletions
19
Documentation/devicetree/bindings/siox/eckelmann,siox-gpio.txt
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,19 @@ | ||
Eckelmann SIOX GPIO bus | ||
|
||
Required properties: | ||
- compatible : "eckelmann,siox-gpio" | ||
- din-gpios, dout-gpios, dclk-gpios, dld-gpios: references gpios for the | ||
corresponding bus signals. | ||
|
||
Examples: | ||
|
||
siox { | ||
compatible = "eckelmann,siox-gpio"; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&pinctrl_siox>; | ||
|
||
din-gpios = <&gpio6 11 0>; | ||
dout-gpios = <&gpio6 8 0>; | ||
dclk-gpios = <&gpio6 9 0>; | ||
dld-gpios = <&gpio6 10 0>; | ||
}; |
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,50 @@ | ||
SLIM(Serial Low Power Interchip Media Bus) bus | ||
|
||
SLIMbus is a 2-wire bus, and is used to communicate with peripheral | ||
components like audio-codec. | ||
|
||
Required property for SLIMbus controller node: | ||
- compatible - name of SLIMbus controller | ||
|
||
Child nodes: | ||
Every SLIMbus controller node can contain zero or more child nodes | ||
representing slave devices on the bus. Every SLIMbus slave device is | ||
uniquely determined by the enumeration address containing 4 fields: | ||
Manufacturer ID, Product code, Device index, and Instance value for | ||
the device. | ||
If child node is not present and it is instantiated after device | ||
discovery (slave device reporting itself present). | ||
|
||
In some cases it may be necessary to describe non-probeable device | ||
details such as non-standard ways of powering up a device. In | ||
such cases, child nodes for those devices will be present as | ||
slaves of the SLIMbus controller, as detailed below. | ||
|
||
Required property for SLIMbus child node if it is present: | ||
- reg - Should be ('Device index', 'Instance ID') from SLIMbus | ||
Enumeration Address. | ||
Device Index Uniquely identifies multiple Devices within | ||
a single Component. | ||
Instance ID Is for the cases where multiple Devices of the | ||
same type or Class are attached to the bus. | ||
|
||
- compatible -"slimMID,PID". The textual representation of Manufacturer ID, | ||
Product Code, shall be in lower case hexadecimal with leading | ||
zeroes suppressed | ||
|
||
SLIMbus example for Qualcomm's slimbus manager component: | ||
|
||
slim@28080000 { | ||
compatible = "qcom,apq8064-slim", "qcom,slim"; | ||
reg = <0x28080000 0x2000>, | ||
interrupts = <0 33 0>; | ||
clocks = <&lcc SLIMBUS_SRC>, <&lcc AUDIO_SLIMBUS_CLK>; | ||
clock-names = "iface", "core"; | ||
#address-cells = <2>; | ||
#size-cell = <0>; | ||
|
||
codec: wcd9310@1,0{ | ||
compatible = "slim217,60"; | ||
reg = <1 0>; | ||
}; | ||
}; |
39 changes: 39 additions & 0 deletions
39
Documentation/devicetree/bindings/slimbus/slim-qcom-ctrl.txt
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,39 @@ | ||
Qualcomm SLIMbus controller | ||
This controller is used if applications processor driver controls SLIMbus | ||
master component. | ||
|
||
Required properties: | ||
|
||
- #address-cells - refer to Documentation/devicetree/bindings/slimbus/bus.txt | ||
- #size-cells - refer to Documentation/devicetree/bindings/slimbus/bus.txt | ||
|
||
- reg : Offset and length of the register region(s) for the device | ||
- reg-names : Register region name(s) referenced in reg above | ||
Required register resource entries are: | ||
"ctrl": Physical address of controller register blocks | ||
"slew": required for "qcom,apq8064-slim" SOC. | ||
- compatible : should be "qcom,<SOC-NAME>-slim" for SOC specific compatible | ||
followed by "qcom,slim" for fallback. | ||
- interrupts : Interrupt number used by this controller | ||
- clocks : Interface and core clocks used by this SLIMbus controller | ||
- clock-names : Required clock-name entries are: | ||
"iface" : Interface clock for this controller | ||
"core" : Interrupt for controller core's BAM | ||
|
||
Example: | ||
|
||
slim@28080000 { | ||
compatible = "qcom,apq8064-slim", "qcom,slim"; | ||
reg = <0x28080000 0x2000>, <0x80207C 4>; | ||
reg-names = "ctrl", "slew"; | ||
interrupts = <0 33 0>; | ||
clocks = <&lcc SLIMBUS_SRC>, <&lcc AUDIO_SLIMBUS_CLK>; | ||
clock-names = "iface", "core"; | ||
#address-cells = <2>; | ||
#size-cell = <0>; | ||
|
||
wcd9310: audio-codec@1,0{ | ||
compatible = "slim217,60"; | ||
reg = <1 0>; | ||
}; | ||
}; |
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.