Skip to content

Commit 57fca3a

Browse files
committed
regulator: cros-ec: cleanup and add supplies
Chen-Yu Tsai <wenst@chromium.org> says: This series is part of a broader collection of regulator related cleanups for MediaTek Chromebooks. This one covers the regulators exposed by the ChromeOS Embedded Controller. Patch 1 adds the names of the power supply inputs to the binding. Patch 2 adds the supply names from the DT binding change in patch 1 to the regulator descriptions in the driver. This patch has a checkpatch.pl warnings, but I wonder if it's because the context size for checking complex macros is not large enough. Device tree changes will be sent separately. The goal is to get the regulator tree as complete as possible. This includes adding supply names to other regulator DT bindings, and adding all the supply links to the existing DTs.
2 parents 9150d79 + 411eb30 commit 57fca3a

334 files changed

Lines changed: 3564 additions & 1498 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.

.mailmap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ Henrik Rydberg <rydberg@bitmath.org>
327327
Herbert Xu <herbert@gondor.apana.org.au>
328328
Huacai Chen <chenhuacai@kernel.org> <chenhc@lemote.com>
329329
Huacai Chen <chenhuacai@kernel.org> <chenhuacai@loongson.cn>
330+
Ignat Korchagin <ignat@linux.win> <ignat@cloudflare.com>
330331
Ike Panhc <ikepanhc@gmail.com> <ike.pan@canonical.com>
331332
J. Bruce Fields <bfields@fieldses.org> <bfields@redhat.com>
332333
J. Bruce Fields <bfields@fieldses.org> <bfields@citi.umich.edu>

Documentation/dev-tools/kunit/run_wrapper.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,8 @@ command line arguments:
336336
- ``--list_tests_attr``: If set, lists all tests that will be run and all of their
337337
attributes.
338338

339+
- ``--list_suites``: If set, lists all suites that will be run.
340+
339341
Command-line completion
340342
==============================
341343

Documentation/devicetree/bindings/mtd/st,spear600-smi.yaml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ description:
1919
Flash sub nodes describe the memory range and optional per-flash
2020
properties.
2121

22-
allOf:
23-
- $ref: mtd.yaml#
24-
2522
properties:
2623
compatible:
2724
const: st,spear600-smi
@@ -42,14 +39,29 @@ properties:
4239
$ref: /schemas/types.yaml#/definitions/uint32
4340
description: Functional clock rate of the SMI controller in Hz.
4441

45-
st,smi-fast-mode:
46-
type: boolean
47-
description: Indicates that the attached flash supports fast read mode.
42+
patternProperties:
43+
"^flash@.*$":
44+
$ref: /schemas/mtd/mtd.yaml#
45+
46+
properties:
47+
reg:
48+
maxItems: 1
49+
50+
st,smi-fast-mode:
51+
type: boolean
52+
description: Indicates that the attached flash supports fast read mode.
53+
54+
unevaluatedProperties: false
55+
56+
required:
57+
- reg
4858

4959
required:
5060
- compatible
5161
- reg
5262
- clock-rate
63+
- "#address-cells"
64+
- "#size-cells"
5365

5466
unevaluatedProperties: false
5567

@@ -64,7 +76,7 @@ examples:
6476
interrupts = <12>;
6577
clock-rate = <50000000>; /* 50 MHz */
6678
67-
flash@f8000000 {
79+
flash@fc000000 {
6880
reg = <0xfc000000 0x1000>;
6981
st,smi-fast-mode;
7082
};

Documentation/devicetree/bindings/regulator/google,cros-ec-regulator.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ properties:
2424
maxItems: 1
2525
description: Identifier for the voltage regulator to ChromeOS EC.
2626

27+
vin-supply:
28+
description: Input supply phandle
29+
2730
required:
2831
- compatible
2932
- reg
@@ -48,6 +51,7 @@ examples:
4851
regulator-min-microvolt = <1800000>;
4952
regulator-max-microvolt = <3300000>;
5053
reg = <0>;
54+
vin-supply = <&pp4200_s5>;
5155
};
5256
};
5357
};

Documentation/devicetree/bindings/regulator/regulator.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ properties:
168168
offset from voltage set to regulator.
169169

170170
regulator-uv-protection-microvolt:
171-
description: Set over under voltage protection limit. This is a limit where
171+
description: Set under voltage protection limit. This is a limit where
172172
hardware performs emergency shutdown. Zero can be passed to disable
173173
protection and value '1' indicates that protection should be enabled but
174174
limit setting can be omitted. Limit is given as microvolt offset from
@@ -182,7 +182,7 @@ properties:
182182
is given as microvolt offset from voltage set to regulator.
183183

184184
regulator-uv-warn-microvolt:
185-
description: Set over under voltage warning limit. This is a limit where
185+
description: Set under voltage warning limit. This is a limit where
186186
hardware is assumed still to be functional but approaching limit where
187187
it gets damaged. Recovery actions should be initiated. Zero can be passed
188188
to disable detection and value '1' indicates that detection should

Documentation/driver-api/driver-model/binding.rst

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,51 @@ of the driver is decremented. All symlinks between the two are removed.
9999
When a driver is removed, the list of devices that it supports is
100100
iterated over, and the driver's remove callback is called for each
101101
one. The device is removed from that list and the symlinks removed.
102+
103+
104+
Driver Override
105+
~~~~~~~~~~~~~~~
106+
107+
Userspace may override the standard matching by writing a driver name to
108+
a device's ``driver_override`` sysfs attribute. When set, only a driver
109+
whose name matches the override will be considered during binding. This
110+
bypasses all bus-specific matching (OF, ACPI, ID tables, etc.).
111+
112+
The override may be cleared by writing an empty string, which returns
113+
the device to standard matching rules. Writing to ``driver_override``
114+
does not automatically unbind the device from its current driver or
115+
make any attempt to load the specified driver.
116+
117+
Buses opt into this mechanism by setting the ``driver_override`` flag in
118+
their ``struct bus_type``::
119+
120+
const struct bus_type example_bus_type = {
121+
...
122+
.driver_override = true,
123+
};
124+
125+
When the flag is set, the driver core automatically creates the
126+
``driver_override`` sysfs attribute for every device on that bus.
127+
128+
The bus's ``match()`` callback should check the override before performing
129+
its own matching, using ``device_match_driver_override()``::
130+
131+
static int example_match(struct device *dev, const struct device_driver *drv)
132+
{
133+
int ret;
134+
135+
ret = device_match_driver_override(dev, drv);
136+
if (ret >= 0)
137+
return ret;
138+
139+
/* Fall through to bus-specific matching... */
140+
}
141+
142+
``device_match_driver_override()`` returns > 0 if the override matches
143+
the given driver, 0 if the override is set but does not match, or < 0 if
144+
no override is set at all.
145+
146+
Additional helpers are available:
147+
148+
- ``device_set_driver_override()`` - set or clear the override from kernel code.
149+
- ``device_has_driver_override()`` - check whether an override is set.

Documentation/netlink/specs/net_shaper.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@ operations:
247247
flags: [admin-perm]
248248

249249
do:
250-
pre: net-shaper-nl-pre-doit
251-
post: net-shaper-nl-post-doit
250+
pre: net-shaper-nl-pre-doit-write
251+
post: net-shaper-nl-post-doit-write
252252
request:
253253
attributes:
254254
- ifindex
@@ -278,8 +278,8 @@ operations:
278278
flags: [admin-perm]
279279

280280
do:
281-
pre: net-shaper-nl-pre-doit
282-
post: net-shaper-nl-post-doit
281+
pre: net-shaper-nl-pre-doit-write
282+
post: net-shaper-nl-post-doit-write
283283
request:
284284
attributes: *ns-binding
285285

@@ -309,8 +309,8 @@ operations:
309309
flags: [admin-perm]
310310

311311
do:
312-
pre: net-shaper-nl-pre-doit
313-
post: net-shaper-nl-post-doit
312+
pre: net-shaper-nl-pre-doit-write
313+
post: net-shaper-nl-post-doit-write
314314
request:
315315
attributes:
316316
- ifindex

MAINTAINERS

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4022,7 +4022,7 @@ F: drivers/hwmon/asus_wmi_sensors.c
40224022
ASYMMETRIC KEYS
40234023
M: David Howells <dhowells@redhat.com>
40244024
M: Lukas Wunner <lukas@wunner.de>
4025-
M: Ignat Korchagin <ignat@cloudflare.com>
4025+
M: Ignat Korchagin <ignat@linux.win>
40264026
L: keyrings@vger.kernel.org
40274027
L: linux-crypto@vger.kernel.org
40284028
S: Maintained
@@ -4035,7 +4035,7 @@ F: include/linux/verification.h
40354035

40364036
ASYMMETRIC KEYS - ECDSA
40374037
M: Lukas Wunner <lukas@wunner.de>
4038-
M: Ignat Korchagin <ignat@cloudflare.com>
4038+
M: Ignat Korchagin <ignat@linux.win>
40394039
R: Stefan Berger <stefanb@linux.ibm.com>
40404040
L: linux-crypto@vger.kernel.org
40414041
S: Maintained
@@ -4045,14 +4045,14 @@ F: include/crypto/ecc*
40454045

40464046
ASYMMETRIC KEYS - GOST
40474047
M: Lukas Wunner <lukas@wunner.de>
4048-
M: Ignat Korchagin <ignat@cloudflare.com>
4048+
M: Ignat Korchagin <ignat@linux.win>
40494049
L: linux-crypto@vger.kernel.org
40504050
S: Odd fixes
40514051
F: crypto/ecrdsa*
40524052

40534053
ASYMMETRIC KEYS - RSA
40544054
M: Lukas Wunner <lukas@wunner.de>
4055-
M: Ignat Korchagin <ignat@cloudflare.com>
4055+
M: Ignat Korchagin <ignat@linux.win>
40564056
L: linux-crypto@vger.kernel.org
40574057
S: Maintained
40584058
F: crypto/rsa*
@@ -7998,7 +7998,9 @@ F: Documentation/devicetree/bindings/display/himax,hx8357.yaml
79987998
F: drivers/gpu/drm/tiny/hx8357d.c
79997999

80008000
DRM DRIVER FOR HYPERV SYNTHETIC VIDEO DEVICE
8001-
M: Deepak Rawat <drawat.floss@gmail.com>
8001+
M: Dexuan Cui <decui@microsoft.com>
8002+
M: Long Li <longli@microsoft.com>
8003+
M: Saurabh Sengar <ssengar@linux.microsoft.com>
80028004
L: linux-hyperv@vger.kernel.org
80038005
L: dri-devel@lists.freedesktop.org
80048006
S: Maintained
@@ -24900,9 +24902,9 @@ F: drivers/clk/spear/
2490024902
F: drivers/pinctrl/spear/
2490124903

2490224904
SPI NOR SUBSYSTEM
24903-
M: Tudor Ambarus <tudor.ambarus@linaro.org>
2490424905
M: Pratyush Yadav <pratyush@kernel.org>
2490524906
M: Michael Walle <mwalle@kernel.org>
24907+
R: Takahiro Kuwano <takahiro.kuwano@infineon.com>
2490624908
L: linux-mtd@lists.infradead.org
2490724909
S: Maintained
2490824910
W: http://www.linux-mtd.infradead.org/

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
VERSION = 7
33
PATCHLEVEL = 0
44
SUBLEVEL = 0
5-
EXTRAVERSION = -rc4
5+
EXTRAVERSION = -rc5
66
NAME = Baby Opossum Posse
77

88
# *DOCUMENTATION*

arch/arm/configs/multi_v7_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,6 @@ CONFIG_TI_CPSW_SWITCHDEV=y
279279
CONFIG_TI_CPTS=y
280280
CONFIG_TI_KEYSTONE_NETCP=y
281281
CONFIG_TI_KEYSTONE_NETCP_ETHSS=y
282-
CONFIG_TI_PRUSS=m
283282
CONFIG_TI_PRUETH=m
284283
CONFIG_XILINX_EMACLITE=y
285284
CONFIG_SFP=m

0 commit comments

Comments
 (0)