Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1550967pxb; Fri, 20 Nov 2020 12:21:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJxdita9YNGU5MdgrHM2/r9HWWLC3ytFZKyTU7KKXlFQfD4RUnUXJ3he1Nwz/84CbFcmjWPo X-Received: by 2002:a17:906:6414:: with SMTP id d20mr33305040ejm.82.1605903691799; Fri, 20 Nov 2020 12:21:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605903691; cv=none; d=google.com; s=arc-20160816; b=U4BE3AlHK7+olWugotOjCYLm5YrdHQ/VmMUmd9yT+fuSkxnrlqBPWAHQkFdprkdkPX JWBIqvDeNTDxAuDpQsOKOuSxz3wm7v/2LH+G2+dYSvXObHtft0aGSrRZvyH1Q7Ahiq1J 1iomNSXiE0aK/yKgB5LO9X9zYrvqTW+C7ZGhS3SAYyR3QKOw7WMS/Ri/zd7ssO6Jp/Gi U20ttWcMrGZz8UGKYj9LC9MuV8aNeE2guseSJAbmYWHPSsGMRAGMDJf9EqJ43GZ91qsy gDZyISdve50gvIqGKyZiWQMAUQ9ARRVBCv06tQAPL6CNUMJp0KepLWDpi9astVGmkwYm ZrXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ugEjlz11Dl3PNdaeO5SAymDRKrgK+JRxgU4n9wVh/qM=; b=thpmGqJwjrNRudS6Z52M18kzwqxlbsX/Nl/tM/XCTnBKqxykHMsYyF+ffVyLNabWOi gzvmvTzhBaV9vQ9id5b2YjAKpcTXB/AuKXeXrVNYdBxw9HJ3UkalfGBWOZCLWnNYUaVw 4O/3vWJ3kE6+SWYwZcEF0ZU4qvHHlT8KzUoiP/dib5pmLHA8Qo3Gx6tQSQXbdmcKuVbQ JjPHJURr4/KBwE1ElK7FI7nTDs3tACvOB8dRtkYfSxPwfKgjj8jEND7GbCnZXkyAdoDF +w9dnFjdyXxdA7+lFZgqN+lUO4RH0xhVRLNwN1z5Opvlhn+Te3o75crRN2wVoOErCwU1 6SlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=o5BLtccF; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z5si2286733ejj.742.2020.11.20.12.21.08; Fri, 20 Nov 2020 12:21:31 -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=@kernel.org header.s=default header.b=o5BLtccF; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730440AbgKTURs (ORCPT + 99 others); Fri, 20 Nov 2020 15:17:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:52682 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728863AbgKTURs (ORCPT ); Fri, 20 Nov 2020 15:17:48 -0500 Received: from mail-ot1-f44.google.com (mail-ot1-f44.google.com [209.85.210.44]) (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 5C9DC22470; Fri, 20 Nov 2020 20:17:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605903467; bh=uWTGUzgFAc+UqdPUOqq1dMU2NKZmh/ALeOWAOSfEWxo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=o5BLtccF0lkEAzS1H/+TaidpLCrlIhMB4mk3NIRkCobB7ZXX1/e1r8kbnCDO6dxF2 xUNsPhZmoTGMm3tIq28WywQIt8LarTUTfDzYrmw6KNZf8/f5tAShYmTEDqzqukCSRE qOpC9/imkVc83nUeoRRWwMqi4lRO1Zy6DOh0tLws= Received: by mail-ot1-f44.google.com with SMTP id l36so9925979ota.4; Fri, 20 Nov 2020 12:17:47 -0800 (PST) X-Gm-Message-State: AOAM531hM9mBjvTKboX93Ed3BWdyXSptmlI+ShHVe+ajmVAt1Db+gewC rtjuSTu7R4LqxNOoKCic1Y7d+MkltcJDTU8KoA== X-Received: by 2002:a05:6830:2259:: with SMTP id t25mr15315926otd.192.1605903466581; Fri, 20 Nov 2020 12:17:46 -0800 (PST) MIME-Version: 1.0 References: <1605296218-2510-1-git-send-email-skomatineni@nvidia.com> <1605296218-2510-4-git-send-email-skomatineni@nvidia.com> In-Reply-To: <1605296218-2510-4-git-send-email-skomatineni@nvidia.com> From: Rob Herring Date: Fri, 20 Nov 2020 14:17:35 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 3/6] dt-bindings: ata: tegra: Convert binding documentation to YAML To: Sowjanya Komatineni Cc: Thierry Reding , Jon Hunter , devicetree@vger.kernel.org, "open list:LIBATA SUBSYSTEM (Serial and Parallel ATA drivers)" , linux-tegra , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 13, 2020 at 1:36 PM Sowjanya Komatineni wrote: > > 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 | 137 +++++++++++++++++++++ > .../bindings/ata/nvidia,tegra124-ahci.txt | 44 ------- > 2 files changed, 137 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..dbbe460 > --- /dev/null > +++ b/Documentation/devicetree/bindings/ata/nvidia,tegra-ahci.yaml > @@ -0,0 +1,137 @@ > +# 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 > + > + sata@70020000 { > + compatible = "nvidia,tegra210-ahci"; > + reg = <0x0 0x70027000 0x0 0x00002000>, /* AHCI */ > + <0x0 0x70020000 0x0 0x00007000>, /* SATA */ > + <0x0 0x70001100 0x0 0x00010000>; /* SATA AUX */ The default sizes are 1 cell for address and size, so this will give you warnings. You either need to adjust the entries here or add a parent node setting the sizes to 2 cells. > + interrupts = ; The error is because you need the include files for these defines. > + 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"; > + };