Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp215065rdb; Sat, 17 Feb 2024 05:40:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXUNacBp5xkAFjt8So/sltwOqvMjBe+hymIAlFXyMqlQktxOr5kVkIATIcw6+OAZeeArT4OBSnarPpfoqzDThybgBhQBNWZC2Qe+fvIJw== X-Google-Smtp-Source: AGHT+IEwm9LJoha7VL3Ra/500CjOjDfeJK4ZFb+Tjd/TQeQeY6nPNXMkrGLr+fen0OM9GNhkriet X-Received: by 2002:a05:6512:1589:b0:511:a803:c952 with SMTP id bp9-20020a056512158900b00511a803c952mr6939103lfb.0.1708177222797; Sat, 17 Feb 2024 05:40:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708177222; cv=pass; d=google.com; s=arc-20160816; b=byJtJsuz/u9UaYu/h0EjC9I4ZPQwA4qSRx9Bgi2Ek6JcN6jSmVXj+6GHlgVYGz/Y4e dsExzA3kC45FxLjQklFherV8sUkpDIypMQcJuM3i/ZCpeMpr/aSiFvQfJ6MxOxtL2DHT /O6fbfg5hXkm9b/yJyhWgqyn4Czosncxg5yqSZ66YOE06T6tbACZwNCgJGxvOTwCSS2U C/gBbcPyUiVFMB8PlBdfXrgdQ4TMzn7YRuO9nNaKXi+4k11iQQCHOqWGLdpv7Yu3w3hq rDWDUL4pidcC8W/SxXmhkroRilM2rEIDIIvtUOGDQ1iB3nW5cRUHH2B2NENvurj/Twl5 lP/A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=HGNCofLugqlZyC2Yzss6Pd9EV+Orj4VOX1RB8jZiSMs=; fh=U+OvmqQ2AXkLO5FZRXlXA4+rAen+SNi5lOUYl7Kmc+8=; b=XY/hH/eLz+Ls3FHLBZW/K1UK5lp+Kqp2VJVM1A47UXeVKo+GF8mgVtP5UbjrCkoOlR g9YVSMhR2KV7NXLIDdiJSnJN0A33QqUFFzaMJ0PaN7OP7Bbhu3ZPK7YXdLMe65U9nk// DDtYcm5pxk0ZA8lMDwFbMVs24Uucf3IBcn33i0WyabA4wvt3ydvDuC2CpjTsqvAVQgyt Ko9GSLAe3S657DOKeR7z5Dywt5zoAIWSgQzdUOvz4hfwhFtIAqEr2Is4oIvJ4r/FaHv0 jI0yZtLYNQDTusazlA8RaZxkpXRjctPEefGusYDtxAHo791pk/CxA5K/GwlTlzmvq6Nx ufrg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="dk1/KLnm"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-69875-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69875-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id m19-20020a509313000000b005643c6897e4si100782eda.298.2024.02.17.05.40.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 05:40:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69875-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="dk1/KLnm"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-69875-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69875-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 57ADF1F21E88 for ; Sat, 17 Feb 2024 13:40:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D81997AE5B; Sat, 17 Feb 2024 13:40:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="dk1/KLnm" Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BF7A17A737 for ; Sat, 17 Feb 2024 13:40:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708177213; cv=none; b=Fb+YxLxUGikXPAaCZ0NrEcylQeikDIKOUjLckQCAvIDwAAASeOmFQLUfDcFv5wt2QTPg/c4PfQrh60XjEZV5X/YL9lFUGSeMhhSZP5eumRBej0CzUwUvIEfqRmPTQryddKpMquDJdFAjnQDIuxaCr5D2SaSBshiCQ5giEHiTg0k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708177213; c=relaxed/simple; bh=ApRmf4hF+UhxtHe1xKf1xdSY/gEUqO8iQK2Z4TdkMFs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=rpcIudKHF5X9vfIyT5Hmsqh0RtLYYWSuptXZbszi7QiRS/c0AQbb/7pKVQxnpvKZe/BjVWFWAHUpkgTEHH+M7c5FByx9h04sCJP2Rz3qPU51B3cVpyq4WTZ+nEUkApv+RK8eExObjeH4wGMRUMDVC2kWX8IdzHBQ9sFUvLEbX8o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=dk1/KLnm; arc=none smtp.client-ip=209.85.208.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-55a179f5fa1so4059597a12.0 for ; Sat, 17 Feb 2024 05:40:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708177210; x=1708782010; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=HGNCofLugqlZyC2Yzss6Pd9EV+Orj4VOX1RB8jZiSMs=; b=dk1/KLnmBYyTPlyoyD+NG4+XEFCFCe2ksx7CNeump8gI0LW+izZpbkwrqPRsmINq92 rus2hSGnoQF8OXnaLwvkFCXywUl8sAhH8efc3/qACDDZFhFQF8ZA2PMKkCPngkIx2eu/ 4G36FaToeEmdtgtWasGPEl+nf7RAyQHYgLDspEIDlL0XekWA4QJYPg/fLHCckrqT7WGf +tML7SWylu66dzEWyZp+mPCm5TWQex78db1x7nvfMSocZ6aLJ9vTgm982PrTlZlmazBS q4EL/ert9Gws6SeEvpFrOj47Fv8M0dRJRFWkf9WDHMRFxFXFYU9SbFatpY4MSXfbYl9n BwYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708177210; x=1708782010; h=content-transfer-encoding:in-reply-to:autocrypt: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=HGNCofLugqlZyC2Yzss6Pd9EV+Orj4VOX1RB8jZiSMs=; b=r+t0Q/FEPfM14TdcJVbmRZxXhwR8wqyE2TZxEm2//Dq99g2FQ79cyFdnjlizlnU1IL qj8nQJg/a+4A+C1yCT5YENkdwFWSlKnZpXkW7PE9qBDG8scSCffbBQk59xcGyM5neyPM pfCLr9IvFBMrLij8PNfz+XnsHI2RuYEhQhbnuOKPj+GdoNjpnA1ep0ZNtSdGsXH//MGo xiWIrnQbZNFyb5UZLz3ieCO9egtUk/i9QVIOtdg2E7fVTUDjwYc/wKXsRcu0M2zB2/R8 aw7A9HNo3ZwwAzFtk7MKm+UMD1I+lmu3UUlVgLS3V9deKNtXdI0euq2K0Ob1R+KrOJ9W 8MEQ== X-Forwarded-Encrypted: i=1; AJvYcCVOkgx/Z6rGqrFBSdzXDZ9niuD3DqlwWVVbNQJx4sv1HyHUuqgcKyiG6UmXFQi3tBr0VxBKsR0J1O32s9Uqyw2QjfNkNBlMpHcu+VJU X-Gm-Message-State: AOJu0YzWutRM15s8GNCQ1jpU8HK4Wswg3IXHqs8ZDOF0jBF5vFs7u+70 SogFSNKeSUGRSNFIAJNvqcsInm8Lz6BrMztywscZK+kKlgf4ys2q46wvWGAV9uw= X-Received: by 2002:aa7:ca4d:0:b0:562:7705:57c8 with SMTP id j13-20020aa7ca4d000000b00562770557c8mr5666282edt.34.1708177209940; Sat, 17 Feb 2024 05:40:09 -0800 (PST) Received: from [192.168.0.22] ([78.10.207.130]) by smtp.gmail.com with ESMTPSA id bf2-20020a0564021a4200b00562149c7bf4sm892560edb.48.2024.02.17.05.40.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 17 Feb 2024 05:40:09 -0800 (PST) Message-ID: Date: Sat, 17 Feb 2024 14:40:08 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC 1/4] dt-binding: phy: hisi-inno-usb2: convert to YAML Content-Language: en-US To: Yang Xiwen , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jiancheng Xue , Pengcheng Li , Shawn Guo Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kishon Vijay Abraham I , David Yang References: <20240216-inno-phy-v1-0-1ab912f0533f@outlook.com> <20240216-inno-phy-v1-1-1ab912f0533f@outlook.com> <63b3eff6-49eb-46f3-a6d9-878eddf6de53@linaro.org> 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/G23PcowM1CwPurC8sAVsQb9KmwTGh7rV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HxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 17/02/2024 14:14, Yang Xiwen wrote: > On 2/17/2024 6:14 PM, Krzysztof Kozlowski wrote: >> On 16/02/2024 16:21, Yang Xiwen via B4 Relay wrote: >>> From: Yang Xiwen >>> >>> Also rename to hisilicon,inno-usb2-phy.yaml and add this name to >>> compatible lists. >> Please use subject prefixes matching the subsystem. You can get them for >> example with `git log --oneline -- DIRECTORY_OR_FILE` on the directory >> your patch is touching. >> >>> Signed-off-by: Yang Xiwen >>> --- >>> .../bindings/phy/hisilicon,inno-usb2-phy.yaml | 115 +++++++++++++++++++++ >>> .../devicetree/bindings/phy/phy-hisi-inno-usb2.txt | 71 ------------- >>> 2 files changed, 115 insertions(+), 71 deletions(-) >>> >>> diff --git a/Documentation/devicetree/bindings/phy/hisilicon,inno-usb2-phy.yaml b/Documentation/devicetree/bindings/phy/hisilicon,inno-usb2-phy.yaml >>> new file mode 100644 >>> index 000000000000..73256eee10f9 >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/phy/hisilicon,inno-usb2-phy.yaml >>> @@ -0,0 +1,115 @@ >>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >>> +%YAML 1.2 >>> +--- >>> +$id: http://devicetree.org/schemas/phy/hisilicon,inno-usb2-phy.yaml# >>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>> + >>> +title: HiSilicon HiSTB SoCs INNO USB2 PHY device >>> + >>> +maintainers: >>> + - Yang Xiwen >>> + >>> +properties: >>> + compatible: >>> + minItems: 1 >> No, why? Compatibles must be fixed/constrained. > Hi3798CV200 has only the first compatible listed in its device tree. But > you are right i can add it to hi3798mv200.dtsi so that `minItems` can be > removed >> >>> + items: >>> + - enum: >>> + - hisilicon,hi3798cv200-usb2-phy >>> + - hisilicon,hi3798mv100-usb2-phy >> This wasn't here before. Not explained in commit msg. >> >>> + - const: hisilicon,inno-usb2-phy >>> + >>> + reg: >>> + maxItems: 1 >>> + description: | >> Do not need '|' unless you need to preserve formatting. >> >>> + Should be the address space for PHY configuration register in peripheral >>> + controller, e.g. PERI_USB0 for USB 2.0 PHY01 on Hi3798CV200 SoC. >>> + Or direct MMIO address space. >>> + >>> + '#address-cells': >>> + const: 1 >>> + >>> + '#size-cells': >>> + const: 0 >>> + >>> + clocks: >>> + maxItems: 1 >>> + description: reference clock >>> + >>> + resets: >>> + maxItems: 1 >>> + >>> +patternProperties: >>> + 'phy@[0-9a-f]+': >>> + type: object >>> + additionalProperties: false >>> + description: individual ports provided by INNO PHY >>> + >>> + properties: >>> + reg: >>> + maxItems: 1 >>> + >>> + '#phy-cells': >>> + const: 0 >>> + >>> + resets: >>> + maxItems: 1 >>> + >>> + required: [reg, '#phy-cells', resets] >> One item per line. Look at other bindings or example-schema. >> >>> + >>> +required: >>> + - compatible >>> + - clocks >>> + - reg >>> + - '#address-cells' >>> + - '#size-cells' >>> + - resets >>> + >>> +additionalProperties: false >>> + >>> +examples: >>> + - | >>> + #include >>> + >>> + peripheral-controller@8a20000 { >>> + compatible = "hisilicon,hi3798cv200-perictrl", "syscon", "simple-mfd"; >>> + reg = <0x8a20000 0x1000>; >>> + #address-cells = <1>; >>> + #size-cells = <1>; >>> + ranges = <0x0 0x8a20000 0x1000>; >> Drop the node, not related to this binding. If this binding is supposed >> to be part of other device in case of MFD devices or some tightly >> coupled ones, then could be included in the example there. >> >>> + >>> + usb2-phy@120 { >>> + compatible = "hisilicon,hi3798cv200-usb2-phy"; >>> + reg = <0x120 0x4>; >>> + clocks = <&crg HISTB_USB2_PHY1_REF_CLK>; >>> + resets = <&crg 0xbc 4>; >>> + #address-cells = <1>; >>> + #size-cells = <0>; >>> + >>> + phy@0 { >>> + reg = <0>; >>> + #phy-cells = <0>; >>> + resets = <&crg 0xbc 8>; >>> + }; >>> + >>> + phy@1 { >>> + reg = <1>; >>> + #phy-cells = <0>; >>> + resets = <&crg 0xbc 9>; >>> + }; >>> + }; >>> + >>> + usb2-phy@124 { >>> + compatible = "hisilicon,hi3798cv200-usb2-phy"; >> You can keep only one example, because they are basically the same. > > It is listed here just because cv200 (and the upcoming mv200) actually > has two INNO phys in the SoC. And coincidently for both SoCs, one with > two ports is wired to USB2 controller(EHCI &OHCI), while the other one > with only one port is wired to DWC3 controller. The example here is > borrowed directly from hi3798cv200.dtsi. > I see the differences and one difference means they are basically the same. Best regards, Krzysztof