From patchwork Wed Feb 7 17:23:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sean Paul X-Patchwork-Id: 10205705 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BE3F0602D8 for ; Wed, 7 Feb 2018 17:24:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AD36228F86 for ; Wed, 7 Feb 2018 17:24:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A0F2328F89; Wed, 7 Feb 2018 17:24:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 18DE228F86 for ; Wed, 7 Feb 2018 17:24:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PwJCswzTMv+e9ZNbfizqftUSRXZcOpUgck7JknqrcQ4=; b=s3EGapx7ROGcit m6yiXxXecVjWe37q6edn9S8yXo57+lnR/StGqysALol04FWVxxEWZjvP9hckccuLRcKT+JyWt91c6 +IsulwAxLFD69uYHGSEbDdSmDzUuRS1tCqYJtNsZPbDK3tyBRY+6kF1VskqNDH0JWez1aUPe4NAbw Uoo92FF/tqDmkZ8A3bXCKOcPWGS0zlQj49H7A7Slfa5BZkEWk18gDdP1WqA/TZz5DgRIOT7HI/1S5 jNvx55yrRHo33kdNWZJ0Uk/rTZXbz8wSJ/3bxhMFf2p3dM5ixMCdFSwLdtIKmwnsfpwNKZywykaMd +a1/dg7LV25h0uKM1DiA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1ejTSW-0005TJ-V2; Wed, 07 Feb 2018 17:24:36 +0000 Received: from mail-yw0-x244.google.com ([2607:f8b0:4002:c05::244]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1ejTSS-0005Q6-Bo for linux-rockchip@lists.infradead.org; Wed, 07 Feb 2018 17:24:34 +0000 Received: by mail-yw0-x244.google.com with SMTP id u17so574350ywg.9 for ; Wed, 07 Feb 2018 09:24:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=sAi7BJ1hj262DD5fPhUPjZG4bY9TXHRiJf7UyMN+aog=; b=F4ZqTopc8/lvcRFVpr4vDWlMmQbNchyPV1Q4+Lc/tHOjPPtfGAMdytLHT4vMfeAZ/W xtp9krcJFZh62Bq9prwi1gXwQr/KzCynuaPK2FTfi87Q3NQniHKqSAZX9J1y5Pt/Br8X 2J8+mirBFFCmEF8WPESvuM4Dn78/WGHuOuh3M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=sAi7BJ1hj262DD5fPhUPjZG4bY9TXHRiJf7UyMN+aog=; b=lHs9hcgq+DojPzvPw7bp/xPEPXh5s0owOWxbtZdHyC283AJI3Cc45GQxys/DBed733 8wiJC4GjYmthxTdEJ3gGmgFrTyuWPp622OmUtcd1UZOY9OydnT4e9YjC8iMq7XWHr3bg v7y8uNWLoiwqtrpwHYDKh7XdPvummjjcgG0L1sTZsgY9iEYTLWG8KVgCH0kGiP7JD+Ku YGmqERPYOfK7TwBa1xls1kbi2UwNz5YgsNBLxoz0c+bfSEJPq7a0Uvjv01OiHLgL7iYA EGYmvfruRnxSbhWyKCeSKMw2paksEaHdWEhw1XWMiZ0d5N05O8IlvUO+bYBrqbsZt4g7 Y16g== X-Gm-Message-State: APf1xPAts8eKQfX/OHTSMgBNyL2dNFaNgrt3TsgYsl86ORmYITIN9fyY eaZw2PCgUVkokA0VsV+e64nfYw== X-Google-Smtp-Source: AH8x225ASXZe/toJBNXW+xRukNt6086uHMlox/NqlJLfqJ3VSB6O38BIYk23ydqNzwYqMFmHKy47Zw== X-Received: by 10.37.46.72 with SMTP id b8mr4519316ybn.464.1518024263982; Wed, 07 Feb 2018 09:24:23 -0800 (PST) Received: from rosewood.cam.corp.google.com ([2620:0:1013:11:d3af:69ac:1964:28e8]) by smtp.gmail.com with ESMTPSA id q9sm656314ywq.29.2018.02.07.09.24.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Feb 2018 09:24:23 -0800 (PST) From: Sean Paul To: dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH v2 3/5] drm/panel: simple: Add ability to override typical timing Date: Wed, 7 Feb 2018 12:23:57 -0500 Message-Id: <20180207172404.107358-4-seanpaul@chromium.org> X-Mailer: git-send-email 2.16.0.rc1.238.g530d649a79-goog In-Reply-To: <20180207172404.107358-1-seanpaul@chromium.org> References: <20180207172404.107358-1-seanpaul@chromium.org> MIME-Version: 1.0 X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thierry Reding , Heiko Stuebner , Jeffy Chen , Doug Anderson , Eric Anholt , Rob Herring , Sean Paul , =?UTF-8?q?St=C3=A9phane=20Marchesin?= Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds the ability to override the typical display timing for a given panel. This is useful for devices which have timing constraints that do not apply across the entire display driver (eg: to avoid crosstalk between panel and digitizer on certain laptops). The rules are as follows: - panel must not specify fixed mode (since the override mode will either be the same as the fixed mode, or we'll be unable to check the bounds of the overried) - panel must specify at least one display_timing range which will be used to ensure the override mode fits within its bounds Changes in v2: - Parse the full display-timings node (using the native-mode) (Rob) Cc: Doug Anderson Cc: Eric Anholt Cc: Heiko Stuebner Cc: Jeffy Chen Cc: Rob Herring Cc: Stéphane Marchesin Cc: Thierry Reding Cc: devicetree@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Sean Paul --- drivers/gpu/drm/panel/panel-simple.c | 77 +++++++++++++++++++++++++++++++++++- 1 file changed, 76 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 5591984a392b..c1635b35f97e 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -34,6 +34,7 @@ #include #include