From patchwork Fri Dec 10 11:17:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1805 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id E3EA03F15A for ; Fri, 10 Dec 2021 12:17:50 +0100 (CET) Received: by mail-pg1-f199.google.com with SMTP id m129-20020a632687000000b00324df4ad6c7sf5014890pgm.19 for ; Fri, 10 Dec 2021 03:17:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1639135069; cv=pass; d=google.com; s=arc-20160816; b=0NbuFhdz0oY41n5nGQWMQL66/xHDmJWao8GaK/UdHx7yABeMY7Ygq37siaHPJ31YW8 fOf3KdEdePQ97OoB0602dRHPafpGTjGrqHLEQLSbSooKs45Flc15JzdeYRLdaxGrbDAK o2dFuJP5z6rb5uzpCNtcTw4IZTyOdKRcwoghSeIbmny4SXOI/JH5x2LnMN2Nq9ONPJOO VMPjZ9oEbS8wImNVDJhoEQC1qjQZ6MtKnP7ZW8frF6F95zGiUIHJgFj5Ud1g/i+K41tq wH2Jygk5bx7jVaCeR96XuKXbWu5fMhVRdLJrb6tX/sgtVReqIRvTFqwxdWqm1XY1Clac oIQQ== 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=KUkz1HFG7DqiUbQFeiys2aT+UZtK28dH5b1m0TJKH1U=; b=VQWSGscGbd/WPhdVflWGDbBW+do4opqs7iqX1amHJplIQp4N8Uierz1Cyp8H6PpSKp xSUh/ZMC/GPi6+npiz8hNCSBTs3K0dp9yMf9+Hv1lxGyXutqxBZoFmLZS+vEwemoDq2f 5NKsSK5hcFOGEAGQjaNTRO17iehZy0eammx4FoBVGd4g4msLQPoHZgu4ToTxJGC6P3R2 m9ureUvyD6qy6xL0AHFWSULUeCBuJF36xAJ+FacormICX7VTAEDFzeLC/RVgsFJg+fJw Kd9w3pqGfm/wzWV7j9Yv+P9ayxS2diDYUNtDRMgtkIndW3r6Tzdj9i1gfp6JayIF5rFx rOKw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=cZjFf3cN; 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=KUkz1HFG7DqiUbQFeiys2aT+UZtK28dH5b1m0TJKH1U=; b=ir3da0na99cA5UEo/ABrDP4p8+NrNDn2PW8edyVbK4MTnrGkdF/K0at5sY/mFThTvb zXXuWnpwt1bssz/jyBxhbSpxOcNLLtFUOm2eN35K45sJhDplfw2KW/n7KYf4Qtfw3lUi d6NN/LT4UhuqebOhxh84R9hlD+z6XmRGYsIE8= 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=KUkz1HFG7DqiUbQFeiys2aT+UZtK28dH5b1m0TJKH1U=; b=Z6KpNR3vdg/XlzvMWgoRA5IHquT+S5HKWIPnQViiW+RiNMIPwxMbE3S0UqrPfcMqG6 6pHSBLN6uqKFXFKdJfxLhjYM/+GhugHRZEgZCmB0z34mHU7tCeFRDFDSO/1/AUI0btOt s/0cDoeqp/6slY1UB1MHjdEbjvP5LdmHx8114yRCrw1+NpdCuxSFWp3w5Sju0mSz7Afm 8miixpmP4PdeNU5x1C1ECW+wGY3GTgnwhCZCR7JO96eVOhX7cHKQG1ZzXhASgaWGeQYn ZZ3Kr3tf051zlaiZKhf87/sGcwzLYNconSPF0v3cW7pg/XITYK5LQyfb2IBcDJFj7+cD yZnA== X-Gm-Message-State: AOAM532c2ShxbuZZYuL0HRErW+sh1ebbH1VY7JQTOvdwj7XdC8LgQlsf UTr7tETWCEhti/j/TJTMH/i/Pnoy X-Google-Smtp-Source: ABdhPJz88SHXda6oDf6hNs1O5qNjFYMdTNrPIxukB1NVTHWkSymO1JhMiLsV7zVm0nO9cWyuBFoqKw== X-Received: by 2002:a62:820e:0:b0:4b1:3cea:f0f6 with SMTP id w14-20020a62820e000000b004b13ceaf0f6mr2707713pfd.47.1639135069733; Fri, 10 Dec 2021 03:17:49 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:e5d0:: with SMTP id u16ls4817062plf.0.gmail; Fri, 10 Dec 2021 03:17:49 -0800 (PST) X-Received: by 2002:a17:902:c404:b0:142:4c7e:ab8b with SMTP id k4-20020a170902c40400b001424c7eab8bmr75173341plk.10.1639135069071; Fri, 10 Dec 2021 03:17:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1639135069; cv=none; d=google.com; s=arc-20160816; b=gzMeoGu6n2qUyXf/8LOdunsKnFcHD9q+VHHMf/62N/9Y+IZNptqf/Gx2twrb/hXy7K 8QrISscZ3t65WwcKWKJ4OmV70N4D3XYm2ddOIU0dfk200aoSGVnAKvfDune5RJdbkcnH +xCt8EoQzjheqGSDErJwR0e0DwJo54nRVdsJcYWlYFzzNoYfGAIeIsYPXbRqYMsGDaSC IYCbywA6OQHJZBaskbvm6j2noR1ZTW9alXPvn2bNyVgwlp04yVi4cqyQDktIg6GqGbs7 T1f0H6Fwq5OIr8nr+W29PSOShUAEuLQkuYFJ0gUA+roxt6YOMg7Bt+DA7loOhW7KySo6 oz8w== 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=4LeTyuQUOX40vOSJ+axYvrUW6lyOFj2kxIyIdKNHdkA=; b=TeOBrgzzGO8pbo1sRKHd66iTxbRc/nX1A5gLm/QPbVVB2bFIaCFkyHNI7OtKGoRBlY mAcVx1LYcCV46Wr7Hh/a5MAdRXzgkgX7usNAP3/7z2FATinRSGcpbbNOl1uFZUSYErje IQT4iKs6f/Vw/vFlCogxkVe/uOY5RyGwKu4TWPBQU85FORV5TJGJIw+4HgW8miQnTyno dBylx2Q3/OvElu3NltteJYSRFlb4svjYVGK5gKdukNcdyF5zdh+Ij9em24/W5yFxVntV zhwCWNICD3QRVjHcfFXWlD7ddAxrRt9FzdJYqIqT8hsYdXTdmPqCFun7cCykQMo6Ejv8 zq3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=cZjFf3cN; 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 k19sor2314851pls.44.2021.12.10.03.17.49 for (Google Transport Security); Fri, 10 Dec 2021 03:17:49 -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:a17:902:ab0c:b0:142:343d:4548 with SMTP id ik12-20020a170902ab0c00b00142343d4548mr73742135plb.14.1639135068822; Fri, 10 Dec 2021 03:17:48 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Dec 2021 03:17:48 -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 5/6] ARM: dts: sun8i: bananapi-m2m: Enable ICN6211 DSI Bridge Date: Fri, 10 Dec 2021 16:47:10 +0530 Message-Id: <20211210111711.2072660-6-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-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=cZjFf3cN; 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 | 64 ++++++++++++++++++++ 1 file changed, 64 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..501666dfb5ee 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,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 +211,12 @@ &ohci0 { status = "okay"; }; +&pwm { + pinctrl-names = "default"; + pinctrl-0 = <&pwm0_pin>; + status = "okay"; +}; + &r_rsb { status = "okay"; @@ -269,6 +329,10 @@ &sound { status = "okay"; }; +&tcon0 { + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pb_pins>;