From patchwork Mon Nov 22 06:52:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1785 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 69AB93F15A for ; Mon, 22 Nov 2021 07:53:44 +0100 (CET) Received: by mail-pl1-f197.google.com with SMTP id l14-20020a170903120e00b00143cc292bc3sf6976788plh.1 for ; Sun, 21 Nov 2021 22:53:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1637564023; cv=pass; d=google.com; s=arc-20160816; b=x5atB298co0fTCDOrz6iyZzGHcsaj8Ch895vkefI/3iLLavgvvbqVLD7JKfKLeU6j8 OWIm6czWq0TouJyVl2GGlwMPTsbbkUfJpmvEBPR0SPbeDD8QdjvHv2lot2w01F1vs8+P JKplX/LsejTLUBUxJsvyG/bxm5f4CCnvCzVYAKxMYcnVDqKfx/W7fYs0ag4fm8qXtKUc oQdsCH+MTS8kff+FNytyCc9xnDftzll1MOjTzv1WIbADzjIYBWYzga8Vtq5P4xdJPoPz Hz2QojsRjvltVSxyFkv2lDEFKvtuXVjO5Rf0ybDf9OZaPiqYv1M8mi94k/qOuq3kHmKn /0yA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=9Vk3FeR71ZwXXJktCy6sDGvTakjVVOOa5RHqAc/Rk0c=; b=E9MrvlU4+6pYdkFOcK21Wrjk/yLo6aO0kM6xR0OODyaBkP++2Gy2Ymv4rAVAAoRBxY doxMmmsYbX6xj539DJrUgo0xHkUO8d2Qi34diTFfF8avwt06wEl5yEXRujFkLUnLcCwh AAgPWMwAzl81LTjX2xXx8yaeJfZer8wDPzsB2BJd6Z33HJGYa1+4o7g7EAq/raNer82j LqIz5bHN2EJd7Rd0T/w6H2H3+LIyC7EmLmAjzCDJYiLQ+oTDpW0ErDQFew+PTlO81EEH ITRDb0vJzS7T6pNyZ4oCTYFctNW6SwAjlQRhfq2vsTcDh3hsFXCWIQmKbCc+IZGo8idK Akxg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PaV53uN3; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=9Vk3FeR71ZwXXJktCy6sDGvTakjVVOOa5RHqAc/Rk0c=; b=APiiFQNp3uSa8iQaM8VA7Sq6QH9YloEPuTBaL9pe+Dq8N4bWxNe7WQIjfXl0V6nQ+f 5LrzngRmdTSKVf+YTbRANIg84LjBrB9E15gV/TD6PKRqdivk3i6be4IjNmjr90TwplF8 ZBm20xvjSFPw9b/9f1TNEqrbhGc+KjOc4f30I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=9Vk3FeR71ZwXXJktCy6sDGvTakjVVOOa5RHqAc/Rk0c=; b=jQAjoRO6eGhjjNdh/Bi07AFC+B6mxEzRPLut9bFxC6F+4FOWtbJPCbSFik6/wSmKKe e/DRYXmAvQIQNDYIqnIWi92cbBdBoSFbtYuAWYffm/067zzSJKncTJb+/1dfSCZeiWE4 prFJcyDJfyNnzH17rsheUBTxK0lfy4FoilG4kRnZFlqp9iYxlQBkVRJz5Ed71X9VBhP+ 513MAen9YzN5YWX6txUV//skT+wk35SF1D1IGfKnQqMDBFyerFj7zsLYCDAJlmHSBIl5 RWLSCLW2FEtVPoYtaUWc/DzEpV7O/Q0knxUu82pER/9L9jzMQRRl3Lj7fnwAr5OVc8K7 Ok9A== X-Gm-Message-State: AOAM531Yp53IhhG4qT2bBek/0QUmfmYpuRSNkH2iiskEGMKtmYvTJZU7 ZLDiNkJVZ1pmusUV/a6J+Cr/DSqU X-Google-Smtp-Source: ABdhPJxC81lGAMFII6vpwd7LshcUZf49qqXmXU7YAEBMgP+s8VNssh8yObjZtFItIlxG9lrfWc8TwA== X-Received: by 2002:a17:902:ec90:b0:142:269:4691 with SMTP id x16-20020a170902ec9000b0014202694691mr106407216plg.48.1637564023212; Sun, 21 Nov 2021 22:53:43 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:ed0c:: with SMTP id d12ls880683pgi.7.gmail; Sun, 21 Nov 2021 22:53:42 -0800 (PST) X-Received: by 2002:a63:f605:: with SMTP id m5mr5925436pgh.245.1637564022388; Sun, 21 Nov 2021 22:53:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1637564022; cv=none; d=google.com; s=arc-20160816; b=jNCEFXi0pYe/40V4DQaHVw81FZYoDJxtekLBZ4kfSXdakD82GCflPC33qoUegY6i0s IcglzL3bXrmQgOhdMDnkl6licTWqGpbOtgmA6RyP0R3PQkV/JvjSPBDBX/ecQhvaCneJ TaPi8ns2dad+cZVWbK0KciqKlApsjIHpgvlMJTjP2KtxkDroJ7mx3TH4Ftx6H6q0ZEjy LkR/M1S90D/z1VuxnalTHuDAb36wIvPFm+TrQGxF3yfag0vOgvJIg8F/3IBWP8FH3YxM 6DBTOHotmJbzWImx7cbfNzVrWw5gHh2gmWzrvKYY2aMLPyJt7+D9W4vWsaxV0n5ytV7J VtUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=6ZYBayqIBeNPyf7qiUQrCfEnJGA1MHxlxCodqslkh4s=; b=Q/QrDJrDJTgBmKs8EkhSGG7+flruPQLbv0hrvrs3pGyCSxKt4POlQMi6qw/j8Ws1bc mqKRy9Y1LuOguP4k13FaIPledVkX+n1s7tWyCSjH3etV14TesOxDWkHNIO3AnXStJ056 GB8OiUQM2B8qwz7sWhUGPmONAWS3hNrFcAuLVIqIx2UUGPS1J9pnr1yWcnuSj3gg8dnV /KQ3oIMCzzeK9QLIOFFE0Ch8J7wGTNkeJw53TIOlQZqdD70AypzGhZ/mnPMLrvAwl/86 aZWBeiv+pAMNQXJjB8do4piYUIFGbP7Rl2NruewUOzISwYh5XpEZNzuQ8m1UAGNS8HnN Y/5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PaV53uN3; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id q206sor1719035pgq.11.2021.11.21.22.53.42 for (Google Transport Security); Sun, 21 Nov 2021 22:53:42 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a63:8a41:: with SMTP id y62mr31942595pgd.48.1637564022162; Sun, 21 Nov 2021 22:53:42 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a0a9:eed6:c913:819a:3850]) by smtp.gmail.com with ESMTPSA id a8sm7935904pfv.176.2021.11.21.22.53.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Nov 2021 22:53:41 -0800 (PST) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Laurent Pinchart , Neil Armstrong , Robert Foss , Sam Ravnborg Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@googlegroups.com, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [DO NOT MERGE] [PATCH v5 5/7] ARM: dts: sun8i: bananapi-m2m: Enable S070WV20-CT16 Panel Date: Mon, 22 Nov 2021 12:22:21 +0530 Message-Id: <20211122065223.88059-6-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211122065223.88059-1-jagan@amarulasolutions.com> References: <20211122065223.88059-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PaV53uN3; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This patch add support for Bananapi S070WV20-CT16 panel to BPI-M2M board. This specific DSI Bananapi S070WV20-CT16 panel driver is not available in upstream, added for testing purpose. Signed-off-by: Jagan Teki --- arch/arm/boot/dts/sun8i-r16-bananapi-m2m.dts | 40 ++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-r16-bananapi-m2m.dts b/arch/arm/boot/dts/sun8i-r16-bananapi-m2m.dts index bf5b5e2f6168..b215c32996a3 100644 --- a/arch/arm/boot/dts/sun8i-r16-bananapi-m2m.dts +++ b/arch/arm/boot/dts/sun8i-r16-bananapi-m2m.dts @@ -44,6 +44,7 @@ #include "sun8i-a33.dtsi" #include +#include / { model = "BananaPi M2 Magic"; @@ -61,6 +62,14 @@ chosen { stdout-path = "serial0:115200n8"; }; + backlight: backlight { + compatible = "pwm-backlight"; + pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>; + brightness-levels = <1 2 4 8 16 32 64 128 255>; + default-brightness-level = <8>; + enable-gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* LCD-BL-EN: PL4 */ + }; + leds { compatible = "gpio-leds"; @@ -122,6 +131,27 @@ &dai { status = "okay"; }; +&de { + status = "okay"; +}; + +&dphy { + status = "okay"; +}; + +&dsi { + vcc-dsi-supply = <®_dcdc1>; /* VCC-DSI */ + status = "okay"; + + panel@0 { + compatible = "bananapi,s070wv20-ct16-icn6211"; + reg = <0>; + reset-gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* LCD-RST: PL5 */ + enable-gpios = <&pio 1 7 GPIO_ACTIVE_HIGH>; /* LCD-PWR-EN: PB7 */ + backlight = <&backlight>; + }; +}; + &ehci0 { status = "okay"; }; @@ -157,6 +187,12 @@ &ohci0 { status = "okay"; }; +&pwm { + pinctrl-names = "default"; + pinctrl-0 = <&pwm0_pin>; + status = "okay"; +}; + &r_rsb { status = "okay"; @@ -269,6 +305,10 @@ &sound { status = "okay"; }; +&tcon0 { + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pb_pins>;