Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1821680rwr; Thu, 20 Apr 2023 23:22:56 -0700 (PDT) X-Google-Smtp-Source: AKy350YybS98mUt3nxwQ2e1mpIOzVvsQZPWAlVh/eB5efN2Z3bjAJLz0AnYGsmQtLXbodX/EFWKp X-Received: by 2002:a05:6a20:7d81:b0:ee:448b:946e with SMTP id v1-20020a056a207d8100b000ee448b946emr6500313pzj.35.1682058176219; Thu, 20 Apr 2023 23:22:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682058176; cv=none; d=google.com; s=arc-20160816; b=p6VhuMwOCZOu4opH3/vujxl35KmNmz3YOVbNKQlpcI1uqncQrDu+yxwv/1QELAwSNB SBQCZTpHtugCP/wSU1pjDPGLu8SPS0ioPPaGNsaZTHcLDORHKgkocIrQ0rnHLwGzxi7c BorFBOyQ20euUqEy8vlBmAC5Ts04zbCnxHPo9i4PXbaFsbdhPekuKBk55zmev65q+w5/ WB4tQ0w/OPHN9U2In6pDaGv9L7xL49kngcl5XoJT8kkHuUguzIxiVribtQVKvhqPm6oQ anQgg8tIcBb5r+pzGsTV55fmaOBsC9ERW7HErphM9/u4uJO2geUM1chFNRyTZ+TTfcYl KPwQ== 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=kN05gdRzwHwQvGvgIPzJQaCzcA/efwjYBOEMEg1ib7Y=; b=RHXouY3g1FL4t1E5z4iVrB2kOQz4o4sAZSkV1KlNvDiSPfbontd/q6iy1Rf0sso6jF MZQR+8N9TmMuqMOTmMsuRUPySSyVKFuT5whrB7oM9zM8a7HDbA1gTJG2gHr+duiqgNnH Sz8ynldHMeeLMmHFEdgmG7L/asFs6zRG22a0j67JuVLmmMkZVVVEIB/gVk3MS6/yTr6K IrQkmsdT6atr451BdPdvU9SSd6/9By2jHGeLfG9n8Ldt14Xc5KCZDcA0uP5H80DkMehO dXDapAip5fOI0Duq1zFsEsLqw/b+OjdV1e0j7eT/OQ37+u5jnWVMKz1NiH8T0xN/YX2F FACg== 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 65-20020a630044000000b0050c0c9d2932si3775462pga.191.2023.04.20.23.22.44; Thu, 20 Apr 2023 23:22:56 -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 S229744AbjDUGT3 (ORCPT + 99 others); Fri, 21 Apr 2023 02:19:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229627AbjDUGSx (ORCPT ); Fri, 21 Apr 2023 02:18:53 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FBD22123; Thu, 20 Apr 2023 23:18:45 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 33L6IRw14024623, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 33L6IRw14024623 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK); Fri, 21 Apr 2023 14:18:27 +0800 Received: from RTEXMBS01.realtek.com.tw (172.21.6.94) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.32; Fri, 21 Apr 2023 14:18:27 +0800 Received: from RTEXH36506.realtek.com.tw (172.21.6.27) by RTEXMBS01.realtek.com.tw (172.21.6.94) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Fri, 21 Apr 2023 14:18:26 +0800 Received: from localhost.localdomain (172.21.252.101) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server id 15.1.2507.17 via Frontend Transport; Fri, 21 Apr 2023 14:18:26 +0800 From: Stanley Chang To: Thinh Nguyen CC: Stanley Chang , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Felipe Balbi , , , Subject: [PATCH v3 2/2] dt-bindings: usb: snps,dwc3: Add 'snps,global-regs-starting-offset' quirk Date: Fri, 21 Apr 2023 14:18:24 +0800 Message-ID: <20230421061825.2233-2-stanley_chang@realtek.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230421061825.2233-1-stanley_chang@realtek.com> References: <20230421061825.2233-1-stanley_chang@realtek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-KSE-ServerInfo: RTEXMBS01.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-ServerInfo: RTEXH36505.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,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 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/Documentation/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 to + adjust the address. + $ref: '/schemas/types.yaml#/definitions/uint32' + port: $ref: /schemas/graph.yaml#/properties/port description: -- 2.34.1