Home › Forums › snickerdoodle › • General › I2C / USB Issue on Snickerdoodle Prime
- AuthorPosts
Hi all,
I am trying to use a snickerdoodle prime with a pismasher and the prebuilt ubuntu images. I had no trouble with the black, but with the blacks on backorder I am trying to use the prime instead.
I need to be able to use USB on the pismasher, but I think my problem is with the prime itself not being able to connect to the USB hub.
I copied and modified the snickerdoodle black device tree:
/**
* Copyright (c) 2018 krtkl inc.
*
* snickerdoodle Black piSmasher Device Tree Source
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published by
* the Free Software Foundation.
*//dts-v1/;
/include/ “snickerdoodle-prime.dtsi”
/include/ “uio.dtsi”/ {
aliases {
ethernet0 = &gem0;
ethernet1 = &gem1;
};power_en_reg: fixed-regulator-powen {
compatible = “regulator-fixed”;
regulator-name = “power-en-regulator”;
gpio = <&gpio0 20 4>;
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
startup-delay-us = <70000>;
regulator-always-on;
enable-active-high;
};usb_phy0: usb-phy0 {
compatible = “usb-nop-xceiv”;
#phy-cells = <0>;
view-port = <0x170>;
drv-vbus;
};
};&i2c1 {
status = “okay”;
clock-frequency = <100000>;usb2514b@2c {
compatible = “microchip,usb2514b”;
reg = <0x2c>;
reset-gpios = <&gpio0 16 1>;
};
};&usb0 {
status = “okay”;
dr_mode = “host”;
usb-phy = <&usb_phy0>;
};&gem0 {
status = “okay”;
phy-mode = “rgmii-id”;
reset-gpios = <&gpio0 19 1>;eth_phy0: ethernet-phy@0 {
compatible = “marvell,88E1510”;
reg = <0>;
device_type = “ethernet-phy”;
};gmii2rgmii0: gmiitorgmii@8 {
compatible = “xlnx,gmii-to-rgmii-1.0”;
reg = <8>;
phy-handle = <ð_phy0>;
};
};&gem1 {
status = “okay”;
phy-mode = “rgmii-id”;
reset-gpios = <&gpio0 17 1>;eth_phy1: ethernet-phy@1 {
compatible = “marvell,88E1510”;
reg = <0>;
device_type = “ethernet-phy”;
};gmii2rgmii1: gmiitorgmii@9 {
compatible = “xlnx,gmii-to-rgmii-1.0”;
reg = <9>;
phy-handle = <ð_phy1>;
};
};Here are some things I noticed when booting up:
[ 12.097429] cdns-i2c e0005000.i2c: timeout waiting on completion
[ 12.119236] usb251xb 0-002c: configuring block 0 failed: -110
[ 12.124999] usb251xb 0-002c: Failed to connect hub (-110)And when trying to dig a little deeper:
Welcome to Ubuntu 20.04 LTS (GNU/Linux 5.4.0-snickerdoodle-00001-gdfb1b1836d41 armv7l)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantageLast login: Wed Apr 1 17:39:04 UTC 2020 on ttyPS0
To run a command as administrator (user “root”), use “sudo <command>”.
See “man sudo_root” for details.user@snickerdoodle:~$ dmesg | grep usb
[ 11.094961] usb251xb 0-002c: GPIO lookup for consumer reset
[ 11.094985] usb251xb 0-002c: using device tree for GPIO lookup
[ 11.095070] of_get_named_gpiod_flags: parsed ‘reset-gpios’ property of node ‘/amba/i2c@e0005000/usb2514b@2c[0]’ – status (0)
[ 11.290722] usbcore: registered new interface driver usbfs
[ 11.290883] usbcore: registered new interface driver hub
[ 11.293971] usbcore: registered new device driver usb
[ 11.575539] usb_phy_generic usb-phy0: GPIO lookup for consumer reset
[ 11.575565] usb_phy_generic usb-phy0: using device tree for GPIO lookup
[ 11.575619] of_get_named_gpiod_flags: can’t parse ‘reset-gpios’ property of node ‘/usb-phy0[0]’
[ 11.575663] of_get_named_gpiod_flags: can’t parse ‘reset-gpio’ property of node ‘/usb-phy0[0]’
[ 11.575692] usb_phy_generic usb-phy0: using lookup tables for GPIO lookup
[ 11.575711] usb_phy_generic usb-phy0: No GPIO consumer reset found
[ 11.575729] usb_phy_generic usb-phy0: GPIO lookup for consumer vbus-detect
[ 11.575744] usb_phy_generic usb-phy0: using device tree for GPIO lookup
[ 11.575787] of_get_named_gpiod_flags: can’t parse ‘vbus-detect-gpios’ property of node ‘/usb-phy0[0]’
[ 11.575828] of_get_named_gpiod_flags: can’t parse ‘vbus-detect-gpio’ property of node ‘/usb-phy0[0]’
[ 11.575854] usb_phy_generic usb-phy0: using lookup tables for GPIO lookup
[ 11.575872] usb_phy_generic usb-phy0: No GPIO consumer vbus-detect found
[ 11.575943] usb_phy_generic usb-phy0: usb-phy0 supply vcc not found, using dummy regulator
[ 11.688082] chipidea-usb2 e0002000.usb: e0002000.usb supply vbus not found, using dummy regulator
[ 11.828221] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[ 11.828244] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 11.828261] usb usb1: Product: EHCI Host Controller
[ 11.828277] usb usb1: Manufacturer: Linux 5.4.0-snickerdoodle-00001-gdfb1b1836d41 ehci_hcd
[ 11.828293] usb usb1: SerialNumber: ci_hdrc.0
[ 12.119236] usb251xb 0-002c: configuring block 0 failed: -110
[ 12.124999] usb251xb 0-002c: Failed to connect hub (-110)
[ 12.174447] usb251xb: probe of 0-002c failed with error -110Any ideas on what I can try?
Thanks!
- AuthorPosts
- You must be logged in to reply to this topic.