On 22/06/2023 14:23, Markus Schneider-Pargmann wrote: >> >> Yeah, but your code is different, although maybe we just misunderstood >> each other. You wrote that you cannot use the GPIOs, so I assumed you >> need to know the variant before using the GPIOs. Then you need >> compatibles. It's not the case here. You can read the variant and based >> on this skip entirely GPIOs as they are entirely missing. > > The version information is always readable for that chip, regardless of > state and wake GPIOs as far as I know. So yes it is possible to setup > the GPIOs based on the content of the ID register. > > I personally would prefer separate compatibles. The binding > documentation needs to address that wake and state GPIOs are not > available for tcan4552/4553. I think having compatibles that are for > these chips would make sense then. However this is my opinion, you are > the maintainer. We do not talk about compatibles in the bindings here. This is discussion about your driver. The entire logic of validating DTB is flawed and not needed. Detect the variant and act based on this. Best regards, Krzysztof