board file revision

Can't find any definitive docs on how to create a new revision of existing custom board files. 

For example, my_board.dts includes my_board_common.dtsi, which in turns includes a pinctrl.dtsi file. If I want to create a new revision of the PCB which includes an extra uart port plus some other pin number changes. How can I achieve this in my custom board files. 

Obviously this can also be achieved inside the project using overlays or by duplicating the board files entirely, but I'd like to keep the separation, avoid dupilcation and do things right. The correct way to do this is to build and target the board at the right revision. Anyone care to share how this is achieved?

First off, I've quickly updated the board.yaml:

board:
  name: weenie
  full_name: Weenie
  vendor: monkeytronics
  socs:
  - name: nrf9151
    variants:
    - name: 'ns'
  revision:
    format: major.minor.patch
    exact: true
    default: 0.0.0
    revisions: 
    - name: 0.0.0
    - name: 1.0.0

Thanks.

Related