Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp443930rwi; Wed, 2 Nov 2022 13:52:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4E35M0Pav7oM0h73ZJwthAzQvj9sE6yjudkChqFDdShMRCsDJ7cTp+Y3bMGZrxgQ/9SBbf X-Received: by 2002:a17:907:d22:b0:78e:2788:51ae with SMTP id gn34-20020a1709070d2200b0078e278851aemr24792282ejc.689.1667422368828; Wed, 02 Nov 2022 13:52:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667422368; cv=none; d=google.com; s=arc-20160816; b=WecWTKdI7VrgUXijQdnmuIDHESjSTQUdq8dxZV1psDiwbBFYiEBHQZxZqjKIS/caHq lK4ceiSKKOSeJ1jeEJMzAVJiyNqKyk5f2EOGfuaRg4opNqhLYTz8+L4nE4kvdBE+SuHP x0d+DG0/jY/T4Ii+wcI9LIB79JUIMCX9WVs47YlBv2NgGh9jHUAC4cVFugMFTRNPImL4 FPHKv2+OCL6MiK4IjJYV4lJ/1k8q6MawfgYRWEg9EzsurVgJyfHOI8F4002a+ufqb08D qhggwZlLw+DlLkOqgPlTUevB8BTvzMiWT2fU1kb/JVbbwNODGziIU2d9T4UoWJQVbXBH NtHQ== 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:subject:user-agent:mime-version:date:message-id; bh=FDfmshxTlvJUrbW8hBxaANWZ1VAxxBTC5ZWCpYV/DCU=; b=RA8NOJo0MOVlImXGA1nafVo2ih82FY0dfEsvvzz5xIueGXhFoaTWy9DPJuae67w8xX 47finAQ/lyKHpBaDhLPWteqhbhebVNvkHRoCJnCOE3rWnm3IS0OXspIK5J9F6w1zgg37 n6PA1Eo7Ch8dSaAMQKvhI1PgqmiDpDdWY9d4B5k6y0fpWT0xV0Hke1WGpHSHVAMqqc3q kqU72X4u/Q1ztka70/9PjPOEbyQzBdaQf6WTTpyPAkN+I4ZhZ11nVqDh/8X6q37lMXCP ArDFEeU0E314m6CPhEWe1g8AqE7mf77CeJYOqBBMInHEQjdFB3RTIK1LRWApCZx78bW9 1Pcw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qf23-20020a1709077f1700b007adf9d2fa0fsi6568798ejc.947.2022.11.02.13.52.23; Wed, 02 Nov 2022 13:52:48 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231319AbiKBUok (ORCPT + 98 others); Wed, 2 Nov 2022 16:44:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231197AbiKBUoi (ORCPT ); Wed, 2 Nov 2022 16:44:38 -0400 Received: from relay03.th.seeweb.it (relay03.th.seeweb.it [IPv6:2001:4b7a:2000:18::164]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0207E64C4; Wed, 2 Nov 2022 13:44:36 -0700 (PDT) Received: from [192.168.31.208] (unknown [194.29.137.22]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id DC9A91F987; Wed, 2 Nov 2022 21:44:33 +0100 (CET) Message-ID: Date: Wed, 2 Nov 2022 21:44:36 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH 4/4] arm64: dts: qcom: add sdm670 and pixel 3a device trees To: Krzysztof Kozlowski , Richard Acayan , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Vinod Koul , Robin Murphy , Chanho Park , Thierry Reding , Stephan Gerhold , Lorenzo Pieralisi , Robert Marko , 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: <20221101235722.53955-1-mailingradian@gmail.com> <20221101235722.53955-5-mailingradian@gmail.com> <5f13efce-844c-dd21-4e22-16b849dc3fa2@linaro.org> From: Konrad Dybcio In-Reply-To: <5f13efce-844c-dd21-4e22-16b849dc3fa2@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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 02/11/2022 21:30, Krzysztof Kozlowski wrote: > On 02/11/2022 16:26, Konrad Dybcio wrote: >> On 02/11/2022 00:57, 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 | 519 +++++++ >>> arch/arm64/boot/dts/qcom/sdm670.dtsi | 1216 +++++++++++++++++ >>> 3 files changed, 1736 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..fa3dee78e442 >>> --- /dev/null >>> +++ b/arch/arm64/boot/dts/qcom/sdm670-google-sargo.dts >>> @@ -0,0 +1,519 @@ >>> +// 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>; >>> + >>> + aliases { }; >>> + >>> + chosen { >>> + stdout-path = "serial0:115200n8"; >>> + >>> + #address-cells = <2>; >>> + #size-cells = <2>; >>> + ranges; >>> + >>> + framebuffer@9c000000 { >>> + compatible = "simple-framebuffer"; >>> + reg = <0x0 0x9c000000 0x0 (1080 * 2220 * 4)>; >>> + width = <1080>; >>> + height = <2220>; >>> + stride = <(1080 * 4)>; >>> + format = "a8r8g8b8"; >>> + }; >>> + }; >>> + >>> + reserved-memory { >>> + #address-cells = <2>; >>> + #size-cells = <2>; >>> + >>> + mpss_region: mpss@8b000000 { >> Please call the nodes memory@ > I think the actual recommendation is to use the purpose as name: > > https://lore.kernel.org/linux-arm-msm/CAL_Jsq+66j8Y5y+PQ+mezkaxN1pfHFKz524YUF4Lz_OU5E-mZQ@mail.gmail.com/ > > https://devicetree-specification.readthedocs.io/en/latest/chapter3-devicenodes.html#reserved-memory-child-nodes > (second paragraph) Ok, my bad. Konrad > > > Best regards, > Krzysztof >