From patchwork Tue Jul 25 11:52:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Travkin X-Patchwork-Id: 125601 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp2443723vqg; Tue, 25 Jul 2023 05:49:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlFcpiL44EeJldfFhY7isqmmh7yvUI4zKCD5QwDhkYtRRpMMqHoQYgYYxYyfUCP+WrjNVGLN X-Received: by 2002:a05:6870:5692:b0:1ad:4c06:15c with SMTP id p18-20020a056870569200b001ad4c06015cmr15365892oao.18.1690289398226; Tue, 25 Jul 2023 05:49:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690289398; cv=none; d=google.com; s=arc-20160816; b=vMd+a0BolrO1npXU/+Zi34L1cUi28lNpr86znK2fw7trvYyYHc9vqVHl7IbqCDj8QH 4LL+eDK4woxvXVVIi61rEiPG+ExJxq9nsnnL7fulR6zR7L7WptTAppzFDP6QZFZKJ13y dItMY0vETrVNc9Q0ESQVVhRU3wk2os8gWq5yOxO0bzB1Y2Uke9m7jIZphVJTmTKXRWdD LIVrhmmggVXWWg1fLgZ1JV1S8jBwTiv+U6nHWModByloJmGNeHL7vfQfhU9MMlGlfgtD QxHvaESi33IGN1+YlOsTm/E/YvqWkmAknmmD+JlIY5puFAJaZQSYTd9whLEDZ8axjF0R 4idQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=yWwTUALrpTSFy9o5IQrxR21AwMV0JI5mcFxCN06qQ2M=; fh=PZEw/mhZZjG8zc1nxg6DXGnkaLjuEuneeBZbhQryw54=; b=gEb+MQfsg3vxwGyTc0zMMCNC/owC1ln0mLH+fUxddagX2HnKIkAFa2ugc96ZSQ6kyT pLdpROe363Nr1JTwjA+HpDEU0Dt+e1tx/6RceGVAR0jZBI+JTItV5aV3q/55WyivxD9h zM/Y6njLv/tqARVpgrdPwbUBU/lTUsvhVJnhWNa9uhUYC4cz7DGL4q8+JUXf3pQFZW64 wiOdHBqsgY87XVLcWXgJZot+P18MdW+5BaXZVjvDgOS+cetw7QRF9ZdghzCsvPTuBW9W aLYRQ4SANj880b+0dGtDTo904Wtjx5CI5dZiPnIW4ph+I0XDnnBcRW1MM64nQMJVJHMT 9htg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b="OxiIL/3j"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=trvn.ru Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j186-20020a638bc3000000b00541710a9d44si167959pge.114.2023.07.25.05.49.45; Tue, 25 Jul 2023 05:49:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b="OxiIL/3j"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=trvn.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232353AbjGYLwv (ORCPT + 99 others); Tue, 25 Jul 2023 07:52:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231929AbjGYLw2 (ORCPT ); Tue, 25 Jul 2023 07:52:28 -0400 Received: from box.trvn.ru (box.trvn.ru [194.87.146.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66F101BD3; Tue, 25 Jul 2023 04:52:15 -0700 (PDT) Received: from authenticated-user (box.trvn.ru [194.87.146.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by box.trvn.ru (Postfix) with ESMTPSA id C81F341880; Tue, 25 Jul 2023 16:52:10 +0500 (+05) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=trvn.ru; s=mail; t=1690285931; bh=RUps6PopX2ku8ErEBIrgx3LvDP36tqffz3C5r1M0VFs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=OxiIL/3jl1aX5rvzmlFJCA/9r9giekZ57Vpjk0BtgsL0pvtQHnKpVlfDkXezGggGf o6qxDZlzVuGFuPTFGCmqW3I8oWFHTr05omGBM1frAGlS1MeW3hXi2SFExEAO40Tdss J2hApsvUrn813UInyg3yTv2wY2nrcWZXZUtwKKuLo6Hk04wZPOEX+WxqISJmRWUzI/ Lsx7nqgSg27ibDtH9SYvygtQkNbAZLHXoPFOStPx8tvYH3eXotXMwNOfTgatrUTX2R VTiotNvfNb4OVL/pKPU5pMMvDg5xWLUy9VQnw/X2fHPVdve9iu8Wj6yhlpJp6BYpfP YTqVwEAMrIiHQ== From: Nikita Travkin Date: Tue, 25 Jul 2023 16:52:01 +0500 Subject: [PATCH 1/3] arm64: dts: qcom: msm8916-samsung-gt510: Add display panel MIME-Version: 1.0 Message-Id: <20230725-gt5-panel-v1-1-7c787e33a614@trvn.ru> References: <20230725-gt5-panel-v1-0-7c787e33a614@trvn.ru> In-Reply-To: <20230725-gt5-panel-v1-0-7c787e33a614@trvn.ru> To: Andy Gross , 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, ~postmarketos/upstreaming@lists.sr.ht, Nikita Travkin , Jasper Korten X-Developer-Signature: v=1; a=openpgp-sha256; l=3112; i=nikita@trvn.ru; h=from:subject:message-id; bh=0/d3sA1E5JApHXP6QSInsn1IxG7BJaIv3XlGtvhE8MY=; b=owEBbQKS/ZANAwAIAUMc7O4oGb91AcsmYgBkv7dmK4jarlcrSCdJTR26kPJdBtOZjH4dE8SnD JKgl0voQZaJAjMEAAEIAB0WIQTAhK9UUj+qg34uxUdDHOzuKBm/dQUCZL+3ZgAKCRBDHOzuKBm/ dcWmD/9oMJr/DTfjPDNj+MqZFLgQjefgzc99ck0IT6GD2g7PsUgc4BxWxnAOb/zDKCmMt+ZHLIf fOaMuSLIKyKncIKAgSBBKUajyGNIH6xzct5NCPx0SaR9NP1cKc+z1bHae6i7C5z3Q27RHurLfkA BXPXWYK+TrYMPJwIw3mSd5eJXxedA55THuOvsyb4K0Gn+GWvmpB+Vsg9gvoUHtoTTTaBsfzYoZz 1hBT3bi97Ty1gzfJBiyt5N6WomW3gMXAuP/PfV/PvqkQkj1U682nJ/BhHbnG0Vh6aRx6nQRCxND 3O8N5RG9N/Fk3vhG6tD5MpqefDC1m9PSPTc4M90qgXK72dwBZKqvQutjUQzyK9KghOdnegxhn0/ c/gMUKuk07SvaT1csuvRfrN0mDJ5co8bAlii/FCQ5foR5Kq1bpvYQntGlbmchxRNiJ0tGqeWKPU ATVt7Y75G+2C2zXlYpUorfvcR1HL/KSUDS23wGo9zAcgci++WOUO0XaZAXlcy5YjB/NJDZgKXA6 p57y0/X7OkSg7LaXDe+qnwdaw2h1ji5rl94LE0X1SZXLdeRhNXVsmCZWL7trBpzfnO+GkEpLFca OJdlsS2LgqzlXC62otEaG6En2EUoNL7PUFVx2ONBQUWsXIVh9WGrOBqgJHKc6MBIvPB4GSsjTjC yc+hUZhSi50xFaA== X-Developer-Key: i=nikita@trvn.ru; a=openpgp; fpr=C084AF54523FAA837E2EC547431CECEE2819BF75 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772396895771637614 X-GMAIL-MSGID: 1772396895771637614 From: Jasper Korten The device has a 9.7 inch ltl101at01 display. Add it to the device tree. Signed-off-by: Jasper Korten Co-developed-by: Nikita Travkin Signed-off-by: Nikita Travkin --- arch/arm64/boot/dts/qcom/msm8916-samsung-gt510.dts | 84 ++++++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-gt510.dts b/arch/arm64/boot/dts/qcom/msm8916-samsung-gt510.dts index 48111c6a2c78..a73cc7565bfb 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-gt510.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-gt510.dts @@ -19,6 +19,19 @@ clk_pwm: pwm { pinctrl-names = "default"; }; + reg_lcd_vmipi: regulator-lcd-vmipi { + compatible = "regulator-fixed"; + regulator-name = "lcd_vmipi"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + + gpio = <&tlmm 8 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-0 = <&lcd_en_default>; + pinctrl-names = "default"; + }; + reg_motor_vdd: regulator-motor-vdd { compatible = "regulator-fixed"; regulator-name = "motor_vdd"; @@ -55,6 +68,19 @@ reg_tsp_3p3v: regulator-tsp-3p3v { enable-active-high; }; + reg_vlcd_5p4v: regulator-vlcd-5p4v { + compatible = "regulator-fixed"; + regulator-name = "vlcd_5p4v"; + regulator-min-microvolt = <5400000>; + regulator-max-microvolt = <5400000>; + + gpio = <&tlmm 51 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-0 = <&buckbooster_en_default>; + pinctrl-names = "default"; + }; + vibrator { compatible = "pwm-vibrator"; @@ -84,7 +110,44 @@ touchscreen@4a { }; }; +&mdss { + status = "okay"; +}; + +&mdss_dsi0 { + pinctrl-0 = <&mdss_default>; + pinctrl-1 = <&mdss_sleep>; + pinctrl-names = "default", "sleep"; + + panel@0 { + compatible = "samsung,ltl101at01", "samsung,s6d7aa0"; + reg = <0>; + + power-supply = <®_vlcd_5p4v>; + vmipi-supply = <®_lcd_vmipi>; + reset-gpios = <&tlmm 97 GPIO_ACTIVE_LOW>; + + port { + panel_in: endpoint { + remote-endpoint = <&mdss_dsi0_out>; + }; + }; + }; +}; + +&mdss_dsi0_out { + data-lanes = <0 1 2 3>; + remote-endpoint = <&panel_in>; +}; + &tlmm { + buckbooster_en_default: buckbooster-en-default-state { + pins = "gpio51"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + motor_en_default: motor-en-default-state { pins = "gpio76"; function = "gpio"; @@ -97,6 +160,27 @@ motor_pwm_default: motor-pwm-default-state { function = "gcc_gp2_clk_a"; }; + lcd_en_default: lcd-en-default-state { + pins = "gpio8"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + mdss_default: mdss-default-state { + pins = "gpio97"; + function = "gpio"; + drive-strength = <8>; + bias-disable; + }; + + mdss_sleep: mdss-sleep-state { + pins = "gpio97"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + }; + tsp_en_default: tsp-en-default-state { pins = "gpio73"; function = "gpio"; From patchwork Tue Jul 25 11:52:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Travkin X-Patchwork-Id: 125576 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp2431669vqg; Tue, 25 Jul 2023 05:26:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlHZFwf+lw5lXHEZTmc/z2HbyKEs1IuFZlOUFwQUx3rxqyg4NWNGcozQmAjxaPHkoplz/FCf X-Received: by 2002:a05:6a20:4286:b0:132:cf6e:c5d9 with SMTP id o6-20020a056a20428600b00132cf6ec5d9mr19049194pzj.6.1690288001793; Tue, 25 Jul 2023 05:26:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690288001; cv=none; d=google.com; s=arc-20160816; b=lfjDsTKy67wWuUhzuJcGTFsScE61ryAGaY36yvQTFr60tcYZ8LQY+wvFXrK4uEuZh9 IhE0TUFr1+EzBdZAXMdKOGzB23LkdfavJ8ZjPuXgbB71RNzS1c8RVw9fiqKQk1hd0snb YyITWbXiTr7JSa2ZWpxIGcfW6c0b0kCZVq59ocKYVg/dYQf5teRXs7fm6uLZi4tbpX06 8w7Usj9USKjAy3JILNjMyeNWIrA0ahdc0xHSXcUsGXTd0QT7L5SyVp2Gi5QVAfJeBqLL fCfHqknxt+PmCAznzC2DgsBeolzc9XLCz+Enfum9m3BMjDQ5wbMs+57MksAlpL3fCKWg 129Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=hiFFA7oJ3U0lTYCWVKR9qZd1OPy6V+An2EZxRwXMPO8=; fh=rL22/H9OwfwBjGK2Ri7wwVidiy0he04jzRg+zmxFWa0=; b=HbmCrAhUs2y1WTEMfjrPbfGSt6E/bOFTM6xgGS7sllvAHJ61bdyDSXI3BxXn1Gp+B8 fxpxHsSqNXr0/K4qyqN9rQBZAenw0yufHPQOS3QXfACUKr9xcMi4t71rt99GLhIP8IxB I7BKl+bFVVTgCEU+EAL6IlKsB+lET3DCJR5q3FRT5nSzHqF1S/5psqJaf0WWmtyt30SA AvIe3OA5KBoe8Zg6KZ5tf1mp6QT1IjLaIL/9Phpl+aRFfjTBPlCeqZrQz9vBdjk0bKL0 56rZ8y03c9NLty5JJiHmu6NpD4ULBgJQcjbWBpMaInQS6Pjq1uB+bHkP0RU8jafILEQH yAGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=LTzpz2P2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=trvn.ru Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fd13-20020a056a002e8d00b0068632b6bc90si11808508pfb.114.2023.07.25.05.26.27; Tue, 25 Jul 2023 05:26:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=LTzpz2P2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=trvn.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231297AbjGYLyC (ORCPT + 99 others); Tue, 25 Jul 2023 07:54:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232406AbjGYLwa (ORCPT ); Tue, 25 Jul 2023 07:52:30 -0400 Received: from box.trvn.ru (box.trvn.ru [194.87.146.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FE381BE8; Tue, 25 Jul 2023 04:52:16 -0700 (PDT) Received: from authenticated-user (box.trvn.ru [194.87.146.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by box.trvn.ru (Postfix) with ESMTPSA id 6BC26423AB; Tue, 25 Jul 2023 16:52:11 +0500 (+05) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=trvn.ru; s=mail; t=1690285932; bh=fyMm2t4m6xIpnCBIcX5cuprXKyMw1CyD+gyElDFVFNM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=LTzpz2P2YLCcDU1hjNn3fmbIDtcyX35Znp87IpvUYL8sY8qGrXAQIS5WrmEgv24R1 8NI3cbBuR6BPNy8b89mGQe3gOpKoWK6lisNuhxwX7ffpgP2Cu8nhM4lWJtxi/d1OLN RN6JOrDmMeB2SptP0Zq7iM71eoQNNFGQ0JF7gowFhV0vOY2+Um3Oy1u1hl9xkvbWwL iVlK5hEagOjeBDJ76H0UXt+h/UVwPPQc43+gn4LOa2qc2RHQG64Xh2aeifZb9VO84N XsxQUZ6yyalylwsTGPklz39Ses/dqpoeutQqOBDj8iNXq2SsC+0Ltp80HquP9lwsmi NjSAGeOBYLM9g== From: Nikita Travkin Date: Tue, 25 Jul 2023 16:52:02 +0500 Subject: [PATCH 2/3] arm64: dts: qcom: msm8916-samsung-gt58: Add display panel MIME-Version: 1.0 Message-Id: <20230725-gt5-panel-v1-2-7c787e33a614@trvn.ru> References: <20230725-gt5-panel-v1-0-7c787e33a614@trvn.ru> In-Reply-To: <20230725-gt5-panel-v1-0-7c787e33a614@trvn.ru> To: Andy Gross , 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, ~postmarketos/upstreaming@lists.sr.ht, Nikita Travkin , Siddharth Manthan X-Developer-Signature: v=1; a=openpgp-sha256; l=2317; i=nikita@trvn.ru; h=from:subject:message-id; bh=jDl6DAGTdFMiixmvxC2DHjeaMj2W4do/LqT2Lse+7AE=; b=owEBbQKS/ZANAwAIAUMc7O4oGb91AcsmYgBkv7dmp+rv6fO6oYpKFLwcXQNj6XQgf43zg9RVN oxO+xLqWT2JAjMEAAEIAB0WIQTAhK9UUj+qg34uxUdDHOzuKBm/dQUCZL+3ZgAKCRBDHOzuKBm/ dXhPEACDIp4Jsm43S2W0QVuE06nNbBD0nKlb94HIDG9tU1irnRLhqXhydFG5pq8xuXKKR5Gk7Fb Kf86jAHZqML6qxclQ2NcovMuFwCRt646PNTmlnUIfzkGnHdD9B93As2xkEefPQVSn9DrRkWwmq8 1CWPaA4Ld6P4VE4FlIUMXqIHP879mtv3HL5T7GGe7Or/RJaDM85JMuTIrIfEip7aT3AtuuePj0V L1EQipmMfRBrXRUtzZbmHTB6EgDKsAQVywGNaWw2uiq8j9rWB2DpILhQAyEKG+h695dP0xjX9EF eA1ZFodV+QihCKJNd1sVbnYjkSt38qbgMy4dRFqNOCmMDPKfc466M/NGoOGvJHmWHttdUb8/zFB 5+loBPMMTqeoEh5Ohgr9CuPGdJCR7cQZcjRZ3TWKqWwr6+G156amJ2LRQYuZAbf9+9bD4lbYkKs htTBHQqOmGCrp8qNW1PwXgN7+4Ls71cQRhbPgPlXEclH4RtbhWR384w7eqAU5aIpd7RlkX4toWT CVW3QnpbxPdVqI+i6u54SXYpW0PYFI3Xjhs3KAWuY5kPmTHpE/ip4nzYDQIkRUuGEgzYSboGFH+ UwWur+KhWosPtxYW8aH4hOOO2I+NBLgmjgWwuRf9/m3NWqKvRh+qEKopWICUjrv4m0YKkyY7NCu /wBgkiJ7PXVTafg== X-Developer-Key: i=nikita@trvn.ru; a=openpgp; fpr=C084AF54523FAA837E2EC547431CECEE2819BF75 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772395431945835099 X-GMAIL-MSGID: 1772395431945835099 From: Siddharth Manthan The device has a 8 inch lsl080al03 display. Add it to the device tree. Signed-off-by: Siddharth Manthan Co-developed-by: Nikita Travkin Signed-off-by: Nikita Travkin --- arch/arm64/boot/dts/qcom/msm8916-samsung-gt58.dts | 64 +++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-gt58.dts b/arch/arm64/boot/dts/qcom/msm8916-samsung-gt58.dts index 98ceaad7fcea..11359bcc27b3 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-gt58.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-gt58.dts @@ -9,6 +9,19 @@ / { compatible = "samsung,gt58", "qcom,msm8916"; chassis-type = "tablet"; + reg_5p4v: regulator-5p4v { + compatible = "regulator-fixed"; + regulator-name = "vlcd_5p4v"; + regulator-min-microvolt = <5400000>; + regulator-max-microvolt = <5400000>; + + gpio = <&tlmm 8 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-0 = <&buckbooster_en_default>; + pinctrl-names = "default"; + }; + reg_vdd_tsp: regulator-vdd-tsp { compatible = "regulator-fixed"; regulator-name = "vdd_tsp"; @@ -51,7 +64,58 @@ touchscreen@20 { }; }; +&mdss { + status = "okay"; +}; + +&mdss_dsi0 { + pinctrl-0 = <&mdss_default>; + pinctrl-1 = <&mdss_sleep>; + pinctrl-names = "default", "sleep"; + + panel@0 { + compatible = "samsung,lsl080al03", "samsung,s6d7aa0"; + reg = <0>; + + power-supply = <®_5p4v>; + vmipi-supply = <&pm8916_l5>; + reset-gpios = <&tlmm 97 GPIO_ACTIVE_LOW>; + + port { + panel_in: endpoint { + remote-endpoint = <&mdss_dsi0_out>; + }; + }; + }; +}; + +&mdss_dsi0_out { + data-lanes = <0 1 2 3>; + remote-endpoint = <&panel_in>; +}; + &tlmm { + buckbooster_en_default: buckbooster-en-default-state { + pins = "gpio8"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + mdss_default: mdss-default-state { + pins = "gpio97"; + function = "gpio"; + drive-strength = <8>; + bias-disable; + }; + + mdss_sleep: mdss-sleep-state { + pins = "gpio97"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + }; + reg_tsp_en_default: reg-tsp-en-default-state { pins = "gpio73"; function = "gpio"; From patchwork Tue Jul 25 11:52:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Travkin X-Patchwork-Id: 125603 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp2444748vqg; Tue, 25 Jul 2023 05:52:00 -0700 (PDT) X-Google-Smtp-Source: APBJJlF4WIelQKWStzC8GG+H17LAQW2FSsAzhx0AcRNhtHLYPJMQ7H3KHFFTpVMxVZYHg21IB1xQ X-Received: by 2002:a05:6a20:430a:b0:133:8784:15f7 with SMTP id h10-20020a056a20430a00b00133878415f7mr3114708pzk.14.1690289519978; Tue, 25 Jul 2023 05:51:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690289519; cv=none; d=google.com; s=arc-20160816; b=DphIhGaUKR4mtiWUInRZIyfizdxHb/X0qTdvOlWlQroIzSZEEgWE607QXD3sCgFKeb shWqwJ0zrF5FwzT2b/vHbl8pEe0oYZDqd723PErpnYQwEyYKWn9GnZMFjhr4RXfawT2W XAvhAwn+6gN2rnaQ4ijj4jbvOKSlm8AcpMQ9r0AdxQh1QjgpWZU+bWCkPBM7PosSEXdI q4t5MFToUkUYMdYXhfpgYlooQoPePEagLdlEAZNbnqQuP9HaCuKzNmS9p8dcqX2f1UUG sZsS+aqxIf32lixhqp3fyo0KxtS+7O47CGG5WrJ9DJ/GJKp3oj3u51qf4xxkPFDqROBV qXaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=RGA9qaLosVSXXqdVrCTDQ73p32+ty7ykDh6Yjaab0EE=; fh=t2u93XF7JNItaZMEPjXzMJmNouQWvaqOyQFKD7q/VJs=; b=WZYic4560NAKoYuOs7hA+cd24c/eePwNkrXA0gthYMVk+BVVDRmVi2lnBBQztQkavq iLL2yCvTb61TK8zY70/cibh3UqXqy7beWNDjRM/Q5zqrihrETrBjGPxRqBngK12ziC+D 8s9HCCuNrp0xSKTEq6rgKzPixb4ZE4MtcIurRL0V4g7SIzTI35L+d99IWPlNJDh57ysU O0sv5VF2U1GFt1DaCp5yvWq0rY/imZNfSvZTtMNYxzz8JbfSmQD7U/aMkTL2uzOXTR/V 7zmUQEQNxBkbnskNqfX6DzZyMFLz9I9idtA+Oljiir/BPKgMjGOpK8L3Bccx9q7Z4DhT VC8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=kRO13Key; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=trvn.ru Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u11-20020a6540cb000000b005578c6a767esi11293606pgp.885.2023.07.25.05.51.44; Tue, 25 Jul 2023 05:51:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=kRO13Key; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=trvn.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229684AbjGYLx7 (ORCPT + 99 others); Tue, 25 Jul 2023 07:53:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230220AbjGYLwc (ORCPT ); Tue, 25 Jul 2023 07:52:32 -0400 Received: from box.trvn.ru (box.trvn.ru [194.87.146.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86B3F1FE3; Tue, 25 Jul 2023 04:52:18 -0700 (PDT) Received: from authenticated-user (box.trvn.ru [194.87.146.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by box.trvn.ru (Postfix) with ESMTPSA id 390A1423D0; Tue, 25 Jul 2023 16:52:12 +0500 (+05) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=trvn.ru; s=mail; t=1690285932; bh=3k2gR2vQ7wl6XCxGkInLU9JSXp8L45oKI5wh9/mq4vA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=kRO13KeyiDG20fc5F7sbt232/vvJykJFa4Xr/9YmJ3J8JQArGhrLhPGkTkeIb2929 H4cssd/8XhllHIudfVNcu9+XWWlOcy8HJmlC7jgXbY9QOnN8OOctxuu22bXjqtT7nB dwBJijQLiqcttAOb6EZufEXTcKlgh7COuBt73r59ojrROcYeVtXE1oRqBmk4T130Y3 x5V3MwpUketIFh1p9il71ukHQIFO406CV1G/ajHKm9QjkfLJEGmUqLJh8o1NxI7+ZL h6poECMVNCTL1+sEKFpbxWogsGU5mj3+jOWfM3DT4pOQG/Vh7ZtirvkGLy6gThjr+u A4UcOgdmlQLSg== From: Nikita Travkin Date: Tue, 25 Jul 2023 16:52:03 +0500 Subject: [PATCH 3/3] arm64: dts: qcom: msm8916-samsung-gt510: Add capacitive keys MIME-Version: 1.0 Message-Id: <20230725-gt5-panel-v1-3-7c787e33a614@trvn.ru> References: <20230725-gt5-panel-v1-0-7c787e33a614@trvn.ru> In-Reply-To: <20230725-gt5-panel-v1-0-7c787e33a614@trvn.ru> To: Andy Gross , 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, ~postmarketos/upstreaming@lists.sr.ht, Nikita Travkin X-Developer-Signature: v=1; a=openpgp-sha256; l=696; i=nikita@trvn.ru; h=from:subject:message-id; bh=3k2gR2vQ7wl6XCxGkInLU9JSXp8L45oKI5wh9/mq4vA=; b=owEBbQKS/ZANAwAIAUMc7O4oGb91AcsmYgBkv7dmplqdzYFcPD6jpKMCerTluMZZldhW+sxO8 eu6HNpKIyCJAjMEAAEIAB0WIQTAhK9UUj+qg34uxUdDHOzuKBm/dQUCZL+3ZgAKCRBDHOzuKBm/ df+aD/9mdqwAm0e2xSmsBUc0f92pce+kzB4Bm6DRQ9uUS5GKzPbh0N4KFmI668wJ22OFeMyWpDR IOiiAutdzydtdiKkmanwVomBd/7X8PqXUcrmap+/DhypkP1m0beK3cYDSJX6LlshDL3HFx5iExj DDH4Sce9gpFah2YlXMydk9g8G/hBmthJvefCN18Thx3BPGRdVlgl68fBycAkeMn4dOsfBT++QbB SmxuVeNWdhHmUCU13kZ/ZtvzJOx18M9GzKVCJ24kQYeeu0IyRBge39EXQ+kGZsI3Dy99nSjhBWL xHrgVyAQBeJZAGOElEW0GZztzc34KBPYn0EAuqmKjb1s89miMoqd1J9PdjNYTvRoDxPBwKVdumy aiqCl962SDRdJT3EmOW/12CbOWDoedOKfvahl9uynigHPBockM19SaACIEprgrr6uS+3C9ipjSc qlWbCX4rro6Qq4WO9plOIUHwqrmjCeyINEgk3wYBlYVtoRD61V7o3pDR0rLcrdTiGvsAvOP2MVr 4euEldwGIG5tNi9xn6crsMVOmZK16HH85UP0TnzD4yk00GQFAM4H4C9BAd23XOnbH0IO2bsllJS omar3wFL1puGIgZ+fNBMgXD8CqVGRlT16TZOZ0Dx9W6uYLgAeuUWgzmGUA5Wn3AbQm9y3y8AvaF E8yjEPP6973Qo8w== X-Developer-Key: i=nikita@trvn.ru; a=openpgp; fpr=C084AF54523FAA837E2EC547431CECEE2819BF75 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772397023757154691 X-GMAIL-MSGID: 1772397023757154691 gt510 has two capacitive keys on the bottom. Define keycodes to enable them. Signed-off-by: Nikita Travkin --- arch/arm64/boot/dts/qcom/msm8916-samsung-gt510.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-gt510.dts b/arch/arm64/boot/dts/qcom/msm8916-samsung-gt510.dts index a73cc7565bfb..75c4854ecd64 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-gt510.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-gt510.dts @@ -107,6 +107,8 @@ touchscreen@4a { pinctrl-0 = <&tsp_int_rst_default>; pinctrl-names = "default"; + + linux,keycodes = ; }; };