From patchwork Thu Jan 5 06:01:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 9498517 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 816BE606B5 for ; Thu, 5 Jan 2017 06:54:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7138527F81 for ; Thu, 5 Jan 2017 06:54:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 65ED627F89; Thu, 5 Jan 2017 06:54:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B79F827F81 for ; Thu, 5 Jan 2017 06:54:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935676AbdAEGRq (ORCPT ); Thu, 5 Jan 2017 01:17:46 -0500 Received: from mail-bn3nam01on0059.outbound.protection.outlook.com ([104.47.33.59]:56737 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1757567AbdAEGRe (ORCPT ); Thu, 5 Jan 2017 01:17:34 -0500 Received: from CY4PR03CA0005.namprd03.prod.outlook.com (10.168.162.15) by CY4PR03MB2471.namprd03.prod.outlook.com (10.168.165.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.817.10; Thu, 5 Jan 2017 06:01:30 +0000 Received: from BL2FFO11FD038.protection.gbl (2a01:111:f400:7c09::105) by CY4PR03CA0005.outlook.office365.com (2603:10b6:903:33::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.829.7 via Frontend Transport; Thu, 5 Jan 2017 06:01:30 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none; nxp.com; dmarc=fail action=none header.from=nxp.com; nxp.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11FD038.mail.protection.outlook.com (10.173.161.134) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.803.8 via Frontend Transport; Thu, 5 Jan 2017 06:01:29 +0000 Received: from b29397-desktop.ap.freescale.net (b29397-desktop.ap.freescale.net [10.192.242.114]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v05619tA025211; Wed, 4 Jan 2017 23:01:21 -0700 From: Peter Chen To: , , , , , , , , CC: , , , , , , , , , , , , , , , , , , , , , , Peter Chen Subject: [PATCH v11 1/8] binding-doc: power: pwrseq-generic: add binding doc for generic power sequence library Date: Thu, 5 Jan 2017 14:01:52 +0800 Message-ID: <1483596119-27508-2-git-send-email-peter.chen@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1483596119-27508-1-git-send-email-peter.chen@nxp.com> References: <1483596119-27508-1-git-send-email-peter.chen@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131280696900865335; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(7916002)(39410400002)(39380400002)(39850400002)(39400400002)(39840400002)(39450400003)(39860400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(7416002)(104016004)(5660300001)(2906002)(6666003)(5003940100001)(33646002)(626004)(47776003)(356003)(7406005)(54906002)(2950100002)(2201001)(39060400001)(4326007)(77096006)(8676002)(68736007)(81166006)(50226002)(50986999)(81156014)(8936002)(38730400001)(85426001)(86362001)(575784001)(8656002)(36756003)(48376002)(106466001)(2171001)(76176999)(50466002)(92566002)(5001770100001)(105606002)(305945005)(97736004)(189998001)(41533002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR03MB2471; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD038; 1:yG0DtyQWwSL3jzSmxW0Siuc+BIAxvmuo66FDZeSPknr3VdXJycpo4G55UJavsbaunpdXlj9kCXCYfjQCAYZOqV+YAKDryD8k8X70VRNCRSJHruNrBDIT+nQDRjUWOMGNDVqQ0+3g8mCDi2N2s2nAHaGxdG/vZSi6WDoDCYD2EMt8R3Fr5VkPzq/J9ykzQjwXLFqAsn9V9k8OlBOKiuOY74fVPM0FQpfye35S0c2k+iBEJdfkzy70P7JyjP6vsIgcY82RNciXi3lvTJUeRvlDlF9g1DF9xR05m6MKmQWmBGTvSW4sEjd/wLSEf3MkCWu4Rl4B3If4TpGhv260lxsRV9jeq8vxzuBIuDROFhXyghx8ZBWfVnkG0WEl7CuiZBRZd/sHP/oj2tiZARUi6xeOpHrRVWXU1FRDhS8D3rOdJJ0FXERe4UQIYGm94npn8acmgSoKUr3p9ILh/Zu4LHaZbsoxEOjsm+tleI6gVEIhaCeQ7iv/p0JNAHnmSd/0Jn3ui3r7dasIZgqPXzesCcahcRU9NsvcoqgCqNqvwEit4gCehSbJjpg2msMcyukWc/6FrszL0w0rSav4gaVe+huTx7ejEsiRGvhF00sb3NQlzPHwmcB2Ad/Jn256W6KhO3htIIilhEWDVgUKalmT4n6zXV3z6894dqcirNLdqLb0w5QwQxoOIsI/ourJOFMuuucMQV6QYkwovu59Y+FBZ4nN8uYzs2h2U22ZmfIFnN6fOFhPTkbZ8Q9ehoSUaF+ALA7Q MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: cb95dbb2-4ab8-434c-4d37-08d435304b1b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:CY4PR03MB2471; X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2471; 3:OwAaTdwOGXVYe7UQbTtwC+MieVGQjjz2R+LescEg3nMhYQ/rvqJy3vK/aIZWb6aLJvcX7eW+nk1hfg6ZQPfT3/ySHifmrze9RWfMAXppRQ3UBlJEmyr/MZHMe/7oDnBNebT/502gWq0NNLIXHjh+udWlSr2OejwZOxeiMmE8mKujJBVskuWUWF/QXW8K7e/5LmGTr/fg1MybpsQzS2solAb/zUOAZZoYuX/GXQ+MS73DKBOukDEUb0TG3DtKjOkeKZcoXcpJDnWoclx6JGpjuih2zECnZeQsf8yKliwTKn7Vou14lqbp1Lqzgl3uqSRylhB3unEWoREyOgH5cncn1h6KEZyRmPlWLQOTFrTEoQ6TEZqG2HF2ezAc54OZy0fc; 25:ru4u94b5s6DGtwbQbsQNEafnBkLyHYQPatEOcx+XVSZ+6oQN2nWIUkKlsRuIpAxzVFIk731NDmvKXbknI6lSS61tSy+PnTJETswX4VTxfMH13q/EB5GIt6TNg78fwkliqvSj45+nGSuEYHvuTKchAPkrIQO8BsRhlp6ypUrFy6zdPkICc+hBi0wAPNdpy3mYvIS1UdGgXkwnNl2ei9uRDxusC3BO0oyJBr+pCczQU6+jseZCSqf9KfYHB6zYlQIlvz1ZuQEujOv+6EL9i/nNwEG55ZJlR8ctfluFljXb+BiLT0Wy0Tc5Q+iOUBl4JnS6hiEP/1EF9A4b+wcR54x1W7TsSkQVO/TIy14VGOzPR3xnyj4wA/h5cLkZDMuB9zw7L+1vhJOE0soaqoGx4/yok9LJLT/RoXRMf1iucVW80MXnaDrl1uJohrLfC1qJScrK X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2471; 31:fR8ebO0MZF8iswPjKaEpdDe9tY/V8ucQFXzqnkdvHZen96IQxgCHWuSQ2CAhVQW7c5oga235t+FelsCAAt/yXrGNGnLOwTghEEQTQI3TMGx/TbLdv2klrf7S/BfNZ1tqS/jdZ80VncNO5PsptBR2sWf7YllddXX46SXYQSU+DSIOdWEggav6d56IefMmVphbaSoEzyx1oOpIBtjtvFzKi52WcT2fTvZ8i1nd+FYGnTz5SCIo/QUc6HrObUKY/xQvRfAq519wJkXc3CXkRk4bug== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(5005006)(8121501046)(13024025)(13023025)(13015025)(13017025)(13018025)(10201501046)(3002001)(6055026)(6096035)(20161123563025)(20161123556025)(20161123559025)(20161123561025)(20161123565025); SRVR:CY4PR03MB2471; BCL:0; PCL:0; RULEID:(400006); SRVR:CY4PR03MB2471; X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2471; 4:65MhNaTaZWjJ95VNc8mxaK4fF5q+/y+dn98qeBCsGDDgP0tAj2JKpktNDhVHbipCnlwrIopWt6Y4oWEG4pkCbkB2WjDhEiVU0Nv2OHfnGsXACjpU+qnEZ67a0JdFQI7XxHaFABh0yl0s1n5c9ds/c8cxNlxeTQCJjh2FrZAT17pSvGp8c6FsOssrDbd7zEdFHlgUwPEFqg98Qew7E3uzWWSpAiAi+MV5Yj+rSEiET9OmjpN/Nt3YK8CjUgMHfu8ZoBIm2jRGnF3IMEgdxTogloOcTyqWgFAbh3JqoFg53q2rT8mHeVUGumBklYiFtgtCFNnXZ0+ZZT80Zp81xDmfai6LaeZj5gCIzzqtWo4WHwl4jwxHptf1RhQ0WBsKYr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Vpn559PLAaclgH61j5KnZ0EN1zxI+29ETfzWHYYbWzAecJmbNBVdO9XbNQTQ9jSebbYbv4fQ/qoJBtgCC2F6Mc79rStrTIEUMrUpA7e58X+wqdPLTXdA8uwnr/BiQCHbUYnX0swR6w/L9YNrcbZd0RNLQjBL1tyecDPxugFL2TDAMmJz6rKP2Sb7R8fQ9mNp/wzUgqxCTlsFF3J6AbiXIr/Q0mJL0KUMXJy8c+K8g0XOvXPimTBlb5vFGDRmDxUY9/PPJSpryfY3R3tsDEO6JFRzISyAuSdbG+Szzm+Q== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jan 2017 06:01:29.7745 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR03MB2471 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add binding doc for generic power sequence library. Signed-off-by: Peter Chen Acked-by: Philipp Zabel Acked-by: Rob Herring Acked-by: Krzysztof Kozlowski --- .../bindings/power/pwrseq/pwrseq-generic.txt | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/pwrseq/pwrseq-generic.txt diff --git a/Documentation/devicetree/bindings/power/pwrseq/pwrseq-generic.txt b/Documentation/devicetree/bindings/power/pwrseq/pwrseq-generic.txt new file mode 100644 index 0000000..ebf0d47 --- /dev/null +++ b/Documentation/devicetree/bindings/power/pwrseq/pwrseq-generic.txt @@ -0,0 +1,48 @@ +The generic power sequence library + +Some hard-wired devices (eg USB/MMC) need to do power sequence before +the device can be enumerated on the bus, the typical power sequence +like: enable USB PHY clock, toggle reset pin, etc. But current +Linux device driver lacks of such code to do it, it may cause some +hard-wired devices works abnormal or can't be recognized by +controller at all. The power sequence will be done before this device +can be found at the bus. + +The power sequence properties is under the device node. + +Optional properties: +- clocks: the input clocks for device. +- reset-gpios: Should specify the GPIO for reset. +- reset-duration-us: the duration in microsecond for assert reset signal. + +Below is the example of USB power sequence properties on USB device +nodes which have two level USB hubs. + +&usbotg1 { + vbus-supply = <®_usb_otg1_vbus>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usb_otg1_id>; + status = "okay"; + + #address-cells = <1>; + #size-cells = <0>; + genesys: hub@1 { + compatible = "usb5e3,608"; + reg = <1>; + + clocks = <&clks IMX6SX_CLK_CKO>; + reset-gpios = <&gpio4 5 GPIO_ACTIVE_LOW>; /* hub reset pin */ + reset-duration-us = <10>; + + #address-cells = <1>; + #size-cells = <0>; + asix: ethernet@1 { + compatible = "usbb95,1708"; + reg = <1>; + + clocks = <&clks IMX6SX_CLK_IPG>; + reset-gpios = <&gpio4 6 GPIO_ACTIVE_LOW>; /* ethernet_rst */ + reset-duration-us = <15>; + }; + }; +};