From patchwork Wed Mar 20 14:57:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 781369 Delivered-To: patch@linaro.org Received: by 2002:adf:cf01:0:b0:33e:7753:30bd with SMTP id o1csp346755wrj; Wed, 20 Mar 2024 07:58:46 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCW+7b5Tw0U9K2YwOd8vnmHBgJSUUTPED4xS1kgpf+iKQ+zfBdng4pnWI871cpmWftXECciBykNfOg9VydljM4tP X-Google-Smtp-Source: AGHT+IGb2ryGaMM9A5QWanqPKFDPWaVA70r4YWA2MWKFHpBbhmZrSAKyjQjqV9RlawLv1BjSj2TS X-Received: by 2002:a5d:5488:0:b0:33e:b7f8:7c66 with SMTP id h8-20020a5d5488000000b0033eb7f87c66mr4070684wrv.41.1710946726706; Wed, 20 Mar 2024 07:58:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1710946726; cv=none; d=google.com; s=arc-20160816; b=gCs4cWMVsR0N2sHMhE9xr+0gd2uU3U3C+FRM2t+Aqs/bwig+5hPEZR7bRTYT9275Lh DVXvg31WAgWrqQ16hyClyFq8BnlTQa2oYza17KhY5EB41cvfnATJrYKX43/8qeJaJN8b iJ89GCrlDphJZaEjaH1iJC1QG8eJPEaOgF0xMqV/18+W6aeH5/3gPEkimpjiBJCzF6O3 qIcE9y/sbj/cfv2oEUnsTCGs09guCrckELQHN8GmnUDaPsy1RWJtjdKHlgb97ouimCYg kVVi6S7DbIQoQRH2wWA79jvEXuHPMy/W9LRiAC6ku+GGwwchAqno5A2VHSk8ipJJgx6W W1tw== 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=cgGFkOv1r6ZqedijumR44euV2V/PWTObj0uui6365Yw=; fh=gSVpyLKtvZ+QePPYgVwr0OwBuSQ/slJGUurC/y9msiw=; b=DibSEC24tvG/i+TySVMEdeqJ5Ckl4b0xAs1UxkkTPRrlvMDk6vGl0x/vnZh2pG/MsX uD16nStbrPJpNEDyH/DJ0SdnMpfp0Z/c5BBN3vJpanq7SETqUOWdHSdK648/3qXkLSlt X2Cq3QGHn0tzKrcYGqjLu230PTix5/4sl9s1emHKKuV80kWCygNrS4Z4SkT6Tizw/+uL nTvxXY2EEqaw+hPoKaKFAhDg1KDnYfQFZFK5AfxH9f33XuUW0eJM6bg2R6hIgzeCk3Rm 1neAHps/OaaYW2EMOjLX/DYN+xeFFQl5PEaqM2YJP+9t1nsleSIvsIzJNU2oklBk9I2o 1MWg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CWOCoUYl; 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 v11-20020adff68b000000b0033cf5536144si7138149wrp.442.2024.03.20.07.58.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 07:58:46 -0700 (PDT) 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=CWOCoUYl; 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 C559388104; Wed, 20 Mar 2024 15:57:23 +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="CWOCoUYl"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 644E58809C; Wed, 20 Mar 2024 15:57:22 +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-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) (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 43430880F1 for ; Wed, 20 Mar 2024 15:57:20 +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-x336.google.com with SMTP id 5b1f17b1804b1-4146feb33e1so624905e9.2 for ; Wed, 20 Mar 2024 07:57:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710946640; x=1711551440; 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=cgGFkOv1r6ZqedijumR44euV2V/PWTObj0uui6365Yw=; b=CWOCoUYl6yupj7ZhUDOGG+fJY/TX090mC+2p4m83QAHwRXzk9YAY/x7wbpQhL7t6nh bnnn2pcRY96WLE1Nyz3zwZGie8zJjciY6fiKxhKgo36o7Uhu+zEt2qjl3bwHsfYpmJcC QD+1TUx4QXYdrIVdH/2Di30x5RcNq6kxmakItMubzmzowOk6eQbWvFgYb9OIkXrERRcP 2cm/Ain9l+lz9oxC9ZvSr0/AX4AR3tO71z9rHlj39cGbZTcZAwNQFirZBPlGMCh5Hlzi IOXXR+HK3hRu0SW76UXYwKROf4WDvyzGQ3/kMPwvP/p2E5mqfrGLrcnQXMQ1XKwayC5o 0kYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710946640; x=1711551440; 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=cgGFkOv1r6ZqedijumR44euV2V/PWTObj0uui6365Yw=; b=WrGnpH9mjNxszOj/hYXBZIChbFKR9Q7pBdEH/PTRpU4JZdPC08ZTf6uShyCijkepd4 ZbBkg6tmBWhFCH3FUX2Ow7s+e6cLHICV4o+uyoXuIpuV+PNSO4rrIZR2sJKfC0kdHuR+ AAHrQUQUn3I0VCd8vagZYCgRSnPLQNmX4+7b9uD1jixjffHoAMFA3B4dA+hxwef1O1HI pfbh1YUBGlhEbu2k/LVVm+s7DD5kgHIg4SZz16g6U1VHtL156norUl5+Va5gaiaEAP8L /jXqfOSLyjvnrxFlPKXdEDAGYBnQ/3w34ixkevOICu0kxvWZtitJgXXG9HbG+q50haOP U4aw== X-Gm-Message-State: AOJu0YyN8lQh1bzXQrGdatAJtYtUjsJmwwGdo5VLSpfA5e2jhmDHZapt v3oXNVtg4xzI38xnzGex3kwUoWnBbHla4Bfq49KeILKcTr/svXlE5uGOlW6oTkw= X-Received: by 2002:a05:600c:1c19:b0:414:63c6:8665 with SMTP id j25-20020a05600c1c1900b0041463c68665mr4644700wms.2.1710946639896; Wed, 20 Mar 2024 07:57:19 -0700 (PDT) Received: from lion.localdomain (host-92-17-96-232.as13285.net. [92.17.96.232]) by smtp.gmail.com with ESMTPSA id bi16-20020a05600c3d9000b0041468f79fd5sm2461268wmb.16.2024.03.20.07.57.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 07:57:19 -0700 (PDT) From: Caleb Connolly Date: Wed, 20 Mar 2024 14:57:12 +0000 Subject: [PATCH v4 09/14] serial: msm-geni: support livetree MIME-Version: 1.0 Message-Id: <20240320-b4-qcom-livetree-v4-9-d867ab1f06c2@linaro.org> References: <20240320-b4-qcom-livetree-v4-0-d867ab1f06c2@linaro.org> In-Reply-To: <20240320-b4-qcom-livetree-v4-0-d867ab1f06c2@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.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1262; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=e9QvEtgQXqVS65y/B+mDQKCzyUPIH18kPws1KWRjbZI=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhtRfP51Yj008uO/B8p5PljLzv15sK7Fx6L0g2d0jccTcb v++W3m8HaUsDIIcDLJiiiziJ5ZZNq29bK+xfcEFmDmsTCBDGLg4BWAiRicYGdZJul34OuPP4zQl 8buNS+UYmLJmJcpI1hSVZWveMin4/IyRYcVD15CHkl3G5T0lC9MjvF8E5HBL1IY3VBgI5jnvPX+ iAwA= 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. Reviewed-by: Neil Armstrong Reviewed-by: Sumit Garg 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 4aa0bc8c72bc..5260474fb9a4 100644 --- a/drivers/serial/serial_msm_geni.c +++ b/drivers/serial/serial_msm_geni.c @@ -605,8 +605,21 @@ U_BOOT_DRIVER(serial_msm_geni) = { .ops = &msm_serial_ops, .flags = DM_FLAG_PRE_RELOC | DM_FLAG_DEFAULT_PD_CTRL_OFF, }; +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 | DM_FLAG_DEFAULT_PD_CTRL_OFF, +}; + #ifdef CONFIG_DEBUG_UART_MSM_GENI static struct msm_serial_data init_serial_data = { .base = CONFIG_VAL(DEBUG_UART_BASE)