From mboxrd@z Thu Jan 1 00:00:00 1970 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=-8.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS, URIBL_BLOCKED,USER_AGENT_MUTT autolearn=unavailable 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 D9BE5C43381 for ; Thu, 28 Mar 2019 18:44:42 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 AF4062064A for ; Thu, 28 Mar 2019 18:44:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="VGa5p396" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AF4062064A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-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=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=WDaqsnvnn1VBzjrczYRoYHr1vnb39TZLFWWaux5LzjU=; b=VGa5p3960sgrJH t+gPXtshL9dwdEweauqDqkuZOqDbdnkN1lNg+NzrzYE0tMLlvrvSgDo5Ot5kMqFFv8CQMXptc12VX V5afn2NP+meT/v+BoYPvJhAPbQzNJR5Qpr43ZE2MV9SZ+uEj5iAAslMvG/zAvpZU/MN/tdsQ2qK1O 36jeT8ThiIyzvKYpwYtv/HqpvtjTZubbrHt9nRrWnqBrGGojaWIEO+kOHjLxdMdifZ/asglgVW/0k AUI+Ur8FMrJ76YvrMl4DU5HfbTVVaF9J5LNV8P1zqRcKv6aO45PccCyAHrCcODCGMLc73M20OsfTH SuFBMlMrg432rWp3sWAA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h9a0t-0005E9-A0; Thu, 28 Mar 2019 18:44:31 +0000 Received: from mail-oi1-f196.google.com ([209.85.167.196]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h9a0q-0005Di-6h; Thu, 28 Mar 2019 18:44:29 +0000 Received: by mail-oi1-f196.google.com with SMTP id e5so5030277oii.0; Thu, 28 Mar 2019 11:44:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=CX+Ec3c8yzrgasul+E+SqcQqDwlxjCw7tIRt6TNfviM=; b=OA0qwj2OOFq+/o8hCuPmUsSKjGizhYlefB6QASG7heFUOg+3pW9ez/mFNuuasYdJXg WM/alM0KE6urDZQy6pz+VMyhO24jCq+hxrkqYJpQvy3eIChF6XU7/XJfEq6y+uCeAXz/ t75Om9oa4j24TLSEyAQ0ts36EAfoWBhe4eFDDPqbnQWPWpLKE8BkrspoQaNE2SyhvrS2 9b+O5ec8tXZnnLhBBEijn/ut7tdVwW3DlGLpoUuuQHUuHb7QyZQMTa5MRA0+nkBj1BTJ WB/6pv7yoKafkKM6XpJwIW0UB5Nl6KdNiJrf+1289tvyC63Ub33dvOR5I6pKZwLDDyWq v1LQ== X-Gm-Message-State: APjAAAUEGjs8yZO3JX3H3hq1Pgl0pSkAsW8jgw0tcgBzc8v/grE3KT0O 0sfhBVeeINbKi7fChrDy1w== X-Google-Smtp-Source: APXvYqytZgxu6mMm43rBuRhAWDggagDdy0plDNdFz71Wp7xRW7xT6LJjdaMt2f6tezFEim8Kv+298w== X-Received: by 2002:aca:4b03:: with SMTP id y3mr1019403oia.21.1553798667157; Thu, 28 Mar 2019 11:44:27 -0700 (PDT) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id q23sm10366855oic.45.2019.03.28.11.44.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Mar 2019 11:44:26 -0700 (PDT) Date: Thu, 28 Mar 2019 13:44:25 -0500 From: Rob Herring To: Bibby Hsieh Subject: Re: [PATCH v3 03/12] dt-binding: gce: add binding for gce event property Message-ID: <20190328184425.GA21602@bogus> References: <1553739573-19708-1-git-send-email-bibby.hsieh@mediatek.com> <1553739573-19708-4-git-send-email-bibby.hsieh@mediatek.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1553739573-19708-4-git-send-email-bibby.hsieh@mediatek.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190328_114428_303196_065A38B7 X-CRM114-Status: GOOD ( 18.11 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Nicolas Boichat , Philipp Zabel , srv_heupstream@mediatek.com, kendrick.hsu@mediatek.com, Daoyuan Huang , Sascha Hauer , Jassi Brar , linux-kernel@vger.kernel.org, Daniel Kurtz , YT Shen , CK HU , Dennis-YC Hsieh , linux-mediatek@lists.infradead.org, Houlong Wei , Sascha Hauer , Matthias Brugger , Jiaguang Zhang , Frederic Chen , linux-arm-kernel@lists.infradead.org, ginny.chen@mediatek.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Mar 28, 2019 at 10:19:24AM +0800, Bibby Hsieh wrote: > Client hardware would send event to GCE hardware, > so #event-cells, mediatek,gce-event-names, mediatek,gce-events. > present the event. > > Signed-off-by: Bibby Hsieh > --- > Documentation/devicetree/bindings/mailbox/mtk-gce.txt | 17 ++++++++++++++--- > 1 file changed, 14 insertions(+), 3 deletions(-) > > diff --git a/Documentation/devicetree/bindings/mailbox/mtk-gce.txt b/Documentation/devicetree/bindings/mailbox/mtk-gce.txt > index 1f7f8f2..2f175d6 100644 > --- a/Documentation/devicetree/bindings/mailbox/mtk-gce.txt > +++ b/Documentation/devicetree/bindings/mailbox/mtk-gce.txt > @@ -21,12 +21,21 @@ Required properties: > priority: Priority of GCE thread. > atomic_exec: GCE processing continuous packets of commands in atomic > way. > +- #event-cells: Should be 1. > + <&phandle event_number> > + phandle: Label name of a gce node. > + event_number: the event number defined in 'dt-bindings/gce/mt8173-gce.h' > + or 'dt-binding/gce/mt8183-gce.h'. You only need to have a #*-cells if the number is variable. What are 'events' here? Sounds like interrupts or MSI? > > Required properties for a client device: > - mboxes: Client use mailbox to communicate with GCE, it should have this > property and list of phandle, mailbox specifiers. > - mediatek,gce-subsys: u32, specify the sub-system id which is corresponding > to the register address. > +Optional propertier for a client device: > +- mediatek,gce-event-names: the event name can be defined by user. > +- mediatek,gce-events: u32, the event number defined in > + 'dt-bindings/gce/mt8173-gce.h' or 'dt-binding/gce/mt8183-gce.h'. > > Some vaules of properties are defined in 'dt-bindings/gce/mt8173-gce.h' > or 'dt-binding/gce/mt8183-gce.h'. Such as sub-system ids, thread priority, event ids. > @@ -40,6 +49,7 @@ Example: > clocks = <&infracfg CLK_INFRA_GCE>; > clock-names = "gce"; > #mbox-cells = <3>; > + #event-cells = <1>; > }; > > Example for a client device: > @@ -49,8 +59,9 @@ Example for a client device: > mboxes = <&gce 0 CMDQ_THR_PRIO_LOWEST 1>, > <&gce 1 CMDQ_THR_PRIO_LOWEST 1>; > mediatek,gce-subsys = ; > - mutex-event-eof = - CMDQ_EVENT_MUTEX1_STREAM_EOF>; > - > + mediatek,gce-event-names = "rdma0_sof", > + "rsz0_sof"; > + mediatek,gce-events = <&gce CMDQ_EVENT_MDP_RDMA0_SOF>, > + <&gce CMDQ_EVENT_MDP_RSZ0_SOF>; > ... > }; > -- > 1.9.1 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel