From patchwork Sun May 13 23:20:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 10396469 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id AA59460348 for ; Sun, 13 May 2018 23:21:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 97A8B29089 for ; Sun, 13 May 2018 23:21:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8BF2329099; Sun, 13 May 2018 23:21:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 238C329089 for ; Sun, 13 May 2018 23:21:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=YauzDJh6ctcQ9S7VSH0RFhaWO+NBGC89N510SnEpogk=; b=tCv iMcfwVKdslDxLku+GtYj3y5KuKjibsWEnigD2MAH7iT7Jzt0Ygui0qVaWpcYfJOz1FDON0NL5L/mW JlUixBEmncnDCZpOWPSlKeUmnoXC7e0/3rG6KDA8xWnq5vdBN2eWBHsFajtayhQZ2cdLAVFQL4WhR 1Nrt58qS1TIrfDLPognAi0uSNS9DzCGuA2X6Mdb0fi/24Vc+mf7ufXU+chW7K9lOgxcl11RUO+DVy 3sJu0ciFVUmzjNIhVqvyWiU8iK+BSt1PnecL6w9zAdddeJ5s2vbl0dziYssgV4F8XpwALYsclqRSc joyUS8j03T53GLVLwBgy1gJTKDjU5bw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fI0IU-000433-7x; Sun, 13 May 2018 23:20:58 +0000 Received: from mail-it0-x242.google.com ([2607:f8b0:4001:c0b::242]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fI0IQ-00042A-Vs for linux-arm-kernel@lists.infradead.org; Sun, 13 May 2018 23:20:56 +0000 Received: by mail-it0-x242.google.com with SMTP id n202-v6so8042475ita.1 for ; Sun, 13 May 2018 16:20:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=AXB0qsy7J9D6qWA+GKUVm70eAkOBtbaiweKezfiLoks=; b=mPHWAWKVjBLdzj3BvXH8ee16fV/vnoL1gbZYn2L5bq9SJPTi9GvvdqwRUuyWofEeXF D/eW0CwEHxTNMQXmMKykHXaagoJqGOoGvCzTUlRzj2RDu6FrZfsUOr3Aqw6yjmT8vmz4 VfwJ6Srwsn6m7pZl/WWIaT8r0vrNb1hL2D4eo9vTt3sZIGUxpmYOFBZXwrQHRwiLPSlm byNKvlqfR9wNxIBoH2Jr0bO8QuAHyC4+J4ApILPCuVhBLSdVXkPCASWobP/0bvCPIK4Y XlLYcG/JI18gyErTVFqHEw/I7sP+OXYMrIba5Jo3Ft8COvxJl7l4pLi3r29s44ZSwJZV uVyQ== 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; bh=AXB0qsy7J9D6qWA+GKUVm70eAkOBtbaiweKezfiLoks=; b=gkU77lSgARYkRtCKt56x6GNs2V3TrsUVn3di8gznboSZrph6qcw9JQSLW2p8tG04Vn OqLnmOffU6t1o4PjzBsupUXVihGGYIgG+4h6MkPIxIdwiSNn2AT3YQv6bjNPhshodZD8 Wj9E8uleiPtYCTWK5Sh8M/4gfxKg+WBaJnfwoPBiT0Bu1yw635ld040lrsSNnoPqd4fE /Btmbnn1JdEGxPVcxlNTY+lwWdkNnELjxFENMyZ3H6vT+hEI71lCEoyB+CpHRA/aTNzY WY/3liJjC4BcBVWqaS/ucFzrZVRmhVWaUV1cWBGM0o+mSPXJJtVyQvbLqWDYBKYC1S23 519w== X-Gm-Message-State: ALKqPwfRL2Rfo9lcvrKE3GAt85TiOwDUvLYS4cTaiF9Lu6vG192FFp1J QbPtSuHcEiIBWiPBNwNXKoDRiQ== X-Google-Smtp-Source: AB8JxZoA0tIjutQ5xp2HH8moawtYmAkLaEL8WTB908O/+/O1UxaWEhGd02AMCSJ8lfkW/jm8/DCI7A== X-Received: by 2002:a24:5c87:: with SMTP id q129-v6mr6898738itb.149.1526253643348; Sun, 13 May 2018 16:20:43 -0700 (PDT) Received: from localhost.localdomain (c-73-65-120-235.hsd1.mn.comcast.net. [73.65.120.235]) by smtp.gmail.com with ESMTPSA id c38-v6sm4094333ioj.62.2018.05.13.16.20.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 13 May 2018 16:20:42 -0700 (PDT) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Subject: [PATCH V3] ARM: dts: da850-evm: Enable LCD and Backlight Date: Sun, 13 May 2018 18:20:33 -0500 Message-Id: <20180513232033.22571-1-aford173@gmail.com> X-Mailer: git-send-email 2.17.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180513_162055_036565_0130F993 X-CRM114-Status: GOOD ( 13.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Adam Ford , devicetree@vger.kernel.org, robh+dt@kernel.org, nsekhar@ti.com, khilman@kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP When using the board files the LCD works, but not with the DT. This adds enables the original da850-evm to work with the same LCD in device tree mode. The EVM has a gpio for the regulator and a gpio enable. The LCD and the vpif display pins are mutually exclusive, so if using the LCD, do not load the vpif driver. Signed-off-by: Adam Ford --- V3: Fix errant GPIO, label GPIO pins, and rename the regulator to be more explict to backlight which better matches the schematic. Updated the description to explain that it cannot be used at the same time as the vpif driver. V2: Add regulator and GPIO enable pins. Remove PWM backlight and replace with GPIO diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot/dts/da850-evm.dts index 2e817da37fdb..3f1c8be07efe 100644 --- a/arch/arm/boot/dts/da850-evm.dts +++ b/arch/arm/boot/dts/da850-evm.dts @@ -27,6 +27,50 @@ spi0 = &spi1; }; + backlight { + compatible = "gpio-backlight"; + enable-gpios = <&gpio 7 GPIO_ACTIVE_HIGH>; /* GP0[7] */ + }; + + panel { + compatible = "ti,tilcdc,panel"; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_pins>; + status = "okay"; + enable-gpios = <&gpio 40 GPIO_ACTIVE_HIGH>; /* GP2[8] */ + + panel-info { + ac-bias = <255>; + ac-bias-intrpt = <0>; + dma-burst-sz = <16>; + bpp = <16>; + fdd = <0x80>; + sync-edge = <0>; + sync-ctrl = <1>; + raster-order = <0>; + fifo-th = <0>; + }; + + display-timings { + native-mode = <&timing0>; + timing0: 480x272 { + clock-frequency = <9000000>; + hactive = <480>; + vactive = <272>; + hfront-porch = <3>; + hback-porch = <2>; + hsync-len = <42>; + vback-porch = <3>; + vfront-porch = <4>; + vsync-len = <11>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <1>; + pixelclk-active = <1>; + }; + }; + }; + vbat: fixedregulator0 { compatible = "regulator-fixed"; regulator-name = "vbat"; @@ -35,6 +79,16 @@ regulator-boot-on; }; + backlight_reg: backlight-regulator { + compatible = "regulator-fixed"; + regulator-name = "lcd_backlight_pwr"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpio 47 GPIO_ACTIVE_HIGH>; /* GP2[15] */ + regulator-always-on; + enable-active-high; + }; + sound { compatible = "simple-audio-card"; simple-audio-card,name = "DA850/OMAP-L138 EVM"; @@ -109,6 +163,10 @@ status = "okay"; }; +&lcdc { + status = "okay"; +}; + &i2c0 { status = "okay"; clock-frequency = <100000>;