From patchwork Thu Nov 4 14:23:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Carriere X-Patchwork-Id: 516815 Delivered-To: patch@linaro.org Received: by 2002:ad5:5208:0:0:0:0:0 with SMTP id p8csp1995378iml; Thu, 4 Nov 2021 07:25:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6+6/jcmqJ0RM/I4pYIwWu364pr3HHOQk1z7WrNhE8EY+Bc0dNyTW+i9fs+jPBJn3KZe8j X-Received: by 2002:a17:907:6d1e:: with SMTP id sa30mr21932383ejc.394.1636035944769; Thu, 04 Nov 2021 07:25:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636035944; cv=none; d=google.com; s=arc-20160816; b=SVFfBH9xjy6Io5Y0W76ysBo8an/wEzf34AiMX2vX9UojAeLpYrNJKcVc7iW/kqeMBA PPk5aUt38rAaTrq5PaQXt9Q3KYJ7WZt+qJqv2gVO5IkjLVTqNOpmUKBgTg7uT8y3Nw/8 N3tuckkulsaqbRqblZEuXSnJBtVcIJrIeG8pKLi6G7+KDcp9o9t8S0+gB1yqgO0cTRn0 a78HXii5yaPvk3a3AhIj/LSoP6UXd0nVYlVSuWt4UzRi99KByJhqKamH5ujq6uDVfRnK aSVvYHccZsl3jknxBqL2aI6Upl0POhWzRLhjqP5NH5PNuzzl7bovGeYc1+aC8BMgkmG/ Wspg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=1pPWfyM95WAaq9wBH5UxKrKbQ7HZGKJ++8lMvjtFJBk=; b=pAOjTTKfm4vKxvc0Ps20v8bd0q9HxbeSF2dVOaREIkTd3i8cMolCI4j2/ABdwURpxD Vcb2b4dLUBcd5oc1n9SxY7S5pxlLV5ha0OzMuoqDAn0cSv0MS/4MK2GqSGbZfqLb0eF7 IdL8LJH4bn+xp4U+YZT454K3wo5cBbIfovC7BBskMVPQB0zGElFKSIMx/8Hx7GVMSW/B iIQDGCcDNDiBofXmI+T7q41uEh5MIh/hNJhfm4Xvz4VaZcHdTSTP5QWEBXJL4hfQhL5E Zj6uDAHSMQBGxj7bXf9pKeyxs+pJH2uLxHKrLhx+Xh+d8RoNoD493R82Qcd4a6OZtCqY Uhtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DX2eWj5e; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id 5si8021141eji.132.2021.11.04.07.25.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Nov 2021 07:25:44 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DX2eWj5e; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8A3E083700; Thu, 4 Nov 2021 15:24:27 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="DX2eWj5e"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 913EB836F5; Thu, 4 Nov 2021 15:23:53 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) (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 246A2836C5 for ; Thu, 4 Nov 2021 15:23:41 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=etienne.carriere@linaro.org Received: by mail-wm1-x334.google.com with SMTP id y196so4653734wmc.3 for ; Thu, 04 Nov 2021 07:23:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=1pPWfyM95WAaq9wBH5UxKrKbQ7HZGKJ++8lMvjtFJBk=; b=DX2eWj5eRoulI0TgV2D2AkeezUG8PI34p0S0+LT9TbRd626QS0sZxNUB7UB36DUJY9 +RmJS998vTr4VJFVa6ZFJGPeB6ZA1T+T5R9eN7NZ8xnOD3JqNZtMOgs8fETQL27hdBO3 wQcjmqR8pFQGp+9m8OBSEk9SUmk1K7Ju0Re4HhNKg8iufnBcZvA/6pzdDlG3483YGmIT 99o0YPtuFaJE6PHQfFFhUFeIkjNpcidmIYqkwpOSCMKgVBf+Ds2yWnH4FMN/Lg/5Yp8H Oc+ymg/s3b4cb8CWsx4cX4/fcRKWSDzRUurhmbEM2zs0L3bAMfRNLXEyAFPm6oSmArcq 0uBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=1pPWfyM95WAaq9wBH5UxKrKbQ7HZGKJ++8lMvjtFJBk=; b=Oczv6zBLBtDQ8+kQlZSiK33Kbw2/IGYArmELrunXwOTHORt7aU9ZP3geqwiKURqxJA WpkA2T3UM7oHg2y/BzHSC8JtEztlQaKFcsXdot2gGW5TYRKajbh6Wp4ieJ82tAWIb/Gu 5/4YShLbzPfIj7qOXGKnQMZXAip0Kmtf/FAXQH+fCio5TxDr4/D7S7NdJ0N6Z+UI/ODw Xpl8iMNMLtE4O3U6kZGRucC/vdHWeNI9Pp7Qt9eaaAswHEntvg+P1YQ11MGRQUN2giwp revLLcYWR8ZFaU6p3IbKlpH5rPNTCx3uYzPJjpAb71O1kphVwrLY5knng9RkwC3HYbkO St2g== X-Gm-Message-State: AOAM530EZ4NPowUKPL8bDHWnhxwwUOUzZ3W/t0Ah8lEFYNFjM8XPvHLz TAplwCscJ9zfO3kN6MSm9lkc0l+JR/pMFA== X-Received: by 2002:a05:600c:253:: with SMTP id 19mr23235756wmj.179.1636035818534; Thu, 04 Nov 2021 07:23:38 -0700 (PDT) Received: from lmecxl0524.lme.st.com ([2a04:cec0:10b3:52ee:40ee:3a6f:5eb8:bd35]) by smtp.gmail.com with ESMTPSA id m34sm9383297wms.25.2021.11.04.07.23.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Nov 2021 07:23:38 -0700 (PDT) From: Etienne Carriere To: u-boot@lists.denx.de Cc: Etienne Carriere Subject: [PATCH 13/14] [TEST] dts: stm32mp15: scmi mailbox transport Date: Thu, 4 Nov 2021 15:23:23 +0100 Message-Id: <20211104142324.2879-13-etienne.carriere@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211104142324.2879-1-etienne.carriere@linaro.org> References: <20211104142324.2879-1-etienne.carriere@linaro.org> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean Signed-off-by: Etienne Carriere --- arch/arm/dts/stm32mp15-u-boot.dtsi | 4 ++++ arch/arm/dts/stm32mp151.dtsi | 21 ++++++++++++++++----- 2 files changed, 20 insertions(+), 5 deletions(-) -- 2.17.1 diff --git a/arch/arm/dts/stm32mp15-u-boot.dtsi b/arch/arm/dts/stm32mp15-u-boot.dtsi index 6fd204c635..d69b2df419 100644 --- a/arch/arm/dts/stm32mp15-u-boot.dtsi +++ b/arch/arm/dts/stm32mp15-u-boot.dtsi @@ -151,6 +151,10 @@ u-boot,dm-pre-reloc; }; +&scmi0_mbox { + u-boot,dm-pre-reloc; +}; + &scmi0_reset { u-boot,dm-pre-reloc; }; diff --git a/arch/arm/dts/stm32mp151.dtsi b/arch/arm/dts/stm32mp151.dtsi index 6eaf3760bc..8fcce4aa2a 100644 --- a/arch/arm/dts/stm32mp151.dtsi +++ b/arch/arm/dts/stm32mp151.dtsi @@ -65,6 +65,12 @@ }; }; + scmi0_mbox: mailbox-0 { + #mbox-cells = <0>; + compatible = "arm,smc-mbox"; + arm,func-id = <0x82002000>; + }; + firmware { optee: optee { compatible = "linaro,optee-tz"; @@ -73,17 +79,22 @@ }; scmi0: scmi0 { - //compatible = "linaro,scmi-optee"; - compatible = "arm,scmi-smc"; #address-cells = <1>; #size-cells = <0>; - //linaro,optee-channel-id = <0>; - /* Supply properties for arm,scmi-smc compatible */ - arm,smc-id = <0x82002000>; shmem = <&scmi0_shm>; /* Enable only if stm32mp15x RCC[TZEN]=1 */ status = "disabled"; + //compatible = "linaro,scmi-optee"; + //linaro,optee-channel-id = <0>; + + //compatible = "arm,scmi-smc"; + //arm,smc-id = <0x82002000>; + + compatible = "arm,scmi"; + mboxes = <&scmi0_mbox>; + mbox-names = "txrx"; + scmi0_clk: protocol@14 { reg = <0x14>; #clock-cells = <1>;