From patchwork Thu Apr 18 17:25:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 1925137 X-Patchwork-Delegate: caleb.connolly@linaro.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=prF3WYwL; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VL4Ss5Z3Fz1yZP for ; Fri, 19 Apr 2024 03:26:37 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6D21388694; Thu, 18 Apr 2024 19:26:29 +0200 (CEST) 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="prF3WYwL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2E73988697; Thu, 18 Apr 2024 19:26:28 +0200 (CEST) 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 autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) (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 44BBF88691 for ; Thu, 18 Apr 2024 19:26:25 +0200 (CEST) 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-x32d.google.com with SMTP id 5b1f17b1804b1-418ee2fcd6dso5239595e9.3 for ; Thu, 18 Apr 2024 10:26:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713461185; x=1714065985; 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=kjhWfkg2iMXib1TZN4ivFfM1EGBgzLIKjXndcigHPmE=; b=prF3WYwLG2izaSyZ7ert0/uSq0hdrA//b9bx50u1ukb8jbB0T7jXnue+CcjRrQfkE5 /kcz99sg7Ly6d+0yflLJCBtM9lKd7LKwP3M9InSu+p82hCWZ1Gx7G+CvPVR25sbWLhRJ 1q9BuGqpnnTQ3Cg1YmY2RNRb9vPjFT5LXJ+bruR0o2iZsKX1Uk9wi2pvh0cEC2794Sn/ e6XwWdE1cVtdsBUSJMRYki0SsaEU8+fgVjVFlyu9tjPWfSqKgMangjrydOyCsbarHksn cVc99pMskTqZOrlSybG9XD8evKzX0Vw+As/K608Vzk0rMWh26gpyCmma7c4sZG0HPIEA yDnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713461185; x=1714065985; 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=kjhWfkg2iMXib1TZN4ivFfM1EGBgzLIKjXndcigHPmE=; b=mXZ4cM66O1xYKeujX/7AahgQWiLqUvPSYAgGfrbN5nsdQBATpjAwPBye2f07VnoetN UtkPJpuAKUi1KPrv31B6qjNltl70UyK1keMbCYy7C5J/1JuRSdR4AxY2NSx8n+4GNer4 HQHTjkPY8SAKwr0Q9pmJ7U7ZwTZvPGiRVLRS+jliXbI02zafLFrex+4xETC6NT5v/wqh j5ptl8fdFWjji5MQPcRrVEjHr7dTZIgNV0ElRN9f/MJCNKaL0PgBwOgWwOOP4EOaAT+5 B88ZVTZlB/50B2AVHzzUe0KAXCpwjtxwKfN7/4PVhahlpSIDcWeByY5nkkmXgE8qZiOa 8Zhw== X-Forwarded-Encrypted: i=1; AJvYcCV0hnn93EzJBebmw++jxfm2ZHftNueEzPpgd2EfWKQYEGO3l/33/cesWAFby5sYjboGLDhWTvNCrlUVFcZT4ERbGppc/g== X-Gm-Message-State: AOJu0YyoCQEPD83XTEjIvrkdhJRyjov8drP0SXoHpvuKhmdTgI6Z9ZGg oMhW1koUJ7wbUqys/MkWVjxB28Swwjb0Kv3p9Y1Ciwrw4bxYjT7TfN7G9dkgcqc= X-Google-Smtp-Source: AGHT+IGQuZ5P/VbYzsVEzEfd4Yz3f9k1Z0p9TNpCfiZv2SuxgjkZBxzz2tX3r+OS7yWjQlp9T1qFFg== X-Received: by 2002:a05:600c:358a:b0:416:c23a:2c4b with SMTP id p10-20020a05600c358a00b00416c23a2c4bmr2578764wmq.17.1713461184842; Thu, 18 Apr 2024 10:26:24 -0700 (PDT) Received: from lion.localdomain (host-92-17-96-232.as13285.net. [92.17.96.232]) by smtp.gmail.com with ESMTPSA id u17-20020a05600c19d100b00416b163e52bsm7166057wmq.14.2024.04.18.10.26.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 10:26:24 -0700 (PDT) From: Caleb Connolly Date: Thu, 18 Apr 2024 18:25:44 +0100 Subject: [PATCH 1/9] gpio: qcom_pmic: add pm6125 MIME-Version: 1.0 Message-Id: <20240418-b4-qcom-rbx-fixes-v1-1-f5f19d52969e@linaro.org> References: <20240418-b4-qcom-rbx-fixes-v1-0-f5f19d52969e@linaro.org> In-Reply-To: <20240418-b4-qcom-rbx-fixes-v1-0-f5f19d52969e@linaro.org> To: Caleb Connolly , Neil Armstrong , Sumit Garg , Tom Rini Cc: u-boot-qcom@groups.io, u-boot@lists.denx.de X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=884; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=kfdleW4GLsQlnwbnRLqDXz1KJnE26LYo2jLTTPsZmUg=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhjTF8H2Rcut/fBJfpfbtV42V2+qt1/P4iowTjJgkF6Q1L lfrnLCno5SFQZCDQVZMkUX8xDLLprWX7TW2L7gAM4eVCWQIAxenAExkggLDP/2qwl2ue04cPrRi 71ODsxseaZkqLdoZ8iV+feX007MenzBn+GdW6ZF2sPHz2yV7TQztJGw7y6JKxZ7IPgqcKrLaJOm uRzYA 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 As with some other modern PMICs, writing to the GPIOs seems to make the device reset. Signed-off-by: Caleb Connolly --- drivers/gpio/qcom_pmic_gpio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/qcom_pmic_gpio.c b/drivers/gpio/qcom_pmic_gpio.c index dfb70faf94b4..362d98dbf8cb 100644 --- a/drivers/gpio/qcom_pmic_gpio.c +++ b/drivers/gpio/qcom_pmic_gpio.c @@ -363,8 +363,9 @@ static const struct udevice_id qcom_gpio_ids[] = { { .compatible = "qcom,pm8916-gpio" }, { .compatible = "qcom,pm8994-gpio" }, /* 22 GPIO's */ { .compatible = "qcom,pm8998-gpio", .data = QCOM_PMIC_QUIRK_READONLY }, { .compatible = "qcom,pms405-gpio" }, + { .compatible = "qcom,pm6125-gpio", .data = QCOM_PMIC_QUIRK_READONLY }, { .compatible = "qcom,pm8550-gpio", .data = QCOM_PMIC_QUIRK_READONLY }, { } }; From patchwork Thu Apr 18 17:25:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 1925138 X-Patchwork-Delegate: caleb.connolly@linaro.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=e5XK/QZh; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VL4T23jNTz1yZP for ; Fri, 19 Apr 2024 03:26:46 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CCC8B8869E; Thu, 18 Apr 2024 19:26:29 +0200 (CEST) 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="e5XK/QZh"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3630988691; Thu, 18 Apr 2024 19:26:28 +0200 (CEST) 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 autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) (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 2A34488693 for ; Thu, 18 Apr 2024 19:26:26 +0200 (CEST) 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-x32e.google.com with SMTP id 5b1f17b1804b1-418effbc70cso5568565e9.0 for ; Thu, 18 Apr 2024 10:26:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713461185; x=1714065985; 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=PkB93u2GEugy/u3O/UwbjGL8DV0p1duoITuRUfQFiYQ=; b=e5XK/QZhxljW84UVwC9zdXDGgYC2+xdt8k5R2Wkh2cipOPYpsZC24bdH38kW7zzQxu knw9nnsXgfNKVBwVYlT/RV/yr6ADyWf9UaasC7CkSHdcoLcrOrbHm0L14RnMXwG65Mg8 CrZiFy3RGIlUZgidkWPrGzvF2gTTK+Jy7DQgBZQG2FL7lmIRaxXH/+KSOES8akt9wcaV hILtB1ErUtccK9EapOlDH2S6yns6NS9UH/JRh90r9GnyeNJhusFEd9krNoHR5U5ZEme1 UhMd9UfnjqLnn1X+yrhb/0dGZFdmwj00r5Xnl3wr1fl/3hsfNNyqiJ/nvAWIN6l0ocfP fFlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713461186; x=1714065986; 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=PkB93u2GEugy/u3O/UwbjGL8DV0p1duoITuRUfQFiYQ=; b=OFXLTwTARinXTfb/e01N/vD5ck1I8D7ZLz7hO2T0Ua5GGBdjpyjTmk2wQPknPDendn qlrx087e8kqHncst2Qo8tswnC/tn89YaB1/mLHLc7/SwIdpRmryQRFRSN9kowWIYeOuI 4YkjftA92NwXJBAL6hf/QLmaMh83io6eBNFP3EELJuAO9JWEgJm4dopbymxS23rKR0IJ Dy2iscZwk4v+2gYjw222LP7gzFc0Al/w7sZYC+mZmc0jeMuWXKvrTObKUHOQlDMJdycD SF8Z24oSRALtQnHBlTAPGDlMvyVwDvr8s5IjCPd5yQ7/aaoDjEjsZdBEm8AxDcB/co1g FYQw== X-Forwarded-Encrypted: i=1; AJvYcCVx1iUyysqdrt5M/TE1r8eBp36t/+adsCF3DXPBoLN2xyCKUVp8FXTQwUkxV9NG1sg7kn+RJHrDFzsntcym2SKINg8lhw== X-Gm-Message-State: AOJu0YwxY+kX9DZPhRdY+x/7h1UUIw/yuyFOuQ4uPMbUDKwhy1u4VvWn V+OrPiTmPKUck80CtTGLE1MF+e7C8MaMeHIjYUWXfLe2NO34vvdgmnDu4N6hPps= X-Google-Smtp-Source: AGHT+IFsw4aanHTZw3zjIjTWDVGmnU5XvbJrfT09jnlq1bpsGYgn0ShzIQOI3ncCYl/6ZOv8t0ITGg== X-Received: by 2002:a05:600c:19c8:b0:418:95a1:1975 with SMTP id u8-20020a05600c19c800b0041895a11975mr2384113wmq.20.1713461185800; Thu, 18 Apr 2024 10:26:25 -0700 (PDT) Received: from lion.localdomain (host-92-17-96-232.as13285.net. [92.17.96.232]) by smtp.gmail.com with ESMTPSA id u17-20020a05600c19d100b00416b163e52bsm7166057wmq.14.2024.04.18.10.26.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 10:26:25 -0700 (PDT) From: Caleb Connolly Date: Thu, 18 Apr 2024 18:25:45 +0100 Subject: [PATCH 2/9] gpio: qcom_pmic: add pm8150l MIME-Version: 1.0 Message-Id: <20240418-b4-qcom-rbx-fixes-v1-2-f5f19d52969e@linaro.org> References: <20240418-b4-qcom-rbx-fixes-v1-0-f5f19d52969e@linaro.org> In-Reply-To: <20240418-b4-qcom-rbx-fixes-v1-0-f5f19d52969e@linaro.org> To: Caleb Connolly , Neil Armstrong , Sumit Garg , Tom Rini Cc: u-boot-qcom@groups.io, u-boot@lists.denx.de X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=895; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=SyJsuXFveE9NP3j11TB258tmAMK9y8RumBgL+mBQw2A=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhjTF8H06h+OPK94zOfxogeKkjty73l9fP1xtufDk41N9e /faN53i7ShlYRDkYJAVU2QRP7HMsmntZXuN7QsuwMxhZQIZwsDFKQATMS5lZNg1ry3YNXN19wLD 6z65GRdWfrx/3H8vb9s/1e86umX6ZY8Y/vAIsdb7xq/4NlViZd2ps48z479n/+i6b6Mx8W1xwMN 3ha4A 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 is used for the volume keys on some SM8150/SM8250 devices. Signed-off-by: Caleb Connolly --- drivers/gpio/qcom_pmic_gpio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/qcom_pmic_gpio.c b/drivers/gpio/qcom_pmic_gpio.c index 362d98dbf8cb..0dd3434e9e04 100644 --- a/drivers/gpio/qcom_pmic_gpio.c +++ b/drivers/gpio/qcom_pmic_gpio.c @@ -364,8 +364,9 @@ static const struct udevice_id qcom_gpio_ids[] = { { .compatible = "qcom,pm8994-gpio" }, /* 22 GPIO's */ { .compatible = "qcom,pm8998-gpio", .data = QCOM_PMIC_QUIRK_READONLY }, { .compatible = "qcom,pms405-gpio" }, { .compatible = "qcom,pm6125-gpio", .data = QCOM_PMIC_QUIRK_READONLY }, + { .compatible = "qcom,pm8150-gpio", .data = QCOM_PMIC_QUIRK_READONLY }, { .compatible = "qcom,pm8550-gpio", .data = QCOM_PMIC_QUIRK_READONLY }, { } }; From patchwork Thu Apr 18 17:25:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 1925139 X-Patchwork-Delegate: caleb.connolly@linaro.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=W9+gFgTe; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VL4TD0mzDz1yZP for ; Fri, 19 Apr 2024 03:26:56 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3BB5B886B0; Thu, 18 Apr 2024 19:26:31 +0200 (CEST) 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="W9+gFgTe"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 02BF288694; Thu, 18 Apr 2024 19:26:29 +0200 (CEST) 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 autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) (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 1B2438868B for ; Thu, 18 Apr 2024 19:26:27 +0200 (CEST) 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-x335.google.com with SMTP id 5b1f17b1804b1-418a0256381so7876165e9.1 for ; Thu, 18 Apr 2024 10:26:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713461186; x=1714065986; 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=5u1Os4mPjY9uiiBmDt0/pCIDUWOOpkIMsv7xW5JLldI=; b=W9+gFgTeEWrUw/FVhD6E6aki+bEDwroAG4QZXXU6HNPgSkXldf81CAwFlWKNCjeqph iOz8/LnkNASUR/yhshOQYoMfzIym4ndWHI9717kgDHf8kpCdugsJ3OEUYHNZmN/aXnhE +mRvM+s9PdEO2/quw9t6cNQEopqgysySluzahAel3t+TDLxYq8KMtcar62wfL2MaACii 98qsvgEPoQ35dSuO7mTT4EZIFggq3ZsFfiodmW9tb/LNZy0dNTVxdTx8In2e8/GN1tjk yakOsLnPrGMapRsuzkK+/Yra6/nP9bqACoL2uwP/kxdIR3h5h5GP3YauBYpPyGRAY3nx Sdqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713461186; x=1714065986; 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=5u1Os4mPjY9uiiBmDt0/pCIDUWOOpkIMsv7xW5JLldI=; b=Xm6Q6emp3aOSMay7qpop4VBRPy6bOtNel7nkCGWzG5/bGZkA8NQZ6CoKAhFhf9vg9Y 8AOZxyUZvcybD7rM3vGHcSrHtDQ7XbG64ivI/n8OtWdA1EtOTHuiOYQSoMura8PFDzf1 86jHeqJdk/CpgErGl1974lX0yt39DOOPkhAWFpjBx/FsXpuXIjGU6DHL3V4GBtk/PWJA 9j5SinrN7OMQKnVxKazzXsvWuDQjKNQLfw0dgFPlE5yJrQptkCXAyYxNy7ikpxkyPWvd uGhfhtCNe4w+UXMAbhde77eH8SarxWLnXcvl2KB1glzjdLwn8etwDoK2uLfT2e/AL1Hb RMKA== X-Forwarded-Encrypted: i=1; AJvYcCUQHtwHy6MhF8eCF0RtH+F4HmX5ENr7xbod7CZyn+tU4Ozx1YvPGMpIxZZiXo7fpIaWuVWTOXbysuV8XHM/TOsj22bD3w== X-Gm-Message-State: AOJu0YwCZgpM1OZH8vSmM7IlzBuIfTaHNn/mufcaikNdA9Cs7kGK/OyQ 2wBTLaaKXvOQIQcfR9SLjbGTu+PwcUrC+Y+iY9MVSMNB8KO1SH7IElXjG2zKQbI= X-Google-Smtp-Source: AGHT+IG3kQ+YCSuI6IhveMM4jq62O3x/4XGXlLiAig3yXyRpvyH/zTRM+tABBgZyMWCETksSvU7z1g== X-Received: by 2002:a05:600c:3504:b0:418:d58e:2944 with SMTP id h4-20020a05600c350400b00418d58e2944mr2515032wmq.18.1713461186520; Thu, 18 Apr 2024 10:26:26 -0700 (PDT) Received: from lion.localdomain (host-92-17-96-232.as13285.net. [92.17.96.232]) by smtp.gmail.com with ESMTPSA id u17-20020a05600c19d100b00416b163e52bsm7166057wmq.14.2024.04.18.10.26.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 10:26:26 -0700 (PDT) From: Caleb Connolly Date: Thu, 18 Apr 2024 18:25:46 +0100 Subject: [PATCH 3/9] iommu: qcom-smmu: add qcom generic compatible MIME-Version: 1.0 Message-Id: <20240418-b4-qcom-rbx-fixes-v1-3-f5f19d52969e@linaro.org> References: <20240418-b4-qcom-rbx-fixes-v1-0-f5f19d52969e@linaro.org> In-Reply-To: <20240418-b4-qcom-rbx-fixes-v1-0-f5f19d52969e@linaro.org> To: Caleb Connolly , Neil Armstrong , Sumit Garg , Tom Rini Cc: u-boot-qcom@groups.io, u-boot@lists.denx.de X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=843; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=s6fQFUO8M4qjLm/bsMgQzOPNj/VYaDfmD9iMPRCs0DM=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhjTF8H0f3iyweTT9jldDx0H3i3/NjnGZl0ftmJb+x11Ar 6Oy9Ob3jlIWBkEOBlkxRRbxE8ssm9ZettfYvuACzBxWJpAhDFycAjCRWUKMDN2NV5uvzl3GlNxt 0fhpg87KUCnNaVITmt1lTbM+KRzd9JzhnxrrQxOj/quvpttf5tQ78n1x5eVjWva3Yn9ndUT93O/ GawgA 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 With the exception of SDM845, most other Qualcomm SoCs have the Qualcomm specific (but not SoC) specific SMMU compatible string. Add it here so we can match those without having to add individual SoCs to the list here. Signed-off-by: Caleb Connolly --- drivers/iommu/qcom-hyp-smmu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iommu/qcom-hyp-smmu.c b/drivers/iommu/qcom-hyp-smmu.c index f2b39de56f4a..7b646d840dd4 100644 --- a/drivers/iommu/qcom-hyp-smmu.c +++ b/drivers/iommu/qcom-hyp-smmu.c @@ -380,8 +380,9 @@ static struct iommu_ops qcom_smmu_ops = { }; static const struct udevice_id qcom_smmu500_ids[] = { { .compatible = "qcom,sdm845-smmu-500" }, + { .compatible = "qcom,smmu-500", }, { /* sentinel */ } }; U_BOOT_DRIVER(qcom_smmu500) = { From patchwork Thu Apr 18 17:25:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 1925140 X-Patchwork-Delegate: caleb.connolly@linaro.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=yXkueJZu; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VL4TQ2jcvz1yZP for ; Fri, 19 Apr 2024 03:27:06 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 99C9988698; Thu, 18 Apr 2024 19:26:31 +0200 (CEST) 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="yXkueJZu"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 36211886A6; Thu, 18 Apr 2024 19:26:30 +0200 (CEST) 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 autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) (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 3CCE188692 for ; Thu, 18 Apr 2024 19:26:28 +0200 (CEST) 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-x229.google.com with SMTP id 38308e7fff4ca-2d8b194341eso11129531fa.3 for ; Thu, 18 Apr 2024 10:26:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713461187; x=1714065987; 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=d/wErtk16zYIKMThyrT+EkU6QGyKz9kq913d8psFgRE=; b=yXkueJZu4C5rN9KpxKgU0VXk15MFv+N5OkXGkCjHJ0ons/5tS3wayWDWw7bXV+TyQS CeKNf1cRnybulILEbI4HnIhD5js4NEqDa8b4HWtHvx79DKP2P0Ki0tnS52cENmiSvRr3 YtzyIWyr63GUEFKGh3rqEd3q0R3RHfQun/WLYSRU+37ISRzRK3gi+5EqCMeSPyU6gKnJ LdJ3jfPiuksnEI01fVaaY33AufYintzCfpvS+V+YLqCybTJ6hE6U/HNXFXIJX/Bm1lP1 aoNykATD5Fx8VIhdTjOrGpwh6rIrO6FRghN0q5JNilqiY3LpEUNBFuEe/gGWPDVJMkBa 9TKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713461187; x=1714065987; 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=d/wErtk16zYIKMThyrT+EkU6QGyKz9kq913d8psFgRE=; b=Pr+/G1++pdIJpNQeuArF6zjK2dP612W7fsVOs5sKYcbPWqKshz5G+d/38rV2n/Zm4x p2rgmzI2aOnjRAF4CQQ805uwXIe0x416sXSa3KX2xfg8w5i+2i+7b8zvtF2hXGHL8XFh tiM257g6U0Qquo36QbhsxeXIhCzv9qQGdMwwn2ldK/nhLEIMQ3qv0KvqWu/I9MNEevgQ K+2/PFLDqdEH+I41EeDORp1ygoqIpuKLdtI5LLj57azizxA38Oyow9IfjqHqZCcx7boo OelNJqQiJv52oiYBmuC2E3OhRpMC0iBeqRlqeftQ/lfv/sHJETZ8SAv4NpA0q4b3hN3A F6Bg== X-Forwarded-Encrypted: i=1; AJvYcCU/yqdvvJhMz1JVebTgmyT390EwCR1qhsaLx0Y0AUVDDZy+q+oRqXfw+CfcW+iM94Vr8Rn5nW4WxaXDv3nQwbKGT4EuAA== X-Gm-Message-State: AOJu0Ywd8QaORxjEQRRuB2jTiqsdBkUJyuyyPM/EnAZB0H/gmssbbrHQ ZCbgmAB7X1q/ZO1HNkzhrnyijiqhApMMG8q5LFUESEI8IbdWfZplHs22wPi0T4E= X-Google-Smtp-Source: AGHT+IG9ewn7e8vAT2vaLo05h0F8Z2h16rlhy0FrQcA4qF14Xqk/Lt5vdFB68Yicsj7E7uGqzLhm4A== X-Received: by 2002:a05:651c:10c9:b0:2d9:fe84:a485 with SMTP id l9-20020a05651c10c900b002d9fe84a485mr2071238ljn.29.1713461187540; Thu, 18 Apr 2024 10:26:27 -0700 (PDT) Received: from lion.localdomain (host-92-17-96-232.as13285.net. [92.17.96.232]) by smtp.gmail.com with ESMTPSA id u17-20020a05600c19d100b00416b163e52bsm7166057wmq.14.2024.04.18.10.26.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 10:26:26 -0700 (PDT) From: Caleb Connolly Date: Thu, 18 Apr 2024 18:25:47 +0100 Subject: [PATCH 4/9] phy: qcom: snps-femto-v2: drop clocks MIME-Version: 1.0 Message-Id: <20240418-b4-qcom-rbx-fixes-v1-4-f5f19d52969e@linaro.org> References: <20240418-b4-qcom-rbx-fixes-v1-0-f5f19d52969e@linaro.org> In-Reply-To: <20240418-b4-qcom-rbx-fixes-v1-0-f5f19d52969e@linaro.org> To: Caleb Connolly , Neil Armstrong , Sumit Garg , Tom Rini Cc: u-boot-qcom@groups.io, u-boot@lists.denx.de X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=2290; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=ICCz9hpOfFIT7tLy64Sy4o+II72OOqyAu2y9tUZCKcE=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhjTF8H1zp3+Sbb25aFv5PP2Oyft1o+Vvt5cvdlh0WzlRY 139vu8WHaUsDIIcDLJiiiziJ5ZZNq29bK+xfcEFmDmsTCBDGLg4BWAi+usYGWYKpbZ9DvcpsntZ K13z8C6DZWzUi/Dp71MY/306/ex4Ngcjw8LF7zdoKC9ZEHe4XytEo5znytlcoXqPBpvbnd7LPdP 7zwIA 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 There is a clock associated with this phy, but it's always from the rpmhcc and isn't actually needed for the hardware to work. Drop all the clock handling from the driver. Signed-off-by: Caleb Connolly --- drivers/phy/qcom/phy-qcom-snps-femto-v2.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/drivers/phy/qcom/phy-qcom-snps-femto-v2.c b/drivers/phy/qcom/phy-qcom-snps-femto-v2.c index a1675b664e46..04f0f0e7817d 100644 --- a/drivers/phy/qcom/phy-qcom-snps-femto-v2.c +++ b/drivers/phy/qcom/phy-qcom-snps-femto-v2.c @@ -5,10 +5,8 @@ * * Based on Linux driver */ -#include -#include #include #include #include #include @@ -16,9 +14,8 @@ #include #include #include -#include #include #include #define USB2_PHY_USB_PHY_UTMI_CTRL0 (0x3c) @@ -61,9 +58,8 @@ #define REFCLK_SEL_DEFAULT (0x2 << 0) struct qcom_snps_hsphy { void __iomem *base; - struct clk_bulk clks; struct reset_ctl_bulk resets; }; /* @@ -142,10 +138,8 @@ static int qcom_snps_hsphy_power_on(struct phy *phy) { struct qcom_snps_hsphy *priv = dev_get_priv(phy->dev); int ret; - clk_enable_bulk(&priv->clks); - ret = reset_deassert_bulk(&priv->resets); if (ret) return ret; @@ -160,9 +154,8 @@ static int qcom_snps_hsphy_power_off(struct phy *phy) { struct qcom_snps_hsphy *priv = dev_get_priv(phy->dev); reset_assert_bulk(&priv->resets); - clk_disable_bulk(&priv->clks); return 0; } @@ -174,21 +167,14 @@ static int qcom_snps_hsphy_phy_probe(struct udevice *dev) priv->base = dev_read_addr_ptr(dev); if (IS_ERR(priv->base)) return PTR_ERR(priv->base); - ret = clk_get_bulk(dev, &priv->clks); - if (ret < 0 && ret != -ENOENT) { - printf("%s: Failed to get clocks %d\n", __func__, ret); - return ret; - } - ret = reset_get_bulk(dev, &priv->resets); if (ret < 0) { printf("failed to get resets, ret = %d\n", ret); return ret; } - clk_enable_bulk(&priv->clks); reset_deassert_bulk(&priv->resets); return 0; } From patchwork Thu Apr 18 17:25:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 1925141 X-Patchwork-Delegate: caleb.connolly@linaro.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=mR+yLjzn; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VL4Tc2gXvz1yZP for ; Fri, 19 Apr 2024 03:27:16 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 07E7E8869A; Thu, 18 Apr 2024 19:26:34 +0200 (CEST) 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="mR+yLjzn"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C8EE9886AD; Thu, 18 Apr 2024 19:26:30 +0200 (CEST) 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 autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) (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 E487188693 for ; Thu, 18 Apr 2024 19:26:28 +0200 (CEST) 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-wr1-x433.google.com with SMTP id ffacd0b85a97d-34782453ffdso1091193f8f.1 for ; Thu, 18 Apr 2024 10:26:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713461188; x=1714065988; 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=ysUkJvznPlkaXDP3wq0WHW9sRVz3WIX/KBxeJN26Cj4=; b=mR+yLjzngSikE1JnznZ+MD6Xu9B+jg5AU0YCN4adoDzeQ1F2rV76zIFVPOxMaOUNb8 +tC0xzTQyNUn8dFwTBkJXDabA7BypGTrGFLph3GK7fcTDkH7criVzDPYOrXGcRJATrRg WDi17b+OvnKqD9htO/ve7QClxdu7mamZTB4ArZXeGXqe4YiQUjV87A6DuW47jIp9Cf0N 0rXsSa5mGTOTigKtrBuabrA0fVinahOpjVTzQPonuLayu+rJVC0jjbHnDhNt0neP7amf ZLh+0YzvqyZfXtIkUG58ZeTRY9EPNvG72PD38otYrVtZxHIo7yWWzNqTGSKQzGLF0xET P2yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713461188; x=1714065988; 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=ysUkJvznPlkaXDP3wq0WHW9sRVz3WIX/KBxeJN26Cj4=; b=RbqPEu0af+SA36FM6k0Dfal5goVBmJppLBqaLwqmGRenpuMKuSqNiHH62i6fhg2obX vzBSAvDJH7yKtT20zITbzCnkjP679kpnJc1qAa58kplPeprPMfP4MUhADceyIqGsU4Qm OTQhz5b6EW+Raow7/EGk0CC9ars13/TS26igtAql0uBAM0LcgjINR747ELWm7TjpNQpk khsWum+/OUy9/o+3ufQ9d2dnZEwTrf2yy6zcnNtXEV30rKO6kLul/vAu+Aobf5BwrAkJ nspqZ2MBAyOWHQNBIs3hYEEkmWC1Yh7cYJrZ753wjOp7wvi7ApgvjsoZhoL1etbucmOo lQLQ== X-Forwarded-Encrypted: i=1; AJvYcCXIy7KnCwTGMpGcpLnn8rXkiYIipEyPANwSeRnljaG2OythkrTd27Crb6i19bkmNB1Rxmje/ENac3c6HUT7SyHUbei18w== X-Gm-Message-State: AOJu0YwtkzurQWqcMEMSoCYQB2Vu5D1Kw7m4a8K0mw79csVMcXmNrswX TJt3clsgjUejpLS/3DKLM2zlnxhqzsq44taGOrH7jMcBGHYA1gJp7vKP0wVfJ3E= X-Google-Smtp-Source: AGHT+IEydRrE9TlMXbtRh+Chhfgxk1d3ggz9dRk9iUdYtjQE6BBN4RyDUgSRFQMEGFJPfOpJr3pq+g== X-Received: by 2002:a05:6000:70c:b0:34a:2a8f:db18 with SMTP id bs12-20020a056000070c00b0034a2a8fdb18mr1784451wrb.7.1713461188421; Thu, 18 Apr 2024 10:26:28 -0700 (PDT) Received: from lion.localdomain (host-92-17-96-232.as13285.net. [92.17.96.232]) by smtp.gmail.com with ESMTPSA id u17-20020a05600c19d100b00416b163e52bsm7166057wmq.14.2024.04.18.10.26.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 10:26:27 -0700 (PDT) From: Caleb Connolly Date: Thu, 18 Apr 2024 18:25:48 +0100 Subject: [PATCH 5/9] arm: dts: qrb4210-rb2-u-boot: add u-boot fixups MIME-Version: 1.0 Message-Id: <20240418-b4-qcom-rbx-fixes-v1-5-f5f19d52969e@linaro.org> References: <20240418-b4-qcom-rbx-fixes-v1-0-f5f19d52969e@linaro.org> In-Reply-To: <20240418-b4-qcom-rbx-fixes-v1-0-f5f19d52969e@linaro.org> To: Caleb Connolly , Neil Armstrong , Sumit Garg , Tom Rini Cc: u-boot-qcom@groups.io, u-boot@lists.denx.de X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=589; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=sEeuLcHn4o6Fr54349Q/wHpTGLmNF2RBFRknZhKdS9s=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhjTF8H0WOrcajt3tZ7kwefNhn0szG71rRSZnzb0qcvXJz xUci+X1O0pZGAQ5GGTFFFnETyyzbFp72V5j+4ILMHNYmUCGMHBxCsBETk1k+MNzRuFOm6TlUotj inzcCd8/CV3jLm7VPDbztJS0+U5+JmGGf6ov8k/96L57YqmQsMkqhpqVD4UyBBkm3W88ZpBXzyw VHwcA 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 Add a fixup to force dr_mode to host for U-Boot. Signed-off-by: Caleb Connolly --- arch/arm/dts/qrb4210-rb2-u-boot.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/dts/qrb4210-rb2-u-boot.dtsi b/arch/arm/dts/qrb4210-rb2-u-boot.dtsi new file mode 100644 index 000000000000..7d1375f38c44 --- /dev/null +++ b/arch/arm/dts/qrb4210-rb2-u-boot.dtsi @@ -0,0 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0 + +/* This is usually OTG but U-Boot doesn't support that properly */ +&usb_dwc3 { + dr_mode = "host"; +}; From patchwork Thu Apr 18 17:25:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 1925142 X-Patchwork-Delegate: caleb.connolly@linaro.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=WzTv+/VF; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VL4Tp0h2vz1yZP for ; Fri, 19 Apr 2024 03:27:26 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 69175886A7; Thu, 18 Apr 2024 19:26:34 +0200 (CEST) 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="WzTv+/VF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1E28F8869D; Thu, 18 Apr 2024 19:26:32 +0200 (CEST) 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 autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) (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 C34298869A for ; Thu, 18 Apr 2024 19:26:29 +0200 (CEST) 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-wr1-x429.google.com with SMTP id ffacd0b85a97d-34665dd7744so720736f8f.1 for ; Thu, 18 Apr 2024 10:26:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713461189; x=1714065989; 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=uIunq2hVl4wOxoVQv+vRWpmXjACM5TsW7K5jOwtHs2s=; b=WzTv+/VFMEBi7D2zOC8uhYrwr++DfoC4Oi6/H/SISCpf5TuQLsjGkHIoYp1K/tiGGM itVQmmh2PdYfJGrOiN85voYLdP4t24U7DTG73xJaMEwFctqPcxtk8/VP+f4X0y5gx6w9 B0qHiVaToQxKFFSZusft0c8uaq9iyENv2CcXyylymMlooG4BvRvMot2y4IFc1aW0VNx0 m8Iom0V3Y7nv6YuvdaTDXwiiWjy0egETIDNhkDoC0U9GwVZ18qKrbvy4c8HWXgK3mP9V RgQzGrOgAvqhT1x9iKNliVlY/fJqBThCjzfkb6L7+BVNCXWd+MP/QfSe+40EU0lq6TSD XSDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713461189; x=1714065989; 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=uIunq2hVl4wOxoVQv+vRWpmXjACM5TsW7K5jOwtHs2s=; b=RYdRjnfphMpBp2HzYstzEoL7Qlg0L85s3GTbgCFjrqbuMWRG7RqUavX9EYNsMPYA7v EebSVS9n/A9FfFw6O7XxeF+CesTMTIsc7WkLk2j4V0AaSIbWMNyVmvE8B2tFEflqw2Oa 6SBI3bgGE7TfSC/CjtAG5jt/+7FvAgk+FREIoAIvVB3DejJZuUGk2VM9bGZIR6Ed7FXX GT6/teFuV47rbK7UvFwz5Ud7giRF6pQBRJ+JD3PBXu8zEm5ffxpVZZxaasYOVX+6HSU9 5hsbdvGqCxqyrgLCc2zN5747I2VTJy5+0iWHINSsJbTwhW1tT28BknHbc5tfEz5ypWrG yKQw== X-Forwarded-Encrypted: i=1; AJvYcCWIu1xAskIbLJ1VxJ3kDxyz76kO8GgCZNjPnoIaWPXeNOwWiF+cgCm52BjS5u0bqAAXnHeR1DWrdcltSzi1bYu7zOUBWg== X-Gm-Message-State: AOJu0Yz5mnEkoPeizvPl8Vnlc+cAjg6bZ1LQsYYml+hBJob4AwU/fHj8 9oL6vGr79PHZpFv8vDIssPk2iNN04VPaiKJ/u7bocZaS6zdZz4DLfgRr+xSTt5Q= X-Google-Smtp-Source: AGHT+IHnGziyvTsSbd4/FYwmZJASzBw37yrM+gW64oJxUvzCKz9aDb5+vMx/M0ZajpwVQJvGqGp2XA== X-Received: by 2002:a5d:684c:0:b0:345:f08b:a7cb with SMTP id o12-20020a5d684c000000b00345f08ba7cbmr2380672wrw.4.1713461189373; Thu, 18 Apr 2024 10:26:29 -0700 (PDT) Received: from lion.localdomain (host-92-17-96-232.as13285.net. [92.17.96.232]) by smtp.gmail.com with ESMTPSA id u17-20020a05600c19d100b00416b163e52bsm7166057wmq.14.2024.04.18.10.26.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 10:26:28 -0700 (PDT) From: Caleb Connolly Date: Thu, 18 Apr 2024 18:25:49 +0100 Subject: [PATCH 6/9] mach-snapdragon: implement ft_board_setup() for USB role selection MIME-Version: 1.0 Message-Id: <20240418-b4-qcom-rbx-fixes-v1-6-f5f19d52969e@linaro.org> References: <20240418-b4-qcom-rbx-fixes-v1-0-f5f19d52969e@linaro.org> In-Reply-To: <20240418-b4-qcom-rbx-fixes-v1-0-f5f19d52969e@linaro.org> To: Caleb Connolly , Neil Armstrong , Sumit Garg , Tom Rini Cc: u-boot-qcom@groups.io, u-boot@lists.denx.de X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1783; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=vTdWylU+Qm/b2Kjzlu3fUijp+wgsNbm8wf9HDTuxWOg=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhjTF8H388XE9U1fUmLvWffZNU5pRtttEoqq74PGq+S1ux 6X1Lv3rKGVhEORgkBVTZBE/scyyae1le43tCy7AzGFlAhnCwMUpABNhSGH4yTh5E//KkzeZOLkZ d+5PfGzPv6r4jeZjK8bqjxf5TYsWhDAytE9c4TJrX/jcXl5PjukqSW2bKryzWXkid/758m1xVs4 PNgA= 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 Some Qualcomm boards have only one USB controller which is muxed between the type-c port and an internal USB hub for type-A and ethernet. We modify the DT for these to force them to host mode in U-Boot. However in Linux DRD role switching is supported (required, even). Use ft_board_setup() to adjust the dr_mode property for these boards. While we're here, define pr_fmt for this file so we can more easily identify log messages. Signed-off-by: Caleb Connolly --- arch/arm/mach-snapdragon/of_fixup.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/mach-snapdragon/of_fixup.c b/arch/arm/mach-snapdragon/of_fixup.c index 3f7ac227bd09..55368dd43b66 100644 --- a/arch/arm/mach-snapdragon/of_fixup.c +++ b/arch/arm/mach-snapdragon/of_fixup.c @@ -16,8 +16,10 @@ * Copyright (c) 2024 Linaro Ltd. * Author: Caleb Connolly */ +#define pr_fmt(fmt) "of_fixup: " fmt + #include #include #include #include @@ -152,4 +154,22 @@ void qcom_of_fixup_nodes(void) { time_call(fixup_usb_nodes); time_call(fixup_power_domains); } + +int ft_board_setup(void *blob, struct bd_info __maybe_unused *bd) +{ + struct fdt_header *fdt = blob; + int node; + + /* We only want to do this fix-up for the RB1 board, quick return for all others */ + if (!fdt_node_check_compatible(fdt, 0, "qcom,qrb4210-rb2")) + return 0; + + fdt_for_each_node_by_compatible(node, blob, 0, "snps,dwc3") { + log_debug("%s: Setting 'dr_mode' to OTG\n", fdt_get_name(blob, node, NULL)); + fdt_setprop_string(fdt, node, "dr_mode", "otg"); + break; + } + + return 0; +} From patchwork Thu Apr 18 17:25:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 1925143 X-Patchwork-Delegate: caleb.connolly@linaro.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=xaM2NV++; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VL4Tz1q6Vz1yZP for ; Fri, 19 Apr 2024 03:27:35 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C9CB1886AC; Thu, 18 Apr 2024 19:26:34 +0200 (CEST) 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="xaM2NV++"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A5EAC8869D; Thu, 18 Apr 2024 19:26:32 +0200 (CEST) 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 autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) (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 950A1886A7 for ; Thu, 18 Apr 2024 19:26:30 +0200 (CEST) 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-wr1-x432.google.com with SMTP id ffacd0b85a97d-3476dcd9c46so768001f8f.0 for ; Thu, 18 Apr 2024 10:26:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713461190; x=1714065990; 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=LuY4IJnS3xAD09urZivC55YkvTtWrEUFIrmTWhylKUg=; b=xaM2NV++3SuMXdaQysSs8skgPWK7PqV0JF4YMq3WB9wayAbJpmBH5C0PA6qKJ9I3EO XcESgJANKoxwxvDGE/+dlHh3l/64x+6MSKIR75pt5/wQlcpTURbyOagd+vj+HfaLh+4i B+cO9PO7VpQN7ttruuvbHHymXK7943Y8gEjgo1rKpUQ4d9pcAI4w3TG6Yy7m4iULiwlu PnIiGSMTE4A4R/G9ipufn26Xqn7H8wqrT1Ui08fln02feQroE7EdZFIwNyX7mh5ec3Hy 8i2Gie1cgH0WLwlSXTUdzyruu8+qFj+dlRZQoieuGdiB4IHUxiIkOVsW1v1K6yLYBg5X SJ2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713461190; x=1714065990; 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=LuY4IJnS3xAD09urZivC55YkvTtWrEUFIrmTWhylKUg=; b=FSVCHo879//6fE+PCzTw5xCE1tRBXjsumeqfrI8Ozp5JGsSlwPO4NXrDj24z4qSSvX ykVdZhz4/2lBelG/F0rtCHKJ7ggEoSiH6hQ3G0vLtaFLbISiZgG4T5uVpWHfYROS3ykl 5bZnJoTWWNMJ/TS2N88JY+VFCDMegMaiJagQsMdwA9kEDszzExJZevT+wo2U9oEawkOX xJwxCHebfgr7Jzng63Y1t+2h5CDJAQwUC83mB/ge0L5NPyzNWo5WjvVFtASCSaL24Jbv KDFLNTK0NZmw0AoBAObbidOVwBfMEpr93zgvzq821ytHGk2RvLocJoviiaqXSP+4QKXU SIuQ== X-Forwarded-Encrypted: i=1; AJvYcCVxYhJNLcRDbDe8OnBTbOIDyxOZ8MWHjo4NHPbXlwTMySb3IC2ec1hhsKZ+bzGcrDpt8F9EK5tXpRUc7xxSqWXstY/rRA== X-Gm-Message-State: AOJu0Yy5ALZVrtnKTj3d8anbZN5ixwfjvNnm5IM98IcSzY1bpLCQN9Oy MUopsUKUlcIU2OILhTIlzdqhKVufGkouNC9TXrgZ2GkteZkZheZoMgVMQMWAS+c= X-Google-Smtp-Source: AGHT+IF+0enlssfK7HDY6iQNddRZpHMN3o+sIhHMP9HwJ7lr0M9P3ukhtt87ntxmW43jfe4/3TiWAg== X-Received: by 2002:adf:db46:0:b0:346:9903:d10f with SMTP id f6-20020adfdb46000000b003469903d10fmr2178935wrj.12.1713461190114; Thu, 18 Apr 2024 10:26:30 -0700 (PDT) Received: from lion.localdomain (host-92-17-96-232.as13285.net. [92.17.96.232]) by smtp.gmail.com with ESMTPSA id u17-20020a05600c19d100b00416b163e52bsm7166057wmq.14.2024.04.18.10.26.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 10:26:29 -0700 (PDT) From: Caleb Connolly Date: Thu, 18 Apr 2024 18:25:50 +0100 Subject: [PATCH 7/9] qcom_defconfig: enable OF_BOARD_SETUP MIME-Version: 1.0 Message-Id: <20240418-b4-qcom-rbx-fixes-v1-7-f5f19d52969e@linaro.org> References: <20240418-b4-qcom-rbx-fixes-v1-0-f5f19d52969e@linaro.org> In-Reply-To: <20240418-b4-qcom-rbx-fixes-v1-0-f5f19d52969e@linaro.org> To: Caleb Connolly , Neil Armstrong , Sumit Garg , Tom Rini Cc: u-boot-qcom@groups.io, u-boot@lists.denx.de X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=577; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=KWVbTvhUmSkAmdAG6mFU79kzv6VdwapreGlEz7VrjFI=; b=kA0DAAgReTBFn7kwMhcByyZiAGYhV76giO3I8/wmzkurrAzAqdzeaBkp9apr/RnZFTiyDE4Id Ih1BAARCAAdFiEEF8imOYKt0z8ot6DQeTBFn7kwMhcFAmYhV74ACgkQeTBFn7kwMhd7JwD8CJac 8lDMUYpvCn3AQt36M+zrvS4CGYJcJLr0HkxEQ3MA/09j/ZQL2P7glTTX6v/S7y7ee1/yAnAfX+d XgADndQSA 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 Use our new ft_board_setup(). Signed-off-by: Caleb Connolly --- configs/qcom_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/qcom_defconfig b/configs/qcom_defconfig index 7b589f0bf7a7..209a7ba324d0 100644 --- a/configs/qcom_defconfig +++ b/configs/qcom_defconfig @@ -33,8 +33,9 @@ CONFIG_CMD_USB=y CONFIG_CMD_CAT=y CONFIG_CMD_BMP=y CONFIG_CMD_LOG=y CONFIG_OF_LIVE=y +CONFIG_OF_BOARD_SETUP=y CONFIG_BUTTON_QCOM_PMIC=y CONFIG_CLK=y CONFIG_CLK_QCOM_QCM2290=y CONFIG_CLK_QCOM_QCS404=y From patchwork Thu Apr 18 17:25:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 1925144 X-Patchwork-Delegate: caleb.connolly@linaro.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=wZbcJh8O; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VL4V90rbTz1yZP for ; Fri, 19 Apr 2024 03:27:45 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3B34088692; Thu, 18 Apr 2024 19:26:36 +0200 (CEST) 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="wZbcJh8O"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8014B886AA; Thu, 18 Apr 2024 19:26:34 +0200 (CEST) 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 autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) (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 F05A9886B7 for ; Thu, 18 Apr 2024 19:26:31 +0200 (CEST) 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-x333.google.com with SMTP id 5b1f17b1804b1-415515178ceso8874455e9.0 for ; Thu, 18 Apr 2024 10:26:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713461191; x=1714065991; 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=Y6a3GLSxUNj02BzbfG0Y6SJymgdyRdvu3NJTVnfUdoU=; b=wZbcJh8O3LrGSD7qh9C9GVxph6SORlbb7VpjpSmQ03Ftmzx55pjxRLFuFmTwgFJB8l HYs94QY1Jt9+Rl7Ey2gLva/2iIvsBfU4aHJc8+boYtcpm0AoXysClYv8MPoCRz34GFMl sY6ay0sSEzOVXMstySYCZLkJOYi+rvC5zbyCC2H4Psy5u8wgTh6h0FkBxD2FyaaDKrlN hm9LyPs1iVJ31oC1NxioWWs/o5Y0w1A0KGOSH/KdWz6Lm9UTFhwc3LKJvxGEgjMTanJU SXuDFDaZo307xnQnczjh6cbAysTm3Iu8j371E/CBBQ2aTAhPULPhXLJzBgF2gCY4nJZ4 9JIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713461191; x=1714065991; 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=Y6a3GLSxUNj02BzbfG0Y6SJymgdyRdvu3NJTVnfUdoU=; b=QHIDwbjK9EQwrNWnE+wAJUlVsZ/yXHwaq3qc5OzUTUIKR7zhJpZk5EV63GX0TYB4Nd JaQPhTHYv0A+aa4vQvDWfs+60idFSqZM1bVYIhJpGRyJCwnZYLozE/+eVl29DGhoemgt lannsu/gsZRZER9I0Sij7pNRFItm3mJI8Vdpo6cxI2H5ZX5Z2zerXyZTYsvbhpWGlkhz nhAJ/A16+01zFUKoHmugMQgdwEyRqG2TwrglP31asU9Qiqi6yGcplMeR4m4s6hEEneZV vogtuRqa86DMtMqAMYospu6i3SbXacSH25mNjLobTytv3vw/qNu1aQY51Lc8ClQJ62aY gvTg== X-Forwarded-Encrypted: i=1; AJvYcCU3T3/eiIul++d64M0ue8uC52uhXcSB2Esbd5OdQn4Y7N+VZ8RnA4YWbzzoPPskZjRatFNrQYHNexBTjJIH+SaB+pkfIQ== X-Gm-Message-State: AOJu0YzPnYtOWsd+BFthB8Qxlp0srRlhwdO73YGEauN8ZACcCueWRWi+ /bFblnzhaopN7Y8aBjKCyYiw7lMU0N2SNWAc4dygJV2aXC60ushnhA4tiAJoFIo= X-Google-Smtp-Source: AGHT+IGXbOpV3Iq0gX0xzdgYIRGPA0Ck5jFgc5xeNNIqvMp1nLs671u4En3VFHMJycxjNxcRyttl1w== X-Received: by 2002:a05:600c:34d3:b0:418:ea1e:39fe with SMTP id d19-20020a05600c34d300b00418ea1e39femr1437491wmq.11.1713461191534; Thu, 18 Apr 2024 10:26:31 -0700 (PDT) Received: from lion.localdomain (host-92-17-96-232.as13285.net. [92.17.96.232]) by smtp.gmail.com with ESMTPSA id u17-20020a05600c19d100b00416b163e52bsm7166057wmq.14.2024.04.18.10.26.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 10:26:31 -0700 (PDT) From: Caleb Connolly Date: Thu, 18 Apr 2024 18:25:51 +0100 Subject: [PATCH 8/9] qcom_defconfig: define safe default SYS_LOAD_ADDR MIME-Version: 1.0 Message-Id: <20240418-b4-qcom-rbx-fixes-v1-8-f5f19d52969e@linaro.org> References: <20240418-b4-qcom-rbx-fixes-v1-0-f5f19d52969e@linaro.org> In-Reply-To: <20240418-b4-qcom-rbx-fixes-v1-0-f5f19d52969e@linaro.org> To: Caleb Connolly , Neil Armstrong , Sumit Garg , Tom Rini Cc: u-boot-qcom@groups.io, u-boot@lists.denx.de X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=798; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=1V1Gh5aVu/+gXh20VBp/jcaLhsPFs2yDJS0tddNqSqA=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhjTF8H3xzmcrWiR774n8Xlb97+vJoIxL3wwifkSv3HlLx Y4xZYp7RykLgyAHg6yYIov4iWWWTWsv22tsX3ABZg4rE8gQBi5OAZiI/XqG/6kLPlpaRT6adtg2 U1Of+59S9e58Ka4d/vfclvmoBqs2n2D47373/ZSln2cW/JNfWLvG/tsro+MuMk9Sc7jCInQrDm7 UnggA 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 Defining this as 0 results in bootm causing a null pointer exception... Define it at a safe default which is valid RAM on most qcom boards. Signed-off-by: Caleb Connolly --- configs/qcom_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/qcom_defconfig b/configs/qcom_defconfig index 209a7ba324d0..41545fd72fcc 100644 --- a/configs/qcom_defconfig +++ b/configs/qcom_defconfig @@ -2,9 +2,9 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_POSITION_INDEPENDENT=y CONFIG_ARCH_SNAPDRAGON=y CONFIG_DEFAULT_DEVICE_TREE="qcom/sdm845-db845c" -CONFIG_SYS_LOAD_ADDR=0x0 +CONFIG_SYS_LOAD_ADDR=0xA0000000 CONFIG_SYS_INIT_SP_BSS_OFFSET=1572864 CONFIG_BUTTON_CMD=y CONFIG_FIT=y CONFIG_FIT_VERBOSE=y From patchwork Thu Apr 18 17:25:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 1925145 X-Patchwork-Delegate: caleb.connolly@linaro.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=vyHqI+oq; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VL4VL0CxCz1yZP for ; Fri, 19 Apr 2024 03:27:54 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 928AE886B9; Thu, 18 Apr 2024 19:26:36 +0200 (CEST) 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="vyHqI+oq"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D9B2D886AF; Thu, 18 Apr 2024 19:26:34 +0200 (CEST) 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 autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) (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 D35228869D for ; Thu, 18 Apr 2024 19:26:32 +0200 (CEST) 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-wr1-x433.google.com with SMTP id ffacd0b85a97d-3454fbdd88aso817027f8f.3 for ; Thu, 18 Apr 2024 10:26:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713461192; x=1714065992; 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=hee65EIpC2V4d77ZgGX2p62UO991ymcdUjAytLH517Q=; b=vyHqI+oqfhHFwkG30uo+BCg4hJpHMWDutHwBo8UwYmK+HbivGGhn9BFG/8GFuZ22GH ZR8I3aScNI8NTjs4I9sN1dKA4DGJMaqS2khRBNHcyE7MpvpomLApMR22LBElXkMHj4Zp JXT++1bfVyrHm/2PGnGuw3pK/2koovFs/6vqUe1KDdE7BtKCiuKVxbdwtnESKEolyjg3 3UBFr8IpsiXpxKlKdxLV6nlCmpZH0pfbuqsm5+BOsMO8bMU0ImOK2n+J8wcjVYZ1yMmf YFb12XvD8juEhwM/XvpNZ3kqs7GYBoQtARdpSkKhr5HwDHzGfUzaakLgd1btFzUfDrGH ao2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713461192; x=1714065992; 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=hee65EIpC2V4d77ZgGX2p62UO991ymcdUjAytLH517Q=; b=kwvse07WfyOujS3y093psGb1AtgSjBbA5PRCvKh+bTloi7dPm8Z9dNBGd5alGm0qAB ENBitsoYfHrkuSa13ycB3K+5ekn0bJIg0Vwm5mz4OCWatJouM6RrQKMjV4239R30qz+E SbAwxYNJDZ3JSG6wzxcd/o8yYkpp/EXkHNHAqbTFyVNrb8m2Wr8epfSYouXSIo4ckPlB n11KxssV8UPcIhPjyFTOK/HuffAQCeLdbx7iGCv5XDZVILg0qnj8HhzmfCDB5XeBuk4d b9mbpL2GgncU8xlx93F5y783kSDrnGkOZrBwIpwr8JrUn3MojvMQoiUnB7oJl08NqNhG eafg== X-Forwarded-Encrypted: i=1; AJvYcCUiCwkxwUJr+LSMoidsIrEaqPdH7C6ebKzI0pc1kcv6vznw48dIEStFZlS91XrqFjj7zeXC2C0bE73IvJ566ZPtpfPciA== X-Gm-Message-State: AOJu0YwGkNH0whQU0QYMwRJIWGKUkLout70S0BlDJprHYiBYIy1zkTWT 8WLwEhYsbemNvp2kjF+aQQFSSXKz9CTlHf508ONkOsUDuo7qqmqWPdolg4rL93o= X-Google-Smtp-Source: AGHT+IFfK4wXP106jp3dJkdPmWNJKDqOjId3IHg5rL5ZVN0XWQN7/7vg1eZgN2Q5yy9QnOdsBggLpA== X-Received: by 2002:a5d:69c5:0:b0:343:e02f:1a46 with SMTP id s5-20020a5d69c5000000b00343e02f1a46mr2412643wrw.2.1713461192425; Thu, 18 Apr 2024 10:26:32 -0700 (PDT) Received: from lion.localdomain (host-92-17-96-232.as13285.net. [92.17.96.232]) by smtp.gmail.com with ESMTPSA id u17-20020a05600c19d100b00416b163e52bsm7166057wmq.14.2024.04.18.10.26.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 10:26:31 -0700 (PDT) From: Caleb Connolly Date: Thu, 18 Apr 2024 18:25:52 +0100 Subject: [PATCH 9/9] qcom_defconfig: generate SMBIOS tables MIME-Version: 1.0 Message-Id: <20240418-b4-qcom-rbx-fixes-v1-9-f5f19d52969e@linaro.org> References: <20240418-b4-qcom-rbx-fixes-v1-0-f5f19d52969e@linaro.org> In-Reply-To: <20240418-b4-qcom-rbx-fixes-v1-0-f5f19d52969e@linaro.org> To: Caleb Connolly , Neil Armstrong , Sumit Garg , Tom Rini Cc: u-boot-qcom@groups.io, u-boot@lists.denx.de X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=756; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=04rYvVgrujXen6xBauiwx/qT8sudWdK57JfzlMz1wW8=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhjTF8P3l2v513EfYLT/1Z1w/tL8w2uZaNWca34ekslzOm R1CT9Q7SlkYBDkYZMUUWcRPLLNsWnvZXmP7ggswc1iZQIYwcHEKwE0WY2RoODFn0VyTP9kqS1+b XbkruuMff8aMDZ/XtlziUdGwf868mOF/RslPZnGnkp3Mi+XuvV78XeD4yZNxXLn+oed5ttjyXJ+ 5EQA= 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 EFI initialisation fails without this, and with proper SMBIOS v3 support in (and automatic generation of useful tables) there's no reason for us not to do this on qcom platforms. Signed-off-by: Caleb Connolly --- configs/qcom_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/qcom_defconfig b/configs/qcom_defconfig index 41545fd72fcc..7919aeb9755d 100644 --- a/configs/qcom_defconfig +++ b/configs/qcom_defconfig @@ -104,6 +104,6 @@ CONFIG_VIDEO_FONT_16X32=y CONFIG_SYS_WHITE_ON_BLACK=y CONFIG_NO_FB_CLEAR=y CONFIG_VIDEO_SIMPLE=y CONFIG_HEXDUMP=y -# CONFIG_GENERATE_SMBIOS_TABLE is not set +CONFIG_GENERATE_SMBIOS_TABLE=y CONFIG_LMB_MAX_REGIONS=64