Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp3589115pxb; Mon, 21 Feb 2022 01:09:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJzq1ryTESeltHq4d/Z/NPPUV9Ww7+hmYgwZTqXbDIw9g3w7UH/1ueuFeClkrDCI73ZLqBcV X-Received: by 2002:a17:907:213b:b0:6cf:9c02:8964 with SMTP id qo27-20020a170907213b00b006cf9c028964mr14746438ejb.432.1645434587528; Mon, 21 Feb 2022 01:09:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645434587; cv=none; d=google.com; s=arc-20160816; b=H73cPhXnArCLL+1+uc0ZiKFyhr/ctqDMEv2IeYcqjl3zSGIsMHs/oKeULdVUWSHq8u +Vc/ACwN0Kz664JvWJvGvpgzYmx7whwkZ3C6EtLbUwmfv9dj9HDZNLlKjwj6jhvbaNWE XFIVgYyVyEk5GkoO6nOvzcFJIpW+fNmfScM6Q6os37EwKJD5vmk4l7VEnD5dFCTy6Qs6 sDTOtnJmj3dL2TZhiWkCIdQRpXl5E83go/8RQwK209H7s/Cz1e5sxs48kgNbW7xlpI4P tDPxn0ptd4DHyo+JWypJwbKQ92JxQLrippAV3Rs9tsAPCB+TsVgDltN1SGnPWpXQMZHq mW6Q== 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:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=WBnOQoWPjOARSkiKCXtTlNVMckDodu4ejT0rDiafNjA=; b=RexohFO0Qmnrcdqj08q7pT8eoO2tbdtsaT7T3dPiO8oKprLyugBofYEHoqOFwKTeff iwfdaZRRm62PXDq3apEFhEjBtcaRK4dvhb8xQTLZPtEqMmUm53EufDzH552RsZhHAVAX CvaUdoYqkVvOxm1STMTdbn4rX/ZH6MJZ0GWi8pVIHpy+qd8zJ3qipou54Hf6Fm/Rr4Gy gtF4qiFZnfMSu+KMw6sYCtN3ye6Qiu0YpRnxQi/M2yHsYaazGocqmXYgI5GfryCTVIE8 Ez7nf0QjnfdOcwxYQNwDa2nzR/pj2ulE/Rr4KyP61d7mTP56ff7JRTpwAR/Nd329Afy/ QVug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b="Ni5srko/"; 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 y12si11118428edm.454.2022.02.21.01.09.25; Mon, 21 Feb 2022 01:09:47 -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="Ni5srko/"; 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 S237025AbiBTRHL (ORCPT + 99 others); Sun, 20 Feb 2022 12:07:11 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:51140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244287AbiBTRHI (ORCPT ); Sun, 20 Feb 2022 12:07:08 -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 B3B6338781 for ; Sun, 20 Feb 2022 09:06:44 -0800 (PST) Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.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 82422402FD for ; Sun, 20 Feb 2022 17:06:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1645376803; bh=WBnOQoWPjOARSkiKCXtTlNVMckDodu4ejT0rDiafNjA=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=Ni5srko/AZ2mtmUIYas70FeEUGC0SSP+jNegpXG4/aj+lJsPe5baYorJkDQxxDGab pf2AI7atdsaGg1CXV672O2b5rfxI2OrD2kUU12u7tvtScvSXnuGxEbUP+JxRVLnr4M zfj+A/H6RQraaJSL2yEppnA8M3533+K9QgoBCjejAkDynheMiJOAFDR+za5hBzSuFy TMVTv3Bf/Ftz+7VwLXoeknLYf8kDDRQudaR2CN7cNa9W4IevaRaxFvgGpf8U++3Cr8 qNGD37H3i/mrcsBGVhQNQ8aELDUrGWJwYMMdTCUu8o2S9p1N5VpMVbVikcuCn0MjJE y9Gkm5pOoIwHQ== Received: by mail-wr1-f72.google.com with SMTP id q21-20020adfab15000000b001e57c9a342aso6126377wrc.6 for ; Sun, 20 Feb 2022 09:06:43 -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:references:from:in-reply-to :content-transfer-encoding; bh=WBnOQoWPjOARSkiKCXtTlNVMckDodu4ejT0rDiafNjA=; b=ATxmZvrk6WDh6Dg3hwWuOmSSLq4cZ1G+V77anFHJpnezRCUcLLBkik3poknRZZv5qe R3EhVMOzw74B+hUfYCCVFj9wS7yGLYq0iOcDVW6dCysY0O/TsT8kxEZmx7k5vrnyzlX6 ZYOTDs0XhI1T5TgUOePmkRLNb3w3triQhSn0kBrjLUlnSlxpedipcslCUv3Bzfap7f5S TlcrplU/d2VrTLVcEeyN1l/jCAQVZnCNxqr23xlZDJkmd27IiqZIEmdJxCKrK/4cNf3G 0fmJ6mjOHuyhdus0nHT3qs4GfPxrbT8+Jyp/ZuPTC8UJNOmzw/+V4SWoBz7wG9Lv0Cqc Ok8Q== X-Gm-Message-State: AOAM532Q+9mtGEimuj13Y7eKML5f/1hPxvRu+t/WjW101Uo35LRv1/j0 0yI5ZtPS/5WygDNYZGvkfUmy7w2y/lw7FYUvOjTzy/xu4gMpmdzzSqoSCP0aziqghLFqr8PjmxL ixgE70A1v7pnP+lvk+rFLlns2ZJgR40JCvXBP9eGrKw== X-Received: by 2002:a5d:6701:0:b0:1e3:3ba6:d2e8 with SMTP id o1-20020a5d6701000000b001e33ba6d2e8mr12749098wru.221.1645376802812; Sun, 20 Feb 2022 09:06:42 -0800 (PST) X-Received: by 2002:a5d:6701:0:b0:1e3:3ba6:d2e8 with SMTP id o1-20020a5d6701000000b001e33ba6d2e8mr12749069wru.221.1645376802468; Sun, 20 Feb 2022 09:06:42 -0800 (PST) Received: from [192.168.0.118] (xdsl-188-155-181-108.adslplus.ch. [188.155.181.108]) by smtp.gmail.com with ESMTPSA id ba14sm25464009wrb.56.2022.02.20.09.06.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 20 Feb 2022 09:06:41 -0800 (PST) Message-ID: Date: Sun, 20 Feb 2022 18:06:40 +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: [RFC PATCH 3/8] dt-bindings: ufs: cdns,ufshc: convert to dtschema Content-Language: en-US To: Alim Akhtar , Avri Altman , Rob Herring , Wei Xu , Andy Gross , Bjorn Andersson , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , "James E.J. Bottomley" , "Martin K. Petersen" , Chanho Park , Srinivas Kandagatla , Jan Kotas , linux-scsi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-arm-msm@vger.kernel.org References: <20220219184224.44339-1-krzysztof.kozlowski@canonical.com> <20220219184224.44339-4-krzysztof.kozlowski@canonical.com> From: Krzysztof Kozlowski In-Reply-To: <20220219184224.44339-4-krzysztof.kozlowski@canonical.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=ham 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 19/02/2022 19:42, Krzysztof Kozlowski wrote: > Convert the Cadence Universal Flash Storage (UFS) Controlle to DT schema > format. > > Signed-off-by: Krzysztof Kozlowski > --- > .../devicetree/bindings/ufs/cdns,ufshc.txt | 32 ----------- > .../devicetree/bindings/ufs/cdns,ufshc.yaml | 56 +++++++++++++++++++ > 2 files changed, 56 insertions(+), 32 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/ufs/cdns,ufshc.txt > create mode 100644 Documentation/devicetree/bindings/ufs/cdns,ufshc.yaml > > diff --git a/Documentation/devicetree/bindings/ufs/cdns,ufshc.txt b/Documentation/devicetree/bindings/ufs/cdns,ufshc.txt > deleted file mode 100644 > index 02347b017abd..000000000000 > --- a/Documentation/devicetree/bindings/ufs/cdns,ufshc.txt > +++ /dev/null > @@ -1,32 +0,0 @@ > -* Cadence Universal Flash Storage (UFS) Controller > - > -UFS nodes are defined to describe on-chip UFS host controllers. > -Each UFS controller instance should have its own node. > -Please see the ufshcd-pltfrm.txt for a list of all available properties. > - > -Required properties: > -- compatible : Compatible list, contains one of the following controllers: > - "cdns,ufshc" - Generic CDNS HCI, > - "cdns,ufshc-m31-16nm" - CDNS UFS HC + M31 16nm PHY > - complemented with the JEDEC version: > - "jedec,ufs-2.0" > - > -- reg : Address and length of the UFS register set. > -- interrupts : One interrupt mapping. > -- freq-table-hz : Clock frequency table. > - See the ufshcd-pltfrm.txt for details. > -- clocks : List of phandle and clock specifier pairs. > -- clock-names : List of clock input name strings sorted in the same > - order as the clocks property. "core_clk" is mandatory. > - Depending on a type of a PHY, > - the "phy_clk" clock can also be added, if needed. > - > -Example: > - ufs@fd030000 { > - compatible = "cdns,ufshc", "jedec,ufs-2.0"; > - reg = <0xfd030000 0x10000>; > - interrupts = <0 1 IRQ_TYPE_LEVEL_HIGH>; > - freq-table-hz = <0 0>, <0 0>; > - clocks = <&ufs_core_clk>, <&ufs_phy_clk>; > - clock-names = "core_clk", "phy_clk"; > - }; > diff --git a/Documentation/devicetree/bindings/ufs/cdns,ufshc.yaml b/Documentation/devicetree/bindings/ufs/cdns,ufshc.yaml > new file mode 100644 > index 000000000000..68ae5663cd25 > --- /dev/null > +++ b/Documentation/devicetree/bindings/ufs/cdns,ufshc.yaml > @@ -0,0 +1,56 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/ufs/cdns,ufshc.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Cadence Universal Flash Storage (UFS) Controller > + > +maintainers: > + - Jan Kotas > + This will require a "select:" to avoid clash with qcom (and maybe other) schemas. Best regards, Krzysztof