Message ID | 1476413995-20361-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 9CB8F60839 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 14 Oct 2016 03:02:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 896D72A193 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 14 Oct 2016 03:02:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7AC782A24B; Fri, 14 Oct 2016 03:02:42 +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=ham 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 C952F2A193 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 14 Oct 2016 03:02:41 +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 1busk0-00023J-P0; Fri, 14 Oct 2016 03:01:00 +0000 Received: from mail-bn3nam01on0064.outbound.protection.outlook.com ([104.47.33.64] helo=NAM01-BN3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1busjo-0001lj-O1 for linux-arm-kernel@lists.infradead.org; Fri, 14 Oct 2016 03:00:50 +0000 Received: from BN3PR0301CA0068.namprd03.prod.outlook.com (10.160.152.164) by BL2PR03MB324.namprd03.prod.outlook.com (10.141.68.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.659.11; Fri, 14 Oct 2016 03:00:26 +0000 Received: from BN1BFFO11FD050.protection.gbl (2a01:111:f400:7c10::1:139) by BN3PR0301CA0068.outlook.office365.com (2a01:111:e400:401e::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.12 via Frontend Transport; Fri, 14 Oct 2016 03:00:26 +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 BN1BFFO11FD050.mail.protection.outlook.com (10.58.145.5) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.629.5 via Frontend Transport; Fri, 14 Oct 2016 03:00:26 +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 u9E3085P011345; Thu, 13 Oct 2016 20:00:18 -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> Subject: [PATCH v8 1/8] binding-doc: power: pwrseq-generic: add binding doc for generic power sequence library Date: Fri, 14 Oct 2016 10:59:48 +0800 Message-ID: <1476413995-20361-2-git-send-email-peter.chen@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1476413995-20361-1-git-send-email-peter.chen@nxp.com> References: <1476413995-20361-1-git-send-email-peter.chen@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131208876265968225; (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)(1110001)(1109001)(339900001)(189002)(199003)(81156014)(8676002)(5660300001)(189998001)(229853001)(81166006)(77096005)(106466001)(104016004)(7416002)(33646002)(626004)(105606002)(76176999)(50986999)(586003)(11100500001)(2171001)(4326007)(8666005)(87936001)(47776003)(356003)(5001770100001)(8936002)(50466002)(6666003)(68736007)(97736004)(48376002)(50226002)(19580395003)(85426001)(86362001)(2950100002)(305945005)(2201001)(36756003)(92566002)(7846002)(2906002)(575784001)(19580405001)(5003940100001)(41533002)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2PR03MB324; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD050; 1:MixR+9Z2E5ylL7VqAfaFLssKwifC/1jti74Yx/hEGsakdfRCbaQqhxk0py2bMvmRlpbfGBPVQnB6xKOrnl0uzltDiSHJFCRHJs5ta2Jb2DJ264iOXUuYFn/z1egbLdNMOOJYO36Zsnhqr3GN1ugUFf3iyWupAu/kkLf3GDCy3U00tM+hlas4aBjdY4B0A+DgQ238hjBSZDXREy7Ne1FXv/GnyHtJLuP/auhGN1ied2rEd23Pi1q9mqvU+W2O5Zj6N+wqt4MeMycyyhl7gBC1G48A3f7JW8W1CsHw6DYVFv41tX2k/XhRK26bhIwTH7ojZUdGuJEJVAOr27xk5I2a2ojGgydx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6e4yH8mKKUqcr6v6biooKegIM+SZsDgDNn4tuOdJWjgTjUzFF6kh2gmrUCUzAJOnvuCdOmVG0KyN7+4KI+IA9P1CYTcCb7MGmSe/FUxUk8Ru/P0cQDWN9AnesK44PjVR7BGvLFQq8J7gW8JB6cct2p+hsfUSwrVBBM6ft8RscJu1JRY0Ht5RwYBURXdR0uYhVioQgk7t5M505FRHZcS8MIEAbeGGjONByS0qr1xSGV9XGmY3thEinUtXxnKqz1GahEdiZfEY= X-Microsoft-Antispam-PRVS: <BL2PR03MB3245FB2D42B06FB892066C98BDF0@BL2PR03MB324.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(13015025)(13024025)(13017025)(13023025)(13018025)(5005006)(3002001)(10201501046)(6055026); SRVR:BL2PR03MB324; BCL:0; PCL:0; RULEID:(400006); SRVR:BL2PR03MB324; X-Forefront-PRVS: 0095BCF226 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BL2PR03MB324; 23:M4GyplvTLc+xSQRqb6IP5mGt/OS1SM8JaELfBhtXyf?= =?us-ascii?Q?XrxW+pwDLV0QakXUdZF8BzQqlDeQjxy1evLBUeNf5+Dn+aSVjicr6ZbY9iT+?= =?us-ascii?Q?izTsMOR4NLT0iUZkunfNqrDpPXOKL/79SB6hf8s/WLqO9Z+oF9JkSRbQtPOJ?= =?us-ascii?Q?dte4c+slVDhi32Sfk4Eb2TYbhF2sNEZf1WJz7G7xriuGCw/k6VqbrILVHhgN?= =?us-ascii?Q?OupgiffVjhM3x0SgI+DxRVvwu2PZHDApdwfRbM4rJnSlLayI6gTIwkLX6oeF?= =?us-ascii?Q?ZN2+qWbT8nwVz+jphsoZZMY41VtdMBMQwHm+mCYyCWDEa7HpDpr6hPfFuSR2?= =?us-ascii?Q?jcJjG2MFTnGnTenIgDDLrGKvSYdDnr23Ry2S0GCMyOS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E= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Oct 2016 03:00:26.1912 (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: BL2PR03MB324 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161013_200049_047307_E6FF076A X-CRM114-Status: GOOD ( 17.05 ) 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, mail@maciej.szmigiero.name, stephen.boyd@linaro.org, oscar@naiandei.net, heiko@sntech.de, pawel.moll@arm.com, linux-pm@vger.kernel.org, Peter Chen <peter.chen@nxp.com>, s.hauer@pengutronix.de, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, troy.kisky@boundarydevices.com, vaibhav.hiremath@linaro.org, stillcompiling@gmail.com, arnd@arndb.de, 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>; + }; + }; +};