Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 76718688 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "dt-bindings: extcon: storage-cd-gpio: Remove card detect GPIO extcon"

parents 5164b6c2 f51f1138
Loading
Loading
Loading
Loading
+0 −30
Original line number Diff line number Diff line
Storage card detect GPIO based Extcon device

This is a virtual device used to generate GPIO states from the GPIO ID pin
connected to a GPIO pin.

Required properties:
- compatible: Should be "extcon-storage-cd-gpio"
- extcon-id: The unique id of specific external connector.
	     Valid range is 0 (EXTCON_NONE) to 63 (EXTCON_NUM).
	     Refer include/linux/extcon.h for details.
- gpio: Specify GPIO (see gpio binding)
- irq-flags: interrupt flags (edge/level). Refer to "include/dt-bindings/interrupt-controller/irq.h"
- pinctrl-names, pinctrl-0, pinctrl-1,.. pinctrl-n: Refer to "Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt"
  for these optional properties

Example:
	extcon_storage_cd {
		compatible = "extcon-storage-cd-gpio";
		extcon-id = <62>; /* EXTCON_MECHANICAL */
		gpio = <&tlmm 126 GPIO_ACTIVE_LOW>;
		irq-flags = <IRQ_TYPE_EDGE_BOTH>;
	}

	&ufshc_card {
		extcon = <&extcon_storage_cd>;
	};

	&sd_card {
		extcon = <&extcon_storage_cd>;
	};