[Letux-kernel] [PATCH 2/5] DTS: MIPS: JZ4780: add USB PHY&OTG
Zhou Yanjie
zhouyanjie at wanyeetech.com
Wed Sep 16 18:30:36 CEST 2020
Hi Nikolaus,
The otg and phy nodes should be adjusted, I will send you a new patch as
soon as possible.
在 2020/9/16 下午4:11, H. Nikolaus Schaller 写道:
> Signed-off-by: H. Nikolaus Schaller <hns at goldelico.com>
> ---
> arch/mips/boot/dts/ingenic/jz4780.dtsi | 28 ++++++++++++++++++++++++++
> 1 file changed, 28 insertions(+)
>
> diff --git a/arch/mips/boot/dts/ingenic/jz4780.dtsi b/arch/mips/boot/dts/ingenic/jz4780.dtsi
> index ce0260a69e7dbb..7cffdc8b70be68 100644
> --- a/arch/mips/boot/dts/ingenic/jz4780.dtsi
> +++ b/arch/mips/boot/dts/ingenic/jz4780.dtsi
> @@ -72,6 +72,16 @@ cgu: jz4780-cgu at 10000000 {
> #clock-cells = <1>;
> };
>
> + usb_phy: otg_phy at 10000000 {
> + compatible = "ingenic,jz4770-phy";
> + reg = <0x10000000 0x100>;
> +
> + clocks = <&cgu JZ4780_CLK_OTG1>;
> + clock-names = "usb_phy";
> +
> + #phy-cells = <0>;
> + };
> +
> tcu: timer at 10002000 {
> compatible = "ingenic,jz4780-tcu",
> "ingenic,jz4770-tcu",
> @@ -610,4 +620,22 @@ lcdc1: lcdc1 at 130a0000 {
> status = "disabled";
> };
>
> + usb_otg: otg at 0x13500000 {
> + compatible = "ingenic,jz4770-otg", "snps,dwc2";
> + reg = <0x13500000 0x40000>;
> +
> + interrupt-parent = <&intc>;
> + interrupts = <21>;
> +
> + phys = <&usb_phy>;
> + phy-names = "usb2-phy";
> +
> + // clocks & clock-names?
> + // clocks = ?;
> + // clock-names = "otg";
> +
> + g-rx-fifo-size = <256>;
> + g-np-tx-fifo-size = <256>;
> + g-tx-fifo-size = <256 256 256 256 256 256 256 512>;
> + };
> };
More information about the Letux-kernel
mailing list