From patchwork Wed Jul 11 04:30:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 141661 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp4650125ljj; Tue, 10 Jul 2018 21:31:20 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfZ0axthsddbP3IoMr3QJUgSOj3bweY5Pvpg0V5dJ4i4Id6B/EV/i1ly3GN16/X4/EUI5rk X-Received: by 2002:a17:902:7888:: with SMTP id q8-v6mr27443906pll.79.1531283479966; Tue, 10 Jul 2018 21:31:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531283479; cv=none; d=google.com; s=arc-20160816; b=Wb7/NILYHs6JGtO/CIKYquNy/iei2zXW3PeaYua1K0I65gOKeHcfNri5SBiMYjby75 +fRvltOM1NB7WStseQN3gfORRxHTWU4558zGJ0wbpD27+yv7roIRmL6NA5bBSgdlGTxF 3ZMPxsyLWIXs+lhc+hbPWonS+yLNalS4uglM69SAp49ek/tIq9FYD6K2tM29JZ/sGZv+ /bvzC2I/JWb39yPZRMg+/wPXZB2yC+i6e61ikaT+pJOJyf7Eve4tVPz4M/o7SVcU9xEf kEfxWYZaDBsSpHACJTwA1XbXDrEPHNPel+YVkrBQ2F4icJg/owLq3EBL+TxvJtdBuVT4 6JRg== 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:arc-authentication-results; bh=nIftcubZsw2EFvKnb0o0/qbrxFchQNeqOm/M1dmX4DQ=; b=0/pc11B5FYtfBf4wKd05cf6nab2nTCYpz1bwAKScKC2xXyCwxuCcSDh+30a+1WdYKd ZvJrMYxWMnp0tMg+fNZGcuOzIy0k3+eQ6RbEDWzYVu4HajI5/Ml3lIqJ/m1vV7X7n/lX KziMTs8ajnuOg/bCf2+E2ndr9ecw0FS5dXgV4aQEJ6didzhaz+Q3YuyzmTuqkBFF0PS5 ed4w22GOPW8aED5yJq0TW/8VIpHDz5uFTqLQjYxUVdKJWqn7XJMMYd3MtwZ5399MiHpz fNFvmqkNdoB8JniEWQw12Pd6wC0y/D9eGUIvH1D+YsANPYbuarr0La/Xzfr6BfLne7rW GHsg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3-v6si18944190pgc.122.2018.07.10.21.31.19; Tue, 10 Jul 2018 21:31:19 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726395AbeGKEdb (ORCPT + 21 others); Wed, 11 Jul 2018 00:33:31 -0400 Received: from mx.socionext.com ([202.248.49.38]:16920 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725856AbeGKEdb (ORCPT ); Wed, 11 Jul 2018 00:33:31 -0400 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 11 Jul 2018 13:31:07 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id EF8C860035; Wed, 11 Jul 2018 13:31:07 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Wed, 11 Jul 2018 13:31:07 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id 5E4A71A01BB; Wed, 11 Jul 2018 13:31:07 +0900 (JST) From: Kunihiko Hayashi To: Liam Girdwood , Mark Brown , Rob Herring , Mark Rutland , Masahiro Yamada Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Masami Hiramatsu , Jassi Brar , Kunihiko Hayashi Subject: [PATCH v3 1/2] dt-bindings: regulator: add DT bindings for UniPhier regulator Date: Wed, 11 Jul 2018 13:30:51 +0900 Message-Id: <1531283452-9705-2-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1531283452-9705-1-git-send-email-hayashi.kunihiko@socionext.com> References: <1531283452-9705-1-git-send-email-hayashi.kunihiko@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add DT bindings for regulators implemented in UniPhier SoCs. Signed-off-by: Kunihiko Hayashi --- .../bindings/regulator/uniphier-regulator.txt | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/uniphier-regulator.txt -- 2.7.4 diff --git a/Documentation/devicetree/bindings/regulator/uniphier-regulator.txt b/Documentation/devicetree/bindings/regulator/uniphier-regulator.txt new file mode 100644 index 0000000..c9919f4 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/uniphier-regulator.txt @@ -0,0 +1,57 @@ +Socionext UniPhier Regulator Controller + +This describes the devicetree bindings for regulator controller implemented +on Socionext UniPhier SoCs. + +USB3 Controller +--------------- + +This regulator controls VBUS and belongs to USB3 glue layer. Before using +the regulator, it is necessary to control the clocks and resets to enable +this layer. These clocks and resets should be described in each property. + +Required properties: +- compatible: Should be + "socionext,uniphier-pro4-usb3-regulator" - for Pro4 SoC + "socionext,uniphier-pxs2-usb3-regulator" - for PXs2 SoC + "socionext,uniphier-ld20-usb3-regulator" - for LD20 SoC + "socionext,uniphier-pxs3-usb3-regulator" - for PXs3 SoC +- reg: Specifies offset and length of the register set for the device. +- clocks: A list of phandles to the clock gate for USB3 glue layer. + According to the clock-names, appropriate clocks are required. +- clock-names: Should contain + "gio", "link" - for Pro4 SoC + "link" - for others +- resets: A list of phandles to the reset control for USB3 glue layer. + According to the reset-names, appropriate resets are required. +- reset-names: Should contain + "gio", "link" - for Pro4 SoC + "link" - for others + +See Documentation/devicetree/bindings/regulator/regulator.txt +for more details about the regulator properties. + +Example: + + usb-glue@65b00000 { + compatible = "socionext,uniphier-ld20-dwc3-glue", + "simple-mfd"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0x65b00000 0x400>; + + usb_vbus0: regulators@100 { + compatible = "socionext,uniphier-ld20-usb3-regulator"; + reg = <0x100 0x10>; + clock-names = "link"; + clocks = <&sys_clk 14>; + reset-names = "link"; + resets = <&sys_rst 14>; + }; + + phy { + ... + phy-supply = <&usb_vbus0>; + }; + ... + };