From nobody Sat Nov 23 02:26:20 2024 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 44BA01B392C for ; Fri, 15 Nov 2024 10:21:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731666064; cv=none; b=alUYY0S5qkeL9x4eJN9PH1VnVJXm+E4bHxFVntG253rjtT1TVhjXW+g9LD46VP3rfMU+Tgw9jg0if/yuLvM3TNoxMuzrrFlB2S8UsIm0bwDMq/myqCI7MiQRxu0ziiUHIEF528VZPjFTRZgFO0agrSz+QmJ+Qh5XCWRVKY4fFpY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731666064; c=relaxed/simple; bh=4pvj3RcFaHyFcXU5TSfG2pJeuLLKECeuNu7+oeJQGgA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=QWerTUEvB84HPX3OWu7+vWyG+gQSgeSBpkP767ySp0HZTj0feM4Raygq2hnAcNAyG51rpwK7KpaakdeL5YSWZhGqdZGj015f3CVJIImaZ+W8TOuzu2U7K+vnTf4oE40yBDrU4+lNfSv065FzRk8zVSWQxIRE95ns8lcopiI9dSU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=ekzDDrFX; arc=none smtp.client-ip=209.85.128.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ekzDDrFX" Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-4315eeb2601so17504445e9.2 for ; Fri, 15 Nov 2024 02:21:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1731666060; x=1732270860; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=ZeQNRx7lpK/GDSryJ6BkIjI+HYySdSCbTfQqez+jfkg=; b=ekzDDrFX+Bd29kGGtn+CDEZgvVI4Xxh+UMIlyXqrtSq2f+uYO1gBlgy4XbvTom/BBm w6/lQKb8gF5dJ/yy7GUeUUc0JOfdNGCuh+ZyslmNgOOpVbhst43Yti4vYX0ldR0YBRaP Hn4jPlGntf8eDNQVmo4L7LgEPmquxekZ4JnX1GSN2bm+29woZAbwEZRoNnvedk9o6BP/ sNFxmbKTOrNzQUKzxkbR1dyMnbQR4VoJXLLgOx7MkDbjU8WRo4sSKzeOTGc3KIz8ekkl bnDQPpkwgMKC2dfyjJ/r3m5Iz8ueEzF/WhEbJZg3N4jF0NwjC1IX/L+PGGCjbKBrVORR zkGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731666060; x=1732270860; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZeQNRx7lpK/GDSryJ6BkIjI+HYySdSCbTfQqez+jfkg=; b=Jc696JE5A+8g+dfRs32c8UN4r6mpFJ9I9x89fdmAZ+f0F18EcKrs7rYIRxVxKOHAiD z+jYaBbVoaLnAPCDFIUxKXjzgffTiA8ERIUvrAjnPOSkCTZy63KCmlQfYhwtPJvR2smz M7Qwm4FPZdZbdP1Mi2e1N5tRfcm4q3+etr7kjoanl6shW/R+lIhr2XfWgg0nMJqDJyic 6/Eit8ot7lbtR6/A+ysAw9oPPHNzaPkaLRZBlSRaYU53V1epDkyqS1JxnzvB+pZ9OpwK kd+0XThd44tYfp1MG+aE+r7cf8KlZd2ilzeebYe4TdfqaiWurh572Fzxa/RV41N54CW3 YBPA== X-Forwarded-Encrypted: i=1; AJvYcCVoHZsTmClmOT4qj9iUugUejkdI+Sb7vyi2JsXsZc+y+YvZJy8O2SgS8L57ajSGRqsH6BGshhJ7eGaDWoY=@vger.kernel.org X-Gm-Message-State: AOJu0YwK4bw7DRL95m2hNxNt4GV1OxQmaM9e2fXI/9Gjklwl8fcXUoEo pDIb3v+05X7eFwuNr8KjtM/fMjh8kiJdWz6o8vQJlpxqLk3ie5+rRk1OdMLeMhk= X-Google-Smtp-Source: AGHT+IGIoPWOzRDNQZvlX+IYVb/j7IZ91jp6mD/+zEgO7tguT0YmNZmscq4+WY/0O6/302F52uaBVw== X-Received: by 2002:a05:600c:34d0:b0:431:6083:cd30 with SMTP id 5b1f17b1804b1-432df7229f6mr18823915e9.6.1731666060490; Fri, 15 Nov 2024 02:21:00 -0800 (PST) Received: from [127.0.1.1] ([212.114.21.58]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-432da28bc11sm52109995e9.31.2024.11.15.02.20.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Nov 2024 02:21:00 -0800 (PST) From: Neil Armstrong Date: Fri, 15 Nov 2024 11:20:54 +0100 Subject: [PATCH 2/2] arm64: dts: qcom: sdm450-lenovo-tbx605f: add DSI panel nodes Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241115-topic-sdm450-upstream-lab-ibb-v1-2-8a8e74befbfe@linaro.org> References: <20241115-topic-sdm450-upstream-lab-ibb-v1-0-8a8e74befbfe@linaro.org> In-Reply-To: <20241115-topic-sdm450-upstream-lab-ibb-v1-0-8a8e74befbfe@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=3073; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=4pvj3RcFaHyFcXU5TSfG2pJeuLLKECeuNu7+oeJQGgA=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBnNyCJuN1tAKejxj+8k8Ji7UU0y8NgxnFiVvBOE SkyNz5HeNyJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZzcgiQAKCRB33NvayMhJ 0czLD/9/InzNKq1vLvBqC2CIV2pRGxSWhQyVKshI5YjMJEzy7Pxa4QKIqH2Gh4eBj+COmXSnrsJ +S6xDvtHqkbKjaV/LRmph7z+ieshO2umqYxaKl3LT4iQcVVcY7l67j8Wz4OmfoX52DfmKytTiRI FiQTPwNLWi8UVgVnVKtFZT4QjwA6vdEwY9FVjDDnrwDjE34BUq73X26o9pwjEq8LN/dffhTdsoE r+GyRC2FbNhfhaFRcJ0mYvsuVX74WaSlE45rMNznNB/XAocltsasvYHTHIA5E5uzkXwoDcQ2UuN /UOS6DL5erGKpM5noUmNPD3uzZIQm7/emOWuQk2On8fDDbSxZ8a/eG5oc1YpujCzwX9oD5APBlm mmX78UFBiW3SCT/NrClxTeywDFLg1e7s+dSPCS56V8jg3LNSNGP5EtMaUGMlapDkJJ1nMxGikVi P9QfnuDsAYckGPa4TexcYdFdM2/HdlsveJJnYhDl2aa7rrYB++gFlcqBsB6glCtSaaG4fwTOnsA Efu4vK8VW7C9z14eaKwM4lXR6NkoK+c8ATXfcARVYLHHdANEPEvI32MqelHZ9e+JUBpMB/LhSy2 XXu4PcjPOZb1Qv7I5otadQWGPyQ+0tI9gtwFb5hiWjPfmZFjuInKNVNWbLK9VvQl+CB7tkRiLIE 9LFpohEjGWo9pjw== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Add the necessary nodes to enable the DSI panel on the Lenovo Smart Tab M10 tablet. Signed-off-by: Neil Armstrong Reviewed-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sdm450-lenovo-tbx605f.dts | 97 ++++++++++++++++++= ++++ 1 file changed, 97 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm450-lenovo-tbx605f.dts b/arch/arm6= 4/boot/dts/qcom/sdm450-lenovo-tbx605f.dts index 175befc02b22f5df895e95d828edac35fbaed963..e80a89c59818573c7068c3adeaf= 51fd51defc7f0 100644 --- a/arch/arm64/boot/dts/qcom/sdm450-lenovo-tbx605f.dts +++ b/arch/arm64/boot/dts/qcom/sdm450-lenovo-tbx605f.dts @@ -46,6 +46,18 @@ other_ext_region@0 { }; }; =20 + backlight: gpio-backlight { + compatible =3D "gpio-backlight"; + + gpios =3D <&tlmm 16 GPIO_ACTIVE_HIGH>; + + default-on; + + pinctrl-names =3D "default"; + pinctrl-0 =3D <&backlight_enable_active>; + pinctrl-1 =3D <&backlight_enable_sleep>; + }; + gpio-keys { compatible =3D "gpio-keys"; key-volume-up { @@ -63,6 +75,49 @@ vph_pwr: vph-pwr-regulator { }; }; =20 +&mdss { + status =3D "okay"; +}; + +&mdss_dsi0 { + vdda-supply =3D <&pm8953_s3>; + vddio-supply =3D <&pm8953_l6>; + + status =3D "okay"; + + panel@0 { + compatible =3D "boe,tv101wum-ll2"; + reg =3D <0>; + + vsp-supply =3D <&lab>; + vsn-supply =3D <&ibb>; + reset-gpios =3D <&tlmm 61 GPIO_ACTIVE_LOW>; + + backlight =3D <&backlight>; + + pinctrl-names =3D "default"; + pinctrl-0 =3D <&panel_reset_active>; + pinctrl-1 =3D <&panel_reset_sleep>; + + port { + panel_in: endpoint { + remote-endpoint =3D <&mdss_dsi0_out>; + }; + }; + }; +}; + +&mdss_dsi0_out { + remote-endpoint =3D <&panel_in>; + data-lanes =3D <0 1 2 3>; +}; + +&mdss_dsi0_phy { + vcca-supply =3D <&pm8953_l3>; + + status =3D "okay"; +}; + &hsusb_phy { vdd-supply =3D <&pm8953_l3>; vdda-pll-supply =3D <&pm8953_l7>; @@ -90,6 +145,18 @@ touchscreen@38 { }; }; =20 +&ibb { + regulator-min-microvolt =3D <4600000>; + regulator-max-microvolt =3D <6000000>; + qcom,discharge-resistor-kohms =3D <32>; +}; + +&lab { + regulator-min-microvolt =3D <4600000>; + regulator-max-microvolt =3D <6000000>; + qcom,soft-start-us =3D <800>; +}; + &pm8953_resin { linux,code =3D ; status =3D "okay"; @@ -237,6 +304,36 @@ &sdhc_2 { &tlmm { gpio-reserved-ranges =3D <0 4>, <135 4>; =20 + backlight_enable_active: backlight-enable-active-state { + pins =3D "gpio16"; + function =3D "gpio"; + drive-strength =3D <8>; + bias-disable; + output-high; + }; + + backlight_enable_sleep: backlight-enable-sleep-state { + pins =3D "gpio16"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-pull-down; + }; + + panel_reset_active: panel-reset-active-state { + pins =3D "gpio61"; + function =3D "gpio"; + drive-strength =3D <8>; + bias-disable; + output-high; + }; + + panel_reset_sleep: panel-reset-sleep-state { + pins =3D "gpio61"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-pull-down; + }; + ts_int_active: ts-int-active-state { pins =3D "gpio65"; function =3D "gpio"; --=20 2.34.1