Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3080041pxb; Thu, 10 Feb 2022 11:46:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJwt1lm6w32AVENstjtoVB3/xs61Pidhby2ze9nMV2myl0j/TnvLepMoqLY3uEeGzDikPhf9 X-Received: by 2002:a17:90b:1d0e:: with SMTP id on14mr4382622pjb.59.1644522399022; Thu, 10 Feb 2022 11:46:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644522399; cv=none; d=google.com; s=arc-20160816; b=FfJnIvdNjxZIkvLnDsEiol2NtMKFwf4kRCn3uJoo/76EuQhvJmN6N7NExvqVEAwj9X wWgrhHCyZqZn/Gk6jLQdw5jl2ilj0qcjioLbFsG+iyAO+gx9POqRZNWxYGvoXuhc8+N1 cbT0lAZrzTHrFatKcDiJ4y6k4WJh9mNyyg7/0W98+4YLVOtdrm73sMNSqbTr2ddFuWQn 8qpHX+vMheHgYrmGA28FvUWtv7QINsiXakNvgLxXEGFwsAx1Yz2MfqcV6BPYo96xctK3 I5mf6uTd3emP347nJDKulIIggMhx1B1vkhfUQblVNUzRxDtnIhbWkTKfQRHpHyzvnzUo ddtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=QVjWVo4q1GQDHRafCv7HdVFRi4TY/Fg/yK2d0li5IAU=; b=sulEFyfJfTk22JmX3qxdatTCHTYMNo21xucBFGPIlFkxXWtEUqS31Yk1lkHncfxJQV i5SVxs0+xQVPOjjtjB/WFuhr3xyRbjX3snqo3qdTBGWf9S88yO3Kb2fZAZoqFwYH6aYv yyq6aHqXEB0xgY6UIzVK6xSP2v22SsL3T+FtK6qGyU3J+ChNtp3keVKnV4yiDHHAW83L KZ8kkjOuB9rHcDig5fLlK0bsnksWz17FUn2YdREvS56rmqd4YeWhhQQViJR0owU5RdPG KH+910rscN5rsrSjlSJGl3SFSuF1YS6jbzSZ72nw6txPgE/ActVX59dwDgfiPMDU3vGn BftQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=GYgqB5eq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mh9si2449718pjb.38.2022.02.10.11.46.27; Thu, 10 Feb 2022 11:46:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=GYgqB5eq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239216AbiBJJ6n (ORCPT + 99 others); Thu, 10 Feb 2022 04:58:43 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:44822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239217AbiBJJ6l (ORCPT ); Thu, 10 Feb 2022 04:58:41 -0500 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E8CDBAB for ; Thu, 10 Feb 2022 01:58:42 -0800 (PST) Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 07DA440048 for ; Thu, 10 Feb 2022 09:58:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1644487121; bh=QVjWVo4q1GQDHRafCv7HdVFRi4TY/Fg/yK2d0li5IAU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=GYgqB5eqplpYz09bTDignBNkOw7AJwTrjEYgRcFjS6VXnBiiD/oxN9UPF66nwCJM0 jzqnDgFZorjOvxT4rT8KIfqGoJkYOIFVkuszizZRyu+h2ieJah+NmxAmSoibRRC5u+ 1OcZsrfxbX18WsHnsMCsriiQX8BhRyVN+AcxKhXbEdPNgl/FQt2vCatCQnhl24Uw3P t0AvomxliOel4J1Bnus0WALCoSDIJZZXkanLCPnKXQmUeF7ME2mrTfGC2cmTm+KGl3 i7P3V+xsNa2eQNTc1YyDb8wttHlOjDkhjSGedk8fGML323j5ESHyW5lw3QFOZ9yw7L 7HoAGiHcoRiog== Received: by mail-ed1-f72.google.com with SMTP id ee7-20020a056402290700b0040f680071c9so3026923edb.9 for ; Thu, 10 Feb 2022 01:58:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=QVjWVo4q1GQDHRafCv7HdVFRi4TY/Fg/yK2d0li5IAU=; b=rZLP7PHmu5WpJ4OSy8fxia2vPrbIOtgo2Lf/MfPAs8sAoT7ceWpLb7cICRMJPtIfQ/ tqAt7Jks3wVFhRRQUWh/cLqU65QFab+add5pdOb4BxojUkHnqY+KrYgTQhU5O8dLFOJW wD9QfpR3sdCdoEy2TsC2fUrHzeu/IiLdv9E+S6AJnwPypyOWLJNOWCwGdUJ5Zy5oqIaE 405VLgNgCFAzf688LQO/7kIC5AlYqGvJEb8dp5i43XisrYHg0sa+gHwQykVD20gts89Q riQ7r0YQ59CQMmgcPDI81y/MKCAAV1Aonw7Plvaal/csfckgquEmZAxg2ponAXkFHZYR 1GZw== X-Gm-Message-State: AOAM530r2GQb8XMuawtr+Yc45FnmXGcd7dIbRbiFWjW6Krq2LOdiSNKm 6MBSwVf8SdvJ27JdYpCVDVaZ9SP5J5NQAmLxzWIU5YsEaZwbJcCf5rJmi3sEVxOFnzV2IycLRpY trG6uBPqCypdRlRfRurAbeiwDIhvQRwQeMRW3/QY6zQ== X-Received: by 2002:a17:906:4f16:: with SMTP id t22mr5663888eju.413.1644487120646; Thu, 10 Feb 2022 01:58:40 -0800 (PST) X-Received: by 2002:a17:906:4f16:: with SMTP id t22mr5663869eju.413.1644487120426; Thu, 10 Feb 2022 01:58:40 -0800 (PST) Received: from [192.168.0.97] (xdsl-188-155-168-84.adslplus.ch. [188.155.168.84]) by smtp.gmail.com with ESMTPSA id h1sm4357445eja.201.2022.02.10.01.58.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Feb 2022 01:58:39 -0800 (PST) Message-ID: <50d3bef2-82af-325e-72e9-15af5794ce12@canonical.com> Date: Thu, 10 Feb 2022 10:58:39 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v3] dt-bindings: convert ata/cortina,gemini-sata-bridge to yaml Content-Language: en-US To: Corentin Labbe , damien.lemoal@opensource.wdc.com, robh+dt@kernel.org Cc: devicetree@vger.kernel.org, linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, Linus Walleij References: <20220210094414.2815616-1-clabbe@baylibre.com> From: Krzysztof Kozlowski In-Reply-To: <20220210094414.2815616-1-clabbe@baylibre.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/02/2022 10:44, Corentin Labbe wrote: > This patch converts ata/cortina,gemini-sata-bridge binding to yaml > > Reviewed-by: Linus Walleij > Acked-by: Damien Le Moal > Signed-off-by: Corentin Labbe > --- > Change since v1: > - fixed cosmetic nits reported by Damien Le Moal > Changes since v2: > - Added blank lines between properties > - Removed useless quotes and label > - Re-indented description > > .../ata/cortina,gemini-sata-bridge.txt | 55 --------- > .../ata/cortina,gemini-sata-bridge.yaml | 107 ++++++++++++++++++ > 2 files changed, 107 insertions(+), 55 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/ata/cortina,gemini-sata-bridge.txt > create mode 100644 Documentation/devicetree/bindings/ata/cortina,gemini-sata-bridge.yaml > > diff --git a/Documentation/devicetree/bindings/ata/cortina,gemini-sata-bridge.txt b/Documentation/devicetree/bindings/ata/cortina,gemini-sata-bridge.txt > deleted file mode 100644 > index 1c3d3cc70051..000000000000 > --- a/Documentation/devicetree/bindings/ata/cortina,gemini-sata-bridge.txt > +++ /dev/null > @@ -1,55 +0,0 @@ > -* Cortina Systems Gemini SATA Bridge > - > -The Gemini SATA bridge in a SoC-internal PATA to SATA bridge that > -takes two Faraday Technology FTIDE010 PATA controllers and bridges > -them in different configurations to two SATA ports. > - > -Required properties: > -- compatible: should be > - "cortina,gemini-sata-bridge" > -- reg: registers and size for the block > -- resets: phandles to the reset lines for both SATA bridges > -- reset-names: must be "sata0", "sata1" > -- clocks: phandles to the compulsory peripheral clocks > -- clock-names: must be "SATA0_PCLK", "SATA1_PCLK" > -- syscon: a phandle to the global Gemini system controller > -- cortina,gemini-ata-muxmode: tell the desired multiplexing mode for > - the ATA controller and SATA bridges. Values 0..3: > - Mode 0: ata0 master <-> sata0 > - ata1 master <-> sata1 > - ata0 slave interface brought out on IDE pads > - Mode 1: ata0 master <-> sata0 > - ata1 master <-> sata1 > - ata1 slave interface brought out on IDE pads > - Mode 2: ata1 master <-> sata1 > - ata1 slave <-> sata0 > - ata0 master and slave interfaces brought out > - on IDE pads > - Mode 3: ata0 master <-> sata0 > - ata0 slave <-> sata1 > - ata1 master and slave interfaces brought out > - on IDE pads > - > -Optional boolean properties: > -- cortina,gemini-enable-ide-pins: enables the PATA to IDE connection. > - The muxmode setting decides whether ATA0 or ATA1 is brought out, > - and whether master, slave or both interfaces get brought out. > -- cortina,gemini-enable-sata-bridge: enables the PATA to SATA bridge > - inside the Gemnini SoC. The Muxmode decides what PATA blocks will > - be muxed out and how. > - > -Example: > - > -sata: sata@46000000 { > - compatible = "cortina,gemini-sata-bridge"; > - reg = <0x46000000 0x100>; > - resets = <&rcon 26>, <&rcon 27>; > - reset-names = "sata0", "sata1"; > - clocks = <&gcc GEMINI_CLK_GATE_SATA0>, > - <&gcc GEMINI_CLK_GATE_SATA1>; > - clock-names = "SATA0_PCLK", "SATA1_PCLK"; > - syscon = <&syscon>; > - cortina,gemini-ata-muxmode = <3>; > - cortina,gemini-enable-ide-pins; > - cortina,gemini-enable-sata-bridge; > -}; > diff --git a/Documentation/devicetree/bindings/ata/cortina,gemini-sata-bridge.yaml b/Documentation/devicetree/bindings/ata/cortina,gemini-sata-bridge.yaml > new file mode 100644 > index 000000000000..f0fad63bb1af > --- /dev/null > +++ b/Documentation/devicetree/bindings/ata/cortina,gemini-sata-bridge.yaml > @@ -0,0 +1,107 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/ata/cortina,gemini-sata-bridge.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Cortina Systems Gemini SATA Bridge > + > +maintainers: > + - Linus Walleij > + > +description: | > + The Gemini SATA bridge in a SoC-internal PATA to SATA bridge that > + takes two Faraday Technology FTIDE010 PATA controllers and bridges > + them in different configurations to two SATA ports. > + > +properties: > + compatible: > + const: cortina,gemini-sata-bridge > + > + reg: > + minItems: 1 maxItems? Why min? > + > + resets: > + minItems: 2 > + description: phandles to the reset lines for both SATA bridges min+maxItems > + > + reset-names: > + items: > + - const: sata0 > + - const: sata1 > + > + clocks: > + minItems: 2 > + description: phandles to the compulsory peripheral clocks min+maxItems > + > + clock-names: > + items: > + - const: SATA0_PCLK > + - const: SATA1_PCLK > + > + syscon: > + minItems: 1 maxItems Best regards, Krzysztof