Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp2584314rwe; Sun, 16 Apr 2023 00:43:10 -0700 (PDT) X-Google-Smtp-Source: AKy350Zfrb2lcomz/XXJ2Crp3uGTcOUNR3aThcj4YgN/67Ra+JVM5f17Y4Rg7ClE1J7BxJeQwbr5 X-Received: by 2002:a17:902:eb89:b0:19c:d309:4612 with SMTP id q9-20020a170902eb8900b0019cd3094612mr8185528plg.6.1681630989984; Sun, 16 Apr 2023 00:43:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681630989; cv=none; d=google.com; s=arc-20160816; b=TpspV7Ht6ovhU0jeMkCqgA9jiZ7WeXv3dvO4sdl/8o73Kh3oqHHijiwSaSJjD6w8Jw zPQSGPXj9zvJiRX0WjQRpzOWkxuXbJdpGXQ0kaD2D2yrwnxHvAsAZOtHdNqHZlXEu6MK oCkHGm1qYdelhFkn25HdNl0RyGx/+ymrmHd8CTVE0hG18zxF1l2dUvA82WSljHfaxSJ5 9RG5lCz7IQcVg8fCHzUwuqy0BtAtgCNxXThsTHPSdCEb83rhcPj4XKNxedjvHwICbt5O K6/q8sVx0RjSksVGKEcpA+vMaGOOIyQ9B1y5NlzpdJxsM7v4P3AF/SSz8BlJLDXlJCwN CYGg== 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=NIDABhyNbelgMCvJQQFAEuAhFdwIuaaK3cUB1/BFVsY=; b=oYM06IE//2guAemnoQdkjsAkVoq21jgMecHmdPXa7llAYdBkGKc9e8yLtvc9iQbXHZ bS+jfRFM5pUnDpJhJFgx8WxhCALGi1gY+5myhvQUb3fRL5BLFLZZtZANLNkWnaNTbaYd 86huypcJhoTu2BvyGOkBlf0SCAiJZobPvviNMKAeJQKrXeZmHhp/iSKFFNU01mbkHpQu u/UJvxWEOH9z8TjmIzpleAMuIysYcQFy1wTL2gNIclRi26csSXc57zP6kV587EGuUKcv RRToW3Y2yuqURxZy40ysPkfTIWRG+ZzHoWRfsHgYSLtBg6o7kIdhVjBVMATrh7lFZ9ys Ef4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OoLWftTr; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o10-20020a1709026b0a00b001a203d56d9csi8599422plk.83.2023.04.16.00.42.56; Sun, 16 Apr 2023 00:43:09 -0700 (PDT) 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=@linaro.org header.s=google header.b=OoLWftTr; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230298AbjDPH0J (ORCPT + 99 others); Sun, 16 Apr 2023 03:26:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230232AbjDPH0I (ORCPT ); Sun, 16 Apr 2023 03:26:08 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A868A10F3 for ; Sun, 16 Apr 2023 00:26:04 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id jg21so55964903ejc.2 for ; Sun, 16 Apr 2023 00:26:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681629963; x=1684221963; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=NIDABhyNbelgMCvJQQFAEuAhFdwIuaaK3cUB1/BFVsY=; b=OoLWftTrTEjmdMK4+RBWo01LVPwtpyj/XI8Wt6DCvbB486AxxOS9UeduZxxT/5rYaH rah08CUYw/eaE0FfPbNLz6S9cl/h+lOeyF7If32KIihBzZThBRJazguN2Nhk2Cq/ldXj uYMYZH3ce0dhDHeAjO7spMsxAJ4UOZI+ESUTeA0O0UPoDtEsXPe/8SgIF99un0HQq7MI Y9qMjNvCn8zkdvLx1yeqEc8k370THJS8xuF/R1nQ+vtH/Lx9cB0cfjsN0ohi2O8sir1F LYSknYBfjht66VzKcxep7JvlFC42R9BMy9aWeIAKxMRjEFQJ0/d3Dsv175eY03nyIS4A H1Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681629963; x=1684221963; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=NIDABhyNbelgMCvJQQFAEuAhFdwIuaaK3cUB1/BFVsY=; b=ew3F10lAsSGO9g7GQXdI9kNQioltE8uIew4BX0HmElTqkfllN5k1d+W1o5pIWc3VJ0 yRlgTUgtAftRyP2WRUAvb5eIVa1UlZozLQuBkKsnBApShH+gQg/9X+Y8cexEG6Sr6DW3 FwEiUr3kb7+m/+VFG8XFZ4yl6uWZPhQpzfvmejIg6sX9VUEYG+cneuzQYpnlTbN6/xBR igDxtVyxk7KPjC6/nyylXC5ACfvyvGa3Nss9+YQR13L8yky6xx2FpQoiiOuWZ4xKPyRs AR87NFwpwY8Z5wv1xAjn8iP8LIXl0N4odC2NLGeiccjYV1ra4mQXv0rpxoorjP1EqL24 ZXWw== X-Gm-Message-State: AAQBX9cbu5tu0VozitOGGSjaiR//2EPDbESGBoO6LRMbgRx1XagRIx3g 1QdV9dzM9qH9hPKqAju1lFOZow== X-Received: by 2002:a17:906:708:b0:94e:fd61:8482 with SMTP id y8-20020a170906070800b0094efd618482mr3772799ejb.35.1681629963016; Sun, 16 Apr 2023 00:26:03 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:29dd:ded4:3ccc:83db? ([2a02:810d:15c0:828:29dd:ded4:3ccc:83db]) by smtp.gmail.com with ESMTPSA id gy23-20020a170906f25700b0094f31208918sm1309523ejb.108.2023.04.16.00.26.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 16 Apr 2023 00:26:02 -0700 (PDT) Message-ID: <08156ff8-b627-56a8-e079-eb336c193808@linaro.org> Date: Sun, 16 Apr 2023 09:26:01 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH RFC 3/3] binding: mmc: hi3798cv200-dw-mshc: convert to YAML and rename to histb-dw-mshc, add compatible of hi3798mv200 Content-Language: en-US To: forbidden405@outlook.com, Ulf Hansson , Jaehoon Chung , Rob Herring , Krzysztof Kozlowski Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <20230415-mmc-hi3798mv200-v1-0-db5b91d939d4@outlook.com> <20230415-mmc-hi3798mv200-v1-3-db5b91d939d4@outlook.com> From: Krzysztof Kozlowski In-Reply-To: <20230415-mmc-hi3798mv200-v1-3-db5b91d939d4@outlook.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 15/04/2023 16:18, Yang Xiwen via B4 Relay wrote: > From: Yang Xiwen > > Hi3798MV200 has an extra clock, also document it here. Use subject prefixes matching the subsystem (which you can get for example with `git log --oneline -- DIRECTORY_OR_FILE` on the directory your patch is touching). Subject: it is way too long. It should be just conversion. Don't introduce new compatibles. > > Signed-off-by: Yang Xiwen > --- > .../bindings/mmc/hi3798cv200-dw-mshc.txt | 40 ---------- > .../devicetree/bindings/mmc/histb-dw-mshc.yaml | 90 ++++++++++++++++++++++ > 2 files changed, 90 insertions(+), 40 deletions(-) > > diff --git a/Documentation/devicetree/bindings/mmc/hi3798cv200-dw-mshc.txt b/Documentation/devicetree/bindings/mmc/hi3798cv200-dw-mshc.txt > deleted file mode 100644 > index a0693b7145f2a..0000000000000 > --- a/Documentation/devicetree/bindings/mmc/hi3798cv200-dw-mshc.txt > +++ /dev/null > @@ -1,40 +0,0 @@ > -* Hisilicon Hi3798CV200 specific extensions to the Synopsys Designware Mobile > - Storage Host Controller > - > -Read synopsys-dw-mshc.txt for more details > - > -The Synopsys designware mobile storage host controller is used to interface > -a SoC with storage medium such as eMMC or SD/MMC cards. This file documents > -differences between the core Synopsys dw mshc controller properties described > -by synopsys-dw-mshc.txt and the properties used by the Hisilicon Hi3798CV200 > -specific extensions to the Synopsys Designware Mobile Storage Host Controller. > - > -Required Properties: > -- compatible: Should contain "hisilicon,hi3798cv200-dw-mshc". > -- clocks: A list of phandle + clock-specifier pairs for the clocks listed > - in clock-names. > -- clock-names: Should contain the following: > - "ciu" - The ciu clock described in synopsys-dw-mshc.txt. > - "biu" - The biu clock described in synopsys-dw-mshc.txt. > - "ciu-sample" - Hi3798CV200 extended phase clock for ciu sampling. > - "ciu-drive" - Hi3798CV200 extended phase clock for ciu driving. > - > -Example: > - > - emmc: mmc@9830000 { > - compatible = "hisilicon,hi3798cv200-dw-mshc"; > - reg = <0x9830000 0x10000>; > - interrupts = ; > - clocks = <&crg HISTB_MMC_CIU_CLK>, > - <&crg HISTB_MMC_BIU_CLK>, > - <&crg HISTB_MMC_SAMPLE_CLK>, > - <&crg HISTB_MMC_DRV_CLK>; > - clock-names = "ciu", "biu", "ciu-sample", "ciu-drive"; > - fifo-depth = <256>; > - clock-frequency = <200000000>; > - cap-mmc-highspeed; > - mmc-ddr-1_8v; > - mmc-hs200-1_8v; > - non-removable; > - bus-width = <8>; > - }; > diff --git a/Documentation/devicetree/bindings/mmc/histb-dw-mshc.yaml b/Documentation/devicetree/bindings/mmc/histb-dw-mshc.yaml > new file mode 100644 > index 0000000000000..05a435185e9da > --- /dev/null > +++ b/Documentation/devicetree/bindings/mmc/histb-dw-mshc.yaml > @@ -0,0 +1,90 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/mmc/histb-dw-mshc.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: > + Hisilicon Hi3798CV200 specific extensions to the Synopsys Designware Mobile > + Storage Host Controller > + > +maintainers: > + - Yang Xiwen > + > +description: > + The Synopsys designware mobile storage host controller is used to interface > + a SoC with storage medium such as eMMC or SD/MMC cards. This file documents > + differences between the core Synopsys dw mshc controller properties described > + by synopsys-dw-mshc.txt and the properties used by the Hisilicon Hi3798CV200 > + specific extensions to the Synopsys Designware Mobile Storage Host Controller. Drop the last sentence. > + > +allOf: > + - $ref: "synopsys-dw-mshc-common.yaml#" Drop quotes. > + - if: > + properties: > + compatible: > + contains: > + const: hisilicon,hi3798mv200-dw-mshc > + then: > + properties: > + clocks: > + minItems: 5 > + > + clock-names: > + minItems: 5 Entire allOf goes after required:. > + > +properties: > + compatible: > + enum: > + - hisilicon,hi3798cv200-dw-mshc > + - hisilicon,hi3798mv200-dw-mshc New compatibles are not related to conversion. > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + clocks: > + minItems: 4 > + maxItems: 5 > + description: A list of phandles for the clocks listed in clock-names Drop description. > + > + clock-names: > + minItems: 4 > + items: > + - const: ciu > + - const: biu > + - const: ciu-sample > + - const: ciu-drive > + - const: sap-dll-mode Only four clocks were in original document. Don't mix different changes in one patch. > + > +unevaluatedProperties: false > + > +required: > + - compatible > + - reg > + - interrupts > + - clocks > + - clock-names > + > +examples: > + - | > + emmc: mmc@9830000 { > + compatible = "hisilicon,hi3798cv200-dw-mshc"; > + reg = <0x9830000 0x10000>; Wrong indentation. Use 4 spaces for example indentation. > + interrupts = <35>; > + clocks = <&crg 1>, > + > Best regards, Krzysztof