How to find the type of board, revision etc

If running on Debian/Ubuntu how can the type of board e.g. Rock Pi 4b, E, S, N10 etc, the version of the board v1.3 v1.4 be found.

The hardware version is printed on the PCB silkscreen, currently it can not be read by the software.

If the file model found in /sys/firmware/devicetree/base/ available and contains the correct information for the other type of boards?

The device tree contains the right model(4/S/E/N10 etc), but doesn’t contains the hardware revision.