Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1890160rwl; Wed, 12 Apr 2023 21:27:34 -0700 (PDT) X-Google-Smtp-Source: AKy350Z90qrWFJKwIbiTTVSwTKTFvIE7QZlHPYFDMG/UXwiFvALJnwuCNseyo0FGTWgpKozQ2eo/ X-Received: by 2002:a05:6a20:c40a:b0:d6:c9e2:17a1 with SMTP id en10-20020a056a20c40a00b000d6c9e217a1mr633673pzb.62.1681360054001; Wed, 12 Apr 2023 21:27:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681360053; cv=none; d=google.com; s=arc-20160816; b=frCyHsbOjXAQ59c7yrXYITrUuJsqhvgs1kt7LxzXeDWrp8Z4pLS3hOuE4xmOuP7K83 UXB2eikRvCbI5sA7Zl25/GVd+qnr9Es6noxWOtB293cbTI6tFrnaIsSKS9AG8/Cd8C77 ogchalnPvoU64ydvZlfoG4syaHIFQf0PD4J0/fWGHbxSBWB4XcVGVNIZLP5VMTZEKLc3 GQRKAALUsQ9mm7o/EzKsAdomNWqYqu+JZ3SfhyNiFRmYNVNvRwCOF8z2z4N1adhAWabN Sc+sl4BzBPHMo4qX+3P+rVVm78iOQFKLbcdBY8uI8WX09AJqfl11Gepaqk8ERanbqHQ6 phtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :authenticated-by; bh=vcmHgN48ntlzjP0W3CI1d8J/ZekwOSqmE2OQMvt9NSc=; b=aFIuPRKzql5trKsXWjvFvEYrRza+9+QYYU+L4sk7dpUeHoLhSrcjj1/ssR8NlbLKZH 7WrmHsVNERav3Qn51cjm6ttuzdJK2NNJQPoUQSw+AxA2Kr/YKoOv5+jhqiRcdYBCmVre zMrKlpIxz1JFbrmUA/gu3p7JgheuoqMIZF89ARbn6kh720pyJgI7p+9JF264jT6mXtoJ gnySaAnPM2jufd1SmSEUgawu398v+HglmvicrRjhWQh15TuQKagetcUm5y8iBec5PFJU GIZTZuOd8bLf22YYAAOizIMxDKv5Yo7sbudcg3bHW3VDSKIBTZgYFsio+JXWGKEUS2B6 jzOw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n7-20020a6563c7000000b0050300a5cf3csi1028618pgv.469.2023.04.12.21.27.22; Wed, 12 Apr 2023 21:27:33 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229720AbjDMEZU (ORCPT + 99 others); Thu, 13 Apr 2023 00:25:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229679AbjDMEZR (ORCPT ); Thu, 13 Apr 2023 00:25:17 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BABF8BB; Wed, 12 Apr 2023 21:25:16 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 33D4OgvnE024490, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 33D4OgvnE024490 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK); Thu, 13 Apr 2023 12:24:42 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Thu, 13 Apr 2023 12:25:04 +0800 Received: from RTEXH36505.realtek.com.tw (172.21.6.25) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Thu, 13 Apr 2023 12:25:03 +0800 Received: from localhost.localdomain (172.21.252.101) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server id 15.1.2375.32 via Frontend Transport; Thu, 13 Apr 2023 12:25:03 +0800 From: Stanley Chang To: Thinh Nguyen CC: Stanley Chang , , Greg Kroah-Hartman , , , "Krzysztof Kozlowski" , Rob Herring , Felipe Balbi Subject: [PATCH v2 2/2] dt-bindings: usb: snps,dwc3: Add 'snps,global-regs-starting-offset' quirk Date: Thu, 13 Apr 2023 12:25:03 +0800 Message-ID: <20230413042503.4047-1-stanley_chang@realtek.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230412033006.10859-2-stanley_chang@realtek.com> References: <20230412033006.10859-2-stanley_chang@realtek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-KSE-ServerInfo: RTEXMBS04.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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 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 is at DWC3_GLOBALS_REGS_START (0xc100). Therefore, add the property of device-tree to adjust this start address. Signed-off-by: Stanley Chang --- v1 to v2 change: 1. Change the name of the property "snps,global-regs-starting-offset". --- Documentation/devicetree/bindings/usb/snps,dwc3.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml index be36956af53b..5cbf3b7ded04 100644 --- a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml +++ b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml @@ -359,6 +359,13 @@ 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 to + adjust the address. + port: $ref: /schemas/graph.yaml#/properties/port description: -- 2.34.1