Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4281018pxk; Tue, 22 Sep 2020 15:30:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxM4M3vpgB1gpAwMT64Qt5X9XNMSqtED1CHwAU1hZ+9UXNa3VBIqA+7r0GDcpjbOxbcJCv0 X-Received: by 2002:a17:906:a444:: with SMTP id cb4mr7134730ejb.432.1600813822605; Tue, 22 Sep 2020 15:30:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600813822; cv=none; d=google.com; s=arc-20160816; b=uJZ9YWC8xZLnzxIaUVXSIzkgB86CzG6m4HPqfeT7TAW4gbFhyVk50lgCY/A9WR32vE s7LSYFobLn7jDk7SASi0itZda9dUCLuVmARhA9yC/zYxObU0+tjk0E1KLQb353dafBO0 p+B2l8l3+A31cYfpvszc9Y3Ec39edARf17jnlo+Bn5/VYZJEJO4kkcp2RgIjJKe9bOoG xiaFeU4xVoSowAr85+/rIa/LBEOsTgmeH6SoyMrDi71Tzd48RRqUhtFIhl+LNc+shqMV xCrgzDmsTD1DVxTVXSnp6aolajlogxN0qXbs+eAQIGN08VlMpF1L5wTlX9XwKOWP5495 o5pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=ClEyF6YT/uBY6ngetqWoXu40MTV6oLWtuyfZ2xGB3Gk=; b=j7GkuNszoHtaeMo7X9D1DZqF3WNA7z/Shou3SdrJntdvXHG0wOG4BDxBGa2VfqBvJE a6etoRRCM+F8/Yn1duVsRv2vy7Ekuhv5Wd18TfIxNhWB/cPSQor2MSTyYl2JWWAwqzXS GkO7GmiadcHTtUqFBzK0yOuTT49lCMTa7MUosz8KmxoKPLFi1fNPDjpqLXwSDgRGOnM7 OF8YS0waT1WG2p7dkOsA/vra0lO6FrelI0ttN0OyR68EjUFq6HQGr9vnsSRHQMK1YRNU Q371Sq6PhGoOuncCpBbF01WZ475HVO9R5mU57L9p1Df8BnGVXma2jJfjMtq3Ck0cfBrh R9Hg== 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 qx20si11507506ejb.469.2020.09.22.15.29.57; Tue, 22 Sep 2020 15:30:22 -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 S1726614AbgIVW26 (ORCPT + 99 others); Tue, 22 Sep 2020 18:28:58 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:34404 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726448AbgIVW26 (ORCPT ); Tue, 22 Sep 2020 18:28:58 -0400 Received: by mail-ot1-f68.google.com with SMTP id h17so17171679otr.1; Tue, 22 Sep 2020 15:28:57 -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:cc; bh=ClEyF6YT/uBY6ngetqWoXu40MTV6oLWtuyfZ2xGB3Gk=; b=gSo5YUhzXZHK3LOSgRoPxv5/BdTlotNV2XMUF3fg0IS7O8CgruSaps0gAUa+/fOZS0 T2/HKcr1ncI+MqBE5oUbCmYUpUm5f6nTco9TtB1Oyz6DSGyk/pu/DVvDuJGbEyPwBKdb d4FTjwYABGfJ9rmmsG1Ifeosvh+oG/LT/djaAl1kmWopDmF+/Arwe1Xy67hwXm/ZPQMm xeoT3dDvSYR93fxP7SdjT+azvdS1XgQuJbR+8auffX8PQpVq93MuvWc2Zvg1RuvyEPT9 9q2f/WBOfM0egEBc4g8FEoD2y8feBAlXcaV2LSBQiGW5L/EsLHoO0xDZPuB1NM73FJXG 4rOg== X-Gm-Message-State: AOAM533nRQuOkd+AjIKmry5VssIUZOMgnez1+ko8W6KsbVtHdCubKnia CodMhgtQvC9TdnLFav5PLwBlxWEkGN+O0w== X-Received: by 2002:a9d:7d16:: with SMTP id v22mr4045603otn.372.1600813736694; Tue, 22 Sep 2020 15:28:56 -0700 (PDT) Received: from mail-ot1-f48.google.com (mail-ot1-f48.google.com. [209.85.210.48]) by smtp.gmail.com with ESMTPSA id y25sm7174569oti.26.2020.09.22.15.28.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 22 Sep 2020 15:28:56 -0700 (PDT) Received: by mail-ot1-f48.google.com with SMTP id n61so17134470ota.10; Tue, 22 Sep 2020 15:28:55 -0700 (PDT) X-Received: by 2002:a05:6830:14cb:: with SMTP id t11mr4447643otq.74.1600813735429; Tue, 22 Sep 2020 15:28:55 -0700 (PDT) MIME-Version: 1.0 References: <20200915073213.12779-1-biwen.li@oss.nxp.com> <20200915073213.12779-2-biwen.li@oss.nxp.com> <20200922030208.GY25109@dragon> In-Reply-To: From: Li Yang Date: Tue, 22 Sep 2020 17:28:43 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [EXT] Re: [PATCH 2/5] arm64: dts: lx2160a-rdb: remove useless property of rtc To: Biwen Li , V.Sethi@nxp.com, peter.newton@nxp.com Cc: Shawn Guo , "Biwen Li (OSS)" , "alexandre.belloni@bootlin.com" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Jiafei Pan , "linux-rtc@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 21, 2020 at 10:56 PM Biwen Li wrote: > > > > > > > > > > -----Original Message----- > > > From: Biwen Li > > > Sent: Monday, September 21, 2020 10:13 PM > > > To: Shawn Guo ; Biwen Li (OSS) > > > > > > Cc: alexandre.belloni@bootlin.com; Leo Li ; > > > robh+dt@kernel.org; mark.rutland@arm.com; devicetree@vger.kernel.org; > > > linux-kernel@vger.kernel.org; Jiafei Pan ; linux- > > > rtc@vger.kernel.org > > > Subject: RE: [EXT] Re: [PATCH 2/5] arm64: dts: lx2160a-rdb: remove > > > useless property of rtc > > > > > > > > > > > Caution: EXT Email > > > > > > > > On Tue, Sep 15, 2020 at 03:32:10PM +0800, Biwen Li wrote: > > > > > From: Biwen Li > > > > > > > > > > Remove useless property interrupts of rtc > > > > > > > > > > Signed-off-by: Biwen Li > > > > > --- > > > > > arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts | 2 -- > > > > > 1 file changed, 2 deletions(-) > > > > > > > > > > diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts > > > > > b/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts > > > > > index dce79018d397..e9e982176e07 100644 > > > > > --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts > > > > > +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts > > > > > @@ -171,8 +171,6 @@ > > > > > rtc@51 { > > > > > compatible = "nxp,pcf2129"; > > > > > reg = <0x51>; > > > > > - // IRQ10_B > > > > > - interrupts = <0 150 0x4>; > > > > > > > > If it's a correct description of hardware, I do not see why we would > > > > need to remove it. > > > Hi Shawn, > > > > > > Don't need use the interrupt, only read time from rtc. > > > > User probably will choose to use the alarm feature of the RTC and need the > > interrupt property. Is there any issue when the interrupt property is present? > Generic interrupt controller on layerscape only support IRQ_TYPE_LEVEL_HIGH and IRQ_TYPE_EDGE_RISING(except SoC LS1043A, LS1046A), > Not support IRQ_TYPE_LEVEL_LOW, That is not true. Although the GIC SPI only deals with level high and rising edge, there is a separate IRQCR register on LX2160 that can invert external interrupt. If the current LX2160 code doesn't support that, we need to fix it. Adding Varun for this. We probably can extend the existing drivers/irqchip/irq-ls-extirq.c driver to support LX2160. And btw, the interrupt number 150 is obviously wrong too. We probably can remove it temporarily before the external interrupt is properly supported on lx2160. > In drivers/rtc/rtc-pcf2127.c > ret = devm_request_threaded_irq(dev, alarm_irq, NULL, > pcf2127_rtc_irq, > IRQF_TRIGGER_LOW | IRQF_ONESHOT, > dev_name(dev), dev); > > > > > > > > > Best Regards, > > > Biwen Li > > > > > > > > Shawn > > > > > > > > > }; > > > > > }; > > > > > > > > > > -- > > > > > 2.17.1 > > > > >