From patchwork Thu Feb 22 16:43:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Green X-Patchwork-Id: 204860 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp63558dyb; Thu, 22 Feb 2024 08:45:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWPPREaTlABaK4LSuqOL+VEB2JBT6DNSG52N+XGrYT/rMF7KX1610uIEt7J2DOCCoiSov2rpHGp6vqpw1vQQAzOppX/Hw== X-Google-Smtp-Source: AGHT+IGUmZX5JGWfxRzj2UgyNa7b8QU22E/VblRERRDJNCx0Vgc0vmtTYYZ/+c2w9NCXfbYdhLrB X-Received: by 2002:a05:6214:f0e:b0:68f:8587:205c with SMTP id gw14-20020a0562140f0e00b0068f8587205cmr12242349qvb.7.1708620300767; Thu, 22 Feb 2024 08:45:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708620300; cv=pass; d=google.com; s=arc-20160816; b=Jm4XJSM29TZgdX3DS/oIrzeCXl5QzUWduj/38yVNlEjOHjbBU46raSM07luURThua1 myXZ3jVB3tgw0DUGMyUb44S6NvZ6PAqX832I+BRqVLJXUbLpNNUFJFQiPSebbTxhvmS2 x54JqAYwdhltOZNvIj8LpP0WjEtVuiXLpDzr8hXMtM+58kC3xza7BBrCHGlccwHOwlFl 7QQVF7cJVYxiu7DaGhzV7x6UNoMPdFXQrhPuamAsr3Yre9l2srJb2ctDStgzY7R5hvkV AzNLbeQRsCplkSuzbOXNrkNywumsLbvyxlPsMoiOR0Xr9SmD7tTFsA2AowK54S9g8uED 0wDA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=R9SWDIfh91PUFnssD98ZcjvHp+kf1OGg+JV2t9c32to=; fh=cC49jL0Qbf/2pY/yhCTXqonBrkJmfN7wDzWP0DMB9tI=; b=mM78NXWjTJjz40tpeAwJGKJICM47dO8dUf3RqOt7+Hmd8jpAheiZKI30+FfSW9GfOC kge7XLimgv013ohp6BVUo3fXP0chi2mg7MY8u93XtHhF3Ufy3KiCgQz6GMjP/U/JQXxO F8cHs6NGY7fTLIvvJb+DGjKgXHnM3/F7Qo1OfVor3QqtDbpL7TvqGADIA4lR2JnKWnJ8 cSGB10qc0RF+zYBv99C99a55cccMk5qTWji9XYB3tHK3T58CSnyGYiQHPRlT5BgbM/9+ oBufwuFXswR1BVlEXnWPuU5ONR1jmW0MVRMuxQsd/fzR8r8WzFCmML0BhzU17Z+PAuAg DuIg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=lQrXYwgr; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-76898-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76898-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id t1-20020a0ce581000000b0068fc588ca99si904911qvm.476.2024.02.22.08.45.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 08:45:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76898-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=lQrXYwgr; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-76898-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76898-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 812B71C25644 for ; Thu, 22 Feb 2024 16:45:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 070E7154441; Thu, 22 Feb 2024 16:44:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="lQrXYwgr" Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (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 5296B8C0B; Thu, 22 Feb 2024 16:44:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708620274; cv=none; b=l167rL6ssn1xgsD/Fq/yhaVkpmge6gTn61vGMpfZNFw/C7UGfKANKtZVKAe05zQ/+Qum21I4zYQ4w0fwZ4GgRGTRa1sJer8vpP3eZDRq8buwr7yFp8eXMP5tKxFbmFvUPS0xbmFypTIYYs5RdVRwt/55oQVPp3o1amdbLP8fOsA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708620274; c=relaxed/simple; bh=vSzCyAi5T9sgr9bUOid1vdtAG0RYpvMRx5Jwt+lpGZk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jjcUZWAB8Hvw8cS1HAQqGQUh7k16XDWW2IjT81NDChoNlOyXuxmHjtDKN9LlOUxyLzCLYuOyHmdJoXzexbIpDtBDFGpBwBjxgCEJ0vH6uLZCGBwaXddLTOPod/0Dg/EW59THgk/ayzhLnFr2GKgQaKQUZxFShoUILq65HhxLIas= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=lQrXYwgr; arc=none smtp.client-ip=209.85.128.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-41275971886so15805325e9.3; Thu, 22 Feb 2024 08:44:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708620271; x=1709225071; darn=vger.kernel.org; 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=R9SWDIfh91PUFnssD98ZcjvHp+kf1OGg+JV2t9c32to=; b=lQrXYwgr/x8yokKrw4OOCnpPYbbsT1TSk9zznRO2YL+PvGgXz0OA10vUxLmQ8SJDlQ YNjl9pzQvylAeJ+tILS/HLUCH4TGVoKgXDh4ou/J4shSbNvk6hD/j2G94WBH/UEZc3gE 8ql7YwA1cRZ7TzZRmrLzzdriUsQ1lOF+dlpI4b9TIPqvAOaRNMvhsUUp8/4kpuf9sFU/ Re74xg6UxuiDhOVqpJDnZ5Tvh9tcx2xQ1Uo8XxYa/Nt7IAuwNXrqL5aCEtAjgQUpkxSI 4NtH53cBgX9Lm+r+sqotLxrIeH2J85CTsS3XVYiXaIJms6MZh1M7maYSb9bDOAAXip17 FuDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708620271; x=1709225071; 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=R9SWDIfh91PUFnssD98ZcjvHp+kf1OGg+JV2t9c32to=; b=vXpce6r7hUQSU1Wj4cHKCwY7mEXuFExLjE/LnFNqXPxB8LOmrcLoeUcSe6B/p+EXbX IJoNkd0UBsKjl0kYmwdoV5rRNkJHgfnWCelqSGDU4gylt0UPv0n/ZZQ/36oW7CQs7gy+ HFYryBemRA8/0fkdOtdnnKxPmswGb7PdSVKNq3nImDBjHB5nOMEd/EK42Nbo6PHW1N69 hvdirrqU9kCkd96ylrz2iMK8ll7tKl5wdtT/WAPKG4R0IdLnVJKXSPcvATKGaRwsUoVc VeEzW8PkJEpPlhz5i1B295EW6//xMlYmiZX+pZ6IM9+U0LmUkBx6VLOoBlf4K9LqO/i5 jMPg== X-Forwarded-Encrypted: i=1; AJvYcCXVOfSBbcpII2PYtzN3+jZt7/AX10rhJhqN+59+H7z9Z4BPWy26OCdx959Q3v4m1xSlCv0xeDqtDbtcV9N19YynBbREA2wQfyo44nsUlVeQBeXUfZzWuVysokSA4Y7Ej7xbTJBqnzTaSg== X-Gm-Message-State: AOJu0YwYlaS5uVGE7RfRDPevuYLuARsEYlovD5hnKHXmjc9sa1NflKRg U2DzRzZJ/SDe8PHgQvn4AhTl07C+KRul7+Xy0KoFKpNmrxJLyYPH X-Received: by 2002:a05:600c:4449:b0:412:8fef:7f with SMTP id v9-20020a05600c444900b004128fef007fmr233521wmn.1.1708620270748; Thu, 22 Feb 2024 08:44:30 -0800 (PST) Received: from localhost.localdomain ([90.255.110.157]) by smtp.googlemail.com with ESMTPSA id r2-20020a05600c35c200b004123b049f86sm22800420wmq.37.2024.02.22.08.44.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 08:44:30 -0800 (PST) From: Adam Green To: Jagan Teki , Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: greena88@gmail.com Subject: [PATCH v2 1/2] drm: panel: st7701: Add Hardkernel ODROID-GO Ultra panel support Date: Thu, 22 Feb 2024 16:43:13 +0000 Message-ID: <20240222164332.3864716-2-greena88@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240222164332.3864716-1-greena88@gmail.com> References: <20240221194528.1855714-1-greena88@gmail.com> <20240222164332.3864716-1-greena88@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791539774192210337 X-GMAIL-MSGID: 1791618240448610862 The Hardkernel ODROID-GO Ultra is a handheld gaming devices, with a 5 inch 480x854 display. Add support for the display. Signed-off-by: Adam Green --- drivers/gpu/drm/panel/panel-sitronix-st7701.c | 158 +++++++++++++++++- 1 file changed, 157 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7701.c b/drivers/gpu/drm/panel/panel-sitronix-st7701.c index 421eb4592b61..d08e8f4c39dd 100644 --- a/drivers/gpu/drm/panel/panel-sitronix-st7701.c +++ b/drivers/gpu/drm/panel/panel-sitronix-st7701.c @@ -423,6 +423,62 @@ static void kd50t048a_gip_sequence(struct st7701 *st7701) 0xFF, 0xFF, 0xFF, 0xFF, 0x10, 0x45, 0x67, 0x98, 0xBA); } +static void odroid_go_ultra_gip_sequence(struct st7701 *st7701) +{ + ST7701_DSI(st7701, 0x01); + msleep(20); + ST7701_DSI(st7701, 0x11); + msleep(120); + + ST7701_DSI(st7701, 0xFF, 0x77, 0x01, 0x00, 0x00, 0x10); + ST7701_DSI(st7701, 0xC0, 0xE9, 0x03); + ST7701_DSI(st7701, 0xC1, 0x11, 0x02); + ST7701_DSI(st7701, 0xC2, 0x31, 0x08); + ST7701_DSI(st7701, 0xCC, 0x10); + ST7701_DSI(st7701, 0xB0, 0x00, 0x0D, 0x14, 0x0D, 0x10, 0x05, 0x02, 0x08, + 0x08, 0x1E, 0x05, 0x13, 0x11, 0xA3, 0x29, 0x18); + ST7701_DSI(st7701, 0xB1, 0x00, 0x0C, 0x14, 0x0C, 0x10, 0x05, 0x03, 0x08, + 0x07, 0x20, 0x05, 0x13, 0x11, 0xA4, 0x29, 0x18); + ST7701_DSI(st7701, 0xFF, 0x77, 0x01, 0x00, 0x00, 0x11); + ST7701_DSI(st7701, 0xB0, 0x6C); + ST7701_DSI(st7701, 0xB1, 0x43); + ST7701_DSI(st7701, 0xB2, 0x07); + ST7701_DSI(st7701, 0xB3, 0x80); + ST7701_DSI(st7701, 0xB5, 0x47); + ST7701_DSI(st7701, 0xB7, 0x85); + ST7701_DSI(st7701, 0xB8, 0x20); + ST7701_DSI(st7701, 0xB9, 0x10); + ST7701_DSI(st7701, 0xC1, 0x78); + ST7701_DSI(st7701, 0xC3, 0x78); + ST7701_DSI(st7701, 0xD0, 0x88); + msleep(120); + + 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); + ST7701_DSI(st7701, 0xFF, 0x77, 0x01, 0x00, 0x00, 0x00); + ST7701_DSI(st7701, 0x3A, 0x70); + ST7701_DSI(st7701, 0x53, 0xEC); + ST7701_DSI(st7701, 0x55, 0xB3); + ST7701_DSI(st7701, 0x5E, 0xFF); + ST7701_DSI(st7701, 0x29); + msleep(50); +} + static void rg_arc_gip_sequence(struct st7701 *st7701) { st7701_switch_cmd_bkx(st7701, true, 3); @@ -470,7 +526,7 @@ static int st7701_prepare(struct drm_panel *panel) st7701->supplies); if (ret < 0) return ret; - msleep(20); + msleep(120); gpiod_set_value(st7701->reset, 1); msleep(150); @@ -875,6 +931,105 @@ static const struct st7701_panel_desc kd50t048a_desc = { .gip_sequence = kd50t048a_gip_sequence, }; +static const struct drm_display_mode odroid_go_ultra_mode = { + .clock = 29170, + + .hdisplay = 480, + .hsync_start = 480 + 12, + .hsync_end = 480 + 12 + 12, + .htotal = 480 + 12 + 12 + 38, + + .vdisplay = 854, + .vsync_start = 854 + 2, + .vsync_end = 854 + 2 + 19, + .vtotal = 854 + 2 + 19 + 22, + + .width_mm = 70, + .height_mm = 140, + + .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, +}; + +static const struct st7701_panel_desc odroid_go_ultra_desc = { + .mode = &odroid_go_ultra_mode, + .lanes = 2, + .format = MIPI_DSI_FMT_RGB888, + .panel_sleep_delay = 120, + + .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 = odroid_go_ultra_gip_sequence, +}; + static const struct drm_display_mode rg_arc_mode = { .clock = 25600, @@ -1055,6 +1210,7 @@ static const struct of_device_id st7701_of_match[] = { { .compatible = "anbernic,rg-arc-panel", .data = &rg_arc_desc }, { .compatible = "densitron,dmt028vghmcmi-1a", .data = &dmt028vghmcmi_1a_desc }, { .compatible = "elida,kd50t048a", .data = &kd50t048a_desc }, + { .compatible = "hardkernel,odroid-go-ultra-panel", .data = &odroid_go_ultra_desc }, { .compatible = "techstar,ts8550b", .data = &ts8550b_desc }, { } }; From patchwork Thu Feb 22 16:43:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Green X-Patchwork-Id: 204861 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp63698dyb; Thu, 22 Feb 2024 08:45:14 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV4LrUcQWH7fveAVVpRDzbZp5INXHC+V78A5UkfCafWJFqlaPqX2Hfm+GaNO8DPJCCmrR8wLFPFxUC6EdBBMJQAEVrKkA== X-Google-Smtp-Source: AGHT+IEng+juhZLARlHv+V01LlhiOQllBvDMsz/43rdWsZE5RrFaT/5RUyg2OlILb5CgQl5hsLBs X-Received: by 2002:aa7:c1cc:0:b0:565:4e33:2674 with SMTP id d12-20020aa7c1cc000000b005654e332674mr786772edp.17.1708620314045; Thu, 22 Feb 2024 08:45:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708620314; cv=pass; d=google.com; s=arc-20160816; b=mGk4oPOhm0XAY2D4/fU/Lxa3L9UlZgd+Q1aXY9aL1nyvol2h66nTuIoLG5+3tBXjwf TiCud6x/N89F0RUda1C2J5SuGhkK0DGHDIHkI5f4sSc6Zps4xCL1s6UB/iJkh+EPFWbi FUqJ0MNpBFmIRrgGTBY7ILKLXD5yAm7Bmw8S0goYHigjmVH503bJZkdpd5NaOHgM159s UWjegilXLSOgGrD4QzLqn5cIrFshWojSfVda9jmsQYIMnUWYlOIH8fujP3OHOtk8YsGP EPKoIPMStwIRJkH4huNF2TOJvKnVXfKZi8umuCM4BFhn0DjDLYOG3zYmK8gRmRk3ulQY Wz4Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=SJbQ3RMr2l9g2dwn49+72QIs9q2n9zDfNSkTMBZwZqU=; fh=6pjnxvPXk4RjtMxEcC8Rx6AMjX/HSCDZoR9I7yDLy+g=; b=WMcheJUVRr9xbzVFL+JMcPoOh/UT2C5051AxEN0sOuehAsykQvC51SShgNxsb9pZPV SdFfJFU79b2bhR6RMQ+6wz05Ek15FW7XmOSgTcxPOWoRARDG/4UNLkPZOhOJj03VnRqQ BsVqL9PQKtAL5y5noh5V6CbCBZeC5B+gAKJYXcF7s71h4z6Kbwm3VSjOUC/ZMrN3LU+d 7NnoZozNql+22of8cti5kPECVOLZWCkDUsoT0jOTai6PbyZAN/bzIdC6uMUkwv460XA8 A4ejYyHShHsef7KVv3l1+heGyaAYDmCNI5fPICcuNHmpMwMID0aoaGhpOA0HP8dCDkUP CkGQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="gv/VWJu1"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-76899-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76899-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id g8-20020a056402320800b005648abecad1si3677322eda.670.2024.02.22.08.45.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 08:45:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76899-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="gv/VWJu1"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-76899-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76899-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A6E0C1F280C0 for ; Thu, 22 Feb 2024 16:45:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DBB9C155303; Thu, 22 Feb 2024 16:44:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gv/VWJu1" Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 B53811552E7; Thu, 22 Feb 2024 16:44:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708620280; cv=none; b=u2D4psykWxVuH6f6SxeMhT85YfTlv/Tp8etApndNodvXOTXMgs802HAm+zhLN5d/q2n9YR/WmSQUkHo4sAqiiYXc5Ywe/YMtS5wOkI3jMxI0PpDfB7KFnJWiPOJDfySE9rL1q+YZnVlBI02CLpFcJcYE2BnM9wZDWnrsFoP4EBA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708620280; c=relaxed/simple; bh=Z430PI7b/xHtUxak96DMBj+edhpX9NXBhwZDo/BO8nc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=C6687DrZ6UYsaRO5YJmyoz4geTbo2mugeJ1GsYhQ0AKPzAgRBON6hpUZMxt0Fg6H7fV1HBoe/fWG2X3LrTD57snN6N5KlB/QfHKj4QJLcJV/9BPxg+G7lA1/nhs3Wv2ljgcXIuJNT8xC7aHfoWK+ObPUliLe/quxjMUkPjQ754g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=gv/VWJu1; arc=none smtp.client-ip=209.85.128.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-41275971886so15806215e9.3; Thu, 22 Feb 2024 08:44:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708620277; x=1709225077; darn=vger.kernel.org; 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=SJbQ3RMr2l9g2dwn49+72QIs9q2n9zDfNSkTMBZwZqU=; b=gv/VWJu1r5WqmV3RjbJbfEqoqWXn532ayLMEmzDVqvp8rwFgp5IRfQySmg/dyMZVeo KSELY32dwnDhJG863c+dfkGztbfW77Pw0+NVl24sptgYZSRdK9oMdYLzXCRVvWqOuxfJ Y9/K9CjxKg0i166VnGShNjTFk8bBsCW6loHzSx/rzQhlYjW18FCkZcWOSM2QnV9CBuSo 7zRVOq6bu2yrxXfpwtqpKFG3jLYtJbeAH+c9KzNH0hABIqP/MyeLgXXjeZvs5rSt2QR4 B9GcUI14sJY4KaRBBNnoAqsMtlVt5itT6M9k6A8AXG/nRJ7/VRk7g05JX7zEfVvU4Hxw 1mAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708620277; x=1709225077; 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=SJbQ3RMr2l9g2dwn49+72QIs9q2n9zDfNSkTMBZwZqU=; b=WfOBgaPY+DtnkMRYX5cUrgPCldHIY9h0grDXIpKXCOH/d8l6j6qBMHGVCZO6br1zDA kqivA7MmwkqflhxQqgz+NLn38q0l45cgyme8PKymwDooDFXBbhJJQEAb/9ZvOLI/V+WP V6Fsdr4UavE57QOLs1NR/iDoOirTzq7RtbNpf/+NB37rdi7zadWgKL7MAy/B2pmysHG9 iGfJD/b3nrsJQHAVq6dOVBQBH8U+lDPPXhgwIZFZ+sCHCDNKJwUklZ0MdN38yCc1uGkM K841Jx0r1ZjKxdNCt4H+bFqAZZ4HAsPoc5qPhjFRuOhCeZGcPFNHq94uNytE5fKk7TW4 9nMA== X-Forwarded-Encrypted: i=1; AJvYcCXyO897fLvC+URLr0cVvDozO48InzeXQCddY4gLhOaHDbOLvHHKh1VicsL2GX8daFvmKEWf5zDaptzH3kX4ZSwcggOViyyR8t1coKLD4gwL83UDkMj/iM2DqsoInFpT2BlJvt1BZ9wtjg== X-Gm-Message-State: AOJu0Yw+0KoFQgkKlrn1KfxYTzhlWUp2Xl0WVEdqLuDGA/6lUE90ratc CkLynIchYFW7WDja6VazLOgqnx5iApbqtSDaLUvsw/YOQJWP1S/M X-Received: by 2002:a05:600c:1c1e:b0:412:1d7d:6c51 with SMTP id j30-20020a05600c1c1e00b004121d7d6c51mr16054487wms.6.1708620277066; Thu, 22 Feb 2024 08:44:37 -0800 (PST) Received: from localhost.localdomain ([90.255.110.157]) by smtp.googlemail.com with ESMTPSA id r2-20020a05600c35c200b004123b049f86sm22800420wmq.37.2024.02.22.08.44.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 08:44:36 -0800 (PST) From: Adam Green To: Jagan Teki , Neil Armstrong , Jessica Zhang , Sam Ravnborg , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: greena88@gmail.com Subject: [PATCH v2 2/2] dt-bindings: display: st7701: Add Hardkernel ODROID-GO Ultra panel Date: Thu, 22 Feb 2024 16:43:14 +0000 Message-ID: <20240222164332.3864716-3-greena88@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240222164332.3864716-1-greena88@gmail.com> References: <20240221194528.1855714-1-greena88@gmail.com> <20240222164332.3864716-1-greena88@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791618254178189880 X-GMAIL-MSGID: 1791618254178189880 The ODROID-GO Ultra panel is a panel specific to the Hardkernel ODROID-GO Ultra. It is 5 inches in size (diagonally) with a resolution of 480x854. Signed-off-by: Adam Green 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 b348f5bf0a98..3eb306161f1a 100644 --- a/Documentation/devicetree/bindings/display/panel/sitronix,st7701.yaml +++ b/Documentation/devicetree/bindings/display/panel/sitronix,st7701.yaml @@ -30,6 +30,7 @@ properties: - anbernic,rg-arc-panel - densitron,dmt028vghmcmi-1a - elida,kd50t048a + - hardkernel,odroid-go-ultra-panel - techstar,ts8550b - const: sitronix,st7701