From patchwork Wed Mar 22 15:03:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianhua Lu X-Patchwork-Id: 13184201 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 665BCC6FD1C for ; Wed, 22 Mar 2023 15:03:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229482AbjCVPDk (ORCPT ); Wed, 22 Mar 2023 11:03:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230171AbjCVPDj (ORCPT ); Wed, 22 Mar 2023 11:03:39 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5124D21A35; Wed, 22 Mar 2023 08:03:36 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id lr16-20020a17090b4b9000b0023f187954acso19435148pjb.2; Wed, 22 Mar 2023 08:03:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679497416; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=vlDYEVeWXdvuDC7Z36pSTJuAsUJDvI1ubkbi2mOoDLM=; b=F6Wn/NvBdQrl5XFsJGT250xMrB1RP45wxwAU77e16tYFLnCA4vM6jzPDvt65zJ0Phe OLB75CccwBaLXOw4EQMvErfr91/wHM976Fet7kBrwfRUlNXqJhxnJOu94yIeZPb0TchO YmeSko0HsWl37Z0EpECz5+HbTOQG5kotRunJLlNLvmO9ljXAfPtW3AT2c/rM4j2xxvE0 uQL+Cut9g8fjJMEv7Z/ETA03NZDeAKz/4HTRpl0pZAbEfb5CB8xW37pDezxEELMklaoE 9crhirwDWaeH3Z3DabmtBuSdSUJ1IC+5tcRSO3ko3T6sIUeOxbplYD+Ky3JJXtNpMc94 yUyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679497416; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vlDYEVeWXdvuDC7Z36pSTJuAsUJDvI1ubkbi2mOoDLM=; b=s39dJmYh8LBKr5n6x+teeH/cziULUE2yTZ1DtsKZD4PDk6YiBBonpYkXA8oAmTYo0i XgDam4SZMrV1nPPzCVnNC0x+0GxvA5t9jMwbsLiGroQuHdljRFbWKUJht7wzw8dJv66G AHEVlUPxys+EwesKVq2xgxfWvCPdfs6gbP/1VgU94WiFlB55AtP5KlRSh2WE6QyHU4bx udqH7MBpSIB/bEvgVmJbNodT+teIjjtyyFgvhNLHF32PWtI3D9TrFlZqg0PWbAEBLQwc 6afsZe0lJuP46MRiUukUOToh75DYiXLn3vvJjbJ+QB3TAOEJPbadNdlw4upP61cHFH3v VJwQ== X-Gm-Message-State: AO0yUKUkvKgwOhByqpB01Kpqs0AOZW0+IKmHQuTKDQ5ATAqepJNNJVrL r5L1B98gy25nZCH0aBNc0c8= X-Google-Smtp-Source: AK7set/ol1/Ysh6iIZcjzavsEW0i0qlM2XSsNN8OYuiqN9bGCLaZLP0W5jGaakKQGAgMYGatTlUJXg== X-Received: by 2002:a17:903:1391:b0:19c:e05a:ea6 with SMTP id jx17-20020a170903139100b0019ce05a0ea6mr2530816plb.56.1679497416393; Wed, 22 Mar 2023 08:03:36 -0700 (PDT) Received: from localhost.localdomain (n220246252084.netvigator.com. [220.246.252.84]) by smtp.gmail.com with ESMTPSA id o7-20020a635d47000000b0050fb4181e8bsm2761238pgm.40.2023.03.22.08.03.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 08:03:35 -0700 (PDT) From: Jianhua Lu To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Jianhua Lu Subject: [PATCH 1/4] arm64: dts: qcom: move elish dts to common dtsi Date: Wed, 22 Mar 2023 23:03:17 +0800 Message-Id: <20230322150320.31787-1-lujianhua000@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org There are two panel variants of xiaomi-elish, BOE and CSOT panel. In order to support both panels, so move elish dts to common dtsi. Signed-off-by: Jianhua Lu --- ...m8250-xiaomi-elish.dts => sm8250-xiaomi-elish-common.dtsi} | 4 ---- 1 file changed, 4 deletions(-) rename arch/arm64/boot/dts/qcom/{sm8250-xiaomi-elish.dts => sm8250-xiaomi-elish-common.dtsi} (99%) diff --git a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish.dts b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi similarity index 99% rename from arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish.dts rename to arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi index dd79671f5614..a43d4b73ffca 100644 --- a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish.dts +++ b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi @@ -3,8 +3,6 @@ * Copyright (c) 2022, 2023 Jianhua Lu */ -/dts-v1/; - #include #include #include "sm8250.dtsi" @@ -24,8 +22,6 @@ /delete-node/ &xbl_aop_mem; / { - model = "Xiaomi Mi Pad 5 Pro"; - compatible = "xiaomi,elish", "qcom,sm8250"; classis-type = "tablet"; /* required for bootloader to select correct board */ From patchwork Wed Mar 22 15:03:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianhua Lu X-Patchwork-Id: 13184202 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 78E26C761A6 for ; Wed, 22 Mar 2023 15:04:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231271AbjCVPED (ORCPT ); Wed, 22 Mar 2023 11:04:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231147AbjCVPDy (ORCPT ); Wed, 22 Mar 2023 11:03:54 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48D734ECEE; Wed, 22 Mar 2023 08:03:51 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id o11so19559042ple.1; Wed, 22 Mar 2023 08:03:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679497431; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=smYcs7fLtGwmFdHuuP1DnYf9p3IVPubqdNb8zF92Q1Q=; b=pu+s50skGOCGdHbeFUVOK8KQOkSXZ2vr9++OFaZRJ3JDm5cCYr6aDdBIIO+xT6C88i vbF6WR8dpIaXFstPLqtnKBkgydwjpB1jFAPXrcw6/8ZIikJIblq0LSiU64XxNk1TxdHP ITJgNTst6f/agl5MD9dRAYifmNdUzH49TW9k8WQNQPrskXO3NB2eMmWsnyapbc1cNatG eadTIUqvy/VuBZfQa3fa8FREuaKyYbqNfEF225foh6q7YJrxqGUU5YcoAMkBonW3aOyo t9K2V5/XI8UDxTGf1TEAfQ0EEw3XmewyPidADr2yIdQhHHNf0MzU4kbDE7oTErUB0n+I Gy2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679497431; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=smYcs7fLtGwmFdHuuP1DnYf9p3IVPubqdNb8zF92Q1Q=; b=ZhCynz0vSlhJ6kNtVyGd1ueCIS6kqplx5c/oXu88fn2nHrExUvYVSLJ9kN3D0rtuG7 6OmlEKR6DgCzA+CK8bsjSSX2g0Dz7PSHMk3SXigmZeureX5MB5IP++2UMuhi8SgTQE68 2smkoplbdMzEbCrq8UWwTzhgYEh2cD0zCjDa1niQ+gFqPFT7PYo4JVmGiyyKdd1Va2Y2 AKQDTQ02/FYH2cLbvPZ5jnqVuZVBfQIoC8i/uM8ae7RTXIejUTUmd80NfCIoxhnucsU8 Lponjbh6evhhTXCcb0BlVGl+JtLJgqKH4U4pNOFr/QwY8xGd10Go1bZB1uvO2CrXpa6g 8uNg== X-Gm-Message-State: AO0yUKUoPmsEQpt/NYPYe0USJDXLJzc5KtC28y8p4meSnBdgU9DWBNrD LHf5uX7zbKD6vlTyN9IXDDfOtwcw7K6LpQ== X-Google-Smtp-Source: AK7set8uqW9C1bybyP65LspV1SJDWf5To2sO736+biVwh/7Yn0mR/jS3o6X7MSAAjkS4xfoJLQ3wOQ== X-Received: by 2002:a17:903:1c6:b0:1a1:d366:b085 with SMTP id e6-20020a17090301c600b001a1d366b085mr3225108plh.21.1679497430773; Wed, 22 Mar 2023 08:03:50 -0700 (PDT) Received: from localhost.localdomain (n220246252084.netvigator.com. [220.246.252.84]) by smtp.gmail.com with ESMTPSA id o7-20020a635d47000000b0050fb4181e8bsm2761238pgm.40.2023.03.22.08.03.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 08:03:50 -0700 (PDT) From: Jianhua Lu To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Jianhua Lu Subject: [PATCH 2/4] arm64: dts: qcom: sm8250-xiaomi-elish: add mdss and dsi node Date: Wed, 22 Mar 2023 23:03:18 +0800 Message-Id: <20230322150320.31787-2-lujianhua000@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230322150320.31787-1-lujianhua000@gmail.com> References: <20230322150320.31787-1-lujianhua000@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org xiaomi-elish uses dual dsi mode panel and dsi phy type is cphy. Signed-off-by: Jianhua Lu --- .../dts/qcom/sm8250-xiaomi-elish-common.dtsi | 72 +++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi index a43d4b73ffca..3f1d43a00b66 100644 --- a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi @@ -469,6 +469,74 @@ &cdsp { status = "okay"; }; +&dsi0 { + vdda-supply = <&vreg_l9a_1p2>; + qcom,dual-dsi-mode; + qcom,master-dsi; + qcom,sync-dual-dsi; + status = "okay"; + + display_panel: panel@0 { + reg = <0>; + vddio-supply = <&vreg_l14a_1p88>; + reset-gpios = <&tlmm 75 GPIO_ACTIVE_LOW>; + backlight = <&backlight>; + + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + panel_in_0: endpoint { + remote-endpoint = <&dsi0_out>; + }; + }; + + port@1{ + reg = <1>; + panel_in_1: endpoint { + remote-endpoint = <&dsi1_out>; + }; + }; + + }; + }; +}; + +&dsi0_out { + data-lanes = <0 1 2>; + remote-endpoint = <&panel_in_0>; +}; + +&dsi0_phy { + vdds-supply = <&vreg_l5a_0p88>; + phy-type = ; + status = "okay"; +}; + +&dsi1 { + vdda-supply = <&vreg_l9a_1p2>; + qcom,dual-dsi-mode; + qcom,sync-dual-dsi; + /* DSI1 is slave, so use DSI0 clocks */ + assigned-clock-parents = <&dsi0_phy 0>, <&dsi0_phy 1>; + status = "okay"; +}; + +&dsi1_out { + data-lanes = <0 1 2>; + remote-endpoint = <&panel_in_1>; +}; + +&dsi1_phy { + vdds-supply = <&vreg_l5a_0p88>; + phy-type = ; + status = "okay"; +}; + &gmu { status = "okay"; }; @@ -533,6 +601,10 @@ fuel-gauge@55 { }; }; +&mdss { + status = "okay"; +}; + &pcie0 { status = "okay"; }; From patchwork Wed Mar 22 15:03:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianhua Lu X-Patchwork-Id: 13184203 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 540D6C6FD1F for ; Wed, 22 Mar 2023 15:04:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231210AbjCVPEL (ORCPT ); Wed, 22 Mar 2023 11:04:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230171AbjCVPEC (ORCPT ); Wed, 22 Mar 2023 11:04:02 -0400 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BA0E62D86; Wed, 22 Mar 2023 08:03:59 -0700 (PDT) Received: by mail-pl1-x632.google.com with SMTP id u5so19527299plq.7; Wed, 22 Mar 2023 08:03:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679497439; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WVuE/KdB52Fv12L10avqPxG+Z7+2Fxn7eCeCj4YCgks=; b=gAdN6V0m1/WKX8BWasLhb4j7JcNU+J6iZUQtsraQGHhqRCwd3FRziCk2TDWv6cvK5V 3GTAjMV6f1aubOwzqxH2tSfCBaV6ojJ37srGonP9MJ9H2ezc1OV3UM5L6d0ivxIG4PoE eJza9F+7C3aYGCZisF0INpk0ILlKdFiu+iAvcK6PxmnsaoPGYiLOydZkH8JvrlEeajFn QHzo9gg9db8YvCjLcFiU2QYoKvl9Byi8IcB2HIhqS6vOysgjsD5pY2ks7kKeWCcRMIl0 n3gbEByCpVEJInaZPf2+CVBBqabHfmcY4hq7KLADK6w1xWkYjVw59PiBPUhmQnz/Iqf4 QXrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679497439; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WVuE/KdB52Fv12L10avqPxG+Z7+2Fxn7eCeCj4YCgks=; b=0CwCGSP/uVt6aBzOE40zrjWc5vea5Hc/kVBZQSnEPtI/QO13zy79FaRgxgYrWRW2vY RfR6dGKSlLXpFcFRTFd14HNYeFCRGu+OUCnUzjtBCNj0Ote7TSmZx+7XojSV7/vnK+9A lxx5qDkC2nNCNT1ho/hK/czDTwHW4xxMZW18tosrzLe813LSD+DZUYebgvXNzQkmLYqx +AUQohaDEgWwsv6aRBOy+J0KEtM+GXSyZWWZpZsVInbDkClg7uoxvbK2TLOudKTk+xnc iRCk9lG3RLNfPGUrARk1PuudU1XmG+p9FooOVcBDEbZmdUzUlpBmWFcRrwanSX7+j4ny 1ikQ== X-Gm-Message-State: AO0yUKU1erkY9Te1JuvW67FtVC8mNl6cttVIEpXVT/3Gc01XC5VLEV0G p/86+O31TMdKB8Wkskvu6X0= X-Google-Smtp-Source: AK7set/urypxV7piFe0JFwAaPcAQSUe1Pc5g3bmOjTzF4j44op6L0gZvgOK7i0tu5TA1aWkeKjw6Yw== X-Received: by 2002:a17:902:fa87:b0:1a1:b174:836c with SMTP id lc7-20020a170902fa8700b001a1b174836cmr2619096plb.16.1679497438997; Wed, 22 Mar 2023 08:03:58 -0700 (PDT) Received: from localhost.localdomain (n220246252084.netvigator.com. [220.246.252.84]) by smtp.gmail.com with ESMTPSA id o7-20020a635d47000000b0050fb4181e8bsm2761238pgm.40.2023.03.22.08.03.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 08:03:58 -0700 (PDT) From: Jianhua Lu To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Jianhua Lu Subject: [PATCH 3/4] arm64: dts: qcom: sm8250-xiaomi-elish-boe: Add Xiaomi Mi Pad 5 Pro BOE variant Date: Wed, 22 Mar 2023 23:03:19 +0800 Message-Id: <20230322150320.31787-3-lujianhua000@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230322150320.31787-1-lujianhua000@gmail.com> References: <20230322150320.31787-1-lujianhua000@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add support for the Xiaomi Mi Pad 5 Pro BOE variant. The BOE variant uses BOE Technology panel. Signed-off-by: Jianhua Lu --- arch/arm64/boot/dts/qcom/Makefile | 2 +- .../boot/dts/qcom/sm8250-xiaomi-elish-boe.dts | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-boe.dts diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index 1a29403400b7..808f46947661 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -183,7 +183,7 @@ dtb-$(CONFIG_ARCH_QCOM) += sm8250-hdk.dtb dtb-$(CONFIG_ARCH_QCOM) += sm8250-mtp.dtb dtb-$(CONFIG_ARCH_QCOM) += sm8250-sony-xperia-edo-pdx203.dtb dtb-$(CONFIG_ARCH_QCOM) += sm8250-sony-xperia-edo-pdx206.dtb -dtb-$(CONFIG_ARCH_QCOM) += sm8250-xiaomi-elish.dtb +dtb-$(CONFIG_ARCH_QCOM) += sm8250-xiaomi-elish-boe.dtb dtb-$(CONFIG_ARCH_QCOM) += sm8350-hdk.dtb dtb-$(CONFIG_ARCH_QCOM) += sm8350-microsoft-surface-duo2.dtb dtb-$(CONFIG_ARCH_QCOM) += sm8350-mtp.dtb diff --git a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-boe.dts b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-boe.dts new file mode 100644 index 000000000000..8b2ae39950ff --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-boe.dts @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2023 Jianhua Lu + */ + +/dts-v1/; + +#include "sm8250-xiaomi-elish-common.dtsi" + +/ { + model = "Xiaomi Mi Pad 5 Pro (BOE)"; + compatible = "xiaomi,elish", "qcom,sm8250"; +}; + +&display_panel { + compatible = "xiaomi,elish-boe-nt36523"; + status = "okay"; +}; From patchwork Wed Mar 22 15:03:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianhua Lu X-Patchwork-Id: 13184204 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 4FD6DC761A6 for ; Wed, 22 Mar 2023 15:04:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231166AbjCVPES (ORCPT ); Wed, 22 Mar 2023 11:04:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229998AbjCVPEN (ORCPT ); Wed, 22 Mar 2023 11:04:13 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B6BB51F8F; Wed, 22 Mar 2023 08:04:12 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id a16so14425541pjs.4; Wed, 22 Mar 2023 08:04:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679497452; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SHU0HsyJm0uRZ/v35nRkY2WdI6p2u84hWJcGCxxZr6w=; b=aQAebmkyGJdZuOqhn4m/gthtL2uPGC89WiFlRU46UpV3Tbp/Y6H5xe+gyHVPoFlvsC CzRclM9jE0wxk/C9ZnptVtkxDHv5SGLzWSbtGdsUf0FAHr/+TB/J7BoRbnpKAIbPUosg hT10cAj1+72vktXWTW3St8j/bJBWtrD+R/dbszuBo0Itj2o8n0BSyGsRnSyVWU262axg Cnb6OS7B1M4px03DbwHIFLo+28O1kYKZePeu4znH+K8u31FntmQ6FUXTryvc2wcoW1NJ iyIIqR/4slsJZvEwcfGptLjtvN63zOjSemieNVmkM6slM8levMHKSifK55nHcLvjoy3C bTZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679497452; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SHU0HsyJm0uRZ/v35nRkY2WdI6p2u84hWJcGCxxZr6w=; b=m4JK8RRPDi2epr4yp0WhVsoculC9GmgyTMrypuWKtgjf4XOlAUHJ7ui8Yt1B+4KWHa cywkPrg9TwYrRrmPOxQF73TiyoEVkqM587PGV/CJI/oTZSOEh8GofC45X0SPNuN4+R9b QeK/TnJ0Bnxjx2ykcH2zbWLKHnAi4efOTpEdWg/c5MHQCpfiYTm9s6k1We7M+975/RBx QParJvTJRNXp/icAOIUu6hoC3UXNOsyCZNiJzIjQj9h8Hm98MQfFzdbLKkIXjXOm+rDu r1XtsB9q9OvgLhV+C+V2HJeUimSUMX4OO9Kanc6YLFSWJRAPmoxdtSH3N2JeYWTEEaQH kBJA== X-Gm-Message-State: AO0yUKWuclgQZgfDm+XOuNoID0V3gu1YTUqNyvl9gnvAC1nVUjqPbaix MFtMRRjgFkgC9OJXeD//6aj4PWkW/x8i9w== X-Google-Smtp-Source: AK7set+o2YAjo+pfJBFxQ0IxHkNQ3m5fluTLlf/E0doKxtzfALOs5PyR0FKeDHxJtk5S4v5ePT6rYQ== X-Received: by 2002:a17:902:d413:b0:1a1:a44f:70ed with SMTP id b19-20020a170902d41300b001a1a44f70edmr2369452ple.61.1679497451565; Wed, 22 Mar 2023 08:04:11 -0700 (PDT) Received: from localhost.localdomain (n220246252084.netvigator.com. [220.246.252.84]) by smtp.gmail.com with ESMTPSA id o7-20020a635d47000000b0050fb4181e8bsm2761238pgm.40.2023.03.22.08.04.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 08:04:11 -0700 (PDT) From: Jianhua Lu To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Jianhua Lu Subject: [PATCH 4/4] arm64: dts: qcom: sm8250-xiaomi-elish-csot: Add Xiaomi Mi Pad 5 Pro CSOT variant Date: Wed, 22 Mar 2023 23:03:20 +0800 Message-Id: <20230322150320.31787-4-lujianhua000@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230322150320.31787-1-lujianhua000@gmail.com> References: <20230322150320.31787-1-lujianhua000@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add support for the Xiaomi Mi Pad 5 Pro CSOT variant. The CSOT variant uses China Star Optoelectronics Technology (CSOT) panel. Signed-off-by: Jianhua Lu --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/sm8250-xiaomi-elish-csot.dts | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-csot.dts diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index 808f46947661..b755b198cfb7 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -184,6 +184,7 @@ dtb-$(CONFIG_ARCH_QCOM) += sm8250-mtp.dtb dtb-$(CONFIG_ARCH_QCOM) += sm8250-sony-xperia-edo-pdx203.dtb dtb-$(CONFIG_ARCH_QCOM) += sm8250-sony-xperia-edo-pdx206.dtb dtb-$(CONFIG_ARCH_QCOM) += sm8250-xiaomi-elish-boe.dtb +dtb-$(CONFIG_ARCH_QCOM) += sm8250-xiaomi-elish-csot.dtb dtb-$(CONFIG_ARCH_QCOM) += sm8350-hdk.dtb dtb-$(CONFIG_ARCH_QCOM) += sm8350-microsoft-surface-duo2.dtb dtb-$(CONFIG_ARCH_QCOM) += sm8350-mtp.dtb diff --git a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-csot.dts b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-csot.dts new file mode 100644 index 000000000000..a4d5341495cf --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-csot.dts @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2023 Jianhua Lu + */ + +/dts-v1/; + +#include "sm8250-xiaomi-elish-common.dtsi" + +/ { + model = "Xiaomi Mi Pad 5 Pro (CSOT)"; + compatible = "xiaomi,elish", "qcom,sm8250"; +}; + +&display_panel { + compatible = "xiaomi,elish-csot-nt36523"; + status = "okay"; +};