Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 819DBC43334 for ; Mon, 25 Jul 2022 21:25:02 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 07E8F845CA; Mon, 25 Jul 2022 23:22:38 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="NEAiPxJI"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9ABA8845A9; Mon, 25 Jul 2022 23:22:36 +0200 (CEST) Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) (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 5736D845D1 for ; Mon, 25 Jul 2022 23:22:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x72b.google.com with SMTP id f14so9736902qkm.0 for ; Mon, 25 Jul 2022 14:22:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=lTqn24bDX48HwBV0BJEfSMWJrH4JZj7Q86TQ6m9cUMU=; b=NEAiPxJIYId2gXvsbYHNnFiUL/MUVtHWDyYhBprkzUxXCpmQ0B2pZboHxZ4v6jf4r8 QbFWApdLgc40ZHCGKkKK0Z6PMjDeqmNYv0wE0yyQZznBUGZMLqPY5Yt39TjyXAu3qIKY cCkxcGpyX5LnXQEPdICZIbJpjZ7rI72w1b1GM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=lTqn24bDX48HwBV0BJEfSMWJrH4JZj7Q86TQ6m9cUMU=; b=OBlHMugaFh5RrW+IpDBI9F5u7YvBlMczPcJOl2b6m1P3s1fwUrCnrLsOZIsa7eMCs+ Dql1NdPHCjmhDfMD2DfzgZVvbXIhJm6stMK+kd5jCN7wh5tp9VWPE6w1MpLnGvCbbt3Q Q4k+mlwp3gXYkzhE/nsnHWVbPogV7lhe3cpck7c2b3lepwx74nAMu4j6qme7El5Tjt7b ulsaP/2My07winhhbEmgZAmqXPeW16yOQT/i24sIfcl9zVgd/yQlfWwhP2CEQCXCapoU jqJSxzcdGHN72rJUjLoA3zxzvuM0lCdd2uCRFtCzworWDjFhkTDuW0CV4jLWSVQaYZjo j54A== X-Gm-Message-State: AJIora+BX0UxzGZIA8YgJgN/aa+YmE9DAqNJA7MmrmzlmQGe/5Ys65WD afOmxCNEJZBEtvAYWIjSXWAJTw== X-Google-Smtp-Source: AGRyM1uBvIEjqnt9hfiD/YnWG+XnyeYcYOtbkyHZgqYtLCV3xo61ve05XnsHZjCtM5TProD6ccHtBw== X-Received: by 2002:a05:620a:258a:b0:6b6:641c:9e8b with SMTP id x10-20020a05620a258a00b006b6641c9e8bmr2939814qko.82.1658784152932; Mon, 25 Jul 2022 14:22:32 -0700 (PDT) Received: from bill-the-cat (cpe-65-184-195-139.ec.res.rr.com. [65.184.195.139]) by smtp.gmail.com with ESMTPSA id t18-20020ac87392000000b002f39b99f6a4sm7843813qtp.62.2022.07.25.14.22.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Jul 2022 14:22:32 -0700 (PDT) Date: Mon, 25 Jul 2022 17:22:30 -0400 From: Tom Rini To: Stephan Gerhold Cc: u-boot@lists.denx.de, Ramon Fried , Sumit Garg , Dzmitry Sankouski Subject: Re: [PATCH] arm: dts: db410c/db820c: Fix SPMI addresses Message-ID: <20220725212230.GU1146598@bill-the-cat> References: <20220713191711.4155-1-stephan@gerhold.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="7KJMIxSfkrE7UZMU" Content-Disposition: inline In-Reply-To: <20220713191711.4155-1-stephan@gerhold.net> X-Clacks-Overhead: GNU Terry Pratchett 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.6 at phobos.denx.de X-Virus-Status: Clean --7KJMIxSfkrE7UZMU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 13, 2022 at 09:17:11PM +0200, Stephan Gerhold wrote: > The Qualcomm device trees in U-Boot are currently not consistent with > the upstream DTs used in the Linux kernel. While some bindings are > similar to the official specification in the Linux kernel, several > nodes have subtle differences, e.g. the "compatible"s or the exact > specification of memory registers. >=20 > This means that some of the Qualcomm-related U-Boot drivers are not > compatible with the Linux DT (and vice versa). >=20 > The SPMI node is one such example: the "core" region starts at > 0x0200f000 in the upstream Linux MSM8916 DT, but in U-Boot it starts at > 0x0200f800. The end result is normally the same, since the Linux SPMI > driver simply adds the 0x800 internally. >=20 > However, commit f5a2d6b4b03a ("spmi: msm: add arbiter version 5 > support") imported this behavior into the U-Boot driver, without > adjusting the DB410c/DB820c device trees. This means that the 0x800 > offset is now added twice, breaking all SPMI read/write operations: >=20 > Failed to find PMIC pon node. Check device tree > Failed to find pm8916_gpios@c000 node. > USB init failed: -6 > starting USB... > Bus ehci@78d9000: Failed to find pm8916_gpios@c000 node. > probe failed, error -6 > No working controllers found >=20 > While the mistake is strictly speaking in the spmi-msm driver, fix the > issue by making the SPMI nodes in the DB410c/DB820c consistent with the > upstream Linux DT instead. >=20 > Ideally we should even go a step further by fixing the remaining uses > of custom bindings in the U-Boot drivers and moving to using the Linux > DTs as-is. This would likely avoid such mistakes in the future and > would also make the porting process much easier. >=20 > Cc: Dzmitry Sankouski > Fixes: f5a2d6b4b03a ("spmi: msm: add arbiter version 5 support") > Signed-off-by: Stephan Gerhold > Reviewed-by: Sumit Garg Applied to u-boot/master, thanks! --=20 Tom --7KJMIxSfkrE7UZMU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmLfCZYACgkQFHw5/5Y0 tyxTXwv+Mt06qsHMWyIiI2Rf08eY6oT9Q2xzm3atKNIarvIeDjFJWtQoc6NH7uQd RCUZXmqk3d3ggUSWk2dE64pLB0Z4Pfa/prWEc/0O9AbXFCbc7fyYJgaITEaGWu0A gggzNroDdo3+uH4suTTCgTXx5RJ1+9IgLYelGlOJfZBC/rOm6p4OwmTgFGOxrDyB hijA2K1uA9IWs/BQiSXhNnJ13TJbjRGj7Oqe0VF80oeKslufGKouzgBvhk5jw7zy rT3dizfriT2go1/ugDjJGvHEWNVHDZsUwwxGFy+LJWosLsi5TwzMgUscRnXIPGl3 TZlA8gKVN84p4NyD19EUKIzx/MmFBVKn+0F0wJwmDzwHXlt2w2CkTuj4mYNUIKQX s0xzndbD/T0u404Vx+5zl/cpFpnHN2/dh2ZBWee+PMx/EquZo43XweFNzlCdvaod cIqv7KGn+akKvKLXgcVpQKexuxJBdSMqVoqk5FNExZ0mvnYVY2eJcwG3S/NIwmMs eUCgXcN0 =t2Xi -----END PGP SIGNATURE----- --7KJMIxSfkrE7UZMU--