From patchwork Fri Jun 28 18:08:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Torokhov X-Patchwork-Id: 13716488 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 3DAC2C2BD09 for ; Fri, 28 Jun 2024 18:09:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=gLbYfpHailMRml8tkooKFu5Un3e2ZVQ3TTsmePLSQUo=; b=g6wndZm83Sieg5ardCFQyXiwVd hq+rwQcygeFM/IL3yREYhAmlG/igrByGZuecG9HKo/xScpad/4pO2NCM5vARiL603oBDht2ROmQrZ nq8hqr8f5xYU+hZb1K8p0JQ88T2s0MiF2WDt6vjaUAIDpRmoxUTlCBl/RXS1zy4JRCFPJA+rXxQkg hIvIE43+nWYnX+4cwfcwDsehGPBPek7eVDVn1uPhsDs1B+Ij1rlHJWGMW9Kzw+QUkchQdGDo1wjHI VZWhMY/zhUJtEllYDxqxYObWd49zK167uRfxfFYE//VbXpPiQGQML2fdxPLJbvY6eK/n5q3WRqTKL EAxx1dbw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sNG24-0000000EaGZ-0nY1; Fri, 28 Jun 2024 18:09:12 +0000 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sNG1v-0000000EaCb-2By1 for linux-arm-kernel@lists.infradead.org; Fri, 28 Jun 2024 18:09:04 +0000 Received: by mail-pg1-x52a.google.com with SMTP id 41be03b00d2f7-656d8b346d2so594125a12.2 for ; Fri, 28 Jun 2024 11:09:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719598142; x=1720202942; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=gLbYfpHailMRml8tkooKFu5Un3e2ZVQ3TTsmePLSQUo=; b=Nc0xjEPwx1xOS0SvSiGAV+0UFr0CekyBrqaC+8jF6xm+Y9yd1umtHLIbCxvEatq3LL 0BiSamPRDgtmS/z7s+MmzcCiiwlaJVEGLdCia6QwR9KEgAkzb2McvQcq6mlsAOgkB/Ax RUK7Nr0Ul9fTahStl4oXQZZaQwsnF/8t8fuIrIvAjx0xvAHM+S7e1S85zpLWi1ginpUs 02PlkgknZZjnkRGTOhv2tZEmEBO2TpDC8PN9YOMobUYXqO5WS/lvTpiVcwfSYNJXnNai TQsdJg0R8lv0aqh9hWl0oRJ6zPhts4dE/N17RAZWwzRMd7CYF91wjHvTJI15Wkeddwvl LhGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719598142; x=1720202942; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gLbYfpHailMRml8tkooKFu5Un3e2ZVQ3TTsmePLSQUo=; b=bAOPvVZzI8oC9jr3RiT1aqni+OuRrV+qvglh7AyR7d6okxuFbmqi9L9EzI9b+C6jC8 BORQT5JO8ltecokfmOgW19e8BDFvUUXfAIl/XFzX4bTatPydzSzCHyBmN1BN+SWv7KVQ 3otFP7UDVVeEY0MCyZuOtsemUJi9E2fQ19hf8vx0hAsF/qb6oUkT5ryyq7gjaoR/PCkg oleTyk8W0p33nYf/Cju4Fyiq1GOJ0SnxLH6bpKKFs0bD9gAi5cHA4bvQv7Iubj07ENrW WuNaPddeNafJcDvGfREHhTqHN3AeaAxWLhgJ3DtETnmOEOgMP5fvIcX0ejEBPfwD2Buk HPhA== X-Gm-Message-State: AOJu0Yw/VUAd3tEHB4cKw2pRZ37l43a7XMA8MvIpAQYCGKwk1bkX9lfC fY7iU/jscXABF7NQLARhVM9moBMndlQJcTil9OcrwNDVlFkHHSyl X-Google-Smtp-Source: AGHT+IFbkw/YIbsa2PVh7LWrxn8qvAeoCj2gyLAqUcrhU9vdDH2p3fp08Z8dbHZsDhlcNXfAx9MKCA== X-Received: by 2002:a05:6a20:baa2:b0:1bd:2520:1fa5 with SMTP id adf61e73a8af0-1bd25202067mr9679591637.4.1719598142077; Fri, 28 Jun 2024 11:09:02 -0700 (PDT) Received: from dtor-ws.sjc.corp.google.com ([2620:15c:9d:2:c929:2998:720d:a104]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7080295d1f4sm1982911b3a.91.2024.06.28.11.09.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jun 2024 11:09:01 -0700 (PDT) From: Dmitry Torokhov To: Haojian Zhuang , Daniel Mack , Robert Jarzmik , Arnd Bergmann , Linus Walleij , soc@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 00/10] ARM: pxa: use software nodes/properties for GPIOs Date: Fri, 28 Jun 2024 11:08:40 -0700 Message-ID: <20240628180852.1738922-1-dmitry.torokhov@gmail.com> X-Mailer: git-send-email 2.45.2.803.g4e1b14247a-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240628_110903_585401_E5F51B7B X-CRM114-Status: GOOD ( 17.72 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series converts legacy pxa boards (spitz, gumstix) to use software nodes/properties to describe various GPIOs instead of relying on GPIO lookup tables. The benefit is that structure and behavior is closer to DT-described GPIOs. The very first patch ("ARM: spitz: fix GPIO assignment for backlight") is actually a fix that IMO should be applied sooner rather than later, the rest of patches are enhancements. The reason it is sent with the rest of the series is that later changes contextually depend on it. The last patch ("ARM: spitz: Use software nodes for the ADS7846 touchscreen") soft-depends on corresponding changes by Linus Walleij to the ads7846 driver in input tree. It compiles without it, but the device will not sync with display refreshes. I have created an immutable branch (branched from v6.9) at: git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git ib/ads7846-hsync in case you wish to pull it in. Regretfully it was only compiled as I do not have access to the relevant hardware. Dmitry Torokhov (8): ARM: spitz: fix GPIO assignment for backlight ARM: pxa: consolidate GPIO chip platform data ARM: pxa/gumstix: convert vbus gpio to use software nodes ARM: spitz: Simplify instantiating SPI controller ARM: spitz: Use software nodes to describe audio GPIOs ARM: spitz: Use software nodes to describe LCD GPIOs ARM: spitz: Use software nodes to describe MMC GPIOs ARM: spitz: Use software nodes to describe LED GPIOs Linus Walleij (2): ARM: spitz: Use software nodes to describe SPI CS lines ARM: spitz: Use software nodes for the ADS7846 touchscreen arch/arm/mach-pxa/devices.c | 53 +++-- arch/arm/mach-pxa/devices.h | 5 +- arch/arm/mach-pxa/gumstix.c | 24 +- arch/arm/mach-pxa/pxa25x.c | 8 +- arch/arm/mach-pxa/pxa27x.c | 9 +- arch/arm/mach-pxa/spitz.c | 284 ++++++++++++----------- include/linux/platform_data/mmc-pxamci.h | 4 +- 7 files changed, 208 insertions(+), 179 deletions(-) Thanks. Reviewed-by: Linus Walleij