From 4414f27f76d3dde5c991c6114523d835347ee583 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Mon, 13 Jun 2022 12:40:31 +0000 Subject: Fix compatible strings to match the official device tree binding. ok patrick@, dlg@, jsg@ --- sys/arch/arm64/dev/aplsart.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/arch') 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"); -- cgit v1.2.3