filter view by parent of a taxonomy term
There is a view filter as Content: Has taxonomy terms (with depth) which describes as -

Display content if it has the selected taxonomy terms, or children of the selected terms. Due to additional complexity, this has fewer options than the versions without depth.

You can select one of the parent term and set the depth of its child terms too.