Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2083358pxb; Sun, 10 Jan 2021 23:42:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJwsl7yt4CtCF0NzLFalrDMavc3XHkcQ/CXAxPthZUjqvf7wRTvG1+nJbGdU9+YKBTyj+/iY X-Received: by 2002:aa7:c151:: with SMTP id r17mr13049351edp.106.1610350958290; Sun, 10 Jan 2021 23:42:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610350958; cv=none; d=google.com; s=arc-20160816; b=InWdiGkUmR0XE47weli4uj2dp9x8/XNIZB1uacFkZePlmVKLBFh8nJmCkYEkz2Q5pv kccOQq9bfNpBGKHD0qLHWQ9ij4MOz5rgXrOqzqOP6Dn9fuUlXIiGlidRRW77iqYKVkWX T7T0KbVdmlDdQ+itqmLHnP6p8of2bTqhXn6oEsddr9Yz4k+Up0pf/F7Aob2Zw/WHUYTZ 4IH+oJDV/Rhm53cW0BrB9L23eKe+pCM1tCoIeuxMBcEREEremZ2A/1L1yvWymR6Od53Y zgrGl2gjwuwRinFgshfy25yHsT04hPq9JSFFHt52q1uN9mxuB/4hnh9eujHpJqSODdCg Vplw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=JR2L7p/lIQt1sZmYWGOe/tP9qNokvMczj2cq7ozXvDk=; b=si7w9dy+ENn5pck7juDGicb0lazuj56Ms4AFVlFkLPGYePdZeSvqzSGG19lesrkfGj 7laerJQ/KJTS0E2dsaoOY+9JU6znTsndh1Ckxoqk7lLbkUsuQaELiysVADOeOhCMpxxo 6VT4biTZhSvElplda5/w4t9i1srDsU59KEJCYTdXDP9htSPTDssW1fQmAEceXqQldb9y 0v8jzYUZclGUOe75DxW11iHdj8rYWVRHlO6U0GZRGKRVvm/19g1XS6hItVgdJ8uWTpE3 SNX1Zicuod5X3cFoS3lEBXGN5goEMCMQel59t6ZmirfrCKG2x0HoqOHx44s+q96NSj9C 5g7g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cz22si6676141edb.241.2021.01.10.23.42.14; Sun, 10 Jan 2021 23:42:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727444AbhAKHj4 (ORCPT + 99 others); Mon, 11 Jan 2021 02:39:56 -0500 Received: from inva020.nxp.com ([92.121.34.13]:46492 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726626AbhAKHjz (ORCPT ); Mon, 11 Jan 2021 02:39:55 -0500 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 51C7C1A0210; Mon, 11 Jan 2021 08:39:08 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 049841A0CA8; Mon, 11 Jan 2021 08:39:06 +0100 (CET) Received: from lsv03124.swis.in-blr01.nxp.com (lsv03124.swis.in-blr01.nxp.com [92.120.146.121]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id EA442402A2; Mon, 11 Jan 2021 08:39:02 +0100 (CET) From: Kuldeep Singh To: Shawn Guo , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Joakim Zhang , Kuldeep Singh Subject: [PATCH 1/3] arm64: dts: lx2160a: Add flexcan support Date: Mon, 11 Jan 2021 13:08:47 +0530 Message-Id: <1610350729-21287-2-git-send-email-kuldeep.singh@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1610350729-21287-1-git-send-email-kuldeep.singh@nxp.com> References: <1610350729-21287-1-git-send-email-kuldeep.singh@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org LX2160A supports two flexcan controllers. Add the support. Enable support further for LX2160A-RDB/QDS. Signed-off-by: Kuldeep Singh --- arch/arm64/boot/dts/freescale/fsl-lx2160a-qds.dts | 8 ++++++++ arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts | 16 ++++++++++++++++ arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 20 ++++++++++++++++++++ 3 files changed, 44 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a-qds.dts b/arch/arm64/boot/dts/freescale/fsl-lx2160a-qds.dts index 16ae3b0..d858d9c 100644 --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a-qds.dts +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a-qds.dts @@ -33,6 +33,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 6f82759..5dbf274 100644 --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts @@ -89,6 +89,22 @@ }; }; +&can0 { + status = "okay"; + + can-transceiver { + max-bitrate = <5000000>; + }; +}; + +&can1 { + status = "okay"; + + can-transceiver { + max-bitrate = <5000000>; + }; +}; + &esdhc0 { sd-uhs-sdr104; sd-uhs-sdr50; diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi index 0d4bce1..63a3ef6 100644 --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi @@ -878,6 +878,26 @@ status = "disabled"; }; + can0: can@2180000 { + compatible = "fsl,lx2160ar1-flexcan"; + reg = <0x0 0x2180000 0x0 0x10000>; + interrupts = ; + clocks = <&clockgen 4 7>, <&sysclk>; + clock-names = "ipg", "per"; + fsl,clk-source = <0>; + status = "disabled"; + }; + + can1: can@2190000 { + compatible = "fsl,lx2160ar1-flexcan"; + reg = <0x0 0x2190000 0x0 0x10000>; + interrupts = ; + clocks = <&clockgen 4 7>, <&sysclk>; + clock-names = "ipg", "per"; + fsl,clk-source = <0>; + status = "disabled"; + }; + uart0: serial@21c0000 { compatible = "arm,sbsa-uart","arm,pl011"; reg = <0x0 0x21c0000 0x0 0x1000>; -- 2.7.4