ARM: dts: imx6qdl-victgo: add CAN termination support
authorDavid Jander <david@protonic.nl>
Mon, 21 Feb 2022 09:53:12 +0000 (10:53 +0100)
committerShawn Guo <shawnguo@kernel.org>
Wed, 6 Apr 2022 02:12:37 +0000 (10:12 +0800)
The gpio1 0 pin is controlling CAN termination, not USB H1 VBUS. So,
remove wrong regulator and assign this gpio to new DT CAN termination
property.

Signed-off-by: David Jander <david@protonic.nl>
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6dl-victgo.dts

index 7a29283da2451b2a4c387ddbf045855aea40f591..7dd7fb16543208cf0df46abcc76240567675ca94 100644 (file)
                regulator-max-microvolt = <3300000>;
        };
 
-       reg_h1_vbus: regulator-h1-vbus {
-               compatible = "regulator-fixed";
-               regulator-name = "h1-vbus";
-               regulator-min-microvolt = <5000000>;
-               regulator-max-microvolt = <5000000>;
-               gpio = <&gpio1 0 GPIO_ACTIVE_HIGH>;
-               enable-active-high;
-       };
-
        reg_otg_vbus: regulator-otg-vbus {
                compatible = "regulator-fixed";
                regulator-name = "otg-vbus";
 &can1 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_can1>;
+       termination-gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
+       termination-ohms = <150>;
        status = "okay";
 };
 
 };
 
 &usbh1 {
-       vbus-supply = <&reg_h1_vbus>;
        pinctrl-names = "default";
        phy_type = "utmi";
        dr_mode = "host";