RE: [PATCH 3/3] arm64: dts: qcom: msm8916-zhihe: Add initial device tree for zhihe Wifi/LTE dongle UFI-001C and uf896

From: forbidden405
Date: Wed Jan 11 2023 - 05:22:21 EST


On 11/01/2023 09:32, krzysztof.kozlowski@xxxxxxxxxx wrote:

> This does not solve my concerns. If you cannot point specific manufacturer
> and
> model (if there is no manufacturer, there can be no official model,
> right?), how
> anyone can be sure that their device is compatible with yours?

1. the best way is to take the device apart and compare the board design
with others;
2. the label on board, though format unknown, seems to be different between
different models and identical for one model;
3. read board-id from stock Android firmware. It's not reliable because a
board-id might be shared by multiple models. Note this board-id has no other usage because the manufacturer reused a board-id defined by qcom.

We extract some special fields from the label(i.e. ufi001c or uf896) to be
the model name for a device, currently it's enough to distinguish between
different boards.
For example, the label on ufi001c is 'UFI001C_MB_V01', we extract the first field to be the model name.