From patchwork Mon May 8 15:58:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ayaka X-Patchwork-Id: 9716435 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 8711060364 for ; Mon, 8 May 2017 15:59:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 76AAC26530 for ; Mon, 8 May 2017 15:59:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 68DE52684F; Mon, 8 May 2017 15:59:15 +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 EE8F826530 for ; Mon, 8 May 2017 15:59:14 +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=QT5eDpkLiBSY3qOvZty7uq2lXuU+3htfBSFpwrRe2Vw=; b=LQ1 x3yVPWhoSveKLrhSGoWMLNVvyUQBRmealcF5ScjcNcJipOf3KDXvKGhT1yb8BGVVUusfhGg5NzHWU h5HLqMAVra8/BdK+xlAUPYBmfeeOywoLvHWWsFRTKXlFnFsA+CdWHAQhzAt4BWnL7PXxA6y4jznrN UrwzY+p/nVKSRud881U+VcSTTUfDXLCEXuPJf+/C8+gmijvMLPuV0dUpgHlVHab0Nj6fPl6BTvZt7 Z5dRIV6Sr92vRlUA83KukGA+qAZOKkI4ezDQ3rreUErIluRpx0Wy2ezH/0zAKip1vTaXRsb4lzU3J onNX91Fh5df1iW6oDRoOvqbedqArTXQ==; 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 1d7l45-0001xJ-RB; Mon, 08 May 2017 15:59:13 +0000 Received: from kozue.soulik.info ([108.61.200.231]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d7l42-0001vV-9a; Mon, 08 May 2017 15:59:12 +0000 Received: from misaki.sumomo.pri (unknown [IPv6:2001:470:b30d:2:3fe5:5e2:ef97:4abb]) by kozue.soulik.info (Postfix) with ESMTPA id 625F4100813; Tue, 9 May 2017 00:59:17 +0900 (JST) From: Randy Li To: devicetree@vger.kernel.org Subject: [PATCH v2] ARM: dts: rockchip: add eDP panel support for Firefly Date: Mon, 8 May 2017 23:58:33 +0800 Message-Id: <20170508155833.19652-1-ayaka@soulik.info> X-Mailer: git-send-email 2.9.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170508_085910_566259_81995104 X-CRM114-Status: UNSURE ( 6.09 ) X-CRM114-Notice: Please train this message. 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: 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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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. I assign the VOP lite for the eDP panel and VOP big to HDMI, as the HDMI supports 4K resolution. With a different VOP device, eDP panel and HDMI could display a different contents. 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 | 112 ++++++++++++++++++++++++++++++++++ 1 file changed, 112 insertions(+) diff --git a/arch/arm/boot/dts/rk3288-firefly.dtsi b/arch/arm/boot/dts/rk3288-firefly.dtsi index 436878b..db22316 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,32 @@ cpu0-supply = <&vdd_cpu>; }; +&edp { + vcc-supply = <&vdd_10>; + vccio-supply = <&vcc_18>; + status = "okay"; + + 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_in { + /delete-node/ endpoint@0; +}; + +&edp_phy { + status = "okay"; +}; + &emmc { bus-width = <8>; cap-mmc-highspeed; @@ -240,8 +322,14 @@ &hdmi { ddc-i2c-bus = <&i2c5>; status = "okay"; + +}; + +&hdmi_in { + /delete-node/ endpoint@1; }; + &i2c0 { clock-frequency = <400000>; status = "okay"; @@ -385,6 +473,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 { @@ -601,6 +705,10 @@ status = "okay"; }; +&vopb_out { + /delete-node/ endpoint@1; +}; + &vopl { status = "okay"; }; @@ -609,6 +717,10 @@ status = "okay"; }; +&vopl_out { + /delete-node/ endpoint@0; +}; + &wdt { status = "okay"; };