^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) USB COMPARATOR OF TWL CHIPS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) TWL6030 USB COMPARATOR
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) - compatible : Should be "ti,twl6030-usb"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) - interrupts : Two interrupt numbers to the cpu should be specified. First
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) interrupt number is the otg interrupt number that raises ID interrupts when
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) the controller has to act as host and the second interrupt number is the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) usb interrupt number that raises VBUS interrupts when the controller has to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) act as device
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) - usb-supply : phandle to the regulator device tree node. It should be vusb
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) if it is twl6030 or ldousb if it is twl6032 subclass.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) twl6030-usb {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) compatible = "ti,twl6030-usb";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) interrupts = < 4 10 >;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) Board specific device node entry
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) &twl6030-usb {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) usb-supply = <&vusb>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) TWL4030 USB PHY AND COMPARATOR
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) - compatible : Should be "ti,twl4030-usb"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) - interrupts : The interrupt numbers to the cpu should be specified. First
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) interrupt number is the otg interrupt number that raises ID interrupts
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) and VBUS interrupts. The second interrupt number is optional.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) - <supply-name>-supply : phandle to the regulator device tree node.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) <supply-name> should be vusb1v5, vusb1v8 and vusb3v1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) - usb_mode : The mode used by the phy to connect to the controller. "1"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) specifies "ULPI" mode and "2" specifies "CEA2011_3PIN" mode.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) If a sibling node is compatible "ti,twl4030-bci", then it will find
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) this device and query it for USB power status.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) twl4030-usb {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) compatible = "ti,twl4030-usb";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) interrupts = < 10 4 >;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) usb1v5-supply = <&vusb1v5>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) usb1v8-supply = <&vusb1v8>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) usb3v1-supply = <&vusb3v1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) usb_mode = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) };