Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2673402ybc; Wed, 20 Nov 2019 18:46:28 -0800 (PST) X-Google-Smtp-Source: APXvYqxB9hxdimUdhVVA0m3ge2dI1cTChAYeylM+LVJ+l+d/0jdcHuTbhS5bUmynAH2triQi/RkJ X-Received: by 2002:a17:906:12d3:: with SMTP id l19mr9688742ejb.165.1574304388549; Wed, 20 Nov 2019 18:46:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574304388; cv=none; d=google.com; s=arc-20160816; b=w0u4ZWq3xSxc0EJm5SgCNCkcfId0kI7Ywi0EZqk2MFKqTSclV+bSMi0VHryfyJpZr3 XkKrnuYB2OYDGehBc6u2fcAyb0KiYejfMOU4nwefxy62YVHZhqP8rfwiJJVELxrjWlJO nMNOxPXuBCAtzGC4rqNsN6S8Yo3MwsLxMWjGZW4y8inF0FMJJJbXLJ5wszaJVVkFR5/s cf/W+VfsUJzCjMegGP8BehS2HlQh+GubP+REVWRKhEQC/E4kJo6WUv9Uxcso4BLVvrDZ 688QeynhT2q2SsUp4tVvYvPBKoAdre6H732Gu4bevgDn/wuO1SMue74EpI8GQeyPtfLZ /ekg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=E1HZ1i0rcWI/UHJhKmVyeuvLDPLst2t59t2++sibDns=; b=ApSzP2RGpgjJ41xqf28yszoeT3Lh5/jOaxw/e2U11Nphps8fkmiIV4Mr6kyleDaOo8 iBcPKRVMlv7qVniezw1MpjS/a2qk3wWwD1JA0UAyc+uecwHHEfaU1F+iKyWoqBboDmYh wBliRrQRWfWE2q45jbvPJ1vm2dsk3Ua3gh7mxnlErbUpuADZXcqKdqPb6wnLpXjXLAXU UhzzxAk3bBUvCAysMDpJ8KASuIWBDySdaVDG9tJtkv71oT0tY8ECTbaxeBWAnaJpsZnm ysNOQSoTP4vrT93jGwRZUgNKGCryJloknL/l9CwIUYKbrrhonfcSnN5thuYqNkjVNw1W Pkvg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h37si1138904eda.249.2019.11.20.18.46.04; Wed, 20 Nov 2019 18:46:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726541AbfKUCmc (ORCPT + 99 others); Wed, 20 Nov 2019 21:42:32 -0500 Received: from inva021.nxp.com ([92.121.34.21]:51156 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725842AbfKUCmc (ORCPT ); Wed, 20 Nov 2019 21:42:32 -0500 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 88DC0200575; Thu, 21 Nov 2019 03:42:29 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 24D7A20007A; Thu, 21 Nov 2019 03:42:24 +0100 (CET) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 46CA040286; Thu, 21 Nov 2019 10:42:17 +0800 (SGT) From: Ran Wang To: Rob Herring , Felipe Balbi , Greg Kroah-Hartman , Mark Rutland Cc: Peter Chen , Jun Li , Leo Li , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Ran Wang Subject: [PATCH v3 1/2] usb: dwc3: Add chip-specific compatible string Date: Thu, 21 Nov 2019 10:42:05 +0800 Message-Id: <20191121024206.32933-1-ran.wang_1@nxp.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some Layerscape paltforms (such as LS1088A, LS2088A, etc) require update HW default cache type configuration to fix DWC3 init failure when applying property dma-coherent. Note that the cache type configuration is actually native feature of DWC3, not additional desgin coming from SoC, so add this support here. Signed-off-by: Ran Wang --- Change in v3: - Update commit subject according to content change, originanl one is 'usb: dwc3: Add node to update cache type setting' - Replace sub-node definition with chip-specifc compatible string. Change in v2: - New file. Documentation/devicetree/bindings/usb/dwc3.txt | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/usb/dwc3.txt b/Documentation/devicetree/bindings/usb/dwc3.txt index 66780a4..043c312e 100644 --- a/Documentation/devicetree/bindings/usb/dwc3.txt +++ b/Documentation/devicetree/bindings/usb/dwc3.txt @@ -4,7 +4,21 @@ DWC3- USB3 CONTROLLER. Complies to the generic USB binding properties as described in 'usb/generic.txt' Required properties: - - compatible: must be "snps,dwc3" + - compatible: must be "snps,dwc3" and (if applicable) may contain a + chip-specific compatible string in front of it to allow dwc3 driver be + able to update cache type configuration accordingly, otherwise + Layerscape SoC will encounter USB init failure when adding property + dma-coherent on device tree. + Example: + * "fsl,ls1012a-dwc3", "snps,dwc3" + * "fsl,ls1021a-dwc3", "snps,dwc3" + * "fsl,ls1028a-dwc3", "snps,dwc3" + * "fsl,ls1043a-dwc3", "snps,dwc3" + * "fsl,ls1046a-dwc3", "snps,dwc3" + * "fsl,ls1088a-dwc3", "snps,dwc3" + * "fsl,ls2088a-dwc3", "snps,dwc3" + * "fsl,lx2160a-dwc3", "snps,dwc3" + - reg : Address and length of the register set for the device - interrupts: Interrupts used by the dwc3 controller. - clock-names: should contain "ref", "bus_early", "suspend" -- 2.7.4