Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2259716rdb; Mon, 20 Nov 2023 06:33:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IFX1mnvhoot2DjxQS0LAwUbBATdkdSS6k7dch0Czfk1PDt1EHf3BgK/SP3Jh8hKdJr0BxmZ X-Received: by 2002:a05:6a20:1595:b0:13a:e955:d958 with SMTP id h21-20020a056a20159500b0013ae955d958mr6424635pzj.7.1700490804456; Mon, 20 Nov 2023 06:33:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700490804; cv=none; d=google.com; s=arc-20160816; b=q/RcMBBGk3Ujt4JaY0eWM/Xxypp6n1PMM2/TElaOLihCi7f1GidvSBNlQ/qTkj7yO9 LZW9geb8jEl33dzupcTUqywAHPV5qQvf+H5BC7ajTJBR64zGCgIMMNQTskvH/cSd4oxr iibDKi1pfHjGLLFBhMELQGjgwr9R1GG1bH9sOfddKs9zeEpwL0ZdPpVcG6Z97XJv6scO oCBDu5UHD7iZz6nUEPMsec6wtIVJt3HX5b8rFZemeO+Z1zVVghSuxHcIThkDfPUHZpEu 7pK4J7ASOq9qOhozdOeKjPcodScn0w4KK6UOl9GzhRwxutakVYDT52IP2dcsKnzWFIzo aOww== 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:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=zoAiFNMN3MBx2kHhT1jADxR7MaRBLjkeeIjTHILsATg=; fh=vXVfEEdd7tX1LDZFFvxSiba+dKvQxGxxzQq/Mp0c7J8=; b=MTvmCVXoFISWMihZbYrBF7cYViTK+C9ndUB+HuFZy1MWSADd8PPcvLn9ozVljEpNP7 YW/0HZbc5vx/dvdLIzWAHkIcJtIzCwbtNpEkwcXIVQQJKjRzUppuVt19FABNyXHZotoo dumIbHNyhPR95uDrMlT07gC54M+GPdmuw/ZPvmBcBq9z4ABAKfybCfWXMLEBEKvRpHB+ Jw2Zg5PjBJD0ZFjgPj8mhpo1YcIibSvwb3FAqkDp9snJ3rDAWomMPJZTWg66aWmr+bG4 O1Uy4F7oe7sMwVN4oz37wB+saSIuGdVpZmM5Wk1iehQuB3PPyCs4zrYeelEiPawAhiJ/ 3SEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wLqIKqSc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id bw26-20020a056a02049a00b005bddb7249d3si9118494pgb.414.2023.11.20.06.33.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 06:33:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wLqIKqSc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 91D92807BA2E; Mon, 20 Nov 2023 06:33:19 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233730AbjKTOdK (ORCPT + 99 others); Mon, 20 Nov 2023 09:33:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233616AbjKTOdI (ORCPT ); Mon, 20 Nov 2023 09:33:08 -0500 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E3CBCA for ; Mon, 20 Nov 2023 06:33:04 -0800 (PST) Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-9ae2cc4d17eso605567266b.1 for ; Mon, 20 Nov 2023 06:33:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700490783; x=1701095583; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=zoAiFNMN3MBx2kHhT1jADxR7MaRBLjkeeIjTHILsATg=; b=wLqIKqScIYCcun3mCJz1P+jobA3v7+iwXVMhRayzBO2SdVveMDYpag2OG5YOPpPR7I fAWz1F6oog/OuUn8hevDFJ1gkMJkCp/AlqFQQBfuGVD7ZGgqMurJvOErSkokwpU+Pdz3 wLICwLDuLHkGEsakeIAY3JUZzeAmVFId92byMfO5aC7RB/9gsN5ROoWdk/d5MUhRb3bA wkPPlt/XDHEW3u64L8MHUoxobod4w0Lk8fQKQw8hkZFiQR4d35gLlxC5XVs6hEOatcdc nrjvoQ9An1s45wa75Guuje7CdjuLJJpCX6OeAeirpi1tkPXxC2PiLkzwHUsWPtc+cWlL CLRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700490783; x=1701095583; h=content-transfer-encoding:in-reply-to:autocrypt: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=zoAiFNMN3MBx2kHhT1jADxR7MaRBLjkeeIjTHILsATg=; b=C/qHCHg6EBM2DPnfM/ZploMySt6jMWQatgekOKA+uG4TF7RHwVpBxZpTU+n50AjSw5 tIawAC3Ywe7/uJWWiKp7KFKAgF1XsUeVpff2wp2KFAocJG03X8JEkp5BGeAIcTebYDZn EJ9l6gQudp6ugTUXEQ8OiN1CM5FjkE20sC1lJsFfagmdsdLL2Ktu+flyamPst2Ra+CGX p8SEJd0ldGOmQnjJVUAO2tQGa+icHfhwhUekWl7b8XDYYAoN9Zd5K5MxEvzx6xfDKEhj 7iKxmThw70Q4kWSb2zOkc132suoYJWTzNhc5AEgVHMMjIAKUAFW6Bm1vY3iS9aDCVbux Jbcg== X-Gm-Message-State: AOJu0YyfpsZL7C4HTQRuh0+h759T+UgenwOqudgDPnHhM/GMJDTltLe2 ao1zz43HHJRJXsHM0UYGa2XZjQ== X-Received: by 2002:a17:906:2b56:b0:9d3:8d1e:cf0 with SMTP id b22-20020a1709062b5600b009d38d1e0cf0mr4432264ejg.54.1700490782974; Mon, 20 Nov 2023 06:33:02 -0800 (PST) Received: from [192.168.201.100] (178235187204.dynamic-4-waw-k-2-3-0.vectranet.pl. [178.235.187.204]) by smtp.gmail.com with ESMTPSA id mf3-20020a170906cb8300b009f28db2b702sm3912586ejb.209.2023.11.20.06.33.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Nov 2023 06:33:02 -0800 (PST) Message-ID: <2085c7a2-046a-4ef0-99b7-1beef0d8d2cb@linaro.org> Date: Mon, 20 Nov 2023 15:33:00 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 3/3] arm64: dts: qcom: Add device tree for Xiaomi Mi 11 Ultra Content-Language: en-US To: wuxilin123@gmail.com, Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kees Cook , Tony Luck , "Guilherme G. Piccoli" Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-hardening@vger.kernel.org References: <20231021-sakuramist-mi11u-v2-0-fa82c91ecaf0@gmail.com> <20231021-sakuramist-mi11u-v2-3-fa82c91ecaf0@gmail.com> From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/bJ5O7b6cXYxwbBd9xKP7MICh5YA0DcCjJSOum BB/OmIWU6X+LZW6P88ZmHe+KeyABLMP5s1tJNK1j4ntT7mECcWZDzafPWF4F6m4WJOG27kTJ HGWdmtO+RvadOVi6CoUDqALsmfS3MUG5Pj2Ne9+0jRg4hEnB92AyF9rW2G3qisFcwPgvatt7 TXD5E38mLyOPOUyXNj9XpDbt1hNwKQfiidmPh5e7VNAWRnW1iCMMoKqzM1Anzq7e5Afyeifz zRcQPLaqrPjnKqZGL2BKQSZDh6NkI5ZLRhhHQf61fkWcUpTp1oDC6jWVfT7hwRVIQLrrNj9G MpPzrlN4YuAqKeIer1FMt8cq64ifgTzxHzXsMcUdclzq2LTk2RXaPl6Jg/IXWqUClJHbamSk t1bfif3SnmhA6TiNvEpDKPiT3IDs42THU6ygslrBxyROQPWLI9IL1y8S6RtEh8H+NZQWZNzm UQ3imZirlPjxZtvz1BtnnBWS06e7x/UEAguj7VHCuymVgpl2Za17d1jj81YN5Rp5L9GXxkV1 aUEwONM3eCI3qcYm5JNc5X+JthZOWsbIPSC1Rhxz3JmWIwP1udr5E3oNRe9u2LIEq+wH/toH kpPDhTeMkvt4KfE5m5ercid9+ZXAqoaYLUL4HCEw+HW0DXcKDwARAQABzShLb25yYWQgRHli Y2lvIDxrb25yYWQuZHliY2lvQGxpbmFyby5vcmc+wsGOBBMBCAA4FiEEU24if9oCL2zdAAQV R4cBcg5dfFgFAmQ5bqwCGwMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQR4cBcg5dfFjO BQ//YQV6fkbqQCceYebGg6TiisWCy8LG77zV7DB0VMIWJv7Km7Sz0QQrHQVzhEr3trNenZrf yy+o2tQOF2biICzbLM8oyQPY8B///KJTWI2khoB8IJSJq3kNG68NjPg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76UQXh3a9zpwh3dk8i bhN/URmCOTH+LHNJYN/MxY8wuukq877DWB7k86pBs5IDLAXmW8v3gIDWyIcgYqb2v8QO2Mqx YMqL7UZxVLul4/JbllsQB8F/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: <20231021-sakuramist-mi11u-v2-3-fa82c91ecaf0@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,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 groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 20 Nov 2023 06:33:19 -0800 (PST) On 21.10.2023 12:20, Xilin Wu via B4 Relay wrote: > From: Xilin Wu > > Add support for Xiaomi Mi 11 Ultra. This commit brings support for: > * Front and rear display panels (initialized by bootloader) > * USB > * UFS > * PCIe0 > * Thermistor sensors > * ADSP/CDSP/Modem/SLPI > * IR Transmitter > * RTC provided by PMK8350 > * Buttons > > To create a working boot image, you need to run: > cat arch/arm64/boot/Image.gz arch/arm64/boot/dts/qcom/sm8350-xiaomi-\ > star.dtb > .Image.gz-dtb > > mkbootimg \ > --kernel .Image.gz-dtb \ > --ramdisk some_initrd.img \ > --pagesize 4096 \ > --base 0x0 \ > --kernel_offset 0x8000 \ > --ramdisk_offset 0x1000000 \ > --tags_offset 0x100 \ > --cmdline "SOME_CMDLINE" \ > --dtb_offset 0x1f00000 \ > --header_version 1 \ > --os_version 14.0.0 \ > --os_patch_level 2099-12 \ > -o boot.img-xiaomi-star > > Then, you can flash it to slot b on the device: > > // You have to either pull vbmeta{"","_system"} from > // /dev/block/bootdevice/by-name/ or build one as a part of AOSP build process > fastboot --disable-verity --disable-verification flash vbmeta_b vbmeta.img > fastboot --disable-verity --disable-verification flash vbmeta_system_b \ > vbmeta_system.img > > fastboot flash boot_b boot.img-xiaomi-star > fastboot erase dtbo_b > fastboot set_active b > fastboot reboot > > Signed-off-by: Xilin Wu > --- [...] > + pmr735a_s1: smps1 { > + regulator-name = "pmr735a_s1"; > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1280000>; > + }; You probably want initial mode on this pmic too [...] > + > +&ufs_mem_hc { > + reset-gpios = <&tlmm 203 GPIO_ACTIVE_LOW>; > + vcc-supply = <&vreg_l7b_2p96>; > + vcc-max-microamp = <800000>; > + vccq-supply = <&vreg_l9b_1p2>; > + vccq-max-microamp = <900000>; > + vdd-hba-supply = <&vreg_l9b_1p2>; These regulators need regulator-allow-set-mode and allowed-modes Konrad [...] > \ No newline at end of file > And this needs to be fixed looks good otherwise, I think! Konrad