Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp3520881ybh; Tue, 17 Mar 2020 01:31:15 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsstZule14KqkH2KDixRnzlAMH8EhIMOkOUTdKf9vqKSOlwFIpNBN6HFNKYMiiicoR9XJhp X-Received: by 2002:a05:6830:1f5a:: with SMTP id u26mr529652oth.208.1584433875260; Tue, 17 Mar 2020 01:31:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584433875; cv=none; d=google.com; s=arc-20160816; b=Odqy0jFTa1UYLrTdyVNrZLf4dozUEYXCbGWJEihzAIoj6jfjhuuQpuL/3U/yvbBWfJ pO1iWPQ1lFi1OkM6oI+htxqQKa46Ak9ryEwQ2/MIEetORnYwxP4Zq0Oie7sGFE61Kbji IJZ+evDZrDnE2omrgKW6QEKZD7rgdVFQCP9ykAsXsLCwU2SOouNLDVbwvHHpt8CNrqlq L1AUoBzC7KfKklRMUMSqW2nK3nIXLZD1dpfaSuQYc8ApIfrSav7qkSOe0YDR3Z5e6n8g 33q1QILoTS1bJR8WmJJhqH1/g8mFZNt8W5uFUWnY1zwGb1JI3jmz3uluFF9fEIdeqPUQ xwaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=jyDCPfs8KzQ6V9GNlBy3Iu/4R6G5EhS/k3t/Fwg1hEI=; b=tTgaxUuwWn05I3HgLbn8hw+OVxgJAqjvLJ1i87umkI0rrGYrXEJEaqfDm9HRTy4z0g LxVLQwJHYuuMDn6gwzQu5Vw5oW4y7Vf+Nmry1jQHBTDiUpuuZemIp12UTxy8S7+QlFjF o5/EpfUe98GY2FWd8r8qLsc/CejnMxt7FjRuoMT7RZHPethyhqR8pmWcODygiyGbvjR1 Fif/o7ipFNSpwMP1JNJrO3OER0D+BGYcqzzPgs04caBHzbc7rhOFKlMeVUv/+vX1f9ca 2G8NtYSRiWCTbLPHy9W54D8RExUK61xV4+S20mBYTvAdoM8LUtxFWW1VFyXw08ke6bQh j+HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@antmicro.com header.s=google header.b=c2DNi1WY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x136si1224451oif.122.2020.03.17.01.31.03; Tue, 17 Mar 2020 01:31:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@antmicro.com header.s=google header.b=c2DNi1WY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726669AbgCQIaK (ORCPT + 99 others); Tue, 17 Mar 2020 04:30:10 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:37429 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726476AbgCQIaJ (ORCPT ); Tue, 17 Mar 2020 04:30:09 -0400 Received: by mail-io1-f68.google.com with SMTP id q9so109540iod.4 for ; Tue, 17 Mar 2020 01:30:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antmicro.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jyDCPfs8KzQ6V9GNlBy3Iu/4R6G5EhS/k3t/Fwg1hEI=; b=c2DNi1WYbLLOwQlnk496EBc46hHCbpcGgzkJhdPeh+6ID51gwq5Jj/tOQI2UYMpf/n vnfERJoln5g5y2c0NWtui4fSc5SfruZjtXx0RN1rTF/T5KZCJVYq57TvhIk87PE+YaHO N4tzhqg/VE4XzV57jM7rqCpA6vHTAaOhnG5ZU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jyDCPfs8KzQ6V9GNlBy3Iu/4R6G5EhS/k3t/Fwg1hEI=; b=n/Lrl2m4pmj9H9B4epinEQSEKmJf8ikxeUyiyvAPvCIi2nG7vynIQn9fE/4G8Xl2B9 u/pi8kwDGrR0d4tPSAGaZ7xbVAlXghx6Zr6+bKZvUEcJFKOesp8t2JMkgm6C5ZxpKfsb hNO6KaTW0ZZd2jhmXVqDDXFGm1fEvIrwvyDIbSZpHKFoLybjodBG8ESTi8Jh+XvKpSOY 5KPRs4EZRXd1WAej63Brtdgqm5YcmCcWa84vgz89NWPXbxMtKEsQNOQIcmfsc3FPRh0w XYlqJKvZBMXS/39MKqyw3XpVL7BKgPGp5X88FdAlEkV0ib+fO4MGeglC5w3SzZSd//G6 uUeQ== X-Gm-Message-State: ANhLgQ1NfzuzdlQFh4YOLscbhZyto8mPJQFM/tT+uhB4JSzi97tPSJj0 wrQKP+EYeyVQp+r3ypDotIytfBCTaeDGkg893mG9KQ== X-Received: by 2002:a02:1d44:: with SMTP id 65mr4200166jaj.6.1584433808056; Tue, 17 Mar 2020 01:30:08 -0700 (PDT) MIME-Version: 1.0 References: <20200225094437.4170502-0-mholenko@antmicro.com> <20200225094437.4170502-2-mholenko@antmicro.com> <20200225091055.ubm5r3p6r4ydchyh@gilmour.lan> In-Reply-To: <20200225091055.ubm5r3p6r4ydchyh@gilmour.lan> From: Mateusz Holenko Date: Tue, 17 Mar 2020 09:29:56 +0100 Message-ID: Subject: Re: [PATCH v3 2/5] dt-bindings: soc: document LiteX SoC Controller bindings To: Maxime Ripard Cc: Rob Herring , Mark Rutland , Greg Kroah-Hartman , Jiri Slaby , devicetree@vger.kernel.org, "open list:SERIAL DRIVERS" , Stafford Horne , Karol Gugala , Mauro Carvalho Chehab , "David S. Miller" , "Paul E. McKenney" , Filip Kokosinski , Pawel Czarnecki , Joel Stanley , Jonathan Cameron , Shawn Guo , Heiko Stuebner , Sam Ravnborg , Icenowy Zheng , Laurent Pinchart , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Maxime, On Tue, Feb 25, 2020 at 10:11 AM Maxime Ripard wrote: > > Hi Mateusz, > > On Tue, Feb 25, 2020 at 09:46:45AM +0100, Mateusz Holenko wrote: > > From: Pawel Czarnecki > > > > Add documentation for LiteX SoC Controller bindings. > > > > Signed-off-by: Pawel Czarnecki > > Signed-off-by: Mateusz Holenko > > --- > > > > Notes: > > This commit has been introduced in v3 of the patchset. > > > > .../soc/litex/litex,soc_controller.yaml | 46 +++++++++++++++++++ > > MAINTAINERS | 6 +++ > > 2 files changed, 52 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/soc/litex/litex,soc_controller.yaml > > > > diff --git a/Documentation/devicetree/bindings/soc/litex/litex,soc_controller.yaml b/Documentation/devicetree/bindings/soc/litex/litex,soc_controller.yaml > > new file mode 100644 > > index 000000000000..039894265319 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/soc/litex/litex,soc_controller.yaml > > @@ -0,0 +1,46 @@ > > +PDX-License-Identifier: GPL-2.0 > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/soc/litex/litex,soc_controller.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: LiteX SoC Controller driver > > + > > +description: | > > + This is the SoC Controller driver for the LiteX SoC Builder. > > + It's purpose is to verify LiteX CSR (Control&Status Register) access > > + operations and provide function for other drivers to read/write CSRs > > + and to check if those accessors are ready to use. > > + > > +maintainers: > > + - Karol Gugala > > + - Mateusz Holenko > > + > > +properties: > > + compatible: > > + const: litex,soc_controller > > Usually compatible will use dash as separators, not underscores. > > > + reg: > > + description: Base address and length of the register space > > This is usually removed since it's what's expected from the property > anyway. However, what you should really test for in the number of > address/size couples being set, and you can do that using maxItems: 1 > > > + status: > > + description: | > > + disables or enables node > > + > > + const: "okay" > > This is added automatically by the tooling, so you can leave it out. > > > +required: > > + - compatible > > + - reg > > + - status > > And in general, status is not required. Leaving status out is > equivalent to status = "okay" > > > +examples: > > + - | > > + > > + soc_ctrl0: soc_controller@f0000000 { > > + compatible = "litex,soc_controller"; > > + reg = <0x0 0xf0000000 0x0 0xC>; > > + status = "okay"; > > + }; > > The indentation looks weird here? > > Maxime Thanks for all the comments! I'll fix this file and resubmit the whole patchset after addressing other remarks. -- Mateusz Holenko Antmicro Ltd | www.antmicro.com Roosevelta 22, 60-829 Poznan, Poland