From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 36362392838 for ; Mon, 16 Mar 2026 11:57:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773662269; cv=none; b=a84FnEqRtlQvoUAjB4qL8KRhqiGPtk48GImXKFQ07+XIJq7bXN83Zl1eUirf27No7LwBpGtcU766CB25Z6Xh3yy5mbTiis30FBb5G5CcqtqvJ30EX6eM8oMnwpVnSmFi4rszqe9iVQMXbq7JNAQsgf2mbMHPZu6acyJdBOA/vH8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773662269; c=relaxed/simple; bh=nwj5GCIveUwQ3Fjk0FE5m6a282+tnjhshxs/LjAEP9A=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=MzKU87DNngmAEd3WdsMICX2+ednFQ8D2QDKicM5NTTmU6g2Jj04pgBViREgo5EjkSZKLk3bT6e44Ltoj+B5rIdJCpYEERZOPC4fqgf5+FBU+YJEY+64edJfKwBSum9XL0j+OZESwWONaw0+Qj/tZb6NkikJ/g8jaSoElawKVANw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=U782mqmY; arc=none smtp.client-ip=209.85.208.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="U782mqmY" Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-6618bc129acso5669808a12.2 for ; Mon, 16 Mar 2026 04:57:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773662266; x=1774267066; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=CU0DpWb+fPoZA0eMakov19NswTmRLnHMRP+UhQ330R8=; b=U782mqmY4VYZZvDs7h+/eIWc1TdTydXgSm4florjvpeQKipPxMs01Nv4i/HjSK1g+M oppbrWRmz9YF8NNbSSZ55fYTWlpvpt4RBROHMjfjWcIJ6LApnHAmtasqauy6cM4W2ef9 k/dtoqtz84UQvYK6Ec4uub81JV70xDILYmDCwGoGl8fQ4ogLP1QIeFjQOojRYZhV7Eks NTiysTN+tr0fkX7tIecD80oTN6tkY4vH1F4dZ3zf+eXx1AtEUw8rOZhT56KgKXHEMCL+ +SVPV92oj2qumnzi0vfMOi2neYPRboqAfMT3N1H1H9DOHRXZOdixg5iqicR8SUvasehZ GbJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773662266; x=1774267066; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=CU0DpWb+fPoZA0eMakov19NswTmRLnHMRP+UhQ330R8=; b=jLMq1DuAVZB5mFb3PSOkY13YO/S3Vo3IERfHS/RHY7kYZ9AmUg3GDWWeB8IG7UMJQQ VV9efXNC9GYVEz/xnfzscF6T9BFVB6YdwAwaCEYCYwbkb26H4FNfgfyrjXOphFXkuRyP vBTSE8l9ZA8Pq+EKht6VYjulsygqUfSU5EV4eZGvKaTcSr6ZHmOQlRqd+1bDBu2qgh+p mvVDFTjIaU21KqCJbZAK75OaL91qO85qLWHvCvLHxCWSqvCBpJFrs0j5WrX6D7Rnb1++ flx1N4rs2o0iUDUDveIE0/ZWlPY3dR4Hc6W91EBWWWnaZQTLBKCWWX1AE6l0gBSTvKPj hSxA== X-Forwarded-Encrypted: i=1; AJvYcCWQw0U3fyPgFlrnpQevTdMe1oUNW3tZks9AKyeGLPYQPZ/0u0CntPSh5p09Dq6/DLzVOXeYk7HgHso6qBU=@vger.kernel.org X-Gm-Message-State: AOJu0YyPmvjy+/v7IEg5MXb4lJRbNKZj5G0p1VWZkf5EPQ8p5oaAaxlC Le1DhUtRz9jQY4sqGlki4Kz5M2CbXNnuLexddvEC7FbLTvonekPZMRX6 X-Gm-Gg: ATEYQzxaot8/8lFnGv6U4ZBGcAIiB/1ykzbTXzZn22Zci9VzOUo+VSlUruzz/0qLV8A E7n+uwZRq9+ZpfqjLn+ZNcRwVn571ALtXMJK/q731pU/gVyTO902PpPaq3VE3ExsbJDLEA90mlZ EEYIM3/CogJP9AwMt7vSsOSs7Jl6m00KrRy3gRvkJ36/ZGJk3juFQ9ix4Gb38f7P/tc1bHlBUGG 6CP5HITSuUswifH575GsRkw/8o9k6zSCQaQRS1YBFZ8lGAzZC3kTDEZhTNcCnKlGqCkRPf9Hsg9 KGC0iw0xFCEvmYVha3KJho2/Bg8nnRHTQyjBTAqYHPfJQ8L728DcL4fORNJ5xfInYNBUIz6UBJN /85U3Wcda+PVucprXXsD78ih+U4WU+xt3iCXRnY8RITQ3rrrnXjf+CNWduIalaCbdM62M2g0rpB uk1VPw8jQGRYNRhKpKRK3rjNWtlg== X-Received: by 2002:a17:906:a14e:b0:b96:ed21:f47e with SMTP id a640c23a62f3a-b976506f1a1mr647340066b.25.1773662266092; Mon, 16 Mar 2026 04:57:46 -0700 (PDT) Received: from [192.168.1.31] ([178.227.109.187]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b976d0c745asm527856066b.67.2026.03.16.04.57.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 Mar 2026 04:57:45 -0700 (PDT) Message-ID: <168615a6-615f-46cc-b126-4780fec34ecd@gmail.com> Date: Mon, 16 Mar 2026 12:57:44 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 2/2] arm64: dts: qcom: Add Xiaomi 12 Lite 5G (taoyao) DTS To: Val Packett , devicetree@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, andersson@kernel.org, konradybcio@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, linux-kernel@vger.kernel.org References: <20260305093941.305122-1-zstaseg@gmail.com> <20260305093941.305122-3-zstaseg@gmail.com> <356110cc-699b-4a6d-973c-403d2e29630e@packett.cool> Content-Language: en-US From: Stanislav Zaikin In-Reply-To: <356110cc-699b-4a6d-973c-403d2e29630e@packett.cool> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 3/16/26 5:05 AM, Val Packett wrote: > On 3/5/26 6:39 AM, Stanislav Zaikin wrote: > >> Xiaomi 12 Lite 5G is a handset released in 2022 >> >> This commit has the following features working: >> - Display (with simple fb) >> - Touchscreen >> - UFS >> - Power and volume buttons >> - Pinctrl >> - RPM Regulators >> - Remoteprocs - wifi, bluetooth >> - USB (Device Mode) >> […] >> +        vreg_l7b_2p96: ldo7 { >> +            regulator-name = "vreg_l7b_2p96"; >> +            /* Constrained for UFS VCC, at least until UFS driver >> scales voltage */ >> +            regulator-min-microvolt = <2952000>; >> +            regulator-max-microvolt = <2952000>; >> +            regulator-initial-mode = ; >> +        }; >> […] >> +&ufs_mem_hc { >> +    reset-gpios = <&tlmm 175 GPIO_ACTIVE_LOW>; >> + >> +    vcc-supply = <&vreg_l7b_2p96>; >> +    vcc-max-microamp = <800000>; >> +    /* >> +     * Technically l9b enables an eLDO (supplied by s1b) which then >> powers >> +     * VCCQ2 of the UFS. >> +     */ >> +    vccq-supply = <&vreg_l9b_1p2>; >> +    vccq-max-microamp = <900000>; > > If this device has UFS 3.x flash, which it most likely does, the > copy-pasted eLDO comment does not apply.. and VCC range is 2.4V-2.7V, > 2.95 is overvoltage! Hello Val, Thank you for the review. Though you're right that this comment is a copy-paste, taoyao has ufs2. This is the explaining comment from the downstream sources: > /* > * Yupik target supports both UFS2.2 & UFS3.1, here > * vccq2 is supplied via eLDO, and that is controlled via > * L9B which supports a max voltage of 1.2V, but eLDO would > * supply 1.8V. and same L9B acts as vccq voltage for UFS3.1 > * devices. > * Here L9B can max support for 1.2V but UFS GKI driver code > * votes for 1.8V, which is leading to failure from pmic > * regulator. > * > * Now since vccq and control of eLDO are common that is L9B > * we can use vccq vote as control of eLDO for vccq2. > * Hence vccq entries shall be used for both type of UFS > * devices only. And vccq entries should not be changed/removed > * for any design alteration. > */ So I thought it's better to keep a small comment regarding eLDO. > If it's actually UFS 2 after all, it would be better to rename the > property to vccq2-supply. Could you elaborate please? Do you mean l9b?