Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4900468rwr; Mon, 8 May 2023 14:37:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ45CaJ1G5/fg6ykUHFgwFKChhVhIWQNiowsUUU5RRGtAMeKkP1BCuiwZLh9ZU9MwWHSYcfh X-Received: by 2002:a05:6a00:2d83:b0:643:9ca:3c7d with SMTP id fb3-20020a056a002d8300b0064309ca3c7dmr15188056pfb.4.1683581855367; Mon, 08 May 2023 14:37:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683581855; cv=none; d=google.com; s=arc-20160816; b=ckOTqlnD509RlbUjW5D339tS0w9M6RoIuQ0dBm+mydoXz+QOVTL/4OOVhFH8aeq1MF 3HOqItDW1Xr1joVoC8Xy4BTPIv0MU1aPNbz8zTr/xCL0ArhpVgit6ci45UbMWGDTYFqE wIxxqNmWAFIAhibI7BlyooTd/1eHd/XnJy88aYZzVZ8slwz7nFsNF8NqZqMfXeHCz59/ K03Lg9um0MK/4om7vMUJ00+JsdJiGbFVKPSNRzDYwqoMCy58LZFXXEAhL9LT/Hw8TFCp Z6ip013yY+mMdv428UhhNpD1NuVm7D2Mk+lyF+62+JRWa7I/f+Q9fPqJ5T+IWjZBkAHs 1NOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=lY7XNuYMi6d2HpAXFIV2eIcbCwEXTGxuVFXmla1j3I0=; b=JHxF0aEFj/Nifn1kY7uS/3ZUtB1Tivw/TscrCkM0TtYRwBep5TFFvVgL1RJqowMwKM EkbFtuqL5ZSrbHMyDGslZfpKEvJQ6QDssXd6avxvesNu17iujAWmEx+NuZDy/7a4A2a0 cxwkUiqkpa5noudRJMAZnS1hudkBjKVRXXk7/Oit2rPLj0p4Z2bbkfdD7tGScxkXHvgs um1dmLIX79CDDl4F7E/u3M2mP0SpmWuO501wo6GZVQVEAE17BJ8R5/P+YHmashd5KZzr ASLX4GhEOlWyqO0+Lz917YfiFng/vmOBFVxoWcq3DUQE3mNZK7+wC/sUbMT7SZ5lMkWU v64w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=ldNC1OSR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z13-20020aa79f8d000000b0063b8dce6141si741967pfr.353.2023.05.08.14.37.22; Mon, 08 May 2023 14:37:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=ldNC1OSR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233797AbjEHVZX (ORCPT + 99 others); Mon, 8 May 2023 17:25:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233766AbjEHVZS (ORCPT ); Mon, 8 May 2023 17:25:18 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC4BA2D53; Mon, 8 May 2023 14:24:59 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-643b60855c8so2886029b3a.2; Mon, 08 May 2023 14:24:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683581099; x=1686173099; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=lY7XNuYMi6d2HpAXFIV2eIcbCwEXTGxuVFXmla1j3I0=; b=ldNC1OSRN/AiwY6BBBbtAdCSbMbXQnIYQR4qsbC4raWEeRgeENnMRyFj20zl6m6WFL Q6KoS616XvezA0CqW46e0Uf91lNFkKzVnmwaje2Xx+hnQi7x1fesRbLXVe1/62T280Tc sDNRIrVPzNkaQzyFwh5aikHQSV0+4+e9iFMDlURjhfyMlfSwz/jRaW+gCMpLu54FNZjV QpPe5Oz9noUeKtmAnQwynUBQsUf4AEcllT/v+uN9OpbX9vg2d7fOVF5bcnsfmrHi3UoK ZGjOQ027L7W1gSJP3C8+Zy+hTcT84BnPbB2sF6y4GidtBDmcoDg2kCx/mZOzINb0v3ot fQlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683581099; x=1686173099; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=lY7XNuYMi6d2HpAXFIV2eIcbCwEXTGxuVFXmla1j3I0=; b=OV+Wov1h+KTwjzj9Ho2E2HRDOLk3pKVKjzU46x2UntNf3w3D3nF4Ez9I61JMmDtgo8 tCwmyFIafDCKhryqB2+GUkw0LQ4a5VAbIYL23eKJAsgHu61avk1yHpGo+UCL6mQRqW/h p20qmWOS2JSGlE8O0nKqdqfDDxksgm0eOztD0jyHH0+Mc4c8Mx2tgUkW/uJiOtJFrQtb cz0+X1oLdKIbQm3gzSgKQmQUoX+bzkeFwKouCtowVw5MkdC5vqUhszxMKkzEbbaewxV4 Tgkl9rcp64eJWzw60dyMxE7dC8lTeFUmx9nrI0sM7v3909NHBd5CwJEhOqdllUuSDXvq aKKg== X-Gm-Message-State: AC+VfDwJWMKMacmzsEClCNgh9B1zR/e+Jiscd8NBxnqO2E4XU4FGxZGn vbp0v2F6ZAkTYWLswOF+6rI= X-Received: by 2002:a05:6a00:ad0:b0:63b:8a91:e641 with SMTP id c16-20020a056a000ad000b0063b8a91e641mr14966335pfl.11.1683581099188; Mon, 08 May 2023 14:24:59 -0700 (PDT) Received: from google.com ([2620:15c:9d:2:4d1:db5a:dbba:cd34]) by smtp.gmail.com with ESMTPSA id p8-20020a62ab08000000b0064394c2a1d0sm354851pff.209.2023.05.08.14.24.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 May 2023 14:24:58 -0700 (PDT) Date: Mon, 8 May 2023 14:24:54 -0700 From: Dmitry Torokhov To: Linus Walleij Cc: Aaro Koskinen , Janusz Krzysztofik , Tony Lindgren , Russell King , Daniel Mack , Haojian Zhuang , Robert Jarzmik , Thomas Bogendoerfer , Mark Brown , Bartosz Golaszewski , Andreas Kemnade , Helge Deller , Ulf Hansson , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-input@vger.kernel.org, linux-spi@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-mmc@vger.kernel.org Subject: Re: [PATCH v4 1/4] Input: ads7846 - Convert to use software nodes Message-ID: References: <20230430-nokia770-regression-v4-0-9b6dc5536b17@linaro.org> <20230430-nokia770-regression-v4-1-9b6dc5536b17@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230430-nokia770-regression-v4-1-9b6dc5536b17@linaro.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 08, 2023 at 11:20:06PM +0200, Linus Walleij wrote: > The Nokia 770 is using GPIOs from the global numberspace on the > CBUS node to pass down to the LCD controller. This regresses when we > let the OMAP GPIO driver use dynamic GPIO base. > > The Nokia 770 now has dynamic allocation of IRQ numbers, so this > needs to be fixed for it to work. > > As this is the only user of LCD MIPID we can easily augment the > driver to use a GPIO descriptor instead and resolve the issue. > > The platform data .shutdown() callback wasn't even used in the > code, but we encode a shutdown asserting RESET in the remove() > callback for completeness sake. > > The CBUS also has the ADS7846 touchscreen attached. > > Populate the devices on the Nokia 770 CBUS I2C using software > nodes instead of platform data quirks. This includes the LCD > and the ADS7846 touchscreen so the conversion just brings the LCD > along with it as software nodes is an all-or-nothing design > pattern. > > The ADS7846 has some limited support for using GPIO descriptors, > let's convert it over completely to using device properties and then > fix all remaining boardfile users to provide all platform data using > software nodes. > > Dump the of includes and of_match_ptr() in the ADS7846 driver as part > of the job. > > Since we have to move ADS7846 over to obtaining the GPIOs it is > using exclusively from descriptors, we provide descriptor tables > for the two remaining in-kernel boardfiles using ADS7846: > > - PXA Spitz > - MIPS Alchemy DB1000 development board > > It was too hard for me to include software node conversion of > these two remaining users at this time: the spitz is using a > hscync callback in the platform data that would require further > GPIO descriptor conversion of the Spitz, and moving the hsync > callback down into the driver: it will just become too big of > a job, but it can be done separately. > > The MIPS Alchemy DB1000 is simply something I cannot test, so take > the easier approach of just providing some GPIO descriptors in > this case as I don't want the patch to grow too intrusive. > > As we see that several device trees have incorrect polarity flags > and just expect to bypass the gpiolib polarity handling, fix up > all device trees too, in a separate patch. > > Suggested-by: Dmitry Torokhov > Fixes: 92bf78b33b0b ("gpio: omap: use dynamic allocation of base") > Signed-off-by: Linus Walleij > --- > ChangeLog v3->v4: > - Fix all board file polarity flags to be active low, because > this pendown signal is active low. > - Fix all erroneous device trees too. > - Drop some unnecessary commas. > ChangeLog v2->v3: > - Drop leftover OF ifdefs no longer needed and causing compile > errors. > --- > arch/arm/mach-omap1/board-nokia770.c | 98 +++++++++++++++++---------- > arch/arm/mach-pxa/spitz.c | 11 +++- > arch/mips/alchemy/devboards/db1000.c | 11 +++- > drivers/input/touchscreen/ads7846.c | 113 ++++++++++++-------------------- For input: Acked-by: Dmitry Torokhov In general: Reviewed-by: Dmitry Torokhov Thanks. -- Dmitry