Here's my config on my R7800 running OpenWrt 21.02.1
I can't say for sure the WAN VLAN is necessary or useful, but it doesn't harm anything.
LAN ports 2 and 4 are trunked VLAN links. LAN ports 1 and 3 are untagged on the NEWLAN VLAN.
I've got 5 bridges, one each for VLANs 3 (IOT), 4 (NEWLAN), 5 (GUEST), 6 (IPV6), and 7 (ONLY6).
A picture of LuCI rendering of the switch config for VLAN assignments:
And the interface devices:
and the relevant network definitions from /etc/config/network
config interface 'lan'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '192.168.1.1'
option stp '1'
option device 'br-lan'
option delegate '0'
config interface 'wan'
option proto 'dhcp'
option device 'eth0'
option ipv6 '1'
config interface 'guest'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '172.31.66.1'
option device 'br-guest'
option delegate '0'
option ip6assign '64'
option ip6hint '2'
config interface 'iot'
option proto 'static'
option ipaddr '172.29.34.1'
option netmask '255.255.255.0'
option device 'br-iot'
option delegate '0'
config interface 'local6'
option device 'br-local6'
option proto 'static'
option ip6assign '64'
option ipaddr '192.168.6.1'
option netmask '255.255.255.0'
option ip6hint '1'
config interface 'only6'
option proto 'static'
option device 'br-only6'
option ip6assign '64'
option ip6hint '6'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option description 'GUEST'
option vid '5'
option ports '1t 3t 6t'
config switch_vlan
option device 'switch0'
option vlan '2'
option vid '2'
option description 'WAN'
option ports '0 5'
config switch_vlan
option device 'switch0'
option vlan '3'
option vid '3'
option description 'IOT'
option ports '1t 3t 6t'
config switch_vlan
option device 'switch0'
option vlan '4'
option vid '4'
option description 'NEWLAN'
option ports '1t 2 3t 4 6t'
config switch_vlan
option device 'switch0'
option vlan '5'
option vid '1'
option description 'DONOTUSE'
config switch_vlan
option device 'switch0'
option vlan '6'
option vid '6'
option description 'IPV6'
option ports '1t 3t 6t'
config switch_vlan
option device 'switch0'
option vlan '7'
option vid '7'
option description 'ONLY6'
option ports '1t 3t 6t'
config device
list ports 'eth1.4'
option type 'bridge'
option name 'br-lan'
option macaddr 'xx:xx:xx:xx:xx:xx'
config device
option type 'bridge'
option name 'br-guest'
list ports 'eth1.5'
config device
list ports 'eth1.3'
option type 'bridge'
option name 'br-iot'
config device
option type 'bridge'
option name 'br-local6'
option bridge_empty '1'
list ports 'eth1.6'
config device
option type 'bridge'
option name 'br-only6'
option bridge_empty '1'
list ports 'eth1.7'