Skip to content

Commit 693fed9

Browse files
committed
Merge tag 'char-misc-6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
Pull char/misc and other driver subsystem updates from Greg KH: "Here is the large set of driver changes for char/misc drivers and other smaller driver subsystems that flow through this git tree. Included in here are: - New IIO drivers and features and improvments in that subsystem - New hwtracing drivers and additions to that subsystem - lots of interconnect changes and new drivers as that subsystem seems under very active development recently. This required also merging in the icc subsystem changes through this tree. - FPGA driver updates - counter subsystem and driver updates - MHI driver updates - nvmem driver updates - documentation updates - Other smaller driver updates and fixes, full details in the shortlog All of these have been in linux-next for a while with no reported problems" * tag 'char-misc-6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (223 commits) scripts/tags.sh: fix incompatibility with PCRE2 firmware: coreboot: Remove GOOGLE_COREBOOT_TABLE_ACPI/OF Kconfig entries mei: lower the log level for non-fatal failed messages mei: bus: disallow driver match while dismantling device misc: vmw_balloon: fix memory leak with using debugfs_lookup() nvmem: stm32: fix OPTEE dependency dt-bindings: nvmem: qfprom: add IPQ8074 compatible nvmem: qcom-spmi-sdam: register at device init time nvmem: rave-sp-eeprm: fix kernel-doc bad line warning nvmem: stm32: detect bsec pta presence for STM32MP15x nvmem: stm32: add OP-TEE support for STM32MP13x nvmem: core: use nvmem_add_one_cell() in nvmem_add_cells_from_of() nvmem: core: add nvmem_add_one_cell() nvmem: core: drop the removal of the cells in nvmem_add_cells() nvmem: core: move struct nvmem_cell_info to nvmem-provider.h nvmem: core: add an index parameter to the cell of: property: add #nvmem-cell-cells property of: property: make #.*-cells optional for simple props of: base: add of_parse_phandle_with_optional_args() net: add helper eth_addr_add() ...
2 parents 0601f25 + 6ec363f commit 693fed9

File tree

290 files changed

+12531
-1959
lines changed

Some content is hidden

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

290 files changed

+12531
-1959
lines changed

Documentation/ABI/testing/sysfs-bus-coresight-devices-etm3x

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/traceid
236236
Date: November 2014
237237
KernelVersion: 3.19
238238
Contact: Mathieu Poirier <[email protected]>
239-
Description: (RW) Holds the trace ID that will appear in the trace stream
239+
Description: (RO) Holds the trace ID that will appear in the trace stream
240240
coming from this trace entity.
241241

242242
What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/trigger_event
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
What: /sys/bus/coresight/devices/<tpdm-name>/integration_test
2+
Date: January 2023
3+
KernelVersion 6.2
4+
Contact: Jinlong Mao (QUIC) <[email protected]>, Tao Zhang (QUIC) <[email protected]>
5+
Description:
6+
(Write) Run integration test for tpdm. Integration test
7+
will generate test data for tpdm. It can help to make
8+
sure that the trace path is enabled and the link configurations
9+
are fine.
10+
11+
Accepts only one of the 2 values - 1 or 2.
12+
1 : Generate 64 bits data
13+
2 : Generate 32 bits data
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
What: /sys/bus/coresight/devices/ultra_smb<N>/enable_sink
2+
Date: January 2023
3+
KernelVersion: 6.3
4+
Contact: Junhao He <[email protected]>
5+
Description: (RW) Add/remove a SMB device from a trace path. There can be
6+
multiple sources for a single SMB device.
7+
8+
What: /sys/bus/coresight/devices/ultra_smb<N>/mgmt/buf_size
9+
Date: January 2023
10+
KernelVersion: 6.3
11+
Contact: Junhao He <[email protected]>
12+
Description: (RO) Shows the buffer size of each UltraSoc SMB device.
13+
14+
What: /sys/bus/coresight/devices/ultra_smb<N>/mgmt/buf_status
15+
Date: January 2023
16+
KernelVersion: 6.3
17+
Contact: Junhao He <[email protected]>
18+
Description: (RO) Shows the value of UltraSoc SMB status register.
19+
BIT(0) is zero means buffer is empty.
20+
21+
What: /sys/bus/coresight/devices/ultra_smb<N>/mgmt/read_pos
22+
Date: January 2023
23+
KernelVersion: 6.3
24+
Contact: Junhao He <[email protected]>
25+
Description: (RO) Shows the value of UltraSoc SMB Read Pointer register.
26+
27+
What: /sys/bus/coresight/devices/ultra_smb<N>/mgmt/write_pos
28+
Date: January 2023
29+
KernelVersion: 6.3
30+
Contact: Junhao He <[email protected]>
31+
Description: (RO) Shows the value of UltraSoc SMB Write Pointer register.

Documentation/ABI/testing/sysfs-driver-uacce

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,24 @@ Contact: [email protected]
1919
Description: Available instances left of the device
2020
Return -ENODEV if uacce_ops get_available_instances is not provided
2121

22+
What: /sys/class/uacce/<dev_name>/isolate_strategy
23+
Date: Nov 2022
24+
KernelVersion: 6.1
25+
26+
Description: (RW) A sysfs node that configure the error threshold for the hardware
27+
isolation strategy. This size is a configured integer value, which is the
28+
number of threshold for hardware errors occurred in one hour. The default is 0.
29+
0 means never isolate the device. The maximum value is 65535. You can write
30+
a number of threshold based on your hardware.
31+
32+
What: /sys/class/uacce/<dev_name>/isolate
33+
Date: Nov 2022
34+
KernelVersion: 6.1
35+
36+
Description: (R) A sysfs node that read the device isolated state. The value 1
37+
means the device is unavailable. The 0 means the device is
38+
available.
39+
2240
What: /sys/class/uacce/<dev_name>/algorithms
2341
Date: Feb 2020
2442
KernelVersion: 5.7
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
What: /sys/devices/platform/amba_pl/<dev>/errcnt
2+
Date: Nov 2022
3+
4+
Description: This control file provides the fault detection count.
5+
This file cannot be written.
6+
Example:
7+
# cat /sys/devices/platform/amba_pl/44a10000.tmr_manager/errcnt
8+
1
9+
10+
What: /sys/devices/platform/amba_pl/<dev>/dis_block_break
11+
Date: Nov 2022
12+
13+
Description: Write any value to it, This control file enables the break signal.
14+
This file is write only.
15+
Example:
16+
# echo <any value> > /sys/devices/platform/amba_pl/44a10000.tmr_manager/dis_block_break
Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
# SPDX-License-Identifier: GPL-2.0-only or BSD-2-Clause
2+
# Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
3+
%YAML 1.2
4+
---
5+
$id: http://devicetree.org/schemas/arm/qcom,coresight-tpda.yaml#
6+
$schema: http://devicetree.org/meta-schemas/core.yaml#
7+
8+
title: Trace, Profiling and Diagnostics Aggregator - TPDA
9+
10+
description: |
11+
TPDAs are responsible for packetization and timestamping of data sets
12+
utilizing the MIPI STPv2 packet protocol. Pulling data sets from one or
13+
more attached TPDM and pushing the resultant (packetized) data out a
14+
master ATB interface. Performing an arbitrated ATB interleaving (funneling)
15+
task for free-flowing data from TPDM (i.e. CMB and DSB data set flows).
16+
17+
There is no strict binding between TPDM and TPDA. TPDA can have multiple
18+
TPDMs connect to it. But There must be only one TPDA in the path from the
19+
TPDM source to TMC sink. TPDM can directly connect to TPDA's inport or
20+
connect to funnel which will connect to TPDA's inport.
21+
22+
We can use the commands are similar to the below to validate TPDMs.
23+
Enable coresight sink first.
24+
25+
echo 1 > /sys/bus/coresight/devices/tmc_etf0/enable_sink
26+
echo 1 > /sys/bus/coresight/devices/tpdm0/enable_source
27+
echo 1 > /sys/bus/coresight/devices/tpdm0/integration_test
28+
echo 2 > /sys/bus/coresight/devices/tpdm0/integration_test
29+
30+
The test data will be collected in the coresight sink which is enabled.
31+
If rwp register of the sink is keeping updating when do integration_test
32+
(by cat tmc_etf0/mgmt/rwp), it means there is data generated from TPDM
33+
to sink.
34+
35+
maintainers:
36+
- Mao Jinlong <[email protected]>
37+
- Tao Zhang <[email protected]>
38+
39+
# Need a custom select here or 'arm,primecell' will match on lots of nodes
40+
select:
41+
properties:
42+
compatible:
43+
contains:
44+
enum:
45+
- qcom,coresight-tpda
46+
required:
47+
- compatible
48+
49+
properties:
50+
$nodename:
51+
pattern: "^tpda(@[0-9a-f]+)$"
52+
compatible:
53+
items:
54+
- const: qcom,coresight-tpda
55+
- const: arm,primecell
56+
57+
reg:
58+
minItems: 1
59+
maxItems: 2
60+
61+
clocks:
62+
maxItems: 1
63+
64+
clock-names:
65+
items:
66+
- const: apb_pclk
67+
68+
in-ports:
69+
type: object
70+
description: |
71+
Input connections from TPDM to TPDA
72+
$ref: /schemas/graph.yaml#/properties/ports
73+
74+
out-ports:
75+
type: object
76+
description: |
77+
Output connections from the TPDA to legacy CoreSight trace bus.
78+
$ref: /schemas/graph.yaml#/properties/ports
79+
80+
properties:
81+
port:
82+
description:
83+
Output connection from the TPDA to legacy CoreSight Trace bus.
84+
$ref: /schemas/graph.yaml#/properties/port
85+
86+
required:
87+
- compatible
88+
- reg
89+
- clocks
90+
- clock-names
91+
- in-ports
92+
- out-ports
93+
94+
additionalProperties: false
95+
96+
examples:
97+
# minimum tpda definition.
98+
- |
99+
tpda@6004000 {
100+
compatible = "qcom,coresight-tpda", "arm,primecell";
101+
reg = <0x6004000 0x1000>;
102+
103+
clocks = <&aoss_qmp>;
104+
clock-names = "apb_pclk";
105+
106+
in-ports {
107+
#address-cells = <1>;
108+
#size-cells = <0>;
109+
110+
port@0 {
111+
reg = <0>;
112+
tpda_qdss_0_in_tpdm_dcc: endpoint {
113+
remote-endpoint =
114+
<&tpdm_dcc_out_tpda_qdss_0>;
115+
};
116+
};
117+
};
118+
119+
out-ports {
120+
port {
121+
tpda_qdss_out_funnel_in0: endpoint {
122+
remote-endpoint =
123+
<&funnel_in0_in_tpda_qdss>;
124+
};
125+
};
126+
};
127+
};
128+
129+
...
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
# SPDX-License-Identifier: GPL-2.0-only or BSD-2-Clause
2+
# Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
3+
%YAML 1.2
4+
---
5+
$id: http://devicetree.org/schemas/arm/qcom,coresight-tpdm.yaml#
6+
$schema: http://devicetree.org/meta-schemas/core.yaml#
7+
8+
title: Trace, Profiling and Diagnostics Monitor - TPDM
9+
10+
description: |
11+
The TPDM or Monitor serves as data collection component for various dataset
12+
types specified in the QPMDA spec. It covers Implementation defined ((ImplDef),
13+
Basic Counts (BC), Tenure Counts (TC), Continuous Multi-Bit (CMB), and Discrete
14+
Single Bit (DSB). It performs data collection in the data producing clock
15+
domain and transfers it to the data collection time domain, generally ATB
16+
clock domain.
17+
18+
The primary use case of the TPDM is to collect data from different data
19+
sources and send it to a TPDA for packetization, timestamping, and funneling.
20+
21+
maintainers:
22+
- Mao Jinlong <[email protected]>
23+
- Tao Zhang <[email protected]>
24+
25+
# Need a custom select here or 'arm,primecell' will match on lots of nodes
26+
select:
27+
properties:
28+
compatible:
29+
contains:
30+
enum:
31+
- qcom,coresight-tpdm
32+
required:
33+
- compatible
34+
35+
properties:
36+
$nodename:
37+
pattern: "^tpdm(@[0-9a-f]+)$"
38+
compatible:
39+
items:
40+
- const: qcom,coresight-tpdm
41+
- const: arm,primecell
42+
43+
reg:
44+
minItems: 1
45+
maxItems: 2
46+
47+
clocks:
48+
maxItems: 1
49+
50+
clock-names:
51+
items:
52+
- const: apb_pclk
53+
54+
out-ports:
55+
description: |
56+
Output connections from the TPDM to coresight funnel/TPDA.
57+
$ref: /schemas/graph.yaml#/properties/ports
58+
59+
properties:
60+
port:
61+
description: Output connection from the TPDM to coresight
62+
funnel/TPDA.
63+
$ref: /schemas/graph.yaml#/properties/port
64+
65+
required:
66+
- compatible
67+
- reg
68+
- clocks
69+
- clock-names
70+
71+
additionalProperties: false
72+
73+
examples:
74+
# minimum TPDM definition. TPDM connect to coresight TPDA.
75+
- |
76+
tpdm@684c000 {
77+
compatible = "qcom,coresight-tpdm", "arm,primecell";
78+
reg = <0x0684c000 0x1000>;
79+
80+
clocks = <&aoss_qmp>;
81+
clock-names = "apb_pclk";
82+
83+
out-ports {
84+
port {
85+
tpdm_prng_out_tpda_qdss: endpoint {
86+
remote-endpoint =
87+
<&tpda_qdss_in_tpdm_prng>;
88+
};
89+
};
90+
};
91+
};
92+
93+
...

Documentation/devicetree/bindings/iio/accel/adi,adis16201.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ unevaluatedProperties: false
4141
examples:
4242
- |
4343
#include <dt-bindings/interrupt-controller/irq.h>
44-
spi0 {
44+
spi {
4545
#address-cells = <1>;
4646
#size-cells = <0>;
4747

Documentation/devicetree/bindings/iio/accel/adi,adis16240.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ examples:
3939
- |
4040
#include <dt-bindings/gpio/gpio.h>
4141
#include <dt-bindings/interrupt-controller/irq.h>
42-
spi0 {
42+
spi {
4343
#address-cells = <1>;
4444
#size-cells = <0>;
4545

Documentation/devicetree/bindings/iio/accel/adi,adxl313.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ examples:
5959
- |
6060
#include <dt-bindings/gpio/gpio.h>
6161
#include <dt-bindings/interrupt-controller/irq.h>
62-
i2c0 {
62+
i2c {
6363
#address-cells = <1>;
6464
#size-cells = <0>;
6565

0 commit comments

Comments
 (0)