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

Commit 0f23bf17 authored by Sudharsan Reddy Yettapu's avatar Sudharsan Reddy Yettapu Committed by Suresh Kumar Allam
Browse files

ARM: dts: qcom: Add ChipIdea controller reset clock support



Add reset clock support for the usb otg node. Remove the support
for the android usb devices and use the configfs,function gadget
configuration method. Also adds correct compatible name.

Change-Id: I4927154cd8dc5a8239711aa62c2182a4903f6705
Signed-off-by: default avatarSudharsan Reddy Yettapu <syepattu@codeaurora.org>
Signed-off-by: default avatarSivasri Kumar Vanka <sivasri@codeaurora.org>
parent 540d8cb5
Loading
Loading
Loading
Loading
+0 −36
Original line number Diff line number Diff line
ANDROID USB:

This describes the device tree node for the Android USB gadget device.
This works in conjunction with a USB Device Controller (UDC) to provide
a dynamically configurable composition of functions to be exposed when
connected to a USB host.

Required properties:
- compatible: should be "qcom,android-usb"

Optional properties :
- reg  : offset and length of memory region that is used by device to
  update USB PID and serial numbers used by bootloader in DLOAD mode.
- qcom,pm-qos-latency : This property must be a list of three integer values
  (perf, normal, sleep) where each value respresents DMA latency in microsecs.
  First value represents DMA latency to vote with pm_qos when back to back USB
  transfers are happening and it requires USB thoughput to be maximum.
  Second value represents value to vote when not many USB transfers are
  happening and it is OK to have higher DMA latency to save power.
  Third value represents DMA latency to vote when USB BUS is IDLE and absolutely
  no transfers are happening. It should allow transition to lowest power state.
- qcom,usb-core-id: Index to refer USB hardware core to bind android gadget driver
  with UDC if multiple USB peripheral controllers are present. If unspecified,
  core is set to zero by default.
- qcom,supported-func: Represents list of supported function drivers. If this
  property is present android USB driver dynamically creats the list of
  supported function drivers and uses this list instead of statically defined default
  supported function driver list.
Example Android USB device node :
	android_usb@fc42b0c8 {
		compatible = "qcom,android-usb";
		reg = <0xfc42b0c8 0xc8>;
		qcom,pm-qos-latency = <2 1001 12701>;
		qcom,supported-func = "rndis_gsi","ecm_gsi","rmnet_gsi";
		qcom,usb-core-id = <1>;
	};
+6 −12
Original line number Diff line number Diff line
@@ -686,6 +686,10 @@
		qcom,max-nominal-sysclk-rate = <133330000>;
		qcom,max-svs-sysclk-rate = <69500000>;
		qcom,default-mode-svs;
		resets = <&clock_gcc GCC_USB_HS_BCR>,
			<&clock_gcc GCC_QUSB2_PHY_BCR>,
			<&clock_gcc GCC_USB2_HS_PHY_ONLY_BCR>;
		reset-names = "core_reset", "phy_reset", "phy_por_reset";

		qcom,usbbam@78c4000 {
			compatible = "qcom,usb-bam-msm";
@@ -716,12 +720,6 @@
		};
	};

	android_usb: android_usb@086000c8 {
		compatible = "qcom,android-usb";
		reg = <0x086000c8 0xc8>;
		qcom,pm-qos-latency = <2 1001 12701>;
	};

	hsic: hsic@7c00000 {
		compatible = "qcom,hsic-peripheral";
		reg = <0x7c00000 0x352>,
@@ -748,12 +746,8 @@
		qcom,msm-bus,vectors-KBps =
				<85 512 0 0>,
				<85 512 6000  6000>;
		status = "disabled";
	};

	android_usb_hsic: android_usb-hsic {
		compatible = "qcom,android-usb";
		qcom,usb-core-id = <1>;
		resets = <&clock_gcc GCC_USB_HS_HSIC_BCR>;
		reset-names = "core_reset";
		status = "disabled";
	};