Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp936454ybv; Thu, 13 Feb 2020 12:20:57 -0800 (PST) X-Google-Smtp-Source: APXvYqxAjqUTKRVpNzQfJJVLhIGs0nNGc4EOYMuxTe1TFmAF8ozRXG3RgvEem4SqIuVkJrUJ4kHH X-Received: by 2002:aca:e146:: with SMTP id y67mr4030591oig.93.1581625257634; Thu, 13 Feb 2020 12:20:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581625257; cv=none; d=google.com; s=arc-20160816; b=ligrrt8iHKdvkHqOv0TC4MrJAu+4x0iqT0qUumZpqqkCYqkgQ6pDFCIul3baBgIDjg l/FV4wtKLUAx7ltmA+AOL47zRXO3KKjco/RZ93eK315pJFaBocmQ/ZsDQfvX36xyKHmv TbUdfPBPnxjwT+RKzaoZkRJzQMpaJ2pxwGm8TSLljfsMS7TS3hjjC4FFWvtCL2oxgDp8 Bwt/hwbD0sYNdRQl1jnymu2BuwWjjW/rP1u6wrqy+75zGbBb0kX8fonaAiPhbKEH04ak 7muxCmKtaFr/Pz107i/6NDz4vorxIEq2FNpOoBAXwcH4h952mIQOmCuP3o+3wUlkhK9P B5tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=mW6PukSxckGSUCke6VTFTCVByD+nJPm6k8mdLJlJUQ8=; b=QS+9ZXoiM61qTRZtZxfo18BwzHSem2iiHYXP683QDGmPQGfajss9g3NA41Yk2xLTEM VsxrQjclTXAh1eHo6NmoqfSY490aRjvyMzmU3YXOKibAn99Y3aEd9kvfB22kHYDQKyAI oZdeEfd8LaGAtL31QRHkzxYTy/n20kd6JlZX6v8P2Jx09+eENAS7Z2syhynw7TrXLEPX he4k12szqSGoM5S2TjTC/e5Utuox/VjzcEYq0uBJZgB6Wnc3fvaVz1wFENhBtsIv1HbJ qsbYR3d8OyZlIlvS3PDfZpxYr3W3cHn1MhzHPJF2/N9cbxw+MdFyzcZIl1uGcLnt9jAm DBTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RC09I+Bv; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g22si1518501otp.55.2020.02.13.12.20.45; Thu, 13 Feb 2020 12:20:57 -0800 (PST) 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=pass header.i=@gmail.com header.s=20161025 header.b=RC09I+Bv; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728611AbgBMUUB (ORCPT + 99 others); Thu, 13 Feb 2020 15:20:01 -0500 Received: from mail-lj1-f180.google.com ([209.85.208.180]:39357 "EHLO mail-lj1-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728158AbgBMUUB (ORCPT ); Thu, 13 Feb 2020 15:20:01 -0500 Received: by mail-lj1-f180.google.com with SMTP id o15so8104359ljg.6 for ; Thu, 13 Feb 2020 12:20:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mW6PukSxckGSUCke6VTFTCVByD+nJPm6k8mdLJlJUQ8=; b=RC09I+Bvk9BEGM312oV5NW7pG1aKQPts5wE1yDyMZ5aunmfCjtpj/ZtkVQfg5cc4kX n4rUd7Uw8Ed/epLUm9Gj7Q9rrTgeNaB7fA6T6msnWDT9n49NXzqbTh4gbBQ3D4ylyM2m Db9pfSfadEt1TPmiY25g7eQP5kfvza19ucaRwOBa4LoatztuIsBGKZCRLtsT1qGzqb+x 3R1jApficdWMUC38I6zCdiYLKbYUeP7ewABAHw3uNkUlziHLUZmEa77C55CQ9fX5E8yR nhxT/uqgKTwmRXqalvyie7/fOEEnIe6JNxBaGyGoRwKVGvbXa2Gl0eaaV/pVBbzSbPgj WORA== 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=mW6PukSxckGSUCke6VTFTCVByD+nJPm6k8mdLJlJUQ8=; b=YIpBo3LTPF5v8jbRhELzzSg08DcLIEt5V8QxYIMJoLY+TCYsT+NB6Iwx/ZYWhcno4y lJqelOIY7MHEByULj1PWAhTCKPV9Ce1AHKKT78aeyY61Au27vt4yzphOpYJZiCXXETFA W/TDUGdy6dHhPIG6ZXFQteuV2D1ptk84x+6m7C+Xo8JVZLpOhadsSBH5+quLdYvzHNuZ Mc+wXgdyBsG6NXLp4rmG8ddnZ8Lxp9JbNXJFh+UP56DEV4Kw0x3uJWrOFOfAREb6QPsp mRcvz0SHx2tHhcAxJjXza7UlizrPIhqIq8x/3ibKkDCrBNasfjxq4vvfWa/KaP3b0wG3 dzIA== X-Gm-Message-State: APjAAAUFQrkYx4VOae++LyRb4rkSTRa3RXiWHKJ9TMwh5GRoYMzbXfeD dfqtjMVy46RLbLLJlUSXKG4= X-Received: by 2002:a2e:9e19:: with SMTP id e25mr12844931ljk.179.1581625199519; Thu, 13 Feb 2020 12:19:59 -0800 (PST) Received: from localhost.localdomain ([5.20.204.163]) by smtp.gmail.com with ESMTPSA id s22sm2209470ljm.41.2020.02.13.12.19.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Feb 2020 12:19:59 -0800 (PST) From: Andrey Lebedev To: mripard@kernel.org, wens@csie.org, airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: linux-sunxi@googlegroups.com, Andrey Lebedev Subject: [PATCH v3 3/3] ARM: dts: sun7i: Add LVDS panel support on A20 Date: Thu, 13 Feb 2020 22:18:57 +0200 Message-Id: <20200213201854.810-3-andrey.lebedev@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200210195633.GA21832@kedthinkpad> References: <20200210195633.GA21832@kedthinkpad> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andrey Lebedev Define pins for LVDS channels 0 and 1, configure reset line for tcon0 and provide sample LVDS panel, connected to tcon0. Signed-off-by: Andrey Lebedev --- arch/arm/boot/dts/sun7i-a20.dtsi | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi index 92b5be97085d..3b3c366a2bee 100644 --- a/arch/arm/boot/dts/sun7i-a20.dtsi +++ b/arch/arm/boot/dts/sun7i-a20.dtsi @@ -47,6 +47,7 @@ #include #include #include +#include / { interrupt-parent = <&gic>; @@ -407,8 +408,8 @@ compatible = "allwinner,sun7i-a20-tcon"; reg = <0x01c0c000 0x1000>; interrupts = ; - resets = <&ccu RST_TCON0>; - reset-names = "lcd"; + resets = <&ccu RST_TCON0>, <&ccu RST_LVDS>; + reset-names = "lcd", "lvds"; clocks = <&ccu CLK_AHB_LCD0>, <&ccu CLK_TCON0_CH0>, <&ccu CLK_TCON0_CH1>; @@ -444,6 +445,11 @@ #size-cells = <0>; reg = <1>; + tcon0_out_lvds: endpoint@0 { + reg = <0>; + allwinner,tcon-channel = <0>; + }; + tcon0_out_hdmi: endpoint@1 { reg = <1>; remote-endpoint = <&hdmi_in_tcon0>; @@ -1162,6 +1168,24 @@ pins = "PI20", "PI21"; function = "uart7"; }; + + /omit-if-no-ref/ + lcd_lvds0_pins: lcd-lvds0-pins { + pins = + "PD0", "PD1", "PD2", "PD3", "PD4", + "PD5", "PD6", "PD7", "PD8", "PD9"; + function = "lvds0"; + allwinner,drive = ; + }; + + /omit-if-no-ref/ + lcd_lvds1_pins: lcd-lvds1-pins { + pins = + "PD10", "PD11", "PD12", "PD13", "PD14", + "PD15", "PD16", "PD17", "PD18", "PD19"; + function = "lvds1"; + allwinner,drive = ; + }; }; timer@1c20c00 { -- 2.20.1