Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1557642pxb; Tue, 8 Feb 2022 22:12:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJyVCGG286gZT1Mfxg9IBWvFnBG0lj1Me3/k7P0ip0sntL7/aVUaJo2tioNScrpxtNmkvGWI X-Received: by 2002:a63:5413:: with SMTP id i19mr746359pgb.208.1644387174600; Tue, 08 Feb 2022 22:12:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644387174; cv=none; d=google.com; s=arc-20160816; b=gm2uNWI2giUj6HRPuQoJRTA12hjUJis4/a76cBttBS3uq+8E70BKHtGwGAybTy8HiQ CK5hbBDzwjoVGkyaKKn/6UBYGsL2VQprpf8f+3tZ6DIoFUW4C3VaMUGogT7P3NvZQTOb HuWvwfyJbtTDhCUCll2GsG1/h613LP8jQIJcg+LhUXoYzz2EVNCWGpFpld5rV/vJGy+C dc1OPMXU72m/hLmY9DCnT7OSjAcZdsvI/ClpvAStd6nkVjTBIP9ailQbR2FZjW2IBT+L QdiBmn9AD3DN4DX0jc6jtOLJst04KHsDdSl/gfrOEqpR5558TLMhK+xJW/ug+uAl3lUA 6K9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=DCySzda80keBjyEDz1S/bpNT7VXpJeMj45VaQ6BvJBU=; b=W0uo/moznDYxvyZH1vMHuRs54XikliWTNtOXfo9G41TP78fFVcIMJV4Pvv/p3N282g g1UkI2Q7cL2FSB2Vtex0jblA3TVe8FFQCfx5F0eWMedOCbZ+6ETeSijveMaadf8dn71b GRmjMYhFvBOIxK01nXi/PB+ZO6zmQ6fz6d82TFmNtZfSgXSrOB1AnXBIgfC2nC1QEMRs S/nhGcCYrFq4x0pgs7I7+XSRFFV170PIFzjcYfzbkt8Az7DYGensP/7GDgWfWEgRGol/ OM1+9NAFA3C29vPaArTomELFO6aJox4EdyQxxbnusljPVOtOMctS1DyAW+GSQBLkCcYe Hi5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kali.org header.s=google header.b=GYXq0lDG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kali.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id hk16si5176518pjb.87.2022.02.08.22.12.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Feb 2022 22:12:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kali.org header.s=google header.b=GYXq0lDG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kali.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F20CFE016DA4; Tue, 8 Feb 2022 21:56:59 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239067AbiBHNRg (ORCPT + 99 others); Tue, 8 Feb 2022 08:17:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357628AbiBHMfN (ORCPT ); Tue, 8 Feb 2022 07:35:13 -0500 Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75D5EC03FECA for ; Tue, 8 Feb 2022 04:35:11 -0800 (PST) Received: by mail-oi1-x233.google.com with SMTP id r27so20349253oiw.4 for ; Tue, 08 Feb 2022 04:35:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kali.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=DCySzda80keBjyEDz1S/bpNT7VXpJeMj45VaQ6BvJBU=; b=GYXq0lDGikvfNxjZHaTsvUsWpAWeKdn/6UGfEb3FFoeFYlD6bUY/0nlap/7s/pq9z0 3APdNRdEg8kXTQRccdTBPHnxP3GBaS0NEchX/eBUqUR4B92jiN87Z4wHKHI93W+h1GYZ O01ad+euhCHLjSgemVx7XVtX2vVMua5t5NA/HKNu/iBinrg6OW/pUCc0JBP8TDRLmCMr ZKk6vQVBcB2EhjBtCbdEacoZR+NRfxwQhTZxe37GS23drZkY2ti8E6eQYLVWDrMG1Vzo V5ubSMJ8oprLEnkCN0Jeu1iX3/Hc0ivMOH7TFz1fxkcyb/1RylYGfs6YEKfxH6vmadAF kx6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=DCySzda80keBjyEDz1S/bpNT7VXpJeMj45VaQ6BvJBU=; b=3uz5jl8yQu7S4x7ZLt8NeOJxfAI/Bc5IsGZFBg6kHujm1Dtzaj60HU+t7uCyoTYpfS HgdO4KCE9+VXkyux+TpW9vdIO5+60/Bjwiusn2TdBFguIX4CItoHeTh+L1WsqeQ3yX/d zzSgjmfVIiMTCQlrblbJ9L0MRsOekWWQMKtGmQgIACO7GyxjjP+Vfw0SJZMNYpcn1pQm tC1hW6kdMge2Jpz78pflzJBmzL2qkNbLuwikYSJ3j/Cxhbz31hdExBqwUNLXyHt1Kh6l q+n7Nw7kmaS32RhC3HTdDbH5K+tIdCms9p26RRWCgptG+9eUwOWyqkTtGk5CI9x0/OCH xMbw== X-Gm-Message-State: AOAM532T/fpYAeQPZHyfC2v7SF/7D5NerxikzoxfoJgGT2iIhKIOTAaF FlW0eqFRxb+M6MxYsD6JEj7eAQ== X-Received: by 2002:a05:6808:211e:: with SMTP id r30mr411574oiw.6.1644323710858; Tue, 08 Feb 2022 04:35:10 -0800 (PST) Received: from [192.168.11.51] (cpe-173-173-107-246.satx.res.rr.com. [173.173.107.246]) by smtp.gmail.com with ESMTPSA id bc36sm5211916oob.45.2022.02.08.04.35.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Feb 2022 04:35:10 -0800 (PST) Message-ID: <300f9ec9-da52-235f-ea3c-b49bdc8bfb75@kali.org> Date: Tue, 8 Feb 2022 06:35:08 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: [PATCH 1/2] arm64: dts: qcom: c630: Add backlight controller Content-Language: en-US To: Bjorn Andersson Cc: Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220208041606.144039-1-bjorn.andersson@linaro.org> From: Steev Klimaszewski In-Reply-To: <20220208041606.144039-1-bjorn.andersson@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_HI,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/7/22 10:16 PM, Bjorn Andersson wrote: > The Lenovo Yoga C630 uses the PWM controller in the TI SN65DSI86 bridge > chip to provide a signal for the backlight control and has TLMM GPIO 11 > attached to some regulator that drives the backlight. > > Unfortunately the regulator attached to this gpio is also powering the > camera, so turning off backlight result in the detachment of the camera > as well. > > Signed-off-by: Bjorn Andersson > --- > arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts b/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts > index 58845a14805f..55fb7302245b 100644 > --- a/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts > +++ b/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts > @@ -59,6 +59,7 @@ mode { > panel { > compatible = "boe,nv133fhm-n61"; > no-hpd; > + backlight = <&backlight>; > > ports { > port { > @@ -98,6 +99,12 @@ sn65dsi86_refclk: sn65dsi86-refclk { > > clock-frequency = <19200000>; > }; > + > + backlight: backlight { > + compatible = "pwm-backlight"; > + pwms = <&sn65dsi86 1000000>; > + enable-gpios = <&tlmm 11 GPIO_ACTIVE_HIGH>; > + }; > }; > > &adsp_pas { > @@ -419,6 +426,7 @@ sn65dsi86: bridge@2c { > clock-names = "refclk"; > > no-hpd; > + #pwm-cells = <1>; > > ports { > #address-cells = <1>; Tested-by: Steev Klimaszewski