From patchwork Wed Jan 31 15:17:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 768508 Delivered-To: patch@linaro.org Received: by 2002:adf:ee41:0:b0:33a:e5bd:fedd with SMTP id w1csp1911209wro; Wed, 31 Jan 2024 07:18:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IECtvlnAVYOdC0B8VrdnFy4kj9GV2runbYYQhQIZi1BBBpcPkoNDdVYnAUBpv8gG/bqoh6c X-Received: by 2002:adf:fd47:0:b0:33a:f77a:f6de with SMTP id h7-20020adffd47000000b0033af77af6demr1416715wrs.40.1706714313440; Wed, 31 Jan 2024 07:18:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1706714313; cv=none; d=google.com; s=arc-20160816; b=cwnTMp0EkZ4NQy7o6W/YevDz0YrHJxMvJCcr2yWnUjyE8QNCPEJ2oRdGx5nXpia5YM /avdq3CEGd3rm6bIm76mNmnUypI830T4d67jnk0aUDt8A174GZDVpuiplwnKta6pY26j qjzXT2k8f5k/Mu9UAxATyIoLrjWMTBATpBM73P7P9q2iALIwqxh65xelPfT2W7GL9Va4 9FTgcZnIuxCyyaO6gdx2hcntTP9A0IdPQZ031WxWbUUs2oMFXVGVfcXyiVM9CfuTMO/6 ni0JLzqGdK1Hsc6j4o6Rgv7RanJNeZD7v7K+HSp6V8k2HT57/+Cx27zKj1plCuuGS7Ml 7GYA== 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=9d6pK+oluV5IpInoW43059fRkUOQBE+4Tw5fwZZIJpI=; fh=gSVpyLKtvZ+QePPYgVwr0OwBuSQ/slJGUurC/y9msiw=; b=BwESnn7xqvgQ2mGJGh0RdDmKRRXGXw9iJxpf6wtB2lfaKmSwYeOUmJgUSi4nUv1I4F QVP9pJPRwXfyTk6Oz7VUzBigq3kr45CXDuiMAXlJvTalcS55ssqPeGI6i0MHQ0emGSZi fwnwnmZ8eR1vcecc1a2+OoV33it+ZOHBuHnObcYDxXyKcICdswJojLofV1FdVlq85kVm 6XOMTJ4SrNMV0aw0J1pA1xgmBIfYGo+vpSvuwOOBUXe7NhjGi5oLxYbInTjjBl2pE/Wp M5BiRQnMN6nGC1qfJpPVRbh0/YzU4uaT/43VaOzJ5Vgkegz/RWzz9kPurNSLzOtpWxUa g7vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="wGq4/tp3"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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. [85.214.62.61]) by mx.google.com with ESMTPS id l38-20020a05600c08a600b0040fb360d553si810349wmp.181.2024.01.31.07.18.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 07:18:33 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="wGq4/tp3"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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 6C31E87D18; Wed, 31 Jan 2024 16:17:17 +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="wGq4/tp3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7AD4987DD8; Wed, 31 Jan 2024 16:17:13 +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=unavailable autolearn_force=no version=3.4.2 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) (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 57BDD87D7E for ; Wed, 31 Jan 2024 16:17:09 +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-x32c.google.com with SMTP id 5b1f17b1804b1-40ef6f10b56so26391315e9.2 for ; Wed, 31 Jan 2024 07:17:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706714228; x=1707319028; 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=9d6pK+oluV5IpInoW43059fRkUOQBE+4Tw5fwZZIJpI=; b=wGq4/tp3O7pJ58by8H16Y1h5RJ2BPtWvrrqISK8waNpoxb0K8RF5st6Qp/5gQkVWdq d27YD+AnEHL8ZKz0haPVBPUVR1mA/+TrdeBZRCaThLED7wSyjwgBm4LnyGz1VkwlvNX5 r0u6JCMC+h2TNoDg/kYnn1BZRdK8JFcEiprZWYQ7wXNg7a5iLCRYbIhnLQrqP3GeTT6W sdM5r4YXFkBZtsN5huyUjjYy++he4QbCty83N2IblQ8HLCG8VeBLL1adppSr3+m0gP2x oxbsHSrRv2My+j6V6mT35JFe8XzpZzlmDUjunEDWVZNEK4T48sqbTTXWf06m53TE4i96 Mz/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706714228; x=1707319028; 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=9d6pK+oluV5IpInoW43059fRkUOQBE+4Tw5fwZZIJpI=; b=jcW0DyaRdu3dI0vMdGYH1Hhnku1X7YJo3lRvheSgGIlYgdLgIfM2f3V6c91W4D8inN gLz6cdvIl44YVsee6AsSkbjoVjD5xgj13OnIME4My9nN1GcMsHO6zUaavlaeyK2WcUPO UF6IZklPXhqbqNZFRW2DhaUNWCb2iPmM4C5d/FTOEghjlChlkd0E3rGllm2rVCvVBd1O xT8VfsO++ZAbtZsi2Gb/bxer/36tnFOA/suZp3rDIq7KXiBzbolvZEBOEla/5fnJbvbp A+Nrth1IOfl4GsxnpxiskqGS2ba5N5EuUzTgeA6c28ZxJNu8QE76UYTDTW+yvO/d3JYN +8xQ== X-Gm-Message-State: AOJu0Yzly9L6slxJ0+npCynjCdFBcwtqMVpR5abxdEKXCwBQe1OdRzle YFBKDxnFFUI+p/1tVR2B2sR9nwrQ4v80LpkTxnqIe1iQ87QdNrPv3amcJGBCeSD2dAwnrBgg7CJ g X-Received: by 2002:a05:600c:3544:b0:40f:b335:fe7c with SMTP id i4-20020a05600c354400b0040fb335fe7cmr1470483wmq.39.1706714228657; Wed, 31 Jan 2024 07:17:08 -0800 (PST) Received: from lion.localdomain (host-92-17-96-232.as13285.net. [92.17.96.232]) by smtp.gmail.com with ESMTPSA id en6-20020a056000420600b0033ae5b637d4sm11109031wrb.35.2024.01.31.07.17.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 07:17:08 -0800 (PST) From: Caleb Connolly Date: Wed, 31 Jan 2024 15:17:00 +0000 Subject: [PATCH 08/13] serial: msm-geni: support livetree MIME-Version: 1.0 Message-Id: <20240131-b4-qcom-livetree-v1-8-4071c0787db0@linaro.org> References: <20240131-b4-qcom-livetree-v1-0-4071c0787db0@linaro.org> In-Reply-To: <20240131-b4-qcom-livetree-v1-0-4071c0787db0@linaro.org> To: Tom Rini , Caleb Connolly , Neil Armstrong , Sumit Garg , Lukasz Majewski , Sean Anderson Cc: u-boot@lists.denx.de X-Mailer: b4 0.13-dev-4bd13 X-Developer-Signature: v=1; a=openpgp-sha256; l=1030; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=kxKkRT67ZfSHqA1UC4TLHGzsRNTPg9F90ko30AeYXqo=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhtRdKTm5BtZ/fkvfmTPl6veP4dwJF3aErxcovjDxdn/xA velBseWdpSyMAhyMMiKKbKIn1hm2bT2sr3G9gUXYOawMoEMYeDiFICJ6CYw/M96snFaVtT73DQn W6dZhc9Xqd2wnnNc18n7bP7l19/C0lUZ/lkruOxc+sg83bhvttT7DwGJd6tm/Jq268ero/bV97l mndcFAA== 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 When using OF_LIVE, the debug UART driver won't be probed if it's a subnode of the geni-se-qup controller. Add a NOP driver for the controller to correctly discover its child nodes. Signed-off-by: Caleb Connolly --- drivers/serial/serial_msm_geni.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/serial/serial_msm_geni.c b/drivers/serial/serial_msm_geni.c index e5c3dcffc1c6..6455b0fff63c 100644 --- a/drivers/serial/serial_msm_geni.c +++ b/drivers/serial/serial_msm_geni.c @@ -606,6 +606,19 @@ U_BOOT_DRIVER(serial_msm_geni) = { .flags = DM_FLAG_PRE_RELOC, }; +static const struct udevice_id geniqup_ids[] = { + { .compatible = "qcom,geni-se-qup" }, + { } +}; + +U_BOOT_DRIVER(geni_se_qup) = { + .name = "geni-se-qup", + .id = UCLASS_NOP, + .of_match = geniqup_ids, + .bind = dm_scan_fdt_dev, + .flags = DM_FLAG_PRE_RELOC, +}; + #ifdef CONFIG_DEBUG_UART_MSM_GENI static struct msm_serial_data init_serial_data = {