Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp289662pxb; Thu, 12 Aug 2021 16:43:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqQ7a75B9zR2+FsEvhoAO/yykVOtbRxa/s+umv0L6CKtG/GXokfuoMzwafzzoG5o8ywwrJ X-Received: by 2002:a5d:8d0d:: with SMTP id p13mr4879700ioj.129.1628811780867; Thu, 12 Aug 2021 16:43:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628811780; cv=none; d=google.com; s=arc-20160816; b=IbcP68jxAUI8q34WxEocSvZN1MQV1vAAJZgtTnNHmfBS6tzMr8WCxKCBo8cHMoitTJ pVzWWwNjyW2kB0lBsPLJl1VLov2PEh1vfYI3VjWzvl8EFCSh508tcqookPbh14+7eL16 EbDuhqiauoOlsVxzQ6IC1E3nTOaRKcK12j7K1GPjg+/Oty0mWSfRY9lpE0PqBf0sG35J oRm6NI+JKDZfSdkxjar5X8COWnguVw12ZnZSlElhQOH8cWQoHb7/QzMyAKn4Zj3t3PYE MPt8Vz93/3YKEiTuUIcFi//Qm6Ir4PYjWG5GdtMt1/SrDFn4iWdU5w4yvTSy0zoUZAcF nv7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=/fde461zyBqFG4VxvCXC1y+Kn2D6FELzcDQs0SJciDQ=; b=iYGmrRHUsZEsf/cBzNltVA7Czi3GELWG1lTukoun6fgjpneXqe9hQSW/8mB85vo1YD EmFoVUKf3988J/W7YzV+7AvDxPJD+V1s4T1uP5mzLi+qsF/uu1d376j9l3sZs5WFWnkp 9Unq1yoyj5Eneh+ow0Kx7TXFxaXeRycLYjZg2fMqE6pGTv1gbmOJ0Z8dU8MIBTJpjPiA KPFT9vVtPMcm5VJDkNinR+M0g47WME1g+ndA2znopSoNC73kHPvVrs2xHtgDslamnzDh 9lM8oDygc3f4Qli6ljEXW3iAsHkxYL0sTyeBCxpr58XaxoAUYeB2Sd2vdjMuprxgqFIw NqcA== 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 q14si773831ilo.128.2021.08.12.16.42.50; Thu, 12 Aug 2021 16:43:00 -0700 (PDT) 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 S237780AbhHLXKI (ORCPT + 99 others); Thu, 12 Aug 2021 19:10:08 -0400 Received: from mail-qk1-f170.google.com ([209.85.222.170]:45799 "EHLO mail-qk1-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229705AbhHLXKI (ORCPT ); Thu, 12 Aug 2021 19:10:08 -0400 Received: by mail-qk1-f170.google.com with SMTP id o123so3381880qkf.12; Thu, 12 Aug 2021 16:09:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=/fde461zyBqFG4VxvCXC1y+Kn2D6FELzcDQs0SJciDQ=; b=OfFgn2h83Hx+JclR2YA697qeyq5ahp4iVCzY/buxJDjYPWjkE6AbXZFdcMOz0wdW2Y fReZHg1sNFvEngRf1G1x3B8uwUSQ+4K/+cI4eCifSQkxAtMppZsO1B1BIKJofMaUYeWE HfCLfG8aXv1yWWT+R01vf1G/wxqrrovSSLta8U9dmcVuj1aXwrm61doAOnvI1BNlsv/u XXtzKqu1LkKZesdT9IKO96GFivTkO/TrWn1tARBcfDQ8kfXOMPtlgKS5IKmAZdLQfDYx w0mcxVsUtSS7z8urr9Dx6r0t++b0Ci1oXvRmyrCLtbMtnHjgqSkINefV1M0YKAgaO0jF CQ9Q== X-Gm-Message-State: AOAM5321RTBbOw4c0sQIONlZLY644GygquSJcp8oLcay91LmDZ2GCkkE bxXM3jPQVzK8ZpnWgQQpgLR0N65IWAo= X-Received: by 2002:a37:a956:: with SMTP id s83mr7105814qke.220.1628809781469; Thu, 12 Aug 2021 16:09:41 -0700 (PDT) Received: from mail-qv1-f49.google.com (mail-qv1-f49.google.com. [209.85.219.49]) by smtp.gmail.com with ESMTPSA id k23sm2209649qkk.84.2021.08.12.16.09.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Aug 2021 16:09:40 -0700 (PDT) Received: by mail-qv1-f49.google.com with SMTP id m3so4228887qvu.0; Thu, 12 Aug 2021 16:09:40 -0700 (PDT) X-Received: by 2002:ad4:4e04:: with SMTP id dl4mr6502780qvb.18.1628809780364; Thu, 12 Aug 2021 16:09:40 -0700 (PDT) MIME-Version: 1.0 References: <20210615131605.616-1-thunder.leizhen@huawei.com> <20210615131605.616-2-thunder.leizhen@huawei.com> <03d7c7be-2f19-9fdf-2a4e-f49a62bb82f6@huawei.com> In-Reply-To: From: Li Yang Date: Thu, 12 Aug 2021 18:09:28 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/1] arm64: dts: lx2160a: Fix the compatible string of LX2160A UART To: "Leizhen (ThunderTown)" , Shawn Guo , Rob Herring , Mark Kettenis , devicetree , linux-arm-kernel , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 10, 2021 at 1:28 AM Leo Li wrote: > > > > > -----Original Message----- > > From: Leizhen (ThunderTown) > > Sent: Monday, August 9, 2021 8:28 PM > > To: Leo Li ; Shawn Guo ; Rob > > Herring ; Mark Kettenis ; > > devicetree ; linux-arm-kernel > kernel@lists.infradead.org>; linux-kernel > > Subject: Re: [PATCH v2 1/1] arm64: dts: lx2160a: Fix the compatible string of > > LX2160A UART > > > > > > > > On 2021/8/10 6:52, Leo Li wrote: > > > > > > > > >> -----Original Message----- > > >> From: Zhen Lei > > >> Sent: Tuesday, June 15, 2021 8:16 AM > > >> To: Shawn Guo ; Leo Li ; > > Rob > > >> Herring ; Mark Kettenis > > >> ; devicetree ; > > >> linux-arm-kernel ; > > >> linux-kernel > > >> Cc: Zhen Lei > > >> Subject: [PATCH v2 1/1] arm64: dts: lx2160a: Fix the compatible > > >> string of LX2160A UART > > >> > > >> Mark Kettenis told us that: > > >> According to the NXP documentation, the LX2160A has a real PL011 UART. > > >> > > >> Therefore, rewrite it to the compatible string of pl011. The property > > >> "current- speed" specific to "arm,sbsa-uart" is also deleted. > > > > > > Sorry that I missed the discussion on the v1. But looks like this change > > breaks the LX2160 boot. The AMBA matching doesn't seem to work. And > > the console is not registered correctly. > > > > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore.k > > ernel.org%2Flinux-arm-kernel%2Fcba3a29f-92b5-072a-9a27- > > 60240f072dad%40huawei.com%2F&data=04%7C01%7Cleoyang.li%40nx > > p.com%7C9986b52f71724d7f6ae108d95b9e1d9b%7C686ea1d3bc2b4c6fa92cd > > 99c5c301635%7C0%7C0%7C637641556923909225%7CUnknown%7CTWFpbGZ > > sb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6M > > n0%3D%7C1000&sdata=wReesSfMj1hV2iPTN0%2F%2B%2Fb%2BKJH8xF > > LLcDgOMfjx731I%3D&reserved=0 > > > > Maybe we should fall back to v1. > > I didn't look into the problem in detail. Probably it is because of lacking the clock properties needed by the AMBA bus? > After reading through the history of sbsa-uart, I think that I would prefer us to fall back to v1 to be compatible with sbsa-uart rather than changing it to be compatible with pl011. Although the hardware is actually compatible with the pl011, it would be better for us to follow the newer SBSA standard to leave advanced configuration to firmware and just expose the simple standard interface to OS. Regards, Leo > > > > > > > > [ 0.639055] OF: amba_device_add() failed (-2) for /soc/serial@21c0000 > > > [ 0.645612] OF: amba_device_add() failed (-2) for /soc/serial@21d0000 > > > > > >> > > >> Suggested-by: Shawn Guo > > >> Suggested-by: Mark Kettenis > > >> Signed-off-by: Zhen Lei > > >> --- > > >> arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 12 ++++-------- > > >> 1 file changed, 4 insertions(+), 8 deletions(-) > > >> > > >> diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi > > >> b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi > > >> index c4b1a59ba424..d2e6f7285674 100644 > > >> --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi > > >> +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi > > >> @@ -920,34 +920,30 @@ QORIQ_CLK_PLL_DIV(8)>, > > >> }; > > >> > > >> uart0: serial@21c0000 { > > >> - compatible = "arm,sbsa-uart","arm,pl011"; > > >> + compatible = "arm,pl011", "arm,primecell"; > > >> reg = <0x0 0x21c0000 0x0 0x1000>; > > >> interrupts = ; > > >> - current-speed = <115200>; > > >> status = "disabled"; > > >> }; > > >> > > >> uart1: serial@21d0000 { > > >> - compatible = "arm,sbsa-uart","arm,pl011"; > > >> + compatible = "arm,pl011", "arm,primecell"; > > >> reg = <0x0 0x21d0000 0x0 0x1000>; > > >> interrupts = ; > > >> - current-speed = <115200>; > > >> status = "disabled"; > > >> }; > > >> > > >> uart2: serial@21e0000 { > > >> - compatible = "arm,sbsa-uart","arm,pl011"; > > >> + compatible = "arm,pl011", "arm,primecell"; > > >> reg = <0x0 0x21e0000 0x0 0x1000>; > > >> interrupts = ; > > >> - current-speed = <115200>; > > >> status = "disabled"; > > >> }; > > >> > > >> uart3: serial@21f0000 { > > >> - compatible = "arm,sbsa-uart","arm,pl011"; > > >> + compatible = "arm,pl011", "arm,primecell"; > > >> reg = <0x0 0x21f0000 0x0 0x1000>; > > >> interrupts = ; > > >> - current-speed = <115200>; > > >> status = "disabled"; > > >> }; > > >> > > >> -- > > >> 2.25.1 > > >> > > > > > > . > > >