From patchwork Sun May 7 14:46:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Li X-Patchwork-Id: 9715279 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 96A5260380 for ; Sun, 7 May 2017 14:47:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 850432022C for ; Sun, 7 May 2017 14:47:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 79DBD204C2; Sun, 7 May 2017 14:47:36 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 DCA9F2022C for ; Sun, 7 May 2017 14:47:35 +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:References: In-Reply-To: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:List-Owner; bh=0Xir4HnfJTLrloVl68yWupZiC8LFhCfurU+lLXy1WAw=; b=tgAO9oRVGS317XxhUWbFyNhhPh vPTAPq+b7Nq5/wPoWL4D0H/5qieEBOdKyqlWsmGWmcS2z1u0lcYn/ETy3MUFa2vdmaNnznY2Imir0 ztdOH6zPsXLzBaA7nhIYxjmSDkYr3w0XyV3AV1c8LyaLL5M91zWJRAiQfMcMrnD1NNsMTl/AH/+ii ET9pjZjDkjQaqmg9Ui9DBuQqL39/ub970uk3cZR0IavTOTtZ5zMkWyZUtxFANhUIluFfSqKCFpqt+ Gc+QKKWPI1eiyZNnZriFhaMyxXuZprnBLcqYuz5I8Hsk2p3wGpoaLeJA6Sb36JrA48W69XilKh9Tc +JmbyekQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1d7NTD-00044J-EP; Sun, 07 May 2017 14:47:35 +0000 Received: from kozue.soulik.info ([108.61.200.231]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d7NSl-0003Oc-F1; Sun, 07 May 2017 14:47:09 +0000 Received: from misaki.sumomo.pri (unknown [IPv6:2001:470:b30d:2:3fe5:5e2:ef97:4abb]) by kozue.soulik.info (Postfix) with ESMTPA id DA4911020E9; Sun, 7 May 2017 23:47:22 +0900 (JST) From: Randy Li To: devicetree@vger.kernel.org Subject: [PATCH 1/2] ARM: dts: rockchip: add eDP panel support for Firefly Date: Sun, 7 May 2017 22:46:32 +0800 Message-Id: <20170507144633.11714-2-ayaka@soulik.info> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170507144633.11714-1-ayaka@soulik.info> References: <20170507144633.11714-1-ayaka@soulik.info> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170507_074707_723709_3D073ECA X-CRM114-Status: UNSURE ( 5.36 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, heiko@sntech.de, Randy Li , linux@armlinux.org.uk, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds the supporting to the eDP panel sold by the T-CHIP for the Firefly RK3288. The InvenSense MPU6050 sensor at the botton of the panel is also enabled. The Firefly RK3288 Reload use a different GPIO pin to enable the power of the eDP panel. Signed-off-by: Randy Li --- arch/arm/boot/dts/rk3288-firefly.dtsi | 92 +++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) diff --git a/arch/arm/boot/dts/rk3288-firefly.dtsi b/arch/arm/boot/dts/rk3288-firefly.dtsi index 436878b..786cfb7 100644 --- a/arch/arm/boot/dts/rk3288-firefly.dtsi +++ b/arch/arm/boot/dts/rk3288-firefly.dtsi @@ -62,6 +62,62 @@ }; }; + backlight: backlight { + compatible = "pwm-backlight"; + brightness-levels = < + 3 4 5 6 7 + 8 9 10 11 12 13 14 15 + 16 17 18 19 20 21 22 23 + 24 25 26 27 28 29 30 31 + 32 33 34 35 36 37 38 39 + 40 41 42 43 44 45 46 47 + 48 49 50 51 52 53 54 55 + 56 57 58 59 60 61 62 63 + 64 65 66 67 68 69 70 71 + 72 73 74 75 76 77 78 79 + 80 81 82 83 84 85 86 87 + 88 89 90 91 92 93 94 95 + 96 97 98 99 100 101 102 103 + 104 105 106 107 108 109 110 111 + 112 113 114 115 116 117 118 119 + 120 121 122 123 124 125 126 127 + 128 129 130 131 132 133 134 135 + 136 137 138 139 140 141 142 143 + 144 145 146 147 148 149 150 151 + 152 153 154 155 156 157 158 159 + 160 161 162 163 164 165 166 167 + 168 169 170 171 172 173 174 175 + 176 177 178 179 180 181 182 183 + 184 185 186 187 188 189 190 191 + 192 193 194 195 196 197 198 199 + 200 201 202 203 204 205 206 207 + 208 209 210 211 212 213 214 215 + 216 217 218 219 220 221 222 223 + 224 225 226 227 228 229 230 231 + 232 233 234 235 236 237 238 239 + 240 241 242 243 244 245 246 247 + 248 249 250 251 252 253 254 255>; + default-brightness-level = <180>; + pwms = <&pwm1 0 25000 0>; + pwm-names = "backlight"; + power-supply = <&vcc_sys>; + }; + + panel: panel { + compatible ="lg,lp079qx1-sp0v"; + power-supply = <&vcc_sys>; + backlight = <&backlight>; + enable-gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>; + + ports { + panel_in: port { + panel_in_edp: endpoint { + remote-endpoint = <&edp_out_panel>; + }; + }; + }; + }; + dovdd_1v8: dovdd-1v8-regulator { compatible = "regulator-fixed"; regulator-name = "dovdd_1v8"; @@ -203,6 +259,26 @@ cpu0-supply = <&vdd_cpu>; }; +&edp { + vcc-supply = <&vdd10_lcd>; + vccio-supply = <&vcca_18>; + ports { + edp_out: port@1 { + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + edp_out_panel: endpoint { + reg = <0>; + remote-endpoint = <&panel_in_edp>; + }; + }; + }; +}; + +&edp_phy { + status = "okay"; +}; + &emmc { bus-width = <8>; cap-mmc-highspeed; @@ -385,6 +461,22 @@ &i2c1 { status = "okay"; + + mpu6050@68 { + compatible = "invensense,mpu6050"; + reg = <0x68>; + interrupt-parent = <&gpio5>; + interrupts = ; + mount-matrix = "0", + "1", + "0", + "-1", + "0", + "0", + "0", + "0", + "-1"; + }; }; &i2c2 {