// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
//
// Device Tree Source for UniPhier PXs3 Reference Board (for USB-Device #1)
//
// Copyright (C) 2021 Socionext Inc.
//   Author: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>

/dts-v1/;
#include "uniphier-pxs3-ref.dts"

/ {
	model = "UniPhier PXs3 Reference Board (USB-Device #1)";
};

/* I2C3 pinctrl is shared with USB*VBUSIN */
&i2c3 {
	status = "disabled";
};

&usb1 {
	status = "okay";
	dr_mode = "peripheral";
	pinctrl-0 = <&pinctrl_usb1_device>;
	snps,dis_enblslpm_quirk;
	snps,dis_u2_susphy_quirk;
	snps,dis_u3_susphy_quirk;
	snps,usb2-gadget-lpm-disable;
	phy-names = "usb2-phy", "usb3-phy";
	phys = <&usb1_hsphy0>, <&usb1_ssphy0>;
};

&usb1_hsphy0 {
	/delete-property/ vbus-supply;
};

&usb1_ssphy0 {
	/delete-property/ vbus-supply;
};

/delete-node/ &usb1_hsphy1;