From patchwork Fri Sep 30 13:52:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 9358305 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 D24E3600C8 for ; Fri, 30 Sep 2016 13:52:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C33C82A03F for ; Fri, 30 Sep 2016 13:52:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B69902A041; Fri, 30 Sep 2016 13:52:53 +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.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID 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 44EBC2A03F for ; Fri, 30 Sep 2016 13:52:52 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D4E996EA1A; Fri, 30 Sep 2016 13:52:50 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x22e.google.com (mail-wm0-x22e.google.com [IPv6:2a00:1450:400c:c09::22e]) by gabe.freedesktop.org (Postfix) with ESMTPS id 560396E239 for ; Fri, 30 Sep 2016 13:52:49 +0000 (UTC) Received: by mail-wm0-x22e.google.com with SMTP id b80so45092002wme.0 for ; Fri, 30 Sep 2016 06:52:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=TFXO1vN8n+1ARqumb0wOaagI28aHDoa14HvvhzNuT3s=; b=e3es3paH2f1aWPbW7Sgk2/g2QvEu+WXIQcTKJ8GKGlr23nyBkA/u7RnJ4GdxdU3Adt pLCHXCQzN1p/zzUH+i8UPA/rElb7PzIcKFHsIwSWIpTz0x1s0qlEzI7XclGZJQWKY4Wr /imKy1UtWOHwyf1JERE8GBY9vNATWdQUw/1qtqdQMtNUSGKAhtNg9BL/JKjsc0ct+9Ky ehBR8ZJ9Dz+eWwtDPvcFzinuFW+wYy2kw2jJT6nPX5UXqnQ8b7nSzNegWCS+7R5ZEfuH yKqtQ6HqobbPtNFojKGeWd6tEJPi3dcPXh+Mn3uc7SpLVHvqIN+cU6h4XswcnG4LOT1y oGcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=TFXO1vN8n+1ARqumb0wOaagI28aHDoa14HvvhzNuT3s=; b=hbFbfN1bcyIykCMtwT7aOFdNVLc4+2z6qwe3EevJXbBTgGfLUL/NLdDW6NEuSyCoBE vL4Yw03T2NgD/8NOFeKoMb9A9soZt3YKpk4WfY8vwpGuzUgxefIrNE081wQ9Z3Ffj3rr DgjU/TYorptFxA5g45s7lGHOkYISSWU7MisPAkulRlKWCt/MCwtTqJlod4CbvkrJ6hPd u03Tv/3UafL4MeR7OYIQ7mdbD88Pu/DP5RpvFO8WpBpYF6GV+Q11iULZxa9pWYM6vYAn Wj0XLGh7wrgyw3ZPzZLarf0TVonJRStG6ITDt6LFW3jQm9btWZT1ZXzqRuNy3JkMR/xJ Kbkg== X-Gm-Message-State: AA6/9Rmh6X6T4M4tEqQPllZoLWBcQhbI767Y95eWFcFBwmuGolTO6FVNpnLgyam5aMQ6eg4v X-Received: by 10.28.1.85 with SMTP id 82mr4407971wmb.11.1475243567946; Fri, 30 Sep 2016 06:52:47 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id f69sm4266593wmg.19.2016.09.30.06.52.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Sep 2016 06:52:47 -0700 (PDT) From: Bartosz Golaszewski To: Jyri Sarha , Tomi Valkeinen , David Airlie , Kevin Hilman , Michael Turquette , Sekhar Nori Subject: [PATCH v2] drm: tilcdc: add a da850-specific compatible string Date: Fri, 30 Sep 2016 15:52:44 +0200 Message-Id: <1475243564-15765-1-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 Cc: Bartosz Golaszewski , linux-drm , LKML , arm-soc X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Due to some potential tweaks for the da850 LCDC (for example: the required memory bandwith settings) we need a separate compatible for the IP present on the da850 boards. Suggested-by: Sekhar Nori Signed-off-by: Bartosz Golaszewski --- v1 -> v2: - added the new compatible to the bindings documentation Documentation/devicetree/bindings/display/tilcdc/tilcdc.txt | 4 ++-- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/display/tilcdc/tilcdc.txt b/Documentation/devicetree/bindings/display/tilcdc/tilcdc.txt index a83abd7..33b6e8a 100644 --- a/Documentation/devicetree/bindings/display/tilcdc/tilcdc.txt +++ b/Documentation/devicetree/bindings/display/tilcdc/tilcdc.txt @@ -1,7 +1,7 @@ Device-Tree bindings for tilcdc DRM driver Required properties: - - compatible: value should be "ti,am33xx-tilcdc". + - compatible: value should be "ti,am33xx-tilcdc" or "ti,da850-tilcdc". - interrupts: the interrupt number - reg: base address and size of the LCDC device @@ -51,7 +51,7 @@ Optional nodes: Example: fb: fb@4830e000 { - compatible = "ti,am33xx-tilcdc"; + compatible = "ti,am33xx-tilcdc", "ti,da850-tilcdc"; reg = <0x4830e000 0x1000>; interrupt-parent = <&intc>; interrupts = <36>; diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c index a694977..231f2c7 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.c @@ -723,6 +723,7 @@ static int tilcdc_pdev_remove(struct platform_device *pdev) static struct of_device_id tilcdc_of_match[] = { { .compatible = "ti,am33xx-tilcdc", }, + { .compatible = "ti,da850-tilcdc", }, { }, }; MODULE_DEVICE_TABLE(of, tilcdc_of_match);