From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D4FABC38142 for ; Wed, 1 Feb 2023 09:27:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kSpqhIAoc2pZKya3fzj69WAE6C26p4dfH1HzioSOxrI=; b=Tt2MOGDKr16KMa t/PHkyWK5U6tS+cbSPBDCA1RAs3203n7p0IGIu87DH6sCwhM9HpB//lV4Noq6tIX0oeBWJ9fW7yUI XsN65lahzqUBrUdacHtEB/Kp/0Nqave8ybKvjNPj6arP7aKHZFCDfJ5YrjT3582O1drGeOwu7Fvcu JOSW9J8GeDYy8gDKiL5vmV7l2YQdUVaSFaLdXSHWhOHjhhQzGJvYU5np3lAtVwH4c8xtN4APfsow/ DmuLjVfNdLJU2LK7tHDFcK/vRE+AtxPPPTmhPPKTbO9IN6hSZSM7kpUQvuuFC2B5irlInwE8zFfOy OksZ/Q90F2vVu5ZdD/TA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pN9O4-00B0Z0-0s; Wed, 01 Feb 2023 09:26:40 +0000 Received: from forward500b.mail.yandex.net ([2a02:6b8:c02:900:1:45:d181:d500]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pN9Nz-00B0WR-R1 for linux-arm-kernel@lists.infradead.org; Wed, 01 Feb 2023 09:26:37 +0000 Received: from iva6-ada8eb386f2b.qloud-c.yandex.net (iva6-ada8eb386f2b.qloud-c.yandex.net [IPv6:2a02:6b8:c0c:9a88:0:640:ada8:eb38]) by forward500b.mail.yandex.net (Yandex) with ESMTP id C98D85F3F9; Wed, 1 Feb 2023 12:26:30 +0300 (MSK) Received: by iva6-ada8eb386f2b.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id TQSsijNZh0U1-qcp8fDCf; Wed, 01 Feb 2023 12:26:30 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1675243590; bh=cfD4NJTaGFoBJDNfN0cYFw0uTWIpXwHYbgy0wqpZOiY=; h=Cc:Message-ID:Subject:Date:References:To:From:In-Reply-To; b=M4BDk4vjtfQ75ADWUuABQBt5f/qaXq2kRqssOIXVnw4WMqqhtKdVsfG9G+6oCR79g oZgF09mn5JC3wEZQOaff+T1i36w/SjK4V0YdZFhSCu6CX5jKBqD3rz2Go8djoBlIs4 9DmFrCYHk6+azMaafXilVpqnsGv5vcB62rOzAg00= Authentication-Results: iva6-ada8eb386f2b.qloud-c.yandex.net; dkim=pass header.i=@maquefel.me Date: Wed, 1 Feb 2023 12:26:28 +0300 From: Nikita Shubin To: Alexander Sverdlin Cc: Bartosz Golaszewski , Linus Walleij , Hartley Sweeten , Russell King , Lukasz Majewski , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org Subject: Re: [PATCH v2] gpio: ep93xx: split device in multiple Message-ID: <20230201122628.2e4e1788@redslave.neermore.group> In-Reply-To: <15f7dcbcdaf6fdb05bfc1d5bee1bb2e1bf3c43fc.camel@gmail.com> References: <20230201091021.7090-1-nikita.shubin@maquefel.me> <15f7dcbcdaf6fdb05bfc1d5bee1bb2e1bf3c43fc.camel@gmail.com> X-Mailer: Claws Mail 4.1.0 (GTK 3.24.34; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230201_012636_083507_B1B2BF8E X-CRM114-Status: GOOD ( 21.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, 01 Feb 2023 10:18:47 +0100 Alexander Sverdlin wrote: > Hello Nikita, > > On Wed, 2023-02-01 at 12:10 +0300, Nikita Shubin wrote: > > This prepares ep93xx SOC gpio to convert into device tree driver: > > - dropped banks and legacy defines > > - split AB IRQ and make it shared > > > > We are relying on IRQ number information A, B ports have single > > shared IRQ, while F port have dedicated IRQ for each line. > > > > Also we had to split single ep93xx platform_device into multiple, > > one for each port, without this we can't do a full working > > transition from legacy platform code into device tree capable. All > > GPIO_LOOKUP were change to match new chip namings. > > > > Signed-off-by: Nikita Shubin > > Reviewed-by: Linus Walleij > > --- > > Bart, i've rebased on the top of gpio/for-next (there were issues > > indeed), but this patch still won't apply. That's becouse it's > > dependant on Linus patch: > > https://lore.kernel.org/linux-arm-kernel/20230111132210.134478-1-linus.walleij@linaro.org/T/ > > > > Alexander can we have Linus patch somehow applied to ep93xx ? > > in contrast to me Linus and Bartosz do maintain their GPIO tree, > from my side I've performed a quick test, so it's OK from my PoV to > apply, but I cannot really assist here more. > Oh sorry about that, i thought if it refers to "arch/arm/mach-ep93xx/core.c" - you or Hartley should apply them. > Linus and Bartosz do maintain their GPIO tree Then it should already exist in gpio/for-next ;). ``` echo heartbeat > /sys/class/leds/platform\:grled/trigger echo heartbeat > /sys/class/leds/platform\:rdled/trigger ``` Both working on my ts7250. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel