Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp4013710ybd; Tue, 25 Jun 2019 12:26:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqyROmPPcUyKMKPy3YTA+mx+Vp64Qend2jzw0hfovhJCbtw4W5P0m1THqnuEsBIYD6d4dxTn X-Received: by 2002:a17:902:30a3:: with SMTP id v32mr409818plb.6.1561490814054; Tue, 25 Jun 2019 12:26:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561490814; cv=none; d=google.com; s=arc-20160816; b=gqtDKmaZBGEKSdy4kI3LHoC2OOIldDke7So6kCfnb/0EMkG6w554nS6Rmv1A2L4OLf Q5wXqgTPVynOGs7q4kgYHlXzxmR0Unz2JsIf8JkKHItuuG/TaiqxU8V4ruQYKVdNe47Z ZSOQmstpqXtWqSw7FOTJakmu3etVS4DFxXYjuYsNi3z7pgGxIWQgmCL+5/O1N6VK4krb n/CH+Mct1/8E2SEGRXmXBMF0PEFRoy4R6qLtnfXBGaK9BRWBfFFZTYajCBGOx0L6c91D C4ceQhQZOBuIhV4o/41kb0k1U2xXcVDRxTB2+Nl2Re+YHcYdfgySFFDpl5Hcen1H4lqz /5oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=RNjXZTa0eehs8U6TXIJ1xtY97Iu/6Eek+y81QQNtjK4=; b=UqgL6+OeGTzlYA9z/AdMNHWyZePbZvnpMk4OU7JVUR6M7KP4G/9/QvpJrtqruXYLyD 5A3yCrUfphecAsoo5+oZy8exOtZ1Nt6Joumt9NeSgNxQVxyoCyS8Yy7kPNBS8Fezktao HHz+8g9DeLo96FFFGkUuOIhYZtjCp1vLEDexuCnSVKjD3ZylFgYV3gLwhkGCHuZPMAzH ylq7Pt9fJnGbAPhZ0oeltQTHaB8PKb7GrJnrrwXIvn+dOpdXYD4xPGKA+vSdo94XxLsf JWKIGaE2p6kUUxJn4cOc8+V/wF9Kxws41wiH/1esjzuMm7R0FsOxFEqvxPA3duJ/xS4A lrtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=B8LuQu66; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b18si14247306pgm.82.2019.06.25.12.26.38; Tue, 25 Jun 2019 12:26:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=B8LuQu66; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729146AbfFYQey (ORCPT + 99 others); Tue, 25 Jun 2019 12:34:54 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:34349 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727034AbfFYQex (ORCPT ); Tue, 25 Jun 2019 12:34:53 -0400 Received: by mail-wr1-f66.google.com with SMTP id k11so18662600wrl.1 for ; Tue, 25 Jun 2019 09:34:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=RNjXZTa0eehs8U6TXIJ1xtY97Iu/6Eek+y81QQNtjK4=; b=B8LuQu66bgMmpBHn0CbN+gVJmLWy3c3N7z8bxuh0JXGKTw6PWfsSrpdrk5mrFYRvmt CeUcFrYqeCPgbiCJ+jIiEUE2NbmgnQFalb/wUcSM8ab3BddXyQ02/10RO9om9ObUS8VI sGVmk+ffQ8YrqfA7m/lbU2K1B/9/tczAwT7KMOOrh4Sd13TAzAhT66t4CKX4s9yQH1PU l8BYKVJU3d61u7wZ4h/eYquVn0tk1mbumj6t91PAzxrKbo2uiCe1uu/MMQkGxLylJ/5D zHz02i20yGrgLom/qdpFn5k25qlFJq2s36M/p6mmBeIaxkvGXx1yijivOajz10lQ2ZDo hrMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=RNjXZTa0eehs8U6TXIJ1xtY97Iu/6Eek+y81QQNtjK4=; b=gns1/l7ByAbJcia1DdtzWK7AgrtfLvC01QLXowppSGzBcNXyAbm0CsMnjk6L7MN7kl Okm2kmcdTjJiUXg9MrZlJtGJfpnDojFIiJps5Se/o0PRmyTBEa8L8EM8Jz5VdGsyuid0 sB3JiD67JNggYFI53WnbssTyxdoQdX6oHCe7VCpUiS+x8H1RCYKEC2Jbdi3drl2hnkD4 /j3eu9p23SoAyZxuxI8nHlJ/B5+kZg7RJaGKue6GGmmbvNXedIfn5lXhPeGchJ01V/hC 1s2otehIwdasGd+D3b0+GhIxzqzWEblN3GEqjBwVem73JUwNzGpiz5fmAbB7AoE08hIg 5Aww== X-Gm-Message-State: APjAAAWP4rjgpGP7PGWv4rOuQtx6WOTYyPhNbdMvU+419xtrKYyBXFD+ /X6Cgw4temSA8jThbCUSY5v0ew== X-Received: by 2002:a5d:5446:: with SMTP id w6mr106263069wrv.164.1561480491732; Tue, 25 Jun 2019 09:34:51 -0700 (PDT) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id g8sm2683795wme.20.2019.06.25.09.34.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Jun 2019 09:34:51 -0700 (PDT) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , Lee Jones , Daniel Thompson , Jingoo Han , Bartlomiej Zolnierkiewicz , David Lechner , Linus Walleij Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 00/12] ARM: davinci: da850-evm: remove more legacy GPIO calls Date: Tue, 25 Jun 2019 18:34:22 +0200 Message-Id: <20190625163434.13620-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski This is another small step on the path to liberating davinci from legacy GPIO API calls and shrinking the davinci GPIO driver by not having to support the base GPIO number anymore. This time we're removing the legacy calls used indirectly by the LCDC fbdev driver. The first three patches modify the GPIO backlight driver. The first of them adds the necessary functionality, the other two are just tweaks and cleanups. Next two patches enable the GPIO backlight driver in davinci_all_defconfig. Patch 6/12 models the backlight GPIO as an actual GPIO backlight device. Patches 7-9 extend the fbdev driver with regulator support and convert the da850-evm board file to using it. Last three patches are improvements to the da8xx fbdev driver since we're already touching it in this series. Bartosz Golaszewski (12): backlight: gpio: allow to probe non-pdata devices from board files backlight: gpio: use a helper variable for &pdev->dev backlight: gpio: pull the non-pdata device probing code into probe() ARM: davinci: refresh davinci_all_defconfig ARM: davinci_all_defconfig: enable GPIO backlight ARM: davinci: da850-evm: model the backlight GPIO as an actual device fbdev: da8xx: add support for a regulator ARM: davinci: da850-evm: switch to using a fixed regulator for lcdc fbdev: da8xx: remove panel_power_ctrl() callback from platform data fbdev: da8xx-fb: use devm_platform_ioremap_resource() fbdev: da8xx-fb: drop a redundant if fbdev: da8xx: use resource management for dma arch/arm/configs/davinci_all_defconfig | 28 +++--- arch/arm/mach-davinci/board-da850-evm.c | 90 ++++++++++++----- drivers/video/backlight/gpio_backlight.c | 67 +++++-------- drivers/video/fbdev/da8xx-fb.c | 118 +++++++++++++---------- include/video/da8xx-fb.h | 1 - 5 files changed, 165 insertions(+), 139 deletions(-) -- 2.21.0