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: 1804 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 86C853F15A for ; Fri, 10 Dec 2021 12:17:46 +0100 (CET) Received: by mail-pg1-f199.google.com with SMTP id w5-20020a634745000000b0030a5bee70e8sf5026792pgk.15 for ; Fri, 10 Dec 2021 03:17:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1639135065; cv=pass; d=google.com; s=arc-20160816; b=aAMSs4uw9rwhC8eeGsQXc0+Cdl23JQ+1uMSY5xRu8rNJupD2ed28s5kR4XcNtwNVr4 ATsxOyqFyBxUl1r7zSbzEEU0IbmPt+0imRoCojF/0Gwg1v6A14upoYBNQXF/gk74yM3B NwMBnG/eDzz6qObR04h5XfLclKn0fIbY5Jati2Ssv8h+D38cmlMmLJAqDkxdzZk2e5oq XuoFUFkBITa7+V3FF3bVuyIP74hplzw+RiMuTAYEBa2mipVL+0hnfSUQDl3zlIABrkZA u0sNQn1uDGeSHawAIovhNRNDNNkH309Jp49P2CKzwKOvCNgT/lT27KdrzWGhNVqh5mgI +Zyg== 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=gEFQ2XeNSelezNRbt7CpEae7iwJFqx7bLVYi/z8LHxc=; b=eIiZOnbXbddYMSSqs6lx+CNHow2S+fbE7ZeVcajFe22w2wkedzhSbbADp/xzURDCcm 0QRSzNgVAFaZBjXXqSCKQt67R8TQjBIVeoM+U8IRLja3vw4n4xVCiOzu6J52e3lZ55fu pxJOBNe2MZvCqE+59j9mDaIGdQxn/TjG/i23fnEDniefdh94BFr54rLnMC2130PLwoB/ BD6gezHYfcLqLj8DsBjfKp3OBwjPWbFLAQHZRPDld0RyNFjpcTBV7ANpwrOU9aR1DDz7 u2uAiI8FQzr3btC+w63GsA90sNcEvth1Vr5p10Xo3kL4Q+qXWrMhZ/+trY89tfNEZfwt vLmw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=RqnPQEYa; 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=gEFQ2XeNSelezNRbt7CpEae7iwJFqx7bLVYi/z8LHxc=; b=PqIbNxxb4dfgyg0wL9GyhwiyXxC7XFP1uwYHU3Mj4qtWGCmckStT2FZVeTSdCsTR9D KvGtb45eRiIymnNixq706/tzLm5Tvh9uLXymuGnLBbla7PrX0S7p1Pl+AVjF+VxeTBjR 7Ph7ZUmFiTMZ3KYddMWLeU2/Oe9DD1B+W1TdI= 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=gEFQ2XeNSelezNRbt7CpEae7iwJFqx7bLVYi/z8LHxc=; b=BVIryee4Uw/vmynQs9ZCoI+QsqCXvXAl92ctrnbtMWQHCqb5hwj7J4t4rOxR8YRdaN ZgHxhRcvv+yucpM6sr+bmBO6NDNoEsRIjGiRHGRx2hGUGMx7Y6j2XoafPaOE6jRfP0z9 Zb+LlztEICvD7Jic8mgmE95ogLg6NoFMmjDp32uWU3x/jVpbr4pRr3LkS5BMhsdrJTFf EVZYnqfqJu7b+ZA1QX/3yGDh4n1xMEYRnP3M8Io7zeP35EdF4II0kymQ09smpvarUXNj RoLzFSEWer2HCqMTXkZIzPK6j29mq1Rld6d+Fm4X9ykds3FZ0rEzjrDJjxspXj76bQm+ yL8Q== X-Gm-Message-State: AOAM533UmbiBh4qA19Ai824CTGYkWE+VedV5tUZDIMG0FIVrLM+0I7Tq v0hOJolDbmySUVmfP/dnXv0bHwET X-Google-Smtp-Source: ABdhPJyAe+TPe0J5swCGymD7aTvITwh/asc9HKO2rAVhFKVQaG2g/6PCxBTJZoUw630vFWtgqc9gSQ== X-Received: by 2002:a17:90b:110a:: with SMTP id gi10mr23177415pjb.124.1639135065402; Fri, 10 Dec 2021 03:17:45 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:f687:: with SMTP id l7ls4798480plg.10.gmail; Fri, 10 Dec 2021 03:17:45 -0800 (PST) X-Received: by 2002:a17:902:904b:b0:143:73ff:eb7d with SMTP id w11-20020a170902904b00b0014373ffeb7dmr73022252plz.85.1639135064768; Fri, 10 Dec 2021 03:17:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1639135064; cv=none; d=google.com; s=arc-20160816; b=SQoylPlzre7aRVpoVr1O68qd3kP2Xp8xbwvLFo8c43hjeugyFiQL40foWTtNO3B4f6 hPkQwtps7G8o99kW0JxBWfNR3fgMPsVkiGqU7BIaELX5w5V5lBj6SSwwC1AmuhPsDJ0I 0MWl6qzwcamq+9JO7jlYtK+n/qCS53IrbaObOgPPS3SxR3VAoirrWp2u/Rz49Otw1rC2 XVH3h79ZCFs7gfKc2MWLsl2ZGKT2EXu4PfJ5sBEVyOlpI+M0gODS+Xl22T8YGhDavOwK OPWuncwpni3sGA/IIWSMeb+Ycw9VjzFLWlh17G4YD1wpcsPpJf6JudgBwKUMeyuvEKS3 iwpg== 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=0NNSlBkMytmlUqdX2xwQU1vlLDJZ1w1h/BzLFbdr4yY=; b=X0BaZLV3ETGSlcnluTrRPV95s2aCBqvrv3jSp1+v6zYH9p5pqiP3+tjXTf7LyKRrXY 0QPw7XIGbMvE61j0xKk45k047lEi1s5Ugy7br/hDfu2NxT+AGcFNRUad/U0YbXVWQofF 0rSZ2zNrqwLWqHwa+V8v2et6qGl2NsNyhNwqlLtYQuJRdaEvhc92KMbUxQurNGGwe6rN DqrJ55I6bkuVTzWl/YulNshpm5wq0g/fW7L8xBmTGgWTnh8oAPWInQ4bUrevT2UwMuhY DETqHLpdwICQmxpuVWtGJbHVHxOL31aApGG9FpCH55UjJXowjvSxShLGHIHe8ru+epwg fNNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=RqnPQEYa; 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 z5sor2297832plk.53.2021.12.10.03.17.44 for (Google Transport Security); Fri, 10 Dec 2021 03:17:44 -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: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-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=RqnPQEYa; 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 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>;