From patchwork Fri Dec 10 11:17:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 12695590 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2513EC433EF for ; Fri, 10 Dec 2021 11:20:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=K/emg0J4kfI5hvEbYv0C0hRMjIuWT0QjySadIg5Z7oY=; b=eRpiD4udro9XS5 lnVdG38V/4WyNyivvvi65bFuusGtyH+Y9z09qY6FMFL8LrAUzfUlCp51aKuL8yg46SLvuzIQHx0Ka 4uXiEo+VCeLi+nWCLJug5feSlEBVUTkmXDAh0uf35C8O1iuzyaZ6FHHpyP7WU+xX6YDlVfL1nh/XV NqPIfjCSFAGtWoM3rdny+PfQQ1rx0fLU0JPJaSFyewutzZC8rzXlLcWteNLMwg/yTUO4alp6VHyc/ kRu8Vyt+WjX31sOV75OSm8pTclBnyFvedW5EMGztkealg3AujvPfwOLUvOUx/Yfe7m+qgjvOePNqp wuwD6CnDqYPndpcBwBxQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvduv-001cI5-9D; Fri, 10 Dec 2021 11:18:21 +0000 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvduL-001c8b-Jn for linux-arm-kernel@lists.infradead.org; Fri, 10 Dec 2021 11:17:47 +0000 Received: by mail-pl1-x634.google.com with SMTP id b11so6045790pld.12 for ; Fri, 10 Dec 2021 03:17:44 -0800 (PST) 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:content-transfer-encoding; bh=0NNSlBkMytmlUqdX2xwQU1vlLDJZ1w1h/BzLFbdr4yY=; b=RqnPQEYavJNPeWxOrBLnyw0D3NtNdnT0SH5VJa58LzdHAfh0382UeHnRRq/6cFZ4NO u7dN1MLadLcWpg8UUFfF6NZXi9w8gJoALaumO/1tJjOIAw655giypkgddgi4vMbHwBqp wMqfRhjFxlJgndUhPKZ9LpYFUx8jcIvjIH7yw= 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:content-transfer-encoding; bh=0NNSlBkMytmlUqdX2xwQU1vlLDJZ1w1h/BzLFbdr4yY=; b=giGEUTE/GfabGrhe6xVHFj4y9Q3kC9cKxeoLxGbqKtAA2MHBLxevPYyCBVhOKE/Ed/ Y/N7Hi6mc0yCQPsP6jhxbOCzKYtZ65o+0Y1QEX7/mFlEKzkSBfQdjuX/G9L2oLlDWroq yHlw0pq5M3JAkCd1aVbzYufcxeOOKOF/U9cFTuQlx4Na8b49wmXKaOERcArs+/Y5tzfA G0Jzx+6BFo3Y2A2Oob1T6OygiNvEzXeQrmXFeWDPu5ja6qsiarlF9ayHmYYKDYQOM4iQ bULhttBi8vUFS477ovx4OEIa5stJBtj+78szvzXeH5TOAN0N+ehX3XmA65QnHNaCOkJL /9/Q== X-Gm-Message-State: AOAM533CHjMVd2aodMPXsJmsJrQAdbq/WxistnPsO6PDlQO7a7bTJsHs OtRYC1lQqXdB7jx27HmZDi1vrA== X-Google-Smtp-Source: ABdhPJy/bmsOZ/tu5QGGP0pWpCMvmCixy399EDtTxuOo97cSowv1bB9e6RCMQlDQr9ybsnIaZ8geQw== X-Received: by 2002:a17:902:f092:b0:141:ccb6:897 with SMTP id p18-20020a170902f09200b00141ccb60897mr75163980pla.89.1639135064477; Fri, 10 Dec 2021 03:17:44 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a0a9:c40f:36d4:b45d:731]) by smtp.gmail.com with ESMTPSA id qe12sm13125607pjb.29.2021.12.10.03.17.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Dec 2021 03:17:44 -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 v6 4/6] ARM: dts: sun8i: bananapi-m2m: Enable iS070WV20-CT16 DSI Panel Date: Fri, 10 Dec 2021 16:47:09 +0530 Message-Id: <20211210111711.2072660-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211210111711.2072660-1-jagan@amarulasolutions.com> References: <20211210111711.2072660-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211210_031745_717141_0889EBB3 X-CRM114-Status: GOOD ( 12.72 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Bananapi S070WV20-CT16 is a pure RGB output panel with ICN6211 DSI/RGB convertor bridge. Enable support for it. Signed-off-by: Jagan Teki --- .../boot/dts/sun8i-r16-bananapi-m2m-panel.dts | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-r16-bananapi-m2m-panel.dts b/arch/arm/boot/dts/sun8i-r16-bananapi-m2m-panel.dts index bf5b5e2f6168..04392358b492 100644 --- a/arch/arm/boot/dts/sun8i-r16-bananapi-m2m-panel.dts +++ b/arch/arm/boot/dts/sun8i-r16-bananapi-m2m-panel.dts @@ -44,6 +44,7 @@ #include "sun8i-a33.dtsi" #include +#include / { model = "BananaPi M2 Magic"; @@ -55,12 +56,21 @@ aliases { i2c2 = &i2c2; serial0 = &uart0; serial1 = &uart1; + mmc0 = &mmc0; }; 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 +132,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 +188,12 @@ &ohci0 { status = "okay"; }; +&pwm { + pinctrl-names = "default"; + pinctrl-0 = <&pwm0_pin>; + status = "okay"; +}; + &r_rsb { status = "okay"; @@ -269,6 +306,10 @@ &sound { status = "okay"; }; +&tcon0 { + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pb_pins>;