From patchwork Mon Oct 3 15:45:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 77220 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp1739876qgf; Mon, 3 Oct 2016 08:45:46 -0700 (PDT) X-Received: by 10.98.197.1 with SMTP id j1mr39711939pfg.77.1475509546327; Mon, 03 Oct 2016 08:45:46 -0700 (PDT) Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id p11si37341853par.193.2016.10.03.08.45.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Oct 2016 08:45:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 021816E566; Mon, 3 Oct 2016 15:45:43 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x230.google.com (mail-wm0-x230.google.com [IPv6:2a00:1450:400c:c09::230]) by gabe.freedesktop.org (Postfix) with ESMTPS id 528796E0A8 for ; Mon, 3 Oct 2016 15:45:41 +0000 (UTC) Received: by mail-wm0-x230.google.com with SMTP id f193so114926861wmg.0 for ; Mon, 03 Oct 2016 08:45:41 -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=FH5LjcGbn6jjTKX1OMqGGWLlbXjygJi/l1oo9T8Dmxs=; b=GeBpzysmRjF182hsItPxdf8m/4NctZqAGyUtvOUBgQzCKDp3w88WL8h9JJJ+PTkb/J bRLw+e1XQ+DibyP3J5/xkG1PY65t8YugnG/8Vp1UwhpXlbD8ze0BEpuOO/Du90lnFHt4 cJbxwokXcizfTbOnF6FZ0PuMtdiYc0EB1IMJPgSxY7r0+0wcDt570JN8Q7QzBYaJf0XA SWUqfKf6mFkKSXMRbl+o+j20Hnstgt/OmeCsfu9Kt7KATJaTClpX92oqd1Cv6elt1S+E 9OeVeGowQZuejKPnM73s+7ufz4zp3VRCeVi1/mV5THs0mlABaicmVe5W8X60euGZGakI oc6A== 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=FH5LjcGbn6jjTKX1OMqGGWLlbXjygJi/l1oo9T8Dmxs=; b=GP2znzMdPOPqZ7VelNFpfqtdhmyy9BQOTa5szhBGTKvvGykr5ZFqGW6j1vJxK6sRey fD4z7iURZla68YW10Cxbha6N5Uw9CaWzsAy+yOym+2LkLdFELkKcdSeJdLMK6cnZgfiP zRwzYXa1nzCBGg+IkkoM+pyLP0MCufuZGDUuQDERakM/7g4OvIWBGf/j0Qx4PAiW6fwL L5p5MMymT98UYOhvkpx98yGXKvXOnZ0gTHSzXIDVuD23aSciSRwkFdArxRbMR+CMWaOk X9o3TJDb4hjrtZwzAczlJR343o9gOSl8LvgIX0O+qvO/KpZMVlxXM0dp9CVPsYQEPSVC eCOQ== X-Gm-Message-State: AA6/9RlAoaGVzix9LuO7w1dNvjlaacce5RrxEFnpWDE0Bk5c1dSX3ws8TASm7ZA5efmk04nx X-Received: by 10.28.206.75 with SMTP id e72mr11099687wmg.65.1475509539907; Mon, 03 Oct 2016 08:45:39 -0700 (PDT) Received: from bgdev-debian.lan (jua06-1-82-242-157-225.fbx.proxad.net. [82.242.157.225]) by smtp.gmail.com with ESMTPSA id l6sm19545946wmg.11.2016.10.03.08.45.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Oct 2016 08:45:39 -0700 (PDT) From: Bartosz Golaszewski To: Jyri Sarha , Tomi Valkeinen , David Airlie , Kevin Hilman , Michael Turquette , Sekhar Nori , Rob Herring , Frank Rowand , Mark Rutland Subject: [PATCH v3] drm: tilcdc: add a da850-specific compatible string Date: Mon, 3 Oct 2016 17:45:19 +0200 Message-Id: <1475509519-29516-1-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 Cc: linux-devicetree , linux-drm , LKML , arm-soc , Bartosz Golaszewski 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" 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 Acked-by: Rob Herring --- v1 -> v2: - added the new compatible to the bindings documentation v2 -> v3: - made the documentation more detailed Documentation/devicetree/bindings/display/tilcdc/tilcdc.txt | 6 ++++-- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/display/tilcdc/tilcdc.txt b/Documentation/devicetree/bindings/display/tilcdc/tilcdc.txt index a83abd7..6fddb4f 100644 --- a/Documentation/devicetree/bindings/display/tilcdc/tilcdc.txt +++ b/Documentation/devicetree/bindings/display/tilcdc/tilcdc.txt @@ -1,7 +1,9 @@ Device-Tree bindings for tilcdc DRM driver Required properties: - - compatible: value should be "ti,am33xx-tilcdc". + - compatible: value should be one of the following: + - "ti,am33xx-tilcdc" for AM335x based boards + - "ti,da850-tilcdc" for DA850/AM18x/OMAP-L138 based boards - interrupts: the interrupt number - reg: base address and size of the LCDC device @@ -51,7 +53,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);