Any way to tell the PinePhone's hardware revision
#1
Greetings,

I was planning to try my phone as a USB host. I read here that the 1.2a revision fixes the USB CC pin issue. Is there any way to check the PinePhone hardware revision, either by inspecting the hardware or using software? I'd like to check whether I have revision 1.2 or 1.2a before I attempt a hardware fix, or (very unlikely but still) accidentally damage it by connecting a USB3 adapter.

My PP is the UBports community edition.

Regards,
R.T.G.
#2
My understanding is that the 1.2a version was so far only sent to some of the kernel developers. The Ubports CE edition was just a 1.2 version. At least mine was. Not sure if you can see the "1.2a" string anywhere, probably not.

Anyway this is easy to verify:
  1. Run a recent release of e.g. Mobian or Arch Linux ARM which has the patched USB host support in the kernel already
  2. Launch a terminal (over SSH / serial / in the UI) and run `dmesg -w` which will keep printing new kernel logs
  3. Connect any USB device
  4. If you see a bunch of "anx7688" messages and end up with a new USB device recognized, you don't need to fix anything. Otherwise get your screwdriver ready Smile
Here is a sample of my log when connecting a USB 2.0 gamepad to a fixed 1.2 PP on Arch Linux ARM, kernel 5.7.0-7-danctnix:
Code:
[   55.125335] anx7688 0-0028: plug irq (cd=1)
[   55.137801] anx7688 0-0028: cable inserted
[   55.177826] anx7688 0-0028: power enabled
[   55.242233] anx7688 0-0028: eeprom0 = 0x03
[   55.242253] anx7688 0-0028: fw loaded after 40 ms
[   55.242790] anx7688 0-0028: OCM firmware loaded (version 0x2410)
[   55.245968] anx7688 0-0028: send pd packet cmd=0 05 00 32 90 01 26 12
[   55.291092] anx7688 0-0028: send pd packet cmd=1 05 01 2c 91 01 26 16
[   55.292895] anx7688 0-0028: send pd packet cmd=2 11 02 00 00 00 ec 00 00 00 00 00 00 00 00 39 00 00 51 77
[   55.296197] anx7688 0-0028: send pd packet cmd=3 05 03 00 00 01 ff f8
[   55.298373] anx7688 0-0028: OCM configuration completed
[   55.300673] anx7688 0-0028: status changed to 0x00
[   55.300692] anx7688 0-0028: cc_status changed to CC1 = SRC.Open CC2 = SRC.Open
[   55.300702] anx7688 0-0028: dp state changed to 0x00
[   55.300727] anx7688 0-0028: data role change requested to ufp
[   55.394037] anx7688 0-0028: status irq
[   55.395678] anx7688 0-0028:   soft = 0x0c
[   55.396966] anx7688 0-0028: status changed to 0x0c
[   55.733582] anx7688 0-0028: status irq
[   55.735308] anx7688 0-0028:   soft = 0x30
[   55.736721] anx7688 0-0028: status changed to 0x2c
[   55.736735] anx7688 0-0028: cc_status changed to CC1 = SRC.Rd CC2 = SRC.Open
[   55.736887] anx7688 0-0028: data role change requested to dfp
[   55.736934] phy id_det change to host
[   56.233808] usb 2-1: new low-speed USB device number 2 using ohci-platform
[   56.468367] input: usb gamepad            as /devices/platform/soc/1c1a400.usb/usb2/2-1/2-1:1.0/0003:0810:E501.0001/input/input6
[   56.468953] hid-generic 0003:0810:E501.0001: input,hidraw0: USB HID v1.10 Joystick [usb gamepad           ] on usb-1c1a400.usb-1/input0

Don't be afraid to connect a USB device to a pre-1.2a PinePhone. It won't blow up, it just doesn't do anything useful. And don't be afraid of the HW mod. I've done it successfully for two devices already and it is fairly easy.

Wish you luck!
#3
@dejvino

Thanks. Dmesg was quiet, so looks like it is time for some emergency surgery...
there will be no peace when they release the geese

my homepage
#4
I doubt that when plugging in the USB-dock, no warnings or errors in dmesg prove that the hardware is ok (v.2.1a)

If I have correctly understood, the hardware modification is necessary for charging the phone via the USB-dock.

Some distros have an app. showing the power status and my unmodified phone always shows "discharging" even when the dock is powered.


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pinephone + Keyboard for sale, little use ruemoo 4 380 10-28-2024, 08:37 PM
Last Post: AltonFox
  Modem Issues with the Pinephone Temmie19 2 242 10-16-2024, 07:54 AM
Last Post: Temmie19
  Battery Life- hardware abstraction layer-GPU VS optomizing app for GPU-openGL biketool 1 248 09-20-2024, 04:04 AM
Last Post: Kevin Kofler
  various tricks to open the pinephone shengchieh 3 1,330 09-16-2024, 03:42 AM
Last Post: biketool
  my pinephone melted norayr 6 2,031 04-04-2024, 07:22 PM
Last Post: Zebulon Walton
  Pinephone refusing to charge while suspended tiol 1 1,565 04-02-2024, 10:54 AM
Last Post: joH_N_Doe64
  Microphone on Hardware Model 1.2 is Unusably Noisy In Some Circomstances ASmartSuitedSimpleton 4 4,814 03-23-2024, 10:55 AM
Last Post: Ferriah
  pinephone can provide more than 500mA to a usb-c displayport device? unrznbl 2 913 03-21-2024, 08:52 AM
Last Post: unrznbl
  pinephone keyboard + dock question tuxcall 7 4,176 02-05-2024, 03:17 PM
Last Post: wigan
  Unsatisfactory GPS reception on PinePhone? LinAdmin2 53 65,811 12-17-2023, 11:42 AM
Last Post: robin.com.au

Forum Jump:


Users browsing this thread: 2 Guest(s)