From patchwork Mon Nov 22 06:52:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 12693270 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 69DF6C433F5 for ; Mon, 22 Nov 2021 06:56:25 +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=AdpnbHbcRV0OD7N2PbpYietMEWR2+krdBmAGd/CBVms=; b=IMZfnazjGFFWbc 1NcgQv+gYwqwfI7P3MuPWUabfxq1DZkk8DT6vLXRGcfAYK3HFo4V8UoTfTh0oJxFzynBfzFU9OtNy 9+VtxUky2FR9s5yD1227eGUTKwagW/RjhVaOjbtUF+HpmAGdBK9tY5HQ/feGe5o4BmJ2pkt4LZidw 5yJlJcFI2ULP6USCcLrQJ86rO3Co+ua7BLb4HwQS0V2Oao+el3sJptyequAbl3LjF4No63DnKmT6z t1GeSNVH90mKsB77+s6wPrkCDtiYw/Dqtbvg6jcCjBtzQPsHeQJCoLFvFbD0a1rawUlnYQ0F8LUAW c1QCsNyyxbgfLqBfCX9w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mp3EA-00EzrF-SS; Mon, 22 Nov 2021 06:54:59 +0000 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mp3D1-00EzNq-Mp for linux-arm-kernel@lists.infradead.org; Mon, 22 Nov 2021 06:53:49 +0000 Received: by mail-pg1-x530.google.com with SMTP id r138so4918782pgr.13 for ; Sun, 21 Nov 2021 22:53:46 -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=xqP160R8LU5V3gmz2VYiGFoGsrEbiwdGt3q8Nn130K4=; b=R2lQlxavAQmQqeCHV4PJL0hX4asVWGfxWjZnq2AupshABRsm4dvRmevUkxIp+XZL5i imdW5UnoqL/tOuhvn34LH2ud24HWcdODoyeU71Ry9XzZ/EyMwgDt8Np2/n4yWLle53rh Zgmb7VqwH9mDQ+Chfgt8RRMGJQE2zWKbaaGo8= 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=xqP160R8LU5V3gmz2VYiGFoGsrEbiwdGt3q8Nn130K4=; b=Gl2EdBTL12PUfgL02SeFvMNyGjUZXbk24ci3mwaudRhsXFFJIsX0hJ+jCf0BpVdeR+ cBMD+AcDisI26HM6r3aDwREIvwCebf7lDsB5MQjxbF40AyLxjGtHhszB6AcPvYzgAThi po4/4uBNqMECEavKYm4R2BfXE3quAbYcxN/T2FegOMoKvTGC2byrx2QpFi58bqQXCdg3 okGAJLvPjK8+lr0GnO2YUKlwB/dSgokAGfahzaOmSce9r7UH9DybcQwOxSenyBQ8OE/R Nnf1/7YaTT9iCCTp13mbRC5eNhpm63E1I13KDmh3fiXqMlPfJnV+o4OiR+REOsXHwPB3 1r1A== X-Gm-Message-State: AOAM530V2+cuT61OusGyNoMcZ5y4CG1SgiRnMXkyD4jMPvaQ9n5hu1Q0 UZCRRBdNNXAI1tOnIA42JQVbEA== X-Google-Smtp-Source: ABdhPJz6DZ/SRX+X8uZaDs5YozctfZcRVmLr9ghAGmBfnNqco0v8ckg+hK2XYUYYJ/hCoPEz2ZBMfw== X-Received: by 2002:a63:894a:: with SMTP id v71mr12345570pgd.337.1637564026320; Sun, 21 Nov 2021 22:53:46 -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.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Nov 2021 22:53:46 -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 6/7] ARM: dts: sun8i: bananapi-m2m: Enable ICN6211 DSI Bridge Date: Mon, 22 Nov 2021 12:22:22 +0530 Message-Id: <20211122065223.88059-7-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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211121_225347_775437_4596B23E X-CRM114-Status: GOOD ( 13.13 ) 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 bridge along with associated panel. Signed-off-by: Jagan Teki --- arch/arm/boot/dts/sun8i-r16-bananapi-m2m.dts | 63 ++++++++++++++++++++ 1 file changed, 63 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..da6c1f2a0c74 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"; @@ -81,6 +90,18 @@ led-2 { }; }; + panel { + compatible = "bananapi,s070wv20-ct16"; + enable-gpios = <&pio 1 7 GPIO_ACTIVE_HIGH>; /* LCD-PWR-EN: PB7 */ + backlight = <&backlight>; + + port { + panel_out_bridge: endpoint { + remote-endpoint = <&bridge_out_panel>; + }; + }; + }; + reg_vcc5v0: vcc5v0 { compatible = "regulator-fixed"; regulator-name = "vcc5v0"; @@ -122,6 +143,38 @@ &dai { status = "okay"; }; +&de { + status = "okay"; +}; + +&dphy { + status = "okay"; +}; + +&dsi { + vcc-dsi-supply = <®_dcdc1>; /* VCC-DSI */ + status = "okay"; + + bridge@0 { + compatible = "chipone,icn6211"; + reg = <0>; + enable-gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* LCD-RST: PL5 */ + + ports { + #address-cells = <1>; + #size-cells = <0>; + + bridge_out: port@1 { + reg = <1>; + + bridge_out_panel: endpoint { + remote-endpoint = <&panel_out_bridge>; + }; + }; + }; + }; +}; + &ehci0 { status = "okay"; }; @@ -157,6 +210,12 @@ &ohci0 { status = "okay"; }; +&pwm { + pinctrl-names = "default"; + pinctrl-0 = <&pwm0_pin>; + status = "okay"; +}; + &r_rsb { status = "okay"; @@ -269,6 +328,10 @@ &sound { status = "okay"; }; +&tcon0 { + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pb_pins>;