Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3271253lfo; Mon, 23 May 2022 00:23:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfKse1VMA3TgKPAxMi88rXVIo43JCYSJ8qYkGRGu1xgrOqNtWurptXjodom35Y1nf/oLrr X-Received: by 2002:aa7:8645:0:b0:518:1662:9e8d with SMTP id a5-20020aa78645000000b0051816629e8dmr22390790pfo.25.1653290637950; Mon, 23 May 2022 00:23:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653290637; cv=none; d=google.com; s=arc-20160816; b=eLC+4FTBiG9Qz/6blTOXp6RfoxAcGxbIlJjyiKFTIm+vk0A2iuJ6vldU0Ks251J99g KXcY8FuT66PyuLTtbOc4tmzpUpbop1OXcfowUg/aBs+iiwGUaMX2uNYgTMisWbeKER7S H/ix8q8Pz1wxCz4DpUeBYtZG465NQgwoaAghsyu5tzJTM/7NcDb6jjieJ+pyi4Nh5Z+3 XQRK7JkBgs/OSXuIX91wOnxnnoyyzaDGrDHD33gbY7XF6wOuWAioQtOTK/EiRl+uQDzf OPB+og5mm4NFmUrvO2KB9NcAK0E6qeaX19vg7j8elBhta1kPJRxMh67nwhNBobAbBaOK jT8Q== 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; bh=+iPS1q/KVRfjbbc4Vi2KnuRsRGJ3O+eLX5yai50Sa7s=; b=eYVXsPhJ2GpVFAKZpxA08+b0H3W0IojtbTrP+ab4Qzx3DMuM6MbJ8ad2S3VWpwu0gp qI+Ulsr4LrWPwb+uSZc+thbGb8veJcsX7Z22nzTJNjx2pwwFk5564bNP264UnoCIH+UJ /k1OwVyrFvwHXFL17SVYEHSfnC2vfd3ai9vBOZZGw2aRWQnmHpgPBMKUDd6QEqesNi5M z+lY928eoYBgTKCbPraJAM+ZwEnhJUk6Mc5g5K7Kl9zCcUlSwbyEeiKeX2KCQTirs5KR lm3xj1sNwMolRVP8zEbJk9JKh4SZpClTn1hTI8QkroJEyEvgonQFCNhkU+jKdLfMGUVG MY8Q== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 21-20020a630415000000b003c620dacf86si9098586pge.818.2022.05.23.00.23.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 00:23:57 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 10004B226E; Sun, 22 May 2022 23:38:15 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240691AbiEVIuP (ORCPT + 99 others); Sun, 22 May 2022 04:50:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231611AbiEVIuN (ORCPT ); Sun, 22 May 2022 04:50:13 -0400 Received: from relay04.th.seeweb.it (relay04.th.seeweb.it [5.144.164.165]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71D3A3E5F4; Sun, 22 May 2022 01:50:09 -0700 (PDT) Received: from [192.168.1.101] (abxh89.neoplus.adsl.tpnet.pl [83.9.1.89]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id 1D998205BF; Sun, 22 May 2022 10:50:06 +0200 (CEST) Message-ID: <5368fec8-89a1-0360-bca8-d7fab79b2069@somainline.org> Date: Sun, 22 May 2022 10:50:05 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH 2/2] Add support for Xiaomi MIX 3 (perseus) smartpohone. Content-Language: en-US To: Junhao Xie , linux-arm-msm@vger.kernel.org Cc: agross@kernel.org, bjorn.andersson@linaro.org, robh+dt@kernel.org, keescook@chromium.org, anton@enomsg.org, ccross@android.com, tony.luck@intel.com, angelogioacchino.delregno@somainline.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220521053947.1375824-1-bigfoot@classfun.cn> <20220521053947.1375824-2-bigfoot@classfun.cn> From: Konrad Dybcio In-Reply-To: <20220521053947.1375824-2-bigfoot@classfun.cn> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 21.05.2022 07:39, Junhao Xie wrote: > Currently working features: > - UFS > - GPU > - Video decode/encode > - USB Type C port in peripheral mode > - Modem (LTE / SMS) > - Four buttons (AI/Power/VolUp/VolDown) > - Bluetooth > - Wi-Fi > > Signed-off-by: Junhao Xie > --- > arch/arm64/boot/dts/qcom/Makefile | 1 + > .../boot/dts/qcom/sdm845-xiaomi-perseus.dts | 799 ++++++++++++++++++ > 2 files changed, 800 insertions(+) > create mode 100644 arch/arm64/boot/dts/qcom/sdm845-xiaomi-perseus.dts > > diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile > index f9e6343acd03..af23c3bd3e81 100644 > --- a/arch/arm64/boot/dts/qcom/Makefile > +++ b/arch/arm64/boot/dts/qcom/Makefile > @@ -106,6 +106,7 @@ dtb-$(CONFIG_ARCH_QCOM) += sdm845-sony-xperia-tama-akari.dtb > dtb-$(CONFIG_ARCH_QCOM) += sdm845-sony-xperia-tama-akatsuki.dtb > dtb-$(CONFIG_ARCH_QCOM) += sdm845-sony-xperia-tama-apollo.dtb > dtb-$(CONFIG_ARCH_QCOM) += sdm845-xiaomi-beryllium.dtb > +dtb-$(CONFIG_ARCH_QCOM) += sdm845-xiaomi-perseus.dtb > dtb-$(CONFIG_ARCH_QCOM) += sdm845-shift-axolotl.dtb > dtb-$(CONFIG_ARCH_QCOM) += sdm850-lenovo-yoga-c630.dtb > dtb-$(CONFIG_ARCH_QCOM) += sdm850-samsung-w737.dtb > diff --git a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-perseus.dts b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-perseus.dts > new file mode 100644 > index 000000000000..a049936f2a96 > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-perseus.dts > @@ -0,0 +1,799 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Copyright (c) 2021, BigfootACA > + */ > + > +/dts-v1/; > + > +#include This one is already included in sdm845.dtsi > +#include > +#include > +#include > +#include "sdm845.dtsi" > +#include "pm8998.dtsi" > +#include "pmi8998.dtsi" > + > +/* > + * Delete following upstream (sdm845.dtsi) reserved > + * memory mappings which are different in this device. > + */ > +/delete-node/ &rmtfs_mem; > +/delete-node/ &adsp_mem; > +/delete-node/ &wlan_msa_mem; > +/delete-node/ &mpss_region; > +/delete-node/ &venus_mem; > +/delete-node/ &cdsp_mem; > +/delete-node/ &mba_region; > +/delete-node/ &slpi_mem; > +/delete-node/ &spss_mem; > + > +/ { > + model = "Xiaomi MIX 3"; I think this one still had "Mi" in the name. > + compatible = "xiaomi,perseus", "qcom,sdm845"; > + chassis-type = "handset"; > + > + /* required for bootloader to select correct board */ > + qcom,board-id = <0x63 0x0>; > + qcom,msm-id = <321 0x20001>; > + > + aliases { > + serial0 = &uart9; > + hsuart0 = &uart6; > + bluetooth0 = &bluetooth; > + wifi0 = &wifi; > + display0 = &framebuffer0; Please sort these alphabetically and check if the display0 alias is even necessary > + }; > + > + chosen { > + #address-cells = <2>; > + #size-cells = <2>; > + ranges; > + > + // For simplefb hack Not sure if this comment is necesary, but if you think so, please make it /* like this */ > + stdout-path = "display0"; This may be superfluous > + framebuffer0: framebuffer@9d400000 { > + status = "okay"; This is definitely not necessary > + compatible = "simple-framebuffer"; > + reg = <0 0x9D400000 0 0x2400000>; Please use lowercase hex > + width = <1080>; > + height = <2340>; > + stride = <(1080 * 4)>; > + format = "a8r8g8b8"; > + }; > + }; > + > + vph_pwr: vph-pwr-regulator { > + compatible = "regulator-fixed"; > + regulator-name = "vph_pwr"; > + regulator-min-microvolt = <3700000>; > + regulator-max-microvolt = <3700000>; > + }; > + > + /* > + * Apparently RPMh does not provide support for PM8998 S4 because it > + * is always-on; model it as a fixed regulator. > + */ > + vreg_s4a_1p8: pm8998-smps4 { > + compatible = "regulator-fixed"; > + regulator-name = "vreg_s4a_1p8"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-always-on; > + regulator-boot-on; > + vin-supply = <&vph_pwr>; > + }; > + > + disp_vci_vreg: disp_vci_vreg { No underscores in node names, applies to all occuences. > + compatible = "regulator-fixed"; > + regulator-name = "disp_vci_vreg"; > + start-delay-us = <4000>; > + regulator-always-on; > + regulator-boot-on; > + enable-active-high; > + gpio = <&tlmm 99 0>; GPIO_ACTIVE_HIGH, applies to all occurences > + }; > + > + disp_vddio_vreg: disp_vddio_vreg { > + compatible = "regulator-fixed"; > + regulator-name = "disp_vddio_vreg"; > + startup-delay-us = <4000>; > + regulator-always-on; > + regulator-boot-on; > + enable-active-high; > + gpio = <&tlmm 79 0>; > + }; > + > + gpio_keys { > + compatible = "gpio-keys"; > + autorepeat; Not sure if you want autorepeat on the AI key. > + > + pinctrl-names = "default"; > + pinctrl-0 = <&vol_up_pin_a &ai_key_ctrl>; > + > + vol-up { > + label = "Volume Up"; > + linux,code = ; > + gpios = <&pm8998_gpio 6 GPIO_ACTIVE_LOW>; > + debounce-interval = <15>; > + }; > + > + ai-key { > + label = "AI Key"; > + linux,code = ; > + gpios = <&tlmm 44 GPIO_ACTIVE_LOW>; > + debounce-interval = <39>; > + }; Sort alphabetically, please. > + }; > + > + reserved-memory { > + rmtfs_mem: memory@f6301000 { > + compatible = "qcom,rmtfs-mem"; > + reg = <0 0xf6301000 0 0x200000>; > + no-map; > + > + qcom,client-id = <1>; > + qcom,vmid = <15>; > + }; > + > + adsp_mem: memory@8c500000 { > + reg = <0 0x8c500000 0 0x1e00000>; > + no-map; > + }; > + > + wlan_msa_mem: memory@8e300000 { > + reg = <0 0x8e300000 0 0x100000>; > + no-map; > + }; > + > + mpss_region: memory@8e400000 { > + reg = <0 0x8e400000 0 0x7800000>; > + no-map; > + }; > + > + venus_mem: memory@95c00000 { > + reg = <0 0x95c00000 0 0x500000>; > + no-map; > + }; > + > + cdsp_mem: memory@96100000 { > + reg = <0 0x96100000 0 0x800000>; > + no-map; > + }; > + > + mba_region: memory@96900000 { > + reg = <0 0x96900000 0 0x200000>; > + no-map; > + }; > + > + slpi_mem: memory@96b00000 { > + reg = <0 0x96b00000 0 0x1400000>; > + no-map; > + }; > + > + spss_mem: memory@97f00000 { > + reg = <0 0x97f00000 0 0x100000>; > + no-map; > + }; > + > + cont_splash_region: memory@9d400000 { > + compatible = "removed-dma-pool"; > + reg = <0 0x9D400000 0 0x02400000>; Use lowercase hex, please. > + no-map; > + }; > + > + ramoops: ramoops@b0000000 { > + compatible = "ramoops"; > + reg = <0 0xb0000000 0 0x00400000>; Please remove leading zeroes from the size value. Also applies to all other encounters in this file. > + record-size = <0x40000>; /*256x1024*/ Not sure if this comment is necessary, but if you want to keep it, add spaces after the opening and before the closing. > + console-size = <0x40000>; > + ftrace-size = <0x40000>; > + pmsg-size = <0x200000>; > + ecc-size = <0x0>; If it's 0, remove it. Might be useful to set it to 16 though, as this memory easily gets corrupted on reboots. > + }; > + }; > +}; > + > +&adsp_pas { > + status = "okay"; > + firmware-name = "qcom/sdm845/xiaomi/adsp.mbn"; > +}; > + > +&apps_rsc { > + pm8998-rpmh-regulators { > + compatible = "qcom,pm8998-rpmh-regulators"; > + qcom,pmic-id = "a"; > + vdd-s1-supply = <&vph_pwr>; > + vdd-s2-supply = <&vph_pwr>; > + vdd-s3-supply = <&vph_pwr>; > + vdd-s4-supply = <&vph_pwr>; > + vdd-s5-supply = <&vph_pwr>; > + vdd-s6-supply = <&vph_pwr>; > + vdd-s7-supply = <&vph_pwr>; > + vdd-s8-supply = <&vph_pwr>; > + vdd-s9-supply = <&vph_pwr>; > + vdd-s10-supply = <&vph_pwr>; > + vdd-s11-supply = <&vph_pwr>; > + vdd-s12-supply = <&vph_pwr>; > + vdd-s13-supply = <&vph_pwr>; > + vdd-l1-l27-supply = <&vreg_s7a_1p025>; > + vdd-l2-l8-l17-supply = <&vreg_s3a_1p35>; > + vdd-l3-l11-supply = <&vreg_s7a_1p025>; > + vdd-l4-l5-supply = <&vreg_s7a_1p025>; > + vdd-l6-supply = <&vph_pwr>; > + vdd-l7-l12-l14-l15-supply = <&vreg_s5a_2p04>; > + vdd-l9-supply = <&vreg_bob>; > + vdd-l10-l23-l25-supply = <&vreg_bob>; > + vdd-l13-l19-l21-supply = <&vreg_bob>; > + vdd-l16-l28-supply = <&vreg_bob>; > + vdd-l18-l22-supply = <&vreg_bob>; > + vdd-l20-l24-supply = <&vreg_bob>; > + vdd-l26-supply = <&vreg_s3a_1p35>; > + vin-lvs-1-2-supply = <&vreg_s4a_1p8>; > + > + vreg_s2a_1p1: smps2 { > + regulator-always-on; > + regulator-min-microvolt = <1100000>; > + regulator-max-microvolt = <1100000>; > + }; > + > + vreg_s3a_1p35: smps3 { > + regulator-min-microvolt = <1352000>; > + regulator-max-microvolt = <1352000>; > + }; > + > + vreg_s5a_2p04: smps5 { > + regulator-always-on; > + regulator-min-microvolt = <1904000>; > + regulator-max-microvolt = <2040000>; > + }; > + > + vreg_s7a_1p025: smps7 { > + regulator-always-on; > + regulator-min-microvolt = <900000>; > + regulator-max-microvolt = <1028000>; > + }; > + > + vdda_ufs1_core: > + vreg_l1a_0p875: ldo1 { > + regulator-min-microvolt = <880000>; > + regulator-max-microvolt = <880000>; > + regulator-initial-mode = ; > + }; > + > + vreg_l2a_0p875: ldo2 { > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1200000>; > + regulator-initial-mode = ; > + regulator-always-on; > + }; > + > + reg_l3a_0p875: ldo3 { > + regulator-min-microvolt = <1000000>; > + regulator-max-microvolt = <1000000>; > + regulator-initial-mode = ; > + }; > + > + vreg_l5a_0p8: ldo5 { > + regulator-min-microvolt = <800000>; > + regulator-max-microvolt = <800000>; > + regulator-initial-mode = ; > + }; > + > + vreg_l6a_1p8: ldo6 { > + regulator-min-microvolt = <1856000>; > + regulator-max-microvolt = <1856000>; > + regulator-initial-mode = ; > + }; > + > + vreg_l7a_1p8: ldo7 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-initial-mode = ; > + }; > + > + vreg_l8a_1p2: ldo8 { > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1248000>; > + regulator-initial-mode = ; > + }; > + > + vreg_l9a_2p95: ldo9 { > + regulator-min-microvolt = <1704000>; > + regulator-max-microvolt = <2928000>; > + regulator-initial-mode = ; > + }; > + > + vreg_l10a_2p95: ldo10 { > + regulator-min-microvolt = <1704000>; > + regulator-max-microvolt = <2928000>; > + regulator-initial-mode = ; > + }; > + > + vreg_l11a_1p05: ldo11 { > + regulator-min-microvolt = <1000000>; > + regulator-max-microvolt = <1048000>; > + regulator-initial-mode = ; > + }; > + > + vreg_l12a_1p8: ldo12 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-initial-mode = ; > + }; > + > + vreg_l13a_2p95: ldo13 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <2960000>; > + regulator-initial-mode = ; > + }; > + > + vreg_l14a_1p8: ldo14 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-always-on; > + regulator-boot-on; > + regulator-initial-mode = ; > + }; > + > + vreg_l15a_1p8: ldo15 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-initial-mode = ; > + }; > + > + vreg_l16a_2p7: ldo16 { > + regulator-min-microvolt = <2704000>; > + regulator-max-microvolt = <2704000>; > + regulator-initial-mode = ; > + }; > + > + vreg_l17a_1p3: ldo17 { > + regulator-always-on; > + regulator-min-microvolt = <1304000>; > + regulator-max-microvolt = <1304000>; > + regulator-initial-mode = ; > + }; > + > + vreg_l18a_2p9: ldo18 { > + regulator-min-microvolt = <2704000>; > + regulator-max-microvolt = <2960000>; > + regulator-initial-mode = ; > + }; > + > + vreg_l19a_3p1: ldo19 { > + regulator-min-microvolt = <2856000>; > + regulator-max-microvolt = <3104000>; > + regulator-initial-mode = ; > + }; > + > + vreg_l20a_2p95: ldo20 { > + regulator-min-microvolt = <2704000>; > + regulator-max-microvolt = <2960000>; > + regulator-initial-mode = ; > + }; > + > + vreg_l21a_2p95: ldo21 { > + regulator-min-microvolt = <2704000>; > + regulator-max-microvolt = <2960000>; > + regulator-initial-mode = ; > + }; > + > + vreg_l22a_3p3: ldo22 { > + regulator-min-microvolt = <2864000>; > + regulator-max-microvolt = <3312000>; > + regulator-initial-mode = ; > + }; > + > + vreg_l23a_3p3: ldo23 { > + regulator-min-microvolt = <3000000>; > + regulator-max-microvolt = <3312000>; > + regulator-initial-mode = ; > + }; > + > + vreg_l24a_3p075: ldo24 { > + regulator-min-microvolt = <3088000>; > + regulator-max-microvolt = <3088000>; > + regulator-initial-mode = ; > + }; > + > + vreg_l25a_3p3: ldo25 { > + regulator-always-on; > + regulator-min-microvolt = <3000000>; > + regulator-max-microvolt = <3312000>; > + regulator-initial-mode = ; > + }; > + > + vdda_mipi_dsi0_1p2: > + vdda_ufs1_1p2: > + vreg_l26a_1p2: ldo26 { > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1200000>; > + regulator-initial-mode = ; > + regulator-boot-on; > + }; > + > + vreg_l28a_3p0: ldo28 { > + regulator-min-microvolt = <2856000>; > + regulator-max-microvolt = <3008000>; > + regulator-initial-mode = ; > + regulator-always-on; > + }; > + > + vreg_lvs1a_1p8: lvs1 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-always-on; > + }; > + > + vreg_lvs2a_1p8: lvs2 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-always-on; > + }; > + }; > + > + pmi8998-rpmh-regulators { > + compatible = "qcom,pmi8998-rpmh-regulators"; > + qcom,pmic-id = "b"; > + vdd-bob-supply = <&vph_pwr>; Add a newline, please. > + vreg_bob: bob { > + regulator-min-microvolt = <3312000>; > + regulator-max-microvolt = <3600000>; > + regulator-initial-mode = ; > + regulator-allow-bypass; > + }; > + }; > + > + pm8005-rpmh-regulators { > + compatible = "qcom,pm8005-rpmh-regulators"; > + qcom,pmic-id = "c"; > + vdd-s1-supply = <&vph_pwr>; > + vdd-s2-supply = <&vph_pwr>; > + vdd-s3-supply = <&vph_pwr>; > + vdd-s4-supply = <&vph_pwr>; Add a newline, please. > + vreg_smp3c_0p6: smps3 { > + regulator-min-microvolt = <600000>; > + regulator-max-microvolt = <600000>; > + regulator-always-on; > + }; > + }; > +}; > + > +&cdsp_pas { > + status = "okay"; > + firmware-name = "qcom/sdm845/xiaomi/cdsp.mbn"; > +}; > + > +&dsi0 { > + status = "okay"; > + vdda-supply = <&vdda_mipi_dsi0_1p2>; > + > + panel@0 { > + compatible = "samsung,fhd-ea8076"; > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <0>; > + vddio-supply = <&vreg_l14a_1p8>; > + reset-gpios = <&tlmm 6 GPIO_ACTIVE_LOW>; > + pinctrl-names = "default"; > + pinctrl-0 = <&sde_dsi_active &sde_te_active>; reg compatible various properties #-cells > + port { > + samsung_fhd_ea8076_in_0: endpoint { > + remote-endpoint = <&dsi0_out>; > + }; > + }; > + }; > +}; > + > +&dsi0_out { > + remote-endpoint = <&samsung_fhd_ea8076_in_0>; > + data-lanes = <0 1 2 3>; > +}; > + > +&dsi0_phy { > + status = "okay"; > + vdds-supply = <&vreg_l1a_0p875>; > +}; > + > +&gcc { > + protected-clocks = , > + , > + , > + , > + ; > +}; > + > +&gmu { > + status = "okay"; > +}; > + > +&gpu { > + status = "okay"; > + > + zap-shader { > + memory-region = <&gpu_mem>; > + firmware-name = "qcom/sdm845/xiaomi/a630_zap.mbn"; > + }; > +}; > + > +&ipa { > + status = "okay"; > + memory-region = <&ipa_fw_mem>; > + firmware-name = "qcom/sdm845/xiaomi/ipa_fws.mbn"; > +}; > + > +&gpi_dma0 { > + status = "okay"; > +}; > + > +&gpi_dma1 { > + status = "okay"; > +}; > + > +&i2c3 { > + status = "okay"; > + #dma-cells = <3>; > + clock-frequency = <400000>; > + dmas = <&gpi_dma0 0 3 QCOM_GPI_I2C>, > + <&gpi_dma0 1 3 QCOM_GPI_I2C>; > + dma-names = "tx", "rx"; These DMA properties should be in sdm845.dtsi. > + > + /* NFC nq-nci @ 0x28 */ > + > +}; > + > +&i2c5 { > + status = "okay"; > + #dma-cells = <3>; > + clock-frequency = <400000>; > + dmas = <&gpi_dma0 0 5 QCOM_GPI_I2C>, > + <&gpi_dma0 1 5 QCOM_GPI_I2C>; > + dma-names = "tx", "rx"; > + > + /* Audio Codec tas2557 @ 0x4c */ > +}; > + > +&i2c10 { > + status = "okay"; > + #dma-cells = <3>; > + clock-frequency = <400000>; > + dmas = <&gpi_dma1 0 2 QCOM_GPI_I2C>, > + <&gpi_dma1 1 2 QCOM_GPI_I2C>; > + dma-names = "tx", "rx"; > + > + /* smb1355 charger @ 0x08, 0x0C */ While this is not necessarily code, please keep the hex lowercase. > + /* idtp9220 wireless charger @ 0x61 */ > +}; > + > +&i2c14 { > + status = "okay"; > + #dma-cells = <3>; > + clock-frequency = <400000>; > + dmas = <&gpi_dma1 0 6 QCOM_GPI_I2C>, > + <&gpi_dma1 1 6 QCOM_GPI_I2C>; > + dma-names = "tx", "rx"; > + > + /* stm fts touchscreen @ 0x49 */ > + /* focaltech touchscreen @ 0x38 */ > + /* atmel touchscreen @ 0x4a */ > +}; > + > +&mdss { > + status = "okay"; > +}; > + > +&mdss_mdp { > + status = "okay"; > +}; > + > +&mss_pil { > + status = "okay"; > + firmware-name = "qcom/sdm845/xiaomi/mba.mbn", "qcom/sdm845/xiaomi/modem.mbn"; > +}; > + > +&tlmm { > + sde_dsi_active: sde_dsi_active { No underscores in node names (between : and {, labels can have these), please. > + mux { Please drop the mux{} and config{}, you can do it like this instead: sde_dsi_active: sde-dsi-active { pins = "gpio6", "gpio52"; function = "gpio"; drive-strength = <8>; bias-disable; } > + pins = "gpio6", "gpio52"; > + function = "gpio"; > + }; > + > + config { > + pins = "gpio6", "gpio52"; > + drive-strength = <8>; /* 8 mA */ These comments are not necessary, since they basically repeat what the code syntax says. > + bias-disable = <0>; /* no pull */ This should be a boolean value (either bias-disable; is present or not). > + }; > + }; > + > + sde_dsi_suspend: sde_dsi_suspend { > + mux { > + pins = "gpio6", "gpio52"; > + function = "gpio"; > + }; > + > + config { > + pins = "gpio6", "gpio52"; > + drive-strength = <2>; /* 2 mA */ > + bias-pull-down; /* PULL DOWN */ > + }; > + }; > + > + sde_te_active: sde_te_active { > + mux { > + pins = "gpio10"; > + function = "mdp_vsync"; > + }; > + > + config { > + pins = "gpio10"; > + drive-strength = <2>; /* 2 mA */ > + bias-pull-down; /* PULL DOWN */ > + }; > + }; > + > + sde_te_suspend: sde_te_suspend { > + mux { > + pins = "gpio10"; > + function = "mdp_vsync"; > + }; > + > + config { > + pins = "gpio10"; > + drive-strength = <2>; /* 2 mA */ > + bias-pull-down; /* PULL DOWN */ > + }; > + }; > + > + ai_key_ctrl: ai_key_ctrl { > + mux { > + pins = "gpio44"; > + function = "gpio"; > + }; > + config { > + pins = "gpio44"; > + drive-strength = <2>; /* 2 mA */ > + bias-pull-up; /* PULL UP */ > + input-enable; > + }; > + }; > +}; > + > +&pm8998_gpio { > + vol_up_pin_a: vol-up-active { > + pins = "gpio6"; > + function = "normal"; > + input-enable; > + bias-pull-up; > + qcom,drive-strength = ; > + }; > +}; > + > +&pm8998_pon { > + resin { This definition should be moved to pm8998.dtsi (check how it's done on for example sm8350-sagami and pmk8350). > + compatible = "qcom,pm8941-resin"; > + interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>; > + debounce = <15625>; > + bias-pull-up; > + linux,code = ; > + }; > +}; > + > +&qupv3_id_0 { > + status = "okay"; > +}; > + > +&qupv3_id_1 { > + status = "okay"; > +}; > + > +&tlmm { > + gpio-reserved-ranges = <0 4>, <81 4>; > +}; > + > +&uart9 { > + status = "okay"; > +}; Uart9 goes after uart6. > + > +&uart6 { > + status = "okay"; > + > + bluetooth: bluetooth { > + compatible = "qcom,wcn3990-bt"; > + vddio-supply = <&vreg_s4a_1p8>; > + vddxo-supply = <&vreg_l7a_1p8>; > + vddrf-supply = <&vreg_l17a_1p3>; > + vddch0-supply = <&vreg_l25a_3p3>; > + max-speed = <3200000>; > + }; > +}; > + > + > +&usb_1 { > + status = "okay"; > + > + /* We'll use this as USB 2.0 only */ > + qcom,select-utmi-as-pipe-clk; > +}; > + > +&usb_1_dwc3 { > + dr_mode = "peripheral"; > + > + /* fastest mode for USB 2 */ > + maximum-speed = "high-speed"; > + > + /* Remove USB3 phy */ > + phys = <&usb_1_hsphy>; > + phy-names = "usb2-phy"; > +}; > + > +&usb_1_hsphy { > + status = "okay"; > + > + vdd-supply = <&vreg_l1a_0p875>; > + vdda-pll-supply = <&vreg_l12a_1p8>; > + vdda-phy-dpdm-supply = <&vreg_l24a_3p075>; > + > + qcom,imp-res-offset-value = <8>; > + qcom,hstx-trim-value = ; > + qcom,preemphasis-level = ; > + qcom,preemphasis-width = ; > +}; > + > +&usb_1_qmpphy { > + status = "okay"; > + > + vdda-phy-supply = <&vreg_l26a_1p2>; > + vdda-pll-supply = <&vreg_l1a_0p875>; > +}; > + > +&venus { This one is not sorted properly. > + status = "okay"; > + firmware-name = "qcom/sdm845/xiaomi/venus.mbn"; > +}; > + > +&ufs_mem_hc { > + status = "okay"; > + reset-gpios = <&tlmm 150 GPIO_ACTIVE_LOW>; > + vcc-supply = <&vreg_l20a_2p95>; > + vcc-max-microamp = <800000>; > +}; > + > +&ufs_mem_phy { > + status = "okay"; > + vdda-phy-supply = <&vdda_ufs1_core>; > + vdda-pll-supply = <&vdda_ufs1_1p2>; > +}; > + > +&wifi { > + status = "okay"; > + > + vdd-0.8-cx-mx-supply = <&vreg_l5a_0p8>; > + vdd-1.8-xo-supply = <&vreg_l7a_1p8>; > + vdd-1.3-rfa-supply = <&vreg_l17a_1p3>; > + vdd-3.3-ch0-supply = <&vreg_l25a_3p3>; > + vdd-3.3-ch1-supply = <&vreg_l23a_3p3>; > +}; > + > +/* PINCTRL - additions to nodes defined in sdm845.dtsi */ This comment is superfluous. > +&qup_uart6_default { > + pinmux { > + pins = "gpio45", "gpio46", "gpio47", "gpio48"; > + function = "qup6"; > + }; I'll let this instance of pinmux{} slip through, as it'd require more changes on the SoC DTSI side and also possibly in other devices' trees. I'll send a patch cleaning up sdm845* soon. > + > + cts { > + pins = "gpio45"; > + bias-disable; > + }; > + > + rts-tx { > + pins = "gpio46", "gpio47"; > + drive-strength = <2>; > + bias-disable; > + }; > + > + rx { > + pins = "gpio48"; > + bias-pull-up; > + }; > +};