Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1231865lqd; Thu, 25 Apr 2024 09:17:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW4/24+5kqJT8j1f17Z4/+0M+UMP2fZ3HhUhqPCre95V+eTRwnx4/L6MLQ8KXmPXdMzLvNx4vxcr/2dZhBFT25V2tPNvI38w+/GVCQVow== X-Google-Smtp-Source: AGHT+IFlFRDdmWtWeoRk9rXHOa5cno18Z8ycv57S9Ta6eSwIzA3tnFZcMwTG+fiJlWK0Hn46Yjhc X-Received: by 2002:a17:906:c417:b0:a55:856b:5892 with SMTP id u23-20020a170906c41700b00a55856b5892mr150499ejz.30.1714061860962; Thu, 25 Apr 2024 09:17:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714061860; cv=pass; d=google.com; s=arc-20160816; b=jIDGNDkY1e8XJER4f0Dox1fPm9HbW0ajf9eSYd7WK8hOcY7aCVMRbIojdbmgZRifFc KTiuK3a/7LUS7RW2R9bPjtUqAcj5wefcjoECtl86juxmIctHac/Z6+7qFhlkcllMTKFx 4K35GWajrkJV7CPK4W6g2NFPcoby0cX8Ovz9lbbrBDnnajIZwZ2d+2a913qAG0E6RFku dWti0ZyB7kpa65DbISFG/C+39E/D7C90T9X4gKfl7e2W0Vq6XXg3dTOcdnO7kvudEQuO 1h4sai+vkuVAymV0X9vPG71wVTFCMhUKLhuy/gjsANDFMwemJB2gzdk+beSkeLqAa7XJ 6vWw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=dvM2q4GA8k60L9mxH6x/7g+10qwbZc0lRr1aS90THJc=; fh=/BU+OMpNZLbRAWhKwjH1R+Bf8F5Up95JBcp7YE1hc3M=; b=aL9KLgSneP4rGtWPB3kSWt9kltUPgXn/Q2hOf58ewh3nHUFQac70tyt6A1rAjcnD8V idsNLfxDQmktbQZTRPtKhqhbciilOd8YECzpxlEG/rTXg6J19Y6ifUk/budNvxbaWVNm iTJab2Vx7w3HrTO10RtusUoK+4bsUViZPkYw/PzdHbAi2qu6h+47yGlT3obMB26GR4PP iwwyvB+aWUkvJTIMTLl+BeqZr9PM8d/JbnBJdFA9z3V+RduKFsNFmVnTxXPa1pKjp/Tl bLTIx5EAUXJ5fS/tKPGnckW6pBLlZ7heq+FOXIdaqIdb4W3lRRz2f2ve3m8sQXB/fnEf KXEw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p37YipOi; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-158879-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158879-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 c19-20020a17090603d300b00a559f9d2be7si6820904eja.554.2024.04.25.09.17.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 09:17:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158879-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=@kernel.org header.s=k20201202 header.b=p37YipOi; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-158879-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158879-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 AE57D1F240BB for ; Thu, 25 Apr 2024 16:17:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C354814D447; Thu, 25 Apr 2024 16:17:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="p37YipOi" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 50B5514D2B4; Thu, 25 Apr 2024 16:17:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714061839; cv=none; b=RR3BEtqb5b6vJKVm74Z4tGpwIT6xlWdSKo05ia2h9KEI4JIaDBoPCZIIArDT/l1ohQXyosOKRkLVPyyrVQRbUfGgua8SoXzAk+5kfxdZWKzbkJEWV/f0KyHDOYgzCltS42u0pmZMG4HlT4VEXjsaR+ssoOC+E2tADhKgTn+Zbj4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714061839; c=relaxed/simple; bh=ScLqWv63xir2MvKOgR98NCP/SnbKk9idOV31izZb2+A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Gmimh48HE/HsGUSoT8RlKSnnMhzhpLnRaGG+McKl9S63+BnUh4tiTA1PgJ7js4soESK8gchbi/heRjLYi1a8NHgrFgdNSzYLd0MMueAprM9Hfq7Coe4c0VXgbzzN8ahHUsK1PENdRr5p5HHedJuz2QpDGV9AJcaewWVk9qSGAQc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=p37YipOi; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 611DAC113CC; Thu, 25 Apr 2024 16:17:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714061838; bh=ScLqWv63xir2MvKOgR98NCP/SnbKk9idOV31izZb2+A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=p37YipOiH//QqkaxVlIMr2fSWxyx+QrccIcH0KZou9sWdoQoxA/HqR0Y1LlTHTRNm FNCyYmsJGKOpGRFztZ8+W/HUzFmZoAamLIe4pcCTD3SmX+/1mKi/851Sr9oN6YVjn5 KJAxN1POlDwQNK5lr1kJ+n4Kqvhn0F3cpgdPYduHSGjO6OI/TjDsFOASj1Qeb9qlmf rMgtI9PYCw0c/4gHh5rDTGERmDMAj8AdhCHrF85DdLCIvfPBGpGEu8Ri6E7OzYmNWD gr2DuRxd/rqrvk1Jt6NnMZ6sNUlZ4i+36e2FuqZo3l0OGTKtBFs7kK9YMZQF/GattE ngNfgnlvERwqA== Date: Thu, 25 Apr 2024 11:17:15 -0500 From: Rob Herring To: Luca Weiss Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Bjorn Andersson , Konrad Dybcio , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC 1/2] dt-bindings: soc: qcom,smsm: Allow specifying mboxes instead of qcom,ipc Message-ID: <20240425161715.GA2759240-robh@kernel.org> References: <20240424-smsm-mbox-v1-0-555f3f442841@z3ntu.xyz> <20240424-smsm-mbox-v1-1-555f3f442841@z3ntu.xyz> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240424-smsm-mbox-v1-1-555f3f442841@z3ntu.xyz> On Wed, Apr 24, 2024 at 07:21:51PM +0200, Luca Weiss wrote: > The qcom,ipc-N properties are essentially providing a reference to a > mailbox, so allow using the mboxes property to do the same in a more > structured way. Can we mark qcom,ipc-N as deprecated then? > Since multiple SMSM hosts are supported, we need to be able to provide > the correct mailbox for each host. The old qcom,ipc-N properties map to > the mboxes property by index, starting at 0 since that's a valid SMSM > host also. > > The new example shows how an smsm node with just qcom,ipc-3 should be > specified with the mboxes property. > > Signed-off-by: Luca Weiss > --- > .../devicetree/bindings/soc/qcom/qcom,smsm.yaml | 48 ++++++++++++++++++---- > 1 file changed, 40 insertions(+), 8 deletions(-) > > diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,smsm.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,smsm.yaml > index db67cf043256..b12589171169 100644 > --- a/Documentation/devicetree/bindings/soc/qcom/qcom,smsm.yaml > +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,smsm.yaml > @@ -33,6 +33,13 @@ properties: > specifier of the column in the subscription matrix representing the local > processor. > > + mboxes: > + minItems: 1 > + maxItems: 5 Need to define what each entry is. > + description: > + Reference to the mailbox representing the outgoing doorbell in APCS for > + this client. > + > '#size-cells': > const: 0 > > @@ -98,15 +105,18 @@ required: > - '#address-cells' > - '#size-cells' > > -anyOf: > +oneOf: > - required: > - - qcom,ipc-1 > - - required: > - - qcom,ipc-2 > - - required: > - - qcom,ipc-3 > - - required: > - - qcom,ipc-4 > + - mboxes > + - anyOf: > + - required: > + - qcom,ipc-1 > + - required: > + - qcom,ipc-2 > + - required: > + - qcom,ipc-3 > + - required: > + - qcom,ipc-4 > > additionalProperties: false > > @@ -136,3 +146,25 @@ examples: > #interrupt-cells = <2>; > }; > }; > + # Example using mboxes property > + - | > + #include > + > + shared-memory { > + compatible = "qcom,smsm"; > + #address-cells = <1>; > + #size-cells = <0>; > + mboxes = <0>, <0>, <0>, <&apcs 19>; > + > + apps@0 { > + reg = <0>; > + #qcom,smem-state-cells = <1>; > + }; > + > + wcnss@7 { > + reg = <7>; > + interrupts = ; > + interrupt-controller; > + #interrupt-cells = <2>; > + }; > + }; > > -- > 2.44.0 >