There's also precedence that if they have a search warrant, you would have to supply the passcode anyway.
More recent precedence is that you can't be forced to tell the passcode as that would be self incriminating. All depends on the jurisdication you are in at this point. They can ask but if you say no, that is that. Which is why they are having to find other ways into the devices