From patchwork Sat Apr 7 07:06:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abhinav Kumar X-Patchwork-Id: 10327749 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 97E5C6038F for ; Sat, 7 Apr 2018 07:07:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8A856292DD for ; Sat, 7 Apr 2018 07:07:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7F5B129630; Sat, 7 Apr 2018 07:07:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D49682962C for ; Sat, 7 Apr 2018 07:07:17 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8674A6E105; Sat, 7 Apr 2018 07:07:15 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from smtp.codeaurora.org (smtp.codeaurora.org [198.145.29.96]) by gabe.freedesktop.org (Postfix) with ESMTPS id EE0816E0DA; Sat, 7 Apr 2018 07:07:13 +0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1000) id D49A560249; Sat, 7 Apr 2018 07:07:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523084833; bh=+cJyTWPhMTilCHbu4w2tBFVI+xjNlYi9aiHoYUqnIrM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LEbbGla+Enh16W/YyP4zNoiynkW60sYirEwt/hJR5VhU5Gq0FpTdbhRoI98DAmIUa Bl9aW8d3zG5i3vGUdyh6CIaI11VhYNYJ2WhS/hOOZo4rI8o5+vByyZVHE73j3Kti3v cx0sKaLefOlPTpJ8KJ8y27Kzk/4WjAIApYwkVEEI= Received: from abhinavk-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: abhinavk@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 8E9AF60249; Sat, 7 Apr 2018 07:07:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523084833; bh=+cJyTWPhMTilCHbu4w2tBFVI+xjNlYi9aiHoYUqnIrM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LEbbGla+Enh16W/YyP4zNoiynkW60sYirEwt/hJR5VhU5Gq0FpTdbhRoI98DAmIUa Bl9aW8d3zG5i3vGUdyh6CIaI11VhYNYJ2WhS/hOOZo4rI8o5+vByyZVHE73j3Kti3v cx0sKaLefOlPTpJ8KJ8y27Kzk/4WjAIApYwkVEEI= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 8E9AF60249 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=abhinavk@codeaurora.org From: Abhinav Kumar To: dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org Subject: [DPU PATCH 2/2] drm/panel: add backlight control support for truly panel Date: Sat, 7 Apr 2018 00:06:53 -0700 Message-Id: <1523084813-858-2-git-send-email-abhinavk@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1523084813-858-1-git-send-email-abhinavk@codeaurora.org> References: <1523084813-858-1-git-send-email-abhinavk@codeaurora.org> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: manojavm@codeaurora.org, Abhinav Kumar , hoegsberg@google.com, chandanu@codeaurora.org MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Register truly panel as a backlight led device and provide methods to control its backlight operation. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/panel/panel-truly-dual-dsi.c | 96 +++++++++++++++++++++++++++- 1 file changed, 94 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-truly-dual-dsi.c b/drivers/gpu/drm/panel/panel-truly-dual-dsi.c index 47891ee..5d0ef90 100644 --- a/drivers/gpu/drm/panel/panel-truly-dual-dsi.c +++ b/drivers/gpu/drm/panel/panel-truly-dual-dsi.c @@ -14,6 +14,7 @@ #include #include #include +#include #include