usb: dwc3: add vendor prefix against used dwc3 flags

Currently there is no prefix used with dwc3 flags like
tx-fifo-size, host-only-mode, nominal-elastic-buffer and
core_reset_after_phy_init (rename as core-reset-after-phy-init).
This change adds snps as prefix to reflect that those are used
usb core vendor's feature. This change also makes required
changes with all devicetree files where it is applicable.

Change-Id: I9fa5c697491a3cde4a53df4fe6d7d2a8448353a5
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
This commit is contained in:
Mayank Rana 2014-03-18 13:17:49 -07:00
parent 38febb2cd5
commit bceadca1b4
7 changed files with 13 additions and 12 deletions

View file

@ -13,10 +13,10 @@ Required properties:
Optional properties:
- tx-fifo-resize: determines if the FIFO *has* to be reallocated.
- host-only-mode: if present then dwc3 should be run in HOST only mode.
- nominal-elastic-buffer: When set, the nominal elastic buffer setting
- snps,host-only-mode: if present then dwc3 should be run in HOST only mode.
- snps,nominal-elastic-buffer: When set, the nominal elastic buffer setting
is used. By default, the half-full setting is used.
- core_reset_after_phy_init: If present, PHY reset and initialization is
- snps,core-reset-after-phy-init: If present, PHY reset and initialization is
performed before core reset.
- snps,hsphy-auto-suspend-disable: If present, auto suspend feature is not enabled with hsusb phy.
@ -29,4 +29,5 @@ dwc3@4a030000 {
interrupt-names = "irq", "otg_irq";
usb-phy = <&usb2_phy>, <&usb3,phy>;
tx-fifo-resize;
snps,hsphy-auto-suspend-disable;
};

View file

@ -294,7 +294,7 @@
qcom,charging-disabled;
vbus_dwc3-supply = <0>;
dwc3@f9200000 {
host-only-mode;
snps,host-only-mode;
};
};

View file

@ -2726,7 +2726,7 @@
interrupts = <0 258 4>, <0 262 4>;
interrupt-names = "irq", "otg_irq";
usb-phy = <&hsphy1>, <&ssphy1>;
host-only-mode;
snps,host-only-mode;
};
};
};

View file

@ -496,8 +496,8 @@
interrupts = <0 131 0>, <0 179 0>;
interrupt-names = "irq", "otg_irq";
usb-phy = <&hsphy0>, <&ssphy0>;
nominal-elastic-buffer;
core_reset_after_phy_init;
snps,nominal-elastic-buffer;
snps,core-reset-after-phy-init;
snps,hsphy-auto-suspend-disable;
};
};

View file

@ -823,7 +823,7 @@
interrupt-names = "irq", "otg_irq";
usb-phy = <&hsphy>, <&ssphy>;
tx-fifo-resize;
host-only-mode;
snps,host-only-mode;
};
};

View file

@ -592,10 +592,10 @@ static int dwc3_probe(struct platform_device *pdev)
}
dwc->core_reset_after_phy_init =
of_property_read_bool(node, "core_reset_after_phy_init");
of_property_read_bool(node, "snps,core-reset-after-phy-init");
dwc->needs_fifo_resize = of_property_read_bool(node, "tx-fifo-resize");
host_only_mode = of_property_read_bool(node, "host-only-mode");
host_only_mode = of_property_read_bool(node, "snps,host-only-mode");
dwc->hsphy_auto_suspend_disable = of_property_read_bool(node,
"snps,hsphy-auto-suspend-disable");
dwc->maximum_speed = of_usb_get_maximum_speed(node);
@ -672,7 +672,7 @@ static int dwc3_probe(struct platform_device *pdev)
}
dwc->nominal_elastic_buffer = of_property_read_bool(node,
"nominal-elastic-buffer");
"snps,nominal-elastic-buffer");
ret = dwc3_core_init(dwc);
if (ret) {

View file

@ -2642,7 +2642,7 @@ static int dwc3_msm_probe(struct platform_device *pdev)
goto put_psupply;
}
host_mode = of_property_read_bool(dwc3_node, "host-only-mode");
host_mode = of_property_read_bool(dwc3_node, "snps,host-only-mode");
if (host_mode && of_get_property(pdev->dev.of_node, "vbus_dwc3-supply",
NULL)) {
mdwc->vbus_otg = devm_regulator_get(&pdev->dev, "vbus_dwc3");