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, USER_AGENT_MUTT 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 C675EC43381 for ; Mon, 11 Mar 2019 22:59:19 +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 9078F214AE for ; Mon, 11 Mar 2019 22:59:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="nv+cjcQE" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9078F214AE 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=wI5pCy5bDecZeBwQcgzuycNfLHB1bqDSOhWNy2bORpc=; b=nv+cjcQEIF7KkD +mbdxwCfh1P2ZdqhXaLnCSr2JBHfAPh+rnMGeEBaI00oWFu4WQ37oPurQFUzvLe+twvYuSyic3aq3 jAsu84ovloQz6hAKlnIXfxL8k79bRehBzOyedHTHuY3vo+YGJoJWdeZKFtmI1Qn1xj7l6sRilO9Ot K8UaL9R2L1Y34lNo6UP4k5xIR4xTO85XFX4DEuB8Pf5pMtj0cx+lU1MCyMDChLAEFlst1c19N3ZpI TN/BWP84FZFd19Ulma+t4YNfE8uGmeZLAFEs2mSCWEEL/AHLbBvxPnzgPHTNWvjvrazmjHAEiwKqm 0Mwphl7cwiP7notLr+pA==; 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 1h3Tt1-0007fk-7b; Mon, 11 Mar 2019 22:59:11 +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 1h3Tsy-0007fL-2b for linux-arm-kernel@lists.infradead.org; Mon, 11 Mar 2019 22:59:09 +0000 Received: by mail-oi1-f196.google.com with SMTP id i8so488605oib.10 for ; Mon, 11 Mar 2019 15:59:07 -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:content-transfer-encoding :in-reply-to:user-agent; bh=c8UCbwfRUGWEdOWW1k6Y6c1BXaolySAOS2vbKR36CCY=; b=q/STCDWvKWr9Eqh7OWjUgcXGXy6B4MBlKRE71tD1LEYhUrp5E3psQTcVQtKH7b2uNN Ui4Lr+iqlylH4VSpVciK27l9b+qsUDrCL22/L9RiDbTr/r4oh3X61nPOsJoQ/WSTcyYj 2Vz1YdYJlDMXtvpxp5BXcbSCw8zPoxd1tPQ0AZTCqN19OvFwCKIVmti86uQTz+Nf5xfH z2KGJgb7mByXaQfOG4yrr/W0AspP5zCAkTwPkQZGsN9wwkmMNiqGY0uZHMeeX8z+2N5o SUTj55GRrJVUYaDYKVIiKO534b1oyI+fHK/KehsE8whJjoQDWGJZ7qVBYqwMiWurNbaJ ep+w== X-Gm-Message-State: APjAAAV+n7niVdPQ1T2Bg6vABqRv8tWnS+hf9bzcH8Ci+zNQwPxnIdIU TD7dI5OI3b0OiSnH9My8bA== X-Google-Smtp-Source: APXvYqzOk+1ocGYoPTyWwfZ8LG/8AWhsX8YKsFfGDdNq9jMakYyAtCq98C3TZmYvDc2ZO+1kKSBbbw== X-Received: by 2002:aca:f4d5:: with SMTP id s204mr7599oih.63.1552345147051; Mon, 11 Mar 2019 15:59:07 -0700 (PDT) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id j18sm2796653otl.40.2019.03.11.15.59.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 11 Mar 2019 15:59:06 -0700 (PDT) Date: Mon, 11 Mar 2019 17:59:06 -0500 From: Rob Herring To: Marek =?iso-8859-1?Q?Beh=FAn?= Subject: Re: [PATCH v4 armsoc/drivers/bus+gpio 2/5] dt-bindings: bus: Document moxtet bus binding Message-ID: <20190311225906.GA9056@bogus> References: <20190307125251.724-1-marek.behun@nic.cz> <20190307125251.724-3-marek.behun@nic.cz> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190307125251.724-3-marek.behun@nic.cz> 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-20190311_155908_120591_0683DE6A X-CRM114-Status: GOOD ( 18.62 ) 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, Arnd Bergmann , Tony Lindgren , Linus Walleij , linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Shawn Guo , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Mar 07, 2019 at 01:52:48PM +0100, Marek Beh=FAn wrote: > This adds device tree binding documentation for the Moxtet bus, a bus > via which the different modules connected to the Turris Mox router can > be configured. > = > Signed-off-by: Marek Beh=FAn > Cc: Rob Herring > Cc: devicetree@vger.kernel.org > --- > .../devicetree/bindings/bus/moxtet.txt | 44 +++++++++++++++++++ > MAINTAINERS | 1 + > 2 files changed, 45 insertions(+) > create mode 100644 Documentation/devicetree/bindings/bus/moxtet.txt > = > diff --git a/Documentation/devicetree/bindings/bus/moxtet.txt b/Documenta= tion/devicetree/bindings/bus/moxtet.txt > new file mode 100644 > index 000000000000..7be9d00c1767 > --- /dev/null > +++ b/Documentation/devicetree/bindings/bus/moxtet.txt > @@ -0,0 +1,44 @@ > +Turris Mox module status and configuration bus (over SPI) > + > +Required properties: > + - compatible : Should be "cznic,moxtet" > + - #address-cells : Has to be 1 > + - #size-cells : Has to be 0 > + - spi-cpol : Required inverted clock polarity > + - spi-cpha : Required shifted clock phase > + - interrupts : Must contain reference to the shared interrupt line > + - interrupt-controller : Required > + - #interrupt-cells : Has to be 1 > + > +For other required and optional properties of SPI slave nodes please ref= er to > +../spi/spi-bus.txt. > + > +Required properties of subnodes: > + - reg : Should be position on the Moxtet bus 'position' is a little vague. > + > +The driver finds the devices connected to the bus by itself, but it may = be > +needed to reference some of them from other parts of the device tree. In= that > +case the devices can be defined as subnodes of the moxtet node. > + > +Example: > + > + moxtet@1 { > + compatible =3D "cznic,moxtet"; > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + reg =3D <1>; > + spi-max-frequency =3D <10000000>; > + spi-cpol; > + spi-cpha; > + interrupt-controller; > + #interrupt-cells =3D <1>; > + interrupt-parent =3D <&gpiosb>; > + interrupts =3D <5 IRQ_TYPE_EDGE_FALLING>; > + > + moxtet_sfp: gpio@0 { > + compatible =3D "cznic,moxtet-sfp"; cznic,moxtet-gpio according to the next patch. > + gpio-controller; > + #gpio-cells =3D <2>; > + reg =3D <0>; > + } > + }; > diff --git a/MAINTAINERS b/MAINTAINERS > index d96d36c83bc3..3f461a2d776a 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -1502,6 +1502,7 @@ ARM/CZ.NIC TURRIS MOX SUPPORT > M: Marek Behun > W: http://mox.turris.cz > S: Maintained > +F: Documentation/devicetree/bindings/bus/moxtet.txt > F: include/linux/moxtet.h > F: drivers/bus/moxtet.c > = > -- = > 2.19.2 > = _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel