Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp708697pxu; Fri, 23 Oct 2020 11:15:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfzKMZ+KJ9fWJ/A6rMfPoaK6XuYLlrqO9WYeQLgWM+AgWWkhcdHjsMxOCoTmx5Yb7sDrk7 X-Received: by 2002:aa7:cc11:: with SMTP id q17mr3336811edt.183.1603476933929; Fri, 23 Oct 2020 11:15:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603476933; cv=none; d=google.com; s=arc-20160816; b=UBO5iGdrOuv7qIZJOsAr2i+zFwKiHWjm3wb2faoVUk8sNSqKXlrl0hR6BmDNgcACYG ilt0iOTtYLZF/RZ9Ha6ae/oFKGCpts3T+Pm4+2gXUUF0ILxHABTTlCg5LDyYJ/2wlAGm p1FdQTHZ6rsSqc+DOPex+Kr1M5MfmKRhHnBvYYgbcA56J07fNHHL+Qty3A//a9ND47xB 2/CKeKwRUVbAKBSjg8x4KjekidBVkPtW2zb95xcD4F+nADvTa/C7yBtOBtn5M8Vb04he uEUpTn062ZkSq8H/GK4ZfIRfYSCXMdhqCud1HfEacGBwqFvt5963h3oc0A9wIxhyJpB8 7OUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=xEanTRCOYabNAppmF/+BLQC44ZrW3FYCtdF8/+89DCo=; b=Jz1Va3m0wJxUs/f32VkCAV7JcHmPNX5ZiUAHs2LzzpBQYRIzc0XH869/ElkqoIgRl0 1oBupcUkJNl/CaLUiE8a71JyWB8QfcQN+gndPdnzQ1STChjz7Z8E+gZtAflychon3iIX V1V6UvvmyLa7ICTl6nVofS7EaBgdqXLjb/UC/oizu9d7QXoTok5GdRjqHj+DZiAr6dSk PIcW0B2zcnfwhcmVqB0oz6z3PMiWG40TJ2tLr02Rph2vw5/IjjD5Dxd7m2fuqPOtxONi e5jhZ04ZaJK4LrTp+RiD3XTScJZbzf654pLRREgGZjdGb1RkPvU5m3RqQnMwzMV2n3rm NJVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=P+mXkpL3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q20si1729421ejb.151.2020.10.23.11.15.11; Fri, 23 Oct 2020 11:15:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=P+mXkpL3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750072AbgJWNqE (ORCPT + 99 others); Fri, 23 Oct 2020 09:46:04 -0400 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:6969 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S374057AbgJWNqE (ORCPT ); Fri, 23 Oct 2020 09:46:04 -0400 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Fri, 23 Oct 2020 06:45:15 -0700 Received: from [10.25.102.106] (172.20.13.39) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 23 Oct 2020 13:45:56 +0000 Subject: Re: [PATCH v4 08/15] Documentation: of: Convert graph bindings to json-schema To: Philipp Zabel , Rob Herring CC: , , , , , , , , , , , , , , , , , , , , References: <1602859382-19505-1-git-send-email-spujar@nvidia.com> <1602859382-19505-9-git-send-email-spujar@nvidia.com> <20201019215628.GA3650804@bogus> From: Sameer Pujar Message-ID: <9cea202e-6ffb-c9da-d9c0-debc351fd944@nvidia.com> Date: Fri, 23 Oct 2020 19:15:52 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB X-Originating-IP: [172.20.13.39] X-ClientProxiedBy: HQMAIL107.nvidia.com (172.20.187.13) To HQMAIL107.nvidia.com (172.20.187.13) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1603460715; bh=xEanTRCOYabNAppmF/+BLQC44ZrW3FYCtdF8/+89DCo=; h=Subject:To:CC:References:From:Message-ID:Date:User-Agent: MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding: Content-Language:X-Originating-IP:X-ClientProxiedBy; b=P+mXkpL3P8Yckwuga28igVEQhM0NlLpL0YNCr9SXLwURhQYJZpYQStl24TUoJ54E1 wB+hizDdXiwDup9Drb3CykEYfZOZmSfj2Eo5gdKet1ENTH5AiPAg2jQlT2NN/EA7z9 rEOObWzslgQPhs5UYie/6WPc9mMrAK6nGnjArdN7GtiX4Yj2p7M5PI8ayRMhb5JqP3 vTAXxwCTDQR1syYDud+GyXz7o3BXZQ8Ny+ZmkHs6tiGezIVj6++nEH6lBf087sJcYo CzE12yAY8dhDxnonWrNUSLqL0TaEKZwpxGXf1CALvKaRNM60a1ofgsy0ndzis+6gOP opcv5TrtwfSgA== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>> Signed-off-by: Sameer Pujar >>> Cc: Philipp Zabel >>> --- >>> Documentation/devicetree/bindings/graph.txt | 128 -------------------- > The removed Documentation/devicetree/bindings/graph.txt is referenced by > a lot of files, tree-wide. Should the references be updated in the same > series? May be possible to include in the same series if it is just about using 'graph.yaml' reference instead of 'graph.txt' in various files. ... >>> +%YAML 1.2 >>> +--- >>> +$id: http://devicetree.org/schemas/graph.yaml# >>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>> + >>> +title: Common bindings for device graphs >>> + >>> +description: | >>> + The hierarchical organisation of the device tree is well suited to describe >>> + control flow to devices, but there can be more complex connections between >>> + devices that work together to form a logical compound device, following an >>> + arbitrarily complex graph. >>> + There already is a simple directed graph between devices tree nodes using >>> + phandle properties pointing to other nodes to describe connections that >>> + can not be inferred from device tree parent-child relationships. The device >>> + tree graph bindings described herein abstract more complex devices that can >>> + have multiple specifiable ports, each of which can be linked to one or more >>> + ports of other devices. >>> + >>> + These common bindings do not contain any information about the direction or >>> + type of the connections, they just map their existence. Specific properties >>> + may be described by specialized bindings depending on the type of connection. >>> + >>> + To see how this binding applies to video pipelines, for example, see >>> + Documentation/devicetree/bindings/media/video-interfaces.txt. >>> + Here the ports describe data interfaces, and the links between them are >>> + the connecting data buses. A single port with multiple connections can >>> + correspond to multiple devices being connected to the same physical bus. >>> + >>> +maintainers: >>> + - Philipp Zabel >>> + >>> +definitions: >>> + >>> + port: >>> + type: object >>> + description: | >>> + If there is more than one 'port' or more than one 'endpoint' node >>> + or 'reg' property present in the port and/or endpoint nodes then >>> + '#address-cells' and '#size-cells' properties are required in relevant >>> + parent node. >> reg property. > What about #address-cells and #size-cells in port and ports nodes? > These must either be #address-cells = <1>, #size-cells = <0>, or they > can be absent if the parent node already has the same, or if a port node > only contains a single endpoint. Yes, will list these properties for port/ports. ...