Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp352905rbb; Sat, 24 Feb 2024 03:34:28 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXBsLLZBl7FMSUv59P9XWgliwEXt8C93pT0SSuf3RPvQ2aBHPxKwDwti6PGITXEas3syuzZRcT57F6atMjmJ/UlawMRBAeeM4atMv+NQg== X-Google-Smtp-Source: AGHT+IHO7TjAX0RxlK5/eMItlMKyWju4B84ixmZMe67hrPXI+QK/PHlZTH4ArkqLwUauH0NqiaRQ X-Received: by 2002:a17:906:f44:b0:a3e:a712:ba9d with SMTP id h4-20020a1709060f4400b00a3ea712ba9dmr1605008ejj.4.1708774468191; Sat, 24 Feb 2024 03:34:28 -0800 (PST) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id y24-20020a1709063a9800b00a3e7c6491cbsi454951ejd.214.2024.02.24.03.34.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 03:34:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79590-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b="V/lLmuSL"; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-79590-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79590-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com 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 BA76A1F23066 for ; Sat, 24 Feb 2024 11:34:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7EAB22E3FD; Sat, 24 Feb 2024 11:34:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=outlook.com header.i=@outlook.com header.b="V/lLmuSL" Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01olkn2072.outbound.protection.outlook.com [40.92.107.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3509625575; Sat, 24 Feb 2024 11:34:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.92.107.72 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708774455; cv=fail; b=ZfLKVHw9Se5Tn6bwZOAttAVwa2amzA8Vji7siJwoSthuBH8xidZai9VSogcJzM3iuJ+iyr7AHhT5QZbNEDnSgoC2BN6KbyNzVZoDpCE9KlCxTleCzne2vKtoSY3+LdqSW71b+X+zPiy0QzzJeXNDzs7uWKWvcG0J6phnDmOg2o4= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708774455; c=relaxed/simple; bh=poVroh8ar8IIXY6Yp15kmWDlKNYpGmxLyFARAdOisrk=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=PO/k3jbt39MGjnTa05w3pW4Y2Bis3Ngtqd8TbK262NH4iP3K8TpF70ubcPisksnNoekeL7Y99T222Sci2oGtcK/QfBbZHz92BIDgzRI0C3Ih0kWNHC5PxvAPZMXTTLGA+2xd+IgdfhKXksQXjFeqm4mWuPOQdzfWRgU1P0/jUGs= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=outlook.com; spf=pass smtp.mailfrom=outlook.com; dkim=pass (2048-bit key) header.d=outlook.com header.i=@outlook.com header.b=V/lLmuSL; arc=fail smtp.client-ip=40.92.107.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=outlook.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=outlook.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=d+14Zgyn3RdX1eIJvSHSZ23DlPxkCAdmuUz/qkGL3tTBAQEiA4T4Nx87N3ZTxAI0H5ECdZlxP3OgYg00/duKqlUgAnYwMro+p8QMQIdSgFTa8K63mLj61OnFr5V+l4adc/B1ToDO2v7NIc9YY4HcAD9YbcLnQdzwfnUec9NSYCSaSaUmhaTskmEzWR/cwrxo2wRPSJj5jxQjHRUHfnd8Hv8JLhMIeI08jGRfNldR6kA2zsZVmQlQ6vuQEH8xt/qQiRSLbDhKvR+VBwAdG0RtEeJ/3Uz5SD2Xlxhbq95eNz3fju6okXUwrD40xT1U/hkI2UmFgfllFtdUQkl18z9iXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=fz87vnQmTAIfaU94C8v8q1gEXONxMVBrH2XXpjUx+5g=; b=H5x/s50J+V8722SvlpV41smWxQuthxsBVmUK8xlMKjcPe1y24ox6CNCVtvgWCbj6lgLwPpXIHratDdAibZCTNGm/L03Q1Uc3+S4lHQQwviSc5wnUz6sBg7qY1RioQJ5Dwq4RXdK9oEonYO/g2ZIFtZmAEUzw7pbaHbH6+1bQUopEijNmiK2Yb4nOFHG9jSvvhVT2kDXo6TiLnbXv7/EFzYRVNyoXoFeF52qk5F6KDJqFXD5VxTRyzfR5eF7xzOrbo1VTrT9Gc8M6R4HoHgfOOw65XPLZx6c2nKkopKfJ2rCDC+baoUtz91kxaY2kqq+2Cerv9CZKJ2qLNd7pcIVqQA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fz87vnQmTAIfaU94C8v8q1gEXONxMVBrH2XXpjUx+5g=; b=V/lLmuSLiKuDOf4hUTf8h2bfvtqsud8T/wh12DGRQdiWow8vHUZXvmozoMpLamPx8hXeRjcU3cef4iF/FbH+qFFolOVvzcKx0b9e8U+0RfooTaVl+JCj/eYkx4m39rYSOl+uuMsydRj+a6cDlaa6aM8wFDWTEOPkwyzctkw1kE2erjUt+VaH3svPFCNKvC16xDWj+Dp6rzUXgauPCzsyQzrXb6BLgHXkR1ZGAn+m33dl3wHibsmjOI58XuOfN7fbCROUQNeQnCieIrLgYjb7jao8OhmGMkLrUMm4sLeeOhlkcnzpGZqvkosb/V0HvClPdaszaqbljOTY8xQIpb1MYQ== Received: from SEZPR06MB6959.apcprd06.prod.outlook.com (2603:1096:101:1ed::14) by KL1PR06MB7035.apcprd06.prod.outlook.com (2603:1096:820:11b::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.21; Sat, 24 Feb 2024 11:34:06 +0000 Received: from SEZPR06MB6959.apcprd06.prod.outlook.com ([fe80::53da:a8a:83cb:b9ad]) by SEZPR06MB6959.apcprd06.prod.outlook.com ([fe80::53da:a8a:83cb:b9ad%4]) with mapi id 15.20.7316.023; Sat, 24 Feb 2024 11:34:06 +0000 Message-ID: Date: Sat, 24 Feb 2024 19:33:53 +0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/2] dt-bindings: usb: add hisilicon,hi3798mv200-dwc3 Content-Language: en-US To: Krzysztof Kozlowski , 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: Yang Xiwen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TMN: [atjOoS/3My+gmj6gyw1ZL/qVHoDIoGP45cD5NuFpJm2dAtvBKyF+dV4SjDbLp9kzMghsoz6ilXg=] X-ClientProxiedBy: TYCP286CA0243.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:456::17) To SEZPR06MB6959.apcprd06.prod.outlook.com (2603:1096:101:1ed::14) X-Microsoft-Original-Message-ID: <816e5a92-4ab5-4202-9c14-ee49e2430d9a@outlook.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB6959:EE_|KL1PR06MB7035:EE_ X-MS-Office365-Filtering-Correlation-Id: 54e5cbca-ff31-43e8-176a-08dc352c821f X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: e9o4WaLiBzsbs2PDue/HDxMPbYBECPs04WpWame3eU/SuXyqFK8LxD+UqxCXV/ZCg266ESWYeDOdgd9JxdGOvojW4HNtB+lFdBVBcVJ7AjgKGEGzlCPbFyHsW9k8JVT22R0EKS/sDiTrvxL/hVuOhe5gM1Ke/wmrXeu8Gkhs4YvyjwECUTV5qXhL1cVAi4PFeQlQGn607VWTPIYueAqYhQ3pSJP1HppV6lEarOB+JfKtbBqBWF9DoIHm9ABCQbyeY4gzSVie/bsds2JawPj8x3fQVGXSgoubwbpxpWFzu0ifueOpPB+STlWUDSQjU5nQsE68O+MOunMkVWYocVJ+kU1DEjdAzxg5DrnOiTnK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QnV2YzRF?= =?utf-8?B?Zng3WmQySi9FVngzNnZlS1hSSkU2eUZOWXhTU1RldE9teTc4czhiS2NUbU9X?= =?utf-8?B?dUlubEtNbjVFalVZNlkvZUtQUDRRVUdROWR1c0pyYmVvVUtSdVpERGdrVlJZ?= =?utf-8?B?dnNQazYwNW5NY2tyR041eDdYUjdjeVFsNHZRQUEvK25YdkpkdldlMzhpN1Uy?= =?utf-8?Q?hujIBhCyEARcSRYYtcDJyXujSerejHjJJv/gayH?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 54e5cbca-ff31-43e8-176a-08dc352c821f X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB6959.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Feb 2024 11:34:05.9583 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR06MB7035 On 2/24/2024 6:28 PM, Krzysztof Kozlowski wrote: > 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 Is it mandatory to have this property if this node is going to be under a "simple-bus"? I'm taking rk3399-dwc3.yaml as reference. In fact, dwc3 wrapper on mv200 does not have an extra register space. The wrapper only needs to turn on the clocks and deassert the resets. It does not need/have a register space. I don't think it makes sense duplicating the same address twice. But reg property is required by "simple-bus" so i don't know why there is no warning for rk3399-dwc3. > >> + >> + 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 > -- Regards, Yang Xiwen