From patchwork Tue Feb 8 04:16:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 12738150 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2F999C433F5 for ; Tue, 8 Feb 2022 04:16:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346835AbiBHEQL (ORCPT ); Mon, 7 Feb 2022 23:16:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346775AbiBHEQK (ORCPT ); Mon, 7 Feb 2022 23:16:10 -0500 Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69CA5C0401DC for ; Mon, 7 Feb 2022 20:16:08 -0800 (PST) Received: by mail-oi1-x22e.google.com with SMTP id u13so19318212oie.5 for ; Mon, 07 Feb 2022 20:16:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=meg7+yv6P7H8I92kpKfauROnFr9HsA0YXfhHxqWngtI=; b=dr5T7eGTpDkLpbHAPWk/W+0fNT4iFBiMOR5forHMawNckWzkb8xk5t6eDbOF8xJL0s BjabzolWc7kR3wbRVdAbxN69q7pcdyeIeT/q47C4re07HQ1h7VK8cPEeMMvqB6gteuK8 DFSEJLhk2lMPO81u2BKgCRQIglnfdqiS+GJu5fM6W68glkIzF5wbLXRxxH/v1L+mpa50 qcksJ1sYsCxjZKtM9T/I4/UOycYzo6tsmy/vQ5oo5sbAzEii75Eg8O2AoJiioN6M3S+r zv7EmvNh0pM6VzAR3oE3/17v2pRsujPbOjLvdvQ7rgREWC1sjlvVHalwX7X47rHj5QZI 7hVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=meg7+yv6P7H8I92kpKfauROnFr9HsA0YXfhHxqWngtI=; b=hYk8uH19IhMnMd3n1enehmr74bo7dF+R9QJw3GPPQEUrigVO88NCw0g9fvvBQQd/cj 7JR+deWFqEr4BGzU/bjrNRzKyzZ5SlWfrhiXtgqU5Ar8AClvhXblJmBITD8GbZOYwmFd ruwoxRtjMmEv38i2jCAS7e9dSYnfPpH3ALwug02C+wJLAEEyl6I0OfJ4uk7oI0RiLutd XyR47kkwV7LBdxg55yKcFf2VSAiVPtWPJ6wHCrYkDtYgaR67M44EVHttEjSe/TpferWp XJ28baHOmmutKU0V05uQhVB5FBCo9LU7i0nC4xzzJ69xeoZ4E83AbOsLhQ1R1jDdgE6e i+rg== X-Gm-Message-State: AOAM532hh3GdymCJ6fVS051ShHneFXwPCs3ly2Bg7kr/VumHNSHo91kU MIpqp/jk83NYI+yVUdCsQN7JVA== X-Google-Smtp-Source: ABdhPJxY7TG0owTDc72qDPqILsBvxhKBVkq4JJzRy3UzM7q5BPPXyyFdbZeCRLP6HoRqqrhiwhYyqw== X-Received: by 2002:a05:6808:200c:: with SMTP id q12mr1058135oiw.2.1644293767814; Mon, 07 Feb 2022 20:16:07 -0800 (PST) Received: from builder.lan ([2600:1700:a0:3dc8:3697:f6ff:fe85:aac9]) by smtp.gmail.com with ESMTPSA id u3sm5009970oie.30.2022.02.07.20.16.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Feb 2022 20:16:07 -0800 (PST) From: Bjorn Andersson To: Bjorn Andersson , Steev Klimaszewski Cc: Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] arm64: dts: qcom: c630: Add backlight controller Date: Mon, 7 Feb 2022 22:16:05 -0600 Message-Id: <20220208041606.144039-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 Tested-by: Steev Klimaszewski --- 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>; From patchwork Tue Feb 8 04:16:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 12738151 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F0B8DC4332F for ; Tue, 8 Feb 2022 04:16:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346829AbiBHEQN (ORCPT ); Mon, 7 Feb 2022 23:16:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346775AbiBHEQL (ORCPT ); Mon, 7 Feb 2022 23:16:11 -0500 Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52801C0401EE for ; Mon, 7 Feb 2022 20:16:09 -0800 (PST) Received: by mail-oi1-x235.google.com with SMTP id x193so19436896oix.0 for ; Mon, 07 Feb 2022 20:16:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xlF31uWDKkUWKU7M7nwupRIZm+leoMsZ2bZGat9Ac10=; b=M1ZZSewWQ0e4/EOHTZbm052rfxsrwvR/6tryH2qvZpDOWxa/Rc8VgNxHS/04ryq+kU dEtRvwCxoy9V7ic9NaYPzjEQtKaSVmUFea7CL4VSSY/QOeuyTQFo4Uu820ZsJlY16KfH IAE16VJ9fOQ6guIjoGxrlea8S1sy9yngTLljD1THq2Q/ffnJ8NIhw7a/ZlgjF9/fjxau 7eXTK0oLNkwgJA28XgXU0S9mwrmfA+reUZrVsRt+FIkeL85/F81AnEeFVFZQdUm77+Cc faS9UEUx0Fr5FeR4lJZPMNiztH9Pk4e4ucv0u5KZuZOZ2VN/qEcycDB6BvLX/27t+hZk creg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=xlF31uWDKkUWKU7M7nwupRIZm+leoMsZ2bZGat9Ac10=; b=3RK7LEBk4Yr5Aurz+BVjEWgXZeiFsm8/TuelBujNn2ozvu5EC4OJd6Jv1VxFXg2Ear 1wEUyDNSa+AUk/iANaWPpsHcAqLkfL1aBfc8jh8Y4DMXQIFFCGX7uRoq9SJIk5F/cZQb A3J1SVIaVZr34h8Gm2/wlLA+AZ+MgYGTqUL9GrK51/x1Q4oSDjHZw+dWAU53kqqn/uAE TTfPIee+whY7orhSu0uoKF4zrtfr54GtvqqNLNTdKA/ddViICrJ6iUAm7jhbBZfOxd34 kMaa+Xqq+V+aWZW472zn2IUapB3zGJdcwS4exKXnWT2kEq0tVUekq0bax4tKEgEcvpF2 NawQ== X-Gm-Message-State: AOAM532VF57vfGcV60u3Igu+moTJRA3j3pY6Vf+biMNgRsc1sC/R1Hpk 5HUL5FXYTc38+iaCFtG/PChMvw== X-Google-Smtp-Source: ABdhPJwF9qF7O277ASabbS4tlDo+NLc9zi4x9bJxDc19uGMygj7LCUsT6CW/rBgN9sWWC4uuOds5rg== X-Received: by 2002:aca:f03:: with SMTP id 3mr951952oip.102.1644293768685; Mon, 07 Feb 2022 20:16:08 -0800 (PST) Received: from builder.lan ([2600:1700:a0:3dc8:3697:f6ff:fe85:aac9]) by smtp.gmail.com with ESMTPSA id u3sm5009970oie.30.2022.02.07.20.16.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Feb 2022 20:16:08 -0800 (PST) From: Bjorn Andersson To: Bjorn Andersson , Steev Klimaszewski Cc: Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] arm64: dts: qcom: c630: Move panel to aux-bus Date: Mon, 7 Feb 2022 22:16:06 -0600 Message-Id: <20220208041606.144039-2-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220208041606.144039-1-bjorn.andersson@linaro.org> References: <20220208041606.144039-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org With the newly introduced aux-bus under the TI SN65DSI86 the panel node should be described as a child instead of a standalone node, move it there. Signed-off-by: Bjorn Andersson Tested-by: Steev Klimaszewski --- .../boot/dts/qcom/sdm850-lenovo-yoga-c630.dts | 27 +++++++++---------- 1 file changed, 13 insertions(+), 14 deletions(-) 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 55fb7302245b..fd1261901ab5 100644 --- a/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts +++ b/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts @@ -56,20 +56,6 @@ mode { }; }; - panel { - compatible = "boe,nv133fhm-n61"; - no-hpd; - backlight = <&backlight>; - - ports { - port { - panel_in_edp: endpoint { - remote-endpoint = <&sn65dsi86_out>; - }; - }; - }; - }; - /* Reserved memory changes for IPA */ reserved-memory { wlan_msa_mem: memory@8c400000 { @@ -446,6 +432,19 @@ sn65dsi86_out: endpoint { }; }; }; + + aux-bus { + panel: panel { + compatible = "boe,nv133fhm-n61"; + backlight = <&backlight>; + + port { + panel_in_edp: endpoint { + remote-endpoint = <&sn65dsi86_out>; + }; + }; + }; + }; }; };