From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2092BC4360D for ; Wed, 25 Sep 2019 23:42:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EC22C21D80 for ; Wed, 25 Sep 2019 23:42:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="F2fzRlaL" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732941AbfIYXml (ORCPT ); Wed, 25 Sep 2019 19:42:41 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:38018 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732774AbfIYXmi (ORCPT ); Wed, 25 Sep 2019 19:42:38 -0400 Received: by mail-pf1-f195.google.com with SMTP id h195so533601pfe.5 for ; Wed, 25 Sep 2019 16:42:38 -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=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=QixTUjqkQKm6pIM21x29AXoM5cN0mQ7vRAKOjXo2cSzOz2lH45Ljc1SU8F+Ry0E3jP L1+l2z+uXipH566lHcpjlo084eiS7klAAsmoEQ/Aom12fl+i/RzkBrMIeEorEcC14XJp qqrY7Dt4zTlWt7Wd0Jros9174VuhcGOxbCXY+JkukduUIuGYTG7kYTclW1QKU4Qc9ruD 1HWrhi84osqB/PC3VqKYFOY8hqmMJpf8ImyMsNAU66puw8HqrGED6FqnoXtjpkHHAGjS j5dOUQhRQk0y1aqR48XZG8T57v16DthqEI7Ao/wRbSzY8A6ZZGutn+mXgza0GUXlyR/g pRtg== X-Gm-Message-State: APjAAAUdr746w0aXyS+h3/78a5/WQGtN8hoPRNOUX2yOUmgJk4bbBoK1 E+XqXGn8VpcKRfua2xxclb02IwJMX9o= 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) 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> 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 --- .../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..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"; + + ... + }; + }; -- 2.17.1