Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2263494pxp; Mon, 21 Mar 2022 15:17:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzz+IkJqJp1VXvi6gfDzhs9KUVggL71ewk+crdHlUeRvPwqgHOZBsh53dTrtNyui6jq5XvD X-Received: by 2002:a63:c61:0:b0:382:5c50:3eb2 with SMTP id 33-20020a630c61000000b003825c503eb2mr8918778pgm.129.1647901053037; Mon, 21 Mar 2022 15:17:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647901053; cv=none; d=google.com; s=arc-20160816; b=faPvTBGs9EMHA6rsNgjzS+Gj8gSOlbanUQGKjfZIX8yoAyYkMW8un9lynmuRTNFE8L HGhgGY+eZpbJ7oT85ei8ERJ13fgXZbZRHGqoTKEyP7jmKrsUU+WEYpADDGoC6LklqPSL bhn87vLx0z4PdK+zlYdhE0rmmLBt2I4W4k7B5ML/ccsiJqpc2YrUDW5Ewo595sXEZ4Ap gIoP6Ym+wDRDVJ9olY6tR0qA2ngt7jLVmj2dyxnG9D9bK1dLOwykGqCcNXQREHlN2WAn xjsAcmQyvaASO4KEhC6WHH/PA2kXZ+25noaaovuAZYxonUp/HESVK2lof4yITc1wRp6C uBqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:subject:cc:to:from :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=buKp/c8UvzHPIAhRI7uXCYLONDKNZjnQ6ELqJjK7HuA=; b=yL1aZEcS2I8C8A2lw//WbyfQCjN+znd8nhBFQN1z8cymvtfP7PhvvxD+1WDIBqaJlX 4b81AswPZ1eSQeEjNkId+ZBZpgBb/MmYY/acV8mi3a0N6AzRZTxuuFtxrQvzp0Rmx9mM vECGj4cvfjseIUqZO1F8xo3Y4XC7lMj6mbKgXoFzzOdsRk7TMy5DqjWtXU9RlDuNAHXV HBiFRAlBmQnvcyqhtb7l2ql7kEfKgSsM9RBU6p5vjaghvIrkMbXWjjs7nuE8UrQ8KqkC 7R9y/E1wY740lntitEViv+lyS7gcglPkgQIDfKX4jsnY1qjEcLWdccU9cR4W4iVG70Hx hj0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=k4nyBk88; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id f10-20020a631f0a000000b003816043f130si13975315pgf.805.2022.03.21.15.17.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 15:17:33 -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; dkim=pass header.i=@fairphone.com header.s=fair header.b=k4nyBk88; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 655A4375B26; Mon, 21 Mar 2022 14:35:06 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243906AbiCSSbR (ORCPT + 99 others); Sat, 19 Mar 2022 14:31:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233591AbiCSSbP (ORCPT ); Sat, 19 Mar 2022 14:31:15 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FDFE377C9 for ; Sat, 19 Mar 2022 11:29:53 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id b24so13662477edu.10 for ; Sat, 19 Mar 2022 11:29:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; h=mime-version:content-transfer-encoding:date:message-id:from:to:cc :subject:references:in-reply-to; bh=buKp/c8UvzHPIAhRI7uXCYLONDKNZjnQ6ELqJjK7HuA=; b=k4nyBk88e6efJTjIm7EZ0GLZbtg/Onpo4+WFLft/j94NiAxeTzmwE1iruDGx6+mmCu JtsjzOM8sWpaaJwTpwuYUA/xsDqSTBMmdF7C8CS3/eKWOoAUUCZd1dKlQuyNXjg2vUfd GNjZXrz6e7ZxGQ9zOG75KLBqN3VfW0iOcHkUGnUot++W+3cG1nbub/zBeoC+bSuIT2is qhifnXLc+GXdQfGaF5B0iG4YoNynLZGIwRVXiYtZHRHH8pY/T01JyBbyS2+pIwHZEWVs E1tJWHzopRgkTTwym4ZYzNGyW8Q7eSf4wp4fDzHZM/cQLbXlAwDIpXp1gJxuH2TDbXMQ GnhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:content-transfer-encoding:date :message-id:from:to:cc:subject:references:in-reply-to; bh=buKp/c8UvzHPIAhRI7uXCYLONDKNZjnQ6ELqJjK7HuA=; b=uNdLZrajV3xDMmj8oclH1b9XosRuYK5esqbWMRTqu8VYgVnGBCv6MCKVl55yw7vuzA wwZ7c2BpmyNY3eQjR5Bh4s7k67xrIZYoEkoMHFsuRoBsP5z3VLN0CO2KHTfNtCl0ZycE kvSdXpmpSiKuPiQWQx1rnekleL/iVc8ff/r+GW+exrf4v2SESyM/MXcNBv4xQfA8IEsE yUul92s2nE09LLfwjmVIDfr9HW+IC15xvpPu4IcLOyazTzQEBpsidEfUPm/iHx8jdleS gi5wxL4hzQP/TfHq9buN2E7QrpIrTXQ8lTrYHGaArOHWJ6fHDcU7ST+k4rkwFjSoisY7 xU+A== X-Gm-Message-State: AOAM530eHlvOvfb/s8vwe2jKJ5RlIJif1pPSqkUboniAoU8HPIoEgIbG GppcxfIE0wSWWsEEFIoY2fxHzA== X-Received: by 2002:a05:6402:289d:b0:419:437:ef4f with SMTP id eg29-20020a056402289d00b004190437ef4fmr11131838edb.110.1647714591776; Sat, 19 Mar 2022 11:29:51 -0700 (PDT) Received: from localhost (a246182.upc-a.chello.nl. [62.163.246.182]) by smtp.gmail.com with ESMTPSA id hg8-20020a1709072cc800b006d6e469fbf0sm5008422ejc.134.2022.03.19.11.29.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 19 Mar 2022 11:29:51 -0700 (PDT) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Sat, 19 Mar 2022 19:29:50 +0100 Message-Id: From: "Luca Weiss" To: "Krzysztof Kozlowski" , Cc: <~postmarketos/upstreaming@lists.sr.ht>, , "Andy Gross" , "Bjorn Andersson" , "Rob Herring" , "Krzysztof Kozlowski" , , Subject: Re: [PATCH 5/6] arm64: dts: qcom: sm6350: Add UFS nodes References: <20220318183004.858707-1-luca.weiss@fairphone.com> <20220318183004.858707-6-luca.weiss@fairphone.com> In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi Krzysztof, On Sat Mar 19, 2022 at 3:43 PM CET, Krzysztof Kozlowski wrote: > On 18/03/2022 19:30, Luca Weiss wrote: > > Add the necessary nodes for UFS and its PHY. > >=20 > > Signed-off-by: Luca Weiss > > --- > > arch/arm64/boot/dts/qcom/sm6350.dtsi | 79 ++++++++++++++++++++++++++++ > > 1 file changed, 79 insertions(+) > >=20 > > diff --git a/arch/arm64/boot/dts/qcom/sm6350.dtsi b/arch/arm64/boot/dts= /qcom/sm6350.dtsi > > index d7c9edff19f7..c5c93b6bcd2a 100644 > > --- a/arch/arm64/boot/dts/qcom/sm6350.dtsi > > +++ b/arch/arm64/boot/dts/qcom/sm6350.dtsi > > @@ -541,6 +541,85 @@ uart2: serial@98c000 { > > }; > > }; > > =20 > > + ufs_mem_hc: ufshc@1d84000 { > > Generic node name, so ufs. With the node name changes UFS doesn't probe anymore. [ 1.893762] ufshcd-qcom 1d84000.ufs: ufshcd_variant_hba_init: variant qc= om init failed err -19 [ 1.902674] ufshcd-qcom 1d84000.ufs: Initialization failed [ 1.908391] ufshcd-qcom 1d84000.ufs: ufshcd_pltfrm_init() failed -19 I didn't debug this in detail but it's likely from the androidboot.bootdevice=3D1d84000.ufshc parameter in cmdline that ufs-qcom.c uses to fail probe with -ENODEV for all UFS other than the selected one. Not sure why this behavior exists in mainline (didn't look into this either). This cmdline parameter (among many others) is added by the stock bootloader and as far as I know there's no way to turn that off. > > > + compatible =3D "qcom,sm6350-ufshc", "qcom,ufshc", > > + "jedec,ufs-2.0"; > > + reg =3D <0 0x01d84000 0 0x3000>, > > + <0 0x01d90000 0 0x8000>; > > + reg-names =3D "std", "ice"; > > + interrupts =3D ; > > + phys =3D <&ufs_mem_phy_lanes>; > > + phy-names =3D "ufsphy"; > > + lanes-per-direction =3D <2>; > > + #reset-cells =3D <1>; > > + resets =3D <&gcc GCC_UFS_PHY_BCR>; > > + reset-names =3D "rst"; > > + > > + power-domains =3D <&gcc UFS_PHY_GDSC>; > > + > > + iommus =3D <&apps_smmu 0x80 0x0>; > > + > > + clock-names =3D > > Drop unneeded blank line, start just after '=3D' and align next elements > with it. Sure. > > > + "core_clk", > > + "bus_aggr_clk", > > + "iface_clk", > > + "core_clk_unipro", > > + "core_clk_ice", > > + "ref_clk", > > + "tx_lane0_sync_clk", > > + "rx_lane0_sync_clk", > > + "rx_lane1_sync_clk"; > > + clocks =3D > > The same. Sure. I also adjusted the clock name/order to match the bindings (thanks for spotting the problems there!) Regards Luca > > > Best regards, > Krzysztof