Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6343542rdb; Thu, 14 Dec 2023 16:01:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IEVz7QFwkZlYN2DL6ymYXjCoSZ9Y4bl5S6HwBUOkI5Tmq0tya3HgwMyO8ryk2yvcrZ0eYyE X-Received: by 2002:a05:6214:1fd2:b0:67e:f2a3:9475 with SMTP id jh18-20020a0562141fd200b0067ef2a39475mr3766156qvb.88.1702598513875; Thu, 14 Dec 2023 16:01:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702598513; cv=none; d=google.com; s=arc-20160816; b=CQ6SDcBleurPOf/peo7U8N2r2OMOqZCmTm0CHDzHSKk58zZvLuW3UjxHZ7FTKmFKUH mcni+/PPgciyIL9NXcSySgeS6pp2E39BAlUwYJurtGt/EkHjcqx4F6ORUkmd9japN3yr ZCjBM3vBimDyIHttTkPm40Pyfp09n7J1/1Z48UsGHIXENraf7bZ0l8DJ8XXAH9LwQClq y6/VB1RiNXFSQ7K3RKRlRZXF7LnD9PavqDzIkwzOlpXsHDrxc1/C8U+F8zImccwio96h arsVHkx82d0we2bAFtr5VOH/t4hGzbPnT3nM9rvtKHQ2ZmN6je5UjjbkVHcC7x1Xa3at +uXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=2lGhZrUhVazmXqa8F42tLFaEnXfVDDi1b+3+IHxb9zY=; fh=tD1NsiiCuMFf1XbJI4MOgy8WVOLOE6j8mAA2pjPPp20=; b=nh9Zq5YdIXTHEI0ExjQsWx69GbuAJKyHaZWlEZTzAgfBei2SB9FLr75Cbzhbkg55Nf jL4j49yhF/hmwSgrxaFxPFlIpYr8bkFXuDweFGgF/BCBTbcLm7aA3VvZs1qvfP1nxDKE bxgBqvLT8lsdZRkrHsuVqcacxHn8Ei1wonTjtZwKRv6JlmXFL4mtZci8YjMk6XAr3D2H O3Uz6f5YzkPsm7TkM2f+N4q/+zU92RDo39ABhDLnVJiwL7fGql+QSimNtzrPGQNJhTNL n3qeo5J1veqq8gdKdiswNzDjiRqfJcL7Jvu7yxNlPeYvk9cqOD9dZKXf6dlC2lc1q8Zm DbZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G1E+NnNx; spf=pass (google.com: domain of linux-kernel+bounces-271-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-271-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id cx8-20020a056214188800b0067efa75b914si4486694qvb.418.2023.12.14.16.01.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 16:01:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-271-linux.lists.archive=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=G1E+NnNx; spf=pass (google.com: domain of linux-kernel+bounces-271-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-271-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A0D871C21FD7 for ; Fri, 15 Dec 2023 00:01:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F370A2DB8F; Fri, 15 Dec 2023 00:01:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="G1E+NnNx" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com [209.85.208.173]) (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 3C4D319474 for ; Fri, 15 Dec 2023 00:01:18 +0000 (UTC) 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-lj1-f173.google.com with SMTP id 38308e7fff4ca-2cc2683fdaaso12142821fa.0 for ; Thu, 14 Dec 2023 16:01:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702598477; x=1703203277; darn=vger.kernel.org; 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=2lGhZrUhVazmXqa8F42tLFaEnXfVDDi1b+3+IHxb9zY=; b=G1E+NnNxtO57smK8lwtTFP70KR2V3Jcr3Qy1mefArNfTs0mu+w4OMhwJ6xNOud7qmw T69zx2M6D0e2sigIrHw1O1OiFcUpHoQ3UpdJ2kCRClsu9c/YhPhUbOoSjGQjWNPSV6NB 5RTflhoPjTfDtBtAdcswWDrDiqTlq9lwOt07AZSWxHQa1T0KASHknum8asmjotEMC69s 4fEmeQqKZno45Z3dMdV/6McMizo314JMEz1FZtJjMungFLk8wj4fLezqH60AOldklQm0 yeOou/dNrLbXRTJL+e8FBMUNTePmQ+jqHxUCB8LLO1SjtGQ/XxmqqGKuKFpWgm5/QnTV jCWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702598477; x=1703203277; 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=2lGhZrUhVazmXqa8F42tLFaEnXfVDDi1b+3+IHxb9zY=; b=t6fl36XDRpmKJT4qeC7dC25osF4jrm3ToXLfs6s5kkH/i3cgGDK/5OnEiKDCkcxYyr OJpuuNdPbcx4srAnALSwYHUu1FvV8zNDbdq5Q87KtxpJmLlgy5TsVaK71S/abJnK/uDn NgScz+pqQWSkeAepCGi8vVhVgkuoByRgS3rxLPG6X/LdUdr86sJ/N8dtzPz8rh7C7cNH YEd/OPZh5cRMSRtL2QeLKiXYHaRTsxI7ghLv9erZesGJgWlODoz197FfxhijtcUUL7uo FPbU5LVTz4Gv3lpu+VY+ehotN7hN8lS5dHONni+bFJ2NTZ0pmq+hSL/dS0YVSd0doBGJ 5X4Q== X-Gm-Message-State: AOJu0Yy4WhX+z5uUrDO+OD5352uKXT//7Rsz0Tth51gO2arm4XHFbOJB 3MPiGqFfS6BA64PaHNB5LfatDQ== X-Received: by 2002:a05:651c:2220:b0:2c9:f87e:deea with SMTP id y32-20020a05651c222000b002c9f87edeeamr7187593ljq.9.1702598477337; Thu, 14 Dec 2023 16:01:17 -0800 (PST) Received: from [127.0.1.1] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id v6-20020a2e2f06000000b002c9f939598csm2184518ljv.70.2023.12.14.16.01.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 16:01:16 -0800 (PST) From: Konrad Dybcio Date: Fri, 15 Dec 2023 01:01:09 +0100 Subject: [PATCH 2/3] arm64: dts: qcom: msm8996: Hook up MPM 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: <20231215-topic-mpm_dt-v1-2-c6636fc75ce3@linaro.org> References: <20231215-topic-mpm_dt-v1-0-c6636fc75ce3@linaro.org> In-Reply-To: <20231215-topic-mpm_dt-v1-0-c6636fc75ce3@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Konrad Dybcio , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.13-dev-0438c Wire up MPM and the interrupts it provides. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 39 +++++++++++++++++++++++++++++------ 1 file changed, 33 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index 35a0d2a69711..11e3fe4f342f 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -444,6 +444,25 @@ memory@80000000 { reg = <0x0 0x80000000 0x0 0x0>; }; + mpm: interrupt-controller { + compatible = "qcom,mpm"; + qcom,rpm-msg-ram = <&apss_mpm>; + interrupts = ; + mboxes = <&apcs_glb 1>; + interrupt-controller; + #interrupt-cells = <2>; + #power-domain-cells = <0>; + interrupt-parent = <&intc>; + qcom,mpm-pin-count = <96>; + qcom,mpm-pin-map = <2 184>, /* TSENS1 upper_lower_int */ + <52 243>, /* DWC3_PRI ss_phy_irq */ + <79 347>, /* DWC3_PRI hs_phy_irq */ + <80 352>, /* DWC3_SEC hs_phy_irq */ + <81 347>, /* QUSB2_PHY_PRI DP+DM */ + <82 352>, /* QUSB2_PHY_SEC DP+DM */ + <87 326>; /* SPMI */ + }; + psci { compatible = "arm,psci-1.0"; method = "smc"; @@ -733,8 +752,15 @@ pciephy_2: phy@3000 { }; rpm_msg_ram: sram@68000 { - compatible = "qcom,rpm-msg-ram"; + compatible = "qcom,rpm-msg-ram", "mmio-sram"; reg = <0x00068000 0x6000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0x00068000 0x7000>; + + apss_mpm: sram@1b8 { + reg = <0x1b8 0x48>; + }; }; qfprom@74000 { @@ -820,8 +846,8 @@ tsens1: thermal-sensor@4ad000 { reg = <0x004ad000 0x1000>, /* TM */ <0x004ac000 0x1000>; /* SROT */ #qcom,sensors = <8>; - interrupts = , - ; + interrupts-extended = <&mpm 2 IRQ_TYPE_LEVEL_HIGH>, + <&intc GIC_SPI 430 IRQ_TYPE_LEVEL_HIGH>; interrupt-names = "uplow", "critical"; #thermal-sensor-cells = <1>; }; @@ -1343,6 +1369,7 @@ tlmm: pinctrl@1010000 { interrupts = ; gpio-controller; gpio-ranges = <&tlmm 0 0 150>; + wakeup-parent = <&mpm>; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; @@ -1870,7 +1897,7 @@ spmi_bus: spmi@400f000 { <0x0400a000 0x002100>; reg-names = "core", "chnls", "obsrvr", "intr", "cnfg"; interrupt-names = "periph_irq"; - interrupts = ; + interrupts-extended = <&mpm 87 IRQ_TYPE_LEVEL_HIGH>; qcom,ee = <0>; qcom,channel = <0>; #address-cells = <2>; @@ -3026,8 +3053,8 @@ usb3: usb@6af8800 { #size-cells = <1>; ranges; - interrupts = , - ; + interrupts-extended = <&mpm 79 IRQ_TYPE_LEVEL_HIGH>, + <&mpm 52 IRQ_TYPE_LEVEL_HIGH>; interrupt-names = "hs_phy_irq", "ss_phy_irq"; clocks = <&gcc GCC_SYS_NOC_USB3_AXI_CLK>, -- 2.40.1