Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754519AbaD2ESX (ORCPT ); Tue, 29 Apr 2014 00:18:23 -0400 Received: from mail-bn1blp0185.outbound.protection.outlook.com ([207.46.163.185]:30952 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754294AbaD2ESV (ORCPT ); Tue, 29 Apr 2014 00:18:21 -0400 From: Xiubo Li To: , CC: , Xiubo Li Subject: [PATCHv2 1/4] Documentation: Add 'big-endian' property for FTM PWM. Date: Tue, 29 Apr 2014 11:33:46 +0800 Message-ID: <1398742429-10399-2-git-send-email-Li.Xiubo@freescale.com> X-Mailer: git-send-email 1.8.0 In-Reply-To: <1398742429-10399-1-git-send-email-Li.Xiubo@freescale.com> References: <1398742429-10399-1-git-send-email-Li.Xiubo@freescale.com> X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.88.168.1;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009001)(6009001)(428001)(199002)(189002)(47776003)(20776003)(44976005)(89996001)(50226001)(80022001)(4396001)(81342001)(77982001)(92566001)(6806004)(48376002)(46102001)(83072002)(76482001)(85852003)(83322001)(92726001)(79102001)(19580405001)(19580395003)(77096999)(74502001)(77156001)(93916002)(81542001)(88136002)(87286001)(50466002)(86362001)(99396002)(76176999)(31966008)(50986999)(101416001)(80976001)(87936001)(62966002)(36756003);DIR:OUT;SFP:1101;SCL:1;SRVR:BLUPR03MB503;H:tx30smr01.am.freescale.net;FPR:F666D93F.202D162B.43FC9732.D67E11.20238;MLV:sfv;PTR:gate-tx3.freescale.com;A:1;MX:1;LANG:en; MIME-Version: 1.0 Content-Type: text/plain X-Forefront-PRVS: 0196A226D1 X-OriginatorOrg: freescale.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This add the big endianness usage in the binding docuementation, which will run on LS1 SoC. Now for the following scenarios: SoC | CPU | FTM-PWM | 'big-endian' property is needed? --------|--------|---------|--------------------------------- Vybird | LE | LE | No LS1 | LE | BE | Yes LS2 | LE | LE | No Signed-off-by: Xiubo Li --- Documentation/devicetree/bindings/pwm/pwm-fsl-ftm.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pwm/pwm-fsl-ftm.txt b/Documentation/devicetree/bindings/pwm/pwm-fsl-ftm.txt index 0bda229..346e2eb 100644 --- a/Documentation/devicetree/bindings/pwm/pwm-fsl-ftm.txt +++ b/Documentation/devicetree/bindings/pwm/pwm-fsl-ftm.txt @@ -1,5 +1,13 @@ Freescale FlexTimer Module (FTM) PWM controller +The endianness of the FTM PWM devices on different SoCs: +SoC | CPU | FTM-PWM | 'big-endian' property is needed? +--------|--------|---------|--------------------------------- +Vybird | LE | LE | No +LS1 | LE | BE | Yes +LS2 | LE | LE | No + + Required properties: - compatible: Should be "fsl,vf610-ftm-pwm". - reg: Physical base address and length of the controller's registers @@ -16,7 +24,8 @@ Required properties: - pinctrl-names: Must contain a "default" entry. - pinctrl-NNN: One property must exist for each entry in pinctrl-names. See pinctrl/pinctrl-bindings.txt for details of the property values. - +- big-endian: One boolean property, for all the device registers, the BE mode + will be in use if it's present, or the LE mode will be in use. Example: @@ -32,4 +41,5 @@ pwm0: pwm@40038000 { <&clks VF610_CLK_FTM0_EXT_FIX_EN>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_pwm0_1>; + big-endian; }; -- 1.8.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/