Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: mfd: samsung,s2mps11: Split s2mpg10-pmic into separate file

The samsung,s2mpg10-pmic binding is going to acquire various additional
properties. To avoid making the common samsung,s2mps11 binding file too
complicated due to additional nesting, split s2mpg10 out into its own
file.

As a side-effect, the oneOf for the interrupts is not required anymore,
as the required: node is at the top-level now.

Signed-off-by: André Draszik <andre.draszik@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20260122-s2mpg1x-regulators-v7-4-3b1f9831fffd@linaro.org
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

André Draszik and committed by
Lee Jones
189ccdc7 b31583a1

+70 -28
+69
Documentation/devicetree/bindings/mfd/samsung,s2mpg10-pmic.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/mfd/samsung,s2mpg10-pmic.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Samsung S2MPG10 Power Management IC 8 + 9 + maintainers: 10 + - André Draszik <andre.draszik@linaro.org> 11 + 12 + description: | 13 + This is part of the device tree bindings for the S2MPG family of Power 14 + Management IC (PMIC). 15 + 16 + The Samsung S2MPG10 is a Power Management IC for mobile applications with buck 17 + converters, various LDOs, power meters, RTC, clock outputs, and additional 18 + GPIO interfaces. 19 + 20 + properties: 21 + compatible: 22 + const: samsung,s2mpg10-pmic 23 + 24 + clocks: 25 + $ref: /schemas/clock/samsung,s2mps11.yaml 26 + description: 27 + Child node describing clock provider. 28 + 29 + interrupts: 30 + maxItems: 1 31 + 32 + regulators: 33 + type: object 34 + description: 35 + List of child nodes that specify the regulators. 36 + 37 + system-power-controller: true 38 + 39 + wakeup-source: true 40 + 41 + required: 42 + - compatible 43 + - interrupts 44 + - regulators 45 + 46 + additionalProperties: false 47 + 48 + examples: 49 + - | 50 + #include <dt-bindings/gpio/gpio.h> 51 + #include <dt-bindings/interrupt-controller/irq.h> 52 + 53 + pmic { 54 + compatible = "samsung,s2mpg10-pmic"; 55 + interrupts-extended = <&gpa0 6 IRQ_TYPE_LEVEL_LOW>; 56 + pinctrl-names = "default"; 57 + pinctrl-0 = <&pmic_int>; 58 + system-power-controller; 59 + wakeup-source; 60 + 61 + clocks { 62 + compatible = "samsung,s2mpg10-clk"; 63 + #clock-cells = <1>; 64 + clock-output-names = "rtc32k_ap", "peri32k1", "peri32k2"; 65 + }; 66 + 67 + regulators { 68 + }; 69 + };
+1 -28
Documentation/devicetree/bindings/mfd/samsung,s2mps11.yaml
··· 20 20 properties: 21 21 compatible: 22 22 enum: 23 - - samsung,s2mpg10-pmic 24 23 - samsung,s2mps11-pmic 25 24 - samsung,s2mps13-pmic 26 25 - samsung,s2mps14-pmic ··· 58 59 reset (setting buck voltages to default values). 59 60 type: boolean 60 61 61 - system-power-controller: true 62 - 63 62 wakeup-source: true 64 63 65 64 required: 66 65 - compatible 66 + - reg 67 67 - regulators 68 68 69 69 additionalProperties: false 70 70 71 71 allOf: 72 - - if: 73 - properties: 74 - compatible: 75 - contains: 76 - const: samsung,s2mpg10-pmic 77 - then: 78 - properties: 79 - reg: false 80 - samsung,s2mps11-acokb-ground: false 81 - samsung,s2mps11-wrstbi-ground: false 82 - 83 - # oneOf is required, because dtschema's fixups.py doesn't handle this 84 - # nesting here. Its special treatment to allow either interrupt property 85 - # when only one is specified in the binding works at the top level only. 86 - oneOf: 87 - - required: [interrupts] 88 - - required: [interrupts-extended] 89 - 90 - else: 91 - properties: 92 - system-power-controller: false 93 - 94 - required: 95 - - reg 96 - 97 72 - if: 98 73 properties: 99 74 compatible: