Skip to content

Commit 53e59b5

Browse files
committed
Add support for Rockchip RK860X regulators
Merge series from Cristian Ciocaltea <[email protected]>: This patch series introduces support for the Rockchip RK860X regulators, while also providing a few fixes and improvements to the existing fan53555 driver. RK8600/RK8601 are quite similar to the FAN53555 regulators. RK8602/RK8603 are a bit different, having a wider output voltage selection range, from 0.5 V to 1.5 V in 6.25 mV steps. They are used in the Rock 5B board to power the ARM Cortex-A76 cores and the NPU.
2 parents 60bbee7 + a27e71a commit 53e59b5

File tree

982 files changed

+10643
-6740
lines changed

Some content is hidden

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

982 files changed

+10643
-6740
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ modules.order
7878
# RPM spec file (make rpm-pkg)
7979
#
8080
/*.spec
81+
/rpmbuild/
8182

8283
#
8384
# Debian directory (make deb-pkg)

.mailmap

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Alexander Lobakin <[email protected]> <[email protected]>
2828
Alexander Mikhalitsyn <[email protected]> <[email protected]>
2929
Alexander Mikhalitsyn <[email protected]> <[email protected]>
3030
31+
3132
Alexei Starovoitov <[email protected]> <[email protected]>
3233
Alexei Starovoitov <[email protected]> <[email protected]>
3334
Alexei Starovoitov <[email protected]> <[email protected]>
@@ -121,7 +122,7 @@ Dengcheng Zhu <[email protected]> <[email protected]>
121122
122123
123124
124-
Dikshita Agarwal <[email protected].com> <[email protected]>
125+
Dikshita Agarwal <quic_dikshita@quicinc.com> <[email protected]>
125126
Dmitry Baryshkov <[email protected]>
126127
Dmitry Baryshkov <[email protected]> <[[email protected]]>
127128
@@ -132,6 +133,8 @@ Dmitry Safonov <[email protected]> <[email protected]>
132133
Domen Puncer <[email protected]>
133134
Douglas Gilbert <[email protected]>
134135
Ed L. Cashin <[email protected]>
136+
Enric Balletbo i Serra <[email protected]> <[email protected]>
137+
Enric Balletbo i Serra <[email protected]> <[email protected]>
135138
136139
137140
Evgeniy Polyakov <[email protected]>
@@ -194,6 +197,7 @@ Jan Glauber <[email protected]> <[email protected]>
194197
195198
196199
200+
197201
198202
199203
@@ -213,6 +217,9 @@ Jens Axboe <[email protected]>
213217
Jens Osterkamp <[email protected]>
214218
215219
220+
221+
222+
216223
217224
218225
@@ -374,6 +381,7 @@ Quentin Monnet <[email protected]> <[email protected]>
374381
375382
376383
384+
377385
Rajesh Shah <[email protected]>
378386
Ralf Baechle <[email protected]>
379387
Ralf Wildenhues <[email protected]>
@@ -382,6 +390,9 @@ Rémi Denis-Courmont <[email protected]>
382390
383391
Ricardo Ribalda <[email protected]> Ricardo Ribalda Delgado <[email protected]>
384392
393+
394+
395+
385396
386397
387398
@@ -392,6 +403,7 @@ Ross Zwisler <[email protected]> <[email protected]>
392403
Rudolf Marek <[email protected]>
393404
Rui Saraiva <[email protected]>
394405
Sachin P Sant <[email protected]>
406+
Sai Prakash Ranjan <[email protected]> <[email protected]>
395407
396408
Sam Ravnborg <[email protected]>
397409
Sankeerth Billakanti <[email protected]> <[email protected]>
@@ -432,6 +444,10 @@ Thomas Graf <[email protected]>
432444
433445
Thomas Pedersen <[email protected]>
434446
447+
448+
449+
450+
435451
436452
Tony Luck <[email protected]>
437453

Documentation/admin-guide/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ problems and bugs in particular.
3636

3737
reporting-issues
3838
reporting-regressions
39-
security-bugs
4039
bug-hunting
4140
bug-bisect
4241
tainted-kernels

Documentation/admin-guide/reporting-issues.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ might want to be aware of; it for example explains how to add your issue to the
395395
list of tracked regressions, to ensure it won't fall through the cracks.
396396

397397
What qualifies as security issue is left to your judgment. Consider reading
398-
Documentation/admin-guide/security-bugs.rst before proceeding, as it
398+
Documentation/process/security-bugs.rst before proceeding, as it
399399
provides additional details how to best handle security issues.
400400

401401
An issue is a 'really severe problem' when something totally unacceptably bad
@@ -1269,7 +1269,7 @@ them when sending the report by mail. If you filed it in a bug tracker, forward
12691269
the report's text to these addresses; but on top of it put a small note where
12701270
you mention that you filed it with a link to the ticket.
12711271

1272-
See Documentation/admin-guide/security-bugs.rst for more information.
1272+
See Documentation/process/security-bugs.rst for more information.
12731273

12741274

12751275
Duties after the report went out

Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,13 @@ properties:
7676
If "broken-flash-reset" is present then having this property does not
7777
make any difference.
7878

79+
spi-cpol: true
80+
spi-cpha: true
81+
82+
dependencies:
83+
spi-cpol: [ spi-cpha ]
84+
spi-cpha: [ spi-cpol ]
85+
7986
unevaluatedProperties: false
8087

8188
examples:

Documentation/devicetree/bindings/pinctrl/qcom,sm8550-lpass-lpi-pinctrl.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,11 @@ $defs:
9696
2: Lower Slew rate (slower edges)
9797
3: Reserved (No adjustments)
9898
99+
bias-bus-hold: true
99100
bias-pull-down: true
100101
bias-pull-up: true
101102
bias-disable: true
103+
input-enable: true
102104
output-high: true
103105
output-low: true
104106

Documentation/devicetree/bindings/regulator/fcs,fan53555.yaml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,21 @@ allOf:
1414

1515
properties:
1616
compatible:
17-
enum:
18-
- fcs,fan53555
19-
- fcs,fan53526
20-
- silergy,syr827
21-
- silergy,syr828
22-
- tcs,tcs4525
17+
oneOf:
18+
- enum:
19+
- fcs,fan53555
20+
- fcs,fan53526
21+
- rockchip,rk8600
22+
- rockchip,rk8602
23+
- silergy,syr827
24+
- silergy,syr828
25+
- tcs,tcs4525
26+
- items:
27+
- const: rockchip,rk8601
28+
- const: rockchip,rk8600
29+
- items:
30+
- const: rockchip,rk8603
31+
- const: rockchip,rk8602
2332

2433
reg:
2534
maxItems: 1

Documentation/driver-api/vfio.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ group and can access them as follows::
242242
VFIO User API
243243
-------------------------------------------------------------------------------
244244

245-
Please see include/linux/vfio.h for complete API documentation.
245+
Please see include/uapi/linux/vfio.h for complete API documentation.
246246

247247
VFIO bus driver API
248248
-------------------------------------------------------------------------------

Documentation/filesystems/vfs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,7 @@ defined:
12221222
return
12231223
-ECHILD and it will be called again in ref-walk mode.
12241224

1225-
``_weak_revalidate``
1225+
``d_weak_revalidate``
12261226
called when the VFS needs to revalidate a "jumped" dentry. This
12271227
is called when a path-walk ends at dentry that was not acquired
12281228
by doing a lookup in the parent directory. This includes "/",

Documentation/firmware-guide/acpi/enumeration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ possible we decided to do following:
1919
platform devices.
2020

2121
- Devices behind real busses where there is a connector resource
22-
are represented as struct spi_device or struct i2c_device. Note
22+
are represented as struct spi_device or struct i2c_client. Note
2323
that standard UARTs are not busses so there is no struct uart_device,
2424
although some of them may be represented by struct serdev_device.
2525

Documentation/maintainer/rebasing-and-merging.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,7 @@ point rather than some random spot. If your upstream-bound branch has
213213
emptied entirely into the mainline during the merge window, you can pull it
214214
forward with a command like::
215215

216-
git merge v5.2-rc1^0
217-
218-
The "^0" will cause Git to do a fast-forward merge (which should be
219-
possible in this situation), thus avoiding the addition of a spurious merge
220-
commit.
216+
git merge --ff-only v5.2-rc1
221217

222218
The guidelines laid out above are just that: guidelines. There will always
223219
be situations that call out for a different solution, and these guidelines

Documentation/mm/hugetlbfs_reserv.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Hugetlbfs Reservation
55
Overview
66
========
77

8-
Huge pages as described at Documentation/mm/hugetlbpage.rst are typically
9-
preallocated for application use. These huge pages are instantiated in a
10-
task's address space at page fault time if the VMA indicates huge pages are
11-
to be used. If no huge page exists at page fault time, the task is sent
8+
Huge pages as described at Documentation/admin-guide/mm/hugetlbpage.rst are
9+
typically preallocated for application use. These huge pages are instantiated
10+
in a task's address space at page fault time if the VMA indicates huge pages
11+
are to be used. If no huge page exists at page fault time, the task is sent
1212
a SIGBUS and often dies an unhappy death. Shortly after huge page support
1313
was added, it was determined that it would be better to detect a shortage
1414
of huge pages at mmap() time. The idea is that if there were not enough

Documentation/mm/physical_memory.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ one of the types described below.
6666
also populated on boot using one of ``kernelcore``, ``movablecore`` and
6767
``movable_node`` kernel command line parameters. See
6868
Documentation/mm/page_migration.rst and
69-
Documentation/admin-guide/mm/memory_hotplug.rst for additional details.
69+
Documentation/admin-guide/mm/memory-hotplug.rst for additional details.
7070

7171
* ``ZONE_DEVICE`` represents memory residing on devices such as PMEM and GPU.
7272
It has different characteristics than RAM zone types and it exists to provide

Documentation/netlink/genetlink-c.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
1+
# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
22
%YAML 1.2
33
---
44
$id: http://kernel.org/schemas/netlink/genetlink-c.yaml#

Documentation/netlink/genetlink-legacy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
1+
# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
22
%YAML 1.2
33
---
44
$id: http://kernel.org/schemas/netlink/genetlink-legacy.yaml#

Documentation/netlink/genetlink.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
1+
# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
22
%YAML 1.2
33
---
44
$id: http://kernel.org/schemas/netlink/genetlink-legacy.yaml#

Documentation/netlink/specs/ethtool.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
1+
# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
22

33
name: ethtool
44

Documentation/netlink/specs/fou.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
1+
# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
22

33
name: fou
44

Documentation/netlink/specs/netdev.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
1+
# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
22

33
name: netdev
44

@@ -9,6 +9,7 @@ definitions:
99
-
1010
type: flags
1111
name: xdp-act
12+
render-max: true
1213
entries:
1314
-
1415
name: basic

Documentation/networking/xdp-rx-metadata.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,13 @@ metadata is supported, this set will grow:
2323
An XDP program can use these kfuncs to read the metadata into stack
2424
variables for its own consumption. Or, to pass the metadata on to other
2525
consumers, an XDP program can store it into the metadata area carried
26-
ahead of the packet.
26+
ahead of the packet. Not all packets will necessary have the requested
27+
metadata available in which case the driver returns ``-ENODATA``.
2728

2829
Not all kfuncs have to be implemented by the device driver; when not
29-
implemented, the default ones that return ``-EOPNOTSUPP`` will be used.
30+
implemented, the default ones that return ``-EOPNOTSUPP`` will be used
31+
to indicate the device driver have not implemented this kfunc.
32+
3033

3134
Within an XDP frame, the metadata layout (accessed via ``xdp_buff``) is
3235
as follows::

Documentation/process/howto.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ required reading:
138138
philosophy and is very important for people moving to Linux from
139139
development on other Operating Systems.
140140

141-
:ref:`Documentation/admin-guide/security-bugs.rst <securitybugs>`
141+
:ref:`Documentation/process/security-bugs.rst <securitybugs>`
142142
If you feel you have found a security problem in the Linux kernel,
143143
please follow the steps in this document to help notify the kernel
144144
developers, and help solve the issue.

Documentation/process/index.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ Below are the essential guides that every developer should read.
3535
kernel-enforcement-statement
3636
kernel-driver-statement
3737

38+
For security issues, see:
39+
40+
.. toctree::
41+
:maxdepth: 1
42+
43+
security-bugs
44+
embargoed-hardware-issues
45+
3846
Other guides to the community that are of interest to most developers are:
3947

4048
.. toctree::
@@ -47,7 +55,6 @@ Other guides to the community that are of interest to most developers are:
4755
submit-checklist
4856
kernel-docs
4957
deprecated
50-
embargoed-hardware-issues
5158
maintainers
5259
researcher-guidelines
5360

Documentation/process/programming-language.rst

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ under ``-std=gnu11`` [gcc-c-dialect-options]_: the GNU dialect of ISO C11.
1212
This dialect contains many extensions to the language [gnu-extensions]_,
1313
and many of them are used within the kernel as a matter of course.
1414

15-
There is some support for compiling the kernel with ``icc`` [icc]_ for several
16-
of the architectures, although at the time of writing it is not completed,
17-
requiring third-party patches.
18-
1915
Attributes
2016
----------
2117

@@ -35,12 +31,28 @@ in order to feature detect which ones can be used and/or to shorten the code.
3531

3632
Please refer to ``include/linux/compiler_attributes.h`` for more information.
3733

34+
Rust
35+
----
36+
37+
The kernel has experimental support for the Rust programming language
38+
[rust-language]_ under ``CONFIG_RUST``. It is compiled with ``rustc`` [rustc]_
39+
under ``--edition=2021`` [rust-editions]_. Editions are a way to introduce
40+
small changes to the language that are not backwards compatible.
41+
42+
On top of that, some unstable features [rust-unstable-features]_ are used in
43+
the kernel. Unstable features may change in the future, thus it is an important
44+
goal to reach a point where only stable features are used.
45+
46+
Please refer to Documentation/rust/index.rst for more information.
47+
3848
.. [c-language] http://www.open-std.org/jtc1/sc22/wg14/www/standards
3949
.. [gcc] https://gcc.gnu.org
4050
.. [clang] https://clang.llvm.org
41-
.. [icc] https://software.intel.com/en-us/c-compilers
4251
.. [gcc-c-dialect-options] https://gcc.gnu.org/onlinedocs/gcc/C-Dialect-Options.html
4352
.. [gnu-extensions] https://gcc.gnu.org/onlinedocs/gcc/C-Extensions.html
4453
.. [gcc-attribute-syntax] https://gcc.gnu.org/onlinedocs/gcc/Attribute-Syntax.html
4554
.. [n2049] http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2049.pdf
46-
55+
.. [rust-language] https://www.rust-lang.org
56+
.. [rustc] https://doc.rust-lang.org/rustc/
57+
.. [rust-editions] https://doc.rust-lang.org/edition-guide/editions/
58+
.. [rust-unstable-features] https://github.com/Rust-for-Linux/linux/issues/2

Documentation/process/researcher-guidelines.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Before contributing, carefully read the appropriate documentation:
6868
* Documentation/process/development-process.rst
6969
* Documentation/process/submitting-patches.rst
7070
* Documentation/admin-guide/reporting-issues.rst
71-
* Documentation/admin-guide/security-bugs.rst
71+
* Documentation/process/security-bugs.rst
7272

7373
Then send a patch (including a commit log with all the details listed
7474
below) and follow up on any feedback from other developers.

Documentation/process/stable-kernel-rules.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Procedure for submitting patches to the -stable tree
3939

4040
Security patches should not be handled (solely) by the -stable review
4141
process but should follow the procedures in
42-
:ref:`Documentation/admin-guide/security-bugs.rst <securitybugs>`.
42+
:ref:`Documentation/process/security-bugs.rst <securitybugs>`.
4343

4444
For all other submissions, choose one of the following procedures
4545
-----------------------------------------------------------------

0 commit comments

Comments
 (0)