hwmon: pmbus: Add support for Richtek RTQ2886B
Subsystems (3)
v2 cover hwmon: pmbus: Add support for Richtek RTQ2886B
From: ChiYuan Huang <[email protected]>
The RTQ2886B is a PMBus-controlled single-output synchronous buck regulator.
The RTQ2880B and RTQ2882B are register-compatible derivatives of the RTQ2886B and are supported through the same driver.
This series adds the Devicetree binding, PMBus driver, regulator integration, and MAINTAINERS entry for these devices.
v2
- Document the rtq2886 variant
- Move the default config into probe
- Remove weak MFR_ID identification
- Directly pass the rtq2886_info into pmbus_do_probe
- Add named initializaion for i2c_device_id
ChiYuan Huang (2):
dt-bindings: hwmon: pmbus/rtq2886b: Add Richtek RTQ2886B support
hwmon: (pmbus/rtq2886b) Add driver for Richtek RTQ2886B
.../hwmon/pmbus/richtek,rtq2886b.yaml | 60 +++++++++++ Documentation/hwmon/index.rst | 1 + Documentation/hwmon/rtq2886b.rst | 58 ++++++++++ MAINTAINERS | 8 ++ drivers/hwmon/pmbus/Kconfig | 19 ++++ drivers/hwmon/pmbus/Makefile | 1 + drivers/hwmon/pmbus/rtq2886b.c | 100 ++++++++++++++++++ 7 files changed, 247 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/pmbus/richtek,rtq2886b.yaml create mode 100644 Documentation/hwmon/rtq2886b.rst create mode 100644 drivers/hwmon/pmbus/rtq2886b.c
Signature · 1 line
2.43.0
PATCH v2 1/2 dt-bindings: hwmon: pmbus/rtq2886b: Add Richtek RTQ2886B support
From: ChiYuan Huang <[email protected]>
Add a Devicetree binding schema for the Richtek RTQ2886B PMBus buck regulator.
The RTQ2880B and RTQ2882B are register-compatible derivatives of the RTQ2886B and use "richtek,rtq2886b" as a fallback compatible string.
--- .../hwmon/pmbus/richtek,rtq2886b.yaml | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/pmbus/richtek,rtq2886b.yaml
Documentation/devicetree/bindings/hwmon/pmbus/richtek,rtq2886b.yaml new file +60 -0
@@ -0,0 +1,60 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) + +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/pmbus/richtek,rtq2886b.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Richtek RTQ2886B PMBus Buck Regulator + +maintainers: + - ChiYuan Huang <[email protected]> + +description: | + The RTQ2886B is a single-output synchronous buck regulator with a + PMBus interface. + + The RTQ2880B and RTQ2882B are register-compatible derivatives of the + RTQ2886B and are supported through the same driver. The primary + difference among these devices is their maximum load current + capability and they shall use "richtek,rtq2886b" as a fallback + compatible string. + +allOf: + - $ref: /schemas/regulator/regulator.yaml# + +properties: + compatible: + oneOf: + - const: richtek,rtq2886b + + - items: + - enum: + - richtek,rtq2880b + - richtek,rtq2882b + - const: richtek,rtq2886b + + reg: + maxItems: 1 + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + regulator@5e { + compatible = "richtek,rtq2882b", "richtek,rtq2886b"; + reg = <0x5e>; + regulator-name = "vcore"; + regulator-min-microvolt = <300000>; + regulator-max-microvolt = <5500000>; + regulator-boot-on; + }; + }; +...
Signature · 1 line
2.43.0
PATCH v2 2/2 hwmon: (pmbus/rtq2886b) Add driver for Richtek RTQ2886B
In reply to [email protected]From: ChiYuan Huang <[email protected]>
Add a PMBus driver for the Richtek RTQ2886B single-output synchronous buck regulator.
The RTQ2880B and RTQ2882B are register-compatible derivatives of the RTQ2886B and are supported by the same driver.
---
v2
- Document the rtq2886 variant
- Move the default config into probe
- Remove weak MFR_ID identification
- Directly pass the rtq2886_info into pmbus_do_probe
- Add named initializaion for i2c_device_id
--- Documentation/hwmon/index.rst | 1 + Documentation/hwmon/rtq2886b.rst | 58 ++++++++++++++++++ MAINTAINERS | 8 +++ drivers/hwmon/pmbus/Kconfig | 19 ++++++ drivers/hwmon/pmbus/Makefile | 1 + drivers/hwmon/pmbus/rtq2886b.c | 100 +++++++++++++++++++++++++++++++ 6 files changed, 187 insertions(+) create mode 100644 Documentation/hwmon/rtq2886b.rst create mode 100644 drivers/hwmon/pmbus/rtq2886b.c
Documentation/hwmon/index.rst +1 -0
@@ -240,6 +240,7 @@ Hardware Monitoring Kernel Drivers q54sj108a2 qnap-mcu-hwmon raspberrypi-hwmon + rtq2886b sbrmi sbtsi_temp sch5627
Documentation/hwmon/rtq2886b.rst new file +58 -0
58 lines not on this page · raw message
MAINTAINERS +8 -0
@@ -24074,6 +24074,14 @@ F: include/linux/rhashtable.h F: lib/rhashtable.c F: lib/test_rhashtable.c +RICHTEK RTQ2886B HARDWARE MONITOR DRIVER +M: ChiYuan Huang <[email protected]> +L: [email protected] +S: Maintained +F: Documentation/devicetree/bindings/hwmon/pmbus/richtek,rtq2886b.yaml +F: Documentation/hwmon/rtq2886b.rst +F: drivers/hwmon/pmbus/rtq2886b.c + RICOH R5C592 MEMORYSTICK DRIVER M: Maxim Levitsky <[email protected]> S: Maintained
drivers/hwmon/pmbus/Kconfig +19 -0
@@ -728,6 +728,25 @@ config SENSORS_Q54SJ108A2 This driver can also be built as a module. If so, the module will be called q54sj108a2. +config SENSORS_RTQ2886B + tristate "Richtek RTQ2886B" + help + If you say yes here, you get hardware monitoring support for the + Richtek RTQ2886B and compatible PMBus regulators. + + This driver can also be built as a module. If so, the module will + be called rtq2886b. + +config SENSORS_RTQ2886B_REGULATOR + bool "Regulator support for Richtek RTQ2886B and compatible devices" + depends on SENSORS_RTQ2886B && REGULATOR + help + If you say yes here, the driver registers a regulator device for + the Richtek RTQ2886B through the PMBus regulator framework. + + This allows the regulator output to be controlled through the + regulator subsystem. + config SENSORS_STEF48H28 tristate "ST STEF48H28" help
drivers/hwmon/pmbus/Makefile +1 -0
@@ -67,6 +67,7 @@ obj-$(CONFIG_SENSORS_PLI1209BC) += pli1209bc.o obj-$(CONFIG_SENSORS_PM6764TR) += pm6764tr.o obj-$(CONFIG_SENSORS_PXE1610) += pxe1610.o obj-$(CONFIG_SENSORS_Q54SJ108A2) += q54sj108a2.o +obj-$(CONFIG_SENSORS_RTQ2886B) += rtq2886b.o obj-$(CONFIG_SENSORS_STEF48H28) += stef48h28.o obj-$(CONFIG_SENSORS_SQ24860) += sq24860.o obj-$(CONFIG_SENSORS_STPDDC60) += stpddc60.o
drivers/hwmon/pmbus/rtq2886b.c new file +100 -0
100 lines not on this page · raw message
Signature · 1 line
2.43.0
[email protected]
AI reviewSashiko has reviewed this 2-patch series and found no issues.
Sashiko has reviewed this 2-patch series and found no issues.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]