From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ED19BC56201 for ; Thu, 12 Nov 2020 16:21:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8B4AA2078D for ; Thu, 12 Nov 2020 16:21:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=connolly.tech header.i=@connolly.tech header.b="FAZhyOvK" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728701AbgKLQVM (ORCPT ); Thu, 12 Nov 2020 11:21:12 -0500 Received: from mail-40131.protonmail.ch ([185.70.40.131]:48482 "EHLO mail-40131.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728682AbgKLQVL (ORCPT ); Thu, 12 Nov 2020 11:21:11 -0500 Date: Thu, 12 Nov 2020 16:21:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=connolly.tech; s=protonmail; t=1605198069; bh=5KoIZ9U3VhmnotkUs4i78bk4cebIfwu8l0GYH39R9GM=; h=Date:To:From:Cc:Reply-To:Subject:From; b=FAZhyOvK/h7XvOKxm+w4uaplz579Tt4EMHlCRZdcYNBXeLUgni3HJCmG0MCJOk2VK SR37Eg9cr4Jo5CYlsEzDV0QrLCRk44s5HjEOHF9dgFYMLLQ8m8I/gxJ2NU+xEuYFPi jZF5s8dSXdpoQhWuGk2r+NHpulmnwHNFgPaGF1DU= To: linux-arm-msm@vger.kernel.org From: Caleb Connolly Cc: phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Reply-To: Caleb Connolly Subject: Add support for the OnePlus 6 and 6T SDM845 devices Message-ID: <20201112161920.2671430-1-caleb@connolly.tech> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The OnePlus 6/T handsets are based on the SDM845 platform and were released in late 2017. Add support for booting with core functionality including: * Display panels and hardware accelerated graphics * Touch screen with Synaptics RMI4 * Modem and other remoteprocessors * WiFi / Bluetooth * Buttons and OnePlus Tri-State key * USB gadget mode Both devices are almost identical, but use different display panels, with the 6T lacking a headphone jack and notification LED. This series depends on the SMMU stream mapping patches which can be found here: https://lore.kernel.org/linux-iommu/20201017043907.2656013-1-bjorn.andersso= n@linaro.org/ The devices will fail early in the boot process otherwise. drm/panel/samsung-sofef00: Add panel for OnePlus 6/T devices dt-bindings: panel-simple-dsi: add samsung panels for OnePlus 6/T arm64: dts: sdm845: add oneplus 6/t devices dt-bindings: add vendor bindings for OnePlus i2c: geni: sdm845: dont perform DMA for OnePlus 6 devices .../bindings/arm/oneplus/oneplus-boards.yaml | 25 + .../bindings/display/panel/panel-simple-dsi.yaml | 4 + .../devicetree/bindings/vendor-prefixes.yaml | 2 + arch/arm64/boot/dts/qcom/Makefile | 2 + arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi | 822 ++++++++++++++= ++++++++ arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts | 19 + arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dts | 23 + drivers/gpu/drm/panel/Kconfig | 12 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-samsung-sofef00.c | 353 ++++++++++ drivers/i2c/busses/i2c-qcom-geni.c | 6 +- 11 files changed, 1267 insertions(+), 2 deletions(-)