Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753351AbdFMCAR (ORCPT ); Mon, 12 Jun 2017 22:00:17 -0400 Received: from mail-co1nam03on0063.outbound.protection.outlook.com ([104.47.40.63]:10732 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753157AbdFMCAM (ORCPT ); Mon, 12 Jun 2017 22:00:12 -0400 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; From: Peter Chen To: , , , , , , , , CC: , , , , , , , , , , , , , , , , , , , , , , , , Peter Chen Subject: [PATCH v15 1/7] binding-doc: power: pwrseq-generic: add binding doc for generic power sequence library Date: Tue, 13 Jun 2017 09:59:20 +0800 Message-ID: <1497319166-17287-2-git-send-email-peter.chen@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497319166-17287-1-git-send-email-peter.chen@nxp.com> References: <1497319166-17287-1-git-send-email-peter.chen@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131417928084101201;(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)(39850400002)(39400400002)(39860400002)(39450400003)(39380400002)(39410400002)(39840400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(9170700003)(7416002)(86362001)(7406005)(5003940100001)(33646002)(104016004)(189998001)(2201001)(5660300001)(498600001)(85426001)(50986999)(575784001)(36756003)(4326008)(8676002)(77096006)(50226002)(53936002)(54906002)(106466001)(47776003)(39060400002)(8656002)(356003)(6666003)(76176999)(105606002)(305945005)(2906002)(2171002)(38730400002)(8936002)(2950100002)(48376002)(50466002)(81166006)(41533002);DIR:OUT;SFP:1101;SCL:1;SRVR:BLUPR03MB168;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;MLV:ovrnspm;MX:1;A:1;PTR:InfoDomainNonexistent;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11FD024;1:aQudPOjYuRS44fMZOYacByIlvKQj0PUjmFDL7DA92DBsH13ZtQpW69FSkfER4TglgHUOhBPvGeR/aqhqt4h1+58+e4spF1aqKf1tmiSb/BlcUBq/Ae/EbMRtTSfU8HKBpAroP9IUHur9883GeeOMINpSrqN2f1NDqWvDbZPhDisgC+t2YZVXAQGpWGJzSPqezK1Npi3a23L4bKI0JpniSXwMYaOs5x9DmzK+IuEcGxK77DJ0wvWYzfnjjYOvgOYBHoT9SGci+XnsIsKa7WkQ0diFNWF2vd4Asl2fuQ8iHUMb9cIKB1nj9jfVjTfSU8E5v5GawA52AymhCNQ0TnnplbU6EvIA7IesKOgRIX3JLKQyOaQkvukP01dAeHXUHKVvEjti1qwVbOKMFfWPQBOQOgKrQE71Fp5IM2m3T1IqADtHARP6Qx4HB1zZSpwE+UtYSGp5Myak14vLdi+ppSql5/sXLm7D9s49wxcyTIdyKw+i4IKhAIowF2ePxEewQWSzBQb2EbM0xteFapBVxrg8LwrPiZ+I8ly88WxC66AJHZBSbrXjQZTvoEQKSOxGlrtJf/0/aDP9Yp3tKk03Pu5ufnKAd+Wv5Mq153wOpmtD6DnByfvFBr/ZLgei/jTIqEko+I8sz5YdGwmR61LPbSYY0sBKYpMwGR+D+hvji7SHhD+4e4kaOHBXRnHTJqlkZKMwq6KZPZWT+JyJdqrWNAznjndkXAtrZBXP/0fkW476Za0= MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BLUPR03MB168: X-MS-Office365-Filtering-Correlation-Id: 7a6f0da7-2f67-4b06-1851-08d4b1ffeb09 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131430075)(201703131517081);SRVR:BLUPR03MB168; X-Microsoft-Exchange-Diagnostics: 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I0Ez4txj0T6z1e2QaDumPx3srY5SHKfFiIdndVfnG+vfGm9PippFja+SHkVyKLYzd1IRUOA9QXa0Lfy6ZnRYw/iLAtx3XjlfNY8X+ZtIKmVvpGK4n77Jpl/niYKS3Yv+OPLtwPMoaE3JygJ3cK5cvG X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(13018025)(13016025)(8121501046)(5005006)(93006095)(93001095)(3002001)(100000703101)(100105400095)(10201501046)(6055026)(6096035)(20161123559100)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(20161123556025)(20161123561025)(20161123563025)(20161123565025)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BLUPR03MB168;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BLUPR03MB168; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BLUPR03MB168;4:RVJx8o4PHqIrOc5P6IpqNctSdutvYZyNLZZbxyv1iAX?= =?us-ascii?Q?RekSE7K0FUFS8hlgCdQbo0esckoCbls+kvdKxoj1DxiiEQcLK302erSWv/pz?= =?us-ascii?Q?aSMaVmsGtjz7rkjeltj/aQ6bp/xkxrUTORhPC4xLaBPvHx89Kn1gPbZasAxT?= =?us-ascii?Q?ZaVAFMRuRNWNPoSrCch/yH7EJSrVhGbSqnYqMR7W9Nk6QvGw4t52FNjG8qkq?= =?us-ascii?Q?wCBgScdElUFghxslSalDVm/SRZqgGpfUb/AgKHxAekPlmCRMudZkd+q5TPsr?= =?us-ascii?Q?okTCb+BplueQEOdoCo9Uopyffqk7V5xK4nksrIIRHY2B+P5DVX6TViRSlv+u?= =?us-ascii?Q?dXkcqgL33eQZDr0yyG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ascii?Q?fnwpb1KFkGp61xLs=3D?= X-Forefront-PRVS: 0337AFFE9A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BLUPR03MB168;23:snZcFwFfAACWvOcyp6uHkAztTfEgqa6VtCI3oPGw0W?= =?us-ascii?Q?hfkct5b81VDOiWKcycmseH4dw+BqsKXLdouiAZ8zu8QC3dA49yyAVz9jMzzf?= =?us-ascii?Q?XHSpSV/0kexOm+bDUxf3kdnykwl9gl8q1Y9bmHuAMDROJwIpJHhwYHuK8vRH?= =?us-ascii?Q?A1pgIXxspCSF/eVtxOjUzZdCgRQ1f9M+O8vASTAA75NAP31kzivtp9b1GpsU?= =?us-ascii?Q?rvYboJ+tuotrNFo7p9R6dquqxi2namO3CnsVP9LpVSFJx6gf7m65C1nHvOPd?= =?us-ascii?Q?w2W2YyX2Slun090uWAMYHis7CTKMVMceSPL02EMBPZdA1/KUDxZLgcTWJQqa?= =?us-ascii?Q?gV3DF66lSqQ/75DAve2eJAnyAqa1O2VgtHocC4ded1v401xR0vgMUmL6GEF+?= =?us-ascii?Q?rjtjJkkZWQBRHo/OfbkB+5ldvL8CTtR5s9CzPYzsCawfp+NAYJAvUCfCQ5Dr?= =?us-ascii?Q?hVp5f1pTgkAHsxzyLY8HKCkaQVwWL88BlGXYo+fh/0Jt9qDtEksMz0hz8+oI?= =?us-ascii?Q?vWbcWY9gI5mdyEyHhaTlLFzEDYbw6OgRxt/WsGMnyBIDvj72Ec2kY3V54V1t?= =?us-ascii?Q?MB2Fp6Wkdk5Up2P4+Cg8dBofmVUngC477imCf+ygdEKO5mu50b5ajdTi2wwM?= =?us-ascii?Q?Sx+Ki0VOp55YzmCkit2RIqQwgh+gU3Ubl5y9mv6mbhlDdOzhYCSJn28uAnru?= =?us-ascii?Q?5V/Tbr82bJ+/fi+0WMPW0d+jOepPXuXXfURCkFpr64z3bvACGj8xjSGUuypQ?= =?us-ascii?Q?NMktia0qXp1MocVuympLJeoXsPGCdt/b7hFgWb1ap9Z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cnI3rLONA2pEqrXF9s2uZCMks9FoYrmu7ZL+ijDpmpkUIt6cYZQhKw5CsOF3rM4fpDwmcrbji7Wmi5TlVsPX03Sm+VwQEZcRZmHarCPJuvJTGecgSB/wR+BdUPT8RFL8KJcUn5yKXvXwwK56F+0bZdlMvVji9VTgHWFhGHuDxkxzlw9YhalNlEriCACX/iIc0YaLEAfw2KExLI5RzpdTuxgcVrNGlgg== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2017 02:00:08.0981 (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: BLUPR03MB168 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2171 Lines: 66 Add binding doc for generic power sequence library. Signed-off-by: Peter Chen Acked-by: Philipp Zabel Acked-by: Rob Herring --- .../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>; + }; + }; +}; -- 2.7.4