From patchwork Mon May 13 06:02:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Bansal X-Patchwork-Id: 10940307 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 5F866924 for ; Mon, 13 May 2019 06:03:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4F78326246 for ; Mon, 13 May 2019 06:03:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 436A626E40; Mon, 13 May 2019 06:03:06 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 D107926246 for ; Mon, 13 May 2019 06:03:05 +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:In-Reply-To:References: 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: List-Owner; bh=y+4g9XLM973tds+kD4CpyRlk9r8oxfScDs1N4Pot5O4=; b=MLtOsYgv6/XufD 56B8aisAcjacfgjnSAo7gTahQKh88o1H6cjvPEEtjC3p+dhHDOjKjg6VjqnGRsFI1G4O4nWY5eijn gkdEGGvF1f55zIXcfHVC+2mSJbgcVJf8Wr2+/VKBtwQwbTr0eqFfpqa8PeHPs+pJIttb0o5IvCKZq TW9fWmcSoabv4I23BnOPuTZkh8BQZLchaQdQFvOGBOj04kwE1BezRGLmlKI4CtCNiW2VpJFZbY3kU w7ZvTeJm9wJLQlRmiT9u9wlTCIhLfRCpnaa/P+A+lUZ4cuI+pxlpCpnsMg3b6hxlY4PZNeoSefv/e 7JnZpbS1G3hSqBUcQQPA==; 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 1hQ43A-0002cZ-I6; Mon, 13 May 2019 06:03:00 +0000 Received: from mail-eopbgr130078.outbound.protection.outlook.com ([40.107.13.78] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hQ433-0002Uf-Mb for linux-arm-kernel@lists.infradead.org; Mon, 13 May 2019 06:02:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kKhv4k0hZct89q2YhqXJmou4BaPK7CKzb6+Gn/ubcRw=; b=kDjFNLK8EdN43nJ37ATB+MihwQeJlGyBzphnBsFZA9hobVxzDbtr44D4ivAulcM90oCGelKj5PiP6Nj2ngxhXuocuwoWpzdBC7F5xYJ/w7F6DZRTOlNCaLjyJbFT7fTfFSW70i17pl47Zji+UD3Z0XhbvLPWbALJmXJFTnLlDRo= Received: from VI1PR0401MB2496.eurprd04.prod.outlook.com (10.168.65.10) by VI1PR0401MB2654.eurprd04.prod.outlook.com (10.168.66.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1878.20; Mon, 13 May 2019 06:02:48 +0000 Received: from VI1PR0401MB2496.eurprd04.prod.outlook.com ([fe80::5e3:7122:7d0e:7fb7]) by VI1PR0401MB2496.eurprd04.prod.outlook.com ([fe80::5e3:7122:7d0e:7fb7%3]) with mapi id 15.20.1878.024; Mon, 13 May 2019 06:02:48 +0000 From: Pankaj Bansal To: Wolfgang Grandegger , Marc Kleine-Budde , Shawn Guo , Leo Li Subject: [PATCH 1/2] arm64: dts: fsl: lx2160a: add flexcan node Thread-Topic: [PATCH 1/2] arm64: dts: fsl: lx2160a: add flexcan node Thread-Index: AQHVCVF9+LNMwm+eXEGY/yAe26EOBg== Date: Mon, 13 May 2019 06:02:47 +0000 Message-ID: <20190513112612.11036-2-pankaj.bansal@nxp.com> References: <20190513112612.11036-1-pankaj.bansal@nxp.com> In-Reply-To: <20190513112612.11036-1-pankaj.bansal@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BMXPR01CA0096.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:54::36) To VI1PR0401MB2496.eurprd04.prod.outlook.com (2603:10a6:800:56::10) x-mailer: git-send-email 2.17.1 authentication-results: spf=none (sender IP is ) smtp.mailfrom=pankaj.bansal@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [92.120.1.69] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0fe3c838-6250-4fe7-dfa4-08d6d7689fa4 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020); SRVR:VI1PR0401MB2654; x-ms-traffictypediagnostic: VI1PR0401MB2654: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3631; x-forefront-prvs: 0036736630 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(396003)(39860400002)(136003)(366004)(346002)(199004)(189003)(53936002)(86362001)(316002)(386003)(6506007)(1076003)(6486002)(6306002)(6512007)(99286004)(76176011)(44832011)(5660300002)(8676002)(8936002)(81156014)(68736007)(54906003)(110136005)(81166006)(71200400001)(71190400001)(50226002)(52116002)(2616005)(478600001)(66066001)(446003)(73956011)(186003)(476003)(256004)(14444005)(966005)(11346002)(66556008)(2906002)(14454004)(66446008)(66946007)(66476007)(486006)(36756003)(64756008)(6636002)(26005)(3846002)(25786009)(6116002)(7736002)(6436002)(305945005)(102836004)(4326008); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2654; H:VI1PR0401MB2496.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-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 3mmk6XrfCm/Q96yh5B1mElH1Q8aoL58P1f5hdHD9bCqzm58t/rcQ5n2iUrGXBHRVFXSmEoKPmrRQgvVI0fTvoLZMR6Ss1JoNakgT9LJ3wyJrvKtWuJ26vMrk8qk3TOLfwFTtBu+B8xGPnHY37KdbyolSGs8jngNqGOS3P/m3gPf8+dnF7QyI4sN8MLXwDYyw11wGFun6O3LTcwFK8f9PJ5tWKwj7klE4KfLiUzUHaYAmGuc6zaINYaztqnzxKHW6ChhbUUDpPBaCUlWLmxMAiS3aDBLW9UrYab5WvV68xHHNhgnWlPdZ5pN/tM5+ASvxv1LURm3bdEh7NOph3ofwaHIs5DH17iEcAMoFt1wGftW/gg48x5m3/eHNfHR1X4rbx1UBdFztogvtt3URAf3VEqNj5a4ysMuaj7KSsdW1CKE= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0fe3c838-6250-4fe7-dfa4-08d6d7689fa4 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 May 2019 06:02:47.8720 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2654 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190512_230253_736541_29BE1E67 X-CRM114-Status: GOOD ( 12.91 ) 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: Pankaj Bansal , "linux-arm-kernel@lists.infradead.org" , "linux-can@vger.kernel.org" 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 Add flexcan node in LX2160A SOC file as well as in QDS and RDB files. The device tree bindings used can be referred from Documentation/devicetree/bindings/net/can/fsl-flexcan.txt Signed-off-by: Pankaj Bansal --- Notes (dts): Dependencies: - https://www.spinics.net/lists/linux-can/msg01562.html .../boot/dts/freescale/fsl-lx2160a-qds.dts | 10 ++++++++- .../boot/dts/freescale/fsl-lx2160a-rdb.dts | 18 +++++++++++++++- .../boot/dts/freescale/fsl-lx2160a.dtsi | 20 +++++++++++++++++- 3 files changed, 45 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a-qds.dts b/arch/arm64/boot/dts/freescale/fsl-lx2160a-qds.dts index 99a22abbe725..849edac27b61 100644 --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a-qds.dts +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a-qds.dts @@ -2,7 +2,7 @@ // // Device Tree file for LX2160AQDS // -// Copyright 2018 NXP +// Copyright 2018-2019 NXP /dts-v1/; @@ -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 9df37b159415..97cbe9e67abf 100644 --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts @@ -2,7 +2,7 @@ // // Device Tree file for LX2160ARDB // -// Copyright 2018 NXP +// Copyright 2018-2019 NXP /dts-v1/; @@ -31,6 +31,22 @@ }; }; +&can0 { + status = "okay"; + + can-transceiver { + max-bitrate = <5000000>; + }; +}; + +&can1 { + status = "okay"; + + can-transceiver { + max-bitrate = <5000000>; + }; +}; + &crypto { status = "okay"; }; diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi index fe87204850b5..75c350927dc0 100644 --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi @@ -2,7 +2,7 @@ // // Device Tree Include file for Layerscape-LX2160A family SoC. // -// Copyright 2018 NXP +// Copyright 2018-2019 NXP #include #include @@ -581,6 +581,24 @@ status = "disabled"; }; + can0: can@2180000 { + compatible = "fsl,lx2160ar1-flexcan"; + reg = <0x0 0x2180000 0x0 0x10000>; + interrupts = ; + clocks = <&sysclk>, <&clockgen 4 7>; + clock-names = "ipg", "per"; + status = "disabled"; + }; + + can1: can@2190000 { + compatible = "fsl,lx2160ar1-flexcan"; + reg = <0x0 0x2190000 0x0 0x10000>; + interrupts = ; + clocks = <&sysclk>, <&clockgen 4 7>; + clock-names = "ipg", "per"; + status = "disabled"; + }; + uart0: serial@21c0000 { compatible = "arm,sbsa-uart","arm,pl011"; reg = <0x0 0x21c0000 0x0 0x1000>; From patchwork Mon May 13 06:02:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Bansal X-Patchwork-Id: 10940309 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 6A111112C for ; Mon, 13 May 2019 06:03:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5B16C26246 for ; Mon, 13 May 2019 06:03:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4F44F26E3C; Mon, 13 May 2019 06:03:22 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 DC48226246 for ; Mon, 13 May 2019 06:03:21 +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:In-Reply-To:References: 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: List-Owner; bh=+diAkqj0kUFCw7D5ssrlDAs+PwA91n/iyIxqnD6sSTM=; b=s0/pi6J1VFQMeO z8uI+SEBqWlXZWfwwHFVvxnl8HqMcrVebtjPCg/jvTQySRtancfshCSdRZeje4tO3Jrhs3OCbcnmO IRs951L5zkG8YE3yEbsGriLslzg57mEHnslUrfkYhFXwhugiQ/FPtH48UwL5IGcQl3AEfU5uPNMTJ AjBcZf2D143MGZaFiVTpdXC2Z0XmaeA1kIMU1U4S7m7NNpYekmXkX/3IpAch0KSiLOKwokVQSQBNe 19AbF6nrSg4c1EKaRRmf7HL7qUzS2iugN1CtPB+hvODyg9DcJcmBBR3p96ESHeMgmm0GVJlKEceek WUTlnb9wDNwUXBV24djw==; 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 1hQ43Q-0002xy-9T; Mon, 13 May 2019 06:03:16 +0000 Received: from mail-eopbgr130078.outbound.protection.outlook.com ([40.107.13.78] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hQ435-0002Uf-O1 for linux-arm-kernel@lists.infradead.org; Mon, 13 May 2019 06:02:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ABHmtw39zTfJb3ZO5p9ireZvQG6VKZx4muSUv+l+5dQ=; b=V0pYeihgIqS0cjSVaMVP17xUatMoamUylOggFBJVAy2MW/lZPQILy0V42Ryp1JwQHh0UZAFgg6/tXA5Sp7JqTKxm9FcaeDVjK8uH3MGhrSJ6PGcOKzc5RUCB43c5kzg/zZbor6HZPy4hMBucWEFHXTukJkQEg1MhZE2BoUPuHhk= Received: from VI1PR0401MB2496.eurprd04.prod.outlook.com (10.168.65.10) by VI1PR0401MB2654.eurprd04.prod.outlook.com (10.168.66.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1878.20; Mon, 13 May 2019 06:02:49 +0000 Received: from VI1PR0401MB2496.eurprd04.prod.outlook.com ([fe80::5e3:7122:7d0e:7fb7]) by VI1PR0401MB2496.eurprd04.prod.outlook.com ([fe80::5e3:7122:7d0e:7fb7%3]) with mapi id 15.20.1878.024; Mon, 13 May 2019 06:02:49 +0000 From: Pankaj Bansal To: Wolfgang Grandegger , Marc Kleine-Budde , Shawn Guo , Leo Li Subject: [PATCH 2/2] arm64: dts: fsl: ls1028a: add flexcan node Thread-Topic: [PATCH 2/2] arm64: dts: fsl: ls1028a: add flexcan node Thread-Index: AQHVCVF+qxXKE0JBqU+wKSOu6xIvOg== Date: Mon, 13 May 2019 06:02:49 +0000 Message-ID: <20190513112612.11036-3-pankaj.bansal@nxp.com> References: <20190513112612.11036-1-pankaj.bansal@nxp.com> In-Reply-To: <20190513112612.11036-1-pankaj.bansal@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BMXPR01CA0096.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:54::36) To VI1PR0401MB2496.eurprd04.prod.outlook.com (2603:10a6:800:56::10) x-mailer: git-send-email 2.17.1 authentication-results: spf=none (sender IP is ) smtp.mailfrom=pankaj.bansal@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [92.120.1.69] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 85610163-11db-4c63-91c5-08d6d768a0c6 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020); SRVR:VI1PR0401MB2654; x-ms-traffictypediagnostic: VI1PR0401MB2654: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3631; x-forefront-prvs: 0036736630 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(396003)(39860400002)(136003)(366004)(346002)(199004)(189003)(53936002)(86362001)(316002)(386003)(6506007)(1076003)(6486002)(6306002)(6512007)(99286004)(76176011)(44832011)(5660300002)(8676002)(8936002)(81156014)(68736007)(54906003)(110136005)(81166006)(71200400001)(71190400001)(50226002)(52116002)(2616005)(478600001)(66066001)(446003)(73956011)(186003)(476003)(256004)(14444005)(966005)(11346002)(66556008)(2906002)(14454004)(66446008)(66946007)(66476007)(486006)(36756003)(64756008)(6636002)(26005)(3846002)(25786009)(6116002)(7736002)(6436002)(305945005)(102836004)(4326008); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2654; H:VI1PR0401MB2496.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-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: k4+Kfxd/eXzTVO6kCSkAxAaDUQT6Fx6lpUyZdqtukGWogIjpExGpIuONMv1LwaabajLOw2NbZU0yczSha18ZfuNxbAGXfecJpJejjFSmCspa+G12vqJG3gEdP6jTLOE5AYbF07DYY3/FupYghNJn9Xf0qPDglSl5qaYWXLE79PirtATzSoGW/urJPTCHyJTEf0/EDDwGAQe2MIdRQY7HWekvP86P2JD6R3ygYWyMZgf/DWyLE2EyRII9OGr1HEVhAtXl1kc5PNKNCOQTD2ad0cjH8xrIQTJ0N5gPLS465+FJyINbd2l92xMjFtTQSIg0KmyjqpTks6D5AjFEF3eu1cBUjxo2bBJ9GWUJwTitsJVSusu4n2ae+z+xjq8u+nMhlTax/DtwjK8LVVWuXZJ0ewkWxXW2/5TyaguuU55ozEY= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 85610163-11db-4c63-91c5-08d6d768a0c6 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 May 2019 06:02:49.6434 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2654 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190512_230256_010827_1F7C92A0 X-CRM114-Status: GOOD ( 12.64 ) 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: Pankaj Bansal , "linux-arm-kernel@lists.infradead.org" , "linux-can@vger.kernel.org" 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 Add flexcan node in LS1028A SOC file as well as in QDS and RDB files. The device tree bindings used can be referred from Documentation/devicetree/bindings/net/can/fsl-flexcan.txt Signed-off-by: Pankaj Bansal --- Notes (dts): Dependencies: - https://www.spinics.net/lists/linux-can/msg01562.html .../boot/dts/freescale/fsl-ls1028a-qds.dts | 10 +++++++- .../boot/dts/freescale/fsl-ls1028a-rdb.dts | 18 +++++++++++++- .../boot/dts/freescale/fsl-ls1028a.dtsi | 22 +++++++++++++++++- 3 files changed, 47 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts index 14c79f4691ea..c1895be5d523 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts @@ -2,7 +2,7 @@ /* * Device Tree file for NXP LS1028A QDS Board. * - * Copyright 2018 NXP + * Copyright 2018-2019 NXP * * Harninder Rai * @@ -34,6 +34,14 @@ }; }; +&can0 { + status = "okay"; +}; + +&can1 { + status = "okay"; +}; + &duart0 { status = "okay"; }; diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts index f86b054a74ae..7dc75d584ada 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts @@ -2,7 +2,7 @@ /* * Device Tree file for NXP LS1028A RDB Board. * - * Copyright 2018 NXP + * Copyright 2018-2019 NXP * * Harninder Rai * @@ -64,6 +64,22 @@ }; }; +&can0 { + status = "okay"; + + can-transceiver { + max-bitrate = <5000000>; + }; +}; + +&can1 { + status = "okay"; + + can-transceiver { + max-bitrate = <5000000>; + }; +}; + &duart0 { status = "okay"; }; diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi index 2896bbcfa3bb..016121e86d4d 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi @@ -2,7 +2,7 @@ /* * Device Tree Include file for NXP Layerscape-1028A family SoC. * - * Copyright 2018 NXP + * Copyright 2018-2019 NXP * * Harninder Rai * @@ -219,6 +219,26 @@ status = "disabled"; }; + can0: can@2180000 { + compatible = "fsl,ls1028ar1-flexcan", + "fsl,lx2160ar1-flexcan"; + reg = <0x0 0x2180000 0x0 0x10000>; + interrupts = ; + clocks = <&sysclk>, <&clockgen 4 1>; + clock-names = "ipg", "per"; + status = "disabled"; + }; + + can1: can@2190000 { + compatible = "fsl,ls1028ar1-flexcan", + "fsl,lx2160ar1-flexcan"; + reg = <0x0 0x2190000 0x0 0x10000>; + interrupts = ; + clocks = <&sysclk>, <&clockgen 4 1>; + clock-names = "ipg", "per"; + status = "disabled"; + }; + duart0: serial@21c0500 { compatible = "fsl,ns16550", "ns16550a"; reg = <0x00 0x21c0500 0x0 0x100>;