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); From patchwork Mon Oct 9 17:37:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13414144 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 10D8CCD6117 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:References:In-Reply-To: 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: List-Owner; bh=vffv4X2FwwGaNUYcv6V1u0AubnqCoDqd/2tcO76MQa4=; b=v9+vVI8uXBIhuA z0tU4zGF8ObJjYLUYMEPLIfhdaZ5wMEwbaGFeRBnjw88Qry/mBS4uGYyOlWRQwWnxvT5chwdd5iHG mYoh2SS8CHtP7s4FC1WkF/A+Vc+9/udfeuCk/FByKzcwGsK8gQ+o/Qxe16GkEMdGa5c433Kf7w9Zp Dn9byYmcaGYnYApKQaGAcgTvIQ+b8WotpvAkMu79zGrmiL6RVGgK8596ku/aAL9AdT1TGdNicWat7 DNd9oQ0PgAcfl+4b066VfTPXJh03rwdPb6iYSPuMSqhSpacs1EWhFxlrLGWYdOLR59tMlxraTwchw DdgTJVDtsF7M7F+yyASQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qpuD1-00BK8R-1y; Mon, 09 Oct 2023 17:38:23 +0000 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qpuCw-00BK6c-2W for linux-arm-kernel@lists.infradead.org; Mon, 09 Oct 2023 17:38:20 +0000 Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-692af7b641cso793981b3a.1 for ; Mon, 09 Oct 2023 10:38:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696873096; x=1697477896; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gFNfcMrZjaTCtypj0R0Oq1GhdBz3UTD3dlufbywYBks=; b=EsUgY5R3n+DVCJztny2p/EjudSIHpPQ7w2kGfqw4vS63Cufc+2mnqXuPYU5WBa+o1X JIxbzf6eDonUGuC0YVH25/oNQAy+rcJxCwi/3AMz1FsVuPT/MQOkTQu1gdfXm2Qifa6H 38T8YgTL79CJpgC6j87gjtmjIY4+CIAHQhe4V6dHZkmFLVw7MNkV5AJ/eGhspioKw6hM kcIApENbNIA33Ilp1aBH0bWsvmBOx8ZrhCeGuoZ4aivlB7A74YSzWf50uwEXUgIVT5tI Ga3N/nQTYNLt+bcP82Nm2ZhePoHHhkZMZB45Oz0Ko2CFH1OCI6S6QgHrH9jgBBhMnzts 4VTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696873096; x=1697477896; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gFNfcMrZjaTCtypj0R0Oq1GhdBz3UTD3dlufbywYBks=; b=b12rhUiIV1VFXjmXxEDiRwf7yeWWZCF/HVq7Xc5d7ybCaoPZuqOzG8kAlsL8Kt8U4e cZbvE+LL70oAm4+Ox33+mblY/5QK8TX7o/GwrAdm9uMx50v/XOKzi7Qxv5Rw35rcvY9p kf7G5hZj7IXuU1T21bEW3mpTTpL5jNF7l8Q9QWHzfdfjRjJckq9jG57SI1lte3bcb2uo 1A4g6NsUgdvSSYqomIEUMoRs/72L20dawyLPPjYZw98aaxYmz2Nnp01MXHiUH5l5oN+B ZUQuynGMz6cC5HW5o5xewOL5q3sc2nIQEhcG2OpJGcD4Go1Qou0vd0OZgx4THzgKrBH6 lkFA== X-Gm-Message-State: AOJu0Yz3odT9BKRCIprGU7VHFXIIhxDmus+3etjPtN3rPMZIb+0cTj1d d0ZWHipuia5OXoB2/MHBz/g= X-Google-Smtp-Source: AGHT+IFc7qBzqsj1yaOv34oAwa0hJ41zkffheoJ1E4ljcaoGP8PmUzWU9lO0RG4rNagP+l0LyF/HWQ== X-Received: by 2002:a05:6a00:1d94:b0:690:d314:38d with SMTP id z20-20020a056a001d9400b00690d314038dmr18325157pfw.1.1696873095753; Mon, 09 Oct 2023 10:38:15 -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.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 10:38:15 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Cc: linux-arm-kernel@lists.infradead.org, Fabio Estevam Subject: [PATCH 2/2] ARM: dts: mxs: Remove fsl,ocotp Date: Mon, 9 Oct 2023 14:37:40 -0300 Message-Id: <20231009173740.3535167-2-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231009173740.3535167-1-festevam@gmail.com> References: <20231009173740.3535167-1-festevam@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231009_103818_814731_E74C8DF8 X-CRM114-Status: GOOD ( 12.59 ) 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. Remove it to fix the following schema warning: efuse@8002c000: compatible: ['fsl,imx23-ocotp', 'fsl,ocotp'] is too long from schema $id: http://devicetree.org/schemas/nvmem/mxs-ocotp.yaml# Signed-off-by: Fabio Estevam --- arch/arm/boot/dts/nxp/mxs/imx23.dtsi | 2 +- arch/arm/boot/dts/nxp/mxs/imx28.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/nxp/mxs/imx23.dtsi b/arch/arm/boot/dts/nxp/mxs/imx23.dtsi index f98ee2e42431..40bea0ae7a59 100644 --- a/arch/arm/boot/dts/nxp/mxs/imx23.dtsi +++ b/arch/arm/boot/dts/nxp/mxs/imx23.dtsi @@ -437,7 +437,7 @@ pxp@8002a000 { }; efuse@8002c000 { - compatible = "fsl,imx23-ocotp", "fsl,ocotp"; + compatible = "fsl,imx23-ocotp"; #address-cells = <1>; #size-cells = <1>; reg = <0x8002c000 0x2000>; diff --git a/arch/arm/boot/dts/nxp/mxs/imx28.dtsi b/arch/arm/boot/dts/nxp/mxs/imx28.dtsi index 37b9d409a5cd..92d940b63b4f 100644 --- a/arch/arm/boot/dts/nxp/mxs/imx28.dtsi +++ b/arch/arm/boot/dts/nxp/mxs/imx28.dtsi @@ -1016,7 +1016,7 @@ pxp: pxp@8002a000 { }; ocotp: efuse@8002c000 { - compatible = "fsl,imx28-ocotp", "fsl,ocotp"; + compatible = "fsl,imx28-ocotp"; #address-cells = <1>; #size-cells = <1>; reg = <0x8002c000 0x2000>;