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: twl: Convert trivial subdevices to json-schema

Convert subdevices with just an interrupt and compatbile to
json-schema and wire up already converted subdevices.
RTC is available in all variants, so allow it unconditionally.
GPADC binding for TWL603X uses two different compatibles, so
specify just the compatible and do not include it.

Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20240401081831.456828-1-andreas@kemnade.info
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Andreas Kemnade and committed by
Lee Jones
f769df1e db851687

+71 -43
-21
Documentation/devicetree/bindings/input/twl4030-pwrbutton.txt
··· 1 - Texas Instruments TWL family (twl4030) pwrbutton module 2 - 3 - This module is part of the TWL4030. For more details about the whole 4 - chip see Documentation/devicetree/bindings/mfd/ti,twl.yaml. 5 - 6 - This module provides a simple power button event via an Interrupt. 7 - 8 - Required properties: 9 - - compatible: should be one of the following 10 - - "ti,twl4030-pwrbutton": For controllers compatible with twl4030 11 - - interrupts: should be one of the following 12 - - <8>: For controllers compatible with twl4030 13 - 14 - Example: 15 - 16 - &twl { 17 - twl_pwrbutton: pwrbutton { 18 - compatible = "ti,twl4030-pwrbutton"; 19 - interrupts = <8>; 20 - }; 21 - };
+71 -1
Documentation/devicetree/bindings/mfd/ti,twl.yaml
··· 15 15 USB transceiver or Audio amplifier. 16 16 These chips are connected to an i2c bus. 17 17 18 + allOf: 19 + - if: 20 + properties: 21 + compatible: 22 + contains: 23 + const: ti,twl4030 24 + then: 25 + properties: 26 + madc: 27 + type: object 28 + $ref: /schemas/iio/adc/ti,twl4030-madc.yaml 29 + unevaluatedProperties: false 30 + 31 + bci: 32 + type: object 33 + $ref: /schemas/power/supply/twl4030-charger.yaml 34 + unevaluatedProperties: false 35 + 36 + pwrbutton: 37 + type: object 38 + additionalProperties: false 39 + properties: 40 + compatible: 41 + const: ti,twl4030-pwrbutton 42 + interrupts: 43 + items: 44 + - items: 45 + const: 8 46 + 47 + watchdog: 48 + type: object 49 + additionalProperties: false 50 + properties: 51 + compatible: 52 + const: ti,twl4030-wdt 53 + 54 + - if: 55 + properties: 56 + compatible: 57 + contains: 58 + const: ti,twl6030 59 + then: 60 + properties: 61 + gpadc: 62 + type: object 63 + properties: 64 + compatible: 65 + const: ti,twl6030-gpadc 66 + - if: 67 + properties: 68 + compatible: 69 + contains: 70 + const: ti,twl6032 71 + then: 72 + properties: 73 + gpadc: 74 + type: object 75 + properties: 76 + compatible: 77 + const: ti,twl6032-gpadc 78 + 18 79 properties: 19 80 compatible: 20 81 description: ··· 103 42 "#clock-cells": 104 43 const: 1 105 44 106 - additionalProperties: false 45 + rtc: 46 + type: object 47 + additionalProperties: false 48 + properties: 49 + compatible: 50 + const: ti,twl4030-rtc 51 + interrupts: 52 + maxItems: 1 53 + 54 + unevaluatedProperties: false 107 55 108 56 required: 109 57 - compatible
-11
Documentation/devicetree/bindings/rtc/twl-rtc.txt
··· 1 - * Texas Instruments TWL4030/6030 RTC 2 - 3 - Required properties: 4 - - compatible : Should be "ti,twl4030-rtc" 5 - - interrupts : Should be the interrupt number. 6 - 7 - Example: 8 - rtc { 9 - compatible = "ti,twl4030-rtc"; 10 - interrupts = <11>; 11 - };
-10
Documentation/devicetree/bindings/watchdog/twl4030-wdt.txt
··· 1 - Device tree bindings for twl4030-wdt driver (TWL4030 watchdog) 2 - 3 - Required properties: 4 - compatible = "ti,twl4030-wdt"; 5 - 6 - Example: 7 - 8 - watchdog { 9 - compatible = "ti,twl4030-wdt"; 10 - };