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: 9358309 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 282A3600C8 for ; Fri, 30 Sep 2016 13:55:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1947A2A03F for ; Fri, 30 Sep 2016 13:55:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0D7E62A041; Fri, 30 Sep 2016 13:55:06 +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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 23E942A03F for ; Fri, 30 Sep 2016 13:55:04 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bpyFZ-0005vI-Ua; Fri, 30 Sep 2016 13:53:17 +0000 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bpyFR-0005nX-NZ for linux-arm-kernel@lists.infradead.org; Fri, 30 Sep 2016 13:53:10 +0000 Received: by mail-wm0-x232.google.com with SMTP id b4so48814327wmb.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=EMqFMUqUNLI60Itn0uLP4ypmGAJs/Iv4GmJOW2Yj/q2ErGHOJH6qkvDxp2nxCltcmN iJMcwbdpgpct7miaOvXPsjR0okI4jypbq/GQBRROKCPsDutQBOn7Kp0JzmmJQP8VtFCj DroD+QVqjA7dNYsC+0rQzqmZi6coa5LVxnE9LbgJIDOq0wuKRzvLYsdUVf+bm++pXkGg O2y7xO6rz8FkHC9ARRtmQyXgdBXof+tYiJJAB3fOpWbNG1pvhKBfKldsgzwCfmm4k7DZ tYTKpcq6gLAqjtcMb0hMHFcrMQG/QYdcAkQr29wNhUwWPBYtLPNvwqEZMnui8sC0ikzs cdCQ== X-Gm-Message-State: AA6/9Rle5dNKfQocnObdlMwjy8++QvdMbyUeooT/6mSES0NT02BG74L8Z+HyIwt7s9Qz+wgR 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160930_065309_947403_C7EBC774 X-CRM114-Status: GOOD ( 12.75 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bartosz Golaszewski , linux-drm , LKML , arm-soc MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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);