Skip to content

Commit 44aeec8

Browse files
committed
Merge tag 'char-misc-6.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
Pull Char/Misc updates from Greg KH: "Here is the big set of char/misc and other driver subsystem updates for 6.5-rc1. Lots of different, tiny, stuff in here, from a range of smaller driver subsystems, including pulls from some substems directly: - IIO driver updates and additions - W1 driver updates and fixes (and a new maintainer!) - FPGA driver updates and fixes - Counter driver updates - Extcon driver updates - Interconnect driver updates - Coresight driver updates - mfd tree tag merge needed for other updates on top of that, lots of small driver updates as patches, including: - static const updates for class structures - nvmem driver updates - pcmcia driver fix - lots of other small driver updates and fixes All of these have been in linux-next for a while with no reported problems" * tag 'char-misc-6.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (243 commits) bsr: fix build problem with bsr_class static cleanup comedi: make all 'class' structures const char: xillybus: make xillybus_class a static const structure xilinx_hwicap: make icap_class a static const structure virtio_console: make port class a static const structure ppdev: make ppdev_class a static const structure char: misc: make misc_class a static const structure /dev/mem: make mem_class a static const structure char: lp: make lp_class a static const structure dsp56k: make dsp56k_class a static const structure bsr: make bsr_class a static const structure oradax: make 'cl' a static const structure hwtracing: hisi_ptt: Fix potential sleep in atomic context hwtracing: hisi_ptt: Advertise PERF_PMU_CAP_NO_EXCLUDE for PTT PMU hwtracing: hisi_ptt: Export available filters through sysfs hwtracing: hisi_ptt: Add support for dynamically updating the filter list hwtracing: hisi_ptt: Factor out filter allocation and release operation samples: pfsm: add CC_CAN_LINK dependency misc: fastrpc: check return value of devm_kasprintf() coresight: dummy: Update type of mode parameter in dummy_{sink,source}_enable() ...
2 parents 0a8d6c9 + adfdaf8 commit 44aeec8

438 files changed

Lines changed: 8583 additions & 2559 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/sysfs-bus-counter

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,60 @@ Description:
9090
counter does not freeze at the boundary points, but
9191
counts continuously throughout.
9292

93+
interrupt on terminal count:
94+
The output signal is initially low, and will remain low
95+
until the counter reaches zero. The output signal then
96+
goes high and remains high until a new preset value is
97+
set.
98+
99+
hardware retriggerable one-shot:
100+
The output signal is initially high. The output signal
101+
will go low by a trigger input signal, and will remain
102+
low until the counter reaches zero. The output will then
103+
go high and remain high until the next trigger. A
104+
trigger results in loading the counter to the preset
105+
value and setting the output signal low, thus starting
106+
the one-shot pulse.
107+
108+
rate generator:
109+
The output signal is initially high. When the counter
110+
has decremented to 1, the output signal goes low for one
111+
clock pulse. The output signal then goes high again, the
112+
counter is reloaded to the preset value, and the process
113+
repeats in a periodic manner as such.
114+
115+
square wave mode:
116+
The output signal is initially high.
117+
118+
If the initial count is even, the counter is decremented
119+
by two on succeeding clock pulses. When the count
120+
expires, the output signal changes value and the
121+
counter is reloaded to the preset value. The process
122+
repeats in periodic manner as such.
123+
124+
If the initial count is odd, the initial count minus one
125+
(an even number) is loaded and then is decremented by
126+
two on succeeding clock pulses. One clock pulse after
127+
the count expires, the output signal goes low and the
128+
counter is reloaded to the preset value minus one.
129+
Succeeding clock pulses decrement the count by two. When
130+
the count expires, the output goes high again and the
131+
counter is reloaded to the preset value minus one. The
132+
process repeats in a periodic manner as such.
133+
134+
software triggered strobe:
135+
The output signal is initially high. When the count
136+
expires, the output will go low for one clock pulse and
137+
then go high again. The counting sequence is "triggered"
138+
by setting the preset value.
139+
140+
hardware triggered strobe:
141+
The output signal is initially high. Counting is started
142+
by a trigger input signal. When the count expires, the
143+
output signal will go low for one clock pulse and then
144+
go high again. A trigger results in loading the counter
145+
to the preset value.
146+
93147
What: /sys/bus/counter/devices/counterX/countY/count_mode_available
94148
What: /sys/bus/counter/devices/counterX/countY/error_noise_available
95149
What: /sys/bus/counter/devices/counterX/countY/function_available

Documentation/ABI/testing/sysfs-devices-hisi_ptt

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,55 @@ Description: (RW) Control the allocated buffer watermark of outbound packets.
5959
The available tune data is [0, 1, 2]. Writing a negative value
6060
will return an error, and out of range values will be converted
6161
to 2. The value indicates a probable level of the event.
62+
63+
What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/root_port_filters
64+
Date: May 2023
65+
KernelVersion: 6.5
66+
Contact: Yicong Yang <yangyicong@hisilicon.com>
67+
Description: This directory contains the files providing the PCIe Root Port filters
68+
information used for PTT trace. Each file is named after the supported
69+
Root Port device name <domain>:<bus>:<device>.<function>.
70+
71+
See the description of the "filter" in Documentation/trace/hisi-ptt.rst
72+
for more information.
73+
74+
What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/root_port_filters/multiselect
75+
Date: May 2023
76+
KernelVersion: 6.5
77+
Contact: Yicong Yang <yangyicong@hisilicon.com>
78+
Description: (Read) Indicates if this kind of filter can be selected at the same
79+
time as others filters, or must be used on it's own. 1 indicates
80+
the former case and 0 indicates the latter.
81+
82+
What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/root_port_filters/<bdf>
83+
Date: May 2023
84+
KernelVersion: 6.5
85+
Contact: Yicong Yang <yangyicong@hisilicon.com>
86+
Description: (Read) Indicates the filter value of this Root Port filter, which
87+
can be used to control the TLP headers to trace by the PTT trace.
88+
89+
What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/requester_filters
90+
Date: May 2023
91+
KernelVersion: 6.5
92+
Contact: Yicong Yang <yangyicong@hisilicon.com>
93+
Description: This directory contains the files providing the PCIe Requester filters
94+
information used for PTT trace. Each file is named after the supported
95+
Endpoint device name <domain>:<bus>:<device>.<function>.
96+
97+
See the description of the "filter" in Documentation/trace/hisi-ptt.rst
98+
for more information.
99+
100+
What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/requester_filters/multiselect
101+
Date: May 2023
102+
KernelVersion: 6.5
103+
Contact: Yicong Yang <yangyicong@hisilicon.com>
104+
Description: (Read) Indicates if this kind of filter can be selected at the same
105+
time as others filters, or must be used on it's own. 1 indicates
106+
the former case and 0 indicates the latter.
107+
108+
What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/requester_filters/<bdf>
109+
Date: May 2023
110+
KernelVersion: 6.5
111+
Contact: Yicong Yang <yangyicong@hisilicon.com>
112+
Description: (Read) Indicates the filter value of this Requester filter, which
113+
can be used to control the TLP headers to trace by the PTT trace.
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# SPDX-License-Identifier: GPL-2.0-only or BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/arm/arm,coresight-dummy-sink.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: ARM Coresight Dummy sink component
8+
9+
description: |
10+
CoreSight components are compliant with the ARM CoreSight architecture
11+
specification and can be connected in various topologies to suit a particular
12+
SoCs tracing needs. These trace components can generally be classified as
13+
sinks, links and sources. Trace data produced by one or more sources flows
14+
through the intermediate links connecting the source to the currently selected
15+
sink.
16+
17+
The Coresight dummy sink component is for the specific coresight sink devices
18+
kernel don't have permission to access or configure, e.g., CoreSight EUD on
19+
Qualcomm platforms. It is a mini-USB hub implemented to support the USB-based
20+
debug and trace capabilities. For this device, a dummy driver is needed to
21+
register it as Coresight sink device in kernel side, so that path can be
22+
created in the driver. Then the trace flow would be transferred to EUD via
23+
coresight link of AP processor. It provides Coresight API for operations on
24+
dummy source devices, such as enabling and disabling them. It also provides
25+
the Coresight dummy source paths for debugging.
26+
27+
The primary use case of the coresight dummy sink is to build path in kernel
28+
side for dummy sink component.
29+
30+
maintainers:
31+
- Mike Leach <mike.leach@linaro.org>
32+
- Suzuki K Poulose <suzuki.poulose@arm.com>
33+
- James Clark <james.clark@arm.com>
34+
- Mao Jinlong <quic_jinlmao@quicinc.com>
35+
- Hao Zhang <quic_hazha@quicinc.com>
36+
37+
properties:
38+
compatible:
39+
enum:
40+
- arm,coresight-dummy-sink
41+
42+
in-ports:
43+
$ref: /schemas/graph.yaml#/properties/ports
44+
45+
properties:
46+
port:
47+
description: Input connection from the Coresight Trace bus to
48+
dummy sink, such as Embedded USB debugger(EUD).
49+
50+
$ref: /schemas/graph.yaml#/properties/port
51+
52+
required:
53+
- compatible
54+
- in-ports
55+
56+
additionalProperties: false
57+
58+
examples:
59+
# Minimum dummy sink definition. Dummy sink connect to coresight replicator.
60+
- |
61+
sink {
62+
compatible = "arm,coresight-dummy-sink";
63+
64+
in-ports {
65+
port {
66+
eud_in_replicator_swao: endpoint {
67+
remote-endpoint = <&replicator_swao_out_eud>;
68+
};
69+
};
70+
};
71+
};
72+
73+
...
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# SPDX-License-Identifier: GPL-2.0-only or BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/arm/arm,coresight-dummy-source.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: ARM Coresight Dummy source component
8+
9+
description: |
10+
CoreSight components are compliant with the ARM CoreSight architecture
11+
specification and can be connected in various topologies to suit a particular
12+
SoCs tracing needs. These trace components can generally be classified as
13+
sinks, links and sources. Trace data produced by one or more sources flows
14+
through the intermediate links connecting the source to the currently selected
15+
sink.
16+
17+
The Coresight dummy source component is for the specific coresight source
18+
devices kernel don't have permission to access or configure. For some SOCs,
19+
there would be Coresight source trace components on sub-processor which
20+
are conneted to AP processor via debug bus. For these devices, a dummy driver
21+
is needed to register them as Coresight source devices, so that paths can be
22+
created in the driver. It provides Coresight API for operations on dummy
23+
source devices, such as enabling and disabling them. It also provides the
24+
Coresight dummy source paths for debugging.
25+
26+
The primary use case of the coresight dummy source is to build path in kernel
27+
side for dummy source component.
28+
29+
maintainers:
30+
- Mike Leach <mike.leach@linaro.org>
31+
- Suzuki K Poulose <suzuki.poulose@arm.com>
32+
- James Clark <james.clark@arm.com>
33+
- Mao Jinlong <quic_jinlmao@quicinc.com>
34+
- Hao Zhang <quic_hazha@quicinc.com>
35+
36+
properties:
37+
compatible:
38+
enum:
39+
- arm,coresight-dummy-source
40+
41+
out-ports:
42+
$ref: /schemas/graph.yaml#/properties/ports
43+
44+
properties:
45+
port:
46+
description: Output connection from the source to Coresight
47+
Trace bus.
48+
$ref: /schemas/graph.yaml#/properties/port
49+
50+
required:
51+
- compatible
52+
- out-ports
53+
54+
additionalProperties: false
55+
56+
examples:
57+
# Minimum dummy source definition. Dummy source connect to coresight funnel.
58+
- |
59+
source {
60+
compatible = "arm,coresight-dummy-source";
61+
62+
out-ports {
63+
port {
64+
dummy_riscv_out_funnel_swao: endpoint {
65+
remote-endpoint = <&funnel_swao_in_dummy_riscv>;
66+
};
67+
};
68+
};
69+
};
70+
71+
...

Documentation/devicetree/bindings/extcon/qcom,pm8941-misc.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,14 @@ properties:
2727

2828
interrupt-names:
2929
minItems: 1
30-
items:
31-
- const: usb_id
32-
- const: usb_vbus
33-
30+
anyOf:
31+
- items:
32+
- const: usb_id
33+
- const: usb_vbus
34+
- items:
35+
- const: usb_id
36+
- items:
37+
- const: usb_vbus
3438
required:
3539
- compatible
3640
- reg
@@ -49,7 +53,7 @@ examples:
4953
interrupt-controller;
5054
#interrupt-cells = <4>;
5155
52-
usb_id: misc@900 {
56+
usb_id: usb-detect@900 {
5357
compatible = "qcom,pm8941-misc";
5458
reg = <0x900>;
5559
interrupts = <0x0 0x9 0 IRQ_TYPE_EDGE_BOTH>;

Documentation/devicetree/bindings/extcon/wlf,arizona.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ properties:
2323
headphone detect mode to HPDETL, ARIZONA_ACCDET_MODE_HPR/2 sets it
2424
to HPDETR. If this node is not included or if the value is unknown,
2525
then headphone detection mode is set to HPDETL.
26-
$ref: "/schemas/types.yaml#/definitions/uint32"
26+
$ref: /schemas/types.yaml#/definitions/uint32
2727
minimum: 1
2828
maximum: 2
2929

@@ -51,7 +51,7 @@ properties:
5151
description:
5252
Additional software microphone detection debounce specified in
5353
milliseconds.
54-
$ref: "/schemas/types.yaml#/definitions/uint32"
54+
$ref: /schemas/types.yaml#/definitions/uint32
5555

5656
wlf,micd-pol-gpio:
5757
description:
@@ -63,23 +63,23 @@ properties:
6363
description:
6464
Time allowed for MICBIAS to startup prior to performing microphone
6565
detection, specified as per the ARIZONA_MICD_TIME_XXX defines.
66-
$ref: "/schemas/types.yaml#/definitions/uint32"
66+
$ref: /schemas/types.yaml#/definitions/uint32
6767
minimum: 0
6868
maximum: 12
6969

7070
wlf,micd-rate:
7171
description:
7272
Delay between successive microphone detection measurements, specified
7373
as per the ARIZONA_MICD_TIME_XXX defines.
74-
$ref: "/schemas/types.yaml#/definitions/uint32"
74+
$ref: /schemas/types.yaml#/definitions/uint32
7575
minimum: 0
7676
maximum: 12
7777

7878
wlf,micd-dbtime:
7979
description:
8080
Microphone detection hardware debounces specified as the number of
8181
measurements to take.
82-
$ref: "/schemas/types.yaml#/definitions/uint32"
82+
$ref: /schemas/types.yaml#/definitions/uint32
8383
enum: [2, 4]
8484

8585
wlf,micd-timeout-ms:
@@ -97,7 +97,7 @@ properties:
9797
CTIA / OMTP headsets), the field can be of variable length but
9898
should always be a multiple of 3 cells long, each three cell group
9999
represents one polarity configuration.
100-
$ref: "/schemas/types.yaml#/definitions/uint32-matrix"
100+
$ref: /schemas/types.yaml#/definitions/uint32-matrix
101101
items:
102102
items:
103103
- description:
@@ -119,7 +119,7 @@ properties:
119119
description:
120120
Settings for the general purpose switch, set as one of the
121121
ARIZONA_GPSW_XXX defines.
122-
$ref: "/schemas/types.yaml#/definitions/uint32"
122+
$ref: /schemas/types.yaml#/definitions/uint32
123123
minimum: 0
124124
maximum: 3
125125

Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ properties:
4747
avdd-supply:
4848
description: AVdd voltage supply
4949

50+
vref-supply:
51+
description: VRef voltage supply
52+
5053
adi,rejection-60-Hz-enable:
5154
description: |
5255
This bit enables a notch at 60 Hz when the first notch of the sinc
@@ -89,6 +92,7 @@ required:
8992
- interrupts
9093
- dvdd-supply
9194
- avdd-supply
95+
- vref-supply
9296
- spi-cpol
9397
- spi-cpha
9498

@@ -115,6 +119,7 @@ examples:
115119
interrupt-parent = <&gpio>;
116120
dvdd-supply = <&dvdd>;
117121
avdd-supply = <&avdd>;
122+
vref-supply = <&vref>;
118123
119124
adi,refin2-pins-enable;
120125
adi,rejection-60-Hz-enable;

Documentation/devicetree/bindings/iio/adc/mediatek,mt2701-auxadc.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ properties:
2626
- mediatek,mt2712-auxadc
2727
- mediatek,mt6765-auxadc
2828
- mediatek,mt7622-auxadc
29+
- mediatek,mt7986-auxadc
2930
- mediatek,mt8173-auxadc
3031
- items:
3132
- enum:

0 commit comments

Comments
 (0)