From patchwork Mon Feb 5 16:31:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 196920 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp989025dyb; Mon, 5 Feb 2024 08:31:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IFdDeac2VvvszpJTSHAo8C1lJg1Dp5k0VC3RNY37HCv50o3PLG6jL8KwUCsqeq1Hmomi87D X-Received: by 2002:a05:620a:2901:b0:785:6fea:907a with SMTP id m1-20020a05620a290100b007856fea907amr7721418qkp.31.1707150707000; Mon, 05 Feb 2024 08:31:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707150706; cv=pass; d=google.com; s=arc-20160816; b=uVV03dfBFZYj6LB/yKiHIuP9/EWj2k24zWVLiasro/JlJjMTaiNB3Kf3wKaX84lyPU bd9XmTsFylgHUL3ueAehYa0tyYTxCcZC/nMSZ4kgMWWl8/1FQWvAfSjYNm8dNC040C9u ZoIVbtu0RfhWlaDI0AgFkERBubbyzSYiwddueu4ffdDpkr1tW+ELXMYWT9jIUANIGJ/a QJhhRrtqxR9kfMhScHYnsSg2q3cYmLEgLl8qphdYFqu4c3Ox2NU/K1j2PwfOeSFzVJ2U nq2+7lWOiy1Z3FCQemx7SoDpG/L6FVej3IJhYR/a14gi8nwrxMcUb3n9fZ8Nsw0bs4dG Li0w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=2mmVlSbLzbn2cV2V2PAlQSgzcyVZHi2ZF25snwbWCZc=; fh=5kuUM2Q4nbCFip1wS5YSZhZl1eav4B0c2ACqxmiLwb0=; b=Y9Zz81NqvbZbnuRakI+ZgaTBGUYMihYXvvJSxuFutk84HsCPmw4RAApN+TZFsI50qA CY4XYTqDHu1xJrLacp85/2U5+7sSdLpNs57D/Rebc2ew8TYqB4MzxjoUkvIOaYIk+805 ScXFcGQHUGExtIItY2y7A83VAzLMTX/xkNZ1E1Z8QER6k4fGk4oRrOuTyR7OoL3eFZvk t3Egd8zSFoga1LtofXf1uwM1Keq6shIrsD+uTiE8be2FMrCyZwfSZSkE836vVCpjqll6 FHvj6nVGICjXel1HdW2b0M/IBBgXAMKtalB9icyJ7UhzIXrs9M28MKc+1zDkHP+2sJEL cbKw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nhDNuqvZ; 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-53010-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53010-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCXuKF8Jcu7wdHYqYJSpelB8ON7jRXdx1kUxqo4ioeABm6rtLMey75Bu4VNmbiFqBjqpecYUUp+cYDSmxKA56ndR70hmdA== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id pa32-20020a05620a832000b00783e0cadd6bsi160999qkn.437.2024.02.05.08.31.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 08:31:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-53010-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nhDNuqvZ; 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-53010-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53010-ouuuleilei=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B89951C2223B for ; Mon, 5 Feb 2024 16:31:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6BF8C3C46F; Mon, 5 Feb 2024 16:31:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="nhDNuqvZ" Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (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 5D4D43FE46 for ; Mon, 5 Feb 2024 16:31:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707150690; cv=none; b=cLSYOWk2aK6tZlvP0a+Ospx2+ha3EXY3KGdNblZR+XEXAPiCtzy8Wv4V4L6ysCNSAkjRFZg7cIiLWBhrF2lLfsAMlQALYMx6NaxIb9mIy692fsRqoPBSctuktPAUIU8njCfu5/6W50yJhBvdedw9McfvTOfCRby4Kt0L/vKJERI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707150690; c=relaxed/simple; bh=ZZsbEv/1D0ZyP4euZdUeoiAk7r963SzotEo4LThOh+U=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=IRvWM3Aq7plyt4Tc5U0+kGrRLJOJlOt2m3tvtkYmTbkGmxWb9D4sJZd7ro4yDPFvqJDDB9SZ0Uf7YFtYT9iHxP49DMLm6xXSXwp5z1xSt1snoU4UXcfuDe9bIGG9g42PtLgcmtHhcEwGX3jv8WoC4sTD6/dyUbD9aAfiK5r+GY8= 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=nhDNuqvZ; arc=none smtp.client-ip=209.85.128.43 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-wm1-f43.google.com with SMTP id 5b1f17b1804b1-40fc654a718so28122145e9.2 for ; Mon, 05 Feb 2024 08:31:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707150686; x=1707755486; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=2mmVlSbLzbn2cV2V2PAlQSgzcyVZHi2ZF25snwbWCZc=; b=nhDNuqvZeWQZb2PNWgNNLxiIkUeJih5i+jwaJ+ttKlrx/IvYkZysrI6PxC4PByj9ga LO1L9LgUGOZuPOXUBhw+D66P+TBcdXn3egY66xYyfPey+bf9T52w4LX9SxRKWm96ecoV KyGCpg9+ft8LjX4upqJI/uSZRgEBBkv6k32oGSCa52D0lRZK+7KZ7KDwkRYx4BZ4Tv0l Nf8C0/UVB2H6OQDPbMIxCLBvytLu/VHAD2HQeIamnT1Vj5zWHYQapWwdClA/z3nlO3n3 3qmBXAnM5LfM47lp0/0Bi0rVUtFOndHw1a2sxxsoQG8VIBbhNeYeQ3G54gngmj5+xnFm 83Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707150686; x=1707755486; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2mmVlSbLzbn2cV2V2PAlQSgzcyVZHi2ZF25snwbWCZc=; b=UE+nly1zI7sOpfjMz4h3suAZMcdlORU8Ew4O0HwTbUokhuuFcnuwPhRaucMyOgkTGF 3BSiW1/SkMd0CYJcRTUdwaJv6siDWrwW34DVfhTuqIyxpWTO0JBvlcKiVpJ7GiJmg9pW cee6k+0S/ov/2DDbhz8ldTTxZLD60gT82v/cR5QbogYkx84/zgu38b2skbHOlgK73pQX DHzFDRcoJGtteVmLy1ptWDp0hH30UioPq7sIWWsATz9n2sxkuGjFehHI64JqSSzekGIk 6woduQnH7qibNx4c5BbdC75jnnMhuIYumN9fFBgiPVqH++fIEBwh+kp2MkP4NOutDQN6 GK6g== X-Gm-Message-State: AOJu0Yxf1pkKPQ+5nPlQndNuXBuPCgWj7NirUGUwiLqZlsvaXdpe/2fl iceKsG0wAZsv6yyc2+lzBRJKk5m/lt0w6G+H+/MFwExJqRpQjb4Plm2zTsa5ie4= X-Received: by 2002:a05:600c:474a:b0:40f:b8e7:ad51 with SMTP id w10-20020a05600c474a00b0040fb8e7ad51mr243391wmo.31.1707150686641; Mon, 05 Feb 2024 08:31:26 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCVU1Nn87lYzSBZIPKkkwJKjWuEWXZZivo1BmQx0+xQVU2KR/DPgWgYAGqJY77Y/ppeBuAQk1BBUqLv6K9Y6I0YAwL4/uR1kZHn1Lb46uSeJYIJTzlRZWPZ2P+y405r54RErKBo8DFuh+Mn8YQE08JgqOwBd5sVMc1dWu2tUJGg31LdPytZHimUwX67T1zJwU3SWr7jkxKJlNFcJWnKtXu3u2IQY86eK+cMEaw1tR5uwUiW5FfiFIE8NhHYwwpYPff35U8CREaVTlA7n Received: from krzk-bin.. ([178.197.222.62]) by smtp.gmail.com with ESMTPSA id r11-20020a05600c458b00b0040fdb244485sm303337wmo.40.2024.02.05.08.31.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 08:31:26 -0800 (PST) From: Krzysztof Kozlowski To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH] arm64: dts: qcom: sc8180x: describe all PCI MSI interrupts Date: Mon, 5 Feb 2024 17:31:23 +0100 Message-Id: <20240205163123.81842-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790077259434451610 X-GMAIL-MSGID: 1790077259434451610 Each group of MSI interrupts is mapped to the separate host interrupt. Describe each of interrupts in the device tree for PCIe hosts. This also corrects PCIe1 and PCIe2 first MSI interrupt. Signed-off-by: Krzysztof Kozlowski Tested-by: Konrad Dybcio Reviewed-by: Konrad Dybcio --- Not tested on HW. Binding changes: https://lore.kernel.org/all/20240205-dt-bindings-pci-qcom-split-continued-v1-0-c333cab5eeea@linaro.org/ --- arch/arm64/boot/dts/qcom/sc8180x.dtsi | 72 ++++++++++++++++++++++++--- 1 file changed, 64 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc8180x.dtsi b/arch/arm64/boot/dts/qcom/sc8180x.dtsi index 0430d99091e3..c999cd2ec6df 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8180x.dtsi @@ -1708,8 +1708,22 @@ pcie0: pcie@1c00000 { ranges = <0x01000000 0x0 0x60200000 0x0 0x60200000 0x0 0x100000>, <0x02000000 0x0 0x60300000 0x0 0x60300000 0x0 0x3d00000>; - interrupts = ; - interrupt-names = "msi"; + interrupts = , + , + , + , + , + , + , + ; + interrupt-names = "msi0", + "msi1", + "msi2", + "msi3", + "msi4", + "msi5", + "msi6", + "msi7"; #interrupt-cells = <1>; interrupt-map-mask = <0 0 0 0x7>; interrupt-map = <0 0 0 1 &intc 0 149 IRQ_TYPE_LEVEL_HIGH>, /* int_a */ @@ -1805,8 +1819,22 @@ pcie3: pcie@1c08000 { ranges = <0x01000000 0x0 0x40200000 0x0 0x40200000 0x0 0x100000>, <0x02000000 0x0 0x40300000 0x0 0x40300000 0x0 0x1fd00000>; - interrupts = ; - interrupt-names = "msi"; + interrupts = , + , + , + , + , + , + , + ; + interrupt-names = "msi0", + "msi1", + "msi2", + "msi3", + "msi4", + "msi5", + "msi6", + "msi7"; #interrupt-cells = <1>; interrupt-map-mask = <0 0 0 0x7>; interrupt-map = <0 0 0 1 &intc 0 434 IRQ_TYPE_LEVEL_HIGH>, /* int_a */ @@ -1903,8 +1931,22 @@ pcie1: pcie@1c10000 { ranges = <0x01000000 0x0 0x68200000 0x0 0x68200000 0x0 0x100000>, <0x02000000 0x0 0x68300000 0x0 0x68300000 0x0 0x3d00000>; - interrupts = ; - interrupt-names = "msi"; + interrupts = , + , + , + , + , + , + , + ; + interrupt-names = "msi0", + "msi1", + "msi2", + "msi3", + "msi4", + "msi5", + "msi6", + "msi7"; #interrupt-cells = <1>; interrupt-map-mask = <0 0 0 0x7>; interrupt-map = <0 0 0 1 &intc 0 747 IRQ_TYPE_LEVEL_HIGH>, /* int_a */ @@ -2001,8 +2043,22 @@ pcie2: pcie@1c18000 { ranges = <0x01000000 0x0 0x70200000 0x0 0x70200000 0x0 0x100000>, <0x02000000 0x0 0x70300000 0x0 0x70300000 0x0 0x3d00000>; - interrupts = ; - interrupt-names = "msi"; + interrupts = , + , + , + , + , + , + , + ; + interrupt-names = "msi0", + "msi1", + "msi2", + "msi3", + "msi4", + "msi5", + "msi6", + "msi7"; #interrupt-cells = <1>; interrupt-map-mask = <0 0 0 0x7>; interrupt-map = <0 0 0 1 &intc 0 663 IRQ_TYPE_LEVEL_HIGH>, /* int_a */