Skip to content

Commit 1fc1499

Browse files
committed
Merge tag 'char-misc-4.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
Pull char/misc driver updates from Greg KH: "Here's the big char/misc driver patchset for 4.1-rc1. Lots of different driver subsystem updates here, nothing major, full details are in the shortlog. All of this has been in linux-next for a while" * tag 'char-misc-4.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (133 commits) mei: trace: remove unused TRACE_SYSTEM_STRING DTS: ARM: OMAP3-N900: Add lis3lv02d support Documentation: DT: lis302: update wakeup binding lis3lv02d: DT: add wakeup unit 2 and wakeup threshold lis3lv02d: DT: use s32 to support negative values Drivers: hv: hv_balloon: correctly handle num_pages>INT_MAX case Drivers: hv: hv_balloon: correctly handle val.freeram<num_pages case mei: replace check for connection instead of transitioning mei: use mei_cl_is_connected consistently mei: fix mei_poll operation hv_vmbus: Add gradually increased delay for retries in vmbus_post_msg() Drivers: hv: hv_balloon: survive ballooning request with num_pages=0 Drivers: hv: hv_balloon: eliminate jumps in piecewiese linear floor function Drivers: hv: hv_balloon: do not online pages in offline blocks hv: remove the per-channel workqueue hv: don't schedule new works in vmbus_onoffer()/vmbus_onoffer_rescind() hv: run non-blocking message handlers in the dispatch tasklet coresight: moving to new "hwtracing" directory coresight-tmc: Adding a status interface to sysfs coresight: remove the unnecessary configuration coresight-default-sink ...
2 parents 41d5e08 + ea5505f commit 1fc1499

119 files changed

Lines changed: 4033 additions & 1482 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/devicetree/bindings/arm/coresight.txt‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ Example:
6161
compatible = "arm,coresight-etb10", "arm,primecell";
6262
reg = <0 0x20010000 0 0x1000>;
6363

64-
coresight-default-sink;
6564
clocks = <&oscclk6a>;
6665
clock-names = "apb_pclk";
6766
port {
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
USB GPIO Extcon device
2+
3+
This is a virtual device used to generate USB cable states from the USB ID pin
4+
connected to a GPIO pin.
5+
6+
Required properties:
7+
- compatible: Should be "linux,extcon-usb-gpio"
8+
- id-gpio: gpio for USB ID pin. See gpio binding.
9+
10+
Example: Examples of extcon-usb-gpio node in dra7-evm.dts as listed below:
11+
extcon_usb1 {
12+
compatible = "linux,extcon-usb-gpio";
13+
id-gpio = <&gpio6 1 GPIO_ACTIVE_HIGH>;
14+
}
15+
16+
&omap_dwc3_1 {
17+
extcon = <&extcon_usb1>;
18+
};
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
* Ingenic JZ4780 NAND/external memory controller (NEMC)
2+
3+
This file documents the device tree bindings for the NEMC external memory
4+
controller in Ingenic JZ4780
5+
6+
Required properties:
7+
- compatible: Should be set to one of:
8+
"ingenic,jz4780-nemc" (JZ4780)
9+
- reg: Should specify the NEMC controller registers location and length.
10+
- clocks: Clock for the NEMC controller.
11+
- #address-cells: Must be set to 2.
12+
- #size-cells: Must be set to 1.
13+
- ranges: A set of ranges for each bank describing the physical memory layout.
14+
Each should specify the following 4 integer values:
15+
16+
<cs number> 0 <physical address of mapping> <size of mapping>
17+
18+
Each child of the NEMC node describes a device connected to the NEMC.
19+
20+
Required child node properties:
21+
- reg: Should contain at least one register specifier, given in the following
22+
format:
23+
24+
<cs number> <offset> <size>
25+
26+
Multiple registers can be specified across multiple banks. This is needed,
27+
for example, for packaged NAND devices with multiple dies. Such devices
28+
should be grouped into a single node.
29+
30+
Optional child node properties:
31+
- ingenic,nemc-bus-width: Specifies the bus width in bits. Defaults to 8 bits.
32+
- ingenic,nemc-tAS: Address setup time in nanoseconds.
33+
- ingenic,nemc-tAH: Address hold time in nanoseconds.
34+
- ingenic,nemc-tBP: Burst pitch time in nanoseconds.
35+
- ingenic,nemc-tAW: Access wait time in nanoseconds.
36+
- ingenic,nemc-tSTRV: Static memory recovery time in nanoseconds.
37+
38+
If a child node references multiple banks in its "reg" property, the same value
39+
for all optional parameters will be configured for all banks. If any optional
40+
parameters are omitted, they will be left unchanged from whatever they are
41+
configured to when the NEMC device is probed (which may be the reset value as
42+
given in the hardware reference manual, or a value configured by the boot
43+
loader).
44+
45+
Example (NEMC node with a NAND child device attached at CS1):
46+
47+
nemc: nemc@13410000 {
48+
compatible = "ingenic,jz4780-nemc";
49+
reg = <0x13410000 0x10000>;
50+
51+
#address-cells = <2>;
52+
#size-cells = <1>;
53+
54+
ranges = <1 0 0x1b000000 0x1000000
55+
2 0 0x1a000000 0x1000000
56+
3 0 0x19000000 0x1000000
57+
4 0 0x18000000 0x1000000
58+
5 0 0x17000000 0x1000000
59+
6 0 0x16000000 0x1000000>;
60+
61+
clocks = <&cgu JZ4780_CLK_NEMC>;
62+
63+
nand: nand@1 {
64+
compatible = "ingenic,jz4780-nand";
65+
reg = <1 0 0x1000000>;
66+
67+
ingenic,nemc-tAS = <10>;
68+
ingenic,nemc-tAH = <5>;
69+
ingenic,nemc-tBP = <10>;
70+
ingenic,nemc-tAW = <15>;
71+
ingenic,nemc-tSTRV = <100>;
72+
73+
...
74+
};
75+
};

‎Documentation/devicetree/bindings/misc/lis302.txt‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,18 @@ Optional properties for all bus drivers:
4646
interrupt 2
4747
- st,wakeup-{x,y,z}-{lo,hi}: set wakeup condition on x/y/z axis for
4848
upper/lower limit
49+
- st,wakeup-threshold: set wakeup threshold
50+
- st,wakeup2-{x,y,z}-{lo,hi}: set wakeup condition on x/y/z axis for
51+
upper/lower limit for second wakeup
52+
engine.
53+
- st,wakeup2-threshold: set wakeup threshold for second wakeup
54+
engine.
4955
- st,highpass-cutoff-hz=: 1, 2, 4 or 8 for 1Hz, 2Hz, 4Hz or 8Hz of
5056
highpass cut-off frequency
5157
- st,hipass{1,2}-disable: disable highpass 1/2.
5258
- st,default-rate=: set the default rate
53-
- st,axis-{x,y,z}=: set the axis to map to the three coordinates
59+
- st,axis-{x,y,z}=: set the axis to map to the three coordinates.
60+
Negative values can be used for inverted axis.
5461
- st,{min,max}-limit-{x,y,z} set the min/max limits for x/y/z axis
5562
(used by self-test)
5663

‎Documentation/devicetree/bindings/spmi/qcom,spmi-pmic-arb.txt‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Qualcomm SPMI Controller (PMIC Arbiter)
22

3-
The SPMI PMIC Arbiter is found on the Snapdragon 800 Series. It is an SPMI
3+
The SPMI PMIC Arbiter is found on Snapdragon chipsets. It is an SPMI
44
controller with wrapping arbitration logic to allow for multiple on-chip
55
devices to control a single SPMI master.
66

@@ -19,6 +19,10 @@ Required properties:
1919
"core" - core registers
2020
"intr" - interrupt controller registers
2121
"cnfg" - configuration registers
22+
Registers used only for V2 PMIC Arbiter:
23+
"chnls" - tx-channel per virtual slave registers.
24+
"obsrvr" - rx-channel (called observer) per virtual slave registers.
25+
2226
- reg : address + size pairs describing the PMIC arb register sets; order must
2327
correspond with the order of entries in reg-names
2428
- #address-cells : must be set to 2

‎Documentation/driver-model/devres.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ IOMAP
276276
devm_ioport_unmap()
277277
devm_ioremap()
278278
devm_ioremap_nocache()
279+
devm_ioremap_wc()
279280
devm_ioremap_resource() : checks resource, requests memory region, ioremaps
280281
devm_iounmap()
281282
pcim_iomap()

‎Documentation/trace/coresight.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ document is concerned with the latter.
1414
HW assisted tracing is becoming increasingly useful when dealing with systems
1515
that have many SoCs and other components like GPU and DMA engines. ARM has
1616
developed a HW assisted tracing solution by means of different components, each
17-
being added to a design at systhesis time to cater to specific tracing needs.
17+
being added to a design at synthesis time to cater to specific tracing needs.
1818
Compoments are generally categorised as source, link and sinks and are
1919
(usually) discovered using the AMBA bus.
2020

‎MAINTAINERS‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@ ARM/CORESIGHT FRAMEWORK AND DRIVERS
958958
M: Mathieu Poirier <mathieu.poirier@linaro.org>
959959
L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)
960960
S: Maintained
961-
F: drivers/coresight/*
961+
F: drivers/hwtracing/coresight/*
962962
F: Documentation/trace/coresight.txt
963963
F: Documentation/devicetree/bindings/arm/coresight.txt
964964
F: Documentation/ABI/testing/sysfs-bus-coresight-devices-*
@@ -1828,7 +1828,7 @@ S: Supported
18281828
F: drivers/spi/spi-atmel.*
18291829

18301830
ATMEL SSC DRIVER
1831-
M: Bo Shen <voice.shen@atmel.com>
1831+
M: Nicolas Ferre <nicolas.ferre@atmel.com>
18321832
L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)
18331833
S: Supported
18341834
F: drivers/misc/atmel-ssc.c

‎arch/arm/Kconfig.debug‎

Lines changed: 1 addition & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1610,59 +1610,6 @@ config DEBUG_SET_MODULE_RONX
16101610
against certain classes of kernel exploits.
16111611
If in doubt, say "N".
16121612

1613-
menuconfig CORESIGHT
1614-
bool "CoreSight Tracing Support"
1615-
select ARM_AMBA
1616-
help
1617-
This framework provides a kernel interface for the CoreSight debug
1618-
and trace drivers to register themselves with. It's intended to build
1619-
a topological view of the CoreSight components based on a DT
1620-
specification and configure the right serie of components when a
1621-
trace source gets enabled.
1622-
1623-
if CORESIGHT
1624-
config CORESIGHT_LINKS_AND_SINKS
1625-
bool "CoreSight Link and Sink drivers"
1626-
help
1627-
This enables support for CoreSight link and sink drivers that are
1628-
responsible for transporting and collecting the trace data
1629-
respectively. Link and sinks are dynamically aggregated with a trace
1630-
entity at run time to form a complete trace path.
1631-
1632-
config CORESIGHT_LINK_AND_SINK_TMC
1633-
bool "Coresight generic TMC driver"
1634-
depends on CORESIGHT_LINKS_AND_SINKS
1635-
help
1636-
This enables support for the Trace Memory Controller driver. Depending
1637-
on its configuration the device can act as a link (embedded trace router
1638-
- ETR) or sink (embedded trace FIFO). The driver complies with the
1639-
generic implementation of the component without special enhancement or
1640-
added features.
1641-
1642-
config CORESIGHT_SINK_TPIU
1643-
bool "Coresight generic TPIU driver"
1644-
depends on CORESIGHT_LINKS_AND_SINKS
1645-
help
1646-
This enables support for the Trace Port Interface Unit driver, responsible
1647-
for bridging the gap between the on-chip coresight components and a trace
1648-
port collection engine, typically connected to an external host for use
1649-
case capturing more traces than the on-board coresight memory can handle.
1650-
1651-
config CORESIGHT_SINK_ETBV10
1652-
bool "Coresight ETBv1.0 driver"
1653-
depends on CORESIGHT_LINKS_AND_SINKS
1654-
help
1655-
This enables support for the Embedded Trace Buffer version 1.0 driver
1656-
that complies with the generic implementation of the component without
1657-
special enhancement or added features.
1613+
source "drivers/hwtracing/coresight/Kconfig"
16581614

1659-
config CORESIGHT_SOURCE_ETM3X
1660-
bool "CoreSight Embedded Trace Macrocell 3.x driver"
1661-
select CORESIGHT_LINKS_AND_SINKS
1662-
help
1663-
This driver provides support for processor ETM3.x and PTM1.x modules,
1664-
which allows tracing the instructions that a processor is executing
1665-
This is primarily useful for instruction level tracing. Depending
1666-
the ETM version data tracing may also be available.
1667-
endif
16681615
endmenu

‎arch/arm/boot/dts/hip04.dtsi‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,6 @@
275275
compatible = "arm,coresight-etb10", "arm,primecell";
276276
reg = <0 0xe3c42000 0 0x1000>;
277277

278-
coresight-default-sink;
279278
clocks = <&clk_375m>;
280279
clock-names = "apb_pclk";
281280
port {

0 commit comments

Comments
 (0)