Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3360256pxy; Sun, 25 Apr 2021 23:02:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwp1cyoF3BDKuu4n8k0plUcK+UF6YHpqGRGa8TUIJKkCndXnscRUmbhdABKrt6BkwzsjhKw X-Received: by 2002:aa7:908c:0:b029:250:b584:a406 with SMTP id i12-20020aa7908c0000b0290250b584a406mr16019913pfa.44.1619416967915; Sun, 25 Apr 2021 23:02:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619416967; cv=none; d=google.com; s=arc-20160816; b=XB0URbgGuq5oUI1WUMvCGsvEANU6HQ9Uz1YXGSgefQeZgW8zFMC/cPu6Abg8cujjdR 77KonuKukoD/+3MgKhCAdOFxZv4ilzaUPje3nHs9EwuEG1V9zT/e1zFqVhmEgQwHbN6g KZWalMHw2Pg6wWFYaxRwjJTM7db3sv8n2BorhWX8QjA9lmCbP2TZfpkG6UDfH6kvndt0 18HrOW1/bAiYSVRlRAH9XDiOCT6V265B16s6xCuMxGequhUVb6KMQNq2G/HGPgMyG4Wb haC1CQn4IBBXYNw6oZhqMciw1VAHsxv5tmAFDhenHUn+LrhZpcwqVvaJ59eBEv+MvxZU 49iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=yoh32NNiAuhMjCMa10Lh/t2UhU3nDGEgUBKin/UQxEE=; b=qoHFvKvH5zBmRQsJgc1FzG6Bkf36hAsQ5m1P8JSYZ+d4ByVKPIApx1xYi4iJ3uErvK JupUC58lpp56j89OqkOirzW1vE3b3KH5OOpqMawkajFxJ3+gCUUB4mK8Tpl/f6hX+UG4 SmfTHnkgGiplR1hGHZuLfBsmltAqBTt935Lc3ASCKMmJK+l1upOMW4gE0eXjB+qclScP WjZM4n+3icY6k6u344AA4SXrkNrObGwkupKTKiUnfIAKK66sWP5n6UgioOtac425IzKF +Y66t9XpeTrG6sDPLQ6wlGcGdb3mezRmj4VPDy/qRI1Wm1g60cG/RWuGCeeWnZy0zoBs Q7lA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 30si3257032pgp.121.2021.04.25.23.02.35; Sun, 25 Apr 2021 23:02:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231878AbhDZGBO (ORCPT + 99 others); Mon, 26 Apr 2021 02:01:14 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:40469 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbhDZGAe (ORCPT ); Mon, 26 Apr 2021 02:00:34 -0400 Received: from ironmsg07-lv.qualcomm.com ([10.47.202.151]) by alexa-out.qualcomm.com with ESMTP; 25 Apr 2021 22:59:53 -0700 X-QCInternal: smtphost Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg07-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 25 Apr 2021 22:59:51 -0700 X-QCInternal: smtphost Received: from rajeevny-linux.qualcomm.com ([10.204.66.121]) by ironmsg01-blr.qualcomm.com with ESMTP; 26 Apr 2021 11:29:20 +0530 Received: by rajeevny-linux.qualcomm.com (Postfix, from userid 2363605) id 1E16C212BD; Mon, 26 Apr 2021 11:29:19 +0530 (IST) From: Rajeev Nandan To: dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org Cc: Rajeev Nandan , linux-kernel@vger.kernel.org, robdclark@gmail.com, dianders@chromium.org, mkrishn@codeaurora.org, kalyan_t@codeaurora.org, hoegsberg@chromium.org, abhinavk@codeaurora.org, seanpaul@chromium.org Subject: [v3 0/2] drm: Add support for backlight control of eDP panel on ti-sn65dsi86 bridge Date: Mon, 26 Apr 2021 11:29:14 +0530 Message-Id: <1619416756-3533-1-git-send-email-rajeevny@codeaurora.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The backlight level of an eDP panel can be controlled through the AUX channel using DPCD registers of the panel. The capability for the Source device to adjust backlight characteristics within the panel, using the Sink device DPCD registers is indicated by the TCON_BACKLIGHT_ADJUSTMENT_CAPABLE bit in the EDP_GENERAL_CAPABILITY_1 register (DPCD Address 701h, bit0). In this configuration, the eDP TCON receives the backlight level information from the host, through the AUX channel. Anderson's patch series [1] exposed the DDC bus from ti-sn65dsi86 bridge, that gives an option to move the backlight control out of the bridge and to create a separate backlight driver. Changes in v2: - Created a new DisplayPort aux backlight driver and moved the code from drm_dp_aux_backlight.c (v1) to the new driver. - Removed the changes done in ti-sn65dsi86 bridge. (Rob Herring) Changes in v3: - Add missing ';' to fix module compilation (kernel test bot) [1] https://lore.kernel.org/dri-devel/20210416223950.3586967-1-dianders@chromium.org/ Rajeev Nandan (2): dt-bindings: backlight: add DisplayPort aux backlight backlight: Add DisplayPort aux backlight driver .../bindings/leds/backlight/dp-aux-backlight.yaml | 49 +++++ drivers/video/backlight/Kconfig | 7 + drivers/video/backlight/Makefile | 1 + drivers/video/backlight/dp_aux_backlight.c | 245 +++++++++++++++++++++ 4 files changed, 302 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/backlight/dp-aux-backlight.yaml create mode 100644 drivers/video/backlight/dp_aux_backlight.c -- 2.7.4