From patchwork Mon Oct 9 17:37:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13414145 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8A202CD6114 for ; Mon, 9 Oct 2023 17:38:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=k0/PjkrjaVm9yLU137S/DEKkzQ0fmQDk1fL5HjiCQ1s=; b=2T28+RMukTx4ec pLYDIwkam3wKTnKrXx0x6CDdSbMShjsPUBMPJMzeFU7O5VsyCZXZw69d/TQiTmoifWeaesSJtooSB NBayo1hvGgSdY9Vqd6p76aoWyi7wUFB2GsLfeB8XT69PJMw6UaF8jfl2YCxSNB6yCw/tacs14au+d PezQK8VQiSBP2N+N/f6hmHgAqLBw9kfHK7aoLtRQiGhAn+qe7rxSZgUbSndYKIPhAhxYqGNo60TF9 PzIZsp0L2LbfvIaGg+R/PDxuoGcynC+bcpE6JmAtGyr3L9sWl98D9InjQ1L14AGspT7tSBLn72u89 fZjxakFO7QW6lp0R7duA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qpuCy-00BK7z-2h; Mon, 09 Oct 2023 17:38:20 +0000 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qpuCv-00BK6L-2X for linux-arm-kernel@lists.infradead.org; Mon, 09 Oct 2023 17:38:18 +0000 Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-690f8e63777so1299883b3a.0 for ; Mon, 09 Oct 2023 10:38:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696873094; x=1697477894; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=pvuBGq6WUoHZiomqt0OdKft4RXdRGAyxkn+8G1KxPRs=; b=GNgfw12oHEAbU3PAfCqUfhBOkKU2f4HIrHlq2jKoPxYHZngLSfJYyQ+6DeExRp+gt0 wz35xSrD86dAdE7jhkRBCnuBqPA7Lw8BhKNFLwmOLXK4tBmIH9txGN8fpLwofKAVe8eb j6cD/VKV+i1GmrkRgSKNx7YPmOY3xcGnvU1/EOuMsk8kb+KVHYquvWHcQtnQ/fvJDUeq pEXRKTrmXXwlhmX0kO2wHUKRAIrVHHwq18pX6SAa8ti8Z9cdwTpEiMMMh+VyFmNLg950 eLq2SXsnhw2GRVDY0KIDLuqn+QNYXAblFCcctRy1qQ2MbrTUooeL14IV0mZKt4xlKmxS GXFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696873094; x=1697477894; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pvuBGq6WUoHZiomqt0OdKft4RXdRGAyxkn+8G1KxPRs=; b=ke8kzkK9JHZUdMrceeK+v3fMKIZ+QWN4j91B/3k7ejDojz7gZTsv9+nCOpapt+mHeF dnM+33xAUSN2bmlEMPOn113/fTlsVL9aDQ78CuHj5wiMwH/jU+RDCkGrMezgmASrQXVY x33SW86JFObhw5LyoNDHGQp6u1wD77Ffwk9cL8hQyu3chJxlwwskKjgxQK7eH6Eq/0Lv hTYkwlfcwDt7orUf3Fm8YQgsnWHEPby/HyHZNS3nxcTSmm5m1H8kMSND2bRaLjKnvXp9 xIatjl2gThyHYfKrv6hAP58nONXbAlpRAD5yP5a6V6tP+tNTeOgXFNB9cKH89cAvY5hP +bUw== X-Gm-Message-State: AOJu0YzlFTlPGFw054t4dHm54jUjrMX/tTPJmOTqKK0N33uWU4DB2tQm zOZOyDE9yFynTp4z3TZlbno= X-Google-Smtp-Source: AGHT+IH8Nr7VFjpHTnX5caJEibN+LgpLAc+XAowV8nY7E1KRu85xj3wNT6BthDtCuta1JBhiftbU9w== X-Received: by 2002:a05:6a00:39a8:b0:692:ad93:e852 with SMTP id fi40-20020a056a0039a800b00692ad93e852mr17369804pfb.2.1696873093971; Mon, 09 Oct 2023 10:38:13 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:22d5:b586:66b8:6e03]) by smtp.gmail.com with ESMTPSA id u24-20020a63b558000000b00577d53c50f7sm8428133pgo.75.2023.10.09.10.38.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 10:38:13 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Cc: linux-arm-kernel@lists.infradead.org, Fabio Estevam Subject: [PATCH 1/2] ARM: mxs: Add serial: Search for specific ocotp nodes Date: Mon, 9 Oct 2023 14:37:39 -0300 Message-Id: <20231009173740.3535167-1-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231009_103817_825205_CC00B7A2 X-CRM114-Status: GOOD ( 13.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Fabio Estevam Per mxs-ocotp.yaml, "fsl,ocotp" is not a valid entry. "fsl,ocotp" is only used to indicate the location of the struct device_node that points to the ocotp node. Search for the specific "fsl,imx28-ocotp" and "fsl,imx23-ocotp" instead and remove the undocumented "fsl,ocotp" fallback. Signed-off-by: Fabio Estevam --- arch/arm/mach-mxs/mach-mxs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-mxs/mach-mxs.c b/arch/arm/mach-mxs/mach-mxs.c index 3faf9a1e3e36..d16e638990da 100644 --- a/arch/arm/mach-mxs/mach-mxs.c +++ b/arch/arm/mach-mxs/mach-mxs.c @@ -94,7 +94,9 @@ static const u32 *mxs_get_ocotp(void) if (once) return ocotp_words; - np = of_find_compatible_node(NULL, NULL, "fsl,ocotp"); + np = of_find_compatible_node(NULL, NULL, "fsl,imx28-ocotp"); + if (!np) + np = of_find_compatible_node(NULL, NULL, "fsl,imx23-ocotp"); ocotp_base = of_iomap(np, 0); WARN_ON(!ocotp_base);