From patchwork Mon Mar 22 14:01:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1716 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 9EF0D3F067 for ; Mon, 22 Mar 2021 15:02:38 +0100 (CET) Received: by mail-pj1-f71.google.com with SMTP id e15sf27134815pjg.6 for ; Mon, 22 Mar 2021 07:02:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1616421757; cv=pass; d=google.com; s=arc-20160816; b=g04FXB14dHEbMte3Y1pQXaCpkEacqVvsZu9yc+iWL/udw4ixbvgRVbYKrVvCXFKfam lwXvGVJ4fOBIoN7InyBozNvG1Tgmv7Dd2NNUZkB4aVpu+VSLl39Dq4UTtzdYWADawNnc QbHAvnmFDPZP4K7biQIkawFYJXAMnw+3peUW6/vKoARja7Ckwy/pvywYsQ8LWhDI62Qa 6LRP9kFuXmHPEtfyqAhFXPbmuKjblhliX9ziqs21bBjGWTwJ/QukItqu6Ha0gM8d3rRR +dqrg1RiIUE7aCIw2J+bVW5Z173Faxsia9ScNlCFFXwFtxEoqyg7X/bDNm+cBbht3054 vfwA== 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=+jPcQzGVbMA6hzqr1wErkQJkgiauf939Vsb7+/puKR8=; b=IkWeBc9e0kQ58SDONIxKh4vPiFp0Z0fNKb5GgbOKiheNinPdOwisqXUcuVOE5aIAw1 eI5v6T//YPAQdkOj55l1ARzWDM6Ryy0MIMFSViVgBhS6UFOIL9OABZlTFliW1GcUr23c iIbUiFDZIxqeYFHoaQFJsqOz+SzDnCbtmLa5js/R1cwcR/Oht9hCpDFbi3g6xwdG/f3h RuWfgEkq2+ff7OuL/sUAvLNnG/xJokmlWUkfV0x290fCCI+YA/74WaJ51Ajh1Z3f1jAO NgaY2Kjo8AXXkDJNLXjheqJa1HBD1cqJkwA3QEmP3fSONYG4w4YT19t6LVGgpCl+QmyX tv9w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=h854o4L9; 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=+jPcQzGVbMA6hzqr1wErkQJkgiauf939Vsb7+/puKR8=; b=AMA3mUyD1bPl6TaQAGRBQ7JVc80EJN1STrfnK3ri+Wna9zojOD7HfxpsR81vr++o2e X81MLEjw9baDKE5Muz7P6Cb8553bvAnebH93avcLhbKtsHxEfALAs2ywCriXxnmNx7Ti 8q68w0cd4ykQcclkrD1IC+38jfAoPzlYGcWaw= 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: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=+jPcQzGVbMA6hzqr1wErkQJkgiauf939Vsb7+/puKR8=; b=RAJjPFjnppjq+GAh5lP0NXqQEiWQUnkBju6jwc1aEqGLhkt+PPBDkCwZJKzuPL2gQS mgdVbuxsv7OvHa5I6eEkdSC9C+gOUmrazJBXhRAEec2H7eCtb4Fbb/lfvFmgRiggG6H3 BHqR1JsdD2hLN8xyPz2Ep5S35U2HAwHQLsrLp1OpKItAT2e2Qt9wto+/foH1J3diZRd4 Wz3IgAaK4eDCHK16MOhBZ7NEyWHeMABrURovjAWLl8E/VmDUoJze+IgPYf04d/Oolwo7 +jBgc9QXq0UXQdOThl3mS/4cpnqoC2AEFLHfjb08KAMKMo7NwgWvQHozNv3oBBg4x7GD iScg== X-Gm-Message-State: AOAM530nSW07RpcuYPIXRXJ7jDA0povaY8Txgux6Flmy4c8dZj3gq24h /zqGDI6pjT1QNacpfWiukn+fjekE X-Google-Smtp-Source: ABdhPJz/mP1FzZISwVsuZY6PORAHEzv0eiuYGNp6/l3SkcfX/14yP7F9haJ0nzQI1aV5gbEGvpPJCg== X-Received: by 2002:a17:902:ce86:b029:e6:b1f6:3c5c with SMTP id f6-20020a170902ce86b02900e6b1f63c5cmr1848672plg.13.1616421757449; Mon, 22 Mar 2021 07:02:37 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a65:4d43:: with SMTP id j3ls4473286pgt.1.gmail; Mon, 22 Mar 2021 07:02:36 -0700 (PDT) X-Received: by 2002:a62:1ad5:0:b029:1fa:c667:2776 with SMTP id a204-20020a621ad50000b02901fac6672776mr21990589pfa.6.1616421756648; Mon, 22 Mar 2021 07:02:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616421756; cv=none; d=google.com; s=arc-20160816; b=GH+wLos1sn9WWBxZkLrl8PcDN0804uomVp06ZCsGwZobZbWz+ECrt4I2OfD3MwAcLj nPa+b7aeHsoEuR85OzWJ9NHLPQzK8zNDI/ZiOYrj9fmQFo7UQkHuqWJIB4ZCOIGHDfOw ZnK2fVM6TL3NwUDLGvAhHpoUUZrR3/QbENnNPBGGFiV7YviSx9zqnRWAEo1TK1l0VzDT 7HUF/bFJzUhbM7YKg5/ape3M40OfNbO2OxNBFGHVTfBNXNKBvm1aICPZa2hnYjbymm1l nAbeaHXl8x0P+/+rPDaQZ1K0iKOglzhlFOHG0sF5ex3uGIiehx/iaMrYg+X/vzo6p3rX SOtQ== 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=PyXoPHaQZ1cNX+mAGKi6igLdckQBFbOfNFJ/cXEULis=; b=pAuFPiEb/MnxTS0Yq0EkBKJFVErQDb3TiTXJdD7N1knuoo3Y/XNoI21XOiNj3ecCTN Gwh/7L6dNhVvEyELaBINrsPL9hvRmER7fFdlmOOS9c8N29zV1ShNQB4kH14yDGnscMio 6ayMrxu1Ovb+OYp//nb6OBq6iNs3jml0bDZPtkayc9hzX7tyYoBVTtNjbXzy1lVpRbZQ /JecOjKyY1Jm2+FBcOm8O+Ze6YQdLWq2t3qJq/7bwh3HhFyFWPrzGtoZniBeSwfphIDh whNKY4kSc7cP+spP2aBIqbTB402fA+ZF5RsHNCRBQWsYso6ZFjG+5xEkpD+g15ZOK0P/ 0czQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=h854o4L9; 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 37sor6054436pgz.33.2021.03.22.07.02.36 for (Google Transport Security); Mon, 22 Mar 2021 07:02:36 -0700 (PDT) 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:e203:: with SMTP id q3mr23160172pgh.325.1616421756376; Mon, 22 Mar 2021 07:02:36 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c00a:a884:15c1:9a30:414f:d84b]) by smtp.gmail.com with ESMTPSA id gg22sm14112997pjb.20.2021.03.22.07.02.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Mar 2021 07:02:35 -0700 (PDT) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , Laurent Pinchart , Samuel Holland Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-amarula@amarulasolutions.com, linux-sunxi@googlegroups.com, Jagan Teki Subject: [DO NOT MERGE] [PATCH v4 4/4] ARM: dts: sun8i: bananapi-m2m: Enable S070WV20-CT16 panel Date: Mon, 22 Mar 2021 19:31:52 +0530 Message-Id: <20210322140152.101709-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210322140152.101709-1-jagan@amarulasolutions.com> References: <20210322140152.101709-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=h854o4L9; 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. Bananapi S070WV20-CT16 is a pure RGB output panel with ICN6211 DSI/RGB converter bridge, so enable bridge along with associated panel. DSI panel connected via board DSI port with, - DCDC1 as VCC-DSI supply - PL5 gpio for bridge enable gpio pin - PB7 gpio for lcd enable gpio pin - PL4 gpio for backlight enable pin Signed-off-by: Jagan Teki --- Changes for v4: - replace reset with enable-gpios Changes for v3: - none arch/arm/boot/dts/sun8i-r16-bananapi-m2m.dts | 85 ++++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-r16-bananapi-m2m.dts b/arch/arm/boot/dts/sun8i-r16-bananapi-m2m.dts index 293016d081cd..6f33e1ae8ffc 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"; @@ -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"; @@ -81,6 +91,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 +144,59 @@ &dai { status = "okay"; }; +&de { + status = "okay"; +}; + +&dphy { + status = "okay"; +}; + +&dsi { + vcc-dsi-supply = <®_dcdc1>; /* VCC-DSI */ + status = "okay"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + dsi_out: port@0 { + reg = <0>; + + dsi_out_bridge: endpoint { + remote-endpoint = <&bridge_out_dsi>; + }; + }; + }; + + 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_in: port@0 { + reg = <0>; + + bridge_out_dsi: endpoint { + remote-endpoint = <&dsi_out_bridge>; + }; + }; + + bridge_out: port@1 { + reg = <1>; + + bridge_out_panel: endpoint { + remote-endpoint = <&panel_out_bridge>; + }; + }; + }; + }; +}; + &ehci0 { status = "okay"; }; @@ -157,6 +232,12 @@ &ohci0 { status = "okay"; }; +&pwm { + pinctrl-names = "default"; + pinctrl-0 = <&pwm0_pin>; + status = "okay"; +}; + &r_rsb { status = "okay"; @@ -269,6 +350,10 @@ &sound { status = "okay"; }; +&tcon0 { + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pb_pins>;