From patchwork Thu Nov 12 12:52:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 11899919 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4EF00C2D0A3 for ; Thu, 12 Nov 2020 12:53:16 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C24E921D7F for ; Thu, 12 Nov 2020 12:53:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="kQtxwaeh"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.b="B6KAVAL2" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C24E921D7F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=oAZDL8lIf1F8gmCptRJtJCG0nETgkA9Cn8IKpoyclwM=; b=kQtxwaehuqXba9I0GObaqTsMFP QZkEg/AwbNgKGnfXM033I5hlMaOLuRhSXuIGDxBkEagb+nZP4h5L1EZXRsqvOikZDJ3J3HrF6mJjC OoRx9zASxq4pYNaO2ktMgqIAdZxLcFX3BnRIwI/4AXqY0Jd6j6BuQS6CjopFShkw2o8OL66iob8VM NCYWk7+zdj+BJpXp/tVuTcGfN39m9Opu1puvCQbw/CZl314Bos2ENLVFwRJTNOZ4VL6/nCZvoU9QP 21HQqJfwDLIm5GdjBMAJ1Ty4hoOvFGvghTY6q2Bg6ma8I1IgvpJj/PRINBAxQP7Ps6z2lh5a2QVST xyBgaODw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kdC5k-0004wA-R8; Thu, 12 Nov 2020 12:52:44 +0000 Received: from mail-ed1-x543.google.com ([2a00:1450:4864:20::543]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kdC5i-0004vX-HL for linux-arm-kernel@lists.infradead.org; Thu, 12 Nov 2020 12:52:43 +0000 Received: by mail-ed1-x543.google.com with SMTP id p93so6000126edd.7 for ; Thu, 12 Nov 2020 04:52:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=VO5buX3O3865XeSNAiYdkmHwudPvyFuKPpXIgcQuiQo=; b=B6KAVAL2EmeGP3N+DEht9mufwYAaCbCfkacyMFL0brBEYT9mD0dCKeFFTplJf2Xvpb ZjDj/GJutnYrfwHF4Nfi0WfG8SjhVPLDlnWRD0l+Qch6xKkbgxECp+jsSqP9J49DuE41 4fdoc6Pafv5lHMcf2Qs3RDODPOCTkuZ20mFXs9eTU+Oikpy3jiddtOqv2HyKMvZvLohN w5akI2+/HrvAiK9P8CxLnGD8Cwfm8WLUApIaTRr0vymEcZHTbkcMSiYDKI3NvyCMvRtY niFVY/pWUaUZ4oNPqMYMyqU/+d9+0yvxRoiRtFUnTIBugeV5SYOL9dbIGCvrwdXJH/7m wgUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=VO5buX3O3865XeSNAiYdkmHwudPvyFuKPpXIgcQuiQo=; b=Vbzv/U2DzRMNgxbDRvpDl1K0CLeOxYQbvGz5h43d6Bx2Z76vZ70k7MmeKcOh8lf/vL AVeHuaai68Sd7RtaOH3cwn4gOwlWQ/nq8rv718B9Pdv4d1itguelm1oxlcz6edrI06Wn TP2YJRAYs+ZF+PzC97b9uNIn03BND9WCQG0VmLnZQ7lvvF9nRbxuAPniPEh340sHT5c2 vwOoGX7M9s8DsIGNgwDjxXdPGS7JphTyuFi0DxyErbj1o8lAq18J1Fc6mHsGo0Sae93I M9R2TrPdfJQLk6fhpigas9cvQFdBBD9DMg3pqb9afb2XonDEUs3e2Iud3P92CsmixPRv /fXg== X-Gm-Message-State: AOAM531BaaVy31/uc2yxr/h7c/e/HLjHfxAg3iNe9DEBMPAX/91e14q3 BXmhXfpj87o0OQhTj3eS84UyRg== X-Google-Smtp-Source: ABdhPJx2CKi0jnU8tN9TzrbbmKHvJWYTcuNCg5vCINCVEJ0w7herYQ+R+s/dwi6a680loLwitZyRNQ== X-Received: by 2002:a05:6402:1352:: with SMTP id y18mr4921489edw.378.1605185559553; Thu, 12 Nov 2020 04:52:39 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id n22sm2366989edr.11.2020.11.12.04.52.38 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 Nov 2020 04:52:38 -0800 (PST) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com Subject: [PATCH] arm64: dts: zynqmp: Wire mailbox with zynqmp-power driver Date: Thu, 12 Nov 2020 13:52:34 +0100 Message-Id: <5d3523150890e494df308ee69523d0f0e7b33b22.1605185549.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201112_075242_707855_D9A504DA X-CRM114-Status: GOOD ( 12.83 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Rajan Vaja , Krzysztof Kozlowski , Rob Herring , Manish Narani , Laurent Pinchart , Kalyani Akula , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The support to driver was added by commit ffdbae28d9d1 ("drivers: soc: xilinx: Use mailbox IPI callback") that's why also enable it via DT by default. It setups communication with firmware via IPI interface. Signed-off-by: Michal Simek --- arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi index 66dad22b8a76..68923fbd0e89 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi +++ b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi @@ -99,6 +99,29 @@ opp03 { }; }; + zynqmp_ipi { + compatible = "xlnx,zynqmp-ipi-mailbox"; + interrupt-parent = <&gic>; + interrupts = <0 35 4>; + xlnx,ipi-id = <0>; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + ipi_mailbox_pmu1: mailbox@ff990400 { + reg = <0x0 0xff9905c0 0x0 0x20>, + <0x0 0xff9905e0 0x0 0x20>, + <0x0 0xff990e80 0x0 0x20>, + <0x0 0xff990ea0 0x0 0x20>; + reg-names = "local_request_region", + "local_response_region", + "remote_request_region", + "remote_response_region"; + #mbox-cells = <1>; + xlnx,ipi-id = <4>; + }; + }; + dcc: dcc { compatible = "arm,dcc"; status = "disabled"; @@ -128,6 +151,8 @@ zynqmp_power: zynqmp-power { compatible = "xlnx,zynqmp-power"; interrupt-parent = <&gic>; interrupts = <0 35 4>; + mboxes = <&ipi_mailbox_pmu1 0>, <&ipi_mailbox_pmu1 1>; + mbox-names = "tx", "rx"; }; zynqmp_clk: clock-controller {