Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp829919rdb; Thu, 19 Oct 2023 23:50:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFAAHsYjzCFspf2DFBIGWPKpQ8Uv6SuPke5U+zczQGejIbU7xNwWNXinhKAcBUmnwrSPhL8 X-Received: by 2002:a17:90b:1fce:b0:27d:e18:810d with SMTP id st14-20020a17090b1fce00b0027d0e18810dmr1053946pjb.11.1697784646982; Thu, 19 Oct 2023 23:50:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697784646; cv=none; d=google.com; s=arc-20160816; b=v88RwWU53RLAOLxnmVcTBwP7qjCrypvn4NFaSUYCizQiHumTclo9FkP5dG6MkKjIcE YszbMZGhScilwctl39E6hrliDiUw4VwYtI/PiOXcOj+wPrFH37hkpTrxZY8dAuUT/W+k ecrRRKV+4hjQW/0dR32FqcKz4OxAgCflCWZVQkrGDxzIKjLqukKHe44v/dkkQbik/1cS tQVzT7XG7QYpmvEkSxfh1Qam3LJ0sQG0vvv7EhwppoC6cZecdGl9zKuZchAxEyT4WxDm qgpC25j0May9DnGhMh7mHm0QeIq3qGbYVBkIpRlCjK/yonn7Be558+s8rLbV6cWKZEEs E4+g== 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:autocrypt :from:content-language:references:cc:to:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=azmV7W5JW8zyudwbWsHoiqbA0mwuihx4qdiSEKPNByo=; fh=9S8+2t4XP6LAJovIW+IPvFslp2LbQYvpuHgejpbY0/E=; b=NisUNn+SBqJiYZcE7k1e7PEF0VvOMIzH7hg30hHhRNZa5r0Z5AK881tZHgt7N6w12o iGk1OYhlYE00N0/xpD2KdDXZMaBmCbhy6IVUmStvc6cU3ii0Nf1MYUDMaDudqjlYIy9m 3xNyNt4+pEYK6ps8Eex6svWSYCvckh8FeHPglfDIFRQjG+atroWxdnEHAF77PiBKvTAn rzliBil8nqI/5eP/HP+cwfcZghp6KW36p8nrnaLRT9skeHntsKeXtvT8t3GhSsZAiRhC EGPUcrw7hyWQOJvkcLLuugA+ry9S1QaPyOuVEQdqIyE73713YWLO9Donum9MO75e0rgL ur9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aumhktJg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id j23-20020a17090a061700b00262e5a82047si1242002pjj.44.2023.10.19.23.50.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 23:50:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aumhktJg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id EF9B181F38BB; Thu, 19 Oct 2023 23:50:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376356AbjJTGu3 (ORCPT + 99 others); Fri, 20 Oct 2023 02:50:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376344AbjJTGu2 (ORCPT ); Fri, 20 Oct 2023 02:50:28 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08EA0B8 for ; Thu, 19 Oct 2023 23:50:26 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-53e3e7e478bso631446a12.0 for ; Thu, 19 Oct 2023 23:50:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697784624; x=1698389424; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=azmV7W5JW8zyudwbWsHoiqbA0mwuihx4qdiSEKPNByo=; b=aumhktJglf9ZdZAombpLUUM5+yWe1otrmuUKsYwnrRXAqAhgP2yW931F8eFzhVnNar 5PM8dYft1s9YdpQi409xMvUN3xiKJSZHiO9Efec0l/3+n9K1VIBvq6zNUXfxyfx7nRjD Z8950jNH56TZqVNERhd/B9ImYxnn+s/FrSgOGeVxPx+C4FsIUbH8VRKpMJf+eaZqLhVQ sluvtGBOBl/65rXCCl9S7uPZFHtWvEMzIMgknTsy8zNYgt5E+ZvfNU77IkJGNhKdpx9W MohgNrsoXbRIPk860s1i6jVhGQrts+VzHo7WwkZGZu9cjLwbQrikwLekWo79a++tQHWd PUsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697784624; x=1698389424; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=azmV7W5JW8zyudwbWsHoiqbA0mwuihx4qdiSEKPNByo=; b=jWOQ1rB0jF+ovpA0j+BiUu5HXxEGz9TsfCLa2/vNdvLAA7Kyh511HsyJusG9ayRuhn g4WXUhaewZkhvEoFLLPgGqA7Fbk7seU7XYMXm2deQEV1irnp5PwlkhMZ/73/Zna+cpBJ VF/UoNUn98xh1IhjAbNE77Goshobn/Ig8lh0p7E3z6M4yTJHlFGUrxx9CNNpbxEjT+pp IsQ7k+kLEaytOgf3Htzo2QCaDuTeGhJ4xk7AXyT0Y4VEuU+sxzl/K2+WL+pIgo/BLvZK KhjBqZRyV0S/9eqrlszskyxcOsSzoWQIlPOsfGKbA0CC6sEeSydf/m78VY7m5335TZ2I R/CQ== X-Gm-Message-State: AOJu0Yzn/T8u+ERe/20bCptlBF16gy1iDahc226uQgHGrUoIoVgnAFgu 3yoDOHsVMtkwnQBzNY/jo0nG5Q== X-Received: by 2002:aa7:d787:0:b0:53e:538e:3b70 with SMTP id s7-20020aa7d787000000b0053e538e3b70mr903035edq.29.1697784624469; Thu, 19 Oct 2023 23:50:24 -0700 (PDT) Received: from [192.168.1.20] ([178.197.218.126]) by smtp.gmail.com with ESMTPSA id 23-20020a508e17000000b0053df23511b0sm875259edw.29.2023.10.19.23.50.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Oct 2023 23:50:24 -0700 (PDT) Message-ID: Date: Fri, 20 Oct 2023 08:50:22 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH V3][4/4] dt-bindings: mmc: Add dt-bindings for realtek mmc driver To: Jyan Chou , adrian.hunter@intel.com, jh80.chung@samsung.com, ulf.hansson@linaro.org Cc: riteshh@codeaurora.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, asutoshd@codeaurora.org, p.zabel@pengutronix.de, linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@arndb.de, briannorris@chromium.org, doug@schmorgal.com, tonyhuang.sunplus@gmail.com, abel.vesa@linaro.org, william.qiu@starfivetech.com References: <20231020034921.1179-1-jyanchou@realtek.com> <20231020034921.1179-5-jyanchou@realtek.com> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3p0b2Yg S296bG93c2tpIDxrcnp5c3p0b2Yua296bG93c2tpQGxpbmFyby5vcmc+wsGUBBMBCgA+FiEE m9B+DgxR+NWWd7dUG5NDfTtBYpsFAmI+BxMCGwMFCRRfreEFCwkIBwIGFQoJCAsCBBYCAwEC HgECF4AACgkQG5NDfTtBYptgbhAAjAGunRoOTduBeC7V6GGOQMYIT5n3OuDSzG1oZyM4kyvO XeodvvYv49/ng473E8ZFhXfrre+c1olbr1A8pnz9vKVQs9JGVa6wwr/6ddH7/yvca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SpyQz7fMkcaZU+ok/ +HYjC/qfDxT7tjKXqBQEscVODaFicsUkjheOD4BfWEcVUqa+XdUEciwG/SgNyxBZepj41oVq FPSVE+Ni2tNrW/e16b8mgXNngHSnbsr6pAIXZH3qFW+4TKPMGZ2rZ6zITrMip+12jgw4mGjy 5y06JZvA02rZT2k9aa7i9dUUFggaanI09jNGbRA/ABEBAAHCwXwEGAEKACYCGwwWIQSb0H4O DFH41ZZ3t1Qbk0N9O0FimwUCYDzvagUJFF+UtgAKCRAbk0N9O0Fim9JzD/0auoGtUu4mgnna oEEpQEOjgT7l9TVuO3Qa/SeH+E0m55y5Fjpp6ZToc481za3xAcxK/BtIX5Wn1mQ6+szfrJQ6 59y2io437BeuWIRjQniSxHz1kgtFECiV30yHRgOoQlzUea7FgsnuWdstgfWi6LxstswEzxLZ Sj1EqpXYZE4uLjh6dW292sO+j4LEqPYr53hyV4I2LPmptPE9Rb9yCTAbSUlzgjiyyjuXhcwM qf3lzsm02y7Ooq+ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20231020034921.1179-5-jyanchou@realtek.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 19 Oct 2023 23:50:44 -0700 (PDT) On 20/10/2023 05:49, Jyan Chou wrote: > Document the device-tree bindings for Realtek SoCs mmc driver. > > Signed-off-by: Jyan Chou > > --- > v2 -> v3: > - Modify dt-bindings' content and description. > - Fix coding style. > - Update the list of maintainers. > > v0 -> v2: > - Add dt-bindings. > --- > --- > .../bindings/mmc/realtek-dw-mshc.yaml | 150 ++++++++++++++++++ > 1 file changed, 150 insertions(+) > create mode 100644 Documentation/devicetree/bindings/mmc/realtek-dw-mshc.yaml > > diff --git a/Documentation/devicetree/bindings/mmc/realtek-dw-mshc.yaml b/Documentation/devicetree/bindings/mmc/realtek-dw-mshc.yaml > new file mode 100644 > index 000000000000..b1e37fb37be9 > --- /dev/null > +++ b/Documentation/devicetree/bindings/mmc/realtek-dw-mshc.yaml Filename matching compatible. BTW, before you respond, be sure you have fixed your email client. In your last response everything was not properly wrapped (not matching mailing list discussion style). > @@ -0,0 +1,150 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/mmc/realtek-dw-mshc.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Realtek designware mobile storage host controller DesignWare > + > +description: > + Realtek uses the Synopsys designware mobile storage host controller DesignWare > + to interface a SoC with storage medium. This file documents the Realtek > + specific extensions. > + > +allOf: > + - $ref: synopsys-dw-mshc-common.yaml# > + > +maintainers: > + - Jyan Chou > + > +properties: > + compatible: > + enum: > + - realtek,rtd-dw-cqe-emmc Compatibles should have SoC-specific part. It does not look like you have one here. Missing blank line > + reg: > + maxItems: 2 You need to describe the items. > + > + reg-names: > + maxItems: 2 You need to describe the items. > + > + interrupts: > + maxItems: 1 > + > + cqe: > + maxItems: 1 Looks like some custom property. If it is a generic one, where is it documented? If it is custom, missing vendor prefix and description. Detailed description. > + > + clocks: > + minItems: 2 > + maxItems: 4 No. This is variable. You need fixed number of items (because why exactly the same device would have different number of clocks?) and you need to describe them. > + > + clock-names: > + minItems: 2 > + maxItems: 4 You need to describe the items. > + > + clock-freq-min-max: > + description: > + Clk frequency should be in the interval. No, drop property. > + > + resets: > + maxItems: 1 > + > + reset-names: > + const: reset And here you describe the item? The only place when it is not needed? Drop entierly. > + > + speed-step: > + maxItems: 1 Drop. > + > + pinctrl-0: > + description: > + should contain default/high speed pin ctrl. > + maxItems: 1 > + > + pinctrl-1: > + description: > + should contain sdr50 mode pin ctrl. > + maxItems: 1 > + > + pinctrl-2: > + description: > + should contain ddr50 mode pin ctrl. > + maxItems: 1 > + > + pinctrl-3: > + description: > + should contain hs200 speed pin ctrl. > + maxItems: 1 > + > + pinctrl-4: > + description: > + should contain hs400 speed pin ctrl. > + maxItems: 1 > + > + pinctrl-5: > + description: > + should contain tune0 pin ctrl. > + maxItems: 1 > + > + pinctrl-6: > + description: > + should contain tune1 pin ctrl. > + maxItems: 1 > + > + pinctrl-7: > + description: > + should contain tune2 pin ctrl. > + maxItems: 1 > + > + pinctrl-8: > + description: > + should contain tune3 pin ctrl. > + maxItems: 1 > + > + pinctrl-9: > + description: > + should contain tune4 pin ctrl. > + maxItems: 1 > + > + pinctrl-names: > + maxItems: 10 > + > +required: > + - compatible > + - reg > + - reg-names > + - interrupts > + - clocks > + - clock-names > + - pinctrl-names > + > +unevaluatedProperties: false > + > +examples: > + - | > + emmc: mmc@12000 { > + compatible = "realtek,rtd-dw-cqe-emmc"; > + reg = <0x00012000 0x00600>, > + <0x00012180 0x00060>; > + reg-names = "emmc", "cqhci"; > + interrupts = <0 42 4>; > + clocks = <&cc 22>, <&cc 26>, <&cc 121>, <&cc 122>; > + clock-names = "biu", "ciu", "vp0", "vp1"; > + clock-freq-min-max = <300000 400000000>; > + clock-frequency = <400000>; > + vmmc-supply = <®_vcc1v8>; > + resets = <&rst 20>; > + reset-names = "reset"; > + speed-step = <3>; > + cqe = <1>; > + pinctrl-names = "default", "sdr50", "ddr50", "hs200", "hs400", > + "tune0", "tune1", "tune2", "tune3", "tune4"; > + pinctrl-0 = <&emmc_pins_sdr50>; > + pinctrl-1 = <&emmc_pins_sdr50>; > + pinctrl-2 = <&emmc_pins_ddr50>; > + pinctrl-3 = <&emmc_pins_hs200>; > + pinctrl-4 = <&emmc_pins_hs400>; > + pinctrl-5 = <&emmc_pins_tune0>; > + pinctrl-6 = <&emmc_pins_tune1>; > + pinctrl-7 = <&emmc_pins_tune2>; > + pinctrl-8 = <&emmc_pins_tune3>; > + pinctrl-9 = <&emmc_pins_tune4>; > + }; Fix indentation. Best regards, Krzysztof