From patchwork Thu Dec 12 01:42:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 181376 Delivered-To: patches@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp280386ile; Wed, 11 Dec 2019 17:42:41 -0800 (PST) X-Received: by 2002:a17:90b:8d6:: with SMTP id ds22mr7192936pjb.100.1576114961058; Wed, 11 Dec 2019 17:42:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576114961; cv=none; d=google.com; s=arc-20160816; b=M40mhA+pysCFdA+AZOwDJ0rDymWHUWrqxWW08PvilOripJrBpwIfceXW11IR1EEIwH scGVR1tDQLpKr+K/3c8EwvX5/H7OCSmBIxFeL7g9Gnfs0QMUEWTRfWlAugmpe/aAcYxm rNoUv/GGekzERIC4AB+f8SEnL2d8rer3DGmfquS6q8lPjUQJzgUF0SjonfAVs+szWFd9 r34FfZhT4Rse+Y8+i/o1Lt2I3InmfTwxRjJN4KaxxjWC8WAbIZQ2UWLRaF6oU3iz0kl8 WA6EpiJzKXD3B5i7+6KlwThAoZYIskhATaYCfGU+1w6WNmHmt5SMtchqtTPuhKjcF11o dTXQ== 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=jz3XZ9gPuD/g+1P6LY7Aq8wTOFKwQIrTyqi7Mx3AGIU=; b=pl2SZJSaFyiGtEhHc4v+uD9NZrqP/qaMtH0aClmKUa1dDT0Y4S0EmCd5Eu4684X7Nj M9bpPhhg3XPj7eotbLBF/+jkxo199deU2eO9T/kxB7asXiBcltloQ2/fYFWxW3Md+Tlb rn/vfqdpivcYF7H2b05ItZD8nNsdHZpicRStFAr5XkKbkqE8pTjZ5uHwR5W87Isrh+mT mtDCEf5x6E0ZICJSibW++50LKsKqqsgOlN05mV8jdyc6ezt/LqcHDxjZuddICzfbNpSi HjyajvjJxVg0s61+dR2QUL4eu2VMvBnN9KODwDhGZl1uYh4uu1smlFuD11qxBSC6Fiop WNRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ADWf++LN; 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 r4sor4440969plo.60.2019.12.11.17.42.40 for (Google Transport Security); Wed, 11 Dec 2019 17:42:41 -0800 (PST) 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=ADWf++LN; 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=jz3XZ9gPuD/g+1P6LY7Aq8wTOFKwQIrTyqi7Mx3AGIU=; b=ADWf++LNikL2sGcTcPh38acVlVtjYE212k4TEnvD+Rlztp08dFU+PiVdolU95yghh6 if+zoAeLlhz35y8sJOpcVWTpgCkbiTRdT7UVFZ8NunPzp3KQLHiuLU72mrPDlXlgSFzF Qg76tZUqRmSr54W87h1n0CZgA6NFZHf0PBE/vqGlb5jKzdYrpuWrOVyOJEBBJG/+wKbG AjkTYbw+imyPgYY5IOoJieUH9yT/QpO6cub+CG/cQiNynfS9eC9OgqL54UdE51EvzMYi I1BjdPjZYGckxWevF0rkr1EtzpTBv6ZZjAcidkSpzf8uiRC9c/6TSiuLBHGL6on42fkM pptw== 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=jz3XZ9gPuD/g+1P6LY7Aq8wTOFKwQIrTyqi7Mx3AGIU=; b=pPOG2XKUEDdRNOt/dfKI9QRuIAPes89o0F0U+dDTSoBZYdmeppjZHCTYFszlH0E2rH tPvEp6PSrqf5m5L/DAtu1+4tqvIGj1Em9b8JGQYEzFRz3TKD2Wd0+L7i7NNWhE0/n6Hh P6Sdqm2ZsqIANU+GYtGm0d4Ts1Ldoovm32ieqkDGakXxQyOqwyZcvTs66iyrPmJLBnrm /jdAF+Lmr9EQ3Wae9TS0lEzUly2uFMNP0Hf4zeISStZuHdQNiyeg6FegqqxgE6yNISSv Gq+7GBQT20K/pYL82P1lXoRMTIfUzZ4IOQyJZBCppwqSZZMFHIQKLPmnDikC55A5lE6t ALAA== X-Gm-Message-State: APjAAAU0n0JpOfUPUxniOaKYxdo06KET1IbzNFTPcUS6sawEXBjKi6du XC1WNq3wcfqDQwWPTTkyCZt0ki/w X-Google-Smtp-Source: APXvYqz745Iom7BCnhPJbNjWnLV0N315h5uwmC47BUMzZV6zx6EdHy7BP/H0GGZcWSHDGlWW5rf7jA== X-Received: by 2002:a17:902:8608:: with SMTP id f8mr6851979plo.106.1576114960549; Wed, 11 Dec 2019 17:42:40 -0800 (PST) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id p16sm4217996pgi.50.2019.12.11.17.42.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Dec 2019 17:42:39 -0800 (PST) From: John Stultz To: lkml Cc: John Stultz , Greg Kroah-Hartman , Rob Herring , Mark Rutland , ShuFan Lee , Heikki Krogerus , Suzuki K Poulose , Chunfeng Yun , Yu Chen , Felipe Balbi , Hans de Goede , Andy Shevchenko , Jun Li , Valentin Schneider , Guillaume Gardet , Jack Pham , linux-usb@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v7 4/8] dt-bindings: usb: dwc3: Allow clock list & resets to be more flexible Date: Thu, 12 Dec 2019 01:42:29 +0000 Message-Id: <20191212014233.32799-5-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191212014233.32799-1-john.stultz@linaro.org> References: <20191212014233.32799-1-john.stultz@linaro.org> Rather then adding another device specific binding to support hikey960, Rob Herring suggested we expand the current dwc3 binding to allow for variable numbers of clocks and resets. Cc: Greg Kroah-Hartman Cc: Rob Herring Cc: Mark Rutland CC: ShuFan Lee Cc: Heikki Krogerus Cc: Suzuki K Poulose Cc: Chunfeng Yun Cc: Yu Chen Cc: Felipe Balbi Cc: Hans de Goede Cc: Andy Shevchenko Cc: Jun Li Cc: Valentin Schneider Cc: Guillaume Gardet Cc: Jack Pham Cc: linux-usb@vger.kernel.org Cc: devicetree@vger.kernel.org Suggested-by: Rob Herring Reviewed-by: Rob Herring Signed-off-by: John Stultz --- Documentation/devicetree/bindings/usb/dwc3.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/Documentation/devicetree/bindings/usb/dwc3.txt b/Documentation/devicetree/bindings/usb/dwc3.txt index 66780a47ad85..29768b0ca923 100644 --- a/Documentation/devicetree/bindings/usb/dwc3.txt +++ b/Documentation/devicetree/bindings/usb/dwc3.txt @@ -7,7 +7,8 @@ Required properties: - compatible: must be "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" + - clock-names: list of clock names. Ideally should be "ref", + "bus_early", "suspend" but may be less or more. - clocks: list of phandle and clock specifier pairs corresponding to entries in the clock-names property. @@ -36,7 +37,7 @@ Optional properties: - phys: from the *Generic PHY* bindings - phy-names: from the *Generic PHY* bindings; supported names are "usb2-phy" or "usb3-phy". - - resets: a single pair of phandle and reset specifier + - resets: set of phandle and reset specifier pairs - snps,usb2-lpm-disable: indicate if we don't want to enable USB2 HW LPM - snps,usb3_lpm_capable: determines if platform is USB3 LPM capable - snps,dis-start-transfer-quirk: when set, disable isoc START TRANSFER command