Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4609253ybp; Mon, 7 Oct 2019 10:59:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqzcH3vLUXz8S/xLrMq8dw6nq+YjlmLg+LbwasxTmKzYmYi+1FloKB1Z8cIpFbopP+Mwfl64 X-Received: by 2002:a50:f703:: with SMTP id g3mr30013442edn.43.1570471180872; Mon, 07 Oct 2019 10:59:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570471180; cv=none; d=google.com; s=arc-20160816; b=xI2C7Zh/XTxgDZ+soxvyy/YnLot7ut2r2Mm+9CuKKNh897bPT0R83MKwHmt9FrYhBi 8XZ0CmjV+NvZooh5fS47g717K8RKw3PHTF9Ir5//DwcyudsDbluS8lGn4GZeTmhKmmrU EU57+KZTHtMfgTXoeVo9jlSA+cBriSeASwpiSltS8m0zIKykd7l9aK5euZ6O4roLDo/9 eqj7MuP4DLg82lQ53eKfJAR+7GD3c7D0/gzXAjcW7lJDbN7JMTbG5xWk8gEAEMaOujM5 HGNcsnAKL52rLowgKGCu6QXIryy+sgjkMLSCgKx5dhE82rEZFYNoblPpuxl8b5lwi86J mZWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=7/b3yUeZa8CC2Us86GgYloZCqUlnEcjewTRh+R9Lbvk=; b=s6dJuLKqNVuE579QWW611jQCjq57SveZ3zis+JOkSRmgr4DSX4SdDxsli4iiEc2wr7 bOxNBuyi9/SVv35eYLQrFupeS/n6PK1clFmFv6RnvrAl089IoZWDfnShNuhH9jHgLs9f pgIl0T+BYalsLAn2s17tuv9inu2QidDzhfQE6fwz0qdXCiIuhpujzrqAOYOYK3eHLWqv qTC9lgIaZdDGHn4/4ZphLSp1OYFxtaV+pF92PHJGsz9zP834JnpKy+81yl7veGmPlYdc qh2eY9hG7zVGPBaLH6zMPBp21j4cljFJe8QXhLQOkONkm1P0aPhlIKpghCnimDbrgUo9 Jrlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SlY3eXwv; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m1si7499624ejb.44.2019.10.07.10.59.16; Mon, 07 Oct 2019 10:59:40 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b=SlY3eXwv; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729302AbfJGR4Z (ORCPT + 99 others); Mon, 7 Oct 2019 13:56:25 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:39967 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729454AbfJGR4I (ORCPT ); Mon, 7 Oct 2019 13:56:08 -0400 Received: by mail-pl1-f195.google.com with SMTP id d22so7225415pll.7 for ; Mon, 07 Oct 2019 10:56:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=7/b3yUeZa8CC2Us86GgYloZCqUlnEcjewTRh+R9Lbvk=; b=SlY3eXwvCRPmzMOhMJJSBUGa/3rX3D4MUbmP0Ohh4buo2qrQ3DCJIvh8hRcWXRpawv QB80v4EAGe5Dvtan+jOEazC5pe64LQb01TslpzL+J7t1hzRTuRhYCdxhfYXQBbAcI/Zq bFxGsoLTeC4mNqGdjuOKXVihqfjxr5ufHsZZa3pYGj05xoNRFOuWY4wLGePQIJcoC8ry GMomuuVRq9oKJMX/OvfgT19utBjL+NR1tT6xgcPkd9EQbEpXfqCeNm1eY8PSUaRHYgO2 PtJ+Dk4z1VlTkcHKjqtWtn47m3uJ2kJuZ2V8bSDM59Id/tThwdsiUSNhuXTu2pNkEHZM iIRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7/b3yUeZa8CC2Us86GgYloZCqUlnEcjewTRh+R9Lbvk=; b=FwVLROKnhEiDm/ntrdCxnljM6tCviOC8R3Iw/Q5cEr0wA37bW+/ZwOeNTA/0FoFjfx 4u8qKCZOqkLThTWzF45PBsVPzqsiGSrfvFRrcK9PdBOZj8DBNEKHHM2znbDWcCGX6nWH oUSbKGDH5BXBhSZiXg/Dro/Q7q3TG08iiQJSN1A4kszjzBUXzbwxCBho/6GKDpiIbwbE sGREkGeiVCOnIn44FFLp1IlvUeIM5I0o3jrTVu1nI2CHebPcNdAZGtj5CDvr7ZQxqiAr PEYgFpuSigGuo3TcY/uff3Z24lKm+Uc/WSbPZVTztf1ouse36fbDHi8Rt9dvUK6xe7lQ +CqA== X-Gm-Message-State: APjAAAU70RscQtP4unE1NpFerHFKhhDwehtMImDbVJPZbwwqXjkzARAb UPy5rq5JrDWZE9wAMJBOx4gfRhgPP2M= X-Received: by 2002:a17:902:820f:: with SMTP id x15mr29187700pln.230.1570470966697; Mon, 07 Oct 2019 10:56:06 -0700 (PDT) Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id k15sm3820096pgt.25.2019.10.07.10.56.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Oct 2019 10:56:06 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , Greg Kroah-Hartman , Felipe Balbi , Andy Shevchenko , Rob Herring , Mark Rutland , Yu Chen , Matthias Brugger , Chunfeng Yun , linux-usb@vger.kernel.org, devicetree@vger.kernel.org Subject: [RFC][PATCH v2 4/5] dt-bindings: usb: dwc3: of-simple: add compatible for HiSi Date: Mon, 7 Oct 2019 17:55:52 +0000 Message-Id: <20191007175553.66940-5-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191007175553.66940-1-john.stultz@linaro.org> References: <20191007175553.66940-1-john.stultz@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add necessary compatible flag for HiSi's DWC3 so dwc3-of-simple will probe. Cc: Greg Kroah-Hartman Cc: Felipe Balbi Cc: Andy Shevchenko Cc: Rob Herring Cc: Mark Rutland Cc: Yu Chen Cc: Matthias Brugger Cc: Chunfeng Yun Cc: linux-usb@vger.kernel.org Cc: devicetree@vger.kernel.org Signed-off-by: John Stultz --- v2: Tweaked clock names as clk_usb3phy_ref didn't seem right. --- .../devicetree/bindings/usb/hisi,dwc3.txt | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/hisi,dwc3.txt diff --git a/Documentation/devicetree/bindings/usb/hisi,dwc3.txt b/Documentation/devicetree/bindings/usb/hisi,dwc3.txt new file mode 100644 index 000000000000..3a3e5c320f2a --- /dev/null +++ b/Documentation/devicetree/bindings/usb/hisi,dwc3.txt @@ -0,0 +1,52 @@ +HiSi SuperSpeed DWC3 USB SoC controller + +Required properties: +- compatible: should contain "hisilicon,hi3660-dwc3" for HiSi SoC +- clocks: A list of phandle + clock-specifier pairs for the + clocks listed in clock-names +- clock-names: Should contain the following: + "clk_abb_usb" USB reference clk + "aclk_usb3otg" USB3 OTG aclk + +- assigned-clocks: Should be: + HI3660_ACLK_GATE_USB3OTG +- assigned-clock-rates: Should be: + 229Mhz (229000000) for HI3660_ACLK_GATE_USB3OTG + +Optional properties: +- resets: Phandle to reset control that resets core and wrapper. + +Required child node: +A child node must exist to represent the core DWC3 IP block. The name of +the node is not important. The content of the node is defined in dwc3.txt. + +Example device nodes: + + usb3: hisi_dwc3 { + compatible = "hisilicon,hi3660-dwc3"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + clocks = <&crg_ctrl HI3660_CLK_ABB_USB>, + <&crg_ctrl HI3660_ACLK_GATE_USB3OTG>; + clock-names = "clk_abb_usb", "aclk_usb3otg"; + + assigned-clocks = <&crg_ctrl HI3660_ACLK_GATE_USB3OTG>; + assigned-clock-rates = <229 000 000>; + resets = <&crg_rst 0x90 8>, + <&crg_rst 0x90 7>, + <&crg_rst 0x90 6>, + <&crg_rst 0x90 5>; + + dwc3: dwc3@ff100000 { + compatible = "snps,dwc3"; + reg = <0x0 0xff100000 0x0 0x100000>; + interrupts = <0 159 4>, <0 161 4>; + phys = <&usb_phy>; + phy-names = "usb3-phy"; + dr_mode = "otg"; + + ... + }; + }; -- 2.17.1