Skip to content

Commit 97ff4ca

Browse files
committed
Merge tag 'char-misc-5.3-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 "large" pull request for char and misc and other assorted smaller driver subsystems for 5.3-rc1. It seems that this tree is becoming the funnel point of lots of smaller driver subsystems, which is fine for me, but that's why it is getting larger over time and does not just contain stuff under drivers/char/ and drivers/misc. Lots of small updates all over the place here from different driver subsystems: - habana driver updates - coresight driver updates - documentation file movements and updates - Android binder fixes and updates - extcon driver updates - google firmware driver updates - fsi driver updates - smaller misc and char driver updates - soundwire driver updates - nvmem driver updates - w1 driver fixes All of these have been in linux-next for a while with no reported issues" * tag 'char-misc-5.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (188 commits) coresight: Do not default to CPU0 for missing CPU phandle dt-bindings: coresight: Change CPU phandle to required property ocxl: Allow contexts to be attached with a NULL mm fsi: sbefifo: Don't fail operations when in SBE IPL state coresight: tmc: Smatch: Fix potential NULL pointer dereference coresight: etm3x: Smatch: Fix potential NULL pointer dereference coresight: Potential uninitialized variable in probe() coresight: etb10: Do not call smp_processor_id from preemptible coresight: tmc-etf: Do not call smp_processor_id from preemptible coresight: tmc-etr: alloc_perf_buf: Do not call smp_processor_id from preemptible coresight: tmc-etr: Do not call smp_processor_id() from preemptible docs: misc-devices: convert files without extension to ReST fpga: dfl: fme: align PR buffer size per PR datawidth fpga: dfl: fme: remove copy_to_user() in ioctl for PR fpga: dfl-fme-mgr: fix FME_PR_INTFC_ID register address. intel_th: msu: Start read iterator from a non-empty window intel_th: msu: Split sgt array and pointer in multiwindow mode intel_th: msu: Support multipage blocks intel_th: pci: Add Ice Lake NNPI support intel_th: msu: Fix single mode with disabled IOMMU ...
2 parents 4832a4d + 2f4281f commit 97ff4ca

164 files changed

Lines changed: 6073 additions & 2998 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/testing/debugfs-driver-habanalabs‎

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ Date: Jan 2019
33
KernelVersion: 5.1
44
Contact: oded.gabbay@gmail.com
55
Description: Sets the device address to be used for read or write through
6-
PCI bar. The acceptable value is a string that starts with "0x"
6+
PCI bar, or the device VA of a host mapped memory to be read or
7+
written directly from the host. The latter option is allowed
8+
only when the IOMMU is disabled.
9+
The acceptable value is a string that starts with "0x"
710

811
What: /sys/kernel/debug/habanalabs/hl<n>/command_buffers
912
Date: Jan 2019
@@ -33,10 +36,12 @@ Contact: oded.gabbay@gmail.com
3336
Description: Allows the root user to read or write directly through the
3437
device's PCI bar. Writing to this file generates a write
3538
transaction while reading from the file generates a read
36-
transcation. This custom interface is needed (instead of using
39+
transaction. This custom interface is needed (instead of using
3740
the generic Linux user-space PCI mapping) because the DDR bar
3841
is very small compared to the DDR memory and only the driver can
39-
move the bar before and after the transaction
42+
move the bar before and after the transaction.
43+
If the IOMMU is disabled, it also allows the root user to read
44+
or write from the host a device VA of a host mapped memory
4045

4146
What: /sys/kernel/debug/habanalabs/hl<n>/device
4247
Date: Jan 2019
@@ -46,6 +51,13 @@ Description: Enables the root user to set the device to specific state.
4651
Valid values are "disable", "enable", "suspend", "resume".
4752
User can read this property to see the valid values
4853

54+
What: /sys/kernel/debug/habanalabs/hl<n>/engines
55+
Date: Jul 2019
56+
KernelVersion: 5.3
57+
Contact: oded.gabbay@gmail.com
58+
Description: Displays the status registers values of the device engines and
59+
their derived idle status
60+
4961
What: /sys/kernel/debug/habanalabs/hl<n>/i2c_addr
5062
Date: Jan 2019
5163
KernelVersion: 5.1

‎Documentation/ABI/testing/sysfs-driver-habanalabs‎

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,20 @@ What: /sys/class/habanalabs/hl<n>/ic_clk
6262
Date: Jan 2019
6363
KernelVersion: 5.1
6464
Contact: oded.gabbay@gmail.com
65-
Description: Allows the user to set the maximum clock frequency of the
66-
Interconnect fabric. Writes to this parameter affect the device
67-
only when the power management profile is set to "manual" mode.
68-
The device IC clock might be set to lower value then the
65+
Description: Allows the user to set the maximum clock frequency, in Hz, of
66+
the Interconnect fabric. Writes to this parameter affect the
67+
device only when the power management profile is set to "manual"
68+
mode. The device IC clock might be set to lower value than the
6969
maximum. The user should read the ic_clk_curr to see the actual
70-
frequency value of the IC
70+
frequency value of the IC. This property is valid only for the
71+
Goya ASIC family
7172

7273
What: /sys/class/habanalabs/hl<n>/ic_clk_curr
7374
Date: Jan 2019
7475
KernelVersion: 5.1
7576
Contact: oded.gabbay@gmail.com
76-
Description: Displays the current clock frequency of the Interconnect fabric
77+
Description: Displays the current clock frequency, in Hz, of the Interconnect
78+
fabric. This property is valid only for the Goya ASIC family
7779

7880
What: /sys/class/habanalabs/hl<n>/infineon_ver
7981
Date: Jan 2019
@@ -92,18 +94,20 @@ What: /sys/class/habanalabs/hl<n>/mme_clk
9294
Date: Jan 2019
9395
KernelVersion: 5.1
9496
Contact: oded.gabbay@gmail.com
95-
Description: Allows the user to set the maximum clock frequency of the
96-
MME compute engine. Writes to this parameter affect the device
97-
only when the power management profile is set to "manual" mode.
98-
The device MME clock might be set to lower value then the
97+
Description: Allows the user to set the maximum clock frequency, in Hz, of
98+
the MME compute engine. Writes to this parameter affect the
99+
device only when the power management profile is set to "manual"
100+
mode. The device MME clock might be set to lower value than the
99101
maximum. The user should read the mme_clk_curr to see the actual
100-
frequency value of the MME
102+
frequency value of the MME. This property is valid only for the
103+
Goya ASIC family
101104

102105
What: /sys/class/habanalabs/hl<n>/mme_clk_curr
103106
Date: Jan 2019
104107
KernelVersion: 5.1
105108
Contact: oded.gabbay@gmail.com
106-
Description: Displays the current clock frequency of the MME compute engine
109+
Description: Displays the current clock frequency, in Hz, of the MME compute
110+
engine. This property is valid only for the Goya ASIC family
107111

108112
What: /sys/class/habanalabs/hl<n>/pci_addr
109113
Date: Jan 2019
@@ -163,18 +167,20 @@ What: /sys/class/habanalabs/hl<n>/tpc_clk
163167
Date: Jan 2019
164168
KernelVersion: 5.1
165169
Contact: oded.gabbay@gmail.com
166-
Description: Allows the user to set the maximum clock frequency of the
167-
TPC compute engines. Writes to this parameter affect the device
168-
only when the power management profile is set to "manual" mode.
169-
The device TPC clock might be set to lower value then the
170+
Description: Allows the user to set the maximum clock frequency, in Hz, of
171+
the TPC compute engines. Writes to this parameter affect the
172+
device only when the power management profile is set to "manual"
173+
mode. The device TPC clock might be set to lower value than the
170174
maximum. The user should read the tpc_clk_curr to see the actual
171-
frequency value of the TPC
175+
frequency value of the TPC. This property is valid only for
176+
Goya ASIC family
172177

173178
What: /sys/class/habanalabs/hl<n>/tpc_clk_curr
174179
Date: Jan 2019
175180
KernelVersion: 5.1
176181
Contact: oded.gabbay@gmail.com
177-
Description: Displays the current clock frequency of the TPC compute engines
182+
Description: Displays the current clock frequency, in Hz, of the TPC compute
183+
engines. This property is valid only for the Goya ASIC family
178184

179185
What: /sys/class/habanalabs/hl<n>/uboot_ver
180186
Date: Jan 2019

‎Documentation/devicetree/bindings/arm/coresight-cpu-debug.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ Required properties:
2626
processor core is clocked by the internal CPU clock, so it
2727
is enabled with CPU clock by default.
2828

29-
- cpu : the CPU phandle the debug module is affined to. When omitted
30-
the module is considered to belong to CPU0.
29+
- cpu : the CPU phandle the debug module is affined to. Do not assume it
30+
to default to CPU0 if omitted.
3131

3232
Optional properties:
3333

‎Documentation/devicetree/bindings/arm/coresight.txt‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ its hardware characteristcs.
5959

6060
* port or ports: see "Graph bindings for Coresight" below.
6161

62+
* Additional required property for Embedded Trace Macrocell (version 3.x and
63+
version 4.x):
64+
* cpu: the cpu phandle this ETM/PTM is affined to. Do not
65+
assume it to default to CPU0 if omitted.
66+
6267
* Additional required properties for System Trace Macrocells (STM):
6368
* reg: along with the physical base address and length of the register
6469
set as described above, another entry is required to describe the
@@ -87,9 +92,6 @@ its hardware characteristcs.
8792
* arm,cp14: must be present if the system accesses ETM/PTM management
8893
registers via co-processor 14.
8994

90-
* cpu: the cpu phandle this ETM/PTM is affined to. When omitted the
91-
source is considered to belong to CPU0.
92-
9395
* Optional property for TMC:
9496

9597
* arm,buffer-size: size of contiguous buffer space for TMC ETR

‎Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,18 @@ RTC bindings based on SCU Message Protocol
133133
Required properties:
134134
- compatible: should be "fsl,imx8qxp-sc-rtc";
135135

136+
OCOTP bindings based on SCU Message Protocol
137+
------------------------------------------------------------
138+
Required properties:
139+
- compatible: Should be "fsl,imx8qxp-scu-ocotp"
140+
- #address-cells: Must be 1. Contains byte index
141+
- #size-cells: Must be 1. Contains byte length
142+
143+
Optional Child nodes:
144+
145+
- Data cells of ocotp:
146+
Detailed bindings are described in bindings/nvmem/nvmem.txt
147+
136148
Example (imx8qxp):
137149
-------------
138150
aliases {
@@ -177,6 +189,16 @@ firmware {
177189
...
178190
};
179191

192+
ocotp: imx8qx-ocotp {
193+
compatible = "fsl,imx8qxp-scu-ocotp";
194+
#address-cells = <1>;
195+
#size-cells = <1>;
196+
197+
fec_mac0: mac@2c4 {
198+
reg = <0x2c4 8>;
199+
};
200+
};
201+
180202
pd: imx8qx-pd {
181203
compatible = "fsl,imx8qxp-scu-pd", "fsl,scu-pd";
182204
#power-domain-cells = <1>;
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FAIRCHILD SEMICONDUCTOR FSA9480 MICROUSB SWITCH
2+
3+
The FSA9480 is a USB port accessory detector and switch. The FSA9480 is fully
4+
controlled using I2C and enables USB data, stereo and mono audio, video,
5+
microphone, and UART data to use a common connector port.
6+
7+
Required properties:
8+
- compatible : Must be "fcs,fsa9480"
9+
- reg : Specifies i2c slave address. Must be 0x25.
10+
- interrupts : Should contain one entry specifying interrupt signal of
11+
interrupt parent to which interrupt pin of the chip is connected.
12+
13+
Example:
14+
musb@25 {
15+
compatible = "fcs,fsa9480";
16+
reg = <0x25>;
17+
interrupt-parent = <&gph2>;
18+
interrupts = <7 0>;
19+
};

‎Documentation/devicetree/bindings/memory-controllers/ingenic,jz4780-nemc.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ controller in Ingenic JZ4780
55

66
Required properties:
77
- compatible: Should be set to one of:
8+
"ingenic,jz4740-nemc" (JZ4740)
89
"ingenic,jz4780-nemc" (JZ4780)
910
- reg: Should specify the NEMC controller registers location and length.
1011
- clocks: Clock for the NEMC controller.
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
* Xilinx SDFEC(16nm) IP *
2+
3+
The Soft Decision Forward Error Correction (SDFEC) Engine is a Hard IP block
4+
which provides high-throughput LDPC and Turbo Code implementations.
5+
The LDPC decode & encode functionality is capable of covering a range of
6+
customer specified Quasi-cyclic (QC) codes. The Turbo decode functionality
7+
principally covers codes used by LTE. The FEC Engine offers significant
8+
power and area savings versus implementations done in the FPGA fabric.
9+
10+
11+
Required properties:
12+
- compatible: Must be "xlnx,sd-fec-1.1"
13+
- clock-names : List of input clock names from the following:
14+
- "core_clk", Main processing clock for processing core (required)
15+
- "s_axi_aclk", AXI4-Lite memory-mapped slave interface clock (required)
16+
- "s_axis_din_aclk", DIN AXI4-Stream Slave interface clock (optional)
17+
- "s_axis_din_words-aclk", DIN_WORDS AXI4-Stream Slave interface clock (optional)
18+
- "s_axis_ctrl_aclk", Control input AXI4-Stream Slave interface clock (optional)
19+
- "m_axis_dout_aclk", DOUT AXI4-Stream Master interface clock (optional)
20+
- "m_axis_dout_words_aclk", DOUT_WORDS AXI4-Stream Master interface clock (optional)
21+
- "m_axis_status_aclk", Status output AXI4-Stream Master interface clock (optional)
22+
- clocks : Clock phandles (see clock_bindings.txt for details).
23+
- reg: Should contain Xilinx SDFEC 16nm Hardened IP block registers
24+
location and length.
25+
- xlnx,sdfec-code : Should contain "ldpc" or "turbo" to describe the codes
26+
being used.
27+
- xlnx,sdfec-din-words : A value 0 indicates that the DIN_WORDS interface is
28+
driven with a fixed value and is not present on the device, a value of 1
29+
configures the DIN_WORDS to be block based, while a value of 2 configures the
30+
DIN_WORDS input to be supplied for each AXI transaction.
31+
- xlnx,sdfec-din-width : Configures the DIN AXI stream where a value of 1
32+
configures a width of "1x128b", 2 a width of "2x128b" and 4 configures a width
33+
of "4x128b".
34+
- xlnx,sdfec-dout-words : A value 0 indicates that the DOUT_WORDS interface is
35+
driven with a fixed value and is not present on the device, a value of 1
36+
configures the DOUT_WORDS to be block based, while a value of 2 configures the
37+
DOUT_WORDS input to be supplied for each AXI transaction.
38+
- xlnx,sdfec-dout-width : Configures the DOUT AXI stream where a value of 1
39+
configures a width of "1x128b", 2 a width of "2x128b" and 4 configures a width
40+
of "4x128b".
41+
Optional properties:
42+
- interrupts: should contain SDFEC interrupt number
43+
44+
Example
45+
---------------------------------------
46+
sd_fec_0: sd-fec@a0040000 {
47+
compatible = "xlnx,sd-fec-1.1";
48+
clock-names = "core_clk","s_axi_aclk","s_axis_ctrl_aclk","s_axis_din_aclk","m_axis_status_aclk","m_axis_dout_aclk";
49+
clocks = <&misc_clk_2>,<&misc_clk_0>,<&misc_clk_1>,<&misc_clk_1>,<&misc_clk_1>, <&misc_clk_1>;
50+
reg = <0x0 0xa0040000 0x0 0x40000>;
51+
interrupt-parent = <&axi_intc>;
52+
interrupts = <1 0>;
53+
xlnx,sdfec-code = "ldpc";
54+
xlnx,sdfec-din-words = <0>;
55+
xlnx,sdfec-din-width = <2>;
56+
xlnx,sdfec-dout-words = <0>;
57+
xlnx,sdfec-dout-width = <1>;
58+
};

‎Documentation/devicetree/bindings/mux/mmio-mux.txt‎

Lines changed: 0 additions & 60 deletions
This file was deleted.

0 commit comments

Comments
 (0)