From patchwork Fri Mar 24 00:40:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 666542 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp236724wrt; Thu, 23 Mar 2023 18:56:51 -0700 (PDT) X-Google-Smtp-Source: AKy350YDUr7xCqY8eonilbD+eWFfTK/SSPzAcC4Y6wkG9iTZ0BGMzU7JsFhd7wmb/Gr6GdQc9iMk X-Received: by 2002:a17:902:e891:b0:19f:87b5:1873 with SMTP id w17-20020a170902e89100b0019f87b51873mr1052908plg.62.1679623011393; Thu, 23 Mar 2023 18:56:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679623011; cv=none; d=google.com; s=arc-20160816; b=0ZGYUwSJBXdnvvHdoQSvEZLGHTIKaPslS1Kx9s7s0fhpQLVbmLvuWXUJ7s2CVa4RTd fwteRrXrUgUvfLiuws0KueSBfRIWLP4Xi67dSsHO9yTqnqeVXZtKwkwgKeQr0GU1Fch4 PhTodh8j1TQF7fSPjCe4RdvCXaFnM/MegyKKzRnrnH57+ndPs5xHaGmuEO+RjuZsAzg3 78d+a9C8AcLccPgWrOoz9FM+g0cljnPhJXJcl2vsDmELYNBp3c5bCeiCGqk8AW36cGr2 a7JkTDc8BZmqfO96n0ZxGMjmW3xwYWKV1dAAhGkHKsphXzjqx6C7xa2OYbKSJvLNYR3A c0zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=9c7FM/QalfCagncyizqJbMqmZqtKenz7QWXwa0vdxIY=; b=QQqsyzEjtsZDGabOx+Eo9pfDZ++0KFfHwNdQL57YIRSJ4R2KH0OeqrF2NEomGFjh3r J8IrEKFKzbME8UNx0zzLfx/vXNsOWNWY2t+7RHpmYQuViBM4BkaJ9n6p5sw9Ly+0n0kb R0jFgRwfUwnaGNO78K51ICuZTE5x+b2kI2zaRFsvkCWfuS+kRYJ0k7Ch+6LRdHhDs+Vj DAj8l0Ro59eERG54PnIycsjdVUuXTjYrPECsst5FspoDINNnYifNdQicLrU0G6egzsh9 sBVSbhhqKVruZ8LluXfET6XEA+JU4+2xcVXIRuELcKHS4jnTeNConxQGiQ8RkWmzo38z fxXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dVxDPJCM; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id u2-20020a170902b28200b0019904cba3b6si18861670plr.459.2023.03.23.18.56.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Mar 2023 18:56:51 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dVxDPJCM; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AD0DD8566A; Fri, 24 Mar 2023 02:56:42 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="dVxDPJCM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id ABE4085AA2; Fri, 24 Mar 2023 01:40:49 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 21EDF853AA for ; Fri, 24 Mar 2023 01:40:47 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=konrad.dybcio@linaro.org Received: by mail-lf1-x130.google.com with SMTP id br6so160295lfb.11 for ; Thu, 23 Mar 2023 17:40:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679618446; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=9c7FM/QalfCagncyizqJbMqmZqtKenz7QWXwa0vdxIY=; b=dVxDPJCMDM+OKgqo9iT8ZsHLOO7yjS8qb3ZGCcbSPRpGlTcXwaIbXB6V+ab7BAxX3/ Kz87wrw9yvBcSL5ZDJjPlx0bQbQxW8RL86H6kAxTym0vxQ9VNs8JUqUjWqT767h1IJ4d Jhn0iThUyQtchjg7HZEYEu7i8jwYsnJv9WP1BtvSj5nl1doI/xeUO8tcJI6/KkPV3xRf GQ3d9YA3NKcp7XVUfdK0T3ODCMEMhndkh5hIC6SMthGYIZ3RDPFHyqGiJ2Ug8bqVVNty egmFhehVX6PQRkvzglGJ/3A0Bmm7YRjzAe5wUzkoPI/AhXgLiFrcajF7owuIDtG1iwAV KDMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679618446; 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=9c7FM/QalfCagncyizqJbMqmZqtKenz7QWXwa0vdxIY=; b=6VthsqAnJbeK2ynk0+42G9qU98BR8toxhFdiAj03eNZEmASQjirLqaB57LmbWKSBGj BcOFjEDqK7w4ceYIYxu5rmfwrJkgesHNqShzYweS9yeMcUHtuEsBexrVwyaBrmww2lmb 1ymUjWX2mQ/FObY/LB6/Wbnvv17i8PX4GHxfGy6zRUh+AiVKwBH/VHFvdDK7E0Rs22tr zN5kbUVkijjhVZdVed/BI1W7+EyzgzDwInDhPRF+UtYPLYCsRslxJgwMFWHX0akopt5B xeGwWVEaDCUjY9E/YX/06mKJfPzgP7fF8tZ3C2QaLLma7S69VCA7L+TzCVKZr9lcK+oi 34xw== X-Gm-Message-State: AAQBX9eINFTdHrlA3t+n5i+TSxZ6YUS26iWCMobSi0qZS9zobJzlePqO KcOm1CZcZ2M3pyLsV6K33dzZq1J79LXBG2tTVno= X-Received: by 2002:ac2:4822:0:b0:4dc:4c53:4466 with SMTP id 2-20020ac24822000000b004dc4c534466mr130401lft.37.1679618445967; Thu, 23 Mar 2023 17:40:45 -0700 (PDT) Received: from localhost.localdomain (abxj225.neoplus.adsl.tpnet.pl. [83.9.3.225]) by smtp.gmail.com with ESMTPSA id n22-20020a195516000000b004eafac09d8esm515579lfe.240.2023.03.23.17.40.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Mar 2023 17:40:45 -0700 (PDT) From: Konrad Dybcio To: u-boot@lists.denx.de Cc: Bhupesh Sharma , Konrad Dybcio , Jaehoon Chung , Peng Fan , Ramon Fried Subject: [PATCH 1/7] mmc: msm_sdhci: Match clocks through "clocks" property Date: Fri, 24 Mar 2023 01:40:34 +0100 Message-Id: <20230324004040.572525-1-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 24 Mar 2023 02:56:41 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean "clocks" is the standard property used in Linux, "clock" seems to be an U-Boot invention. Use the one that's more standardized. Signed-off-by: Konrad Dybcio --- drivers/mmc/msm_sdhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/msm_sdhci.c b/drivers/mmc/msm_sdhci.c index 604f9c3ff99c..174435f01f68 100644 --- a/drivers/mmc/msm_sdhci.c +++ b/drivers/mmc/msm_sdhci.c @@ -63,7 +63,7 @@ static int msm_sdc_clk_init(struct udevice *dev) struct clk clk; int ret; - ret = fdtdec_get_int_array(gd->fdt_blob, node, "clock", clkd, 2); + ret = fdtdec_get_int_array(gd->fdt_blob, node, "clocks", clkd, 2); if (ret) return ret; From patchwork Fri Mar 24 00:40:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 666543 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp236802wrt; Thu, 23 Mar 2023 18:57:10 -0700 (PDT) X-Google-Smtp-Source: AKy350aMQM6CMhufqO5FWJ0HfMlFvpl5ZTqexhykC66HPzyEOSDLayqD9w2BPVuKwjIGxJHJWcMh X-Received: by 2002:a17:902:f08d:b0:1a1:8d4e:a70d with SMTP id p13-20020a170902f08d00b001a18d4ea70dmr701524pla.38.1679623030041; Thu, 23 Mar 2023 18:57:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679623030; cv=none; d=google.com; s=arc-20160816; b=gz94d2gNjNj8lF/OZeWtJeL9A2J1xH/fPzU5H8I5Cs9TCTq6zAd2FNeNAUxjdyd9zV Q1g752yBv+t0wpK1JywFhVXFgtM24IdEtF3SrxLF3n6xC3TZO1SkVW+652WWiSNCWY/T PuU+KPqvFh48dm8cqpdKr31vRx23J22XlwnG1NONV6ERfS1VAkcCcM4QU8iWY9sM13Ii kGDVijqT4a3IAP0cGq3U+kZHoiGPPwBLeHL5dIaRGFXzjgRcZinSKz3Oqa3CgELxZtmV EeeYiOF4EzjnAFTMatbxbIyKyTNvUMXbwtLYFOwKjdGUT/+zJo515Ws4KBkue0eQ8oOV 9VsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=/Gh4QNJ2d5k8ccVED7hPAAQ9NxbvZLc7Ajqlj23PbDI=; b=mV6K9DdpvnQpTrr1iTcfIgQ1ndufQ6oYQ+rA1vsClLWIBgK3oMmBcq2pCnHWSzsTxW bB3XzjiM6K6hkc4YbPGy5BiPmlC33bSDycgyQ/IjkqoxQOzmHE1gWqBzeW+EfNHy+J1U udF4Gz665kfAjPLkVQYqIOWbCrFTov4hhxrXjpHbM9wnviLKNUfY8weTDrQkqJImqRHU YS7H6l4tQToETnG8KtSmG22AH4PkPPKDWir81PACK5fpRuNgBJhMz+JR9HpFNh8aVJYr eIs0kKJk2QVulxALC+7Cg0nf/TnC9I9vcxSMVdL95MRZJBj96JMCbZVUX5OWu09w3aem /qTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NUdX5VH9; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id g5-20020a636b05000000b004fc1f5e387esi20677208pgc.817.2023.03.23.18.57.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Mar 2023 18:57:10 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NUdX5VH9; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 53BB08591C; Fri, 24 Mar 2023 02:56:44 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="NUdX5VH9"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8A6E285723; Fri, 24 Mar 2023 01:40:50 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1128585723 for ; Fri, 24 Mar 2023 01:40:48 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=konrad.dybcio@linaro.org Received: by mail-lf1-x129.google.com with SMTP id q16so165229lfe.10 for ; Thu, 23 Mar 2023 17:40:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679618447; 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=/Gh4QNJ2d5k8ccVED7hPAAQ9NxbvZLc7Ajqlj23PbDI=; b=NUdX5VH9r0f19jiOrnn5xfSto5TCGPnzRyHvHptBcEUrLeJJMiVAoRmGMABOm85gx3 PR47Ck5Tqfuvhp8v5ba51iOg/e9Cp269PBav5lOOcYNsiP9k0sQmaEeI6u0CsSjpNbXC ElCJcm9Q7luaQRCIb0bo4vmAcLf5F2/kx9TKMQsGaEP0YoTPwWzBbdUkQoB1wA1TDh8u WdlxSLQL9KwgegNxjhfxIIOb0rP7rlDn+zPtZrdJqpI0TtbaZf42AzbL2wEbR/4zZSBs 5NgjW5DK2cRlOKEre7lDDsT2Wa4eYf7oGbtuy5g8MnnncQk3jjTMBs8xZkjsmSOxYENa 5ovw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679618447; 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=/Gh4QNJ2d5k8ccVED7hPAAQ9NxbvZLc7Ajqlj23PbDI=; b=4o96uaBz8VOcOQhzL6ohHWpfsufTCO69NGcyIl718MfYlZJE7Z2s4Xrg6Ejq32NxZW d2EkV3KpZdeRB60AYSq1fNTsYzAJfKCQSJPg4SahhnktDpZm/2TUA/a8s4XN7r+uwb2u miAt3MH9c3D1idsZCpBO7Wyzj45YA4jkCo7/Dzt0ZYAR/ZfEhfT2fFXLMD7D/x+xhzAe 4RFha/c59apC7NGoS8Zdq13GsDjDETKyXh5XgqgIo697HLvRHR4jnr728CLQ085JrX7W CQBE9qwcYc4F5JSBZ8/PPCaWBs8xskin7tVGxUGV30OjkHgL+jKfeBEuuO1Yyqn+tpWS yQlQ== X-Gm-Message-State: AAQBX9fGt6HTylS+adh+90guo+Usxi9qmvxnwAhy5bV68IFAbObdWT7R 2ApJkuOgoK6WTnVIHVp05X4ey8A7yPi4rkAM1fw= X-Received: by 2002:ac2:550f:0:b0:4d7:44c9:9f4c with SMTP id j15-20020ac2550f000000b004d744c99f4cmr146466lfk.4.1679618447090; Thu, 23 Mar 2023 17:40:47 -0700 (PDT) Received: from localhost.localdomain (abxj225.neoplus.adsl.tpnet.pl. [83.9.3.225]) by smtp.gmail.com with ESMTPSA id n22-20020a195516000000b004eafac09d8esm515579lfe.240.2023.03.23.17.40.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Mar 2023 17:40:46 -0700 (PDT) From: Konrad Dybcio To: u-boot@lists.denx.de Cc: Bhupesh Sharma , Konrad Dybcio , Ramon Fried , Sumit Garg Subject: [PATCH 2/7] serial: msm: Match clocks through "clocks" property Date: Fri, 24 Mar 2023 01:40:35 +0100 Message-Id: <20230324004040.572525-2-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230324004040.572525-1-konrad.dybcio@linaro.org> References: <20230324004040.572525-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 24 Mar 2023 02:56:41 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean "clocks" is the standard property used in Linux, "clock" seems to be an U-Boot invention. Use the one that's more standardized. Signed-off-by: Konrad Dybcio --- arch/arm/dts/qcom-ipq4019.dtsi | 2 +- drivers/serial/serial_msm.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm/dts/qcom-ipq4019.dtsi b/arch/arm/dts/qcom-ipq4019.dtsi index 6edc69da6747..dee3159e5893 100644 --- a/arch/arm/dts/qcom-ipq4019.dtsi +++ b/arch/arm/dts/qcom-ipq4019.dtsi @@ -87,7 +87,7 @@ blsp1_uart1: serial@78af000 { compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; reg = <0x78af000 0x200>; - clock = <&gcc GCC_BLSP1_UART1_APPS_CLK>; + clocks = <&gcc GCC_BLSP1_UART1_APPS_CLK>; bit-rate = <0xFF>; status = "disabled"; u-boot,dm-pre-reloc; diff --git a/drivers/serial/serial_msm.c b/drivers/serial/serial_msm.c index a22623c316ed..9c370cac323f 100644 --- a/drivers/serial/serial_msm.c +++ b/drivers/serial/serial_msm.c @@ -166,8 +166,7 @@ static int msm_uart_clk_init(struct udevice *dev) struct clk clk; int ret; - ret = fdtdec_get_int_array(gd->fdt_blob, dev_of_offset(dev), "clock", - clkd, 2); + ret = fdtdec_get_int_array(gd->fdt_blob, dev_of_offset(dev), "clocks", clkd, 2); if (ret) return ret; From patchwork Fri Mar 24 00:40:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 666544 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp236875wrt; Thu, 23 Mar 2023 18:57:23 -0700 (PDT) X-Google-Smtp-Source: AKy350bkeTFOggfLuw9/AwxKLM5CbfFXLB2x3mxqTdwFjX2qiC6JEJf+QFBYthuPdQHQsrLIAs7c X-Received: by 2002:a17:903:6c4:b0:19d:1d32:fbe with SMTP id kj4-20020a17090306c400b0019d1d320fbemr854625plb.20.1679623042981; Thu, 23 Mar 2023 18:57:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679623042; cv=none; d=google.com; s=arc-20160816; b=AmPiYK6LRhvnD6spGTLBpcmPEjDUzSvAdaQYOaS6P9eJB6Yie/suy5kFwk9BK07WoN s3aB+glI6IYUKSJEQyT0X+aFkDUfW+TQvyzkwjxWcKNqNX6FNBVkQw7lYYcxVaAJkFOc IZDsem6hOOXMCgGKW5wVRRgn25Br2WcovQjfTTZEMR3uAqOqZMKj4+eB5rSjxHqpKYZ+ NU/SoM9R+l41XYul2vylMDdyNAehZcFFTqbFqAdbn0AUTlIbRtfOY1oumiktwUKb15fd cELcLajK+mUOWk0bKqNhz6T6e4XQV5la/PkuutRXDisP34h5FdkTL0172VzEoAbx36Fg hpnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=QCRAoL0YEfAb2z+xoZsZ9idJhRAviSe1UrSpgOrvZnI=; b=E9EgEm7PhY5gu/s/xAsz9fJZBQKx49A6CkWbPBfP+ImObkwmEJHKDbwcrGM9SN/Y+B 5BG5dNcMAfZ/QEAefdASR3IrGqI2XMg+13jGM2+JiU2AQr6+1Ev6F3nZRUf6ti4GTD3E QpbDkALEiUFnlRqlCrlZ6heehn9A3b68deIjDBZXARfYIJXL2DldHKF8WPTqxQTFw1uh uSoeTsSYpiUagwsstwckSdnc9KGjzO32aC753WYV9Qm7cYNCJ/ZpD6WyIbcuMrJSLLQc Lv41SUINYegvBY3De3U8DF1X8unRkKoa9NxwB9WT0kp3aFh58Os5OVqIxtjnn/qzyubw Jmdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h6fKzy2P; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id s18-20020a170902b19200b0018fae988814si19513815plr.167.2023.03.23.18.57.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Mar 2023 18:57:22 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h6fKzy2P; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B6D7285D38; Fri, 24 Mar 2023 02:56:46 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="h6fKzy2P"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 135BD85D4A; Fri, 24 Mar 2023 01:40:52 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id F2A5C858AB for ; Fri, 24 Mar 2023 01:40:48 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=konrad.dybcio@linaro.org Received: by mail-lf1-x135.google.com with SMTP id s8so174601lfr.8 for ; Thu, 23 Mar 2023 17:40:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679618448; 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=QCRAoL0YEfAb2z+xoZsZ9idJhRAviSe1UrSpgOrvZnI=; b=h6fKzy2Pg+4vFyyjNWX5O2Fze++kpAt2vyYi+45V+nwLxHHvLibxtWEvTA35dv4OUP UscVhg2bV3RajY8ZvnwyWbaU4oVyOtVSd0LHnWPmZWoJPUE1EDWEQR7YvBlyR5HvU3mf l2ap2gHVwRYz1ycQ4Lx/xAkROcScJsfs82WHzRMB1N3CP6ILx3HUe0WSoX19blnpwzBL 2Q3xK/Ah9qDXpCSx9Z3G4urE5SbjJx5aDVcHmRzLM5X1cVKWYauDLJUVu2Sk5D6rSiNC pm5pQf1Zz64h39ODs+RG3o1Sl+c6b3xqhHch4DbAwH7zpJJSjcKtu4PElB2oA8L74Bf9 G9Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679618448; 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=QCRAoL0YEfAb2z+xoZsZ9idJhRAviSe1UrSpgOrvZnI=; b=bPsZBKq2Fp96Ela/2buROkwnoEUtgkTxuA4ZXrC5OfL6JTN3FZShaZFZcZ0cH1/y7F jnxCBsPYR5lD/rIMM0ujtVOIWasUMfd+2dkOFQyhWhhWXVpYwJjbugMT9k8H14/650Fz lKexiXDHXERgXXqt0zXD8vOF1ciHdB/dkoUOjIVrtGOhBdVt/QEwTlK954DL+s5iEWb3 B83t3obRd2vC3zOVK6orpWC7POH9lZ8cUoo6CxU2op2XlbzbS+BmKZcZ9mbZ32aYQvhx CiAkjqiWrPT4OavNNQSV+oF7nYF2t5QL9FGb4epaHYzsmRVIqwsnKyXuNhY3akLPLsb7 uNoQ== X-Gm-Message-State: AAQBX9faydis+Us0MZHpjvkb3cpTcudCrGMKzJU6tHggVpmytezSINXZ FaQtfowOKeGeQyKxzbGStiFmBkxqApvitFg+SYQ= X-Received: by 2002:ac2:558f:0:b0:4e9:6e5c:bec0 with SMTP id v15-20020ac2558f000000b004e96e5cbec0mr110453lfg.53.1679618448013; Thu, 23 Mar 2023 17:40:48 -0700 (PDT) Received: from localhost.localdomain (abxj225.neoplus.adsl.tpnet.pl. [83.9.3.225]) by smtp.gmail.com with ESMTPSA id n22-20020a195516000000b004eafac09d8esm515579lfe.240.2023.03.23.17.40.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Mar 2023 17:40:47 -0700 (PDT) From: Konrad Dybcio To: u-boot@lists.denx.de Cc: Bhupesh Sharma , Konrad Dybcio , Ramon Fried Subject: [PATCH 3/7] serial: msm: Always bind before relocation Date: Fri, 24 Mar 2023 01:40:36 +0100 Message-Id: <20230324004040.572525-3-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230324004040.572525-1-konrad.dybcio@linaro.org> References: <20230324004040.572525-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 24 Mar 2023 02:56:41 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean In preparation for supporting upstream Linux device trees on Qualcomm platforms, make this the default behavior. Signed-off-by: Konrad Dybcio --- drivers/serial/serial_msm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/serial/serial_msm.c b/drivers/serial/serial_msm.c index 9c370cac323f..59a2cf27aaf1 100644 --- a/drivers/serial/serial_msm.c +++ b/drivers/serial/serial_msm.c @@ -251,4 +251,5 @@ U_BOOT_DRIVER(serial_msm) = { .priv_auto = sizeof(struct msm_serial_data), .probe = msm_serial_probe, .ops = &msm_serial_ops, + .flags = DM_FLAG_PRE_RELOC, }; From patchwork Fri Mar 24 00:40:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 666545 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp236926wrt; Thu, 23 Mar 2023 18:57:36 -0700 (PDT) Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=degDacmI X-Google-Smtp-Source: AKy350aSWysCS41HYnLFwkkuZ8gVRM7fWiduD3yaZmSm4o2l8yOHn8HgjOvY8UpY/s7PNv118rPY X-Received: by 2002:a17:90b:3ece:b0:23f:6edd:41da with SMTP id rm14-20020a17090b3ece00b0023f6edd41damr1003446pjb.29.1679623056636; Thu, 23 Mar 2023 18:57:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679623056; cv=none; d=google.com; s=arc-20160816; b=IjT4CZ2i8letCROS36RKcfC7oj7ZUUWG2EdJDs9HfNMRxIzxTJDJbYP+cLvIP5sERD PI8uIxpVLIRNcPShotbhvgt3ZRz2z4K6fcPHdVtaFXpP4mKTf3ju/0IiPth8NbgRX8j3 U+751RFWBqTZST65OUL5h9a72g/dgi6CiLmb7G8/B7XrVJr6uHgDPPtuPFaqAY4/wXuy ZNg1t7E8B/rKAR36PjgwJI02fJOq6t2tZneTGINTkedsvrFFYHlFHgXF49I840T99Te0 yMXo7E+i8NI7j9Cj2c6gQfJYMgXF+03IK2EzOWkEi82PTVbpqp19rT9Wuu0S659/aF1W LxuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=N/ltdFkesiZaKS0GP934sDvrrnE5dtPM7cEr3mol+K0=; b=onHnUCIBm4jXaSS4Xsz+q6mft27JxIjnqRQnJhFoc+N1gDxSvUMiH86jgaJhuNS0zt XQYNQF0AHMLOhaxNpas25dzFldSPeIcxnucRna0hXj0F5eeeIkBlD6RRMOaBKFHszEXf uaJP5VH5hXEj5qRM3zJq2Pq7g+zfpyyGHX1Mwjb2aH12ObHZUt1gel4i0JFrLULt62BY qC6OoLI7UBQYWNFpfM2mN43DAlspkXdDo47fwRS1RxtxJgbPYWssTaHc4v2XrGAw7kf/ 7tuyp6pbEMM+naLDTP0DEi42u49S59KRpbFFkbRiJyP/sqnOjg2hhpF48lx0St1UYRw/ IpMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=degDacmI; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id 11-20020a17090a0f8b00b0023af4ee47dasi3012010pjz.65.2023.03.23.18.57.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Mar 2023 18:57:36 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=degDacmI; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4AAAD85D76; Fri, 24 Mar 2023 02:56:49 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="degDacmI"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0955585CB7; Fri, 24 Mar 2023 01:40:55 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B467285CB0 for ; Fri, 24 Mar 2023 01:40:50 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=konrad.dybcio@linaro.org Received: by mail-lf1-x136.google.com with SMTP id c29so196679lfv.3 for ; Thu, 23 Mar 2023 17:40:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679618449; 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=N/ltdFkesiZaKS0GP934sDvrrnE5dtPM7cEr3mol+K0=; b=degDacmItxZlRkGoyQ9zaB9x37NQI7VSmVw9q7iM+jr2QbYckxK/ahjgRS/XpPzGH3 GL0EfoBweETufUDAAel9mnFw154CtS/3iDctNQ0XjtRJES66lD1RRniJ+DY63UuDqhr+ eULZMXCJIpLfYXO/kva822Tvox2i72G4iE0Y3fYRNLEiycCxkuEsKounljdfSSouMywK K5rlS/c8vgcFbvlT5ljmh0tw/C+eHp67kiW8bCQFRUCx/zbd0dSLm15FQaw42W38yHG0 nqehywiNACKXEQW0EZcU9iIQKQLBBP5JH7cMLkwwj3LCIT0Fisq2xAeqC0sicbFf3KM7 ZKpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679618449; 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=N/ltdFkesiZaKS0GP934sDvrrnE5dtPM7cEr3mol+K0=; b=02+E+EUJXwmyQ0MwVOJT9PMtTZW5/5a3KkAcbQ8q65FW9tl73/bCaj4zHlhtt1PlHD c+UeJqWa9jGy837itPhGQpY8mGcN0qZv+yeLS8K8jBhw66rtcdPPtu1S5PE4TlYJQqx8 eF935iYY3dhCKixGXH+da6DMk2MFHkRPq8/juieXDjVyjoub0LzN7vDUVfY8bq4OK/zF 8UJ58iCHwhiq+VReHD7cduEfVjxrRIkOdXVEi8evr8zIJ43k8THo7ZmoX9eRuNBRT7uZ pkWVlLIsWAMVnyZ6iQ7Ep6A01edqvffGYFGyYH6nMNXB49uBeU6Vfzai8Bif8dxT9bEl VT1A== X-Gm-Message-State: AAQBX9foTIj+QJ+wvPkVxLgBiN/DsLGpXAPOJ1vD2k5OlvvQSVNpzzIy 8Sa9fPB8G2WYW/ofGpr95NpTllIJnN2MYDh8CD4= X-Received: by 2002:ac2:5291:0:b0:4cb:2aa:9e58 with SMTP id q17-20020ac25291000000b004cb02aa9e58mr151601lfm.13.1679618449653; Thu, 23 Mar 2023 17:40:49 -0700 (PDT) Received: from localhost.localdomain (abxj225.neoplus.adsl.tpnet.pl. [83.9.3.225]) by smtp.gmail.com with ESMTPSA id n22-20020a195516000000b004eafac09d8esm515579lfe.240.2023.03.23.17.40.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Mar 2023 17:40:49 -0700 (PDT) From: Konrad Dybcio To: u-boot@lists.denx.de Cc: Bhupesh Sharma , Konrad Dybcio , Alexey Brodkin , Alison Wang , Andy Fleming , Angelo Dureghello , Bin Meng , Daniel Schwierzeck , Marek Vasut , Mario Six , Mateusz Kulikowski , Michal Simek , Nobuhiro Iwamatsu , Priyanka Jain , Ramon Fried , Scott McNutt , Simon Glass , Stefan Roese , Thomas Chou , Tom Rini , Wolfgang Denk Subject: [PATCH 4/7] arch: snapdragon: clock: Always bind before relocation Date: Fri, 24 Mar 2023 01:40:37 +0100 Message-Id: <20230324004040.572525-4-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230324004040.572525-1-konrad.dybcio@linaro.org> References: <20230324004040.572525-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 24 Mar 2023 02:56:41 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean In preparation for supporting upstream Linux device trees on Qualcomm platforms, make this the default behavior. Signed-off-by: Konrad Dybcio --- arch/arm/mach-snapdragon/clock-snapdragon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-snapdragon/clock-snapdragon.c b/arch/arm/mach-snapdragon/clock-snapdragon.c index 0ac45dce9a92..d1af5d1fec7d 100644 --- a/arch/arm/mach-snapdragon/clock-snapdragon.c +++ b/arch/arm/mach-snapdragon/clock-snapdragon.c @@ -178,4 +178,5 @@ U_BOOT_DRIVER(clk_msm) = { .ops = &msm_clk_ops, .priv_auto = sizeof(struct msm_clk_priv), .probe = msm_clk_probe, + .flags = DM_FLAG_PRE_RELOC, }; From patchwork Fri Mar 24 00:40:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 666546 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp236984wrt; Thu, 23 Mar 2023 18:57:50 -0700 (PDT) X-Google-Smtp-Source: AK7set9WCkMyMcixMrscuWpQscu/R1fgJvv9uik16kuafbITOyFrh+9xuWWBhyolHPyV2B8LxlOI X-Received: by 2002:a05:6a20:1b17:b0:d9:ab8b:9f4b with SMTP id ch23-20020a056a201b1700b000d9ab8b9f4bmr1274480pzb.46.1679623070464; Thu, 23 Mar 2023 18:57:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679623070; cv=none; d=google.com; s=arc-20160816; b=yDeIKF8Pwngox27rL65ck3JzaVsv6U7Aqm3hejjWjo7PTogvGaT/x73e+n2r/1P6N7 4V1XJrYEc1UYVP03OLG3eeDu8KvBvIxnIyXqJo5+m8jCkrWIxhwHbsOFCDy/pHv5tHvV ZDLopKlk0l23vSd+Hxusg9hJKir5Nz5PZFuSN7JxXMe4Woo24a8n8K8fxBn2UioBsn2d ZlR7b2zeDpeeO67iQXmMbT8OZpWSuzUVuHGDRnsXJksFkFqogER9Qw3N2pTyyD2bHUXC +5+7tFIchKDVNYQ/pVChRNX8xWJc5za8sDqDqL9PBwTIpVML6abg/k/qYujkVbomy/c7 1Gqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=mME3MmAyluqe/2EXoAWBl0gO57WLyO/IUGzHbGJzqQ4=; b=0uoYiSe7brXiw5+Fh/H/ZkKsPfmWGjAsEOSXGKokKPOEcPgpcmicw5z9Ny8OEgVDEF zLhWh2L9vEvcYtzh4lyHsSnpUmPhDhNz7ZzER8BUFhtzfqsZecVVxx1gdpbu+ZvBY4+0 BSegH3k0vJIhIPkb0NFQx96FaorQ0c6JgI+d/EHoyX6uU7v6u+5mF1uscKP19t+Ae5sF 3GUMKzo4PVebxZPmcMaLA8+rHeAgZ2QXdHt118YyoDjDpGDojLrLjeidhBatIueEiqnF 99XnVmmlfTQ5FHvQqk3ixO91pIOjoK9+FF09ucyFmNUY57tuL+Afg0N+zVRpxXhxiPC8 2ifQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eWOchlHO; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id j36-20020a634a64000000b005030eb175d1si9271296pgl.107.2023.03.23.18.57.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Mar 2023 18:57:50 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eWOchlHO; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6F8BD85CF6; Fri, 24 Mar 2023 02:56:51 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="eWOchlHO"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 083B485D62; Fri, 24 Mar 2023 01:40:55 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 27B2785CB7 for ; Fri, 24 Mar 2023 01:40:51 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=konrad.dybcio@linaro.org Received: by mail-lf1-x130.google.com with SMTP id br6so160453lfb.11 for ; Thu, 23 Mar 2023 17:40:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679618450; 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=mME3MmAyluqe/2EXoAWBl0gO57WLyO/IUGzHbGJzqQ4=; b=eWOchlHOph82FdE3vgjI4IIaM+KghCTYoSPQLpf6dP2C7WlMYNA9fGn2trR+OIBOrW ou9GfCs9xPdrfGk2VOh9DiaH2xyu7Bo4UATeUB+r/lI7cf0GUVRNkWAb7PHhIEqhmKlK owkHG6f51CF9JK0UmjOZSg97LY6ezN1wtKQyl5ckZr8B8n4X9v8DBrADETtShdTNESE1 jqROUenrGN9o+AmyKRm3Gs0ttSO5jbL5m+pdsM0CS2XH90kUcj6Fq9dTwhjlu/IlIW+J DJuC+t9J5KPKX9r7qkGpCJoI3oHYENDZxP1YCJWarrc51slTeq3WOMfLOwF/YrDLtwdO +u/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679618450; 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=mME3MmAyluqe/2EXoAWBl0gO57WLyO/IUGzHbGJzqQ4=; b=tfSsovUkkeXoHa2koM3NbDHh0sHW3MwfKdPEaaH6D//5eY5L8/Ikh6U4KqayuxuUrk AMdeQb3cIlIf401J2enPWXF0xKhvHdkwnscf0Ity8jRixLCVeyL03FCHQL9WznwzuClr 0ccTD5mOYbNiPSiK4ROhD8Z87PkSfulBo3Q/4nqV620OObp3sH7ULSBA52lPaqax1eiD JW/GEp5iXtLjgWr/6rHWgm2c1ejzOAtaut9vlbZCG8gE0OsncBzs9g4EPDoNHUu+iIz2 eOjPjnovFxM8tvzu4Dpp3NGzr1r5kJ6boPTkAq22Ed8P0WpEvhpP4GW7CflQCq5p/GEU 1EOA== X-Gm-Message-State: AAQBX9c1NGfD0ATeJB6bf3UcTR6WHfbGXX984JMzQZ5bmf72Pw3eUUHQ 5vvaSNl2a0ct8ezvfku6u7PY6oSYPqiS4ISvlUc= X-Received: by 2002:a19:f00a:0:b0:4dd:840d:462 with SMTP id p10-20020a19f00a000000b004dd840d0462mr242294lfc.21.1679618450639; Thu, 23 Mar 2023 17:40:50 -0700 (PDT) Received: from localhost.localdomain (abxj225.neoplus.adsl.tpnet.pl. [83.9.3.225]) by smtp.gmail.com with ESMTPSA id n22-20020a195516000000b004eafac09d8esm515579lfe.240.2023.03.23.17.40.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Mar 2023 17:40:50 -0700 (PDT) From: Konrad Dybcio To: u-boot@lists.denx.de Cc: Bhupesh Sharma , Konrad Dybcio , Mateusz Kulikowski , Ramon Fried , Tom Rini Subject: [PATCH 5/7] arm: snapdragon: pinctrl: Always bind before relocation Date: Fri, 24 Mar 2023 01:40:38 +0100 Message-Id: <20230324004040.572525-5-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230324004040.572525-1-konrad.dybcio@linaro.org> References: <20230324004040.572525-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 24 Mar 2023 02:56:41 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean In preparation for supporting upstream Linux device trees on Qualcomm platforms, make this the default behavior. Signed-off-by: Konrad Dybcio --- arch/arm/mach-snapdragon/pinctrl-snapdragon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-snapdragon/pinctrl-snapdragon.c b/arch/arm/mach-snapdragon/pinctrl-snapdragon.c index 826dc5148661..9f261d70e4d3 100644 --- a/arch/arm/mach-snapdragon/pinctrl-snapdragon.c +++ b/arch/arm/mach-snapdragon/pinctrl-snapdragon.c @@ -163,4 +163,5 @@ U_BOOT_DRIVER(pinctrl_snapdraon) = { .ops = &msm_pinctrl_ops, .probe = msm_pinctrl_probe, .bind = msm_pinctrl_bind, + .flags = DM_FLAG_PRE_RELOC, }; From patchwork Fri Mar 24 00:40:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 666547 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp237035wrt; Thu, 23 Mar 2023 18:58:04 -0700 (PDT) X-Google-Smtp-Source: AKy350ZtncrrDLUp/4R2Da8TPx7MUuxdDErxsPQNw3I3nQYLgO85G5x/Vru1L0MKIqoj+DcAz0fV X-Received: by 2002:a17:902:cad5:b0:1a1:c98c:bd4d with SMTP id y21-20020a170902cad500b001a1c98cbd4dmr704810pld.38.1679623084355; Thu, 23 Mar 2023 18:58:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679623084; cv=none; d=google.com; s=arc-20160816; b=JtP5nGH6punald5gSRXP/Z3g65REToewCLCi8Rt53oUPwA8gjREMPSiQ+TMcX8N1OX vNIULV6CdBeb6j/1o/RjlqNADpbXVcAhsEYLkbq+StfdbC1o8k4pMgud/HwPB5goBjaw CTddJchQCHXj5YaCw6ajrmoH3CjsBU2ZCfyzs/zhzxzPwsbDrz9uCWsVV5xG4DZdpQDH QsrKlkp90KVnSjLamEjVDz54LDHwwQPQYBTTMm0r+C6eNHxfhw0XVZMk8m7D5BnAKSuA o/VHd34xYHnrkwrJuKy2dipk25LjF3rnFTWaHnFSnVu+7d9/FX2SNFBazIrnperjSh1E erFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=V4GKtaJyBt4LMKozmGMAKfwPHd/XKniukae36FoeEP0=; b=B0N6Goagxf2r8vWCXAcwKq1ZY4fyJg4KAg7BdH71ovixLwmSGgH7ALGwrm/3vFSwFY jzL8r4PI9P4BN1/1/216oV8A2eKS4ir9atR1y8YBkVlJOkluWtBrKkYcwCeIrb8WWix/ ZRvAX8nOAGS1sk/rvAsDTwaDDON6pa7UWt6lfNCUw4uzY6Ak9G/e32osBFH0cQGP/w9q DI0zuMCA18LlA2nPt23AhSI1Id1D1BgqW1yBurPRIwZaZY+5C3T/mfAM1ZsOsDsiATt6 XkhICOHz0qRGyu6goDvQHfHASTB2JZ8LoGXX+T3SrspTTjXkgP0W+3mgImC5bB8dg2Mo l34A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZrXXKM3Q; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id 134-20020a63028c000000b0050fa029676fsi9418803pgc.774.2023.03.23.18.58.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Mar 2023 18:58:04 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZrXXKM3Q; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 31EB985D8D; Fri, 24 Mar 2023 02:56:55 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="ZrXXKM3Q"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 67C7885723; Fri, 24 Mar 2023 01:40:55 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B0690859D6 for ; Fri, 24 Mar 2023 01:40:52 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=konrad.dybcio@linaro.org Received: by mail-lf1-x133.google.com with SMTP id g17so192257lfv.4 for ; Thu, 23 Mar 2023 17:40:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679618451; 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=V4GKtaJyBt4LMKozmGMAKfwPHd/XKniukae36FoeEP0=; b=ZrXXKM3QGe2cVhMh5H9LxN/1GQEWc/BYqTBUwLrWqTVGSOpTChk6RGaQ06ahM17gNB rq4d5C4kOZI08uKb2f8RbiT4Q7JmezkP4G9h45Yi8allr429r+YHb1trxC1lJ8SUbmHi v2zPfa/WZp3hQGTkFlLTfk7/yIfvoSrxbLshiaqsazh0yNA5C2LQef1JHbVaypdjr8iw i+yOYnx/qzXmPMzZlQmEmMfIocClkQ3KUKOobhaYvFVu+teSU6n5n5wE04QtVIfv1iB7 M5thPxYrV8+bBDdBkMX99TT2Lkzaw7o7KK9AlcYsgcybGy1u9VTvx36xsLbz0JnpE3Ux 1SAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679618451; 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=V4GKtaJyBt4LMKozmGMAKfwPHd/XKniukae36FoeEP0=; b=w6jz/+7Q1EFURlKR/XZLzP6jxDlXbNIDdksxr1nkZSb7H2pES3EkJLlya1GavOrlrY wGP8zpB37oPq9pVTXMb1aFqc47UwTm5BTvf/wbxMlsEx8I+2PP1REe4QZuCdO24lg7f3 qWtCXG4ex+jYK4fnU5obrZKZ+898AfNADvl96dc3XsGGszKX5UXkMSw6O+BKU0xY/GZm xRlBL0AJbzpB61wVLT9uXIPEt7jsBlpGwqaM0n8+GNh9Xoh4F5IC7nUzrB8pqeWUTWEn 9mIsM5JuUfvWpUyz6qBMPSlVECYbsZm4h+NG5phDADfFNXsSk3pj2VRlBwBB7ff/GVse 24gQ== X-Gm-Message-State: AAQBX9djVOA7R1Y22X6XU/AYWRTwi4N0eRRtZNL70ZCmiiZaerf2F2Yk 61MQatAZEGCFP+Q23jRkiNHWoxTfmWwGjUMe/U4= X-Received: by 2002:a05:6512:4003:b0:4e7:ff1c:6030 with SMTP id br3-20020a056512400300b004e7ff1c6030mr2271494lfb.15.1679618451801; Thu, 23 Mar 2023 17:40:51 -0700 (PDT) Received: from localhost.localdomain (abxj225.neoplus.adsl.tpnet.pl. [83.9.3.225]) by smtp.gmail.com with ESMTPSA id n22-20020a195516000000b004eafac09d8esm515579lfe.240.2023.03.23.17.40.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Mar 2023 17:40:51 -0700 (PDT) From: Konrad Dybcio To: u-boot@lists.denx.de Cc: Bhupesh Sharma , Konrad Dybcio , Dzmitry Sankouski , Ramon Fried , Sumit Garg Subject: [PATCH 6/7] serial: msm_geni: Use upstream Linux bindings Date: Fri, 24 Mar 2023 01:40:39 +0100 Message-Id: <20230324004040.572525-6-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230324004040.572525-1-konrad.dybcio@linaro.org> References: <20230324004040.572525-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 24 Mar 2023 02:56:41 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean The name "se" is used in upstream Linux device trees and has been for ages, long before this U-Boot-ism was introduced. Same goes for the existing compatible. Get rid of that. Signed-off-by: Konrad Dybcio --- arch/arm/dts/sdm845.dtsi | 4 ++-- drivers/serial/serial_msm_geni.c | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/arch/arm/dts/sdm845.dtsi b/arch/arm/dts/sdm845.dtsi index 607af277f8be..92bdc82177d6 100644 --- a/arch/arm/dts/sdm845.dtsi +++ b/arch/arm/dts/sdm845.dtsi @@ -52,10 +52,10 @@ }; debug_uart: serial@a84000 { - compatible = "qcom,msm-geni-uart"; + compatible = "qcom,geni-debug-uart"; reg = <0xa84000 0x4000>; reg-names = "se_phys"; - clock-names = "se-clk"; + clock-names = "se"; clocks = <&gcc GCC_QUPV3_WRAP1_S1_CLK>; pinctrl-names = "default"; pinctrl-0 = <&qup_uart9>; diff --git a/drivers/serial/serial_msm_geni.c b/drivers/serial/serial_msm_geni.c index 3943ca43e49e..6c9371c4e69d 100644 --- a/drivers/serial/serial_msm_geni.c +++ b/drivers/serial/serial_msm_geni.c @@ -189,7 +189,7 @@ static int geni_serial_set_clock_rate(struct udevice *dev, u64 rate) struct clk *clk; int ret; - clk = devm_clk_get(dev, "se-clk"); + clk = devm_clk_get(dev, "se"); if (!clk) return -EINVAL; @@ -554,7 +554,9 @@ static int msm_serial_ofdata_to_platdata(struct udevice *dev) } static const struct udevice_id msm_serial_ids[] = { - {.compatible = "qcom,msm-geni-uart"}, {}}; + { .compatible = "qcom,geni-debug-uart" }, + { } +}; U_BOOT_DRIVER(serial_msm_geni) = { .name = "serial_msm_geni", From patchwork Fri Mar 24 00:40:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 666548 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp237092wrt; Thu, 23 Mar 2023 18:58:18 -0700 (PDT) X-Google-Smtp-Source: AK7set99hq7tr+JSbvUXqoFVQ1b9sPeUbObnP+kLZORM/6U9L9XdUcQvhRtdbGUcljF963Z30n3K X-Received: by 2002:a05:6a20:2d99:b0:d5:b3d1:bff9 with SMTP id bf25-20020a056a202d9900b000d5b3d1bff9mr1180032pzb.52.1679623097941; Thu, 23 Mar 2023 18:58:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679623097; cv=none; d=google.com; s=arc-20160816; b=EgVz73WJaoQGvyONoApejIGhucbH/kSsOWzNtrgGojiOc50clg6yUSLJfMeJLf1CsW mrx4oaYPMc2av77bwFghxtiFO7JLDkG7TPfCscfJdEBsuIr8hB9LECKEHB6FSuidF1Q3 AZAtjLpv1VBuVmJcGtSfYf1lBY6GaESyxA2NQSQZ1zSPDt/bl+fWtmq3NeqbDOO97N5o u0oYDGoif7xMMAxKzI+5kJniqbR3KxBn5ETu9BmCrmDhfLIjw7b1haemF6RIjcABQuug sqGmwfdWRc7jalDvRKOqIVDHOG6r9ko1RJ9z6P+OhQMjSFXmZM1dAF3MYa3iDwrQYP22 28ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=nDB1XHpohezTZk244V5Qt1EqPfvozByVCzfTcPgZQes=; b=FAX1eHKi3mUGeXh8VRA4cdlrVyg3m4Pt9IzBQG2WXXbirF+ahiFZzsF2npNFAru1xH ciWiPjiDNoVYcWrZy3PW+CRw9Sr/Xp5UOCjQupKAiO7lrMRWfSEyPykAyblh9fwjlxJA CpE8Xop8Wle/WZhjbyCDVw6C84MEraJLm3k1k9dTY+xY95Da5lQGBOsBSNCxdTQJeUWF Z4mbFHIs+ff0EQ+ART4uUcknSDvSf5/td8fn4w+oC9825XYrhFx2fSt9JnhIBav5x3vN QXXQhc97uGgklKrGiNbFMVpTA1hhnkG06lZ0hSAZhEMD0YvhsShEQS7CYR3ciHoBi0Ev 8Q0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pm++vHhJ; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id h2-20020a056a00170200b00623b50eb7d0si21976474pfc.214.2023.03.23.18.58.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Mar 2023 18:58:17 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pm++vHhJ; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DC37385D99; Fri, 24 Mar 2023 02:56:57 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="pm++vHhJ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9E737859D6; Fri, 24 Mar 2023 01:40:56 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id BFA4985AA2 for ; Fri, 24 Mar 2023 01:40:53 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=konrad.dybcio@linaro.org Received: by mail-lf1-x135.google.com with SMTP id h25so183951lfv.6 for ; Thu, 23 Mar 2023 17:40:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679618453; 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=nDB1XHpohezTZk244V5Qt1EqPfvozByVCzfTcPgZQes=; b=pm++vHhJAF1H+ZscYkNkcnKvpn2J72tBQYD3uMepN5EuauMxAw7Rr5+y2XBpagCOy2 w4Ke4hRwnpMQED5+sEj6LMDX2UkGFZ5SD3u2RFAXkBuI1kQAjmGz15quw96fTrDDkOti NHV7fOiiN5uUsLumkDUxShQsPW4fWu01rJtFyBFCEmip2axligj/bHtM24Br+fuWQ59R Yufh3FHTePdQGEwfnAC86/iEJ7Ze+bcLoX9Moj5iaGd8cLKmb/KLwUYnKacZwHcnzhO4 0/h2nDEO3j6fnpxNbfRjaBz5z8tWzrmphA1VHvlvV2MpYyxwYE8QRT6U266B97W6YEIx XN5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679618453; 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=nDB1XHpohezTZk244V5Qt1EqPfvozByVCzfTcPgZQes=; b=6DOak8afhp/syLWRn2aFfukHSaXAXp9d7OM1NpATZt/bbHN5PQ8c6dzR9j/8rxTM7m 0XT4OrsR3aSGavvkm1nMDIbTy1x61RrxcoNXpYQUVkRTpdEOkr1P+jpXwSfXwpzAt94H OEG3kIwEXM0eYiuRRzXgiNZr4q4p89fu9lyqgYzSaxoGJQGPGfKIOXG/1eBvDGvue0WG J+kEP9FdFJ8kdYwpItMSqiYKJ6llPT0aPzSAFaYBD8zJMhMd/6XWEeZnlMxrjHvgXNVn 8/WHS2iqyjurIS/2gSjm74UB2HBEqMywFUlh9jG0xbsmUGrg9tc9MlG0/CO3cKRsR2C2 DvFA== X-Gm-Message-State: AO0yUKXsAbSneVWGi581ImzeNnUwk9mpZGX6u0jJO7FtO+hb1cTqDW+4 uF6hloJlPOkJl1uZKX8URduVOrE7P4q3PZExdEw= X-Received: by 2002:a05:6512:104a:b0:4d8:86c1:4774 with SMTP id c10-20020a056512104a00b004d886c14774mr2539154lfb.9.1679618452846; Thu, 23 Mar 2023 17:40:52 -0700 (PDT) Received: from localhost.localdomain (abxj225.neoplus.adsl.tpnet.pl. [83.9.3.225]) by smtp.gmail.com with ESMTPSA id n22-20020a195516000000b004eafac09d8esm515579lfe.240.2023.03.23.17.40.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Mar 2023 17:40:52 -0700 (PDT) From: Konrad Dybcio To: u-boot@lists.denx.de Cc: Bhupesh Sharma , Konrad Dybcio , Dzmitry Sankouski , Mark Kettenis , Simon Glass , Tom Rini Subject: [PATCH 7/7] arm: Migrate Apple M1 to save_prev_bl_data Date: Fri, 24 Mar 2023 01:40:40 +0100 Message-Id: <20230324004040.572525-7-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230324004040.572525-1-konrad.dybcio@linaro.org> References: <20230324004040.572525-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 24 Mar 2023 02:56:41 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Mark's and Dzmitry's approaches come down to the same thing.. Let's unify them by first removing the static keyword from the common file to allow the variable to be reused, then renaming "reg0" to the more sensible fw_dtb_pointer coming from the Apple file and finally remove the mach-apple implementation of this very thing and enable the common approach in the respective defconfig. Only build-tested. Signed-off-by: Konrad Dybcio --- arch/arm/lib/save_prev_bl_data.c | 14 +++++++------- arch/arm/mach-apple/Makefile | 1 - arch/arm/mach-apple/lowlevel_init.S | 17 ----------------- configs/apple_m1_defconfig | 1 + 4 files changed, 8 insertions(+), 25 deletions(-) delete mode 100644 arch/arm/mach-apple/lowlevel_init.S diff --git a/arch/arm/lib/save_prev_bl_data.c b/arch/arm/lib/save_prev_bl_data.c index f7b23faf0d66..a127fec1f149 100644 --- a/arch/arm/lib/save_prev_bl_data.c +++ b/arch/arm/lib/save_prev_bl_data.c @@ -15,7 +15,7 @@ #include #include -static ulong reg0 __section(".data"); +ulong fw_dtb_pointer __section(".data"); /** * Save x0 register value, assuming previous bootloader set it to @@ -23,7 +23,7 @@ static ulong reg0 __section(".data"); */ void save_boot_params(ulong r0) { - reg0 = r0; + fw_dtb_pointer = r0; save_boot_params_ret(); } @@ -51,24 +51,24 @@ int save_prev_bl_data(void) int node; u64 initrd_start_prop; - if (!is_addr_accessible((phys_addr_t)reg0)) + if (!is_addr_accessible((phys_addr_t)fw_dtb_pointer)) return -ENODATA; - fdt_blob = (struct fdt_header *)reg0; + fdt_blob = (struct fdt_header *)fw_dtb_pointer; if (!fdt_valid(&fdt_blob)) { - pr_warn("%s: address 0x%lx is not a valid fdt\n", __func__, reg0); + pr_warn("%s: address 0x%lx is not a valid fdt\n", __func__, fw_dtb_pointer); return -ENODATA; } if (IS_ENABLED(CONFIG_SAVE_PREV_BL_FDT_ADDR)) - env_set_addr("prevbl_fdt_addr", (void *)reg0); + env_set_addr("prevbl_fdt_addr", (void *)fw_dtb_pointer); if (!IS_ENABLED(CONFIG_SAVE_PREV_BL_INITRAMFS_START_ADDR)) return 0; node = fdt_path_offset(fdt_blob, "/chosen"); if (!node) { pr_warn("%s: chosen node not found in device tree at addr: 0x%lx\n", - __func__, reg0); + __func__, fw_dtb_pointer); return -ENODATA; } /* diff --git a/arch/arm/mach-apple/Makefile b/arch/arm/mach-apple/Makefile index 50b465b9473f..a775d8866ad4 100644 --- a/arch/arm/mach-apple/Makefile +++ b/arch/arm/mach-apple/Makefile @@ -1,6 +1,5 @@ # SPDX-License-Identifier: GPL-2.0+ obj-y += board.o -obj-y += lowlevel_init.o obj-y += rtkit.o obj-$(CONFIG_NVME_APPLE) += sart.o diff --git a/arch/arm/mach-apple/lowlevel_init.S b/arch/arm/mach-apple/lowlevel_init.S deleted file mode 100644 index e1c0d91cef2c..000000000000 --- a/arch/arm/mach-apple/lowlevel_init.S +++ /dev/null @@ -1,17 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ -/* - * (C) Copyright 2021 Mark Kettenis - */ - -.align 8 -.global fw_dtb_pointer -fw_dtb_pointer: - .quad 0 - -.global save_boot_params -save_boot_params: - /* Stash DTB pointer passed by m1n1 */ - adr x1, fw_dtb_pointer - str x0, [x1] - - b save_boot_params_ret diff --git a/configs/apple_m1_defconfig b/configs/apple_m1_defconfig index b4ecf73cbc78..eb0addb741c5 100644 --- a/configs/apple_m1_defconfig +++ b/configs/apple_m1_defconfig @@ -3,6 +3,7 @@ CONFIG_ARCH_APPLE=y CONFIG_DEFAULT_DEVICE_TREE="t8103-j274" CONFIG_SYS_LOAD_ADDR=0x0 CONFIG_USE_PREBOOT=y +CONFIG_SAVE_PREV_BL_FDT_ADDR=y # CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_BOARD_LATE_INIT=y