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: adp5585: document adp5589 I/O expander

The ADP5589 is a 19 I/O port expander with built-in keypad matrix decoder,
programmable logic, reset generator, and PWM generator.

We can't really have adp5589 devices fallback to adp5585 (which have
less pins) because there are some significant differences in the register
map.

Reviewed-by: "Rob Herring (Arm)" <robh@kernel.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20250701-dev-adp5589-fw-v7-5-b1fcfe9e9826@analog.com
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Nuno Sá and committed by
Lee Jones
e65e2b0d e6545bdb

+38 -11
+38 -9
Documentation/devicetree/bindings/mfd/adi,adp5585.yaml
··· 15 15 16 16 properties: 17 17 compatible: 18 - items: 19 - - enum: 20 - - adi,adp5585-00 # Default 21 - - adi,adp5585-01 # 11 GPIOs 22 - - adi,adp5585-02 # No pull-up resistors by default on special pins 23 - - adi,adp5585-03 # Alternate I2C address 24 - - adi,adp5585-04 # Pull-down resistors on all pins by default 25 - - const: adi,adp5585 18 + oneOf: 19 + - items: 20 + - enum: 21 + - adi,adp5585-00 # Default 22 + - adi,adp5585-01 # 11 GPIOs 23 + - adi,adp5585-02 # No pull-up resistors by default on special pins 24 + - adi,adp5585-03 # Alternate I2C address 25 + - adi,adp5585-04 # Pull-down resistors on all pins by default 26 + - const: adi,adp5585 27 + - items: 28 + - enum: 29 + - adi,adp5589-00 # Default 30 + - adi,adp5589-01 # R4 defaulted to RESET1 output 31 + - adi,adp5589-02 # Pull-down resistors by default on special pins 32 + - const: adi,adp5589 26 33 27 34 reg: 28 35 maxItems: 1 ··· 69 62 then: 70 63 properties: 71 64 gpio-reserved-ranges: false 72 - else: 65 + 66 + - if: 67 + properties: 68 + compatible: 69 + contains: 70 + enum: 71 + - adi,adp5585-00 72 + - adi,adp5585-02 73 + - adi,adp5585-03 74 + - adi,adp5585-04 75 + then: 73 76 properties: 74 77 gpio-reserved-ranges: 75 78 maxItems: 1 ··· 87 70 items: 88 71 - const: 5 89 72 - const: 1 73 + 74 + - if: 75 + properties: 76 + compatible: 77 + contains: 78 + enum: 79 + - adi,adp5589-00 80 + - adi,adp5589-01 81 + - adi,adp5589-02 82 + then: 83 + properties: 84 + gpio-reserved-ranges: false 90 85 91 86 additionalProperties: false 92 87
-2
Documentation/devicetree/bindings/trivial-devices.yaml
··· 39 39 - ad,adm9240 40 40 # AD5110 - Nonvolatile Digital Potentiometer 41 41 - adi,ad5110 42 - # Analog Devices ADP5589 Keypad Decoder and I/O Expansion 43 - - adi,adp5589 44 42 # Analog Devices LT7182S Dual Channel 6A, 20V PolyPhase Step-Down Silent Switcher 45 43 - adi,lt7182s 46 44 # AMS iAQ-Core VOC Sensor