Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp171523pxb; Thu, 21 Jan 2021 04:25:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJx+RIudyyvFgy121H1JDAyUom+J+wWDYEMIPNrw0keLc0XLojOKc8uSAKIEem32ICvcCLna X-Received: by 2002:a05:6402:41:: with SMTP id f1mr10783094edu.286.1611231924654; Thu, 21 Jan 2021 04:25:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611231924; cv=none; d=google.com; s=arc-20160816; b=LlpABWki49IVLQMePmzM9jkMXz5n9EGNJEEnPAKHZwW5dwHNuTHfc/Ag00mAyBVew8 v1VAXkNuCdPjkTzsxgt9scNAS58+9VKuan/kTNX2v82UplQ4OebLseZ5kjOQSSKMAXlD ND/hq/a3+D1dq4+2FeWPO9i0/2imkMxbc0LDkN5xLhXAovLRKIXadK7PYb8vlvjkByZ5 q+tk8Mig2U0Bg/SNSEKNxzMOjNFTYe6dJ3c22D8Pu4Oi+E2RHTTWHTtu56BONiZPmixg 3cADoiATE+w8atd4iJBnNXKA6pbJ9IDI+aEDfUV6M6Ee1RuOIvjN1XewCJ6xlJVnLPNK 1ObQ== 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=8jKzsXSkMDl227j8WzrW5XO3wQcoZfVOam29NeSyPgA=; b=eIO9JP1pJbZ2axCS0aDYaqMEPBNdYW+pC96Y4OWxGiMi8bPVCImKOAevcEdk8cZby/ ev0X6mfFZdON6m4YUb6xAycQxS8xXz/zkMwAyUMd4TjxrtnVr1a6PB+JuWR0RKb9/oED ZHDSXEjoywoXz7ByN2xg2Ay+2WyvHfGf3qOPY+vFrF8YUCYFEy4PcTo0Prn0ryZOdSLk Ocpkr7wkR6FNYv5vCJBTf/U/QL5/FS7Z+CKG2HvA2G0Wz/XPf+vXz4px6grupRuvvNrL i00cE/WpsUFfEV2elBLWpBeJ8ohJ8qYJ+cGSD2vS1aoWud8pKabkuaQeq6L6E1wLii6A 289g== 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 a4si2023792eds.606.2021.01.21.04.25.00; Thu, 21 Jan 2021 04:25:24 -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 S1729903AbhAUMWF (ORCPT + 99 others); Thu, 21 Jan 2021 07:22:05 -0500 Received: from inva021.nxp.com ([92.121.34.21]:54690 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729784AbhAUK64 (ORCPT ); Thu, 21 Jan 2021 05:58:56 -0500 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id AA55D200C68; Thu, 21 Jan 2021 11:58:09 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 05D4B200C74; Thu, 21 Jan 2021 11:58:07 +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 8F92740297; Thu, 21 Jan 2021 11:58:03 +0100 (CET) From: Kuldeep Singh To: Shawn Guo , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Li Yang , Kuldeep Singh Subject: [Patch v2 2/3] arm64: dtsi: ls1028a: Update flexcan properties Date: Thu, 21 Jan 2021 16:27:38 +0530 Message-Id: <1611226659-30129-3-git-send-email-kuldeep.singh@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1611226659-30129-1-git-send-email-kuldeep.singh@nxp.com> References: <1611226659-30129-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 LS1028A supports two flexcan controllers similar to LX2160A. There's already a compatible entry defined i.e "fsl,lx2160ar1-flexcan" which can be further reused for LS1028A. Please note, "fsl,ls1028ar1-flexcan" compatible entry doesn't exists and can be safely removed. LS1028A has a single peripheral clock (i.e platform clock) source connected to both "ipg" and "per" and therefore, remove "sysclk" as clock source from device-tree. Signed-off-by: Kuldeep Singh --- Hi Shawn, I would like to mention the motivation behind compatible string change. There's no ls1028a compatible entry i.e " fsl,ls1028ar1-flexcan" in flexcan driver. See below. https://elixir.bootlin.com/linux/latest/source/drivers/net/can/flexcan.c#L1913 And the documentation says that ls1028a entry should be followed by lx2160a. https://elixir.bootlin.com/linux/latest/source/Documentation/devicetree/bindings/net/can/fsl,flexcan.yaml#L42 Since ls1028a entry is not present, anyway lx2160a entry will be eventually used. Please let me know your views. arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi index e00acad..d28bd52 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi @@ -408,21 +408,25 @@ }; can0: can@2180000 { - compatible = "fsl,ls1028ar1-flexcan", "fsl,lx2160ar1-flexcan"; + compatible = "fsl,lx2160ar1-flexcan"; reg = <0x0 0x2180000 0x0 0x10000>; interrupts = ; - clocks = <&sysclk>, <&clockgen QORIQ_CLK_PLATFORM_PLL - QORIQ_CLK_PLL_DIV(2)>; + clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL + QORIQ_CLK_PLL_DIV(2)>, + <&clockgen QORIQ_CLK_PLATFORM_PLL + QORIQ_CLK_PLL_DIV(2)>; clock-names = "ipg", "per"; status = "disabled"; }; can1: can@2190000 { - compatible = "fsl,ls1028ar1-flexcan", "fsl,lx2160ar1-flexcan"; + compatible = "fsl,lx2160ar1-flexcan"; reg = <0x0 0x2190000 0x0 0x10000>; interrupts = ; - clocks = <&sysclk>, <&clockgen QORIQ_CLK_PLATFORM_PLL - QORIQ_CLK_PLL_DIV(2)>; + clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL + QORIQ_CLK_PLL_DIV(2)>, + <&clockgen QORIQ_CLK_PLATFORM_PLL + QORIQ_CLK_PLL_DIV(2)>; clock-names = "ipg", "per"; status = "disabled"; }; -- 2.7.4