From patchwork Tue May 14 10:17:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 1934940 X-Patchwork-Delegate: caleb.connolly@linaro.org 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=sartura.hr header.i=@sartura.hr header.a=rsa-sha256 header.s=sartura header.b=FKUVKik6; 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 4Vdsky0qJmz20KD for ; Tue, 14 May 2024 20:18:34 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C50A3882B5; Tue, 14 May 2024 12:18:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=sartura.hr 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=sartura.hr header.i=@sartura.hr header.b="FKUVKik6"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E2303882DF; Tue, 14 May 2024 12:18:29 +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,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) (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 F0940877AF for ; Tue, 14 May 2024 12:18:27 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=sartura.hr Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=robert.marko@sartura.hr Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-573137ba8d7so1162386a12.0 for ; Tue, 14 May 2024 03:18:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sartura.hr; s=sartura; t=1715681907; x=1716286707; darn=lists.denx.de; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=gjkJbzeIPVwnUM2T+KBM9zS9cshui4x33o7GukKpnwc=; b=FKUVKik6WREsQivj1PFfwMtjsrbmpdI865k6B1xAr84RlDEPAstd4Jhr/kAAQycy+u IwQIGJFvWIyGGbeqMuhGmpG1PY5U0Sla3ZvvPvVz45BM9BWbYzYUQhJjVl5PDTebbP7D j2++7xSSR6pYvj+71qCL0pwQLmKZYoNx9khgzCQPnLdISHtNQbhYKxpZZ6nOP+hFVOrg PMaGrZzU5gbFFooKe1AqG3Ghzayp4W+dgKHnzNmY0FlIdQSXfoR7YLKZxZpwsOJTfHrP QTykL+34qTf+7Xr37OhgbrUKTyBZN1YY78CSf89Luhwvki0HYZb1ftXFtXHakCafJPLc 8dHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715681907; x=1716286707; 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=gjkJbzeIPVwnUM2T+KBM9zS9cshui4x33o7GukKpnwc=; b=CRErwu9hW7AZjJkSQ0DRRYRWiEZLvhMVtvMnVR5lsPgwDDIIOATrEEFSApHJ56ueQv k+uIO+qxKbzs2u8kGnF94bBbSJJbXOCho/vSx7sU/hmrOqG6JEwR8Lt4r0u9d6N9vRnS VSAGjtId3AQxFa4WWCYWIrBBGCWCCRO3ooTru+sBnPxcyksfnwLGQ5yA/jcnt17hyEdJ rCUbUuqwjJxmXmn5kC1SMj84b7Qg9jDIzq7WK19Ze9d7cQ7QqBqszjBQQ0bljkfe5BSe ISFfO+GIo6pfKeYGmHXqWg5kFrfbDCaZ96Pt+G7E2FZB/CeeZRhzV1D/rs2/UAgoyIF2 646Q== X-Forwarded-Encrypted: i=1; AJvYcCXoP5mtXri/L06yX6zuEjfhfFl6zQB3rff3G7JYUiSk+E/6j7E4RwUcgu3td2uhOKVPGHKNnk2Z/pHddlk0wUpYf2rZKA== X-Gm-Message-State: AOJu0Yx/Xdie88dmkrI/aqH+sz72X3/WUCuTNgs1KceCYqhgI8fqOaC2 mkwbzabhp1v00qHV+LdyO7Z4YTduJA8VEhinbJBvfxxdm4Cnn3dd4bQsQgSCILQ= X-Google-Smtp-Source: AGHT+IFwZzIFXTQvpBPc4C9gPdoODUDvOqt99ST1NUsMfTH3cFw/CY5iLWqZxH6fg8SqBdHzKbSMZA== X-Received: by 2002:a50:c342:0:b0:572:a7c8:f12b with SMTP id 4fb4d7f45d1cf-5734d6f3201mr9988233a12.13.1715681907441; Tue, 14 May 2024 03:18:27 -0700 (PDT) Received: from fedora.. (cpe-188-129-44-220.dynamic.amis.hr. [188.129.44.220]) by smtp.googlemail.com with ESMTPSA id 4fb4d7f45d1cf-574ea5d755bsm261802a12.51.2024.05.14.03.18.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 03:18:26 -0700 (PDT) From: Robert Marko To: trini@konsulko.com, caleb.connolly@linaro.org, neil.armstrong@linaro.org, sumit.garg@linaro.org, u-boot@lists.denx.de, u-boot-qcom@groups.io Cc: j.beck@linefinity.com, Robert Marko Subject: [PATCH v2 1/3] mach-ipq40xx: add CPU specific code Date: Tue, 14 May 2024 12:17:50 +0200 Message-ID: <20240514101824.23872-1-robert.marko@sartura.hr> X-Mailer: git-send-email 2.45.0 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 Provide basic DRAM info population from DT, cache setting and the board_init stub. Signed-off-by: Robert Marko Acked-by: Caleb Connolly --- Changes in v2: * Drop arch/arm/mach-ipq40xx/Makefile | 7 ++++++ arch/arm/mach-ipq40xx/cpu.c | 43 ++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 arch/arm/mach-ipq40xx/Makefile create mode 100644 arch/arm/mach-ipq40xx/cpu.c diff --git a/arch/arm/mach-ipq40xx/Makefile b/arch/arm/mach-ipq40xx/Makefile new file mode 100644 index 0000000000..d611de9933 --- /dev/null +++ b/arch/arm/mach-ipq40xx/Makefile @@ -0,0 +1,7 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# Copyright (c) 2024 Sartura Ltd. +# +# Author: Robert Marko + +obj-y += cpu.o diff --git a/arch/arm/mach-ipq40xx/cpu.c b/arch/arm/mach-ipq40xx/cpu.c new file mode 100644 index 0000000000..92c34d6111 --- /dev/null +++ b/arch/arm/mach-ipq40xx/cpu.c @@ -0,0 +1,43 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * CPU code for Qualcomm IPQ40xx SoC + * + * Copyright (c) 2024 Sartura Ltd. + * + * Author: Robert Marko + */ + +#include +#include + +int dram_init(void) +{ + int ret; + + ret = fdtdec_setup_memory_banksize(); + if (ret) + return ret; + return fdtdec_setup_mem_size_base(); +} + +/* + * Enable/Disable D-cache. + * I-cache is already enabled in start.S + */ +void enable_caches(void) +{ + dcache_enable(); +} + +void disable_caches(void) +{ + dcache_disable(); +} + +/* + * In case boards need specific init code, they can override this stub. + */ +int __weak board_init(void) +{ + return 0; +} From patchwork Tue May 14 10:17:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 1934941 X-Patchwork-Delegate: caleb.connolly@linaro.org 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=sartura.hr header.i=@sartura.hr header.a=rsa-sha256 header.s=sartura header.b=GspKnRTj; 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 4Vdsl74xW4z20KD for ; Tue, 14 May 2024 20:18:43 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3F30E882FA; Tue, 14 May 2024 12:18:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=sartura.hr 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=sartura.hr header.i=@sartura.hr header.b="GspKnRTj"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 22450882F6; Tue, 14 May 2024 12:18:31 +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,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) (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 3EDD4882D7 for ; Tue, 14 May 2024 12:18:29 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=sartura.hr Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=robert.marko@sartura.hr Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-a5a1054cf61so1445712666b.1 for ; Tue, 14 May 2024 03:18:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sartura.hr; s=sartura; t=1715681909; x=1716286709; 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=Rutg8+or0+MUWk83Yuu+HjJGsy5uUP/WN6TFE81Nj0k=; b=GspKnRTjdb+UEuftolxeWlpRltnippujc/whEXL77rcYaSGdsbu5ejUiZ8FDRulkj8 wVaEc06xTe0hFuC5YlfZOLgsXcP/mH1S/CVGZU4V0c2gnbZzIOq+ooZdUiwcUqQ6wRno KkZsR5YMfVr03pvWNBcO8kCmioecC0g519RveA6IcUbQrCzlUHCrVe/ASBlPegq5384y QInLHaqAF0Py6IygDgefAaDyK98Sr+jm1Oo9PzR8BPQbI4HuaVsE8pB0+rN40UO7H2AO /zp3okuS8e321oa74npnLeHLUAj5Prxn6Ccj10laFWh2VNd0b8Z1I/sOgfIhGzrnlZAX hPJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715681909; x=1716286709; 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=Rutg8+or0+MUWk83Yuu+HjJGsy5uUP/WN6TFE81Nj0k=; b=oGd3IyB9S8Nx1mqqHgQqlyRtkse8sECkm6+EvB11Kb2woj0lh2sUbkiMDPu2oJl0Ra iqFko0iYD+Bqq0mWwiBK7KeuY/bEaM9ALeg3CihxBLbPNy7uYjzzlCkGPg3G+YVXNcuA QzgWPz5tDuaG8pFiFj0cU7T4YEnDYdmHNqB7SZ4NxbNPuRhyiZf2MwJYXT4x1G2kDhOH RjhEnkckZZhysJxJRio8OYxiN0M2aStILTLviO5w8l/dry/nCpccrshwyai23bgMUyE/ G19ShXO1UD0UHdy7L6RcScpeuVnV1duiFWBRqE2mFblp2RqFt11JLb/yOC6PkuRTi/ZK /nIg== X-Forwarded-Encrypted: i=1; AJvYcCVEq1cc2MPLnl47hwvNnJjPetwkfZSbtaZwa4M4IzP+nL520NHOZmlRJRV2ByNQ61qDn8J6TTW6roDBJir6Df+eITk6cQ== X-Gm-Message-State: AOJu0YzCdezTNH9Fl/eg2VrQh98DeB46ZXiaFUBSmsYlpb7qeEbCJVXe Cj77UxQMA+w2IPnSviJYK6iM0o4GA/kip3uL2R42Eu+lT5GDZ8y1DheirEsStXg= X-Google-Smtp-Source: AGHT+IGlMKSkuT/XxngjO4TmN/T5TrnsBB4+qbjW8NTzdy2rZ9V7fT0wGvbcMLEVm9qBwzbGnbqlEA== X-Received: by 2002:a50:ccc1:0:b0:56c:1696:58a8 with SMTP id 4fb4d7f45d1cf-5734d44fe63mr12044548a12.0.1715681908686; Tue, 14 May 2024 03:18:28 -0700 (PDT) Received: from fedora.. (cpe-188-129-44-220.dynamic.amis.hr. [188.129.44.220]) by smtp.googlemail.com with ESMTPSA id 4fb4d7f45d1cf-574ea5d755bsm261802a12.51.2024.05.14.03.18.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 03:18:28 -0700 (PDT) From: Robert Marko To: trini@konsulko.com, caleb.connolly@linaro.org, neil.armstrong@linaro.org, sumit.garg@linaro.org, u-boot@lists.denx.de, u-boot-qcom@groups.io Cc: j.beck@linefinity.com, Robert Marko Subject: [PATCH v2 2/3] mach-ipq40xx: use OF_UPSTREAM Date: Tue, 14 May 2024 12:17:51 +0200 Message-ID: <20240514101824.23872-2-robert.marko@sartura.hr> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240514101824.23872-1-robert.marko@sartura.hr> References: <20240514101824.23872-1-robert.marko@sartura.hr> 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 Now that drivers are compatible enough with the upstream DTS, there is no reason to not use the upstream DTS, so imply OF_UPSTREAM by default. Signed-off-by: Robert Marko Acked-by: Caleb Connolly --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 39ad03acd2..914a7552b4 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -769,6 +769,7 @@ config ARCH_IPQ40XX select CLK_QCOM_IPQ4019 select PINCTRL_QCOM_IPQ4019 imply CMD_DM + imply OF_UPSTREAM config ARCH_KEYSTONE bool "TI Keystone" From patchwork Tue May 14 10:17:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 1934942 X-Patchwork-Delegate: caleb.connolly@linaro.org 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=sartura.hr header.i=@sartura.hr header.a=rsa-sha256 header.s=sartura header.b=cZ7fOman; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 4VdslL3y6Kz20KD for ; Tue, 14 May 2024 20:18:54 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A331088306; Tue, 14 May 2024 12:18:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=sartura.hr 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=sartura.hr header.i=@sartura.hr header.b="cZ7fOman"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F389A88303; Tue, 14 May 2024 12:18:32 +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,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) (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 DFCD8882E5 for ; Tue, 14 May 2024 12:18:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=sartura.hr Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=robert.marko@sartura.hr Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-574bf7ab218so29823a12.1 for ; Tue, 14 May 2024 03:18:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sartura.hr; s=sartura; t=1715681910; x=1716286710; 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=me7/w2mzQxPQ2psc0OBMPs6euxV1uuaI/q0+jRPI9/0=; b=cZ7fOman68igfHhnMDGpOm4zZErRHzAAq6jzj/m3cd1Qs3KxUwTF3eOI3fMfvgwwy6 uDWktmBTazGwSAPIigtgMlQEX/4MAkXCqlJBQ6UH6qn4hS6/iCWkIjbfSRfySc96xh8b 7XwTaRaog/KH1apr/rvTseKCGf9EuZlN3Qqq1BIu4C2L+868W3My7bZqwMomjoRIsjio O+reiJ3e0ce4hz3Ykgs/dI68EDKQEIUVLqLkgINJp0czFC3L/3YNhvi08z7/nWYIBCmW GFYe4KXHtBbXZ26TibrhGvhnjr37w8X+9tpu8LG1+Nn1kvAguOA0nGJo3W27xSxeCrS7 ysjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715681910; x=1716286710; 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=me7/w2mzQxPQ2psc0OBMPs6euxV1uuaI/q0+jRPI9/0=; b=EhRX0mF1IBV0FdE76K3cK7NUR7JZ+LVIyBPn++jLxmtBUtp0sNaUwnMY+BIwpIXPye V1j8kfrSMXGkOM9tMlkZWQiZqIYnjzj6u3Nzv+Q/MRVBEgY1+J6fAAmzTuXJKIBx3f8q 8g4BNHpfUerZgL3m4oIicfuVBEGk9LH0ydRMcy4+NNKwDEIDnL+/Yk+3Mu4MH/gpRavU WcEHW3az2wSlXZ6ouoW7MJNhauAmWbyGYNuGHT59smz6grLDEXu6b8Bwg9mg0AmOPvjB IpbHpWMeMf4BW5fkjzMab1GzCckXbL3KDiK2PWh1YijSi3KYDlXpfdJ8nVcnI47Rmsgy sv6Q== X-Forwarded-Encrypted: i=1; AJvYcCUNMQGpMn6e6v9uc6VFROARp33lPIjYRKR+9A4f9WNBzoSlBrjhc0wgd4PjwTC1CX3MeJc8ejZ4HqzWKd07dU8SbceGyA== X-Gm-Message-State: AOJu0YzoQzPm/j6ogryX9+4UDLMwTkETCoZMYwoTPAJWpbay4ZS8XNkg wGdQ0W0ehjvqn52wejirR9Kc/0rE6R+dOoYgnCPyZkkT7TG4KnmvEbSU1LkAKkU= X-Google-Smtp-Source: AGHT+IF4CltQZUWHYaizwfle0qrAUhkN5l4sCIZn81oX1wk2R3zBJLaGCiLvhwIyRSgq1DTCuN/Lrg== X-Received: by 2002:aa7:d294:0:b0:574:eb43:3865 with SMTP id 4fb4d7f45d1cf-574eb433921mr330191a12.32.1715681910419; Tue, 14 May 2024 03:18:30 -0700 (PDT) Received: from fedora.. (cpe-188-129-44-220.dynamic.amis.hr. [188.129.44.220]) by smtp.googlemail.com with ESMTPSA id 4fb4d7f45d1cf-574ea5d755bsm261802a12.51.2024.05.14.03.18.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 03:18:29 -0700 (PDT) From: Robert Marko To: trini@konsulko.com, caleb.connolly@linaro.org, neil.armstrong@linaro.org, sumit.garg@linaro.org, u-boot@lists.denx.de, u-boot-qcom@groups.io Cc: j.beck@linefinity.com, Robert Marko Subject: [PATCH v2 3/3] arm: dts: drop downstream IPQ4019 DTSI Date: Tue, 14 May 2024 12:17:52 +0200 Message-ID: <20240514101824.23872-3-robert.marko@sartura.hr> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240514101824.23872-1-robert.marko@sartura.hr> References: <20240514101824.23872-1-robert.marko@sartura.hr> 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 We want to use OF_UPSTREAM on IPQ40XX as its well supported upstream, so lets drop our downstream DTSI. Signed-off-by: Robert Marko Acked-by: Caleb Connolly --- arch/arm/dts/qcom-ipq4019.dtsi | 202 --------------------------------- 1 file changed, 202 deletions(-) delete mode 100644 arch/arm/dts/qcom-ipq4019.dtsi diff --git a/arch/arm/dts/qcom-ipq4019.dtsi b/arch/arm/dts/qcom-ipq4019.dtsi deleted file mode 100644 index f9489e42ea..0000000000 --- a/arch/arm/dts/qcom-ipq4019.dtsi +++ /dev/null @@ -1,202 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* - * Copyright (c) 2019 Sartura Ltd. - * - * Author: Robert Marko - */ - - /dts-v1/; - -#include "skeleton.dtsi" -#include -#include -#include - -/ { - #address-cells = <1>; - #size-cells = <1>; - - model = "Qualcomm Technologies, Inc. IPQ4019"; - compatible = "qcom,ipq4019"; - - aliases { - serial0 = &blsp1_uart1; - spi0 = &blsp1_spi1; - }; - - reserved-memory { - #address-cells = <0x1>; - #size-cells = <0x1>; - ranges; - - smem_mem: smem_region: smem@87e00000 { - reg = <0x87e00000 0x080000>; - no-map; - }; - - tz@87e80000 { - reg = <0x87e80000 0x180000>; - no-map; - }; - }; - - smem { - compatible = "qcom,smem"; - memory-region = <&smem_mem>; - }; - - soc: soc { - #address-cells = <1>; - #size-cells = <1>; - ranges; - compatible = "simple-bus"; - - gcc: clock-controller@1800000 { - compatible = "qcom,gcc-ipq4019"; - reg = <0x1800000 0x60000>; - #clock-cells = <1>; - #reset-cells = <1>; - bootph-all; - }; - - rng: rng@22000 { - compatible = "qcom,prng"; - reg = <0x22000 0x140>; - clocks = <&gcc GCC_PRNG_AHB_CLK>; - status = "disabled"; - }; - - soc_gpios: pinctrl@1000000 { - compatible = "qcom,ipq4019-pinctrl"; - reg = <0x1000000 0x300000>; - gpio-controller; - gpio-count = <100>; - gpio-bank-name="soc"; - #gpio-cells = <2>; - bootph-all; - }; - - blsp1_uart1: serial@78af000 { - compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; - reg = <0x78af000 0x200>; - clock = <&gcc GCC_BLSP1_UART1_APPS_CLK>; - bit-rate = <0xFF>; - status = "disabled"; - bootph-all; - }; - - blsp1_spi1: spi@78b5000 { - compatible = "qcom,spi-qup-v2.2.1"; - reg = <0x78b5000 0x600>; - clocks = <&gcc GCC_BLSP1_QUP1_SPI_APPS_CLK>; - #address-cells = <1>; - #size-cells = <0>; - status = "disabled"; - bootph-all; - }; - - mdio: mdio@90000 { - #address-cells = <1>; - #size-cells = <0>; - compatible = "qcom,ipq4019-mdio"; - reg = <0x90000 0x64>; - status = "disabled"; - - ethphy0: ethernet-phy@0 { - reg = <0>; - }; - - ethphy1: ethernet-phy@1 { - reg = <1>; - }; - - ethphy2: ethernet-phy@2 { - reg = <2>; - }; - - ethphy3: ethernet-phy@3 { - reg = <3>; - }; - - ethphy4: ethernet-phy@4 { - reg = <4>; - }; - }; - - usb3_ss_phy: ssphy@9a000 { - compatible = "qcom,usb-ss-ipq4019-phy"; - #phy-cells = <0>; - reg = <0x9a000 0x800>; - reg-names = "phy_base"; - resets = <&gcc USB3_UNIPHY_PHY_ARES>; - reset-names = "por_rst"; - status = "disabled"; - }; - - usb3_hs_phy: hsphy@a6000 { - compatible = "qcom,usb-hs-ipq4019-phy"; - #phy-cells = <0>; - reg = <0xa6000 0x40>; - reg-names = "phy_base"; - resets = <&gcc USB3_HSPHY_POR_ARES>, <&gcc USB3_HSPHY_S_ARES>; - reset-names = "por_rst", "srif_rst"; - status = "disabled"; - }; - - usb3: usb3@8af8800 { - compatible = "qcom,dwc3"; - reg = <0x8af8800 0x100>; - #address-cells = <1>; - #size-cells = <1>; - clocks = <&gcc GCC_USB3_MASTER_CLK>, - <&gcc GCC_USB3_SLEEP_CLK>, - <&gcc GCC_USB3_MOCK_UTMI_CLK>; - clock-names = "master", "sleep", "mock_utmi"; - ranges; - status = "disabled"; - - dwc3@8a00000 { - compatible = "snps,dwc3"; - reg = <0x8a00000 0xf8000>; - phys = <&usb3_hs_phy>, <&usb3_ss_phy>; - phy-names = "usb2-phy", "usb3-phy"; - dr_mode = "host"; - maximum-speed = "super-speed"; - snps,dis_u2_susphy_quirk; - }; - }; - - usb2_hs_phy: hsphy@a8000 { - compatible = "qcom,usb-hs-ipq4019-phy"; - #phy-cells = <0>; - reg = <0xa8000 0x40>; - reg-names = "phy_base"; - resets = <&gcc USB2_HSPHY_POR_ARES>, <&gcc USB2_HSPHY_S_ARES>; - reset-names = "por_rst", "srif_rst"; - status = "disabled"; - }; - - usb2: usb2@60f8800 { - compatible = "qcom,dwc3"; - reg = <0x60f8800 0x100>; - #address-cells = <1>; - #size-cells = <1>; - clocks = <&gcc GCC_USB2_MASTER_CLK>, - <&gcc GCC_USB2_SLEEP_CLK>, - <&gcc GCC_USB2_MOCK_UTMI_CLK>; - clock-names = "master", "sleep", "mock_utmi"; - ranges; - status = "disabled"; - - dwc3@6000000 { - compatible = "snps,dwc3"; - reg = <0x6000000 0xf8000>; - phys = <&usb2_hs_phy>; - phy-names = "usb2-phy"; - dr_mode = "host"; - maximum-speed = "high-speed"; - snps,dis_u2_susphy_quirk; - }; - }; - }; -};