From: kettenis Date: Mon, 13 Jun 2022 12:40:30 +0000 (+0000) Subject: Fix compatible strings to match the official device tree binding. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1d0ffe23e95516576a269f0e68aaa774d60910fe;p=openbsd Fix compatible strings to match the official device tree binding. ok patrick@, dlg@, jsg@ --- diff --git a/sys/arch/arm64/dev/aplsart.c b/sys/arch/arm64/dev/aplsart.c index 975ee9f4c17..15e07264d9a 100644 --- a/sys/arch/arm64/dev/aplsart.c +++ b/sys/arch/arm64/dev/aplsart.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aplsart.c,v 1.1 2022/06/12 16:00:12 kettenis Exp $ */ +/* $OpenBSD: aplsart.c,v 1.2 2022/06/13 12:40:30 kettenis Exp $ */ /* * Copyright (c) 2022 Mark Kettenis * @@ -73,8 +73,8 @@ aplsart_match(struct device *parent, void *match, void *aux) { struct fdt_attach_args *faa = aux; - return OF_is_compatible(faa->fa_node, "apple,sart2") || - OF_is_compatible(faa->fa_node, "apple,sart3"); + return OF_is_compatible(faa->fa_node, "apple,t6000-sart") || + OF_is_compatible(faa->fa_node, "apple,t8103-sart"); } void @@ -97,9 +97,9 @@ aplsart_attach(struct device *parent, struct device *self, void *aux) sc->sc_phandle = OF_getpropint(faa->fa_node, "phandle", 0); - if (OF_is_compatible(faa->fa_node, "apple,sart2")) + if (OF_is_compatible(faa->fa_node, "apple,t8103-sart")) sc->sc_version = 2; - if (OF_is_compatible(faa->fa_node, "apple,sart3")) + if (OF_is_compatible(faa->fa_node, "apple,t6000-sart")) sc->sc_version = 3; printf("\n");