Skip to content

Commit fba27fe

Browse files
committed
regulator: Add FP9931/JD9930
Merge series from Andreas Kemnade <andreas@kemnade.info>: Add a driver for the FP9931/JD9930 regulator which provides the comparatively high voltages needed for electronic paper displays. Datasheet for the FP9931 is at https://www.fitipower.com/dl/file/flXa6hIchVeu0W3K Although it is in English, it seems to be only downloadable from the Chinese part of that website. For the JD9930 there can be a datasheet found at https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/196/JD9930_2D00_0.7_2D00_JUN_2D00_2019.pdf To simplify things, include the hwmon part directly which is only one register read and there are not other functions besides regulators in this chip.
2 parents 670500b + 12d821b commit fba27fe

540 files changed

Lines changed: 6933 additions & 2416 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: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ Danilo Krummrich <dakr@kernel.org> <dakr@redhat.com>
206206
David Brownell <david-b@pacbell.net>
207207
David Collins <quic_collinsd@quicinc.com> <collinsd@codeaurora.org>
208208
David Heidelberg <david@ixit.cz> <d.okias@gmail.com>
209+
David Hildenbrand <david@kernel.org> <david@redhat.com>
209210
David Rheinsberg <david@readahead.eu> <dh.herrmann@gmail.com>
210211
David Rheinsberg <david@readahead.eu> <dh.herrmann@googlemail.com>
211212
David Rheinsberg <david@readahead.eu> <david.rheinsberg@gmail.com>
@@ -426,7 +427,7 @@ Kenneth W Chen <kenneth.w.chen@intel.com>
426427
Kenneth Westfield <quic_kwestfie@quicinc.com> <kwestfie@codeaurora.org>
427428
Kiran Gunda <quic_kgunda@quicinc.com> <kgunda@codeaurora.org>
428429
Kirill Tkhai <tkhai@ya.ru> <ktkhai@virtuozzo.com>
429-
Kirill A. Shutemov <kas@kernel.org> <kirill.shutemov@linux.intel.com>
430+
Kiryl Shutsemau <kas@kernel.org> <kirill.shutemov@linux.intel.com>
430431
Kishon Vijay Abraham I <kishon@kernel.org> <kishon@ti.com>
431432
Konrad Dybcio <konradybcio@kernel.org> <konrad.dybcio@linaro.org>
432433
Konrad Dybcio <konradybcio@kernel.org> <konrad.dybcio@somainline.org>
@@ -605,7 +606,8 @@ Oleksij Rempel <o.rempel@pengutronix.de>
605606
Oleksij Rempel <o.rempel@pengutronix.de> <ore@pengutronix.de>
606607
Oliver Hartkopp <socketcan@hartkopp.net> <oliver.hartkopp@volkswagen.de>
607608
Oliver Hartkopp <socketcan@hartkopp.net> <oliver@hartkopp.net>
608-
Oliver Upton <oliver.upton@linux.dev> <oupton@google.com>
609+
Oliver Upton <oupton@kernel.org> <oupton@google.com>
610+
Oliver Upton <oupton@kernel.org> <oliver.upton@linux.dev>
609611
Ondřej Jirman <megi@xff.cz> <megous@megous.com>
610612
Oza Pawandeep <quic_poza@quicinc.com> <poza@codeaurora.org>
611613
Pali Rohár <pali@kernel.org> <pali.rohar@gmail.com>

Documentation/devicetree/bindings/gpio/ti,twl4030-gpio.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
22
%YAML 1.2
33
---
4-
$id: http://devicetree.org/schemas/ti,twl4030-gpio.yaml#
4+
$id: http://devicetree.org/schemas/gpio/ti,twl4030-gpio.yaml#
55
$schema: http://devicetree.org/meta-schemas/core.yaml#
66

77
title: TI TWL4030 GPIO controller
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/regulator/fitipower,fp9931.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: FitiPower FP9931/JD9930 Power Management Integrated Circuit
8+
9+
maintainers:
10+
- Andreas Kemnade <andreas@kemnade.info>
11+
12+
description:
13+
FP9931 is a Power Management IC to provide Power for EPDs with one 3.3V
14+
switch, 2 symmetric LDOs behind 2 DC/DC converters, and one unsymmetric
15+
regulator for a compensation voltage.
16+
JD9930 has in addition some kind of night mode.
17+
18+
properties:
19+
compatible:
20+
oneOf:
21+
- const: fitipower,fp9931
22+
23+
- items:
24+
- const: fitipower,jd9930
25+
- const: fitipower,fp9931
26+
27+
reg:
28+
maxItems: 1
29+
30+
enable-gpios:
31+
maxItems: 1
32+
33+
pg-gpios:
34+
maxItems: 1
35+
36+
en-ts-gpios:
37+
maxItems: 1
38+
39+
xon-gpios:
40+
maxItems: 1
41+
42+
vin-supply:
43+
description:
44+
Supply for the whole chip. Some vendor kernels and devicetrees
45+
declare this as a non-existing GPIO named "pwrall".
46+
47+
fitipower,tdly-ms:
48+
description:
49+
Power up soft start delay settings tDLY1-4 bitfields in the
50+
POWERON_DELAY register
51+
items:
52+
- enum: [0, 1, 2, 4]
53+
- enum: [0, 1, 2, 4]
54+
- enum: [0, 1, 2, 4]
55+
- enum: [0, 1, 2, 4]
56+
57+
regulators:
58+
type: object
59+
additionalProperties: false
60+
patternProperties:
61+
"^(vcom|vposneg|v3p3)$":
62+
unevaluatedProperties: false
63+
type: object
64+
$ref: /schemas/regulator/regulator.yaml
65+
66+
required:
67+
- compatible
68+
- reg
69+
- pg-gpios
70+
- enable-gpios
71+
72+
additionalProperties: false
73+
74+
examples:
75+
- |
76+
#include <dt-bindings/gpio/gpio.h>
77+
i2c {
78+
#address-cells = <1>;
79+
#size-cells = <0>;
80+
81+
pmic@18 {
82+
compatible = "fitipower,fp9931";
83+
reg = <0x18>;
84+
pinctrl-names = "default";
85+
pinctrl-0 = <&pinctrl_fp9931_gpio>;
86+
vin-supply = <&epd_pmic_supply>;
87+
pg-gpios = <&gpio2 7 GPIO_ACTIVE_HIGH>;
88+
en-ts-gpios = <&gpio2 9 GPIO_ACTIVE_HIGH>;
89+
enable-gpios = <&gpio2 8 GPIO_ACTIVE_HIGH>;
90+
fitipower,tdly-ms = <2 2 4 4>;
91+
92+
regulators {
93+
vcom {
94+
regulator-name = "vcom";
95+
regulator-min-microvolt = <2352840>;
96+
regulator-max-microvolt = <2352840>;
97+
};
98+
99+
vposneg {
100+
regulator-name = "vposneg";
101+
regulator-min-microvolt = <15060000>;
102+
regulator-max-microvolt = <15060000>;
103+
};
104+
105+
v3p3 {
106+
regulator-name = "v3p3";
107+
};
108+
};
109+
};
110+
};

Documentation/devicetree/bindings/vendor-prefixes.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,8 @@ patternProperties:
570570
description: Foxconn Industrial Internet
571571
"^firefly,.*":
572572
description: Firefly
573+
"^fitipower,.*":
574+
description: Fitipower Integrated Technology Inc.
573575
"^flipkart,.*":
574576
description: Flipkart Inc.
575577
"^focaltech,.*":

Documentation/firmware-guide/acpi/i2c-muxes.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ which corresponds to the following ASL (in the scope of \_SB)::
3737
Name (_HID, ...)
3838
Name (_CRS, ResourceTemplate () {
3939
I2cSerialBus (0x50, ControllerInitiated, I2C_SPEED,
40-
AddressingMode7Bit, "\\_SB.SMB1.CH00", 0x00,
41-
ResourceConsumer,,)
40+
AddressingMode7Bit, "\\_SB.SMB1.MUX0.CH00",
41+
0x00, ResourceConsumer,,)
4242
}
4343
}
4444
}
@@ -52,8 +52,8 @@ which corresponds to the following ASL (in the scope of \_SB)::
5252
Name (_HID, ...)
5353
Name (_CRS, ResourceTemplate () {
5454
I2cSerialBus (0x50, ControllerInitiated, I2C_SPEED,
55-
AddressingMode7Bit, "\\_SB.SMB1.CH01", 0x00,
56-
ResourceConsumer,,)
55+
AddressingMode7Bit, "\\_SB.SMB1.MUX0.CH01",
56+
0x00, ResourceConsumer,,)
5757
}
5858
}
5959
}

Documentation/sound/codecs/cs35l56.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@ In this example the SSID is 10280c63.
105105

106106
The format of the firmware file names is:
107107

108-
SoundWire (except CS35L56 Rev B0):
108+
SoundWire:
109109
cs35lxx-b0-dsp1-misc-SSID[-spkidX]-l?u?
110110

111-
SoundWire CS35L56 Rev B0:
111+
SoundWire CS35L56 Rev B0 firmware released before kernel version 6.16:
112112
cs35lxx-b0-dsp1-misc-SSID[-spkidX]-ampN
113113

114114
Non-SoundWire (HDA and I2S):
@@ -127,9 +127,8 @@ Where:
127127
* spkidX is an optional part, used for laptops that have firmware
128128
configurations for different makes and models of internal speakers.
129129

130-
The CS35L56 Rev B0 continues to use the old filename scheme because a
131-
large number of firmware files have already been published with these
132-
names.
130+
Early firmware for CS35L56 Rev B0 used the ALSA prefix (ampN) as the
131+
filename qualifier. Support for the l?u? qualifier was added in kernel 6.16.
133132

134133
Sound Open Firmware and ALSA topology files
135134
-------------------------------------------

Documentation/userspace-api/netlink/intro-specs.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ Simple CLI
1313
Kernel comes with a simple CLI tool which should be useful when
1414
developing Netlink related code. The tool is implemented in Python
1515
and can use a YAML specification to issue Netlink requests
16-
to the kernel. Only Generic Netlink is supported.
16+
to the kernel.
1717

1818
The tool is located at ``tools/net/ynl/pyynl/cli.py``. It accepts
19-
a handul of arguments, the most important ones are:
19+
a handful of arguments, the most important ones are:
2020

2121
- ``--spec`` - point to the spec file
2222
- ``--do $name`` / ``--dump $name`` - issue request ``$name``

0 commit comments

Comments
 (0)