From patchwork Mon Jan 3 11:38:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 529630 Delivered-To: patch@linaro.org Received: by 2002:ac0:9f5c:0:0:0:0:0 with SMTP id l28csp774479imf; Mon, 3 Jan 2022 03:41:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJxXUxtYEK6O7lQ3Qw7vedEPP0o0Kb1YH0AD3PXL5rvcZocfVIzahHL81fJXeOzHobmrgHGx X-Received: by 2002:a17:902:f781:b0:148:eb1f:f775 with SMTP id q1-20020a170902f78100b00148eb1ff775mr44547590pln.164.1641210063151; Mon, 03 Jan 2022 03:41:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1641210063; cv=none; d=google.com; s=arc-20160816; b=eY3+2HZI/qA7ei03X0Bu6abhpOIxhiikigmjPmJHJIjQc0tmmzGHc5Ixp/xiDk3hnX P6AZi1w/C4K5Yy7Cgmvw0C85qmS6jycSLKACSsuWj7ul/GuaaXdj7fb4JeFsf+iiJaZt ppvFrcDE+KjUhMt4YxMe3ESOjh9ynoVXHmP9LnwEv4fwnGwJYBtO7HotQKOBtwBzCbXf 4bH6rFRGNMXr/R/2wXqDg3lJYjnzV6Qx/yBfB2bgy1/9yh3FP72Qk4xBUjYkwSagTo1f buwcGQY3EJWhlBb5TX3fytToJCz3jgoFgk9c3vRUK1K4SNKYMTdjZxs4okxoeWq9cxGa ynuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:delivered-to; bh=jTHdhMQo8m7fjezvqLSe06rhw7qY2pds6pDxwCkD9fY=; b=Ai4CoK+bDEHZxyUTJLfGbu11j6ZM5zwf9cvJX7XDwnu7Ozkc8rYDgiFpH4iq16YnII N0Lp8FtQwmJWeZxZhotm2DKVZ9VeWMf5Zf8cwDggo/czX8kjz5TbS+Hmc4k0daB2B8F1 En64G2+scHd2ZeQNGL9ZAkJ4m0FEZhJtLmZDEiakk3VlUigvEh8ieO2h8wRmUlq+6Xc+ sCJgH9hIxvzIQpnFPQ4cKUXWDq5/AFWL5FTMOXaTy+ZMYsgcMHxt1FgAVeCpi9Y932iw 8XRblRpejs22gNVovQa9r/6K/Tt7KHnfyPEvLVXpB/1TWhOIrGOH1j1IRNINiIhfoaMF 2wIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="b/wYQ7Ri"; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id 75si428652pgb.614.2022.01.03.03.41.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jan 2022 03:41:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="b/wYQ7Ri"; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0975510E153; Mon, 3 Jan 2022 11:41:02 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2765A10E153 for ; Mon, 3 Jan 2022 11:41:01 +0000 (UTC) Received: by mail-lj1-x22e.google.com with SMTP id u22so55324751lju.7 for ; Mon, 03 Jan 2022 03:41:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jTHdhMQo8m7fjezvqLSe06rhw7qY2pds6pDxwCkD9fY=; b=b/wYQ7RifZ0R/sGHpjKvuJhQ5Na27nhgMFvGUGNCllToR3R+5IUy0NRFW8oIcLKTLJ CI4NXhbdrfFTyx0cbt+DaXZbhWZUNm/ZSPdDXbJ6pjBr58gOVSbeucmuKeRubgw19Ozd UZlU4dAjL4Mig2rRjJ80LRGwPQ5zYw+AvLv4K3cGdg7+9OnMTBOqLR7rp0thw0uhenOW 1hPjGgCGdnXnOO/sWgcTR0CPFX0TY9lem6/Im8N32vf3yKagLMi6LdFgcjzzmWfGCNuW PJtrm2MZ1sLtm+Qf8nlFoP9cin2U9Q3IGIXj8nj5iEPHile+ZVV4xONtxWRs4w5VXL42 eSTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=jTHdhMQo8m7fjezvqLSe06rhw7qY2pds6pDxwCkD9fY=; b=qwKmk96gldLo94v2frY0k9Rjtwj98SEksNRPiChpEYRhe19VgaTSfebi64mYRp5RYr XOnqrrnZd1RlpyAvbdETZDqYU8+o486NmkuM31H4rPA8uGOWTk76E9VzMN87kmZYO5Ux 4wgoyHlKIL8kWZqtbKz6thpNRj+dibLupUDqDGGWOQ7srUSFx1TJSMH3iyWW5USrSMxr eO0suiDfEmXhVOXQE9MuWI9jOT+ldZPciTOo2PO7TE1nPzIXhHepedGxFUL0+jelmyCU /H6y7MgS399ncwKLM1VIZJzXORDZN8zIG8F6NF6xZEI+tHAXCzE3fPLp0U5OC+qvatn6 HTSQ== X-Gm-Message-State: AOAM532JO8JAdBltkCO3iAbv9Rk4MeDcm2WV1ZJXJEMigQ0dkdGfBrZh 0nLALJkRTFL8zYG+mWsQUxv4bA== X-Received: by 2002:a2e:b0d3:: with SMTP id g19mr36910925ljl.227.1641210059496; Mon, 03 Jan 2022 03:40:59 -0800 (PST) Received: from localhost.localdomain (c-fdcc225c.014-348-6c756e10.bbcust.telenor.se. [92.34.204.253]) by smtp.gmail.com with ESMTPSA id a23sm1910941ljk.8.2022.01.03.03.40.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jan 2022 03:40:58 -0800 (PST) From: Linus Walleij To: Thierry Reding , Sam Ravnborg , dri-devel@lists.freedesktop.org Subject: [PATCH 2/3] drm/panel: nt35560: Support more panel IDs Date: Mon, 3 Jan 2022 12:38:21 +0100 Message-Id: <20220103113822.654592-2-linus.walleij@linaro.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220103113822.654592-1-linus.walleij@linaro.org> References: <20220103113822.654592-1-linus.walleij@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" These IDs were found in the wild in a Sony Xperia vendor tree. Signed-off-by: Linus Walleij Acked-by: Sam Ravnborg --- drivers/gpu/drm/panel/panel-novatek-nt35560.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-novatek-nt35560.c b/drivers/gpu/drm/panel/panel-novatek-nt35560.c index 620876225384..41dc278faf80 100644 --- a/drivers/gpu/drm/panel/panel-novatek-nt35560.c +++ b/drivers/gpu/drm/panel/panel-novatek-nt35560.c @@ -32,13 +32,14 @@ /* * Sony seems to use vendor ID 0x81 */ -#define DISPLAY_SONY_ACX424AKP_ID1 0x811b +#define DISPLAY_SONY_ACX424AKP_ID1 0x8103 #define DISPLAY_SONY_ACX424AKP_ID2 0x811a +#define DISPLAY_SONY_ACX424AKP_ID3 0x811b /* * The third ID looks like a bug, vendor IDs begin at 0x80 * and panel 00 ... seems like default values. */ -#define DISPLAY_SONY_ACX424AKP_ID3 0x8000 +#define DISPLAY_SONY_ACX424AKP_ID4 0x8000 struct nt35560 { struct drm_panel panel; @@ -225,6 +226,7 @@ static int nt35560_read_id(struct nt35560 *nt) case DISPLAY_SONY_ACX424AKP_ID1: case DISPLAY_SONY_ACX424AKP_ID2: case DISPLAY_SONY_ACX424AKP_ID3: + case DISPLAY_SONY_ACX424AKP_ID4: dev_info(nt->dev, "MTP vendor: %02x, version: %02x, panel: %02x\n", vendor, version, panel); break;