From patchwork Tue Apr 23 13:53:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13640130 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 CB725C4345F for ; Tue, 23 Apr 2024 13:54:18 +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:Cc:To:MIME-Version:Message-Id:Date: Subject:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=81ZHfdmugXwoDxY5+lNHa5W6ocCmGjnU1A9yuv54adI=; b=cLsTYtLzC9agf3 cqPKoHXgP3wpKaxdiQO/9qmSejYg7wIAhAw/hGderflWG5aCCa1sLYRz3S5WNNMM9xHtrZwSsI9pM 2OqN8KYInEzGa7TgGXEWN5eQ37HMZXHNKWjsnEnvV/keg6Gtw/yTmn8YPERxc3KRO4ugB3t3ZM9zj E48n22Wr3ZJOjlEoAoZuKBKL7opS5YDT89OtX1JvHNUNdD8QmJ0Zu/3jchaQH5bWtXhNdslpZVdV2 gsFPxWH9SUDmj9ZLMLL7jsdn/0YerfXOYD9Tgy+zwp+K5r8T5nluUAuJsHE2xzX8HuJfF3VG1Yq5C bfcZTFQ9J74jt49ldrNA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzGay-00000000AcS-3zcY; Tue, 23 Apr 2024 13:54:04 +0000 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzGav-00000000AZk-41R3 for linux-arm-kernel@lists.infradead.org; Tue, 23 Apr 2024 13:54:03 +0000 Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-518a56cdc03so6965316e87.1 for ; Tue, 23 Apr 2024 06:54:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713880439; x=1714485239; darn=lists.infradead.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=66DV356nl07B8s70QCWM5H1mhDJnsNQGWmnd/8jOjIU=; b=C9p5RwTwfZ1TKkawlcyTJLDnNxmrf+5N5XR984GuCJFraM8lu5MLAeqTo38BQbgzlA fLswMXkBonuf/nDL5+qmj7hyXpyUL11k+yLYBMqeFFCO4j7YIPBaESxhw0O5CeVDwNWB rMStF56VIhnTygRB1o0aiWCKWw+fhQSiFDA1CRqp7A1+janTnT0UHDSAWSd/g4d356jx DuckmR1YC/iNYccYVLSS8oEv5dN087gn8thG72i0gCNCE1Hyxkg80gp/pgMcohsVVHS1 QcdfmalJLdYPA0zD6CENoDbIizW+hvlFU1Wox7v4ikMX8aiTzEeUGk5wg2cq2SP5xHoH pkCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713880439; x=1714485239; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=66DV356nl07B8s70QCWM5H1mhDJnsNQGWmnd/8jOjIU=; b=gHlyfipfWr6UPRsSs4X1GLw7UoJO2W37oDCnhgL9QFFm8X7OEMmYrhTMd+E9fSte+Z 2Bok7hKVDXyG5qiPh5o4xNTkMtFdsfHTIubLjGTuXMXTm32F39VUVG6sB9cnfXrmJwOP U19QsH0v2cg7FlnUJIPI6l9t1ntWE7MhOWP8MxbjoQkZ50lfid24XpqTSIruTupxEKyn Vdx6/Epe5vTV/PK8mA/ygfUhZuv1wgIGcLTL2agG03xN49fW1Hl9YZppf2mkHL/BlaS2 R0pGrlHFYXTpTF91Ljhxvfc5KH7J+fgZ0+sZkcofEdx9UkZFLs3oJKC0acmDhC4oC4rO 7oUw== X-Gm-Message-State: AOJu0YzDU1hax8GMPHzwnRtNstutcyqSXKDHB24/xOJCs0rvZovMwqzu +PS5MGU8Q0gDfkBaYqB1pGUuoTbKZWaF51yf+cqvT2EGX66gxoBWpOyR0MDhW6Q= X-Google-Smtp-Source: AGHT+IFWeokGbcRhJU5XEUlY7hLxYHlCNeke73KzR6lYd7KgpcLeleHIVBSpBUji33s4BCx3gMhpDA== X-Received: by 2002:ac2:4a69:0:b0:513:b062:98c4 with SMTP id q9-20020ac24a69000000b00513b06298c4mr8574686lfp.11.1713880438992; Tue, 23 Apr 2024 06:53:58 -0700 (PDT) Received: from [192.168.1.140] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id b18-20020ac24112000000b0051a61f2d251sm1875997lfi.290.2024.04.23.06.53.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 06:53:58 -0700 (PDT) From: Linus Walleij Subject: [PATCH 0/5] Decrease the usage of global GPIO numbers for LEDs Date: Tue, 23 Apr 2024 15:53:56 +0200 Message-Id: <20240423-gpio-leds-v1-0-799c2f6bc61c@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAHW9J2YC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDEyNj3fSCzHzdnNSUYl3LFFMLk2TLRAszU0sloPqCotS0zAqwWdGxtbU A1ZbYwVsAAAA= To: Andrew Lunn , Sebastian Hesselbarth , Gregory Clement Cc: linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, Linus Walleij X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240423_065402_047549_A5830B73 X-CRM114-Status: UNSURE ( 8.62 ) X-CRM114-Notice: Please train this message. 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 Fix up the orion boards to use GPIO descriptor tables instead of hardcoded GPIO numbers in all board files. git grep 'struct gpio_led_platform_data' gives a list of suspects. We wade through them and root out the use of global GPIO numbers in favor of descriptors. Signed-off-by: Linus Walleij --- Linus Walleij (5): ARM: orion5x: Convert D2Net board to GPIO descriptors for LEDs ARM: orion5x: Convert DNS323 board to GPIO descriptors for LEDs ARM: orion5x: Convert MV2120 board to GPIO descriptors for LEDs ARM: orion5x: Convert Net2big board to GPIO descriptors for LEDs ARM: orion5x: Convert TS409 board to GPIO descriptors for LEDs arch/arm/mach-orion5x/board-d2net.c | 16 +++++++-- arch/arm/mach-orion5x/dns323-setup.c | 63 ++++++++++++++++++++++++++--------- arch/arm/mach-orion5x/mv2120-setup.c | 29 +++++++++++----- arch/arm/mach-orion5x/net2big-setup.c | 21 +++++++++--- arch/arm/mach-orion5x/ts409-setup.c | 25 +++++++++----- 5 files changed, 116 insertions(+), 38 deletions(-) --- base-commit: 4cece764965020c22cff7665b18a012006359095 change-id: 20240423-gpio-leds-9d584c9a8659 Best regards,