Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3214025rwb; Tue, 8 Nov 2022 01:47:52 -0800 (PST) X-Google-Smtp-Source: AMsMyM6RTxgLes3zYP+HMqCYz1S07bYYpNatVtjVbQozVMemCy9SOwcVaQ7lZx2RQZYzRB+hSz8Y X-Received: by 2002:a17:907:7fa9:b0:791:a5c2:e25 with SMTP id qk41-20020a1709077fa900b00791a5c20e25mr53114851ejc.444.1667900872628; Tue, 08 Nov 2022 01:47:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667900872; cv=none; d=google.com; s=arc-20160816; b=X9VMQ261kbjZEbAJ2BXczMtjTyJ5MilDnIXQaUs1kv+fAeY9R2qNFLRt/7152ZUXKx Slwh4u0D1riznC5qZJzkyX+Bx43R6a4w+x0wlsYmqlqpj9F+OpKakLabXqjVP+jHskQk pnWd/M+YqiC+9Q1u2DaUqOwiexb9+9dje4bz8dVe6GLFtSsbClmqll5c8IvTL7rloFQd druG5LJ2WruqE0FoQTIxcu4JGmvayLgZqVf111T1r52Ddnd0M6KN4ogH50eEZF+N4OXo +CEtA4ToKSG80Sq2Q9RIo5PlncEYK8mOzQJ+JjwWeBoGq1vPm/o83pID/Zu6L+x497m2 gXvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=rOVmsonL+k/0HZVK2nxpFgpQMHWhsli4Q3QlCw0qmsE=; b=fpD8dCOYcq24+1i/2hw/n+AMv2KyP7HnJ5oOF/RfNJQYO+ty5Lxq918vrVQnNyqxGT CwfwQZ2gMz3MWe6HKMux5aTAGaDPTnlrIiKwvrNzCtcF+iT61V7K/B+YW1iVQnRjQS7n 9GrLPUz1zFK1GbLUDQ0NOSiYy2sPs1OK6i/EtLut69ibpN0NNu2qwv2lsI3rEfnn/bB6 FXKWa/MZjkmhUg2/hIMOBmey/MxdyTIfgwb/jhGjJ8XSxsqdlgaI2WoBei/AmDWjYBIy X1rjx2Cd6HHMmRKU5aP80/TZ6jilYawdj3jZgA8//sGmCJM7EbgYYntELEs2gs39JVE1 KxEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tDhHK71P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ew5-20020a056402538500b00460ba005641si10758403edb.171.2022.11.08.01.47.27; Tue, 08 Nov 2022 01:47:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tDhHK71P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233574AbiKHJaG (ORCPT + 89 others); Tue, 8 Nov 2022 04:30:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233790AbiKHJ3w (ORCPT ); Tue, 8 Nov 2022 04:29:52 -0500 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB08927DD1 for ; Tue, 8 Nov 2022 01:29:49 -0800 (PST) Received: by mail-lj1-x235.google.com with SMTP id a15so20174513ljb.7 for ; Tue, 08 Nov 2022 01:29:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=rOVmsonL+k/0HZVK2nxpFgpQMHWhsli4Q3QlCw0qmsE=; b=tDhHK71PxNsz0WNgtB/w97HLA516yj+UB6dkiAiSfyEHunUfai9u2vudUgCSjnZK4g XI212VYIzT3Z+8kAiNxqL44J0IDz9EM7L3a/5hY3TcY0mCcDlWjy1fKU610hHLUwsIQD fFP+Eh2u7g8oP0fWT2YC+pbmkzlY0bAnFBuEgUa5Ueb5UjR/UQGUMk9TspPhb7/vGvdX 4vjAT1iZDFUTnIOncRdoPRk5iPbMhvDc4tkiwBGsF7GV/R7SLGvcmlSeCL8pz6M0YM7T rw9ymsI/bExsNZV4Rxiq7izCA9+5l2J9B5A0HtYIj2ceFX1E3i31FYCC44Ssg9ZrBITd nXeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rOVmsonL+k/0HZVK2nxpFgpQMHWhsli4Q3QlCw0qmsE=; b=DupATUnHE02O7Nhk/Lb6ioyDlguDwtVkswnFaePx829TWJ1mnvr7DoqDIQHvDqs5H6 Uar9LLFkeSJubpfMOoW33ub1QGGVyVFP8kl+2eqEP1fwYvaPbS+ydJFNl5A2eo7TxJzC WOD1ho0V1QN80EWbnRR0y5lgRPkSnRF1/P9jmwGDDR7vM2INa5pkmSd8yYs09HfqFPfA 5ai4qqtEBJjU26OpwemGpmVKszYrYiVv9GoMhZ9uB23ZZXi5ta9iDfS6fGk5HEp4LmJF VqCqHnRxT12pIWklL/jE1Sb9+08uI8jvUal3bKxsbwEmCFFgCIxM26FKgxBEZl7q7yZk u8qg== X-Gm-Message-State: ACrzQf0W+lxtpeX9jdCsrvytZw1spYd0yw1vnxiuepjDZBG5DMIU7A3r /pJ1Ss/1PvmMdgEhqqXUJkqAXg== X-Received: by 2002:a2e:a211:0:b0:277:1888:e14b with SMTP id h17-20020a2ea211000000b002771888e14bmr6331047ljm.339.1667899788261; Tue, 08 Nov 2022 01:29:48 -0800 (PST) Received: from [192.168.0.20] (088156142199.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.199]) by smtp.gmail.com with ESMTPSA id o4-20020a05651205c400b0048ae518364dsm1721417lfo.148.2022.11.08.01.29.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Nov 2022 01:29:47 -0800 (PST) Message-ID: <13d80a37-9202-480c-94ec-13cb1abce305@linaro.org> Date: Tue, 8 Nov 2022 10:29:46 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v3 4/4] arm64: dts: qcom: add sdm670 and pixel 3a device trees Content-Language: en-US To: Richard Acayan , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Konrad Dybcio , Lorenzo Pieralisi , Robert Marko , Guru Das Srinagesh , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org References: <20221108030411.59409-1-mailingradian@gmail.com> <20221108030411.59409-5-mailingradian@gmail.com> From: Krzysztof Kozlowski In-Reply-To: <20221108030411.59409-5-mailingradian@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/11/2022 04:04, Richard Acayan wrote: > The Qualcomm Snapdragon 670 has been out for a while. Add a device tree > for it and the Google Pixel 3a as the first device. > > The Pixel 3a has the same bootloader issue as the Pixel 3 and will not work > on Android 10 bootloaders or later until it gets fixed for the Pixel 3. > > SoC Initial Features: > - power management > - clocks > - pinctrl > - eMMC > - USB 2.0 > - GENI I2C > - IOMMU > - RPMh > - interrupts > > Device-Specific Initial Features: > - side buttons (keys) > - regulators > - touchscreen > > Signed-off-by: Richard Acayan > --- > arch/arm64/boot/dts/qcom/Makefile | 1 + > .../boot/dts/qcom/sdm670-google-sargo.dts | 533 ++++++++ > arch/arm64/boot/dts/qcom/sdm670.dtsi | 1160 +++++++++++++++++ > 3 files changed, 1694 insertions(+) > create mode 100644 arch/arm64/boot/dts/qcom/sdm670-google-sargo.dts > create mode 100644 arch/arm64/boot/dts/qcom/sdm670.dtsi > > diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile > index b0558d3389e5..4eb5d8829efb 100644 > --- a/arch/arm64/boot/dts/qcom/Makefile > +++ b/arch/arm64/boot/dts/qcom/Makefile > @@ -124,6 +124,7 @@ dtb-$(CONFIG_ARCH_QCOM) += sdm630-sony-xperia-nile-voyager.dtb > dtb-$(CONFIG_ARCH_QCOM) += sdm632-fairphone-fp3.dtb > dtb-$(CONFIG_ARCH_QCOM) += sdm636-sony-xperia-ganges-mermaid.dtb > dtb-$(CONFIG_ARCH_QCOM) += sdm660-xiaomi-lavender.dtb > +dtb-$(CONFIG_ARCH_QCOM) += sdm670-google-sargo.dtb > dtb-$(CONFIG_ARCH_QCOM) += sdm845-cheza-r1.dtb > dtb-$(CONFIG_ARCH_QCOM) += sdm845-cheza-r2.dtb > dtb-$(CONFIG_ARCH_QCOM) += sdm845-cheza-r3.dtb > diff --git a/arch/arm64/boot/dts/qcom/sdm670-google-sargo.dts b/arch/arm64/boot/dts/qcom/sdm670-google-sargo.dts > new file mode 100644 > index 000000000000..fe3f61f8a348 > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/sdm670-google-sargo.dts > @@ -0,0 +1,533 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Device tree for Google Pixel 3a, adapted from google-blueline device tree, > + * xiaomi-lavender device tree, and oneplus-common device tree. > + * > + * Copyright (c) 2022, Richard Acayan. All rights reserved. > + */ > + > +/dts-v1/; > + > +#include > +#include > +#include > +#include > +#include "sdm670.dtsi" > +#include "pm660.dtsi" > +#include "pm660l.dtsi" > + > +/delete-node/ &mpss_region; > +/delete-node/ &venus_mem; > +/delete-node/ &wlan_msa_mem; > +/delete-node/ &cdsp_mem; > +/delete-node/ &mba_region; > +/delete-node/ &adsp_mem; > +/delete-node/ &ipa_fw_mem; > +/delete-node/ &ipa_gsi_mem; > +/delete-node/ &gpu_mem; > + > +/ { > + model = "Google Pixel 3a"; > + compatible = "google,sargo", "qcom,sdm670"; > + qcom,board-id = <0x00041e05 0>; > + qcom,msm-id = <321 0x20001>; These two are not allowed for your platform. If you tested your DTS, you would see: /: qcom,board-id: False schema does not allow [[269829, 0]] /: qcom,msm-id: False schema does not allow [[321, 131073]] This must be fixed. Best regards, Krzysztof