Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2948478ybt; Mon, 22 Jun 2020 10:59:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWjlykjTRrHhJ6lKp7PFJSsRrg/Xi01Td0UFrV6jA91J9u782v+UaTfUeS1zkh2nzWbdk+ X-Received: by 2002:a17:907:40c0:: with SMTP id nu24mr17598064ejb.141.1592848767103; Mon, 22 Jun 2020 10:59:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592848767; cv=none; d=google.com; s=arc-20160816; b=DjmVXcWNqw3XZgvVK844/o3klawHgxZtcgJaisYD/xGkeEGK+BkWfj74X2+bkmiJ5s v/mhRFmfw2Ejvb/4SuQvOWlBOBvgzZo7d3VaW9PPVyqyY3KlKcv344jmlYQ3ZVm/+tFl fNx735+RkC53s4oOyILbGeCqxQsXcl69FEIwF3SDSscm/+llIHp3KNEJEPxoCUQdeq3T JwNqU4HBpw5Zdp7o60aMbL5edi5PtPFIqrXZcyPK+QKXF0uSdseTun5ptEcjUCTNTc4P BECIrAMLD4LOIwM+tV3skbwDLtjyu+tW1eOa9qlZwAOqW3X5ZAMIsCUculX43zjYALZJ QJrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=M3GEVdXIf0tk+DXRvjn8ivHe3tRnJ1flWGbCBgMSqFc=; b=ls+ysGalS3WFWyWFeXbOxDB3EZBzm5k6F32sgCrlnxXdUzlQtq1vQkOAKO1WkHogD3 7eQbVhwA6HHByjBgjWHXGGasQZIWLRnLvFayhoG+JsmW4yF41KLZsyR+95qHt0bWmlId gXPlc+KquC6Rn1byY9JgZZe8NDKyYDIIKqI/mzrNOTf78U2PGw9L+iH9esSdohMj9TZE 8PX5ra6xL56z3QTplFf24o86kf38borXcMT0F2qsQXMW8HPypd94pSZ6gwMFwG9NH2WE Eo6/9oKI9OS0u8AQRIf8/ejEjV0TYfMuqt5b9/A38nRHqyBqUwD7znPf/hH9iCZhUaUu IHvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fKYxb8a5; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k16si10274446ejs.546.2020.06.22.10.59.04; Mon, 22 Jun 2020 10:59:27 -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=@linaro.org header.s=google header.b=fKYxb8a5; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730203AbgFVR5Q (ORCPT + 99 others); Mon, 22 Jun 2020 13:57:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730124AbgFVR5P (ORCPT ); Mon, 22 Jun 2020 13:57:15 -0400 Received: from mail-oi1-x244.google.com (mail-oi1-x244.google.com [IPv6:2607:f8b0:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDE9AC061797 for ; Mon, 22 Jun 2020 10:57:14 -0700 (PDT) Received: by mail-oi1-x244.google.com with SMTP id c194so16437941oig.5 for ; Mon, 22 Jun 2020 10:57:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=M3GEVdXIf0tk+DXRvjn8ivHe3tRnJ1flWGbCBgMSqFc=; b=fKYxb8a5H/16u9zlWS8iJSngzhsQi8W1gBgVdQKgopZCmgNRKW4ShQtq754r/X5ZHq fy6m5ZY5hX4E0YahT9PIK9K0hD3j10Uy59Ms3GAKtrVZaffV73Avh9kzG2xPwcQpE2jN 8f9MCiTyTnGs+lgdJ4+REJgssZ4aoLmVB39814XTPl2qPHqWj/gzwk+XimPFIVVEHUvp JzsFN060SsfLCwR1b2ZTOFv/2dloiWXa9fBsxadwXtQFyVQEwAdDKS6LxeGJ6e36GFJZ nvfChvHXG4x7H6NJ79akzQS3olwqvZy18fNlsxK0nyMeuPuAZK5+wYZs67khpZMIQQqQ mHaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=M3GEVdXIf0tk+DXRvjn8ivHe3tRnJ1flWGbCBgMSqFc=; b=qHSo93NbHBD+/m1nohCkUCJUgMCAUW9mkqY0ivqCXIn1MAWIu4pC0HiVHDufkAW4Ao XvYeJwQ8yWknKqOELTUvZtUVvourUvqL2cyPfzkiYkCL7hDXrmOQmlqZX/70KjQVvgW+ Sf9TRVwGoEV6gohAeO5iKB+RH9S4YDvvKycH2eeTHejT4Ul1Y4z6f1an5hCW4Tk0AXAh 0Z+M3CzM5ydITJ3TgX9rVfR+6Ij5iOU2VNnr1gwIsNZEuxGjgf0hloTxgLSjarTdRUYO cfHSS7IhiAb28CydzjfiXrp49A+m0aXRz5c2bMib4FgD6y8Q5UPHH0tBJdoX9f8dchXm 63GA== X-Gm-Message-State: AOAM53330LBsGAXrH0fatyeb00fYWm6trvW9rEmUGWJ5t2QQvUNWivKG Bq4UBTSD8+N4Wq5fIIqC1eWaWg== X-Received: by 2002:aca:7213:: with SMTP id p19mr13643738oic.58.1592848634118; Mon, 22 Jun 2020 10:57:14 -0700 (PDT) Received: from builder.lan (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id k7sm3510087oon.29.2020.06.22.10.57.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jun 2020 10:57:13 -0700 (PDT) Date: Mon, 22 Jun 2020 10:54:28 -0700 From: Bjorn Andersson To: Konrad Dybcio Cc: skrzynka@konradybcio.pl, Andy Gross , 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: Re: [PATCH v2 8/8] arm64: dts: qcom: Add support for Sony Xperia 10/10 Plus (Ganges platform) Message-ID: <20200622175428.GU128451@builder.lan> References: <20200622075749.21925-1-konradybcio@gmail.com> <20200622075749.21925-9-konradybcio@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200622075749.21925-9-konradybcio@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 22 Jun 00:57 PDT 2020, Konrad Dybcio wrote: > 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 > Tested-by: Martin Botka Same comments as on patch 7 regarding the model, but apart from that this looks good. Happy to see these patches on the list, keep up the good work! Regards, Bjorn > --- > arch/arm64/boot/dts/qcom/Makefile | 2 + > .../qcom/sdm630-sony-xperia-ganges-kirin.dts | 13 ++++++ > .../dts/qcom/sdm630-sony-xperia-ganges.dtsi | 40 +++++++++++++++++++ > .../sdm636-sony-xperia-ganges-mermaid.dts | 20 ++++++++++ > 4 files changed, 75 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..246710a01046 > --- /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..ea051b3d14b8 > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-ganges.dtsi > @@ -0,0 +1,40 @@ > +// 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..96b7782d58de > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/sdm636-sony-xperia-ganges-mermaid.dts > @@ -0,0 +1,20 @@ > +// 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 >