From patchwork Wed Oct 24 10:49:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Bansal X-Patchwork-Id: 10654517 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DFAAA13BF for ; Wed, 24 Oct 2018 10:49:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CBB952A221 for ; Wed, 24 Oct 2018 10:49:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BF8A62A234; Wed, 24 Oct 2018 10:49:43 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 519CD2A221 for ; Wed, 24 Oct 2018 10:49:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=PLUwiSA0gUidC/QV4Nx0gAPLjd4VUT8JbJqINSu06Ug=; b=UeD3wp/GkMhOfp XbhjwrrGI24HqriNvkGZhGXiv482S5egsATGc3YFHm/XYi1FKq1dJHsuGWWC6ha0kv8rH5MxpDePJ P25TMKEVR0r2FyTDzn0LlJXITABwxAl6UmF2O7GsJFweaxirCIYn4+/tfX+OW9QhjnHJR5CmUe2yc cQEZ5J4d9p/e++nLIgCpuqsk+dvpye1b+/1+mbWTMVEfKqQ4zTQA4Z/3gKm8kcFBkSw5vJsF2wdn/ jOqT7Zcey6Ca7uGRXq1M5+S9g8eFEKzNP/Tld/Hxs7ehrvCj4uDoLG953ay1XCbKYI9gGj+qtiI1X qZc4n8kmUl7U0rVNo/pA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gFGjM-0001G8-ER; Wed, 24 Oct 2018 10:49:40 +0000 Received: from mail-db5eur03on060b.outbound.protection.outlook.com ([2a01:111:f400:fe0a::60b] helo=EUR03-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gFGjI-0001FD-Px for linux-arm-kernel@lists.infradead.org; Wed, 24 Oct 2018 10:49:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nuhiEeYo2erZmP9fI7+ubS+WbekpPecgeSweF4+4J6c=; b=HncA9EatC62GEIpyf96S45C6TDM49pBoyGze1hmvH3DBAj+646m8S8gyPurij3d594DJcFL0+iJ8ppDPAups7rZingzFioodUnYmdOlHGRWO8cErWdm/Qw3zP8isWSKNuRa348x0O+7G3QHQeIDdH/kdIOBAqRnk8zbqztm2E94= Received: from HE1PR0402MB3323.eurprd04.prod.outlook.com (10.167.125.20) by HE1PR0402MB2858.eurprd04.prod.outlook.com (10.175.30.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1250.30; Wed, 24 Oct 2018 10:49:20 +0000 Received: from HE1PR0402MB3323.eurprd04.prod.outlook.com ([fe80::7d5f:a551:3509:2414]) by HE1PR0402MB3323.eurprd04.prod.outlook.com ([fe80::7d5f:a551:3509:2414%4]) with mapi id 15.20.1273.019; Wed, 24 Oct 2018 10:49:20 +0000 From: Pankaj Bansal To: "linux-arm-kernel@lists.infradead.org" , Shawn Guo , Leo Li , Oliver Hartkopp , Marc Kleine-Budde , "linux-can@vger.kernel.org" Subject: [PATCH] arm64: dts: Add flexcan nodes in LX2160A Thread-Topic: [PATCH] arm64: dts: Add flexcan nodes in LX2160A Thread-Index: AQHUa4c34qw5kUCuJ0CtBni61DDeAQ== Date: Wed, 24 Oct 2018 10:49:20 +0000 Message-ID: <20181024161509.14200-1-pankaj.bansal@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: OSAPR01CA0061.jpnprd01.prod.outlook.com (2603:1096:604:a::25) To HE1PR0402MB3323.eurprd04.prod.outlook.com (2603:10a6:7:81::20) authentication-results: spf=none (sender IP is ) smtp.mailfrom=pankaj.bansal@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [14.143.30.134] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; HE1PR0402MB2858; 6:cuYTe5OUPMwSvFHOJAyk8ZrZ9Jow5yiBb0H6p9bFhHTwsM8H7IizNeyvpFrMcUP+Q8KxlLdustQd57ULFtqRVsIqHLAoYNHjqJUHV7aVgrukif7ss1fkYG07hEi8QiIrqJSl9cgPO9FUb7z1AjEp+pqMwUIfAmlMqHYxNopUgLW3bbq0KNQ5NcLkQFEvuEMZRVzL6zn7jZIAa6YWT9aQZUD0TZ3O/NaHGklhfC4ETLzxx0RpxsEu7M+Zo7PO1X4khOZtbbDIM2aIdtTh7G0Rd7F5gemVRqASSFh33Ff9imy68bdZkNtoEEpnLLgxezVUP+OOVDAOHujeHM2jLKf5d8YOei2l4aHVPkGcaAYxBIq2gGxBtjIHlBIbpHU3gSYlQ5QgdzGE+vKZNqXOIrli/pVbZpz4W1/TKc/K+gqA/Dqh9CCEOx6KkNzsETTMuT39XwvS3wC21daOrB2MsRWxvA==; 5:GAWnNzvHMw6a8hGqg/gcrY5VwgKcd/NrDe+xIu67LPIKbMUV8UMWK1TYowTz5kk5bn4KbGyJ+XXpIVsLQfVrXm4Nf2yjuoozL73KlDdnxzp62wcudfYmfkWG4nxctTqvrsOgbv49g+EQ0ZxApexWQNEcI/6ETqz5jHzmeK67LGE=; 7:BW8bKnGpqts/KQTFwdlbhH6V1bqeQ+Gtkutlx4Cqvjdgt5LN6hZXKxSQK0nQ9VjJ0yau5+n/xyZxd08sD31HvVn3C+1Yg0VBbMsFOBioupUdGy1FFEMtL6VT26H7Oqy9Ux7QZCw67KZy6guI64L4oOjhqSDloN16qXScfoTtmUVksSDPJxU1Wp3Aw64JL0ZWST2amCdUYRdzvw3L5+UKu0BvJrgcZxhSQ3+8NxKwSNRgV28IGfv+Ti0C0GB/x1Xa x-ms-office365-filtering-correlation-id: ff045f9c-4411-4108-b907-08d6399e59e1 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:HE1PR0402MB2858; x-ms-traffictypediagnostic: HE1PR0402MB2858: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(185117386973197); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3002001)(3231355)(944501410)(52105095)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123562045)(20161123564045)(201708071742011)(7699051)(76991095); SRVR:HE1PR0402MB2858; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0402MB2858; x-forefront-prvs: 083526BF8A x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(376002)(39860400002)(396003)(136003)(366004)(199004)(189003)(81156014)(256004)(6306002)(2900100001)(966005)(36756003)(4326008)(106356001)(53936002)(6506007)(97736004)(105586002)(5250100002)(71200400001)(386003)(2501003)(99286004)(52116002)(6512007)(71190400001)(66066001)(102836004)(316002)(5660300001)(55236004)(68736007)(6436002)(2616005)(6116002)(86362001)(186003)(1857600001)(476003)(44832011)(110136005)(6486002)(478600001)(54906003)(25786009)(7736002)(1076002)(486006)(3846002)(81166006)(8936002)(305945005)(14444005)(8676002)(14454004)(2906002)(26005); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0402MB2858; H:HE1PR0402MB3323.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: O1F0ATRfbLIxw7bnWYka3dGvfSFSKnYynBcKkjLdMOW50TnT7u8z7aKCAOdwRmOd1TPdk2cdKij8Jt43UiXOLdnEaqdmAO4TwAlysNv6zn3NEcEc2JYX6QXjdoUKW8oZ5HAF7KJLLYzGMNIGWzF5dLn9rKaqZlq5N9IGGNGU1f6y4q9jjzwbWYZWLSWs175c7kJNc7S4uy/JWPpmyRaKADv2cjmlS3ypSo36hDnjezap6fFcqpUD583k10yAhSVrqnfi2ymbX7rcsbjW97IC2XsYqgEzttAzNvG1tnhJTvZjs/H9H96F14GdEy5iSLaZhT+R0pDporMtOuEZSAzSeZdH6qBOz3LmMGf9iH7VhsA= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ff045f9c-4411-4108-b907-08d6399e59e1 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Oct 2018 10:49:20.1729 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0402MB2858 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181024_034936_873139_B8D69C13 X-CRM114-Status: GOOD ( 12.85 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , "devicetree@vger.kernel.org" , Pankaj Bansal , Rob Herring Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The FlexCAN module in LX2160A is a communication controller implementing the CAN protocol according to the ISO 11898-1 standard and CAN 2.0 B protocol specifications. -Flexible mailboxes configurable to store 0 to 8, 16, 32 or 64 bytes data length -Each mailbox configurable as receive or transmit, all supporting standard and extended messages Signed-off-by: Pankaj Bansal --- Notes: This patch depends on below patches: [1] https://lore.kernel.org/patchwork/project/lkml/list/?series=369563 [2] https://patchwork.kernel.org/patch/10645287/ This patch is used by below patches: [1] https://www.spinics.net/lists/linux-can/msg00348.html .../boot/dts/freescale/fsl-lx2160a-qds.dts | 8 ++++++++ .../boot/dts/freescale/fsl-lx2160a-rdb.dts | 8 ++++++++ .../boot/dts/freescale/fsl-lx2160a.dtsi | 18 ++++++++++++++++++ 3 files changed, 34 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a-qds.dts b/arch/arm64/boot/dts/freescale/fsl-lx2160a-qds.dts index 99a22abbe725..8a0305a2b778 100644 --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a-qds.dts +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a-qds.dts @@ -31,6 +31,14 @@ }; }; +&can0 { + status = "okay"; +}; + +&can1 { + status = "okay"; +}; + &crypto { status = "okay"; }; diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts index 6481e5f20e69..f8c95fc6de27 100644 --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts @@ -31,6 +31,14 @@ }; }; +&can0 { + status = "okay"; +}; + +&can1 { + status = "okay"; +}; + &crypto { status = "okay"; }; diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi index 56f846c55812..23ea8776b55a 100644 --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi @@ -566,6 +566,24 @@ status = "disabled"; }; + can0: can@2180000 { + compatible = "fsl,lx2160ar1-flexcan"; + reg = <0x0 0x2180000 0x0 0x10000>; + interrupts = ; + clocks = <&clockgen 4 7>, <&clockgen 4 7>; + clock-names = "ipg", "per"; + status = "disabled"; + }; + + can1: can@2190000 { + compatible = "fsl,lx2160ar1-flexcan"; + reg = <0x0 0x2190000 0x0 0x10000>; + interrupts = ; + clocks = <&clockgen 4 7>, <&clockgen 4 7>; + clock-names = "ipg", "per"; + status = "disabled"; + }; + uart0: serial@21c0000 { compatible = "arm,sbsa-uart","arm,pl011"; reg = <0x0 0x21c0000 0x0 0x1000>;