Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2947668ybt; Mon, 22 Jun 2020 10:57:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySlIBBTH4X5ZsuNK36WbQjhXMl2SQGP/+692WaaFHAodG7BbODSMxL3TC9RdnA1cpceHiI X-Received: by 2002:a17:906:ae56:: with SMTP id lf22mr164689ejb.59.1592848672818; Mon, 22 Jun 2020 10:57:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592848672; cv=none; d=google.com; s=arc-20160816; b=QIEBgOLunoYIBXIV82PNeFh3n7yN3WDyIVCXekd3TaBT2M2crZOfAnO1CdkbIm1QfC RghuXvp6ttysVPIlztzdQU2spKZHmP7b/TuAuSNrU4gQnKGy97i7JkoWmx/A4TEAj9TO ak1i9nHT027ULw7WW1Mn7yl4tdS6NeMdadYW2YmjozBSKtg0emCO6X/z419fQDITdK/1 VcZHPSl/sBC2yrWIV+uu0hJHkvLrymGXrKjuBlhS/AURvCyVTx0XmQ8xLZhLB+0bltJr CfxEvU+nfntoC6Egjo0CG781rRlhxP02buqXL9+fUhFMIWZZZRbOzR3NDkKM5B6GwLUY N7yA== 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=yL/GGFgKvPpT/ESkDllNmDDqKcU651dh4sx64jW309s=; b=KvD757IN1Ggr9A2WLdAFIWYTzcNk7OIBN/xdO55x+28EucvrpL/DA1YUDs85lcUGOe bUsrS/socZJ2W7LTSnAMStOfq/Vet4a4TDp9vFNzCZOib4naN0ZY2NlsA0v54AwT/wPl K9fZfoeXLwdWKilMHmFSW9iXIbTHVUQonIyDuhviCDVgPk4vtcziote69bcpUlGUqDQS XEbqa2gJMCDI0fsBsvhegFJQ+Tyf+pI5/UEXoYRs1NKH+1TK2sBO2892etADb79PGHkv KFq+nBLilQLfb+IU+63VheUpwIlxbgthrtTIoO8J4F/6A3ziT7AnwvQITJ6L3M2oPGn+ +4IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AT4AvU9s; 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 gh6si9385442ejb.689.2020.06.22.10.57.29; Mon, 22 Jun 2020 10:57:52 -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=AT4AvU9s; 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 S1730151AbgFVRzj (ORCPT + 99 others); Mon, 22 Jun 2020 13:55:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730067AbgFVRzi (ORCPT ); Mon, 22 Jun 2020 13:55:38 -0400 Received: from mail-ot1-x341.google.com (mail-ot1-x341.google.com [IPv6:2607:f8b0:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C286C061795 for ; Mon, 22 Jun 2020 10:55:37 -0700 (PDT) Received: by mail-ot1-x341.google.com with SMTP id v13so13789480otp.4 for ; Mon, 22 Jun 2020 10:55:37 -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=yL/GGFgKvPpT/ESkDllNmDDqKcU651dh4sx64jW309s=; b=AT4AvU9sAT5ioVcP/Ma82mag06FRZC53FNcWA1/DQgm2s3sS33VltL9VIEI3UqR0M5 TNTcrDi7uP7DdLozHKbKufOXZKfzrTJpjDIVIcd3As/rfGfC4xxeW2Fu65Yr0k22eOEi qX9SP3JdyPQMPfz5IvW1Aef66AMQtm5vGBr+K+tWNkBWMLB4zsAi1h+uRlBAQ/7tlORO tkP+zf5ZaWa98u/3LgqRZiDpD8ublLJ9e2OB8sb0Kah9I5R793MuvtMFLtNKlJan3iKh VYRwouZuzG9f+nUHLefWF6ZF6Ydga4Ge/rPCe6pxSPMh99UBaVKUMbauepZ0T61t9Nyu JoDg== 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=yL/GGFgKvPpT/ESkDllNmDDqKcU651dh4sx64jW309s=; b=WBJZPuzenEiL/eYmIJu9rXwAPGdmBltr4H37NYBit2pCregWmXwNFqQPbad7ORfUhf euFDAEXqrazCblZYt9v6sJduDc/qwV3K1bnuupgmpAbxHihposRguwHaaVz1DQHV0SGT OdAgGeG3VazSSn53GBI5AYAVujsbI1CQHx/7A9aqTUIRTHfe7pGuayIgwv5SOQRI/8uv Q4CLajjXnpiDBXBfo8YUKJfkPgD1brQFxhlL2TTL8nB4qML9qS7YDbJbqAd3pIGpP1iN AQPO4FOLQPCZbviWxfJz16HRMJ3JNJYBaOriOVlqXow1ThXFrDMwo80GcaAaMto+VAeK bovg== X-Gm-Message-State: AOAM531LdQrkGvZsSoPHf5jfLUBHHQZbri9RzLQItLdzSW5FVYZEFEEU 5cpV6adLc3ZCw9m3UT5eQX35PQ== X-Received: by 2002:a4a:e2c1:: with SMTP id l1mr15507498oot.12.1592848536280; Mon, 22 Jun 2020 10:55:36 -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 k15sm3552652oom.22.2020.06.22.10.55.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jun 2020 10:55:35 -0700 (PDT) Date: Mon, 22 Jun 2020 10:52:50 -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, ??ukasz Patron Subject: Re: [PATCH v2 7/8] arm64: dts: qcom: Add support for Sony Xperia XA2/Plus/Ultra (Nile platform) Message-ID: <20200622175250.GT128451@builder.lan> References: <20200622075749.21925-1-konradybcio@gmail.com> <20200622075749.21925-8-konradybcio@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200622075749.21925-8-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: > Add device tree support for the Sony Xperia XA2, XA2 Plus and > XA2 Ultra smartphones. They are all based on the Sony Nile > platform (sdm630) and share a lot of common code. The > differences are really minor, so a Nile-common DTSI > has been created to reduce clutter. > > XA2 - Pioneer > XA2 Plus - Voyager > XA2 Ultra - Discovery > > The boards currently support: > * Screen console > * SDHCI > * I2C > * pstore log dump > * GPIO keys > * PSCI idle states > > Signed-off-by: Konrad Dybcio > Tested-by: ??ukasz Patron > --- > arch/arm64/boot/dts/qcom/Makefile | 3 + > .../sdm630-sony-xperia-nile-discovery.dts | 13 ++ > .../qcom/sdm630-sony-xperia-nile-pioneer.dts | 13 ++ > .../qcom/sdm630-sony-xperia-nile-voyager.dts | 20 +++ > .../dts/qcom/sdm630-sony-xperia-nile.dtsi | 135 ++++++++++++++++++ > 5 files changed, 184 insertions(+) > create mode 100644 arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile-discovery.dts > create mode 100644 arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile-pioneer.dts > create mode 100644 arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile-voyager.dts > create mode 100644 arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi > > diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile > index 0f2c33d611df..1cad7cb07574 100644 > --- a/arch/arm64/boot/dts/qcom/Makefile > +++ b/arch/arm64/boot/dts/qcom/Makefile > @@ -16,6 +16,9 @@ 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-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) += 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-nile-discovery.dts b/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile-discovery.dts > new file mode 100644 > index 000000000000..1312eebe76a1 > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile-discovery.dts > @@ -0,0 +1,13 @@ > +// SPDX-License-Identifier: BSD-3-Clause > +/* > + * Copyright (c) 2020, Konrad Dybcio > + */ > + > +/dts-v1/; > + > +#include "sdm630-sony-xperia-nile.dtsi" > + > +/ { > + model = "SoMC Discovery-RoW"; Given that this is already stated by the compatible, would it be reasonable to make this use the marketing name instead? (I.e. "Sony Mobile Xperia XA2 Ultra") > + compatible = "sony,discovery-row", "qcom,sdm630", "qcom,sdm630-mtp"; Does the -mtp one have any significance? Otherwise I would like you to drop this - given that this isn't going to be compatible with the actual MTP hardware. > +}; > diff --git a/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile-pioneer.dts b/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile-pioneer.dts > new file mode 100644 > index 000000000000..76f20ad5273f > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile-pioneer.dts > @@ -0,0 +1,13 @@ > +// SPDX-License-Identifier: BSD-3-Clause > +/* > + * Copyright (c) 2020, Konrad Dybcio > + */ > + > +/dts-v1/; > + > +#include "sdm630-sony-xperia-nile.dtsi" > + > +/ { > + model = "SoMC Pioneer-RoW"; > + compatible = "sony,pioneer-row", "qcom,sdm630", "qcom,sdm630-mtp"; > +}; > diff --git a/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile-voyager.dts b/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile-voyager.dts > new file mode 100644 > index 000000000000..82e54a73d172 > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile-voyager.dts > @@ -0,0 +1,20 @@ > +// SPDX-License-Identifier: BSD-3-Clause > +/* > + * Copyright (c) 2020, Konrad Dybcio > + */ > + > +/dts-v1/; > + > +#include "sdm630-sony-xperia-nile.dtsi" > + > +/ { > + model = "SoMC Voyager-RoW"; > + compatible = "sony,voyager-row", "qcom,sdm630", "qcom,sdm630-mtp"; > + > + chosen { > + framebuffer@9d400000 { > + reg = <0 0x9d400000 0 (2160 * 1080 * 4)>; > + height = <2160>; > + }; > + }; > +}; > diff --git a/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi b/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi > new file mode 100644 > index 000000000000..af75ab211b5f > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi > @@ -0,0 +1,135 @@ > +// SPDX-License-Identifier: BSD-3-Clause > +/* > + * Copyright (c) 2020, Konrad Dybcio > + */ > + > +/dts-v1/; > + > +#include "sdm630.dtsi" > +#include "pm660.dtsi" > +#include "pm660l.dtsi" > +#include > +#include > +#include > + > +/ { > + /* required for bootloader to select correct board */ > + qcom,msm-id = <318 0>; > + qcom,board-id = <8 1>; > + qcom,pmic-id = <0x1001b 0x101011a 0x00 0x00 0x1001b 0x201011a 0x00 0x00>; > + > + /* This part enables graphical output via bootloader-enabled display */ > + chosen { > + bootargs = "earlycon=tty0 console=tty0"; > + > + #address-cells = <2>; > + #size-cells = <2>; > + ranges; > + > + stdout-path = "framebuffer0"; > + > + framebuffer0: framebuffer@9d400000 { > + compatible = "simple-framebuffer"; Please check the indentation here. > + reg = <0 0x9d400000 0 (1920 * 1080 * 4)>; > + width = <1080>; > + height = <1920>; > + stride = <(1080 * 4)>; > + format = "a8r8g8b8"; > + status= "okay"; > + }; > + }; > + > + reserved-memory { > + #address-cells = <2>; > + #size-cells = <2>; > + ranges; > + > + ramoops@ffc00000 { > + compatible = "ramoops"; > + reg = <0x0 0xffc00000 0x0 0x100000>; > + record-size = <0x10000>; > + console-size = <0x60000>; > + ftrace-size = <0x10000>; > + pmsg-size = <0x20000>; > + ecc-size = <16>; > + status = "okay"; > + }; > + > + debug_region@ffb00000 { > + reg = <0x00 0xffb00000 0x00 0x100000>; > + no-map; > + }; > + > + removed_region@85800000 { > + reg = <0x00 0x85800000 0x00 0x3700000>; > + no-map; > + }; > + }; > + > + soc { > + gpio_keys { /soc is for mmio devices, as such gpio_keys should be moved outside "soc". Regards, Bjorn > + status = "okay"; > + compatible = "gpio-keys"; > + input-name = "gpio-keys"; > + #address-cells = <1>; > + #size-cells = <0>; > + autorepeat; > + > + camera_focus { > + label = "Camera Focus"; > + gpios = <&tlmm 64 GPIO_ACTIVE_LOW>; > + linux,input-type = <1>; > + linux,code = ; > + debounce-interval = <15>; > + }; > + > + camera_snapshot { > + label = "Camera Snapshot"; > + gpios = <&tlmm 113 GPIO_ACTIVE_LOW>; > + linux,input-type = <1>; > + linux,code = ; > + debounce-interval = <15>; > + }; > + > + vol_down { > + label = "Volume Down"; > + gpios = <&pm660l_gpios 7 GPIO_ACTIVE_LOW>; > + linux,input-type = <1>; > + linux,code = ; > + gpio-key,wakeup; > + debounce-interval = <15>; > + }; > + }; > + > + sdhci@c0c4000 { > + status = "okay"; > + > + /* SoMC Nile platform's eMMC doesn't support HS200 mode */ > + /delete-property/ mmc-hs200-1_8v; > + }; > + > + i2c@c175000 { > + status = "okay"; > + > + /* Synaptics touchscreen */ > + }; > + > + i2c@c176000 { > + status = "okay"; > + > + /* SMB1351 charger */ > + }; > + > + /* I2C3, 4, 5, 7 and 8 are disabled on this board. */ > + > + i2c@c1b6000 { > + status = "okay"; > + > + /* NXP NFC */ > + }; > + > + serial@c1af000 { > + status = "okay"; > + }; > + }; > +}; > -- > 2.27.0 >