From patchwork Sat Sep 22 17:02:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Summers X-Patchwork-Id: 10611477 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9FAEE5A4 for ; Sat, 22 Sep 2018 17:04:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 84DBB2A1CA for ; Sat, 22 Sep 2018 17:04:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7875F2A1FE; Sat, 22 Sep 2018 17:04:53 +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_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE 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 DA3642A1CA for ; Sat, 22 Sep 2018 17:04:52 +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=1tYI/JYIbXICt/dRTfzQP6CL3Ai09qCzHc1D1eRq6CA=; b=Og4 PFFM7o/nst4FYjREH8wtTrVN29J1OZ/1AvQ7+7ImAbvbJAhwZllkYHyyAURHdn3WjazuEfpbGv1WS JrDuRQyKsM5y7KGRHutOJuEpojpqB3+Gy8Wrr4QGoRK5qr7ec43NxnOGpLXcYJyJSm3k5qoIlh89H W5ydFrd+k0tXLkci3KblFAPasjT3BEmkTti3QwtQmU5fCf4LXEYGXycEHIWT6EpKaha3z4if2Uoxb t1xVCSw7kGSUWpbzLvTR4gF9ea/51K8fckvLuRaproG8f0oywTIvlIyEy0PjE+Fe+4nAb3u8lchAC lgaO21h7Xnshp+fn4YWJ6VZ1+2+nsjA==; 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 1g3lKi-0001nY-Rl; Sat, 22 Sep 2018 17:04:40 +0000 Received: from avasout06.plus.net ([212.159.14.18]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g3lJt-0001SV-GG for linux-arm-kernel@lists.infradead.org; Sat, 22 Sep 2018 17:03:54 +0000 Received: from localhost.localdomain ([87.112.59.232]) by smtp with ESMTP id 3lIvgLHeTWLW23lIwgxvva; Sat, 22 Sep 2018 18:02:51 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.3 cv=fJUXI6Se c=1 sm=1 tr=0 a=j0Shb94RhMAfJhCYhuuKdw==:117 a=j0Shb94RhMAfJhCYhuuKdw==:17 a=-Yt9tNsTAAAA:8 a=NEAV23lmAAAA:8 a=mHNTRtIcyR6vZWE8XngA:9 a=keAHaIsXc4fjs0uB:21 a=VZoYrIv29rEVXpkF:21 From: David Summers To: Heiko Stuebner , robh+dt@kernel.org, mark.rutland@arm.com Subject: [PATCH 0/3] Device Tree for ASUS Tinker Board S [v3] Date: Sat, 22 Sep 2018 18:02:33 +0100 Message-Id: <20180922170236.8690-1-beagleboard@davidjohnsummers.uk> X-Mailer: git-send-email 2.18.0 X-CMAE-Envelope: MS4wfGFnb+i2Bl09nOZvZDP2RCLJOasbEPKOs5eERgDRlzy/XZ0Vd1Eew9rkCoQoeU3Xk+Zr6gN0u/QpK/UkuIxJyOvr743zuD9VKk2ulQum9U2zC9SkHLnd eLlJeIU9HltcmtiyN7VGNCXwKh+PWYY5Q2QIlRJ96gDurDF1O/HEs1iMwIjk0ZC4Gg3O6Ulqf7A0qX+w2kPIYDyjAzYQ2+67Uog= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180922_100349_718389_878571EF X-CRM114-Status: GOOD ( 16.70 ) 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: linux-rockchip@lists.infradead.org, David Summers , linux-arm-kernel@lists.infradead.org, devicetree@vger.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 So third try on these patches, hope these work, git commands are difficult So I hope these work. The ASUS Tinker Board S : https://www.asus.com/uk/Single-Board-Computer/Tinker-Board-S/ Is a variant on the original ASUS Tinker Board, the main difference being that the "S" has eMMC. This patchset sets up the device tree for the "S". It is based on the patches used with the debian distribution which ships with the device : https://github.com/TinkerBoard/debian_kernel/blob/develop/arch/arm/boot/dts/rk3288-miniarm.dts So this is really just mainlining the support. I've split the changed into three parts: . This part - just creates a new dts file that is a copy of the tinker board, with just a name change . Changes needed to add the eMMC It is based on: https://github.com/TinkerBoard/debian_kernel/commit/dc7d4eb4140b4e5ff23aaf2864a56d5c8634f3d0 With the speed change from https://github.com/TinkerBoard/debian_kernel/commit/4b52627037958bc95ed3f67ff96bbbadbb2bfe07 The patch is relatively straight forward. Only oddity that it seems to be on the sd card slot at &sdmmc; when booting from eMMC and there is no card in the sd slot - then the kernel keeps scanning the sd slot. So it looks like card detect isn't functioning correctly on &sdmmc. This probably wasn't noted on the original Tinker Board, as that had to have a sd card in order to boot. Alas the schematic for the tinker board doesn't show how the sd card is wired ...: http://dlcdnet.asus.com/pub/ASUS/mb/Linux/Tinker_Board_2GB/Tinker_Board_Schematics.zip . Changes needed to enable wifi Its based on: https://github.com/TinkerBoard/debian_kernel/commit/6a3128ade33f758887048578ada61a4b7ab8e678 The changes here are more extensive, basic communication is via sdio0, but can also be seen that connections are set up to the RK808 e.g. the power management chip. This is the first patch I've done for linux - so if I've got anything wrong, just let me know and I'll correct. Also any comments you have. Regards, David Summers David Summers (3): Add the tinker board S to the device tree - just an outline This patch add the eMMC to the ASUS tinker board S This patch adds wifi to asus tinker board S .../devicetree/bindings/arm/rockchip.txt | 4 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/rk3288-tinker-s.dts | 120 +++++ arch/arm/boot/dts/rk3288-tinker.dts | 498 +---------------- arch/arm/boot/dts/rk3288-tinker.dtsi | 504 ++++++++++++++++++ 5 files changed, 631 insertions(+), 496 deletions(-) create mode 100644 arch/arm/boot/dts/rk3288-tinker-s.dts create mode 100644 arch/arm/boot/dts/rk3288-tinker.dtsi