From patchwork Wed Jul 24 13:49:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 11056821 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0A28A112C for ; Wed, 24 Jul 2019 13:50:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED13C28498 for ; Wed, 24 Jul 2019 13:50:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E125B285FF; Wed, 24 Jul 2019 13:50:12 +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=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8751F28498 for ; Wed, 24 Jul 2019 13:50:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B67C589F9F; Wed, 24 Jul 2019 13:50:10 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9C1986E4F5 for ; Wed, 24 Jul 2019 13:50:09 +0000 (UTC) Received: by mail-lj1-x242.google.com with SMTP id i21so44604548ljj.3 for ; Wed, 24 Jul 2019 06:50:09 -0700 (PDT) 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:mime-version :content-transfer-encoding; bh=GxqeVRAu8+l8yYzPd+gthwrK7cvPO4f9RTksijZqcJM=; b=R25jLafYdnEHbjl+p/383zb9gRn5N5lnb702LnhuNz2HswXasCvARPkZKMGyW7eEJc Mc1epMavoJfCg0m74sYcX3cGzjwd3R5UIHW1M1KZuqqfJoZEDgskT/721Nh2L0LzqFAr JN662y6KNgxXMvfo64Qx9H/my720XWyB7+47n054pNo3StxFHXqfCzueBBCt+vTNObES tP6/bdqBH4XpjMSHpAvvO7XFzH3cZou9oQxgIMTWrWov20wNqsDQPVpGYrcGiKDtCvhe LIY9Bs7vgbvOVUUUOrvokOlDtLjGueG08AwNYeeULt2z5UYVXTwsCaDsB2Mn8r5xVsmd W2nw== X-Gm-Message-State: APjAAAX/ByXQQXFBgg4zqUr1zsUGt/WWTkSpDD0iieNTyt4tlBIYNJMV 5l/WNDjPaiQGJtUXgrCKNCALA/cP2+M= X-Google-Smtp-Source: APXvYqxzSdpNJ5lm69QpIMQiYQwP+Ttd8WTQhr71TgFYZTiSnOeiyQuQys/rPXrnmuRfo4P1uwlcBQ== X-Received: by 2002:a2e:9857:: with SMTP id e23mr42374872ljj.217.1563976207815; Wed, 24 Jul 2019 06:50:07 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id v4sm8586483lji.103.2019.07.24.06.50.06 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 24 Jul 2019 06:50:06 -0700 (PDT) From: Linus Walleij To: dri-devel@lists.freedesktop.org, Maarten Lankhorst , Maxime Ripard , Sean Paul Subject: [PATCH 1/2] drm/pl111: Deprecate the pads from the DT binding Date: Wed, 24 Jul 2019 15:49:58 +0200 Message-Id: <20190724134959.2365-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=GxqeVRAu8+l8yYzPd+gthwrK7cvPO4f9RTksijZqcJM=; b=d1/AnXTfzDzVuH3U4c14o6CjsffFRHEIXFK61k8yjmHBtjYsRXCI8J21a3mMiuOZI4 cqi9X+qktXY7k6uIkJWNTyUqlmX1j5ZE8he8iSQf00NnLzNPDU0YEupQRP3GzB5UH8Bc lRzT5SOlICV5aBQRhmR2ENhfOy5p31b14kq9Mi+uUQjM6t+9ODltdwGlXUa2gtRdc9Vs 8MpubM4sI5gEz3UrdBNEE0K4ArMbranHmxtrcC9qf4fzsvdI8cNhTit/Plb7VmgS7uQg 3URQ/Yd84UBvEDZhPbwywE7NiULvU6bqY+oLkzJMY4phkWqhRrdlhHBhcxMu9Sm+APVO r/rQ== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Pawel Moll , Liviu Dudau , Sam Ravnborg , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP The pads were an earlier workaround for the internal image pipeline in the Linux fbdev subsystem. As we move to generic definition of display properties and drivers that no longer need this to work, deprecate this property. Cc: Sam Ravnborg Cc: Pawel Moll Cc: Liviu Dudau Cc: devicetree@vger.kernel.org Signed-off-by: Linus Walleij Acked-by: Sam Ravnborg --- Documentation/devicetree/bindings/display/arm,pl11x.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/display/arm,pl11x.txt b/Documentation/devicetree/bindings/display/arm,pl11x.txt index 572fa2773ec4..3f977e72a200 100644 --- a/Documentation/devicetree/bindings/display/arm,pl11x.txt +++ b/Documentation/devicetree/bindings/display/arm,pl11x.txt @@ -39,9 +39,11 @@ Required sub-nodes: - port: describes LCD panel signals, following the common binding for video transmitter interfaces; see - Documentation/devicetree/bindings/media/video-interfaces.txt; - when it is a TFT panel, the port's endpoint must define the - following property: + Documentation/devicetree/bindings/media/video-interfaces.txt + +Deprecated properties: + The port's endbpoint subnode had this, now deprecated property + in the past. Drivers should be able to survive without it: - arm,pl11x,tft-r0g0b0-pads: an array of three 32-bit values, defining the way CLD pads are wired up; first value @@ -80,7 +82,6 @@ Example: port { clcd_pads: endpoint { remote-endpoint = <&clcd_panel>; - arm,pl11x,tft-r0g0b0-pads = <0 8 16>; }; }; From patchwork Wed Jul 24 13:49:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 11056825 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 23F4113B1 for ; Wed, 24 Jul 2019 13:50:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1350E28498 for ; Wed, 24 Jul 2019 13:50:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 06EA7285FF; Wed, 24 Jul 2019 13:50:16 +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=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B423028498 for ; Wed, 24 Jul 2019 13:50:15 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D85BE6E4F5; Wed, 24 Jul 2019 13:50:14 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id 95A516E4F8 for ; Wed, 24 Jul 2019 13:50:11 +0000 (UTC) Received: by mail-lj1-x244.google.com with SMTP id m23so44508094lje.12 for ; Wed, 24 Jul 2019 06:50:11 -0700 (PDT) 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=HfPoVJsXGaQ7CrPxMNDhvPdtz+hWWRNJKhx9Zt29Rpw=; b=KRvaB9UYUCwjirrhHQGuCNYPHzhOim1AF/CM42AUmhk/i+t09qtBL5EErUnj2ljc4A PnR/lBnWiDx7Zi4Ze0UqQAk/D5Sa4g+UfRoP0rFzQ9PuT23Bj+Ylow/f92+HINc+U62q +qfAdhq6+qfQtspUfO0BTDaiVSHyPwbRuSQWEQE/Zd0GRzrexiupXbRmCJiSqP+T3JaE 19QWjthaFTGT5sEXEv2LISWkA1mvL1dVc3yVEDQBSgw71KhmY9f/cqq+IVKow5bsnL8Y Wkm86PZJ3B5X/QtsOrlxn2lm0vlkPAmFEKMF36MVxOyYpo5NcdmV6xTY+gt0OAvosv6z 8I6A== X-Gm-Message-State: APjAAAVkiejeKtiPH7R6Qt75XbzhrIKC63y43pg93NYP2Tg338mH4edM ySp8vmb51//7DwjMSGBWylQZUDDW3Yg= X-Google-Smtp-Source: APXvYqyjk/0IsjFe1aAfxByZ5nzwaHZIWvF4GQjqOS05zabNCqCg+h3+FahVUnfnxWqiOJs3cm8nWw== X-Received: by 2002:a2e:7315:: with SMTP id o21mr35196730ljc.3.1563976209824; Wed, 24 Jul 2019 06:50:09 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id v4sm8586483lji.103.2019.07.24.06.50.08 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 24 Jul 2019 06:50:08 -0700 (PDT) From: Linus Walleij To: dri-devel@lists.freedesktop.org, Maarten Lankhorst , Maxime Ripard , Sean Paul Subject: [PATCH 2/2] drm/pl111: Drop special pads config check Date: Wed, 24 Jul 2019 15:49:59 +0200 Message-Id: <20190724134959.2365-2-linus.walleij@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190724134959.2365-1-linus.walleij@linaro.org> References: <20190724134959.2365-1-linus.walleij@linaro.org> MIME-Version: 1.0 X-Mailman-Original-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=HfPoVJsXGaQ7CrPxMNDhvPdtz+hWWRNJKhx9Zt29Rpw=; b=xqkD4l6pQ59S18/2N97O4kkMzx8lUYEVdwU8E6DDQAjlTZbekJZ45iJxLjCYV8wPkB oFJQsyDhyr6TG++7ko7t24C9YqC3QX9lKck0pa/+JScHKTtpj4LcIL3PETrNI5ddzNlk u1mQnmHFwPDUlRYXj7KdrfopRx9UxPCntJoAvVDv/uh6ypWag6UdbPiImhI7sobYGym+ U+MKkK4amr4J6NZVmbdtsGZAhLutz6UmI8Fb4AzAGWARs9BtHpFUi7e9x+79OlJXVXix s3MQIcG3uGvEFJHlOky9cSIJlp8+gcYiUnfJ1PuqP/4unyq6tTLNLy9e74hqCfGz8ivH RquA== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Liviu Dudau , Sam Ravnborg , Pawel Moll , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This drops the check of the surplus "pads" configuration from the device tree that is completely unused in the DRM driver. This was only used to work around limitations in the earlier fbdev driver. Cc: Sam Ravnborg Cc: Pawel Moll Cc: Liviu Dudau Signed-off-by: Linus Walleij Reviewed-by: Sam Ravnborg --- drivers/gpu/drm/pl111/pl111_display.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/drivers/gpu/drm/pl111/pl111_display.c b/drivers/gpu/drm/pl111/pl111_display.c index e42fb6353623..8595a676b084 100644 --- a/drivers/gpu/drm/pl111/pl111_display.c +++ b/drivers/gpu/drm/pl111/pl111_display.c @@ -572,24 +572,8 @@ int pl111_display_init(struct drm_device *drm) { struct pl111_drm_dev_private *priv = drm->dev_private; struct device *dev = drm->dev; - struct device_node *endpoint; - u32 tft_r0b0g0[3]; int ret; - endpoint = of_graph_get_next_endpoint(dev->of_node, NULL); - if (!endpoint) - return -ENODEV; - - if (of_property_read_u32_array(endpoint, - "arm,pl11x,tft-r0g0b0-pads", - tft_r0b0g0, - ARRAY_SIZE(tft_r0b0g0)) != 0) { - dev_err(dev, "arm,pl11x,tft-r0g0b0-pads should be 3 ints\n"); - of_node_put(endpoint); - return -ENOENT; - } - of_node_put(endpoint); - ret = pl111_init_clock_divider(drm); if (ret) return ret;