Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2268073ybt; Sun, 21 Jun 2020 14:41:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNinxWaiNF8MXKRy6XCunSMxf8bT0BEtO+wUc4RJwQycBktYf4MhTpnPcW72DWVAUZCxVc X-Received: by 2002:a05:6402:549:: with SMTP id i9mr14084782edx.159.1592775700560; Sun, 21 Jun 2020 14:41:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592775700; cv=none; d=google.com; s=arc-20160816; b=DqF/iCetSkgdOql5UKdcPZ1dDJ/VVRQ1OHAyxg+6es7lrgex48mKmtQT2jcT4LXzDG As9L9Su1az8ICiifllpIoqNbANiMUZt7gIEZr8jCw61YtfC0WDNLw8PD8v4DTddVKhwr tvqpBJlVOsUhXJgn0RR9lEt2sF0OL/jc5FtVagPkNWiYscHf4hnDQXkUMOqwh+O2IDVl m1VFOICFRGysv2ypHOW8fOiMekhIYzseeTwVcERPLOjI+Z7B67B5tAS9Hn8XSTiduMq+ SxTgTfGylUlK6jtZl2Z9JKiukbg+8IJFFp9g0W5KF3V7myRjXJUllmwFYFz/JHPsXg2O Me0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=H5/rFOKDPW5u+NKPoeU24vUFSrCyXkO2dLidTVJwtTA=; b=VmEluAz9zvtlB3gHZs4yJk9NuAEX5ua+ovNWxqHruyBB7MnuNb+CECqrLxoeDh1aXb L3NKpZVf2D14Bl8SG6RdkpA2s1vUvihUdJoFks5O+Vpkzvbnvgk4U3aHdPNlwfYzrcXy anIpa/jfIRoRVScJE4lajnPQKM8qzkUSgyG3OUl1qBTVOKAZerHH8mnkplHlGXFckttC r/UbEx73XtkApMFVnZwBIKhYmk+i/eLNKPBqpL/JiezJMcrMj7z+I+kisfAoBfjglaZ8 U7KQ7eVSwXn9J3dJSMPPu+4FcjZZYPq48PSIkTGtu0SiTaQJtGiAiOTVcXE4wc03Y2x5 Sf7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=H9u5SrWZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a11si8366024eds.271.2020.06.21.14.41.18; Sun, 21 Jun 2020 14:41:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=H9u5SrWZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730916AbgFUVjA (ORCPT + 99 others); Sun, 21 Jun 2020 17:39:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730899AbgFUViz (ORCPT ); Sun, 21 Jun 2020 17:38:55 -0400 Received: from mail-ed1-x543.google.com (mail-ed1-x543.google.com [IPv6:2a00:1450:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0978DC061794; Sun, 21 Jun 2020 14:38:55 -0700 (PDT) Received: by mail-ed1-x543.google.com with SMTP id s28so12038332edw.11; Sun, 21 Jun 2020 14:38:54 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=H5/rFOKDPW5u+NKPoeU24vUFSrCyXkO2dLidTVJwtTA=; b=H9u5SrWZjS5zq7NgimW2cZ6pgNwp8k2q0oc6X+3qCOAlMTsblJipUvLrxq7/DcZpOI wOzsJ1D8FJgtG51Tta4s4RbllDqNPKFxhqqLUi5SUKM1g6D3duGeLkeDkY98LiQogcpb SpQyENiYWOnziMS59ic1H0460+3ncew/rS6gdEsCzzyJZ8SczPP/kJNnVRfTj8Km7KOh aqddkbUHhLeRK1REVql4pdsRcFPFgXwxwYjix/g0XjV7dG+CPpSviPeG2plzP3rNacRP ElfPspkgU4NGLWW+STwDNwq36bHgkARuh5ZhPibeRijPVSVHN2yymvT1mR39fpxi8UzR t1aw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=H5/rFOKDPW5u+NKPoeU24vUFSrCyXkO2dLidTVJwtTA=; b=V4zgtZkXBFEVgNbdv7OY3SpRyA5nr48mBNKBLOV82S9PVbHX0LRkMEOE9FAUPOCQzf Tk7yhddLe47fw11ixfCGWIWfgGgLmBJr/ARfOOZFHwxC+MG8Wano8H04HjZsFxeB+6KL ZYrjVHR6cTctSxUJ2Wzio6XK9Q7nvuoxVIh8JdjoNpk6wuE5ODz/tX4ZrkqdVk2dVae3 FOoBPNG15NMIWkNIZJEoYd34R18C4SvauUkBxJ8e/pnLAcL0CFFUpzYA0ItmZRRzXBV1 5tXQO/Vr2nsjPCEFao6eovkVtSTVi68LYfQ5ob4xD0h+Nmx2Qsacy1BBb7zwc7zUFVhc kYsA== X-Gm-Message-State: AOAM533wQX1DdhwbjD3Dwp95UVRFqmKZEwGMhyM7Dm/PvNQEWeGCFQVe evU451T2t+UZc5HFScopwG4= X-Received: by 2002:aa7:c583:: with SMTP id g3mr7850842edq.228.1592775533765; Sun, 21 Jun 2020 14:38:53 -0700 (PDT) Received: from localhost.localdomain (abag196.neoplus.adsl.tpnet.pl. [83.6.170.196]) by smtp.googlemail.com with ESMTPSA id w3sm10130012ejn.87.2020.06.21.14.38.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jun 2020 14:38:53 -0700 (PDT) From: Konrad Dybcio To: skrzynka@konradybcio.pl Cc: Konrad Dybcio , Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Linus Walleij , Kees Cook , Anton Vorontsov , Colin Cross , Tony Luck , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Martin Botka Subject: [PATCH 8/8] arm64: dts: qcom: Add support for Sony Xperia 10/10 Plus (Ganges platform) Date: Sun, 21 Jun 2020 23:38:04 +0200 Message-Id: <20200621213806.551879-9-konradybcio@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200621213806.551879-1-konradybcio@gmail.com> References: <20200621213806.551879-1-konradybcio@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Martin Botka Add device tree support for the Sony Xperia 10 and 10 Plus smartphones. They are all based on the Sony Ganges platform (sdm630/636) and share a lot of common code. The differences are really minor, so a Ganges-common DTSI has been created to reduce clutter. 10 - Kirin 10 Plus - Mermaid This platform is based on SoMC Nile, but there are some major differences when it comes to pin configuration and panel setup (among others). The boards currently support: * Screen console * SDHCI * I2C * pstore log dump * GPIO keys * PSCI idle states Signed-off-by: Martin Botka Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/Makefile | 2 + .../qcom/sdm630-sony-xperia-ganges-kirin.dts | 13 +++++++ .../dts/qcom/sdm630-sony-xperia-ganges.dtsi | 39 +++++++++++++++++++ .../sdm636-sony-xperia-ganges-mermaid.dts | 19 +++++++++ 4 files changed, 73 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/sdm630-sony-xperia-ganges-kirin.dts create mode 100644 arch/arm64/boot/dts/qcom/sdm630-sony-xperia-ganges.dtsi create mode 100644 arch/arm64/boot/dts/qcom/sdm636-sony-xperia-ganges-mermaid.dts diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index 1cad7cb07574..c98bafe03a96 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -16,9 +16,11 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8998-hp-envy-x2.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8998-lenovo-miix-630.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8998-mtp.dtb dtb-$(CONFIG_ARCH_QCOM) += sc7180-idp.dtb +dtb-$(CONFIG_ARCH_QCOM) += sdm630-sony-xperia-ganges-kirin.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm630-sony-xperia-nile-discovery.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm630-sony-xperia-nile-pioneer.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm630-sony-xperia-nile-voyager.dtb +dtb-$(CONFIG_ARCH_QCOM) += sdm636-sony-xperia-ganges-mermaid.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm660-xiaomi-lavender.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-cheza-r1.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-cheza-r2.dtb diff --git a/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-ganges-kirin.dts b/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-ganges-kirin.dts new file mode 100644 index 000000000000..5326e019db20 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-ganges-kirin.dts @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2020, Martin Botka + */ + +/dts-v1/; + +#include "sdm630-sony-xperia-ganges.dtsi" + +/ { + model = "SoMC Kirin-RoW"; + compatible = "sony,kirin-row", "qcom,sdm630", "qcom,sdm630-mtp"; +}; diff --git a/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-ganges.dtsi b/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-ganges.dtsi new file mode 100644 index 000000000000..6c4c30e4cd9d --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-ganges.dtsi @@ -0,0 +1,39 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2020, Martin Botka + */ + +/dts-v1/; + +/* Ganges is very similar to Nile, but +there are some differences that will need +to be addresed when more peripherals are +enabled upstream. Hence the separate DTSI. */ +#include "sdm630-sony-xperia-nile.dtsi" + +/ { + chosen { + framebuffer@9d400000 { + reg = <0 0x9d400000 0 (2520 * 1080 * 4)>; + height = <2520>; + }; + }; + + soc { + + i2c@c175000 { + status = "okay"; + + /* Novatek touchscreen */ + }; + + /* Yes, this is intentional. + Ganges devices only use gpio-keys for + Volume Down, but currently there's an + issue with it that has to be resolved. + Until then, let's not make the kernel panic + */ + /delete-node/ gpio-keys; + }; + +}; diff --git a/arch/arm64/boot/dts/qcom/sdm636-sony-xperia-ganges-mermaid.dts b/arch/arm64/boot/dts/qcom/sdm636-sony-xperia-ganges-mermaid.dts new file mode 100644 index 000000000000..97dce64d0185 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sdm636-sony-xperia-ganges-mermaid.dts @@ -0,0 +1,19 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2020, Martin Botka + */ + +/dts-v1/; + +/* Mermaid uses sdm636, but it's different ever so slightly +that we can ignore it for the time being. Sony also commonizes +the Ganges platform as a whole in downstream kernels. */ +#include "sdm630-sony-xperia-ganges.dtsi" + +/ { + model = "SoMC Mermaid-RoW"; + compatible = "sony,mermaid-row", "qcom,sdm636", "qcom,sdm636-mtp"; + + qcom,msm-id = <345 0>; + qcom,pmic-id = <0x1001b 0x101011a 0x00 0x00 0x1001b 0x201011a 0x00 0x00 0x1001b 0x102001a 0x00 0x00>; +}; -- 2.27.0