Message ID | 1470646331-23227-2-git-send-email-peter.chen@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 8E70460871 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 8 Aug 2016 09:04:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7CA1127FA4 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 8 Aug 2016 09:04:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7123C27FAC; Mon, 8 Aug 2016 09:04:32 +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=-4.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EB83627FA9 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 8 Aug 2016 09:04:31 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bWgSd-0006kQ-Hu; Mon, 08 Aug 2016 09:03:03 +0000 Received: from mail-co1nam03on0066.outbound.protection.outlook.com ([104.47.40.66] helo=NAM03-CO1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bWgRo-00067X-7f for linux-arm-kernel@lists.infradead.org; Mon, 08 Aug 2016 09:02:15 +0000 Received: from BN3PR0301CA0031.namprd03.prod.outlook.com (10.160.180.169) by SN1PR0301MB2062.namprd03.prod.outlook.com (10.163.227.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.549.15; Mon, 8 Aug 2016 09:01:31 +0000 Received: from BN1AFFO11FD022.protection.gbl (2a01:111:f400:7c10::195) by BN3PR0301CA0031.outlook.office365.com (2a01:111:e400:4000::41) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.549.15 via Frontend Transport; Mon, 8 Aug 2016 09:01:31 +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 BN1AFFO11FD022.mail.protection.outlook.com (10.58.52.82) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.557.8 via Frontend Transport; Mon, 8 Aug 2016 09:01:32 +0000 Received: from shlinux2.ap.freescale.net (shlinux2.ap.freescale.net [10.192.224.44]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u7891D1q013331; Mon, 8 Aug 2016 02:01:24 -0700 From: Peter Chen <peter.chen@nxp.com> To: <gregkh@linuxfoundation.org>, <stern@rowland.harvard.edu>, <ulf.hansson@linaro.org>, <broonie@kernel.org>, <sre@kernel.org>, <robh+dt@kernel.org>, <shawnguo@kernel.org>, <dbaryshkov@gmail.com>, <dwmw3@infradead.org> Subject: [PATCH v5 1/6] binding-doc: power: pwrseq-generic: add binding doc for generic power sequence library Date: Mon, 8 Aug 2016 16:52:06 +0800 Message-ID: <1470646331-23227-2-git-send-email-peter.chen@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1470646331-23227-1-git-send-email-peter.chen@nxp.com> References: <1470646331-23227-1-git-send-email-peter.chen@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131151204924288565; (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)(7916002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(229853001)(2906002)(50466002)(4326007)(106466001)(68736007)(2171001)(575784001)(77096005)(86362001)(33646002)(2950100001)(2201001)(5001770100001)(105606002)(189998001)(92566002)(97736004)(8666005)(48376002)(87936001)(47776003)(50226002)(586003)(19580405001)(19580395003)(104016004)(50986999)(356003)(8676002)(5003940100001)(8936002)(305945005)(81156014)(85426001)(7416002)(7846002)(76176999)(11100500001)(36756003)(81166006)(7059030)(41533002)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR0301MB2062; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD022; 1:0Gef9AsTaSDs26T/BNYEn5XXY/mnFVOtWnVakkPvU3dk1XW2U8krFodHi6VNwdxwgus/Jv3GcY+17LBQZpGv+bb4O+P+jil0l6JIb84u6n7+W1Bh972X1+QmeyElNSH0DNu0gh+/pHy/HYG9Nn1EUBSNzFD9orS0ROSVDaZwJRhMhbLW+4Cjs7TeyGsY+cGv0Cw7tcHgauqxKDW8U4a2RdztMCwHuZS/IlW3RsZEaQzeFvmywAt1jbPngzkQ0scjgXw8mlSn7clpNvcTl0I5RRfPd7BbesnVLWRwmgyqGNws968CfaSTuE+iylJglB9R/6wQUdrfbvTv5SsG01UndbFJx4V+/8DpVYS3L8gG5+QAAxKLDtSARFQcNGf3UliNRiDy2QJ/zjvQF57er73F1f8cFz8WjhCmoyA0UpGTpSbsyfYrIlmMHplpWVKulS1prqNlnA1TvjrRZpTYaYJivWwfLvK5OtbV0YzAiwJuLWN1x7z8VjnPpw+wRHx5tIweOAZsZgIEVTFgT3DYmh3n+CzpGT5tpEabK/pXTtSDwwGpo0EhBF3G9VLutuHRrnLDYgB1NR2UaBSPu7nvlb2v0S7yBWt4Jgr06B4iWC39b06y02+Gb2ivNtC+LLG3uLSb6BhrOn+m6SBt+VFMHr4vIYhiOaWknoNjE9f6A02R1AJJdEfCO8L2va5aY3VcaFo3aRT4uHhUj2vk3WHcsRWP7ONHXmhWz/eBBDKLAbhs1H5WKjW5v6pMYhyc3LVhu02M MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 61df5208-61e7-4409-6e35-08d3bf6a97d7 X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB2062; 2:zRuurdQd7oCrkOAfhMk+Yh+adFdnb6jhCzCpMbrwv2GM8GAOQboE8UmRwTskAUO+TCSf2MJcvkBdoxeZqflhvN1YWk/nie8XE5focG1TvQSkmSFMD8Aa9y+okiIRUwxvGZaEBOaCPmhymHHxp6zcWUvK0/q0i2F2WRPcagM1BA16SFeInndlsf4UALzid3tD; 3:WP1LC2Aun+U+4heq2cFX64S4vSlRFCI3N2nSVjkN2QZlRaAZcj6XM4+dVJQbOxpiMNPsNClaut120hWuTBKDE4bXvwMZKZEcI3C5LXvImJgumuvduApTzSr+mQ8EU8/+0xpi+6E9njFVGCtj30l58BlbTeQj8W6FchE/+SXztLu5ViTmxwjkn2ckGs5ePdGzyl/Neiw1YaDM7m1BwmQOZfXsHFpZmJNqyZJZL1qxqh0= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SN1PR0301MB2062; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB2062; 25:bQsUrUglCDPZGprVWoeV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rkuCfYwczMK7MMcJ02zzkRzjc3JujoACcV9TNZksVdv1wwJIDR59MLnHfbue/bj0z4Var60gHnip71mVa3h0Tb26X7y6dvsfyjPY10i7tq7+oiuR7bkI4nZi44zi5IpzjtQ9apCekmLlDCyxWSuATuFNXc2q3AIwypmWHlpCDkD/Vzxv0gJb+e38rHQXOL8L/McDKmT6Fle8CA02NT2tPo2OyAV7kk5a7SzyuiRaEUHtFYOsECs7JJN6bQCdKch9piON2imsC2sDeSwWKQB6gfloDdlpjR1zjWnIsctHW96tlH1upv3OAoluQ/ywCoeG3NnKVOIobPkjZdIZ3TL7a8ZN7G0ls1g905BZX/tf36kYMvHHTX+VQzsEoVzHgxIwRyjcoUwy7M9xqK2FCm4v96ezee7OGsQv9LP1g2bwb7mdoG1wbS6fZ0jRX4POCacxfx/g1hgM8cKUTSbBIC10dMvRUhCZgh0Vg== X-Microsoft-Antispam-PRVS: <SN1PR0301MB2062E391E56A7306C9B264CD8B1B0@SN1PR0301MB2062.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13023025)(13024025)(13015025)(13018025)(13017025)(5005006)(8121501046)(3002001)(10201501046)(6055026); SRVR:SN1PR0301MB2062; BCL:0; PCL:0; RULEID:(400006); SRVR:SN1PR0301MB2062; X-Forefront-PRVS: 00286C0CA6 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR0301MB2062; 23:qt7j9Mzlg+IIMewFR3OvddK+aCu+JoRmCgsd7Wd?= =?us-ascii?Q?kThyepJzMyLTYFa3ikl1t89CV3jZ3l0ZpF6ohG/9QzT+wKVaCKevb6Upi5jd?= =?us-ascii?Q?a0ku7rJCuR5v6WUCC11ZuwytoBQ/Uy60jwh7iV3CmVaos03WR6Y4omkloEc6?= =?us-ascii?Q?6wEBbXJyAHt+oaKV1aldQu1wl4NXWG5krSY9qla+klqOoPbzbjZV6Yt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laQIhfH2jB1icjI SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Aug 2016 09:01:32.1948 (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: SN1PR0301MB2062 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160808_020212_549932_7F5C64C7 X-CRM114-Status: GOOD ( 17.42 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, k.kozlowski@samsung.com, stephen.boyd@linaro.org, oscar@naiandei.net, arnd@arndb.de, pawel.moll@arm.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, s.hauer@pengutronix.de, linux-usb@vger.kernel.org, mail@maciej.szmigiero.name, troy.kisky@boundarydevices.com, stillcompiling@gmail.com, Peter Chen <peter.chen@nxp.com>, p.zabel@pengutronix.de, festevam@gmail.com, mka@chromium.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
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>; + }; + }; +};