Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp331381rbb; Sat, 24 Feb 2024 02:29:10 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXiS2QneRHqzkCOgdYb1SKfYz1CrbXDwk06Hh5rbQBDUh+9TgVvB+f3GiCnv/lcV3CHQhC/GXwUVLMed3NN3mWr0JE556gSDaVPLB+iEQ== X-Google-Smtp-Source: AGHT+IHsQ6RM/lRUyiFCrjwuopg63t2+P7s7wojJCdSk4Y8UtnFBoHBZY8UuWNhhv8ZJfcLRPIXP X-Received: by 2002:a17:906:150b:b0:a3f:d742:f353 with SMTP id b11-20020a170906150b00b00a3fd742f353mr1319959ejd.57.1708770550405; Sat, 24 Feb 2024 02:29:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708770550; cv=pass; d=google.com; s=arc-20160816; b=sbnWDt0wrFaqeBTa1GTMcCYEhsXK49FqVRfxC/I82VL89yeXiThYWF5eu/EXgxFwWx kZT1Yvhws39bVbsEHkNTpBbBqi8tfpgHWf6XjkOy3d2xrmP5AE9bqmpcdOwXK8ijtlLz ANBzepOCV4KdP0bu6xdpiEG6L9wWHU2wtuH332tBCbsSqxSdh/dImbeDfbf6nd3AfC4C OBDN2W1+DaFzcsfFbOXJgXj23LC6MHg0QNbfVaREs8hTWIO+hX/8aPNaeC0rZTJctEGz 85GeVOhR0EqEOBIRAvaL2rJdADW8eq7/Z7rWqcPtWYsY/shJg0I40YhZwhCBBfdDmZrq jigw== 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=rgfQfFWKfhHnlKFB8GZQVPCeubPlUtrG7fkujZpbwSg=; fh=EjsQtZyDWM1I3PryopBEXgZHRk7BiS14hQJsL4o6ae0=; b=YQJIwvioF0nDM4GnWb5NKNC0iOKzRlL7cM/qL1rPI1hDounSwXU35tdBYDBpaqea5c RYH2XBdBbSwmcG8e461oJBiPQedBrjxPztGwRHXO5O/eDP4B73oAXROuSmXD588DEVf/ 7eatjIJRRd2nPz43nq/R6B9fqi+alIWfn5Qk0sbu/XpDDhDw8rrGlPZcr0I3wSGAF/Pq ce/v5gXAG8L5lPPkjWprWgIyw8DL51TAI/peC3zveRKDrhNISD6u/5CDD0uAAyqVyn7i VTDRk2aBbeX2LtRdsAJFunArrbeU/eT1emuZy3KKQCSp4R/1JJcO+NmeguXlHei7H4Yk Lsrw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=u3NfNiFI; 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-79562-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79562-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 s27-20020a170906bc5b00b00a3eabd8fc4csi386729ejv.1028.2024.02.24.02.29.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 02:29:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79562-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=u3NfNiFI; 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-79562-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79562-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 DC9EB1F22254 for ; Sat, 24 Feb 2024 10:29:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EEC1522EE3; Sat, 24 Feb 2024 10:28:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="u3NfNiFI" Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (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 E6BD4210E8 for ; Sat, 24 Feb 2024 10:28:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708770538; cv=none; b=TVpzMb2w5fffgqcsg3bD5vnwKDcFWU1KfOhl9//MoREIjCCCVHvjzbO1mpZA/Z7SfYkBwwrwzHh/+CenPu6uyeemqVjpWBeX+RB8HI63oqccoWPWoTQGX7a1lzO9gGH2ra1NYg3liEI7grs5jBHh0FpMiveu9DF5GmrKRYMADig= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708770538; c=relaxed/simple; bh=Wg0PBihE3EDGuRdaaCb2GnwtY1WotZgKhFda+XYqOVQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=tay2pxRvcvkVTVXtx0Qa8M75WSlIie0kGRCJ5/b1k5Pv33TKNRwsibAlAANbITenKlZKEVOvkOP2DQMjSQvPJOZZK346D80ijYK2ugfiIhQ4/fIiwYT2wSkG4jQNzJGHYugoK7uGfVS/rLrZeEek0FnlzsqYiD0xqDMDqYzulMA= 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=u3NfNiFI; arc=none smtp.client-ip=209.85.218.53 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-ej1-f53.google.com with SMTP id a640c23a62f3a-a3e6f79e83dso151668866b.2 for ; Sat, 24 Feb 2024 02:28:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708770533; x=1709375333; 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=rgfQfFWKfhHnlKFB8GZQVPCeubPlUtrG7fkujZpbwSg=; b=u3NfNiFI4opY+HVrfjOyy8R/cmoOU/+46Ts1JWGkHPpvO9UaMEbbBKiF1vA5IjU/z3 AvwJEskKkzARXOaLfjU4BA0eyomGBmdBbfKTbY+7zid2CvZkv7Gg4ecDGafMahZ5YHRi 8QVPRGiGAxiBrrjwkAfIag6Bewtqi0NyOm9ANoxRPB9yPYoUfZHwzWh0258kK3PkkUyK 1EO21JNVMamTxV0LVOP0apZXbcWrARkaXFb/Zxdg7BShxeXD80OwP5dlfaqbC/lUH08A 0Y25Q3LoiM6H5C3SrefwYzZYpjqXWnQZJHN3lFxJYtyVm87Xi+7KFWOjB/UrJZcBrSC8 E2Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708770533; x=1709375333; 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=rgfQfFWKfhHnlKFB8GZQVPCeubPlUtrG7fkujZpbwSg=; b=C2MRHOnl1R6qKmDLDnm6amyqvNzNs5LQ1jIRTWmeJAd4+uVTGxNeNTGUfWcKVWzzuT vaCfkbfeOT9dj6a8F/Fwxb6HjnoAU8C7wKVvr8o3Tguu1BX2/UHw49N6JSyESxheEgBM CMXpCUcPfMCDiLGtqXW8FOQN458VKcOfRAQb7i5pvdDcsODrveBUrbJcEEyM24pWsF5w xCzuNjEOPUwmAk0uhJi3Ho4hD1a6Oju+iU58kmJx/TOg9f3t25xKSx6PQ+2e8DhKQqWJ m1xrpuoZBJgxtrljAum2W83Z7CioyuxtUseHthgQOqL9x1Oz+QEg1tu0f+bFhkg/mvVA ZhCw== X-Forwarded-Encrypted: i=1; AJvYcCU/V/7nwHvO/flTMbcd4YFtaHjuiYTh+6m3nfNZfS+tc11DMVeXexjceRKq9qpPQX+zrDhisonR/DyDPdhK8Bh+UBEc1xV6rgD8tP57 X-Gm-Message-State: AOJu0YzUXZRERY64GLb30pnzzukuaoOlNZKEf19NcG+JWWBDEkSCvNKR 5LQezTV8Stt2ooLHR/QWNG8XLk0Nlh1yHE1oVXSSkFekTwjWVt+DSXLv9/yGgO8= X-Received: by 2002:a17:906:2b05:b0:a3e:77d2:9e04 with SMTP id a5-20020a1709062b0500b00a3e77d29e04mr1284170ejg.24.1708770533237; Sat, 24 Feb 2024 02:28:53 -0800 (PST) Received: from [192.168.1.20] ([178.197.222.116]) by smtp.gmail.com with ESMTPSA id ps8-20020a170906bf4800b00a42ee2af521sm384657ejb.137.2024.02.24.02.28.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 24 Feb 2024 02:28:52 -0800 (PST) Message-ID: Date: Sat, 24 Feb 2024 11:28:50 +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 v2 1/2] dt-bindings: usb: add hisilicon,hi3798mv200-dwc3 Content-Language: en-US To: forbidden405@outlook.com, Thinh Nguyen , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Yang Xiwen Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <20240224-dwc3-v2-0-8e4fcd757175@outlook.com> <20240224-dwc3-v2-1-8e4fcd757175@outlook.com> 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/BIfXXfC68nMp9BZoy3So4ZsbO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zpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240224-dwc3-v2-1-8e4fcd757175@outlook.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 23/02/2024 22:43, Yang Xiwen via B4 Relay wrote: > From: Yang Xiwen > > Document the DWC3 controller used by Hi3798MV200. > > Signed-off-by: Yang Xiwen > + > +properties: > + compatible: > + const: hisilicon,hi3798mv200-dwc3 > + > + '#address-cells': > + const: 1 > + > + '#size-cells': > + const: 1 > + > + reg: true Constraints. maxItems: X > + > + ranges: true > + > + clocks: > + items: > + - description: Controller bus clock > + - description: Controller suspend clock > + - description: Controller reference clock > + - description: Controller gm clock > + - description: Controller gs clock > + - description: Controller utmi clock > + - description: Controller pipe clock > + > + clock-names: > + items: > + - const: bus > + - const: suspend > + - const: ref > + - const: gm > + - const: gs > + - const: utmi > + - const: pipe > + > + resets: > + maxItems: 1 > + > + reset-names: > + const: soft > + > +patternProperties: > + '^usb@[0-9a-z]+$': unit addresses are in hex, so a-f Open existing bindings and look how it is done there. There are no bindings for DWC3 glue/wrapper device having a-z. > + $ref: snps,dwc3.yaml# > + > +additionalProperties: false Same comments: open existing bindings and take a look how it is there. This goes after 'required:' block. > + > +required: > + - compatible > + - '#address-cells' > + - '#size-cells' > + - ranges > + - reg > + - clocks > + - clock-names > + - resets > + - reset-names > + > +examples: > + - | > + #include > + > + usb@98a0000 { > + compatible = "hisilicon,hi3798mv200-dwc3"; reg is always the second property. ranges is third. > + #address-cells = <1>; > + #size-cells = <1>; Use 4 spaces for example indentation. Best regards, Krzysztof