Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1543901yba; Sun, 14 Apr 2019 13:10:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqzgR/ykjYNqqpXCbZWBk+jacyRqU74mkdm79gwM8YBnAAi2gS5OZ4RuMDMsE8IKY2yEbD3f X-Received: by 2002:a17:902:8b8c:: with SMTP id ay12mr22062421plb.192.1555272627960; Sun, 14 Apr 2019 13:10:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555272627; cv=none; d=google.com; s=arc-20160816; b=uZrsEliWCF+foVSp4n9yEyyv0rn5BWuPOz09bG/4TixQUB5WE8F04PgnceIso8RPEq ad87EqvTG/HkSzi+8vCwHdpcF8STswecCwusRRX6zFeEokwJTCIrfeI2bUl85ScWQcz/ OaYeeQz+tcPt+19B5dEQO+mAH26TPoghWsMgDqC4VTq/cZ4iK0zYsHMc6x0WB2hl4hrM d88tH6PxVV+77mWe3UnYtBPuvTQeKsXYpXW3JqP9tmkyfL5+Gc0x+LHl0ZYwoXQVHMWB zdcKTQv0ypfPaUp5MUPDGIijtv+e1SMfqGG6XI6wNgPc/wF4aUg+qxm0U6EIRtZsWPy8 a34Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=lLW8/OLEHvWSCDNtDKW8ODkzAI+4uhciGZEy33h1JNo=; b=FlWVuqh9DKwmvs0zfnKHpv15HZUbyKuBF29ApNTLZnO/8mzOnHBT/F3Oh2+qkoCybe IYpDxh2QBBiwAB3Kgy7gqDDlkVI3lNFQLaztQrwCFqDnMFvSgD4RTJtQea906FAsdIFW jcdpK/y7tAVuh7nNNosv8CBbzq7AT/n8bhFRGvmsEHdyWvguXLtXP4cxND3ERnirOGO5 zQDQOCnWChHwmDdz+cg5J4h7QKw2TQs4kfDV9EwVMawnZ4mjb8eCWH1YIMyfH8DxCC+e cH0A5jfuFhYu5kf9z/F22IyvcBggdIgK9twDQexhl4wfc9RbglYtiaZxTOe17ott8c3A +pQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=M3DdPF8t; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y66si38396832pgy.186.2019.04.14.13.10.12; Sun, 14 Apr 2019 13:10:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=M3DdPF8t; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727344AbfDNUIe (ORCPT + 99 others); Sun, 14 Apr 2019 16:08:34 -0400 Received: from outils.crapouillou.net ([89.234.176.41]:35650 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726159AbfDNUIe (ORCPT ); Sun, 14 Apr 2019 16:08:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1555272510; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=lLW8/OLEHvWSCDNtDKW8ODkzAI+4uhciGZEy33h1JNo=; b=M3DdPF8tqhTOsiaRw/mCzNcL7KEDmLBGw4X4qnIeU5WmLEULXCBoy4FxDpRWOxJGB24sqD lHazFs9Hpg6FIBXWOMFbJhToq04Xofgh0ayuPCA9RYdXxptJ+1Gs+Nv1zz7drH2u1u2esS rZS1NX3Yj4kwXq/XQPHWCrlGUr2lyxo= From: Paul Cercueil To: David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , Maarten Lankhorst , Maxime Ripard , Sean Paul Cc: od@zcrc.me, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Cercueil Subject: [PATCH v3 1/3] dt-bindings: Add doc for the ingenic-drm driver Date: Sun, 14 Apr 2019 22:08:22 +0200 Message-Id: <20190414200824.28348-1-paul@crapouillou.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add documentation for the devicetree bindings of the DRM driver for the JZ47xx family of SoCs from Ingenic. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- Notes: v2: Remove ingenic,panel property. v3: - Rename compatible strings from ingenic,jz47XX-drm to ingenic,jz47XX-lcd - The ingenic,lcd-mode property is now read from the panel node instead of from the driver node .../devicetree/bindings/display/ingenic,drm.txt | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/ingenic,drm.txt diff --git a/Documentation/devicetree/bindings/display/ingenic,drm.txt b/Documentation/devicetree/bindings/display/ingenic,drm.txt new file mode 100644 index 000000000000..9de47db8a515 --- /dev/null +++ b/Documentation/devicetree/bindings/display/ingenic,drm.txt @@ -0,0 +1,53 @@ +Ingenic JZ47xx DRM driver + +Required properties: +- compatible: one of: + * ingenic,jz4740-lcd + * ingenic,jz4725b-lcd +- reg: LCD registers location and length +- clocks: LCD pixclock and device clock specifiers. + The device clock is only required on the JZ4740. +- clock-names: "lcd_pclk" and "lcd" +- interrupts: Specifies the interrupt line the LCD controller is connected to. + +Optional properties in the panel mode: +- ingenic,lcd-mode: LCD mode to use with the display panel. + See for all the + possible values. + +Example: + +#include + +panel { + compatible = "sharp,ls020b1dd01d", "simple-panel"; + + backlight = <&backlight>; + power-supply = <&vcc>; + + ingenic,lcd-mode = ; + + port { + panel_input: endpoint { + remote-endpoint = <&panel_output>; + }; + }; +}; + + +lcd: lcd-controller@13050000 { + compatible = "ingenic,jz4725b-lcd"; + reg = <0x13050000 0x1000>; + + interrupt-parent = <&intc>; + interrupts = <31>; + + clocks = <&cgu JZ4725B_CLK_LCD>; + clock-names = "lcd"; + + port { + panel_output: endpoint { + remote-endpoint = <&panel_input>; + }; + }; +}; -- 2.11.0