Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2901688pxa; Tue, 25 Aug 2020 06:32:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqElQlFkd6/t9UcmB14V6lFRmD9rJfRifVfMvtWdxDGdpvc0CZdGAMuOcgAySPsHL7Q11+ X-Received: by 2002:aa7:cdd2:: with SMTP id h18mr10380475edw.387.1598362371544; Tue, 25 Aug 2020 06:32:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598362371; cv=none; d=google.com; s=arc-20160816; b=N1rht5dHeiafiq6rKQKtxW373dLKE69k3QwSBdQVmLxpso5Rq9L5DmtY5oJhdY4xyo T1bYCkLJItpvQjcoFZ6guEkPF/ztiX/EbCxdc0qzVheyjY0FqhePlHaRNvjt/O/NDn+P P3FTkBGfuluOFafp6RGlIr2rZEsHPt0PQMNCR1ZGFCTW/JfiD2YeLS30+vXkUWdbPqM8 oD7/mj8a0hN68j4dOQaFYfNEihulgSB1If+ZPxm3ukfk21LioCKC3vMaFD+CWzBH0aqH mDbS5jZfHyPreK4EWVCoeLs6DgcIRSvU2dgMaeOYMKZ1imJEV4sTpzvEPEGU1UhrN5JR MM1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Ox8QK/IzGS/2yKfoGq07DsTXf8p9QMN6eWLRJ1J4AIg=; b=ZCI39qXHEe80HtZ/vPZJtBunshhWFD9CJdL8defizNjaOTxLpd9J6dKIP2rLYsfMsL RGMiwfyZn4mlVjZWAhdi8wodfreVE9LGpakCtrF94yclyT00wQ7Sp5Gf+TC6NrWBSxZ7 tXOES0F4R/0KriYlz8X5f6OoX2ieBIDWhi5NqCxh3EE/1n6rMIxxvDBkrEyZidzm5o+Q zed8frxjN6eYH+lVr7AKbjuuNFUdGk32xHmmDCehrYW1XtuSxxtoPuOBaTUnOd5VoDPE xS+HGdwUXnrju7C6fgDVhBSxe4PMo0j/ydCjl8mpS2C7FuIs1qcSPAxcVQ1IrOQdoMq9 uXlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mNQPJdy2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g21si8435694edp.107.2020.08.25.06.32.25; Tue, 25 Aug 2020 06:32:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mNQPJdy2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726351AbgHYNbp (ORCPT + 99 others); Tue, 25 Aug 2020 09:31:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726241AbgHYNbj (ORCPT ); Tue, 25 Aug 2020 09:31:39 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63F00C061756 for ; Tue, 25 Aug 2020 06:31:39 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id b17so11948149wru.2 for ; Tue, 25 Aug 2020 06:31:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ox8QK/IzGS/2yKfoGq07DsTXf8p9QMN6eWLRJ1J4AIg=; b=mNQPJdy2gY4XWix22ixlqX4gAjdlU3M6HmAifc6qwgvG8KDB2RtfoojcjwoOxRsoWq 85QxMnS8xmEJEqZvqPK/uY6IgabsmL4poARlffOF/1WY8IYEQKHCl62/BFfsRNCvlWjB I3rUkJvXf1HSY0ud3Qpk5ukGsLaI/X+7wS4xUrvPjbR/MU+sxSfkPKSnHnrg4Mut2sJr BnUQy7ewuSeizkEy57yes+sJYFbk4cyE1vir/mU+YfdTBYWp72iZRK+87WVKqyFbyjyR V77xU+EBKOcwvQvdHa4QUUJpH2Q2QxR91rSwAR/BFUPm2HO+TAHVcQu3vXxTqnQiNEWm I50Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Ox8QK/IzGS/2yKfoGq07DsTXf8p9QMN6eWLRJ1J4AIg=; b=FHRpTO0Ok8diBhpKn7e67fcoicNF0sF5kLcl2rx06SVx1YrCNs1TCSDeeoB4sc5FTT 5PS3mYZClEwF3pSlJJb2mBXUL8Z5oOQQNyJbmf8WvhZWu591yz3IEIKMjZq4X83zxvHs YgqmDQL/tJQimVTJjKKco5SgBIqsUv26txfdtNexB01ELaOqH+J7iDIAF9RAahu1vwqH B0j6vRVNYWqH8pWL8735ZSgibPCJ5BMyA7nZKztOLsXJeknCpD9Lr721yqy1OHAoqxGU NDRCgfMVAdZHm4vu4XOXlMe35hX0fz87scZGYCAEBymKxa1EaIL6TlMRfsxa6FrKBqhi RKMQ== X-Gm-Message-State: AOAM533jrD2Dwf8jR94dsjNjL/BhkpK8LTSLREgFapXDUQ5W/uQ/PjHT 0Rdygis+TVamSXLDdyx2SikepuCuDmDEIkFhyWSsXg== X-Received: by 2002:a5d:688d:: with SMTP id h13mr10296178wru.176.1598362297868; Tue, 25 Aug 2020 06:31:37 -0700 (PDT) MIME-Version: 1.0 References: <1598029961-2474-1-git-send-email-amit.pundir@linaro.org> <23c4191e-4d64-80d8-e688-27d004729ea1@gmail.com> In-Reply-To: <23c4191e-4d64-80d8-e688-27d004729ea1@gmail.com> From: Amit Pundir Date: Tue, 25 Aug 2020 19:01:01 +0530 Message-ID: Subject: Re: [PATCH v5] arm64: dts: qcom: Add support for Xiaomi Poco F1 (Beryllium) To: Konrad Dybcio Cc: Andy Gross , Bjorn Andersson , Rob Herring , John Stultz , Sumit Semwal , linux-arm-msm , dt , lkml Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Konrad, On Sat, 22 Aug 2020 at 02:51, Konrad Dybcio wrote: > > Hi > > First of all, sorry if anybody sees this twice. I've been messing with Thunderbird lately. > > > > > dtb-$(CONFIG_ARCH_QCOM) += sdm845-cheza-r3.dtb > > dtb-$(CONFIG_ARCH_QCOM) += sdm845-db845c.dtb > > +dtb-$(CONFIG_ARCH_QCOM) += sdm845-beryllium.dtb > > [B]eryllium should come before [C]heza, no? Also, aren't the non-development boards supposed to include the vendor name? i.e. sdm845-(xiaomi/poco)-beryllium.dtb Ack. I didn't pay attention to that part. I'll fix that. > > > > + model = "Xiaomi Technologies Inc. Beryllium"; > > At least with Xperias, we settled on setting the model property to the "pretty" name, in this case Poco F1 Ack. > > > > + pm8998-rpmh-regulators { > > + compatible = "qcom,pm8998-rpmh-regulators"; > > + qcom,pmic-id = "a"; > > + > > + vreg_l1a_0p875: ldo1 { > > I think you forgot to include (regulatorname)-supply properties which should cause havoc with all things regulators.. I didn't know that. Thanks for pointing that out. I just copied db845c dts and started removing the nodes/properties which I didn't seem fit. There is a very good probability that I goofed up big time. FWIW in my limited testing so far (Booted AOSP to UI, with working Touchscreen/BT/WiFi/Audio with out-of-tree drivers [1]), I didn't run into issues with mainline (v5.9-rc1) or Android GKI (v5.4.58). May be I just got lucky. I'll check up on the usage of (regulatorname)-supply properties. > > > > + vreg_l1a_0p875: ldo1 { > > + regulator-min-microvolt = <880000>; > > + regulator-max-microvolt = <880000>; > 0p88? Unless it's a PMIC limitation.. Please also confirm names for the rest of the regulators. > > Also why are there so few regulators? And none from pmi8998? Are the rest WIP/coming in a followup commit, or are they disabled on this board? AFAICS you only include SoC/PMIC DTs which would suggest they should be there. I intend to add more regulators and feature nodes in follow up commits. > > > > +/* Reserved memory changes from downstream */ > > Wouldn't it look better if you included that in the main {} node instead of reopening it in the middle of the file? I mean, it works, but let's hear what others have to say. Ack. I'll fix that if necessary. > > > > + * It seems that mmc_test reports errors if drive > > + * strength is not 16 on clk, cmd, and data pins. > > You say that, but then you set "drive-strength = <10>;" for cmd and data, please confirm it's intentional. In sync with db845c as well as downstream dts but I'll check on this as well. > > > > +&ufs_mem_hc { > > UFS comes before USB alphabetically. Ack. I'll add them alphabetically if that is the common norm. Regards, Amit Pundir [1] https://github.com/pundiramit/linux/commits/beryllium-mainline > > > > +&ufs_mem_phy > > Ditto > > > > +&qup_uart6_default > > Ditto > > > Konrad