Skip to content

Commit f6cff79

Browse files
committed
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 ...
2 parents 47fcc03 + 9ff6576 commit f6cff79

150 files changed

Lines changed: 14288 additions & 1142 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/ABI/stable/sysfs-bus-vmbus‎

Lines changed: 37 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -42,72 +42,93 @@ Contact: K. Y. Srinivasan <kys@microsoft.com>
4242
Description: The 16 bit vendor ID of the device
4343
Users: tools/hv/lsvmbus and user level RDMA libraries
4444

45-
What: /sys/bus/vmbus/devices/vmbus_*/channels/relid/cpu
45+
What: /sys/bus/vmbus/devices/vmbus_*/channels/NN
46+
Date: September. 2017
47+
KernelVersion: 4.14
48+
Contact: Stephen Hemminger <sthemmin@microsoft.com>
49+
Description: Directory for per-channel information
50+
NN is the VMBUS relid associtated with the channel.
51+
52+
What: /sys/bus/vmbus/devices/vmbus_*/channels/NN/cpu
4653
Date: September. 2017
4754
KernelVersion: 4.14
4855
Contact: Stephen Hemminger <sthemmin@microsoft.com>
4956
Description: VCPU (sub)channel is affinitized to
50-
Users: tools/hv/lsvmbus and other debuggig tools
57+
Users: tools/hv/lsvmbus and other debugging tools
5158

52-
What: /sys/bus/vmbus/devices/vmbus_*/channels/relid/cpu
59+
What: /sys/bus/vmbus/devices/vmbus_*/channels/NN/cpu
5360
Date: September. 2017
5461
KernelVersion: 4.14
5562
Contact: Stephen Hemminger <sthemmin@microsoft.com>
5663
Description: VCPU (sub)channel is affinitized to
57-
Users: tools/hv/lsvmbus and other debuggig tools
64+
Users: tools/hv/lsvmbus and other debugging tools
5865

59-
What: /sys/bus/vmbus/devices/vmbus_*/channels/relid/in_mask
66+
What: /sys/bus/vmbus/devices/vmbus_*/channels/NN/in_mask
6067
Date: September. 2017
6168
KernelVersion: 4.14
6269
Contact: Stephen Hemminger <sthemmin@microsoft.com>
63-
Description: Inbound channel signaling state
70+
Description: Host to guest channel interrupt mask
6471
Users: Debugging tools
6572

66-
What: /sys/bus/vmbus/devices/vmbus_*/channels/relid/latency
73+
What: /sys/bus/vmbus/devices/vmbus_*/channels/NN/latency
6774
Date: September. 2017
6875
KernelVersion: 4.14
6976
Contact: Stephen Hemminger <sthemmin@microsoft.com>
7077
Description: Channel signaling latency
7178
Users: Debugging tools
7279

73-
What: /sys/bus/vmbus/devices/vmbus_*/channels/relid/out_mask
80+
What: /sys/bus/vmbus/devices/vmbus_*/channels/NN/out_mask
7481
Date: September. 2017
7582
KernelVersion: 4.14
7683
Contact: Stephen Hemminger <sthemmin@microsoft.com>
77-
Description: Outbound channel signaling state
84+
Description: Guest to host channel interrupt mask
7885
Users: Debugging tools
7986

80-
What: /sys/bus/vmbus/devices/vmbus_*/channels/relid/pending
87+
What: /sys/bus/vmbus/devices/vmbus_*/channels/NN/pending
8188
Date: September. 2017
8289
KernelVersion: 4.14
8390
Contact: Stephen Hemminger <sthemmin@microsoft.com>
8491
Description: Channel interrupt pending state
8592
Users: Debugging tools
8693

87-
What: /sys/bus/vmbus/devices/vmbus_*/channels/relid/read_avail
94+
What: /sys/bus/vmbus/devices/vmbus_*/channels/NN/read_avail
8895
Date: September. 2017
8996
KernelVersion: 4.14
9097
Contact: Stephen Hemminger <sthemmin@microsoft.com>
91-
Description: Bytes availabble to read
98+
Description: Bytes available to read
9299
Users: Debugging tools
93100

94-
What: /sys/bus/vmbus/devices/vmbus_*/channels/relid/write_avail
101+
What: /sys/bus/vmbus/devices/vmbus_*/channels/NN/write_avail
95102
Date: September. 2017
96103
KernelVersion: 4.14
97104
Contact: Stephen Hemminger <sthemmin@microsoft.com>
98-
Description: Bytes availabble to write
105+
Description: Bytes available to write
99106
Users: Debugging tools
100107

101-
What: /sys/bus/vmbus/devices/vmbus_*/channels/relid/events
108+
What: /sys/bus/vmbus/devices/vmbus_*/channels/NN/events
102109
Date: September. 2017
103110
KernelVersion: 4.14
104111
Contact: Stephen Hemminger <sthemmin@microsoft.com>
105112
Description: Number of times we have signaled the host
106113
Users: Debugging tools
107114

108-
What: /sys/bus/vmbus/devices/vmbus_*/channels/relid/interrupts
115+
What: /sys/bus/vmbus/devices/vmbus_*/channels/NN/interrupts
109116
Date: September. 2017
110117
KernelVersion: 4.14
111118
Contact: Stephen Hemminger <sthemmin@microsoft.com>
112119
Description: Number of times we have taken an interrupt (incoming)
113120
Users: Debugging tools
121+
122+
What: /sys/bus/vmbus/devices/vmbus_*/channels/NN/subchannel_id
123+
Date: January. 2018
124+
KernelVersion: 4.16
125+
Contact: Stephen Hemminger <sthemmin@microsoft.com>
126+
Description: Subchannel ID associated with VMBUS channel
127+
Users: Debugging tools and userspace drivers
128+
129+
What: /sys/bus/vmbus/devices/vmbus_*/channels/NN/monitor_id
130+
Date: January. 2018
131+
KernelVersion: 4.16
132+
Contact: Stephen Hemminger <sthemmin@microsoft.com>
133+
Description: Monitor bit associated with channel
134+
Users: Debugging tools and userspace drivers
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
What: /sys/bus/siox/devices/siox-X/active
2+
KernelVersion: 4.16
3+
Contact: Gavin Schenk <g.schenk@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
4+
Description:
5+
On reading represents the current state of the bus. If it
6+
contains a "0" the bus is stopped and connected devices are
7+
expected to not do anything because their watchdog triggered.
8+
When the file contains a "1" the bus is operated and periodically
9+
does a push-pull cycle to write and read data from the
10+
connected devices.
11+
When writing a "0" or "1" the bus moves to the described state.
12+
13+
What: /sys/bus/siox/devices/siox-X/device_add
14+
KernelVersion: 4.16
15+
Contact: Gavin Schenk <g.schenk@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
16+
Description:
17+
Write-only file. Write
18+
19+
<type> <inbytes> <outbytes> <statustype>
20+
21+
to add a new device dynamically. <type> is the name that is used to match
22+
to a driver (similar to the platform bus). <inbytes> and <outbytes> define
23+
the length of the input and output shift register in bytes respectively.
24+
<statustype> defines the 4 bit device type that is check to identify connection
25+
problems.
26+
The new device is added to the end of the existing chain.
27+
28+
What: /sys/bus/siox/devices/siox-X/device_remove
29+
KernelVersion: 4.16
30+
Contact: Gavin Schenk <g.schenk@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
31+
Description:
32+
Write-only file. A single write removes the last device in the siox chain.
33+
34+
What: /sys/bus/siox/devices/siox-X/poll_interval_ns
35+
KernelVersion: 4.16
36+
Contact: Gavin Schenk <g.schenk@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
37+
Description:
38+
Defines the interval between two poll cycles in nano seconds.
39+
Note this is rounded to jiffies on writing. On reading the current value
40+
is returned.
41+
42+
What: /sys/bus/siox/devices/siox-X-Y/connected
43+
KernelVersion: 4.16
44+
Contact: Gavin Schenk <g.schenk@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
45+
Description:
46+
Read-only value. "0" means the Yth device on siox bus X isn't "connected" i.e.
47+
communication with it is not ensured. "1" signals a working connection.
48+
49+
What: /sys/bus/siox/devices/siox-X-Y/inbytes
50+
KernelVersion: 4.16
51+
Contact: Gavin Schenk <g.schenk@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
52+
Description:
53+
Read-only value reporting the inbytes value provided to siox-X/device_add
54+
55+
What: /sys/bus/siox/devices/siox-X-Y/status_errors
56+
KernelVersion: 4.16
57+
Contact: Gavin Schenk <g.schenk@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
58+
Description:
59+
Counts the number of time intervals when the read status byte doesn't yield the
60+
expected value.
61+
62+
What: /sys/bus/siox/devices/siox-X-Y/type
63+
KernelVersion: 4.16
64+
Contact: Gavin Schenk <g.schenk@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
65+
Description:
66+
Read-only value reporting the type value provided to siox-X/device_add.
67+
68+
What: /sys/bus/siox/devices/siox-X-Y/watchdog
69+
KernelVersion: 4.16
70+
Contact: Gavin Schenk <g.schenk@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
71+
Description:
72+
Read-only value reporting if the watchdog of the siox device is
73+
active. "0" means the watchdog is not active and the device is expected to
74+
be operational. "1" means the watchdog keeps the device in reset.
75+
76+
What: /sys/bus/siox/devices/siox-X-Y/watchdog_errors
77+
KernelVersion: 4.16
78+
Contact: Gavin Schenk <g.schenk@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
79+
Description:
80+
Read-only value reporting the number to time intervals when the
81+
watchdog was active.
82+
83+
What: /sys/bus/siox/devices/siox-X-Y/outbytes
84+
KernelVersion: 4.16
85+
Contact: Gavin Schenk <g.schenk@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
86+
Description:
87+
Read-only value reporting the outbytes value provided to siox-X/device_add.

‎Documentation/devicetree/bindings/eeprom/at25.txt‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ Required properties:
1111
- spi-max-frequency : max spi frequency to use
1212
- pagesize : size of the eeprom page
1313
- size : total eeprom size in bytes
14-
- address-width : number of address bits (one of 8, 16, or 24)
14+
- address-width : number of address bits (one of 8, 9, 16, or 24).
15+
For 9 bits, the MSB of the address is sent as bit 3 of the instruction
16+
byte, before the address byte.
1517

1618
Optional properties:
1719
- spi-cpha : SPI shifted clock phase, as per spi-bus bindings.

‎Documentation/devicetree/bindings/nvmem/rockchip-efuse.txt‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,17 @@ Required properties:
66
- "rockchip,rk3188-efuse" - for RK3188 SoCs.
77
- "rockchip,rk3228-efuse" - for RK3228 SoCs.
88
- "rockchip,rk3288-efuse" - for RK3288 SoCs.
9+
- "rockchip,rk3328-efuse" - for RK3328 SoCs.
910
- "rockchip,rk3368-efuse" - for RK3368 SoCs.
1011
- "rockchip,rk3399-efuse" - for RK3399 SoCs.
1112
- reg: Should contain the registers location and exact eFuse size
1213
- clocks: Should be the clock id of eFuse
1314
- clock-names: Should be "pclk_efuse"
1415

16+
Optional properties:
17+
- rockchip,efuse-size: Should be exact eFuse size in byte, the eFuse
18+
size in property <reg> will be invalid if define this property.
19+
1520
Deprecated properties:
1621
- compatible: "rockchip,rockchip-efuse"
1722
Old efuse compatible value compatible to rk3066a, rk3188 and rk3288
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Eckelmann SIOX GPIO bus
2+
3+
Required properties:
4+
- compatible : "eckelmann,siox-gpio"
5+
- din-gpios, dout-gpios, dclk-gpios, dld-gpios: references gpios for the
6+
corresponding bus signals.
7+
8+
Examples:
9+
10+
siox {
11+
compatible = "eckelmann,siox-gpio";
12+
pinctrl-names = "default";
13+
pinctrl-0 = <&pinctrl_siox>;
14+
15+
din-gpios = <&gpio6 11 0>;
16+
dout-gpios = <&gpio6 8 0>;
17+
dclk-gpios = <&gpio6 9 0>;
18+
dld-gpios = <&gpio6 10 0>;
19+
};
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
SLIM(Serial Low Power Interchip Media Bus) bus
2+
3+
SLIMbus is a 2-wire bus, and is used to communicate with peripheral
4+
components like audio-codec.
5+
6+
Required property for SLIMbus controller node:
7+
- compatible - name of SLIMbus controller
8+
9+
Child nodes:
10+
Every SLIMbus controller node can contain zero or more child nodes
11+
representing slave devices on the bus. Every SLIMbus slave device is
12+
uniquely determined by the enumeration address containing 4 fields:
13+
Manufacturer ID, Product code, Device index, and Instance value for
14+
the device.
15+
If child node is not present and it is instantiated after device
16+
discovery (slave device reporting itself present).
17+
18+
In some cases it may be necessary to describe non-probeable device
19+
details such as non-standard ways of powering up a device. In
20+
such cases, child nodes for those devices will be present as
21+
slaves of the SLIMbus controller, as detailed below.
22+
23+
Required property for SLIMbus child node if it is present:
24+
- reg - Should be ('Device index', 'Instance ID') from SLIMbus
25+
Enumeration Address.
26+
Device Index Uniquely identifies multiple Devices within
27+
a single Component.
28+
Instance ID Is for the cases where multiple Devices of the
29+
same type or Class are attached to the bus.
30+
31+
- compatible -"slimMID,PID". The textual representation of Manufacturer ID,
32+
Product Code, shall be in lower case hexadecimal with leading
33+
zeroes suppressed
34+
35+
SLIMbus example for Qualcomm's slimbus manager component:
36+
37+
slim@28080000 {
38+
compatible = "qcom,apq8064-slim", "qcom,slim";
39+
reg = <0x28080000 0x2000>,
40+
interrupts = <0 33 0>;
41+
clocks = <&lcc SLIMBUS_SRC>, <&lcc AUDIO_SLIMBUS_CLK>;
42+
clock-names = "iface", "core";
43+
#address-cells = <2>;
44+
#size-cell = <0>;
45+
46+
codec: wcd9310@1,0{
47+
compatible = "slim217,60";
48+
reg = <1 0>;
49+
};
50+
};
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
Qualcomm SLIMbus controller
2+
This controller is used if applications processor driver controls SLIMbus
3+
master component.
4+
5+
Required properties:
6+
7+
- #address-cells - refer to Documentation/devicetree/bindings/slimbus/bus.txt
8+
- #size-cells - refer to Documentation/devicetree/bindings/slimbus/bus.txt
9+
10+
- reg : Offset and length of the register region(s) for the device
11+
- reg-names : Register region name(s) referenced in reg above
12+
Required register resource entries are:
13+
"ctrl": Physical address of controller register blocks
14+
"slew": required for "qcom,apq8064-slim" SOC.
15+
- compatible : should be "qcom,<SOC-NAME>-slim" for SOC specific compatible
16+
followed by "qcom,slim" for fallback.
17+
- interrupts : Interrupt number used by this controller
18+
- clocks : Interface and core clocks used by this SLIMbus controller
19+
- clock-names : Required clock-name entries are:
20+
"iface" : Interface clock for this controller
21+
"core" : Interrupt for controller core's BAM
22+
23+
Example:
24+
25+
slim@28080000 {
26+
compatible = "qcom,apq8064-slim", "qcom,slim";
27+
reg = <0x28080000 0x2000>, <0x80207C 4>;
28+
reg-names = "ctrl", "slew";
29+
interrupts = <0 33 0>;
30+
clocks = <&lcc SLIMBUS_SRC>, <&lcc AUDIO_SLIMBUS_CLK>;
31+
clock-names = "iface", "core";
32+
#address-cells = <2>;
33+
#size-cell = <0>;
34+
35+
wcd9310: audio-codec@1,0{
36+
compatible = "slim217,60";
37+
reg = <1 0>;
38+
};
39+
};

‎Documentation/devicetree/bindings/vendor-prefixes.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ dptechnics DPTechnics
9797
dragino Dragino Technology Co., Limited
9898
ea Embedded Artists AB
9999
ebv EBV Elektronik
100+
eckelmann Eckelmann AG
100101
edt Emerging Display Technologies
101102
eeti eGalax_eMPIA Technology Inc
102103
elan Elan Microelectronic Corp.

‎Documentation/driver-api/index.rst‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ available subsections can be seen below.
4747
gpio
4848
misc_devices
4949
dmaengine/index
50+
slimbus
51+
soundwire/index
5052

5153
.. only:: subproject and html
5254

0 commit comments

Comments
 (0)