From patchwork Mon Feb 13 15:38:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maya Matuszczyk X-Patchwork-Id: 56342 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2419465wrn; Mon, 13 Feb 2023 07:52:52 -0800 (PST) X-Google-Smtp-Source: AK7set8oaf+OESphzn0NHVRJA66qp4obtPXoD7U2bFwJhyE/1mFUUaWOAF/BQ0C5LYSHeGakU3QC X-Received: by 2002:a50:9998:0:b0:4ac:b696:7cdf with SMTP id m24-20020a509998000000b004acb6967cdfmr7956608edb.26.1676303572481; Mon, 13 Feb 2023 07:52:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676303572; cv=none; d=google.com; s=arc-20160816; b=a8vJdmwSw/TtRK9BwLUPpBPkQA6auKEsI2AYm3X6GZwqbXXkpPgBBoCWmeDbZ9yd46 uIr9E6KWczWvGNafKoyGxM4EPUsn2bDTEvSvrAntw6NMM9DpOr2aeZLMzA1tgIstueuF AO3biptdXGhet5+wO/DHI59nMWwibPn0K53l5DxZLx4ykVjG4iJrVzsrc8q+Ria9uEIq y44FwE1nxr/lfm2kUa7R8Jkb8cBkhUBnRKWqQlmbyPTvT8OeokxYwQHZ9OqufsOkgab5 96dOR07n7LAy+TpDQ9XE3PppJwxYorGL3E1/JeF6Xn43NeJvyy5ov2vIw9mwOmk1qkmR lhwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Q86xsnFvfvmah1G0eGQOi1KV205lT5RC6i71PTaiGzo=; b=tETiWoCexyNpszCCidSS9gUZdy9ec29AeEsFAW4V9+V65UTOc2qS/CmR0Ag6dMZ0K3 qDqxkSqcL3IxPQ7X2WbQ4fDHZeyAVVwlKJf8zOr6Rl0yxwgXPlmy7dJq17FBLcQTDJJm kR5LuEMwslRzUet37Z307wPCa4Si1WjVUpKpqd7/b6CrvhwjN+xyrv7P23U/nbcUwKAI V/Sap3iOiYC6b8fx/ZbdH4wvTM+4HsO9opv/yUffESCeH/8A2sY9y6b7Hp/uIXsjlhC2 XTWUnAXQgmYlJX+yxeDab9B83wLEisvYcs15lS1bqk5c3csvl+7TwoiuxmcjQVBKjgrs 076g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YNfKzAtI; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k9-20020aa7c389000000b004acd9235b42si363569edq.358.2023.02.13.07.52.29; Mon, 13 Feb 2023 07:52:52 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=YNfKzAtI; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230462AbjBMPil (ORCPT + 99 others); Mon, 13 Feb 2023 10:38:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229596AbjBMPic (ORCPT ); Mon, 13 Feb 2023 10:38:32 -0500 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2727D193CE; Mon, 13 Feb 2023 07:38:29 -0800 (PST) Received: by mail-ej1-x62b.google.com with SMTP id rp23so32844755ejb.7; Mon, 13 Feb 2023 07:38:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=Q86xsnFvfvmah1G0eGQOi1KV205lT5RC6i71PTaiGzo=; b=YNfKzAtIz72gcYaG7XV4PSq2NEXvrAgcCMjnPsI91+HELi7EmCHFa3h4v/3A9zLFQn eiH1eheI31WtpJif3x+2OOK8Xz4DoEkCcRuLK59lss1ztdCoMu8sFoOHteG1OD6KSrbL Ev8MEuIShNtQosDwH5de/OQhc61gNDKH73GvL/OKOWXAORkRh/yTwQGIKVUjJhYeMUYn DqYHQ1dZewnMIWm3Kbr8D2rRW1OUeE8IEB2dQtF0EkHYPu+q10gnQBajelD4xPxvZA1p kAXt7QQv6YugLjFyGT9tpF7eClkhCylEdqWoohIOa1EZ3SG724LY168OA+5zHKy/KARI c4xQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=Q86xsnFvfvmah1G0eGQOi1KV205lT5RC6i71PTaiGzo=; b=6gzt9f4T9VHF6uRQDdmWmS8eZB0K+3s00llDeXqU3JYqm5PnlqfDBXQ9aUqv5qlFJS TatVV2g/3kQ5SYbv5xUC8R9cM6n1NLVkcgQ3N6QNl/725eX5uz3RAHP8Hkjbz74f7s3s v7HSeck2it53OG0YrQicWmZXxU6CBGuf5qLpCWRPOc0ua3TlA4PlRiNNnxSQIaU7eKgt R1pDlWgJzFBWN8l4KzYmOL9i1qT5/8BS+EdhMxuKR+jT0FET21xsQoapUono5SQPMVN8 YZFIdtJAFrPgswVmVko59sS5QhmoHet2ZhcnRCKz8/KmFSRpTJ950+dd0dbK/dVcthlf ylag== X-Gm-Message-State: AO0yUKVPXKn2JWxXwMC1b/OH8RVEvaJHLAafz380Zjl7r+B9iLCuYecI idOd6uEcAVNsrHcmfcdWTQo= X-Received: by 2002:a17:906:6a1b:b0:8af:b63:b4bf with SMTP id qw27-20020a1709066a1b00b008af0b63b4bfmr23256890ejc.27.1676302707637; Mon, 13 Feb 2023 07:38:27 -0800 (PST) Received: from localhost.localdomain (83.24.145.108.ipv4.supernova.orange.pl. [83.24.145.108]) by smtp.gmail.com with ESMTPSA id gf17-20020a170906e21100b008b12614ee06sm115901ejb.161.2023.02.13.07.38.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Feb 2023 07:38:27 -0800 (PST) From: Maya Matuszczyk To: heiko@sntech.de, Jagan Teki , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski Cc: linux-rockchip@lists.infradead.org, Maya Matuszczyk , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/4] dt-bindings: display: panel: sitronix,st7701: Add Elida KD50T048A Panel Date: Mon, 13 Feb 2023 16:38:13 +0100 Message-Id: <20230213153816.213526-2-maccraft123mc@gmail.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230213153816.213526-1-maccraft123mc@gmail.com> References: <20230213153816.213526-1-maccraft123mc@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757731694676200035?= X-GMAIL-MSGID: =?utf-8?q?1757731694676200035?= Add compatible for 854x480 Elida KD50T048A panel, found in Odroid Go Super and Odroid Go Ultra Signed-off-by: Maya Matuszczyk Acked-by: Krzysztof Kozlowski --- .../devicetree/bindings/display/panel/sitronix,st7701.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/panel/sitronix,st7701.yaml b/Documentation/devicetree/bindings/display/panel/sitronix,st7701.yaml index 34d5e20c6cb3..83d30eadf7d9 100644 --- a/Documentation/devicetree/bindings/display/panel/sitronix,st7701.yaml +++ b/Documentation/devicetree/bindings/display/panel/sitronix,st7701.yaml @@ -28,6 +28,7 @@ properties: items: - enum: - densitron,dmt028vghmcmi-1a + - elida,kd50t048a - techstar,ts8550b - const: sitronix,st7701 From patchwork Mon Feb 13 15:38:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maya Matuszczyk X-Patchwork-Id: 56344 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2419701wrn; Mon, 13 Feb 2023 07:53:18 -0800 (PST) X-Google-Smtp-Source: AK7set/91XriWmjfvdAwvHGKWBQkb2alDgzutcvhhdyL9RT+fbippx2D5GlC/zMdUWTt+uZ8U0NG X-Received: by 2002:aa7:9d89:0:b0:5a8:9f5a:e8e9 with SMTP id f9-20020aa79d89000000b005a89f5ae8e9mr7619060pfq.28.1676303598079; Mon, 13 Feb 2023 07:53:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676303598; cv=none; d=google.com; s=arc-20160816; b=04fN9C7aHSK7YwVeA2XXym42GgObLSG20BM1vYx0aaoGEyfbS1tPO6tIOPSdkR8y5L 4i5L8MIqk0HqOgX8R3AIaM75DoCkrKMucKSQSiqmyu/F1W8bHaXltEuwD7M25BwZSXMh iZ/dN1gS1V2jajyil6Px8xUb1WCMw8hiznnqzSfMBIVXHwj7W7L0UK2sXR1FuhhMD/PE uYwC7KsoyncKHRZbFtA/PQg49JnDX6fl5uXWf4iaobsEEB69YfGbkpqaVaTEhx4reZBl h92FekGEqJ5t+bbV5BzWH2gi7dha+2pEIw8OJIunWSbTSEmDlkhcbpgdrGkzd/eaLobR xEOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=h9M5VRC01DAZPfI0s5I19MARMALNHk/O6/g2Mh8se6M=; b=jtSSEPgslyrz97Pa8Pd74JuvOgrGtSW5Cjc8Tz+m5eqlCpnSg4jkqziEioE1KyXI7o eRV2i/CVqQ5Ii7m009x/FVmLnwGx0qlyCgJl689e5eKJjgyPkSa5ltGUfMy/w1IXIIqJ igOcr/M/3WUj1NbB9xpixCodh+kHQEJEGa4c+fMdkRKk8JWZ7kHna1Qj1f6rT8/IXju6 DkoscbXwU7PcEaAVbFR+/NbDGJACr07SoyiF3dcMJCjtmx6dl2gMxqM4u4/OAnisV01b ar6YvwO68dE8XK61TUYACSWbqQLd5pEWiB1kuClKNio3Z5nzB4HuyaXN9ERjPFeLJlZu MkiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qkMhLPhz; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x5-20020a626305000000b0059314520d7esi2500351pfb.295.2023.02.13.07.53.05; Mon, 13 Feb 2023 07:53:18 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=qkMhLPhz; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230026AbjBMPie (ORCPT + 99 others); Mon, 13 Feb 2023 10:38:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229986AbjBMPic (ORCPT ); Mon, 13 Feb 2023 10:38:32 -0500 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C674193EB for ; Mon, 13 Feb 2023 07:38:30 -0800 (PST) Received: by mail-ej1-x632.google.com with SMTP id qb15so30811076ejc.1 for ; Mon, 13 Feb 2023 07:38:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=h9M5VRC01DAZPfI0s5I19MARMALNHk/O6/g2Mh8se6M=; b=qkMhLPhzCZRP+Kg8axvET9mrQ237GB/fcdTwnPTNJN4EA6Fr3uLo0nY646HWldsNT4 WXqk7xo+zqsTd3X9Oai9oDgtK9joKgh3E11UvqB4dnFcGiNTvRo7VH1t11+WYNw8RmYk v94I8VoF+u4CZBag1ftBsrZHGCDZ1yGAKfe0VP20LdABlipG17eaZmp7rbF3Zjn7+gkW A3YNMFRtV7f7L4Rjm1MqMDO3rjS8TXLgmBvdhEV3rHoQR+9KVKDDwjiQY8zwI5REAiFN IFZvhaqMrIzGng4C4pOstGicZzenNLAS+W/ZWp7JQ/u+eDDoACw1G/CcHEnpHWWr1GEp 1FWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=h9M5VRC01DAZPfI0s5I19MARMALNHk/O6/g2Mh8se6M=; b=1STBBKzfj8NWrUxmFUoWozca3SzNtE4izZuiPBYQtk/yYBVI7vqPEv0MCQg29WQq7x DS0uQkbOh1fcgiMKzR0fog7Z70OWn/AEhYKYbfIIoVwW51F39bqbJolFqyQ30+XX7Fmy UqGRdrp7t7agCThT3yXIy3nWBJIM28St88vACmZ8A56IVwjDs7GGYaTzgpYHBoWf8jMr 1mzH+eMNYJNBc9ugShZ9+UBcgm1GW9weUB4trGa4V42Q9xstGYk3FUmxYt+MtZdJPj+7 LeLCyGGY2sjfp2/Ju6ihUB6wpiutzBp8keiFuybq3xdiEvqkyWS7uMVhqj9irKT4JyrW GACQ== X-Gm-Message-State: AO0yUKVul6LO1lG8wuYV/ivHTReYXqzoUwvFXxjXEcXpHFf+iy2ei0n+ FQ90TSjujiZUMrJtCrjmYE8= X-Received: by 2002:a17:906:f74b:b0:8b1:22af:b39f with SMTP id jp11-20020a170906f74b00b008b122afb39fmr613157ejb.13.1676302708753; Mon, 13 Feb 2023 07:38:28 -0800 (PST) Received: from localhost.localdomain (83.24.145.108.ipv4.supernova.orange.pl. [83.24.145.108]) by smtp.gmail.com with ESMTPSA id gf17-20020a170906e21100b008b12614ee06sm115901ejb.161.2023.02.13.07.38.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Feb 2023 07:38:28 -0800 (PST) From: Maya Matuszczyk To: heiko@sntech.de, Jagan Teki , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter Cc: linux-rockchip@lists.infradead.org, Maya Matuszczyk , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/4] drm: panel: Add Elida KD50T048A to Sitronix ST7701 driver Date: Mon, 13 Feb 2023 16:38:14 +0100 Message-Id: <20230213153816.213526-3-maccraft123mc@gmail.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230213153816.213526-1-maccraft123mc@gmail.com> References: <20230213153816.213526-1-maccraft123mc@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757731721286011952?= X-GMAIL-MSGID: =?utf-8?q?1757731721286011952?= Add KD50T048A MIPI-DSI panel, which is based on ST7701 chip. Not sure what else to add to this commit message. Signed-off-by: Maya Matuszczyk --- drivers/gpu/drm/panel/panel-sitronix-st7701.c | 125 ++++++++++++++++++ 1 file changed, 125 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7701.c b/drivers/gpu/drm/panel/panel-sitronix-st7701.c index 0b8cf65172ff..660c3f435008 100644 --- a/drivers/gpu/drm/panel/panel-sitronix-st7701.c +++ b/drivers/gpu/drm/panel/panel-sitronix-st7701.c @@ -397,6 +397,31 @@ static void dmt028vghmcmi_1a_gip_sequence(struct st7701 *st7701) ST7701_DSI(st7701, 0x3A, 0x70); } +static void kd50t048a_gip_sequence(struct st7701 *st7701) +{ + /** + * ST7701_SPEC_V1.2 is unable to provide enough information above this + * specific command sequence, so grab the same from vendor BSP driver. + */ + ST7701_DSI(st7701, 0xE0, 0x00, 0x00, 0x02); + ST7701_DSI(st7701, 0xE1, 0x08, 0x00, 0x0A, 0x00, 0x07, 0x00, 0x09, + 0x00, 0x00, 0x33, 0x33); + ST7701_DSI(st7701, 0xE2, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00); + ST7701_DSI(st7701, 0xE3, 0x00, 0x00, 0x33, 0x33); + ST7701_DSI(st7701, 0xE4, 0x44, 0x44); + ST7701_DSI(st7701, 0xE5, 0x0E, 0x60, 0xA0, 0xA0, 0x10, 0x60, 0xA0, + 0xA0, 0x0A, 0x60, 0xA0, 0xA0, 0x0C, 0x60, 0xA0, 0xA0); + ST7701_DSI(st7701, 0xE6, 0x00, 0x00, 0x33, 0x33); + ST7701_DSI(st7701, 0xE7, 0x44, 0x44); + ST7701_DSI(st7701, 0xE8, 0x0D, 0x60, 0xA0, 0xA0, 0x0F, 0x60, 0xA0, + 0xA0, 0x09, 0x60, 0xA0, 0xA0, 0x0B, 0x60, 0xA0, 0xA0); + ST7701_DSI(st7701, 0xEB, 0x02, 0x01, 0xE4, 0xE4, 0x44, 0x00, 0x40); + ST7701_DSI(st7701, 0xEC, 0x02, 0x01); + ST7701_DSI(st7701, 0xED, 0xAB, 0x89, 0x76, 0x54, 0x01, 0xFF, 0xFF, + 0xFF, 0xFF, 0xFF, 0xFF, 0x10, 0x45, 0x67, 0x98, 0xBA); +} + static int st7701_prepare(struct drm_panel *panel) { struct st7701 *st7701 = panel_to_st7701(panel); @@ -700,6 +725,105 @@ static const struct st7701_panel_desc dmt028vghmcmi_1a_desc = { .gip_sequence = dmt028vghmcmi_1a_gip_sequence, }; +static const struct drm_display_mode kd50t048a_mode = { + .clock = 27500, + + .hdisplay = 480, + .hsync_start = 480 + 2, + .hsync_end = 480 + 2 + 10, + .htotal = 480 + 2 + 10 + 2, + + .vdisplay = 854, // was: 854 12 2 60 + .vsync_start = 854 + 2, + .vsync_end = 854 + 2 + 2, + .vtotal = 854 + 2 + 2 + 17, + + .width_mm = 69, + .height_mm = 139, + + .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, +}; + +static const struct st7701_panel_desc kd50t048a_desc = { + .mode = &kd50t048a_mode, + .lanes = 2, + .format = MIPI_DSI_FMT_RGB888, + .panel_sleep_delay = 0, + + .pv_gamma = { + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_AJ_MASK, 0) | + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC0_MASK, 0), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_AJ_MASK, 0) | + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC4_MASK, 0xd), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_AJ_MASK, 0) | + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC8_MASK, 0x14), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC16_MASK, 0xd), + + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_AJ_MASK, 0) | + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC24_MASK, 0x10), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC52_MASK, 0x5), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC80_MASK, 0x2), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC108_MASK, 0x8), + + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC147_MASK, 0x8), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC175_MASK, 0x1e), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC203_MASK, 0x5), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_AJ_MASK, 0) | + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC231_MASK, 0x13), + + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC239_MASK, 0x11), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_AJ_MASK, 2) | + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC247_MASK, 0x23), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_AJ_MASK, 0) | + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC251_MASK, 0x29), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_AJ_MASK, 0) | + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC255_MASK, 0x18) + }, + .nv_gamma = { + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_AJ_MASK, 0) | + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC0_MASK, 0), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_AJ_MASK, 0) | + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC4_MASK, 0xc), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_AJ_MASK, 0) | + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC8_MASK, 0x14), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC16_MASK, 0xc), + + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_AJ_MASK, 0) | + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC24_MASK, 0x10), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC52_MASK, 0x5), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC80_MASK, 0x3), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC108_MASK, 0x8), + + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC147_MASK, 0x7), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC175_MASK, 0x20), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC203_MASK, 0x5), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_AJ_MASK, 0) | + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC231_MASK, 0x13), + + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC239_MASK, 0x11), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_AJ_MASK, 2) | + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC247_MASK, 0x24), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_AJ_MASK, 0) | + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC251_MASK, 0x29), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_AJ_MASK, 0) | + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC255_MASK, 0x18) + }, + .nlinv = 1, + .vop_uv = 4887500, + .vcom_uv = 937500, + .vgh_mv = 15000, + .vgl_mv = -9510, + .avdd_mv = 6600, + .avcl_mv = -4400, + .gamma_op_bias = OP_BIAS_MIDDLE, + .input_op_bias = OP_BIAS_MIN, + .output_op_bias = OP_BIAS_MIN, + .t2d_ns = 1600, + .t3d_ns = 10400, + .eot_en = true, + .gip_sequence = kd50t048a_gip_sequence, +}; + static int st7701_dsi_probe(struct mipi_dsi_device *dsi) { const struct st7701_panel_desc *desc; @@ -776,6 +900,7 @@ static void st7701_dsi_remove(struct mipi_dsi_device *dsi) static const struct of_device_id st7701_of_match[] = { { .compatible = "densitron,dmt028vghmcmi-1a", .data = &dmt028vghmcmi_1a_desc }, { .compatible = "techstar,ts8550b", .data = &ts8550b_desc }, + { .compatible = "elida,kd50t048a", .data = &kd50t048a_desc }, { } }; MODULE_DEVICE_TABLE(of, st7701_of_match); From patchwork Mon Feb 13 15:38:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maya Matuszczyk X-Patchwork-Id: 56341 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2419454wrn; Mon, 13 Feb 2023 07:52:51 -0800 (PST) X-Google-Smtp-Source: AK7set/g6fFaX49dsMB+KuCknLJyuyScf5VI+IvnqhJj6SbevhNoiRzTf4dcpIzqIJ4i2Vbz34a3 X-Received: by 2002:a17:906:b5a:b0:89f:aa50:22e with SMTP id v26-20020a1709060b5a00b0089faa50022emr22571823ejg.64.1676303571632; Mon, 13 Feb 2023 07:52:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676303571; cv=none; d=google.com; s=arc-20160816; b=vUqSfUusIaHUn4TC7EIr/b4jopcgSeTg196utRm88Vk98VxvgVwgV6jNAkW7F+hLUg dvqqhCgNvf5PXybulAWduEJDvNjA29oLgXCcydtOIiuA8WwJAeJJ81K75QhUd9nwuwZi c9BbZMhrC0QM95FIZ9H+6hLe/Moh7P0Pj0bPg79QmgXqyTXymu7SX7Vthz0PFaR0yelA O++2bhzajOZTAU3SmHUGOa5onWENE7h9jkP559adfo+yIZ5bg1hDxWLUqGxPK/QUrg+h GLfP2Q/fdTnUuvm8wv7p8E91FTGEJ+KNZsOc+kXnGNA3kUkInXXCcRuOBf2bvB64TnXn p3dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=aD93lPaEpLbO12AG6KFXUrKcEBNMZrAt4589lIUtesY=; b=YL9k2nei0wvCGUz15hXd3Gd1ur2sEaTzimXnyxtUstN2rUzcLSBOEYdD8HpkN1+iJF OABq5BfVdCSWEbhMCr4isUjc8GftIdXC9Se1DZss0DEqRzOgn285ytjkK7Olxmc0E3r0 bPZvl8R3zyAbMbmGeLjhE+RgQe/jdspxuf4eTxjrLcwxuHksxBBGAH8/QeUcb9ejXyps ZHMV39LsoowpVZ7JuWKN/8msPbHjzlQb3CHyqZoiiLneNcYdFudoVUABRt+2dWOl+hCc sQOidOKc+4d5I4KeQo5kmL51viT9sERXsRfrg/tYXwjukVwU2y/MMEpEWAUl7Tb9JIWn N7WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IRZIXuNA; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p24-20020a170907911800b0078dd12d0a9bsi13064370ejq.875.2023.02.13.07.52.28; Mon, 13 Feb 2023 07:52:51 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=IRZIXuNA; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230267AbjBMPii (ORCPT + 99 others); Mon, 13 Feb 2023 10:38:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229914AbjBMPic (ORCPT ); Mon, 13 Feb 2023 10:38:32 -0500 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A52E193C1 for ; Mon, 13 Feb 2023 07:38:31 -0800 (PST) Received: by mail-ej1-x636.google.com with SMTP id qw12so32921728ejc.2 for ; Mon, 13 Feb 2023 07:38:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=aD93lPaEpLbO12AG6KFXUrKcEBNMZrAt4589lIUtesY=; b=IRZIXuNAUAG+0zE/5LfJMJKmXT1wn/RbaM9uAG50k32gEjAAEhoazoB2Opl2+fnT57 M+aRXPU6ZW6qfiik9IlFHU27iWoRN4dPCmJVr6pN5IOxUW9XPKFj8Dp3tOWpDd2gILqN D9APtDR1f6TvcEgbrU0Q39wfiKvclIf8z2BSG8XF1BAF5yFGavdq5ZLeJNYufchdrcey 4I60aGAW5wJ4N6/ntyCFSRkLnkpWG2z59lmkAtuYeOf2D2kUBCqPY62lDjmwtL72UU66 /lyFAoOj8EZ0KKz2d7P3VbcZsIBAsMADZwu72gqC80NE0VsRhCW+kS8fSZFr6dRzk09c ochA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=aD93lPaEpLbO12AG6KFXUrKcEBNMZrAt4589lIUtesY=; b=1bbLevzWLJSJ7+Fvtr+QN8GOwvBRS1bavfj1rPG6O2fuFmW1sVz1l6LehE+/CgyyHg MIUM4sulv4yenyzbCdrs72zFZCLm2Jb+nATm/R3kXHDCk98SvpG+88jCN8CcD+BJuk3e fIXd5vx4pGD4ZBmFe61im+zUdcZ9+VXZLwCtQUSETnCM1vOBo6gsZR53IGuIpnqJ4p+g lWoKihChWv/MfOf/M2tIZi3OEaCl2KacBbc4FHxtcG5ZxrCypFMRilJfw4Zm0hHRudf3 PviLW3+gkHHBzRnxJ157a1CN4Pk4MeiunmpsGDzzD29MTfT7C8Q+SuK6A14PHU6sbXfd DC9Q== X-Gm-Message-State: AO0yUKWgNDBAT8fCkQr9EPrSI3g/ddEEiLi6D8dXzjL9VsnMiXtwp1xF KnzsA40AjwRtB7LZ0vJ28XI= X-Received: by 2002:a17:906:7704:b0:872:27cb:9436 with SMTP id q4-20020a170906770400b0087227cb9436mr25379952ejm.43.1676302709837; Mon, 13 Feb 2023 07:38:29 -0800 (PST) Received: from localhost.localdomain (83.24.145.108.ipv4.supernova.orange.pl. [83.24.145.108]) by smtp.gmail.com with ESMTPSA id gf17-20020a170906e21100b008b12614ee06sm115901ejb.161.2023.02.13.07.38.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Feb 2023 07:38:29 -0800 (PST) From: Maya Matuszczyk To: heiko@sntech.de, Jagan Teki , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter Cc: linux-rockchip@lists.infradead.org, Maya Matuszczyk , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/4] drm: panel: Add orientation support for st7701 Date: Mon, 13 Feb 2023 16:38:15 +0100 Message-Id: <20230213153816.213526-4-maccraft123mc@gmail.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230213153816.213526-1-maccraft123mc@gmail.com> References: <20230213153816.213526-1-maccraft123mc@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757731693840575195?= X-GMAIL-MSGID: =?utf-8?q?1757731693840575195?= Note that this patch is 'heavily inspired' by orientation support in driver for Elida KD35T133 panel Signed-off-by: Maya Matuszczyk --- drivers/gpu/drm/panel/panel-sitronix-st7701.c | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7701.c b/drivers/gpu/drm/panel/panel-sitronix-st7701.c index 660c3f435008..c9ae5c456f41 100644 --- a/drivers/gpu/drm/panel/panel-sitronix-st7701.c +++ b/drivers/gpu/drm/panel/panel-sitronix-st7701.c @@ -135,6 +135,7 @@ struct st7701 { struct regulator_bulk_data supplies[2]; struct gpio_desc *reset; unsigned int sleep_delay; + enum drm_panel_orientation orientation; }; static inline struct st7701 *panel_to_st7701(struct drm_panel *panel) @@ -514,15 +515,29 @@ static int st7701_get_modes(struct drm_panel *panel, connector->display_info.width_mm = desc_mode->width_mm; connector->display_info.height_mm = desc_mode->height_mm; + /* + * TODO: Remove once all drm drivers call + * drm_connector_set_orientation_from_panel() + */ + drm_connector_set_panel_orientation(connector, st7701->orientation); + return 1; } +static enum drm_panel_orientation st7701_get_orientation(struct drm_panel *panel) +{ + struct st7701 *st7701 = panel_to_st7701(panel); + + return st7701->orientation; +} + static const struct drm_panel_funcs st7701_funcs = { .disable = st7701_disable, .unprepare = st7701_unprepare, .prepare = st7701_prepare, .enable = st7701_enable, .get_modes = st7701_get_modes, + .get_orientation = st7701_get_orientation, }; static const struct drm_display_mode ts8550b_mode = { @@ -733,7 +748,7 @@ static const struct drm_display_mode kd50t048a_mode = { .hsync_end = 480 + 2 + 10, .htotal = 480 + 2 + 10 + 2, - .vdisplay = 854, // was: 854 12 2 60 + .vdisplay = 854, .vsync_start = 854 + 2, .vsync_end = 854 + 2 + 2, .vtotal = 854 + 2 + 2 + 17, @@ -854,6 +869,10 @@ static int st7701_dsi_probe(struct mipi_dsi_device *dsi) return PTR_ERR(st7701->reset); } + ret = of_drm_get_panel_orientation(dsi->dev.of_node, &st7701->orientation); + if (ret < 0) + return dev_err_probe(&dsi->dev, ret, "Failed to get orientation\n"); + drm_panel_init(&st7701->panel, &dsi->dev, &st7701_funcs, DRM_MODE_CONNECTOR_DSI); From patchwork Mon Feb 13 15:38:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maya Matuszczyk X-Patchwork-Id: 56343 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2419598wrn; Mon, 13 Feb 2023 07:53:06 -0800 (PST) X-Google-Smtp-Source: AK7set/mgelgoGP9ZziwV7+iuKIFwRTOqBv8o7e2oBeAUltxiMCCmOmLnDV9SPrpL9cAcoDvNIPf X-Received: by 2002:a17:907:7fa5:b0:8b0:2397:8003 with SMTP id qk37-20020a1709077fa500b008b023978003mr10539248ejc.29.1676303586208; Mon, 13 Feb 2023 07:53:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676303586; cv=none; d=google.com; s=arc-20160816; b=dYCVNcf5ytMoNDBkRA4aYxVROTP5CWZRjKvA88/ofL+GRkOdfczlkEOKIVQ3jHC660 HVAWOK+CdRpIi4YlVmReDwO3OEYH9tXhprTH/p5wOj+1HvcmbRmMYDN9Pgyhg1Mj27e2 IZR3y/9nFQ0+2zw6jSc1Fy/x2Zg2rOvPK0lRsWxzETz+OAdHGXCW9QfZ5PEaAHWoYsAQ 9J5CRuj26s75nq5Ba5QnrSjQzd0szi3RVvpUjx/TgQxdxWzbbDNNYagZQiQbu5qQzlHZ Me/0fQEVbAhmqlmnkUc8ek81yWLAWsxSsO11CDXAR983gxk5fsNi8QoMLFCueGOa0WpB +IIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=SIsYvjDlZhXseIBbB+cVw5ndep5LtZPlaWmi5dbOsTU=; b=kM2096cIowqMT+Fr7YG95wWHgRGcAHO0vHmS4BnDDGtL392HCXdEHJ5HF5a8sYcgNy ADZOC7ZfQrwAcx9a0gyOUHmnX8wVVgFWs4IiCWKhwz3lD4zTrzOM6LQXXvM7W2Hnhfns 6AACWg0mla/V9DIAtHSvWOPMqeQmk1Tztgq318Bac////udyOBxBCBG7p2DJuWplvq1K wrlZg8hRjrg4k3FagFVphTCKFXHkLh+McYny89IiHSHK0Q/ZnoOMdQGlNtVuze4cINnj RRxcQI2bx+D0Zbc8FFBKKis8TkhjURd2RWIUGjF9m/7/dCnSuCu3vyx+3EUJ+YDpog/3 eyYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=A9a0MnNq; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fx3-20020a1709069e8300b0087bce26e653si17214651ejc.872.2023.02.13.07.52.43; Mon, 13 Feb 2023 07:53:06 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=A9a0MnNq; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231223AbjBMPio (ORCPT + 99 others); Mon, 13 Feb 2023 10:38:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230029AbjBMPid (ORCPT ); Mon, 13 Feb 2023 10:38:33 -0500 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 301C2193C7; Mon, 13 Feb 2023 07:38:32 -0800 (PST) Received: by mail-ej1-x62b.google.com with SMTP id rp23so32845112ejb.7; Mon, 13 Feb 2023 07:38:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=SIsYvjDlZhXseIBbB+cVw5ndep5LtZPlaWmi5dbOsTU=; b=A9a0MnNqLSnDTjUV3BMuhDgKa9mn8HK7dC3csSgPGempi1XhOQa/iwu1Fk4B0rLFCN ZZMSpoitc06llBvwJdhNOX5JDRpYjr7GW+ygqn91Goe/CkBJ6XPyW474YSLLWH+nj0HO lFJDWdXVLYymR5Jd1gUvZGCKXXIANGsGiAdxcojlVZxMcVN75HbG+nwlyNhaZGOghYEj gWN++UaTIawQ72Or0PdWLvlBJSx6/DLqWelbUTng8nfHc5O8SplofmbzqJRaNRUDZYqD Dd5lMxaRB8174aJk7IgE8knfsBAihtBk/1NzpkkOzn1Lz+Wu1O9ngXpBNyMPYp4n2QYO U7YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=SIsYvjDlZhXseIBbB+cVw5ndep5LtZPlaWmi5dbOsTU=; b=VcDMcKSE8iyzjmNslJrmiraVp4UcDSJ4hLhoNdoLj3uchtukUHxn8/Vwqfu9o3tlyK 4hLUSQh4BnVmi5wC3CvJALanIgdHmIEOSFUk5lckyUeaiNPL34lB+aSLBdr4zS+MPv9U Xob+F2qmnAl8S1eFAy04s7IN7GgLkv92XKKnfeNaw9AxgjCn9gWmWMBH9DDGzc+QpQ2D 3n8/kCBv3tHyhT1m/i7f0G7uxL1irkwQi3+HlZjktPn6pSRY3ai3F4CB4VqNXxZm3GHu fiUtTRZtcrOg1Hx3CrWxS0MrsrQRHG0YemKsM2u5YtbnygEV49AafhCPMSVLgbtSIapm VmsQ== X-Gm-Message-State: AO0yUKWv1RVjaJNXWn1JNmLEcVBPnidjOP/vFj0H2bXNiQ9/wV/BtU7i oge3hugAVE6DsAPKqqW2w/c= X-Received: by 2002:a17:907:801:b0:8aa:38da:4547 with SMTP id wv1-20020a170907080100b008aa38da4547mr29512562ejb.70.1676302710836; Mon, 13 Feb 2023 07:38:30 -0800 (PST) Received: from localhost.localdomain (83.24.145.108.ipv4.supernova.orange.pl. [83.24.145.108]) by smtp.gmail.com with ESMTPSA id gf17-20020a170906e21100b008b12614ee06sm115901ejb.161.2023.02.13.07.38.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Feb 2023 07:38:30 -0800 (PST) From: Maya Matuszczyk To: heiko@sntech.de, Rob Herring , Krzysztof Kozlowski Cc: linux-rockchip@lists.infradead.org, Maya Matuszczyk , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/4] arm64: dts: rockchip: Add display support to Odroid Go Super Date: Mon, 13 Feb 2023 16:38:16 +0100 Message-Id: <20230213153816.213526-5-maccraft123mc@gmail.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230213153816.213526-1-maccraft123mc@gmail.com> References: <20230213153816.213526-1-maccraft123mc@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757731709043833485?= X-GMAIL-MSGID: =?utf-8?q?1757731709043833485?= Note that orientation property in ST7701 driver is currently missing, And that ST7701 panel driver uses different regulator names compared to driver for Elida KD35T133 driver. Signed-off-by: Maya Matuszczyk --- arch/arm64/boot/dts/rockchip/rk3326-odroid-go3.dts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3326-odroid-go3.dts b/arch/arm64/boot/dts/rockchip/rk3326-odroid-go3.dts index 842efbaf1a6a..1b9769ccfdeb 100644 --- a/arch/arm64/boot/dts/rockchip/rk3326-odroid-go3.dts +++ b/arch/arm64/boot/dts/rockchip/rk3326-odroid-go3.dts @@ -142,7 +142,9 @@ button-sw22 { }; &internal_display { - status = "disabled"; + compatible = "elida,kd50t048a", "sitronix,st7701"; + reset-gpios = <&gpio3 RK_PC0 GPIO_ACTIVE_HIGH>; + VCC-supply = <&vcc_lcd>; }; &rk817_charger {