extcon: add basic Maxim MAX14526 MUIC support
Subsystems (2)
v3 cover extcon: add basic Maxim MAX14526 MUIC support
The MAX14526 is a simple multiplexer of common inputs on a single mini/micro USB for portable devices.
---
Changes on switching from v2 to v3:
- fixed overflow issue with ~USB_DET_DIS
Changes on switching from v1 to v2:
- added port and connector to schema
- removed -muic suffix
- removed unneded comment header
- removed unneded gpios in private data
- improved code formatting
---
Svyatoslav Ryhel (2):
dt-bindings: extcon: Document Maxim MAX14526 MUIC
extcon: Add basic support for Maxim MAX14526 MUIC
.../bindings/extcon/maxim,max14526.yaml | 80 +++++ drivers/extcon/Kconfig | 12 + drivers/extcon/Makefile | 1 + drivers/extcon/extcon-max14526.c | 302 ++++++++++++++++++ 4 files changed, 395 insertions(+) create mode 100644 Documentation/devicetree/bindings/extcon/maxim,max14526.yaml create mode 100644 drivers/extcon/extcon-max14526.c
Signature · 1 line
2.48.1
PATCH v3 1/2 dt-bindings: extcon: Document Maxim MAX14526 MUIC
Add bindings for Maxim MAX14526 MicroUSB Integrated Circuit.
--- .../bindings/extcon/maxim,max14526.yaml | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 Documentation/devicetree/bindings/extcon/maxim,max14526.yaml
Documentation/devicetree/bindings/extcon/maxim,max14526.yaml new file +80 -0
@@ -0,0 +1,80 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/extcon/maxim,max14526.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Maxim MAX14526 MicroUSB Integrated Circuit (MUIC) + +maintainers: + - Svyatoslav Ryhel <[email protected]> + +properties: + compatible: + const: maxim,max14526 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + connector: + $ref: /schemas/connector/usb-connector.yaml# + + port: + $ref: /schemas/graph.yaml#/properties/port + +required: + - compatible + - reg + - interrupts + - connector + - port + +unevaluatedProperties: false + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + #include <dt-bindings/interrupt-controller/irq.h> + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + muic@44 { + compatible = "maxim,max14526"; + reg = <0x44>; + + interrupt-parent = <&gpio>; + interrupts = <72 IRQ_TYPE_EDGE_FALLING>; + + connector { + compatible = "usb-b-connector"; + label = "micro-USB"; + type = "micro"; + }; + + port { + #address-cells = <1>; + #size-cells = <0>; + + muic_to_charger: endpoint@0 { + reg = <0>; + remote-endpoint = <&charger_input>; + }; + + muic_to_usb: endpoint@1 { + reg = <1>; + remote-endpoint = <&usb_input>; + }; + + muic_to_mhl: endpoint@2 { + reg = <2>; + remote-endpoint = <&mhl_input>; + }; + }; + }; + }; +...
Signature · 1 line
2.48.1
PATCH v3 2/2 extcon: Add basic support for Maxim MAX14526 MUIC
In reply to Svyatoslav RyhelThe MAX14526 is designed to simplify interface requirements on portable devices by multiplexing common inputs (USB, UART, Microphone, Stereo Audio and Composite Video) on a single micro/mini USB connector. The USB input supports Hi-Speed USB and the audio/video inputs feature negative rail signal operation allowing simple DC coupled accessories. These device allow a single micro/mini USB port to support all the common interfaces on Cellular phones and portable media players over the same external lines.
--- drivers/extcon/Kconfig | 12 ++ drivers/extcon/Makefile | 1 + drivers/extcon/extcon-max14526.c | 302 +++++++++++++++++++++++++++++++ 3 files changed, 315 insertions(+) create mode 100644 drivers/extcon/extcon-max14526.c
drivers/extcon/Kconfig +12 -0
@@ -134,6 +134,18 @@ config EXTCON_MAX8997 Maxim MAX8997 PMIC. The MAX8997 MUIC is a USB port accessory detector and switch. +config EXTCON_MAX14526 + tristate "Maxim MAX14526 EXTCON Support" + select IRQ_DOMAIN + select REGMAP_I2C + help + If you say yes here you get support for the Maxim MAX14526 + MUIC device. The MAX14526 MUIC is a USB port accessory + detector and switch. The MAX14526 is designed to simplify + interface requirements on portable devices by multiplexing + common inputs (USB, UART, Microphone, Stereo Audio and + Composite Video) on a single micro/mini USB connector. + config EXTCON_PALMAS tristate "Palmas USB EXTCON support" depends on MFD_PALMAS
drivers/extcon/Makefile +1 -0
@@ -18,6 +18,7 @@ obj-$(CONFIG_EXTCON_MAX3355) += extcon-max3355.o obj-$(CONFIG_EXTCON_MAX77693) += extcon-max77693.o obj-$(CONFIG_EXTCON_MAX77843) += extcon-max77843.o obj-$(CONFIG_EXTCON_MAX8997) += extcon-max8997.o +obj-$(CONFIG_EXTCON_MAX14526) += extcon-max14526.o obj-$(CONFIG_EXTCON_PALMAS) += extcon-palmas.o obj-$(CONFIG_EXTCON_PTN5150) += extcon-ptn5150.o obj-$(CONFIG_EXTCON_QCOM_SPMI_MISC) += extcon-qcom-spmi-misc.o
drivers/extcon/extcon-max14526.c new file +302 -0
302 lines not on this page · raw message
Signature · 1 line
2.48.1
Hi,
Applied them.
Thanks,
Quoted 28 lines · Svyatoslav Ryhel
The MAX14526 is a simple multiplexer of common inputs on a single mini/micro USB for portable devices.
---
Changes on switching from v2 to v3:
- fixed overflow issue with ~USB_DET_DISChanges on switching from v1 to v2:
- added port and connector to schema
- removed -muic suffix
- removed unneded comment header
- removed unneded gpios in private data
- improved code formatting
---Svyatoslav Ryhel (2):
dt-bindings: extcon: Document Maxim MAX14526 MUIC
extcon: Add basic support for Maxim MAX14526 MUIC.../bindings/extcon/maxim,max14526.yaml | 80 +++++ drivers/extcon/Kconfig | 12 + drivers/extcon/Makefile | 1 + drivers/extcon/extcon-max14526.c | 302 ++++++++++++++++++ 4 files changed, 395 insertions(+) create mode 100644 Documentation/devicetree/bindings/extcon/maxim,max14526.yaml create mode 100644 drivers/extcon/extcon-max14526.c
Quoted 4 lines
--
2.48.1
--
Best Regards,
Chanwoo Choi
Samsung Electronics