From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9703EC27C4F for ; Tue, 18 Jun 2024 06:20:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=fK1s9YTu8e3CYXQ6nV5OFwzxQ6OIs6BVzV3xGgJRuhQ=; b=rJvMH5w+Lp0jcI vwnjiuj9dASsXYN5za24h5dSTXMAhZqEcI9YmSixBiUSX9VmM+AStO6K+ggZJEesfqI7FmiUJniXR fywdbdJLBCMpty3ry4qCu+5+PAP0PH7Y7hxvzraSiJMsCTN+ijDGCCUZaGdAgn8ld0PlBBRe0kjfT Ts9w16msl7bYdHAsC9Lm+3uwNkHS/s63RgoutdhXB13ioBbsEK2srLPoWBaIL3PV3HL2CAST9Aax1 cwqWX3OkkcrEwnepsHUoq7J1j5twWD/ha4B0pl66rhRpGh1+GvxYOmoa+wKrbAXDvUWX7FXSOP/uT TP0oONAheg6vqv6CqrHw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJSD2-0000000DmRM-02Sl; Tue, 18 Jun 2024 06:20:48 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJSCx-0000000DmOX-1Z4E; Tue, 18 Jun 2024 06:20:44 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 27862CE140C; Tue, 18 Jun 2024 06:20:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 849A9C4AF1C; Tue, 18 Jun 2024 06:20:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718691639; bh=Pzw8C5Eyyd86/AVH89vHxaK0LKah+NcOcAwArlidsD0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=or9ZDYXVN+K7FIVk2cCi23RdUsPSz/kNApo9erBlQgwJlxT7kOJlVr1BE8LSAzUoI j8zoEVIx3W1xzQqeAxxqik56POzTmkdeV3YTgXJMxMkL3iaH4R2yXNsXST3jIpxDgy A+O5CX333/lq02MPWkzPU/8bZZ7Fvsus0K3LsxjJaVVxb74rKcUIgJ2mBj1GGhZyIt lioiqoyBhstcnaA/TSx2tboFWgyz3mwOOTCmvZo/by/5PDYmrteoouTBqlogDZAscV emLKhexuB9O+Ky9rslM3S5+pW+9KUVenkDanjL2fX3Xo8O5WNZuWFZsS1lbj+y+Y8K dyjMNWSu5NnJg== Message-ID: <79f3ae72-e733-433c-a577-e0092e3ce20e@kernel.org> Date: Tue, 18 Jun 2024 08:20:32 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4] dt-bindings: phy: rockchip-emmc-phy: Convert to dtschema To: Shresth Prasad Cc: vkoul@kernel.org, kishon@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de, sebastian.reichel@collabora.com, andy.yan@rock-chips.com, s.hauer@pengutronix.de, jbx6244@yandex.com, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, javier.carrasco.cruz@gmail.com, skhan@linuxfoundation.org References: <20240617085341.34332-2-shresthprasad7@gmail.com> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.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 TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJgPO8PBQkUX63hAAoJEBuTQ307 QWKbBn8P+QFxwl7pDsAKR1InemMAmuykCHl+XgC0LDqrsWhAH5TYeTVXGSyDsuZjHvj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TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240617_232043_817245_C5F798CE X-CRM114-Status: GOOD ( 18.64 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org On 17/06/2024 20:14, Shresth Prasad wrote: >>> +examples: >>> + - | >>> + grf: syscon@ff770000 { >> >> Drop label... actually entire node looks not needed. > > From what I understand, this `phy` node should be a sub-node of a `grf` > node which is why it is part of the example. > >> >>> + compatible = "rockchip,rk3399-grf", "syscon", "simple-mfd"; >> >> Drop >> >>> + reg = <0xff770000 0x10000>; >> >> Drop > > Removing `reg` causes the following warning: > Warning (unit_address_vs_reg): /example-0/syscon@ff770000: node has a > unit name, but no reg or ranges property > > Please let me know what the prefered solution would be here. Obviously you need to drop entire node... You cannot just drop reg and leave unit address. > >> >> >>> + #address-cells = <1>; >>> + #size-cells = <1>; >>> + >>> + emmcphy: phy@f780 { >> >> Drop label >> >>> + compatible = "rockchip,rk3399-emmc-phy"; >>> + reg = <0xf780 0x20>; >>> + clocks = <&sdhci>; >>> + clock-names = "emmcclk"; >>> + drive-impedance-ohm = <50>; >>> + #phy-cells = <0>; >>> + }; >>> + }; >>> diff --git a/Documentation/devicetree/bindings/phy/rockchip-emmc-phy.txt b/Documentation/devicetree/bindings/phy/rockchip-emmc-phy.txt >>> deleted file mode 100644 >>> index 57d28c0d5696..000000000000 >>> --- a/Documentation/devicetree/bindings/phy/rockchip-emmc-phy.txt >>> +++ /dev/null >>> @@ -1,43 +0,0 @@ >>> -Rockchip EMMC PHY >>> ------------------------ >>> - >>> -Required properties: >>> - - compatible: rockchip,rk3399-emmc-phy >>> - - #phy-cells: must be 0 >>> - - reg: PHY register address offset and length in "general >>> - register files" >>> - >>> -Optional properties: >>> - - clock-names: Should contain "emmcclk". Although this is listed as optional >>> - (because most boards can get basic functionality without having >>> - access to it), it is strongly suggested. >>> - See ../clock/clock-bindings.txt for details. >>> - - clocks: Should have a phandle to the card clock exported by the SDHCI driver. >>> - - drive-impedance-ohm: Specifies the drive impedance in Ohm. >>> - Possible values are 33, 40, 50, 66 and 100. >>> - If not set, the default value of 50 will be applied. >>> - - rockchip,enable-strobe-pulldown: Enable internal pull-down for the strobe >>> - line. If not set, pull-down is not used. >>> - - rockchip,output-tapdelay-select: Specifies the phyctrl_otapdlysec register. >>> - If not set, the register defaults to 0x4. >>> - Maximum value 0xf. >>> - >>> -Example: >>> - >>> - >>> -grf: syscon@ff770000 { >>> - compatible = "rockchip,rk3399-grf", "syscon", "simple-mfd"; >>> - #address-cells = <1>; >>> - #size-cells = <1>; >>> - >>> -... >>> - >>> - emmcphy: phy@f780 { >>> - compatible = "rockchip,rk3399-emmc-phy"; >>> - reg = <0xf780 0x20>; >>> - clocks = <&sdhci>; >>> - clock-names = "emmcclk"; >>> - drive-impedance-ohm = <50>; >>> - #phy-cells = <0>; >>> - }; >>> -}; >>> diff --git a/Documentation/devicetree/bindings/soc/rockchip/grf.yaml b/Documentation/devicetree/bindings/soc/rockchip/grf.yaml >>> index 79798c747476..6e1b1cdea680 100644 >>> --- a/Documentation/devicetree/bindings/soc/rockchip/grf.yaml >>> +++ b/Documentation/devicetree/bindings/soc/rockchip/grf.yaml >>> @@ -176,9 +176,12 @@ allOf: >>> Documentation/devicetree/bindings/phy/rockchip-pcie-phy.txt >>> >>> patternProperties: >>> - "phy@[0-9a-f]+$": >>> - description: >>> - Documentation/devicetree/bindings/phy/rockchip-emmc-phy.txt >>> + "^phy@[0-9a-f]+$": >>> + type: object >>> + >> >> Drop blank line >> >>> + $ref: /schemas/phy/rockchip,rk3399-emmc-phy.yaml# >>> + >> >> Drop blank line > > The rest of the document also has these blank lines, which is why I've > also kept them here. Are you sure I should remove them? Yes > >> >>> + unevaluatedProperties: false >>> >>> - if: >>> properties: >> >> Nothing in example? Isn't the example for 3399? >> >> We want only one complete example of such multi-children devices, so the >> example can be moved and included in existing one here. > > The example in this file is actually for `rockchip,rk3399-usb2phy` and > not `rockchip,rk3399-emmc-phy` which is why I haven't touched it. What? That's gref, not usb2phy. This patch and your explanations are very confusing. Best regards, Krzysztof -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy