From patchwork Tue Dec 19 16:04:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 755938 Delivered-To: patch@linaro.org Received: by 2002:adf:b181:0:b0:336:6142:bf13 with SMTP id q1csp1503266wra; Tue, 19 Dec 2023 08:09:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IFlklQT/LLivosbgOhW58vxsfohkmAaOdV6L/txY5q3jfB6QSBj8u2WOsCGYKOpdzSh7+s9 X-Received: by 2002:a05:600c:34cd:b0:40d:18da:4533 with SMTP id d13-20020a05600c34cd00b0040d18da4533mr2151673wmq.107.1703002194972; Tue, 19 Dec 2023 08:09:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703002194; cv=none; d=google.com; s=arc-20160816; b=jRTCwJGGqbag62y2zj6Ke0sLqxiHos2qjFzelH9rf+BYbn0vPNV/WI6Go2MLEeobD9 iBx/ZGOgA0AKGtIUYISoiPM1PCHO+qpI1V3oD1p7b629sqWZ36iTjaBkfuYzPtAFM0ee 0iOJIFOCiGOag9SVJ28+DcxHdwuuepr05sAYMHicQ5FrX+l2Ut7egKARc11CrvhqukA+ vSDZaBYvpdflj8UmDoZAv7/da4hgjbTRT7tQoKJmAQeMZOhV9tG6NuEpoys7YklmoALP k3sQHEAa9ZLsb0cbUJKoqimRfmah8XA0JHKmuWbZxxenVyCDobbznsRAyMhjmoNh9HOY G7QQ== 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=/2GCeSRI2kgHi1OozoahJPzRQ1Y+EnYIHXRIt5CWvoc=; fh=GB9E9KzRIiNXhkRWIZbZpSMjbCjxnqnvE8nYuQxq8UI=; b=d99xlsnWXKlB6n7Cd2eCmvcSK16cm3+vKaNJDxBmrYOmZllR0SYfMsv+diGcYIo5Ma i2dTFTCV5g3G64IdqwObLAUUCChDY69JUn+hXAvayffsEMZzK+qw/6hLOIV9FXXk3imD jvpaZVcCmjYnrk2LLKSun4yndBXnpmTyYxnVY8X0kV13G3Vx8B8Al7yj+zgzCflGb91+ LCalj2tQMdKsP3QdvfVJdLvAoIMGWUY+QD9k2gHhqqt2QPs68uuaXv8NNhLpmNHVoAcW XSWwtlUkq5TWhSqRKWXer+IVFTYKufbkFrRWWvReVwbLCGoaq/3WM/4P69f9ZhtRy77X 28tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BUR37aGV; 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 ek15-20020a05600c3ecf00b0040c0ee70b10si916840wmb.120.2023.12.19.08.09.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 08:09:54 -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=BUR37aGV; 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 4BFEC86DDC; Tue, 19 Dec 2023 17:05:32 +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="BUR37aGV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EC289878CF; Tue, 19 Dec 2023 17:05:24 +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-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) (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 7CF5E8789B for ; Tue, 19 Dec 2023 17:04: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=caleb.connolly@linaro.org Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-40c2db2ee28so59496055e9.2 for ; Tue, 19 Dec 2023 08:04:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703001895; x=1703606695; 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=/2GCeSRI2kgHi1OozoahJPzRQ1Y+EnYIHXRIt5CWvoc=; b=BUR37aGVeve3Mg4taIgfX8L6WWSiDkEqqBmZtMRD5MXu3F89+o8Qk2baFvE2LJ+7za cmzf87j4ri3w1ALVzN4Q9SGCB6YdGH29+Fo4jdOcd4TtdRPmPZSm9iZTFIaH18GQGSaB dRczP0Bf+UUVA83DrX7ZTu+45w74c83yHetUzOiafL/KKLBKnaOWYkmBSryEEd80G+wz 3ux8FLBPLwKeSnrCcxXOHVmsn4l4+6Jcq0BDcWhnqnptpaQ5229KBz9lGt7jc+abnvMg ncYftpOvnwA2jwm6Ym1+Fie9gxRWtvBrwhCH9+GN/3yxrgjucHl458TO2TYg2GyXwdj+ 77Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703001895; x=1703606695; 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=/2GCeSRI2kgHi1OozoahJPzRQ1Y+EnYIHXRIt5CWvoc=; b=lB0qEdQluae+pLe31aidthRP8TQTzWzUrjWC/Fjc6R2fwBKNABgwTJ2qw+z3Fsfk0E SaxcWl0o1ZrRerezYFhELRcLT+qkS2U64Dv12wbGTHzmfS3ng4VJ6ulFgDDxKvfJxV7x 2P6quwpNTKl80jNpeIVIzfZGG5NtaUHGKneVXOPNDd87vvJJtJrvO3oiYbEmpmIgOO2z m0HZ+YkFlSaQlDcvCcrR+YP8PbSzHmkzCDgfiB0BXiERGO0n1ZZLzEJExESBtDNDO6JW 4iCAuNkvlm2XrSfkeSQamIIgnq09Xpd5hGRuQiPTctQ46Pv7CJbg76lRY40V07+cZsQP i+MQ== X-Gm-Message-State: AOJu0YxutkOY1uA+LeUO5fuBQZ+05/mVDnGvmzITUxbRqvPvYDMtVhW9 Ry3ZB80sSGd7/hFpU3121YdVmg== X-Received: by 2002:a7b:ce8a:0:b0:40c:61f1:7fcd with SMTP id q10-20020a7bce8a000000b0040c61f17fcdmr5403242wmj.155.1703001895069; Tue, 19 Dec 2023 08:04:55 -0800 (PST) Received: from lion.localdomain (host-92-17-96-230.as13285.net. [92.17.96.230]) by smtp.gmail.com with ESMTPSA id je17-20020a05600c1f9100b0040d1450ca7esm3429723wmb.7.2023.12.19.08.04.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 08:04:54 -0800 (PST) From: Caleb Connolly Date: Tue, 19 Dec 2023 16:04:32 +0000 Subject: [PATCH v2 31/32] board: qcs404-evb: drop board code MIME-Version: 1.0 Message-Id: <20231219-b4-qcom-common-target-v2-31-b6dd9704219e@linaro.org> References: <20231219-b4-qcom-common-target-v2-0-b6dd9704219e@linaro.org> In-Reply-To: <20231219-b4-qcom-common-target-v2-0-b6dd9704219e@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=4012; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=UJfD+5x+yBJg+hh3tB2PF2W2kpeHRlNvP890GhlqUrA=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhtTG/SyFnz8wP2ffa74ybfb1B39asvo6fhScKPN9yL+kd /2ES1tndZSyMAhyMMiKKbKIn1hm2bT2sr3G9gUXYOawMoEMYeDiFICJHGhm+M1+tKf0ZW/K4mvM v69/rJb5pXNky423n7INrr51mWayW76Z4X9pI6vYeilOvx8T/l29zvfwxY2Hf5tfSS9RWXpnt2i q1uM5AA== 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. Signed-off-by: Caleb Connolly Reviewed-by: Neil Armstrong --- 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 7daaa449ffbd..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_DISPLAY_CPUINFO is not set -CONFIG_HUSH_PARSER=y -CONFIG_SYS_MAXARGS=64 -CONFIG_SYS_CBSIZE=512 -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