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: 1786 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id CBCAA3F15A for ; Mon, 22 Nov 2021 07:53:48 +0100 (CET) Received: by mail-pf1-f198.google.com with SMTP id q2-20020a056a00084200b004a2582fcec1sf9439238pfk.15 for ; Sun, 21 Nov 2021 22:53:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1637564027; cv=pass; d=google.com; s=arc-20160816; b=NRHWKGIgR/JTdXrfXKf5ZC4I0MH7N84r9JZ+i6K02OFAr5YlxHIff5pzsmsf5s5SIF NLAfKwMrRhMaY/yktyU1ROuYZ7XOb8ZMJjS917TPbki5650mc7+PTmNqJsuJE6WMK+i/ tJV7Uv/797NNvNFYt94GE60ZB9zzUYA+DPhytpBNf3r8w+EL51mYmtyBOgfmjJp2O3Pr uC1ZJNHjRysr3Spwsl0zFHng0PV/wFkjUCMnInFsmrgAIchcWKNBUvWRDrA9XbhlODKQ 87F47SB88SvJzjqm9kBOg5SvZhIVeOKfTuy77DeBa9TI+UTvBh7d8q/xcO5xaRxci6/7 XHyw== 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=/rRMTFOt7As4dz/ivWuPGTqYukkhDCaACuNWQ1b2eUY=; b=s0XqlbuqeCqhyDXt/7rfj6RMjcpE06EJqBfbF5MMFXKNRtpGKplATLhV1FRxYBeo4g CjLLaboqfGDCcv6mj8tQie6dzi/8FMSQCYKdlGik3W5LdnCbT1ajVIQEJTieLd9PXQwK jdtaEAG6JGlj3ubugWlZrLHMjtWJVjATAvhK+NgOM1Rrbcb6zyRQRcbwPUDDh5Zomnrx 3lcl9LE9neonAcYMdzxficRCOPm9xSmc2rRQveHl5zmbcmRCrurSf4q5K6GSIpii1+/H vEhUXyz5cFG2Vn3H0zkAPfdQeHNnVbT73sBJ37IGAppLn/dePAFaeK+oxpqTGmu+I/D7 qnDg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=R2lQlxav; 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=/rRMTFOt7As4dz/ivWuPGTqYukkhDCaACuNWQ1b2eUY=; b=RDeAJb60VrRZpGZX2o/kqXQvhZqGDASq8AS7t3PUnBYN9BG0NACs3AnQc+sUWG+Ek/ ggGySncptVE9N2xtG+EP3clBdn1cVNh9tYQiD6TYsFnmDv6KkusU3iJEShe6qV+byLQS FOABo3H+vqLJ6f8bGeKR35Mp9L17L4TXQ30mM= 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=/rRMTFOt7As4dz/ivWuPGTqYukkhDCaACuNWQ1b2eUY=; b=rtu50MhC0xqZr3LDoXlMFVWckn9MWhopawYwsCvJEN1DuGJRDLXMfbcOSipzxTgbPx 9GPsXbQPtSnpPluT2qZsYZn9RY2DLudR5NNKvJk4rYfKDqG4YHVueDkHSnRW295ujXfG WWmphNrd2zecT38K+YANnqRGRJnv71onDfzEm09WCbhxT+hvzoHoSRi+wflv5NntPpBx otKujlrV9+Okx8d3wAWRhRyY+69rMNqt0sfyixbCf8yYeFS8QRxeTJIWBqQt18sNd6do JYBtfqe9/bEffrNG2iohh8jNtPXlGUM7hQzBsGA3yQf6ogz7gcp2TIbeQ+0QgdsqJjd/ Ad7A== X-Gm-Message-State: AOAM532t6LiXSdszwkHuoRD5u0EBvL8hKdLGr/gK7ZIpbs1vhleJJru/ 1y3WHy+UEUqZlg1CvGvlf69ttTW8 X-Google-Smtp-Source: ABdhPJxChGk80//y757CIGtmQ2LmZ4xQV77fhdnx+aZzvj/0eVdhGdhtq1oWRtolrDC3k+UJvjbxXA== X-Received: by 2002:a63:80c6:: with SMTP id j189mr31755185pgd.200.1637564027340; Sun, 21 Nov 2021 22:53:47 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:ed0c:: with SMTP id d12ls880727pgi.7.gmail; Sun, 21 Nov 2021 22:53:46 -0800 (PST) X-Received: by 2002:aa7:8e52:0:b0:4a1:5820:d9cc with SMTP id d18-20020aa78e52000000b004a15820d9ccmr80952832pfr.49.1637564026734; Sun, 21 Nov 2021 22:53:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1637564026; cv=none; d=google.com; s=arc-20160816; b=UAfxgMA5trhV/+Z55ZHeRNyDOKv2VlQxnu1RQK9Uqmajgnp1Of240kBf2DhIrIVs0s b8SadVJMwZWkDakdgo2tkrHm+lCz2jQr66l8ZJMXn/z/GMh72fOdSzg0fuioC//hddQd 9Q18cMyjr1VZqBKPDfmdYDF1E4S+xCJMMX1MmfxNAq7+ZMehQREyTBQu+wKIPcrGePFx nWDw14i+3gS6Esvkc1/SMcEP5kP5gOJhC1mt+6TJfZyTP57Ux7p47v/XTeyFA2Y1Z+k1 4ZB8yOIAMWV8zzCDE/k5DfD/5ZIuq3rtS3DERi4JNDGOBLz0C0nzQQm6IejpVtVuICLy NO0Q== 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=xqP160R8LU5V3gmz2VYiGFoGsrEbiwdGt3q8Nn130K4=; b=cDUYEzhWmFK01akxZZIzqPBR5A3s7OSLIJ0hxEjkJxNjdzkgpV00eqQ/tM/Zb3YQ2z Wxi6HXKJKc6BO1UwXivx4qiCriN9tEbQpTufe9X98bITYfNeilh+rq2S+bFOVAzjImPs pv4aT0sonCaL9SsU+ZLCoVIXBxdsTNZhqJQmKqfeb3rRLXkaPLCSw/O7cHLCyz9Sz1p7 IyBU36/T+TCwYrPj6PXYDjpNlTHwYX+5sd6JMH6R3+ojq0FpDemPS+2zjmlyeMGTSoo6 6FHgqKxeeK5xWfj+W/YQlDyqJda1hGY/8l/xY8cyml7iXsetG3fIZlsUFAaal2hoSerJ oNsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=R2lQlxav; 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 w18sor2025896pgk.78.2021.11.21.22.53.46 for (Google Transport Security); Sun, 21 Nov 2021 22:53:46 -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: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-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=R2lQlxav; 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: , 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>;