Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756479AbaD3F2h (ORCPT ); Wed, 30 Apr 2014 01:28:37 -0400 Received: from mail-bn1blp0181.outbound.protection.outlook.com ([207.46.163.181]:7144 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750876AbaD3F2f (ORCPT ); Wed, 30 Apr 2014 01:28:35 -0400 From: Xiubo Li To: , CC: , , , , , Xiubo Li Subject: [PATCHv3 1/2] dt/bindings: Add the DT binding documentation for endianness Date: Wed, 30 Apr 2014 12:43:48 +0800 Message-ID: <1398833029-29546-2-git-send-email-Li.Xiubo@freescale.com> X-Mailer: git-send-email 1.8.0 In-Reply-To: <1398833029-29546-1-git-send-email-Li.Xiubo@freescale.com> References: <1398833029-29546-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)(4396001)(87936001)(81542001)(92566001)(19580395003)(46102001)(77982001)(44976005)(76482001)(76176999)(80022001)(83072002)(47776003)(85852003)(20776003)(77096999)(99396002)(83322001)(48376002)(6806004)(50986999)(101416001)(50226001)(79102001)(31966008)(87286001)(74662001)(89996001)(50466002)(77156001)(19580405001)(81342001)(74502001)(88136002)(36756003)(86362001)(93916002)(92726001)(62966002)(80976001);DIR:OUT;SFP:1101;SCL:1;SRVR:BLUPR03MB501;H:tx30smr01.am.freescale.net;FPR:C15E5FFF.2486242C.43579B0A.84B6F211.2018A;MLV:sfv;PTR:gate-tx3.freescale.com;A:1;MX:1;LANG:en; MIME-Version: 1.0 Content-Type: text/plain X-Forefront-PRVS: 0197AFBD92 X-OriginatorOrg: freescale.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Xiubo Li --- .../devicetree/bindings/endianness/endianness.txt | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Documentation/devicetree/bindings/endianness/endianness.txt diff --git a/Documentation/devicetree/bindings/endianness/endianness.txt b/Documentation/devicetree/bindings/endianness/endianness.txt new file mode 100644 index 0000000..49458a1 --- /dev/null +++ b/Documentation/devicetree/bindings/endianness/endianness.txt @@ -0,0 +1,47 @@ +Device-Tree binding for device endianness + +The endianness mode of CPU & Device scenarios: +Index CPU Device Endianess flag for DT bool property +------------------------------------------------------------ +1 LE LE - +2 LE BE 'big-endian{,-*}' +3 BE BE - +4 BE LE 'little-endian{,-*}' + +For one device driver, which will run in different scenarios above +on different SoCs using the devicetree, we need one way to simplify +this. + +Required properties: +- {big,little}-endian{,-*}: this is one boolean property. + +Examples: +Scenario 1 : CPU in LE mode & device in LE mode. +dev: dev@40031000 { + compatible = "name"; + reg = <0x40031000 0x1000>; + ... +}; + +Scenario 2 : CPU in LE mode & device in BE mode. +dev: dev@40031000 { + compatible = "name"; + reg = <0x40031000 0x1000>; + ... + big-endian{,-*}; +}; + +Scenario 3 : CPU in BE mode & device in BE mode. +dev: dev@40031000 { + compatible = "name"; + reg = <0x40031000 0x1000>; + ... +}; + +Scenario 4 : CPU in BE mode & device in LE mode. +dev: dev@40031000 { + compatible = "name"; + reg = <0x40031000 0x1000>; + ... + little-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/