Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp179640lqb; Tue, 4 Jun 2024 08:20:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX9thnU0nmST4cdww6ycyFmXwnPdshtD/0yj818mVNm2gtRrvzu4bGfCq7XD1WiUO6rrbSH/at8N1g4G8u6VftHGyKRr7+F8b+/ILYKaQ== X-Google-Smtp-Source: AGHT+IHQd2f/GRXw9YqTpMTlQPJtzcSEPxUTSNoRQrkgEmtegUls7jozVDrKXB0dKLUIBjay+uA5 X-Received: by 2002:a17:906:185a:b0:a66:7666:fc62 with SMTP id a640c23a62f3a-a6820136beemr801042166b.22.1717514440746; Tue, 04 Jun 2024 08:20:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717514440; cv=pass; d=google.com; s=arc-20160816; b=jVtfqIbCXMRn8RUwlpSFuTXZOv7N5ginuWQR4YIZLQF+PK3ZB1crqspUzHv2n1kddT BfwS1p9B5A8R20i0Nwq+GSha10w23rZikiwc+HANngU90buPzl5wKDNUJM4b5WI+w72K 8VaR9+ROorkAPShZ+P1OZH3bEEErOSDMgTgQ5iwMMV9HCH9JS/wWWSwA9KsW2uriO4F2 Lp/1tn5RaaXlRQtQKvT2RCXwn+l4rO3J+Opm7Gv0kJ1PZHs3XU0zjWkfXJUUIWL/kJg5 srpsifQZah468JDktpJujBELA+yxcNfKAUAQO+aHcF46x+J0oW7aAnE/d1hc/ZgG35Ba 430w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from:dkim-signature; bh=qu+Ktqbr70Fl0EXEKSWGa6Z8asWwZOwbqMGQT7blGcw=; fh=hdigro64u2hdX2SWDainWMgSCubiyAB1reDpAAogGpw=; b=CEUtnkFA5pIvR+9syjYYhe8M9tx2Hx6Z/bIu/m6kgUCRCPirkciHK/3X6ee/ZX5o5D r9ZyNTRHiL/jmQBX4B3J3E23KOORpCVV/E2S5b4G+/+m6TCFXBcYgZ60+wxm4Q0G8RSF Q+DkZigJObKLuwEJXqZa62RYcK0HCxA9UtliOPS8o5sUivncnpbcp3+c8QywsIilYRMG DQ87YtYoVTGZS7fjGR5m8ovvka9QEL3ixi9MwI6SdqiogSSy3EhWdjPn+pOdCBI4ngRP wQi+zP4kLsV8A6aVz3RZWJlWHISIWQ1jKnnPf18FuGX4chihzwiMhThbhFOoLgJK0h+Y WYnQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eWwVuLMg; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-200939-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200939-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a68f2c4cd1asi267217266b.776.2024.06.04.08.20.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 08:20:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200939-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eWwVuLMg; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-200939-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200939-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 459011F21EE6 for ; Tue, 4 Jun 2024 15:20:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C7A6F143C62; Tue, 4 Jun 2024 15:20:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="eWwVuLMg" Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 48EED13D2B6 for ; Tue, 4 Jun 2024 15:20:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717514431; cv=none; b=fjtteV+pNvU8s3U+dOd7iGY6V9Tqt2DTaZLNUikTPms4PbLd4jc6LMMEeS7hEIwqqkyJbNFUV1vz8D3smttL6C2/Z1MXxokxCV1zc90ZyXRbaWgwGcOae8bhhuLUaN0Oo6hXaYrk6M8EZ0LccOkbc+XOz9Ko3wEB8E/22WR7Mio= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717514431; c=relaxed/simple; bh=DRlJ5yB+jL9oj7S5uPqNBdhic3bTfsOGq2BvTaqTig4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=UH3zBPL2MRdKL95JEbOBMppGiF7lm1iZwbaaqVJlwzl7mZbb+7wIKrdu4CwOODMBwxpiK8rS2QsNJKa5e5x1Fcw8CwP4knHwH0sekRRcU+okUgfjPqk0lLTYhZXCZiYZ9AAhrSKBwEBxfEqNwndUZNx4ZhTqjyPrfcKZlooAArw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=eWwVuLMg; arc=none smtp.client-ip=209.85.208.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-57a85cc2d96so890367a12.2 for ; Tue, 04 Jun 2024 08:20:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717514429; x=1718119229; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=qu+Ktqbr70Fl0EXEKSWGa6Z8asWwZOwbqMGQT7blGcw=; b=eWwVuLMgc2nKIgKtITzK+Pcns6XQG+JAqelrF4128Bmp/bOWkuYxeQ3adbGdeq/Zrj 4LmEjPPGSim06jLKmpvGZfOKE0zPDeBz8z6s4nxbR7HhULyKbfFnkUMobkL3oAfW8See UF4jpG3ZvmZ0mgUMDAC0zuW0UzGKnx2YFtyzvhrZVha9uycgs2wzW4GhU+rF9STdzv4l DSB+g8+4u7BcfnM0GMpK7pMH+xSrRqATEFmDNp9wX56KWRcxREt8H/YSVsKhTnSgo8J0 Hy773YFejQ70g+tHTJfF1kq3Mod1WkFCWvJ56uFaFK+C3Ul7Qd2EECiTH/opNqd4l9wX tQ/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717514429; x=1718119229; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qu+Ktqbr70Fl0EXEKSWGa6Z8asWwZOwbqMGQT7blGcw=; b=lLFSasNQQp2zlst3VetMlCMFLnt8YqyV5nmvUcMinOmSe4vouO+0Wu9fchoLYf3Bwh CzyJY8BMFUSOqMLdGjG8SPORjEL9LEkiIVU6gmFa2Wx6olfN8+WPm/OZJ2q9qbxUuSxA kSxvvRi3hg7auxhpZqmb+XgrHojjXN05V/+UFZlhWFDtxW9ynReugI4Q9+1RcQFyTQue FOUbIwYdqK+WEaoUZPmhxDpRrHWRz79vIoBey2IUm6+7yRnSLpoUhUA4NXnzbc0zuJsq IPi4n4rz33LMc2qRBRJOhUttVCzmfvTKtfy7IAFeyib+upa1P1yoYXFm4+E3/MGoXoQI AiFg== X-Forwarded-Encrypted: i=1; AJvYcCUizW53IsXeHJQy9dyMfW9FKNJg21MMARRmfWg5bd3T2YmOS+HIzmqjwvzCieVms6FIrpGb5ZVRNqArWQ4M/piEFeraImeSQihLiGqF X-Gm-Message-State: AOJu0Yz7hSS4cQU3Z8kDDeS4st2usvIJJNRXIdnwU170zUPK2onDxWlp g1mRF78TUR9XrKlBYGyGvOTuPHGWC8SXTSmQyfMP4eadZXWkyuZp9Nn8COhqRhE= X-Received: by 2002:a50:d011:0:b0:57a:254f:67bf with SMTP id 4fb4d7f45d1cf-57a6ae8e518mr3135539a12.27.1717514428495; Tue, 04 Jun 2024 08:20:28 -0700 (PDT) Received: from [127.0.1.1] ([188.27.161.69]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57a31bbbe18sm7540793a12.37.2024.06.04.08.20.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 08:20:27 -0700 (PDT) From: Abel Vesa Date: Tue, 04 Jun 2024 18:20:24 +0300 Subject: [PATCH v2] arm64: dts: qcom: x1e80100: Fix PCIe 6a reg offsets and add MHI Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240604-x1e80100-dts-fixes-pcie6a-v2-1-0b4d8c6256e5@linaro.org> X-B4-Tracking: v=1; b=H4sIALcwX2YC/42NSw6CMBCGr0Jm7ZgZsEJceQ/DopQBJjGUtKTBE O5u5QQuv/+5Q5SgEuFR7BAkaVQ/ZygvBbjJzqOg9pmhpPJGpmLcWBpiIuzXiINuEnFxKneL5Ab T1cY23Ajk/hLk9HP91WaeNK4+fM6rxD/1n9XESMimrqRzVnLs+dbZBn/1YYT2OI4vUR0/m8MAA AA= To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Rajendra Nayak , Sibi Sankar Cc: Johan Hovold , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Abel Vesa X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1755; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=DRlJ5yB+jL9oj7S5uPqNBdhic3bTfsOGq2BvTaqTig4=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBmXzC5FC1IMRZJNSzyPlX31zXD+CdMbSWI6a+p8 Ws82r7lu/GJAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZl8wuQAKCRAbX0TJAJUV Vs9iEAC6OQ4ab0nzj5ojscz7+5NTPP+3zCXCBOk8CV5VAEUjUwcoVaL3vLFpe2jgPAEnuEuLDG9 7WethkERUKPF99kNhJaoEJOs/ny3z5hWxskk9IZ+lKXZZ7EcvQ2qtu8oXSNzdhYG8BQVWvH1+ke noG607lzURYgNi9KMck5xWmTR0xXIO0HREuFMj642/kXKbkRkkbZQmZiEt2WjJQAnRKhbrYm3JR XrneQHBaKmF+nE24CQodXxFRoAUKS/Atf0tqPEG3Aht/UTYGTk/byqLXbrFJM8OzTjWoGXJjDy5 AKpAaj1a06FyGcRtIb/M1lGFsWQN6MorUtdL7KywMFnEkmf03Xd9+fyGNHUi2JTDejNIhIumyQP 7BfUbXKtvhjE7fFFM+hdcb/fK4+DVQaRz5t3/9WDa91aoE9TCfYNFol0alEt73ct5veCN34246B VWjtO2YBk/n304P1qkQZ+6I9sP2sN1KW5oAP3twXCT/BNc3sFtHIXoWr27PYbjfCTl9sj90q1qJ 4+XhTaMLxNcwXCwCb7+Tc2KHG6F6BYgke37/7R8O4uv0T8/MjOIGC8ljPrM+lc571Hp7gUPc8Gv bwFRNXWPSyHleL8DidVp8F1Eddb5noipfjQvHgy6R/T1nlu5cqXm12/JzziyZCCfEgCCyG/bltD 6Ax2kQhZ9Mojs9w== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE The actual size of the DBI region is 0xf20 and the start of the ELBI region is 0xf40, according to the documentation. So fix them. While at it, add the MHI region as well. Fixes: 5eb83fc10289 ("arm64: dts: qcom: x1e80100: Add PCIe nodes") Reviewed-by: Konrad Dybcio Signed-off-by: Abel Vesa --- Changes in v2: - Dropped the 4-lane mode switch patch entire. - Fetched Konrad's R-b tag - Link to v1: https://lore.kernel.org/r/20240531-x1e80100-dts-fixes-pcie6a-v1-0-1573ebcae1e8@linaro.org --- arch/arm64/boot/dts/qcom/x1e80100.dtsi | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/x1e80100.dtsi b/arch/arm64/boot/dts/qcom/x1e80100.dtsi index cf8d8d5b1870..fe7ca2a73f9d 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100.dtsi +++ b/arch/arm64/boot/dts/qcom/x1e80100.dtsi @@ -2818,15 +2818,17 @@ pcie6a: pci@1bf8000 { device_type = "pci"; compatible = "qcom,pcie-x1e80100"; reg = <0 0x01bf8000 0 0x3000>, - <0 0x70000000 0 0xf1d>, - <0 0x70000f20 0 0xa8>, + <0 0x70000000 0 0xf20>, + <0 0x70000f40 0 0xa8>, <0 0x70001000 0 0x1000>, - <0 0x70100000 0 0x100000>; + <0 0x70100000 0 0x100000>, + <0 0x01bfb000 0 0x1000>; reg-names = "parf", "dbi", "elbi", "atu", - "config"; + "config", + "mhi"; #address-cells = <3>; #size-cells = <2>; ranges = <0x01000000 0 0x00000000 0 0x70200000 0 0x100000>, --- base-commit: d97496ca23a2d4ee80b7302849404859d9058bcd change-id: 20240531-x1e80100-dts-fixes-pcie6a-0cf5b75a818e Best regards, -- Abel Vesa