Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp4820103imc; Mon, 25 Feb 2019 11:39:02 -0800 (PST) X-Google-Smtp-Source: AHgI3IZgVuZ96DypGdV2o058nvt76ft9SKyzlAswN9RC0tD3l6e+g/28xzxscFzcKQEhYVY3X0h5 X-Received: by 2002:a62:5789:: with SMTP id i9mr21456154pfj.75.1551123542104; Mon, 25 Feb 2019 11:39:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551123542; cv=none; d=google.com; s=arc-20160816; b=K2Id+KxxuwsXci5QU3fbMlAa9rZNBznnIMIzzdEqoWfFe17hJx7NU4HbJngmbQr33B 6cXOoGE8gkTqyepY2/4mtaWdD+CLzjAYNc1NTjkD2BBlq8Ewx4dMwtlGziR4SW/IC0kB QJsSVTKv8ApMdaUT07T8w6uktNriSjE9CUKXdal1Qfy1Jcwuk0N3/OqL5t/4aHca0xu5 /NtRocF6Axn9MwfUOEL40s+VAEsT9I2Ya7UYqFUJrUBFFnCxz1+Dx/RJ19pHjyatn9GE dM13bbD291f5zDfjWNI+pwkjtBtmabYNu2EA8UX7oDLyBf7uIUqcvfpGt8SFp3mAajOa ovpA== 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=rQo2MlVboZXjvxqtdmnDAsc8Wo/LQSEPXIjmhhJiRxE=; b=Ppekk4W5TT0ouX30pBxWXL63nRcuBg9rxv7N15LB1gkVufYOkiP/c+M6ckI4idedR2 ZZ7oeNI5A/8hDAFfYGp2dXCaBtfhzlWOZ3vabcqRZ5yW0tZ4Nfibj5ptuVP7TK31ebEh 6WUcBHnqAxDzbA71Ni3EXc/uEnJzOEwa9xisxc1L1uUU9AFG5B+qV5lJSVStzkw2ir1B WuuDmmOiARpRd88GBbHc+8Sa3Rn+do5PBJVGPTWGbE6TAxVMZKhTJnGPRykn0EHlo93D jaHPLw2VufQa6GGBwezcyZN9exJ9hn6O3+rl0n6X3Q+eX/nbE1ggFdRWaPnpo9XmDLXy Rkzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fiye4bGX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h8si10013346pls.365.2019.02.25.11.38.45; Mon, 25 Feb 2019 11:39:02 -0800 (PST) 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=@kernel.org header.s=default header.b=fiye4bGX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726783AbfBYTi1 (ORCPT + 99 others); Mon, 25 Feb 2019 14:38:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:40730 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726377AbfBYTi0 (ORCPT ); Mon, 25 Feb 2019 14:38:26 -0500 Received: from mail-qk1-f177.google.com (mail-qk1-f177.google.com [209.85.222.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 914D92146F; Mon, 25 Feb 2019 19:38:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1551123505; bh=KSmsmKN6qjX5vloDCqN5D0x044wPYCLAPrMJpTQyfd0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=fiye4bGX6HhnKB/QoRXcUg3TXoLJ3aN1E3XSv3y4yVCKsIPLXUgKaWneGLOmInz/4 bXdVj2kKSxQrIv/eHVlMSmX8TGmHE+l5vnXWr6QIqY0nMWSInT8BCZHw4YuXsfKWJO FajtrdKxh4WlhT+G7EmMzUd4VCzj7Yq3mSbCQT9c= Received: by mail-qk1-f177.google.com with SMTP id v139so6057201qkb.12; Mon, 25 Feb 2019 11:38:25 -0800 (PST) X-Gm-Message-State: AHQUAuYpzCTEU7ZbICCTb0E8IPZCjxv8ao9ScHdRap6diZJNxU3ExyM4 OdPxRR1UzprDUHthPw5wWeJQLN74+l3ZXukkcA== X-Received: by 2002:a37:4a84:: with SMTP id x126mr14099784qka.326.1551123504754; Mon, 25 Feb 2019 11:38:24 -0800 (PST) MIME-Version: 1.0 References: <32025b2a8ccc97cc01f8115ee962529eb5990f00.1550768574.git.hns@goldelico.com> <20190225093222.40533238@lwn.net> In-Reply-To: From: Rob Herring Date: Mon, 25 Feb 2019 13:38:12 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 02/10] iio: document bindings for mounting matrices To: Linus Walleij Cc: Jonathan Corbet , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "H. Nikolaus Schaller" , Jonathan Cameron , Mark Rutland , Andy Shevchenko , Charles Keepax , Song Qiang , Jean-Baptiste Maneyrol , Martin Kelly , Jonathan Marek , Brian Masney , Stephan Gerhold , Discussions about the Letux Kernel , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , "open list:IIO SUBSYSTEM AND DRIVERS" , "linux-kernel@vger.kernel.org" , Gregor Boirie , Sebastian Reichel , Samu Onkalo 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 On Mon, Feb 25, 2019 at 12:24 PM Linus Walleij wrote: > > Hi Jon, > > On Mon, Feb 25, 2019 at 5:32 PM Jonathan Corbet wrote: > > > > .../devicetree/bindings/iio/mount-matrix.txt | 204 ++++++++++++++++++ > > So this is a device tree binding. > > > So forgive me, but I have to ask: what are the chances of getting this > > file in RST format? It's 99% of the way there now, finishing the job > > would allow it to be integrated into our docs tree. > > > > It should probably have an SPDX line too. > > The recent direction of the Device Tree bindings are not in the RST > direction but in the direction of using another formal structure: YAML > schemas. > > See e.g. Documentation/devicetree/bindings/example-schema.yaml > > The YAML schema makes it possible to verify device trees and examples > inside the bindings to the specification using a context-free grammar. > > If we can join the RST and YAML ambitions is a good question. RST > has nice typesetting properties, YAML has nice grammatic properties. In fact there has been some experimentation there. The 'description' portion of DT schema can be RST. And the rest being structured data could be transformed to RST. Grant did some experiments there. The idea being to generate the DT spec from schema (rather than integrate into the kernel docs). But not much progress there and it's not something I'm spending time on ATM. Rob