From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752251AbbIAVuo (ORCPT ); Tue, 1 Sep 2015 17:50:44 -0400 Received: from seldrel01.sonyericsson.com ([37.139.156.2]:3470 "EHLO seldrel01.sonyericsson.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751680AbbIAVul (ORCPT ); Tue, 1 Sep 2015 17:50:41 -0400 Date: Tue, 1 Sep 2015 14:50:29 -0700 From: Bjorn Andersson To: Stanimir Varbanov CC: Alexandre Courbot , Ian Campbell , Linus Walleij , Mark Rutland , Pawel Moll , Rob Herring , "devicetree@vger.kernel.org" , "linux-arm-msm@vger.kernel.org" , "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 1/4] dt-binding: gpio: Add Qualcomm SMSM device tree documentation Message-ID: <20150901215029.GK13472@usrtlx11787.corpusers.net> References: <1440697078-4106-1-git-send-email-bjorn.andersson@sonymobile.com> <1440697078-4106-2-git-send-email-bjorn.andersson@sonymobile.com> <55E55F70.5050703@mm-sol.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <55E55F70.5050703@mm-sol.com> User-Agent: Mutt/1.5.22 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 01 Sep 01:18 PDT 2015, Stanimir Varbanov wrote: > On 08/27/2015 08:37 PM, Bjorn Andersson wrote: > > This documents a device tree binding for exposing the Qualcomm Shared > > Memory State Machine as a set of gpio- and interrupt-controllers. > > > > Signed-off-by: Bjorn Andersson > > --- > > .../devicetree/bindings/gpio/qcom,smsm.txt | 114 +++++++++++++++++++++ > > > > > += EXAMPLE > > +The following example shows the SMEM setup for controlling properties of the > > +wireless processor, defined from the 8974 apps processor's point-of-view. It > > +encompasses one outbound entry and the outgoing interrupt for the wireless > > +processor. > > + > > +smsm { > > + compatible = "qcom,smsm"; > > + > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + qcom,ipc-3 = <&apcs 8 19>; > > Can we use something more descriptive here, for example > > qcom,ipc-rpm = <&apcs 8 19>; Not really, because in the view of smsm we don't now which host the rpm would represent. But most likely 3 would mean WCNSS, per the enum in caf. > > and replace these magic numbers with defines? > I don't know what those defines would be named, what you have here is bit 19 in the 8th byte - straight from the register documentation. > > + > > + apps_smsm: apps@0 { > > + reg = <0>; > > + > > + gpio-controller; > > + #gpio-cells = <2>; > > + }; > > + > > + wcnss_smsm: wcnss@7 { > > + reg = <7>; > > + interrupts = <0 144 1>; > > + > > + interrupt-controller; > > + #interrupt-cells = <2>; > > + }; > > +}; Regards, Bjorn