From patchwork Wed Sep 25 23:42:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 174435 Delivered-To: patches@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1313530ill; Wed, 25 Sep 2019 16:42:38 -0700 (PDT) X-Received: by 2002:aa7:9ab5:: with SMTP id x21mr329404pfi.252.1569454957987; Wed, 25 Sep 2019 16:42:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569454957; cv=none; d=google.com; s=arc-20160816; b=qxjR/WLILJPSTDg+LTLX1f7jkuWmDZC7z2OUe978h5su2rBnucd79SyKn9saNLH2/S UAbIRQIPoVAdLZDi277ZCzYIqUmkfV6UX5+RgQioqb8CZ4GCXOfyQw0NI7jYSjEbVptS xtWm2YMkzjlvQbrI3Fx82rWQVnweZCGirSshANKZgnF/xNhoinezMpw6VFdos7W7+yPe Q9NYpeq6ZMclfySR9/57grkFH8zE9uYFydpU7UzU0HkFuTi00jWU4mHoy0HgryGg1oQj Q7XmEX4wed5oMzlqcepnMPwYeOucM9+CvLOwPeSE3zc6eDF6JKIdIMqFktAwUMXQI2qB qn+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=PmHyEUv1I7IOVWdSAFJf5v6u4/LdnM00Z/zUoJS1vWs=; b=r7yhFYSmrfuOWcrg9Fc+dvYQBSvNTnvvzQnHyIgEOdUIexKicP4ggjgyH8Ia+ZuY+2 hkOGji45oNMfgMebwuLlf92DKs9nI+/6hUBaQ1dbyg1o1X0mhjc5FzdMOtraZj60Jp70 PZ7wGwlOJg8k9c5ivWtLLkAugCbujUeH1sb4DwDgRMZ+RDWcn4/kIxp3jbSZWPcu/uV8 gZj9VoHvwKhiiuuC6FrJFzmuSKOpPbRNjfsqk8etzY11JyrqVgGcwZ+XOmr50gOQj5hK Y3mR9uDCUqGimf4pzRKSfFz9BwhC93VALeSfhwiGULVi6YYtDznuR9WsmzymYAqxeLUP H/RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F2fzRlaL; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id n10sor574024pjp.2.2019.09.25.16.42.37 for (Google Transport Security); Wed, 25 Sep 2019 16:42:37 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F2fzRlaL; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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=PmHyEUv1I7IOVWdSAFJf5v6u4/LdnM00Z/zUoJS1vWs=; b=F2fzRlaLxb7Dor1xMHruTiW3m8u0J71MgkiCzmctu3CaYBMx9IqtG0t1zNrX+rO5HU Lmm2w1A7qm0FeajykEQHXtAEU9inq9YurkMfU5LlHwVzUfkQ4cjhLNqDae8zgQnHjmWS XxP4pApy0dbOcpsjTnPOOS9M9aGKKRAtCeONkyUl1+VCst4I217sYUWXL607uYicsNqA 7agGaZFFLEzvqTbsXgYcs1/F3F13cyeI4mwamCJyftXMV7a1gzHmDptgKaP1YnA0m73K nJfO5SbB9E5w4KLCqkKegUw3tjhBE9LwErWfabsl6HStujRiVYKvSZo/DDlEZJ3ljK+H F4pQ== 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=PmHyEUv1I7IOVWdSAFJf5v6u4/LdnM00Z/zUoJS1vWs=; b=I90PRhCQigF+SbZ5F+vSe85n2LQQ0cFA18gHyI69QdLNonHyvXxwEsvc6083RIzO2q 36OCxIw32KhbLMrQcArJ5ub5kP0hEHIT4cySvdnXKLHBO5bitSCuJMwB9zW9dUhm9som XVesb9lR9x9ie/oZZjO3xFYolP0Kr6/l2TKZ7U6RXy9pw6bxYNPWEytW8UnylX+YTjlG 09dwL1rrCX8Fm3E2TLSWQrAbuR/d9fEsKVt5NvWltUlxRFK35zemIZSHl6ILoEtgh1Dj CF77QHiFR+hzapVHcpAP5sCm/ZmS5RbOezyb5gYeYcKWAeXYzd5Q0a8ZrgRVqbhc3t90 QGeA== X-Gm-Message-State: APjAAAWlxBrnMk6oWetHQUAxI0zEf/ox7AAyPNl+7NRteDTijwTyJAv/ KIdIW/8xPxOI9+5Xwi0rFekzY/jH X-Google-Smtp-Source: APXvYqzckYaJvastZyMKVUDhmfHnddTevUdoy7ojBqVA4rHuXKdLY2ZSTQjIvMnlLnPMg3zPgDgdaQ== X-Received: by 2002:a17:90a:ff18:: with SMTP id ce24mr267275pjb.123.1569454957565; Wed, 25 Sep 2019 16:42:37 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id d1sm131127pfc.98.2019.09.25.16.42.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2019 16:42:36 -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: [PATCH 4/5] dt-bindings: usb: dwc3: of-simple: add compatible for HiSi Date: Wed, 25 Sep 2019 23:42:23 +0000 Message-Id: <20190925234224.95216-5-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190925234224.95216-1-john.stultz@linaro.org> References: <20190925234224.95216-1-john.stultz@linaro.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 --- .../devicetree/bindings/usb/hisi,dwc3.txt | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/hisi,dwc3.txt -- 2.17.1 diff --git a/Documentation/devicetree/bindings/usb/hisi,dwc3.txt b/Documentation/devicetree/bindings/usb/hisi,dwc3.txt new file mode 100644 index 000000000000..dc31b8a3c006 --- /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_usb3phy_ref" Phy 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_usb3phy_ref", "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"; + + ... + }; + };