Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1127526pxu; Mon, 23 Nov 2020 12:20:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwix2vV8lqa35RA2lyXKHZAyxCLoKpL0abGTws586PZ61I1mt3BaTfUK9LcaIrTzYFatyRD X-Received: by 2002:a17:906:ccd3:: with SMTP id ot19mr1349011ejb.44.1606162808136; Mon, 23 Nov 2020 12:20:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606162808; cv=none; d=google.com; s=arc-20160816; b=Qa3MFg0vmmjJYMla+DuSBLD/ylsgJ85sUgi9Vc+4L1YSwQk2XSSpLAImd5SMDmAYt2 Bb2hy/KFJp81UhWL+riYBDfSAHojvYqLxDjwbPCRXNlGTDSYmWsbv57bwC14xTBy9P+X +0Y3Jow5TO3U7lnlydwWQqIMsNNznI/9Br71Kq/+7tPktevBNDh3JUdEi3r63LXdoKpW iwGKWeK0H0H4G1ptBMpf22ldYkWE46JJGE0WUw8UPIwXsIWX35pqXy/HN5MJLEo/JfKZ YoA+jznlAPjxJgSf47CVTaz39KJ7yersVbhff9XaCcU13IAA84nYexIzTEgdfz/SuINt axKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from; bh=wlJFnUwU5HKWWHpUe0MiGg5G/qDVWBP57wxnM35kaw8=; b=c0bg7Klexv/67SmXfJ9pXRukndXp7bCUOHDNB/nMQ+hM+P4LXtwI3q0JUKMiX/j8tu zvPlqRsYG0i1XiH3BnftEPah4hJRHv0Yt4pIXrAt40Biwk9n85qvNmwbEBO8NUXZe3qD WyuDPCcVmEUk/0A8HThreLyDnNetsvrAWH05CYYx668d/fuOKjRfKTEhySTuQI46Orsu 4a4gJqnN5hit9ElSL6+BkOPYrrGX8Nal6UYu3SsuC9++U9KbE7N0WpkWGBtkzp3bqKHv yhPWnRZseNBp5PULVKTV/3Q0DWifGMhFtEiuZs2KYEGqIeMSb3syaJM/GO8xEwXxTjig CdTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=qSSVc4kY; 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 r19si7576934edb.489.2020.11.23.12.19.45; Mon, 23 Nov 2020 12:20:08 -0800 (PST) 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=qSSVc4kY; 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 S2387813AbgKWURi (ORCPT + 99 others); Mon, 23 Nov 2020 15:17:38 -0500 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:18763 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732697AbgKWURV (ORCPT ); Mon, 23 Nov 2020 15:17:21 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Mon, 23 Nov 2020 12:17:22 -0800 Received: from HQMAIL107.nvidia.com (172.20.187.13) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 23 Nov 2020 20:17:21 +0000 Received: from skomatineni-linux.nvidia.com (172.20.13.39) by mail.nvidia.com (172.20.187.13) with Microsoft SMTP Server id 15.0.1473.3 via Frontend Transport; Mon, 23 Nov 2020 20:17:20 +0000 From: Sowjanya Komatineni To: , , , CC: , , , , Subject: [PATCH v3 3/6] dt-bindings: ata: tegra: Convert binding documentation to YAML Date: Mon, 23 Nov 2020 12:17:22 -0800 Message-ID: <1606162645-22326-4-git-send-email-skomatineni@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1606162645-22326-1-git-send-email-skomatineni@nvidia.com> References: <1606162645-22326-1-git-send-email-skomatineni@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1606162642; bh=wlJFnUwU5HKWWHpUe0MiGg5G/qDVWBP57wxnM35kaw8=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:In-Reply-To: References:X-NVConfidentiality:MIME-Version:Content-Type; b=qSSVc4kYKYDkTWQpF/UI/hfTO7OwRMVz80zW1uHjHYXk6Xy/MArRY5PBeJIMylD/6 sM7CvuaD9y2Gy/ZP9OK6W/CtXwslP2/hsEzJzoySYXusRkVBf85hVIWHJsW98zQVMV sWtLlarcB6vUrlqTaxS0kkD4xVcJIhUVXIXGr/kAJkVvevYsBvIqFwIu99+nCEWucf osXIKBG4mPlds12bK9ziF+NxNsPsvbkO2IHKHK3oR4T5uL8NtoM9J7JqyiuVQpdbWj cPqsFRRhCDtc1NLQ0t1cE9AasiVGKRPvzpVNRItit0IPTR3A13fWWsiIlbfaTbcvHc TGIyWoMwi5DoQ== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch converts text based dt-binding document to YAML based dt-binding document. Signed-off-by: Sowjanya Komatineni --- .../devicetree/bindings/ata/nvidia,tegra-ahci.yaml | 138 +++++++++++++++++++++ .../bindings/ata/nvidia,tegra124-ahci.txt | 44 ------- 2 files changed, 138 insertions(+), 44 deletions(-) create mode 100644 Documentation/devicetree/bindings/ata/nvidia,tegra-ahci.yaml delete mode 100644 Documentation/devicetree/bindings/ata/nvidia,tegra124-ahci.txt diff --git a/Documentation/devicetree/bindings/ata/nvidia,tegra-ahci.yaml b/Documentation/devicetree/bindings/ata/nvidia,tegra-ahci.yaml new file mode 100644 index 0000000..3c15aea --- /dev/null +++ b/Documentation/devicetree/bindings/ata/nvidia,tegra-ahci.yaml @@ -0,0 +1,138 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/ata/nvidia,tegra-ahci.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Tegra AHCI SATA Controller + +maintainers: + - Thierry Reding + - Jonathan Hunter + +properties: + compatible: + enum: + - nvidia,tegra124-ahci + - nvidia,tegra132-ahci + - nvidia,tegra210-ahci + + reg: + minItems: 2 + maxItems: 3 + items: + - description: AHCI registers + - description: SATA configuration and IPFS registers + - description: SATA AUX registers + + interrupts: + maxItems: 1 + + clock-names: + items: + - const: sata + - const: sata-oob + + clocks: + maxItems: 2 + + reset-names: + items: + - const: sata + - const: sata-cold + - const: sata-oob + + resets: + maxItems: 3 + + phy-names: + items: + - const: sata-0 + + phys: + maxItems: 1 + + hvdd-supply: + description: SATA HVDD regulator supply. + + vddio-supply: + description: SATA VDDIO regulator supply. + + avdd-supply: + description: SATA AVDD regulator supply. + + target-5v-supply: + description: SATA 5V power regulator supply. + + target-12v-supply: + description: SATA 12V power regulator supply. + +required: + - compatible + - reg + - interrupts + - clock-names + - clocks + - reset-names + - resets + +allOf: + - if: + properties: + compatible: + contains: + enum: + - nvidia,tegra124-ahci + - nvidia,tegra132-ahci + then: + properties: + reg: + maxItems: 2 + reset-names: + minItems: 3 + resets: + minItems: 3 + required: + - phys + - phy-names + - hvdd-supply + - vddio-supply + - avdd-supply + + - if: + properties: + compatible: + contains: + enum: + - nvidia,tegra210-ahci + then: + properties: + reg: + minItems: 3 + reset-names: + minItems: 3 + resets: + minItems: 3 + +additionalProperties: true + +examples: + - | + #include + #include + #include + + sata@70020000 { + compatible = "nvidia,tegra210-ahci"; + reg = <0x70027000 0x00002000>, /* AHCI */ + <0x70020000 0x00007000>, /* SATA */ + <0x70001100 0x00010000>; /* SATA AUX */ + interrupts = ; + clocks = <&tegra_car TEGRA210_CLK_SATA>, + <&tegra_car TEGRA210_CLK_SATA_OOB>; + clock-names = "sata", "sata-oob"; + resets = <&tegra_car 124>, + <&tegra_car 129>, + <&tegra_car 123>; + reset-names = "sata", "sata-cold", "sata-oob"; + }; diff --git a/Documentation/devicetree/bindings/ata/nvidia,tegra124-ahci.txt b/Documentation/devicetree/bindings/ata/nvidia,tegra124-ahci.txt deleted file mode 100644 index 12ab2f7..0000000 --- a/Documentation/devicetree/bindings/ata/nvidia,tegra124-ahci.txt +++ /dev/null @@ -1,44 +0,0 @@ -Tegra SoC SATA AHCI controller - -Required properties : -- compatible : Must be one of: - - Tegra124 : "nvidia,tegra124-ahci" - - Tegra132 : "nvidia,tegra132-ahci", "nvidia,tegra124-ahci" - - Tegra210 : "nvidia,tegra210-ahci" -- reg : Should contain 2 entries: - - AHCI register set (SATA BAR5) - - SATA register set -- interrupts : Defines the interrupt used by SATA -- clocks : Must contain an entry for each entry in clock-names. - See ../clocks/clock-bindings.txt for details. -- clock-names : Must include the following entries: - - sata - - sata-oob -- resets : Must contain an entry for each entry in reset-names. - See ../reset/reset.txt for details. -- reset-names : Must include the following entries: - - sata - - sata-oob - - sata-cold -- phys : Must contain an entry for each entry in phy-names. - See ../phy/phy-bindings.txt for details. -- phy-names : Must include the following entries: - - For Tegra124 and Tegra132: - - sata-phy : XUSB PADCTL SATA PHY -- For Tegra124 and Tegra132: - - hvdd-supply : Defines the SATA HVDD regulator - - vddio-supply : Defines the SATA VDDIO regulator - - avdd-supply : Defines the SATA AVDD regulator - - target-5v-supply : Defines the SATA 5V power regulator - - target-12v-supply : Defines the SATA 12V power regulator - -Optional properties: -- reg : - - AUX register set -- clock-names : - - cml1 : - cml1 clock should be defined here if the PHY driver - doesn't manage them. If it does, they should not be. -- phy-names : - - For T210: - - sata-phy -- 2.7.4