From patchwork Wed May 15 08:00:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emanuele Ghidoli X-Patchwork-Id: 1935366 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=SIH1Po19; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VfQg42NpPz1ydW for ; Wed, 15 May 2024 18:02:08 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5AD0B881B8; Wed, 15 May 2024 10:01:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com 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=gmail.com header.i=@gmail.com header.b="SIH1Po19"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AFAEE88247; Wed, 15 May 2024 10:01:54 +0200 (CEST) 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,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) (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 EAAD4881D6 for ; Wed, 15 May 2024 10:01:50 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ghidoliemanuele@gmail.com Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-a59cdd185b9so187836666b.1 for ; Wed, 15 May 2024 01:01:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715760110; x=1716364910; darn=lists.denx.de; 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=1K6AII+H+f4XuHfe77Qp2nz5nk4jATnwOptqvUbjmo8=; b=SIH1Po19iMgQdZeSaMyw+LvS9BM1LLFUn2hT4nI+xCEjWbgRHFqZ8mEA2LZvbWQRxb kw9I8TRo5n2Pv9bZilqxo18dfNw2ei0Elz+7SwplM6WhCcxIwFzizNscI1LEq9OIbmqE 8u/iDmsYzlnIksdGSreESXQHJW4cRm2k/d5JwV3xIkcFWCVvYxYLAptAILO13yFnctsC gOzK1klL22YlfVoWk2Ykej21SSCKPqHCZksuokqKZ3y9bUri5V7Ks3WCp777KfM8DBWL MDxjEuv+PzypOok3mUOX6QN3aXM13TbF2a/tMHMu0yi+SdpLvL/5gjhJy7bkPiAOAhSV 2/8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715760110; x=1716364910; 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=1K6AII+H+f4XuHfe77Qp2nz5nk4jATnwOptqvUbjmo8=; b=duRa/kojf3xsho2EgfWUZdo2QXdw/QA/tjB9fA67rra/4Qz4ChgdkoPplo9zmnxUCZ HKl6VUAOWIfffjy8VmLh+EQtu8fLnuT3lc3xITRvYL6bp6Gv3twjXko4JJgmFArZpn63 TWaPRltVTWrhfg2pp4Wrjtc33Cm6IJC169kP+WmTweNuLfN5yGxSfxdvg+ANkM88bzSs CGY4HMYoXfQnOWayacf+D38fI9dMCFvALELSTvQ/2V3xjSFEYxXdC+vup31Bz/xn6b9i qBgBI5+cnX6fRvaTcxwNluLZpQcv49kTgYc2P06yEPLxkgtnPx6qXXXGy6OzUKkhEdPz rFSg== X-Gm-Message-State: AOJu0Yyyv03MejFKsWgzXhMKwjIZ+eEpSHWXMpALu7CGAf5qJAWgwwsD gi+rCzZ5Gk8vLmD9dVa13bT+TDMCHPHjhGS3lXa2hqalnz9ZGhXRVZu8+g1nYEI= X-Google-Smtp-Source: AGHT+IEkDHlI6FDHdvPRTljBcEkaHJTB9rf5XCOSVbTWSXzZyGeRGNo+MY7RH1RdqxSLi/1jzVWsWg== X-Received: by 2002:a17:906:6a22:b0:a5a:5bc8:9fcf with SMTP id a640c23a62f3a-a5a5bc8a0c9mr960568966b.36.1715760109780; Wed, 15 May 2024 01:01:49 -0700 (PDT) Received: from emanuele-nb.corp.toradex.com (31-10-206-125.static.upc.ch. [31.10.206.125]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a17b01472sm823804966b.159.2024.05.15.01.01.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 01:01:49 -0700 (PDT) From: Emanuele Ghidoli To: u-boot@lists.denx.de, Tom Rini Cc: Emanuele Ghidoli , Marcel Ziswiler , Francesco Dolcini Subject: [PATCH v1 1/2] arm: dts: k3-am625-verdin: Update autogenerated LPDDR4 configuration Date: Wed, 15 May 2024 10:00:57 +0200 Message-Id: <20240515080058.1530985-2-ghidoliemanuele@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240515080058.1530985-1-ghidoliemanuele@gmail.com> References: <20240515080058.1530985-1-ghidoliemanuele@gmail.com> MIME-Version: 1.0 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 From: Emanuele Ghidoli Update the autogenerated LPDDR4 configuration using the latest available SysConfig tool. This changes are cosmetic and are made to track the last used tool version. Signed-off-by: Emanuele Ghidoli --- arch/arm/dts/k3-am625-verdin-lpddr4-1600MTs.dtsi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/k3-am625-verdin-lpddr4-1600MTs.dtsi b/arch/arm/dts/k3-am625-verdin-lpddr4-1600MTs.dtsi index 841541bb2433..ca883ae82c7d 100644 --- a/arch/arm/dts/k3-am625-verdin-lpddr4-1600MTs.dtsi +++ b/arch/arm/dts/k3-am625-verdin-lpddr4-1600MTs.dtsi @@ -1,8 +1,8 @@ // SPDX-License-Identifier: GPL-2.0+ /* * This file was generated with the - * AM62x SysConfig DDR Subsystem Register Configuration Tool v0.09.10 - * Mon Dec 11 2023 17:07:35 GMT+0100 (Central European Standard Time) + * AM62x SysConfig DDR Subsystem Register Configuration Tool v0.10.01 + * Tue May 14 2024 12:55:28 GMT+0200 (Central European Summer Time) * DDR Type: LPDDR4 * F0 = 50MHz F1 = NA F2 = 800MHz * Density (per channel): 16Gb @@ -10,9 +10,11 @@ * Number of Ranks: 1 */ + #define DDRSS_PLL_FHS_CNT 3 #define DDRSS_PLL_FREQUENCY_1 400000000 #define DDRSS_PLL_FREQUENCY_2 400000000 +#define DDRSS_SDRAM_IDX 15 #define DDRSS_CTL_0_DATA 0x00000B00 From patchwork Wed May 15 08:00:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emanuele Ghidoli X-Patchwork-Id: 1935370 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=ZSnTO8zO; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VfQgH66DMz1ydW for ; Wed, 15 May 2024 18:02:19 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B8ACF8824C; Wed, 15 May 2024 10:01:57 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com 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=gmail.com header.i=@gmail.com header.b="ZSnTO8zO"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BA065881D6; Wed, 15 May 2024 10:01:55 +0200 (CEST) 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,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) (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 9FC5C8817B for ; Wed, 15 May 2024 10:01:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ghidoliemanuele@gmail.com Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2e6f51f9de4so8428321fa.3 for ; Wed, 15 May 2024 01:01:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715760112; x=1716364912; darn=lists.denx.de; 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=57gjT8Id0A9WzovRoDpMzRQmLiLnNDLpjF3dE8Tywuk=; b=ZSnTO8zOD0ZSzChvH6akJGiW79Z8nQFd3V1CWlpsq2v8Iomyz0VcyAn3QPmtetGZOk VRaewdFmBN37Rmosz0ab9POimBVDz2vJsBFDqXzV18yLjhAtS1LO9CLJviD/ZchifH7v lnaKhXBWBy7jPApK0ameeRv7b6Vs8Vy2uBKeTs2r2gpJqMZLWRXiPy8d1sOpEuJTRZ8l j28dkQb9jCv0GFoW6acQl3c8yfkZwh2lolYosFlt75c90iY4+kI240VvZt34pN/5+GBR Z3bf0b+SpmFZytC5Eddsm8NIr5pF8UAuOlPuAvUbqoNkYZQ341fkRp2SW9F1ab09K1oB nJ2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715760112; x=1716364912; 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=57gjT8Id0A9WzovRoDpMzRQmLiLnNDLpjF3dE8Tywuk=; b=FCZgd8GN/niKcIuqVsl7CPA2Xvp2u7E/TSs1iRF5U3zOOs+aFKBdWaFOJiZvNZ6/mT Byt+W9WHXRzIFTylRb1z7EepPMgQEVpEONlAPHZCttkYPYXAJs2VSlApM4FlPwsdeIcP xCBhcOFgCV3lqEfG3TlVvr0LvSnqSO8l2bkCaFCFcG0roUzv4ncyg8+x04ZA7d946glq upeEkhe9RbBayTYJkstt3k5xg2ZyCje6dYOWRnnYLXelu1/u7g1HEwqtPm59Ki18CpSl 3wu4niFKuLMvPpsdn6HybHPAJIyox6n8dpV07HiabUSm9FqjfWQM07f+FTZoN0g2UgLN ISOA== X-Gm-Message-State: AOJu0YxtRjS7oMBvshTNOJwoPjyaIAGu24iZdRxGFN6RtnzgA4irJsUm slb8arffRKEW5rikWzIyJo8Ova5k7mGWj6H5UofTSrKdv4G/NPpNm3TfPcaMvfo= X-Google-Smtp-Source: AGHT+IFO3duzfFqGzdBYV3qwisL1ysipe4I3BxESwulOTANy4kzKBoqB7Ma3uWxGA7wetNs7vW9/ow== X-Received: by 2002:a2e:954c:0:b0:2e5:6957:187a with SMTP id 38308e7fff4ca-2e569571f3amr101150541fa.4.1715760111247; Wed, 15 May 2024 01:01:51 -0700 (PDT) Received: from emanuele-nb.corp.toradex.com (31-10-206-125.static.upc.ch. [31.10.206.125]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a17b01472sm823804966b.159.2024.05.15.01.01.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 01:01:50 -0700 (PDT) From: Emanuele Ghidoli To: u-boot@lists.denx.de, Tom Rini Cc: Emanuele Ghidoli , Marcel Ziswiler , Francesco Dolcini Subject: [PATCH v1 2/2] arm: dts: k3-am625-verdin: Enable LPDDR4 WDQS control Date: Wed, 15 May 2024 10:00:58 +0200 Message-Id: <20240515080058.1530985-3-ghidoliemanuele@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240515080058.1530985-1-ghidoliemanuele@gmail.com> References: <20240515080058.1530985-1-ghidoliemanuele@gmail.com> MIME-Version: 1.0 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 From: Emanuele Ghidoli Manually, since SysConfig tool do not have the relevant option, set PHY_LP4_WDQS_OE_EXTEND to 1. Since WDQS control mode is required on our modules LPDDR4, this enables WDQS control mode 1. Signed-off-by: Emanuele Ghidoli --- arch/arm/dts/k3-am625-verdin-lpddr4-1600MTs.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/k3-am625-verdin-lpddr4-1600MTs.dtsi b/arch/arm/dts/k3-am625-verdin-lpddr4-1600MTs.dtsi index ca883ae82c7d..5062447547b6 100644 --- a/arch/arm/dts/k3-am625-verdin-lpddr4-1600MTs.dtsi +++ b/arch/arm/dts/k3-am625-verdin-lpddr4-1600MTs.dtsi @@ -850,7 +850,7 @@ #define DDRSS_PHY_62_DATA 0x00000000 #define DDRSS_PHY_63_DATA 0x00000000 #define DDRSS_PHY_64_DATA 0x00000000 -#define DDRSS_PHY_65_DATA 0x00000004 +#define DDRSS_PHY_65_DATA 0x00000104 #define DDRSS_PHY_66_DATA 0x00000000 #define DDRSS_PHY_67_DATA 0x00000000 #define DDRSS_PHY_68_DATA 0x00000000 @@ -1106,7 +1106,7 @@ #define DDRSS_PHY_318_DATA 0x00000000 #define DDRSS_PHY_319_DATA 0x00000000 #define DDRSS_PHY_320_DATA 0x00000000 -#define DDRSS_PHY_321_DATA 0x00000004 +#define DDRSS_PHY_321_DATA 0x00000104 #define DDRSS_PHY_322_DATA 0x00000000 #define DDRSS_PHY_323_DATA 0x00000000 #define DDRSS_PHY_324_DATA 0x00000000