From patchwork Thu Feb 15 20:52:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 773031 Delivered-To: patch@linaro.org Received: by 2002:adf:9dc2:0:b0:33b:4db1:f5b3 with SMTP id q2csp1037127wre; Thu, 15 Feb 2024 13:00:16 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVZVScRG+8c/+NZSSbd1HvmI6gOEX8xrzpLtFuBrlOEbYBTL7Ghr/2/qefDAbM82eF7G7I3rEXZhQICVOlKfMb6 X-Google-Smtp-Source: AGHT+IGqUCJBEW060AWtyM3Np/ieWGIDYuDI2vLDCPrrPok2HtuhiR5pVlejCnBErwnO/3J96TK8 X-Received: by 2002:aa7:d917:0:b0:55f:c5b7:5855 with SMTP id a23-20020aa7d917000000b0055fc5b75855mr1899614edr.6.1708030816590; Thu, 15 Feb 2024 13:00:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1708030816; cv=none; d=google.com; s=arc-20160816; b=wSggRGRVQNxxlg63d4ebIfx+D8BQCFBNzXF/TNUOrkf3465bPbkYhqXto/R20fc/P3 Xio4BP+IwmZgSRxk02b+Nrfv6t0DDwDBmbSFt0jg9vWJvgwNMwzmLTO6Cs+Sq1rsAIQX gsjMx2SOqa/J/SXxW4ZKTTXIafFho3uOMhRjvDPKhLXIt7VvKI+g4Npv30L57lpEg5eu OcebytBE5zQSGP5YOw9i0Btx5ofdDxwd3gqKqyQDXrkxwByghXl5rx3wxFpw2VuYpFpS llFDLOXns4ez44bRt7wUNve1DWf+8uwShxN1UlKWTAK4CcZLiZVLq76SI1hmaM/SniH4 j/og== 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=Cqmchvij0p6qu+1Wz6VleKp5qI+9PFi5nvdqyZq7cW8=; fh=odpKf5vrP9iBIUEt9TP5cjCqwLFH9/8m9y75D524d7w=; b=HofBptAb8m6UqLotqQkpmpCsgi85ayRY1QsOPD2WC8UfHIbNZpTU1HBdW3xQIWC1J1 PpMztCAO86ceH7uk9aQN+J68olyW5a7eg/UvVPUFYIX16KHpqXo3piSkcrpW8+xp+R5D BjIam8T08g1PNbRxF1d+d+MjEpdfUJoVwYHidLiT5zkHtNqlJ1/lgVbMj1ihdToJOOx1 VI6lQ94oCBUt7Xapau0kPLwasTVa2n9Mvt7RQROvAy9/mv/X3+cQib7z8g1iAsgYNaY0 4aOjZsJUqIVF8akDsDfWVy/Weyf15f6QoT5YauCGlhsTEdqwjBmKMrRjHQoHYEpUfhZ9 DLow==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wELf+MK4; 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 n28-20020a056402515c00b005638fa60d3esi919636edd.573.2024.02.15.13.00.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 13:00:16 -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=wELf+MK4; 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 CFB5C87ED1; Thu, 15 Feb 2024 21:54:04 +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="wELf+MK4"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2744A87E49; Thu, 15 Feb 2024 21:54:03 +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, T_SCC_BODY_TEXT_LINE,T_SPF_TEMPERROR autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) (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 6089F87EEE for ; Thu, 15 Feb 2024 21:52: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=caleb.connolly@linaro.org Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-412191ed8aaso7915115e9.2 for ; Thu, 15 Feb 2024 12:52:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708030368; x=1708635168; 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=Cqmchvij0p6qu+1Wz6VleKp5qI+9PFi5nvdqyZq7cW8=; b=wELf+MK4NQr1Y+dCBgYx9Ni4j8XyocGoR8bPH4JZzrB3SNvq4M9SXpZ05+X2MLg9FO 1+DXot8PNhfieymOLsB8KVj+RO0j2u4pACN4Z74bTjvxKkfLZ7Aw2M9T9s4LzWJrtX4H ambMQPv3tfbN+vDIkKJIFrohMgS/pfzCA3AUawUaqlYclgXQla6wvXPzb9z3crgmuD3M Fh1nKk8evZmvVMcIWzi43lEEf8p8rx1YEIV9L00uD45zqtf1fzg/4oDoN39eCxpQiOO+ bfk0uYPvsQcxHWCHpKVQmyJwtuy6YPEEskYRaYtBVGDKzGRCBlfY7dUlcM9TnQtUdrlf zL/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708030368; x=1708635168; 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=Cqmchvij0p6qu+1Wz6VleKp5qI+9PFi5nvdqyZq7cW8=; b=ZWTmHoQWzgTChTLt2Y2Ct+4OKJkQnQ6uvUFnrrAw3VfjWIC5U9rX21C7ZAHi5ng04Z 8G7+g/rrULKWr2ycNoi6LfKmqNvTKiuFyAEnPCoPB7UmFTi7TZHaqBtvgVbUqu6bOL3Q SUrPIXeytoYY/65TkKO+KhsUiEuh+OOeWW4dr9/f972Sq2bqbTof0v2DncdyciWGPxGc Ta7RItQFmUcU4U2KXq8av4NZPoauc6JNY6B2vBZLjC6DXuaDSDjQs34YBUonI2oDXT9V hcCegZAGJfy6JS/GRidCBUtshEfB5AdGD+QdeCNGeOV+kyy6ytDhc/cpX1ao0+Wsojo0 lC6w== X-Forwarded-Encrypted: i=1; AJvYcCVcQ+Tx19SYUSDvu5qbGDHPh0vTwyUsFOX/k9G2uLECGft98cPGKxg4NZBw5/2R/dfJHb3hPpve+peZjFASuamMB1RPiA== X-Gm-Message-State: AOJu0YwqrEL8H0Trg14mZTmeZi6jXILW+6/PnGtzhTYnmmF1Ki9baWwj RoZcCSrWiamCb9zKDxehX0CO4SCqzB/78o3N867IlHhOA6eVwMMfcHXVcCdBAZOJSXrvjMVSHgB 2 X-Received: by 2002:adf:fd4f:0:b0:33d:1af:3d59 with SMTP id h15-20020adffd4f000000b0033d01af3d59mr1575926wrs.31.1708030368705; Thu, 15 Feb 2024 12:52:48 -0800 (PST) Received: from lion.localdomain (host-92-17-96-232.as13285.net. [92.17.96.232]) by smtp.gmail.com with ESMTPSA id e4-20020adfe384000000b0033cfa00e497sm194025wrm.64.2024.02.15.12.52.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 12:52:48 -0800 (PST) From: Caleb Connolly Date: Thu, 15 Feb 2024 20:52:42 +0000 Subject: [PATCH v4 24/39] board: qcs404-evb: drop board code MIME-Version: 1.0 Message-Id: <20240215-b4-qcom-common-target-v4-24-ed06355c634a@linaro.org> References: <20240215-b4-qcom-common-target-v4-0-ed06355c634a@linaro.org> In-Reply-To: <20240215-b4-qcom-common-target-v4-0-ed06355c634a@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=4069; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=tpvunIwKpVhdVKTmkE6zuO+LGpGU+6d9dM9U5C6RKYQ=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhtRzlW0tKcqSD5c8y5988BH/76DWO76Mja/Wr283+fZx3 /TL189md5SyMAhyMMiKKbKIn1hm2bT2sr3G9gUXYOawMoEMYeDiFICJzN/C8E+tRnm2y6meKNXU t8zVHj4pHCumJ/9eapL/cZJ1bOvHn2cY/ldty26LW1/WrHEr6qn7HqPvninRCtzP7NndViReZEj 3cwEA 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 Signed-off-by: Caleb Connolly Reviewed-by: Sumit Garg --- 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