From patchwork Thu Oct 24 10:47:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grygorii Strashko X-Patchwork-Id: 177403 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp2001540ill; Thu, 24 Oct 2019 03:47:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqxqyD9YsOgNb48gkJTpWTOuFfHLKMoa3AkVzxUWPUKMXweFWtVx67qJNIwTWhmWubILfSYn X-Received: by 2002:a50:cd14:: with SMTP id z20mr2683581edi.226.1571914046143; Thu, 24 Oct 2019 03:47:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571914046; cv=none; d=google.com; s=arc-20160816; b=iMyT2Nudz7XihZ2NGJoGBaup2b7ra7zWTY0enghX7CjQIxfmhTr2tUJpyH9qGjcOaj og7hrvB2g3bI1n9N4gNgmz88FgV6W7QRMgm3YiDj3SsLokrSxHIS6DQcPLYp+OUAfdl3 bDWcFKd/uX3pvMUlXGu9E6LluDUHffxeoH0PWqKzSUAEFRsM7PXjQTHOdR2IxDQlSwIO JSfOxkYIXfgmlNRtXjPIFdj/voGzU1fA4uWNhxMAX3+1kkwYU6AoO27+lhbGPsqXH1DJ GXsv7uUgI656SE6kxZfAsZ5Ukpek8MW5xCwy64uVHl1BlPaMHI6u0X7sY7hV0iob7eEo k25g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=+DDrtZysaxPLyifnU1qVZm7pk/NXlX6sB+O3fJqQGJw=; b=DOlckAaCjGDKAuurduFFfRqTZDlIrxlUfZFqOo0TmCd/O7YerwI9BuK3Og+iYSzVVI rN1i59Ww/GasISCBQ45nnUaB3Cbj7Yz1Ns2VrzPBTxTebpYspwLiorI++c8cxpLhqo4J F1+oZWEN3DXpoEVXm/XMh0+gO0jNNgGbuqYHYX9iWD+khAkwn13I8T7xZ+JTCksS5cSD vzhiVGH0JsbFAVfDeDU9unKLaVPVs4TpMkArnlrVILMUu9sW0NwDEYwjrgRhrHmfFJxk aGSYybmsvROiGjKkb8WURiWN6QUtYOr9fjAyTYDDQMiD4HcYBFz/ZhMEbPV86m+oL5ZN hgcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=F9I02n+N; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m3si8495159edb.250.2019.10.24.03.47.25; Thu, 24 Oct 2019 03:47:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=@ti.com header.s=ti-com-17Q1 header.b=F9I02n+N; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733196AbfJXKrZ (ORCPT + 8 others); Thu, 24 Oct 2019 06:47:25 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:45406 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732651AbfJXKrZ (ORCPT ); Thu, 24 Oct 2019 06:47:25 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x9OAlLHa005491; Thu, 24 Oct 2019 05:47:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1571914041; bh=+DDrtZysaxPLyifnU1qVZm7pk/NXlX6sB+O3fJqQGJw=; h=From:To:CC:Subject:Date; b=F9I02n+Nwc8puY6dhryjllP809hT/3MW+IUnaoEfVQkiRfb8M0MZLusu/sl/4jIut mmbsI/el3wE8HhS/FVfki1UY5DPbVuaTGr07M+AG6H8nqtbkAz/Y/9iuU7j/QbN1uy BMp4sJrpljwu5mjnOHlwtUwRFsfvKl2rm0fj91Zo= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x9OAlLAt048090 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 24 Oct 2019 05:47:21 -0500 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Thu, 24 Oct 2019 05:47:11 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Thu, 24 Oct 2019 05:47:11 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x9OAlJNe039669; Thu, 24 Oct 2019 05:47:20 -0500 From: Grygorii Strashko To: "David S. Miller" , , Rob Herring CC: Sekhar Nori , , , Grygorii Strashko Subject: [RFC PATCH] dt-bindings: net: davinci-mdio: convert bindings to json-schema Date: Thu, 24 Oct 2019 13:47:30 +0300 Message-ID: <20191024104730.17708-1-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Now that we have the DT validation in place, let's convert the device tree bindings for the TI SoC Davinci/OMAP/Keystone2 MDIO Controllerr over to a YAML schemas. Signed-off-by: Grygorii Strashko --- This my first attempt to work with YAML schemas, hence RFC. .../bindings/net/ti,davinci-mdio.yaml | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/ti,davinci-mdio.yaml -- 2.17.1 diff --git a/Documentation/devicetree/bindings/net/ti,davinci-mdio.yaml b/Documentation/devicetree/bindings/net/ti,davinci-mdio.yaml new file mode 100644 index 000000000000..e51054d2e0fa --- /dev/null +++ b/Documentation/devicetree/bindings/net/ti,davinci-mdio.yaml @@ -0,0 +1,64 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/ti,davinci-mdio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI SoC Davinci/Keystone2 MDIO Controller + +maintainers: + - Grygorii Strashko + +description: + TI SoC Davinci/Keystone2 MDIO Controller Device Tree Bindings + +allOf: + - $ref: "mdio.yaml#" + +properties: + compatible: + oneOf: + - const: ti,davinci_mdio + - items: + - const: ti,keystone_mdio + - const: ti,davinci_mdio + - items: + - const: ti,cpsw-mdio + - const: ti,davinci_mdio + - items: + - const: ti,am4372-mdio + - const: ti,cpsw-mdio + - const: ti,davinci_mdio + + reg: + maxItems: 1 + + bus_freq: + maximum: 2500000 + description: + Mdio Bus frequency + + ti,hwmods: + description: TI hwmod name + deprecated: true + allOf: + - $ref: /schemas/types.yaml#/definitions/string-array + - items: + const: davinci_mdio + +required: + - compatible + - reg + - bus_freq + - "#address-cells" + - "#size-cells" + +examples: + - | + davinci_mdio: mdio@4a101000 { + compatible = "ti,davinci_mdio"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x4A101000 0x1000>; + bus_freq = <1000000>; + };