Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2224447rwr; Fri, 21 Apr 2023 06:13:35 -0700 (PDT) X-Google-Smtp-Source: AKy350YvK1PdZbCHuzuTcdsc9tie6tyEHCZ6DVT5sAOFuW+t4OcJFAXjgYi1OzzPzqvAe5mt2miu X-Received: by 2002:a05:6a20:440d:b0:d9:3de:541e with SMTP id ce13-20020a056a20440d00b000d903de541emr6088273pzb.6.1682082814743; Fri, 21 Apr 2023 06:13:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682082814; cv=none; d=google.com; s=arc-20160816; b=Ccb9T1TI/aknhCsDJcq+h+CPpMBsMM4sU1k6Sgb+zLAHxpaNPxYeh2QPSckd7VYYGx hmZFrIhDVJdaqplBhv5JAVg/jmKQFsUCn/Jl1TuG+WVzmkhjIGxK5sgI5aOAvprSNf/Z KLQsagcLEF/2Od2kJpeCw4oNqWJsU5LBDleBFk9W8LcZb++0lgAeeiiQ2f35cLdVnOQ4 YXMmnQsHjBjA042GSLV6Vym0Q7dZodZb8EtLNUW49ckDtTPrhdjkWdgUJ6ZKHVtLtqFt prigmjQhIx/tjgYe7ACKwDLK5hYtNQwq4Nw5j1YdRonrZWEj0YM5xrQCzTcT20DTi+oR xzog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=nfjb+chRx32VjSd2uOUNbPLQ4xoWhdPsMupaGe0aFio=; b=Ur7ldqapkpwsPKX99CxvLpMLjMN5YL952131dPwqFZ2/QZedgP5ZgtpLiESYWQRPTA PeUq6DbVp/0G8cQ5CEjUYF3t1vUp93PMV8UWOrOrTaIrh3CPTYrK7JTeJ75VB2gRHr9N SSHi/jet+r9Rg/hZ1HIpMbo++kBVyD0mhH/XOsTesjX0pwNgqaIa15UJ2UEAo4ZOZdMR 7HTprVYQeNHeMy/6kZ8AOH/xa0M7dq6nt5n64uHNQ8B6YArWQbpPqWVhvatExQIlseEl NpvqZbYFAtqbsOFutFr4L+Q180FCC1BFCy2UlScxBsTjlpocnj24YHqbgYhpP3sj0dp0 Ld5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ghOgmJGO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q15-20020aa7982f000000b0063d2540804csi4179888pfl.383.2023.04.21.06.13.06; Fri, 21 Apr 2023 06:13:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ghOgmJGO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232415AbjDUNEi (ORCPT + 99 others); Fri, 21 Apr 2023 09:04:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232196AbjDUNEh (ORCPT ); Fri, 21 Apr 2023 09:04:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B262A1729; Fri, 21 Apr 2023 06:04:36 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5B36460CF9; Fri, 21 Apr 2023 13:04:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BC919C4339E; Fri, 21 Apr 2023 13:04:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682082275; bh=CzmaRLEElV5r6OSmeQUesOnrWGmddrm3MWcaRGvePEM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ghOgmJGOAyVhJFKROPFV3qY7d6DVECvaXitDvgs33kQMAC8DBGMXDoUlAMnD/4+Hn mbEnnTx7/kPd/IDVj1Uyv18886ds+J4uO6u8ipY535bvaefnBlxZTEDPBXyhGAqeVn 2b82xSYkZvKiG31Xw6fZZ562s7y/wER8SYc8LH2bArJAdZ0jrGJZXQO8HNgQJPVkZa PpSvgAU0nWaRD0zat7Rm3SXhSAPBPbecY0MJ0lhjjSqaUnMip8fHEQCSzdTeB8uK3s YTd5UcazVOuVBsu7fBkbDxQAeaJ/9ZV8jPreyzpZE20cq6lscLwAiyTe5jww7jQymT vO7nkHZJ3Y1iA== Received: by mail-yw1-f177.google.com with SMTP id 00721157ae682-54f9b37c634so19301977b3.2; Fri, 21 Apr 2023 06:04:35 -0700 (PDT) X-Gm-Message-State: AAQBX9chQNGyhbqiymLBqg6NNz3Ua6l8iISbiJcwqZxYGRT4UZGsnSxk BIuZLHDXC9n6Fu5/yD6B1CgjPJmrDERlwavAKw== X-Received: by 2002:a0d:d4c3:0:b0:544:9180:3104 with SMTP id w186-20020a0dd4c3000000b0054491803104mr1770084ywd.34.1682082274752; Fri, 21 Apr 2023 06:04:34 -0700 (PDT) MIME-Version: 1.0 References: <20230421061825.2233-1-stanley_chang@realtek.com> <20230421061825.2233-2-stanley_chang@realtek.com> In-Reply-To: <20230421061825.2233-2-stanley_chang@realtek.com> From: Rob Herring Date: Fri, 21 Apr 2023 08:04:22 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 2/2] dt-bindings: usb: snps,dwc3: Add 'snps,global-regs-starting-offset' quirk To: Stanley Chang Cc: Thinh Nguyen , Greg Kroah-Hartman , Krzysztof Kozlowski , Felipe Balbi , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 21, 2023 at 1:18=E2=80=AFAM Stanley Chang wrote: > > Add a new 'snps,global-regs-starting-offset' DT to dwc3 core to remap > the global register start address > > The RTK DHC SoCs were designed the global register address offset at > 0x8100. The default address offset is constant at DWC3_GLOBALS_REGS_START > (0xc100). Therefore, add the property of device-tree to adjust this > address offset. > > Signed-off-by: Stanley Chang > --- > v2 to v3 change: > 1. Fix the dtschema validation error. > > v1 to v2 change: > 1. Change the name of the property "snps,global-regs-starting-offset". > 2. Adjust the format of comment. > 3. Add initial value of the global_regs_starting_offset > 4. Remove the log of dev_info. > --- > Documentation/devicetree/bindings/usb/snps,dwc3.yaml | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml b/Docum= entation/devicetree/bindings/usb/snps,dwc3.yaml > index be36956af53b..4f83fa8cb6cb 100644 > --- a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml > +++ b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml > @@ -359,6 +359,14 @@ properties: > items: > enum: [1, 4, 8, 16, 32, 64, 128, 256] > > + snps,global-regs-starting-offset: > + description: > + value for remapping global register start address. For some dwc3 > + controller, the dwc3 global register start address is not at > + default DWC3_GLOBALS_REGS_START (0xc100). This property is added t= o > + adjust the address. > + $ref: '/schemas/types.yaml#/definitions/uint32' Again, we're not going to keep adding properties for every DWC3 variation. If it is board specific, then yes a property is appropriate. If it is SoC specific, then imply it from the compatible. Or in this case, you could possibly add another reg entry. Rob