From patchwork Mon Feb 26 17:26:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 775930 Delivered-To: patch@linaro.org Received: by 2002:ab3:621a:0:b0:258:3251:9e33 with SMTP id w26csp1495239lte; Mon, 26 Feb 2024 09:31:28 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVNIUH0a8wrZDWSdGVIL8Vv5553v9FkN2fsOw2A4uY1uodTwgRK48CfMJHfAP6n286ZDMAP7y+PP4yhk2gxf2aQ X-Google-Smtp-Source: AGHT+IHN43vEXSMpiW5K7sb03WHsetYHSYpJsFzuBhRAY4rh0+IQrABPELzpGwfzh4E/ezxHZPvO X-Received: by 2002:adf:ce83:0:b0:33d:35ef:ac2e with SMTP id r3-20020adfce83000000b0033d35efac2emr5907944wrn.17.1708968688433; Mon, 26 Feb 2024 09:31:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1708968688; cv=none; d=google.com; s=arc-20160816; b=DTC7SGQXaeRmdN4x+e+XH8knBVc4Am5pCfCo+BidqqFNh7+bYTqdspVvic/v/IvXY3 yOhTtmPBhVxIgaiy576AS7U/zyvlb1A8kZYeCA/9fyhRmPLMubDUlQ0tg/zJBewOtXjy XQ1f+oPqoh/QBDioon1WTSB/eej3SwRrZpxNXBZidBspNN7GB1fXLrWO0IYIUCEKUYNl N881AI1T0nU4LVjjmQO2Koneo8qCOk4nrQS93JfzKhxSh8XfMO9DXHVXsBTxlpRo5eKv 6WMRNSau+m83za0aM9lOAarSgu9GorMa+GS1mHOaOGIq5m9ulKbYiN7A1Ro1Y9epfxas 5C9A== 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:cc:to:in-reply-to:references :message-id:content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=HV6FQ8s+xx+gCeZyecez+2ZPdAKnY099pPvfaSWMmv8=; fh=5j07v8pFfNfDIH5N3FJgztimsMxoLpMC1DwnSI/5jRk=; b=yJO1xwIgfhTHuYe6UYWlCQkglyPKEz+R7nANjqlqEWehJ+d6QvJ3ko/Esr0Q3G9mbN /801zj0bQB9WPvFOCSSmO7PEt8FvyMNmARhHyct9hdDQJNPk4m9wFmaHsyMVsnpeqzen w+rMl/c5TgXoIHBkA7jBM1ju+FePqkpQcwMaybXTykd0bpmtUsdZwo8gAxu3Zxob1gyM U2Ez12HNViSPlIKTd2iggyVZfSyAZlNkR5w+7NWC1fMHkXvxLQ+UnvRh2A3BRO7r5Qp8 xDfBEqv0aILrxgMQLeXARVJnJMIul15aZso/Gji82EK8UKZCExrU1N92dIONs//vMPXb SAgQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HwDxc4zy; 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 cr9-20020a05600004e900b0033d29c1dbe8si2796643wrb.1041.2024.02.26.09.31.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 09:31:28 -0800 (PST) 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=HwDxc4zy; 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 8F91587FC4; Mon, 26 Feb 2024 18:27:03 +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="HwDxc4zy"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C21CE87FBF; Mon, 26 Feb 2024 18:27:00 +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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) (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 C98C887FC0 for ; Mon, 26 Feb 2024 18:26:45 +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=caleb.connolly@linaro.org Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2d23114b19dso48287491fa.3 for ; Mon, 26 Feb 2024 09:26:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708968405; x=1709573205; darn=lists.denx.de; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=HV6FQ8s+xx+gCeZyecez+2ZPdAKnY099pPvfaSWMmv8=; b=HwDxc4zyMjZCpRviq5famcOZatY9JG84A//styjAhbNahWU4ksvXQmZCyIH6TYtvWN y0FvrkgdShwC5IifoO5Q7PIosUQR1hoF5tJw6tMuZbLZTOMN0w5d8Vd3p38qhDURvJzw N3n61yWlkCKsAgC0ZTOw4+9Z0ItU95GrcelJ4z2qzKMEfxkZt6aKdc532jqOhjwUO7a4 Cs2/iT5r9jdCMqwmsz0dXR5C5LNPWVwqr1pEjNxmH+84IRfScGm6i7Bk6KBclCSszvL7 Nf4/+IrLd4JODkmyHUKZFrCgB7R42Be/iGIiuP6C2TtPYbOHVUg5TScLiWmM1iQn57rl 1zCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708968405; x=1709573205; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HV6FQ8s+xx+gCeZyecez+2ZPdAKnY099pPvfaSWMmv8=; b=C2IzNoUHiycykugdBlhQ3xREt53G4UGKxTLmmHE4CVnk3G6A2L4jbQf9TKupso3VbE 6wjPXZM1xe3//C885X9ZfVLJw1NzY3X9Q7agLvbIvBYycfYz/zZrf/+V/KOPIA3lLYVN aMvtITkwWHl7mDOoxmGd6ByB24KbjdvKGxW/rXtAA9oaUO8yhmeHuH+0qBQz+fdI7Gq1 LEAQKMKtznrta7L8q5ut9FRjnRKQy08D20JKn6O6nmwdr3pc+FI5NgvDqvSnmF+hhWuv 7TRVCFcP8airYCQrxlaOjTvP12MYqSKcXX4Q1Lcfnj7YHq3HrlWkecH13YWOwFP4QXnI BdQg== X-Forwarded-Encrypted: i=1; AJvYcCUmueMdcZIHlwAN5Ra9ga0pc7KIEJEFCpqJePU2PTennE6arWuy8DKhWsLqAodNCRaUaojuItWuhqEmCymWyfYv1XRW5Q== X-Gm-Message-State: AOJu0YwQSSNosxSaT7tPZWgOu6gOV0TuLgFRON4FIf16hul1QUqIdv4H D8Hhg0AgElMwX4sf4oUszmn/80EzvF4kFaQ65AqxeieARLtjRAEC7GRulKvNuCU= X-Received: by 2002:a2e:808a:0:b0:2d2:30b8:fbe2 with SMTP id i10-20020a2e808a000000b002d230b8fbe2mr4625038ljg.43.1708968405186; Mon, 26 Feb 2024 09:26:45 -0800 (PST) Received: from lion.localdomain (host-92-17-96-232.as13285.net. [92.17.96.232]) by smtp.gmail.com with ESMTPSA id bt1-20020a056000080100b0033d9c7eb63csm9142256wrb.84.2024.02.26.09.26.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 09:26:44 -0800 (PST) From: Caleb Connolly Date: Mon, 26 Feb 2024 17:26:28 +0000 Subject: [PATCH v5 24/39] board: qcs404-evb: drop board code MIME-Version: 1.0 Message-Id: <20240226-b4-qcom-common-target-v5-24-10c8e078befb@linaro.org> References: <20240226-b4-qcom-common-target-v5-0-10c8e078befb@linaro.org> In-Reply-To: <20240226-b4-qcom-common-target-v5-0-10c8e078befb@linaro.org> To: Neil Armstrong , Sumit Garg , Ramon Fried , Dzmitry Sankouski , Caleb Connolly , Peng Fan , Jaehoon Chung , Rayagonda Kokatanur , Lukasz Majewski , Sean Anderson , Jorge Ramirez-Ortiz , Stephan Gerhold Cc: Marek Vasut , u-boot@lists.denx.de X-Mailer: b4 0.13-dev-4bd13 X-Developer-Signature: v=1; a=openpgp-sha256; l=4173; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=UTpVtL+2R1m666j5BXC22xsE2MJ0OzcbmOR4gd1i6n4=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhtQ7J3cnyEVeN4mUWXWub7nqyznNV6baXhIr6LL2nWk6r XtC7Ov/HaUsDIIcDLJiiiziJ5ZZNq29bK+xfcEFmDmsTCBDGLg4BWAiFRcZ/qmG7G+wEOZey/Gg o1ZvflN60yptbrdt9wwjE3gvP2464MbIsN3m4LHr9zmN7CPyd8wV/yteGpI/o9Dqkppyk/qxS0J h+gA= X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 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 This board is entirely supported by the generic arch code and DTS. The board code used to handle turning on the vbus regulator, however this is now handled via DT. With this, the board specific defconfig is also no longer needed, so drop it as well. Reviewed-by: Neil Armstrong Reviewed-by: Sumit Garg Tested-by: Sumit Garg #qcs404 Signed-off-by: Caleb Connolly --- board/qualcomm/qcs404-evb/Makefile | 6 ---- board/qualcomm/qcs404-evb/qcs404-evb.c | 49 ----------------------------- configs/qcs404evb_defconfig | 56 ---------------------------------- 3 files changed, 111 deletions(-) diff --git a/board/qualcomm/qcs404-evb/Makefile b/board/qualcomm/qcs404-evb/Makefile deleted file mode 100644 index 4665827e0859..000000000000 --- a/board/qualcomm/qcs404-evb/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0+ -# -# (C) Copyright 2022 Sumit Garg -# - -obj-y += qcs404-evb.o diff --git a/board/qualcomm/qcs404-evb/qcs404-evb.c b/board/qualcomm/qcs404-evb/qcs404-evb.c deleted file mode 100644 index 1a4b1f97a3ae..000000000000 --- a/board/qualcomm/qcs404-evb/qcs404-evb.c +++ /dev/null @@ -1,49 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* - * Board init file for QCS404-EVB - * - * (C) Copyright 2022 Sumit Garg - */ - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -DECLARE_GLOBAL_DATA_PTR; - -void qcom_board_init(void) -{ - struct udevice *pmic_gpio; - struct gpio_desc usb_vbus_boost_pin; - int ret, node; - - ret = uclass_get_device_by_name(UCLASS_GPIO, - "pms405_gpios@c000", - &pmic_gpio); - if (ret < 0) { - printf("Failed to find pms405_gpios@c000 node.\n"); - return; - } - - node = fdt_subnode_offset(gd->fdt_blob, dev_of_offset(pmic_gpio), - "usb_vbus_boost_pin"); - if (node < 0) { - printf("Failed to find usb_hub_reset_pm dt node.\n"); - return; - } - ret = gpio_request_by_name_nodev(offset_to_ofnode(node), "gpios", 0, - &usb_vbus_boost_pin, 0); - if (ret < 0) { - printf("Failed to request usb_hub_reset_pm gpio.\n"); - return; - } - - dm_gpio_set_dir_flags(&usb_vbus_boost_pin, - GPIOD_IS_OUT | GPIOD_IS_OUT_ACTIVE); -} diff --git a/configs/qcs404evb_defconfig b/configs/qcs404evb_defconfig deleted file mode 100644 index d85d193895b0..000000000000 --- a/configs/qcs404evb_defconfig +++ /dev/null @@ -1,56 +0,0 @@ -CONFIG_ARM=y -CONFIG_SYS_BOARD="qcs404-evb" -CONFIG_SKIP_LOWLEVEL_INIT=y -CONFIG_COUNTER_FREQUENCY=19000000 -CONFIG_POSITION_INDEPENDENT=y -CONFIG_ARCH_SNAPDRAGON=y -CONFIG_DEFAULT_DEVICE_TREE="qcs404-evb" -CONFIG_IDENT_STRING="\nQualcomm QCS404-EVB" -CONFIG_SYS_LOAD_ADDR=0x80000000 -CONFIG_FIT=y -CONFIG_FIT_VERBOSE=y -CONFIG_BOOTDELAY=5 -CONFIG_USE_BOOTARGS=y -CONFIG_BOOTARGS="earlycon ignore_loglevel root= clk_ignore_unused" -CONFIG_SAVE_PREV_BL_FDT_ADDR=y -CONFIG_SAVE_PREV_BL_INITRAMFS_START_ADDR=y -CONFIG_SYS_CBSIZE=512 -# CONFIG_DISPLAY_CPUINFO is not set -CONFIG_HUSH_PARSER=y -CONFIG_SYS_MAXARGS=64 -CONFIG_CMD_GPIO=y -CONFIG_CMD_GPT=y -CONFIG_CMD_MMC=y -CONFIG_CMD_PART=y -CONFIG_CMD_USB=y -CONFIG_CMD_EXT2=y -CONFIG_CMD_EXT4=y -CONFIG_CMD_EXT4_WRITE=y -CONFIG_CMD_FAT=y -CONFIG_CMD_FS_GENERIC=y -# CONFIG_NET is not set -CONFIG_CLK=y -CONFIG_CLK_QCOM_QCS404=y -CONFIG_MSM_GPIO=y -CONFIG_QCOM_PMIC_GPIO=y -CONFIG_MISC=y -CONFIG_MMC_HS400_SUPPORT=y -CONFIG_MMC_SDHCI=y -CONFIG_MMC_SDHCI_ADMA=y -CONFIG_MMC_SDHCI_MSM=y -CONFIG_PHY=y -CONFIG_PHY_QCOM_USB_HS_28NM=y -CONFIG_PHY_QCOM_USB_SS=y -CONFIG_PINCTRL=y -CONFIG_PINCTRL_QCOM_QCS404=y -CONFIG_DM_PMIC=y -CONFIG_PMIC_QCOM=y -CONFIG_MSM_SERIAL=y -CONFIG_SPMI_MSM=y -CONFIG_USB=y -CONFIG_USB_XHCI_HCD=y -CONFIG_USB_XHCI_DWC3=y -CONFIG_USB_DWC3=y -CONFIG_USB_DWC3_GENERIC=y -CONFIG_USB_STORAGE=y -CONFIG_LMB_MAX_REGIONS=64