Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp77307lqp; Fri, 12 Apr 2024 10:54:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW/CZMOE0D4Mxbko3d0VJMAmYqWSHx4M99Qji7EP0Dtd5HTYtnYOABO7jeupnJJQykyyzhHUclKEKsi8SOWwXyRbSIa++3nzr3DGtT1FA== X-Google-Smtp-Source: AGHT+IF+ORoYpb1NzbPu7q5HwYj+QSWdjrnm42eVNmzKeH2oQmIRp9yJ0+5yMk/VAjWNejdgLx8s X-Received: by 2002:a05:6358:5b17:b0:186:ea4:b1a3 with SMTP id h23-20020a0563585b1700b001860ea4b1a3mr3204391rwf.32.1712944459042; Fri, 12 Apr 2024 10:54:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712944459; cv=pass; d=google.com; s=arc-20160816; b=UNtk15FkUNzxKXb3W6B/pcS/q/bndlnQelCLfdIC+s0FpYeWXqeuTaE/q0HIMoviwt ThYO2TvoHDV1V7g0UJOofco3oblyMxXz9Zha1vB6PGY2BJOBgzGyh5GwNiHzzYPbSrel BzN3XbsG0VZkK1pojoFgv7+NbAVYjpjzGG7PD5tXamRVUf3ITwdkSNmCSE5HE6cfeZDn v2j3fptjJs/FbPeDD0V9vjJuWXOTzOG9wZhmb3Ast9y1HgasHf7X0H+EqT8udwpe72dw I9PgERiiMEfCb17mY8tNebqOHpwpG7IuHXOYAiCEQL3Vp/WgMolcqiFPSi0FzPdyY015 rkcA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=nKSg4RwnYAFK/sdZVIxX1EI01vqvwtxplSvYVO3pwdw=; fh=fj04VqP/Be+Kuv3tyB0nRJNKI0znS8tmjRWTRmFneq0=; b=k8Cbk/tTjV3/sGZlsbvpoVtc0M4M3r1Ba263928769PpefUlJOM6QFhBdWlAbLjED+ b+k108Hxk7EVdCNLDXnjlJSgr7R7AmqOKApBlwviByrI8I6tcdguDEYlOkebK0+jAjOW LyE5huARETGF/Qo40DDfsROgFeSEBGuu42GHDGHOt6oLWPVLoJ1qBGmGO8Vyc82h3Vpp 1V3O7wRz3/PMu47/9NG/pa/LN+vRXx5lRf0S3EZ/1T/nh75+1b/A51SyQNnA+F719xJH DhdpK6vtvgibZC6oGS7LVqInGzDf7e5C+mlVtdmyk2GEN5Kq+7d89lGVAB3riPHj5Ti6 zpOQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="J40qsZ/o"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-143159-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143159-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id s27-20020a63451b000000b005dca7d50880si3692134pga.696.2024.04.12.10.54.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 10:54:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143159-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="J40qsZ/o"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-143159-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143159-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 1F48FB23B29 for ; Fri, 12 Apr 2024 17:53:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CB59114F106; Fri, 12 Apr 2024 17:53:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="J40qsZ/o" Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) (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 A1C1614F103 for ; Fri, 12 Apr 2024 17:53:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712944403; cv=none; b=VrX2+rVsKidLh7Qps1EeAcGNAeYQXZFbG9VMznnNfDwlI55C6avWg0ZS5Fok0/Q0tM7/4vJXGgTpvlP72xVnEc+3rIf36j330kg/6cq6QCmbKh5Vz5Queu9Qc+xbxu+Hg7RWSUP0odrOhA2C9toJKTq6naPXaGvRs1Kh3xuFgXQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712944403; c=relaxed/simple; bh=Vy2PIzMgnUyeUzulkPx73WrRDMmKgp/2MfijXqNpzkA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=l4fbuUr2sxMrV6K+Lc05aw5ukPw0LVOtQNHyKaS4Ts5H++WF2dSCsHzkpOshPQUsF2ue99RVAjfJnDBGnn3QlZkbYT/ul4OInjesDyWs2i+g7Z8vc1xJra+yC/7n1mhDE98ULlAebmmHZCJPps3UsXQi/yoizfslq8tiMFbSOSE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=J40qsZ/o; arc=none smtp.client-ip=209.85.218.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-a46a7208eedso162360266b.0 for ; Fri, 12 Apr 2024 10:53:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712944400; x=1713549200; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=nKSg4RwnYAFK/sdZVIxX1EI01vqvwtxplSvYVO3pwdw=; b=J40qsZ/oCObbwCh/3eaCg98IrVG7FuMDYzTgR7tAr7+0AHWRwmBFLnGbwTAxwa+fg8 IN5IMXTEKcQ+GcnSHzloYNxw0VEgauPZblmCp2uZ4ZE0beeFYmehl8CWIcJDmiRuU7lB oSgFTVGdBIhnGGQk4pAcaYiD/rxyTUPUzioMdKgdOm1LketMhEdhQlGyqQYy54MHhhQH VozbQc497XqoqMo8HudyEmv/NN1lE4eGcEkZJad71LSdhwR8I8syRbOgajRen7v4ANQz 98Cdge0jb60qW7p5EI9sdc9oL87YCj5rX7dfjVFncBukeijGTj+Ns2rTUCLKAdIPia+i 3JjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712944400; x=1713549200; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=nKSg4RwnYAFK/sdZVIxX1EI01vqvwtxplSvYVO3pwdw=; b=Y5iaU+4n3sZcBiV8sFfelS1cJ2E7N6qpQ/FYeMPGAIGQpAyfvmvsIKI0T3SNJqXWyY 2i6m7j9mGqP995oVS85UYoGbBIu6IjAYb/Oz84Sz49ApAT3S3UBDFD6GNrFudAZ3fi63 u7x3HSVJZQYNAKIkUqPC0vzhImiJ5pcqrolrzcyeObhz3IYVS0H04sq6B2WZJLuXh+AT Jhdlf7hCb/9DCmKN6gHLO/YxfrGx+2sFm7yWdS48kp33wFDchaDhviIQUTZIGRDTBwbP uAOQaCn71DacCKvGxiAua+e6OX9AbhRAZW32igLrhcCx+6UomrF184q+S2VEPhLJ2yy3 28WQ== X-Forwarded-Encrypted: i=1; AJvYcCX3T5EB5n0/MCGGZe9tN8y2Dki4/wLwuLoU/GZylbymiyjZVDi9jx43ak+yaHYuhkVs7siXhVpemf+BBAK2tbA3TIKljnVrF/9fOZcM X-Gm-Message-State: AOJu0Yzm/yN2FSJ9qM1kCMH3jIBEvzRViSafCiOsLCjnfr52nyXIllW+ 6s0VQVP3lgQrNJK/Ayyoir96IyhaLsie1jTlCv7ZgOzFGdQRc4RHbUuimVz9M3s= X-Received: by 2002:a17:906:e2cd:b0:a52:b11:5406 with SMTP id gr13-20020a170906e2cd00b00a520b115406mr2043944ejb.16.1712944399823; Fri, 12 Apr 2024 10:53:19 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.16]) by smtp.gmail.com with ESMTPSA id bb2-20020a1709070a0200b00a520e463227sm2061592ejc.127.2024.04.12.10.53.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 Apr 2024 10:53:19 -0700 (PDT) Message-ID: Date: Fri, 12 Apr 2024 19:53:16 +0200 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 v2] arm64: dts: qcom: sa8155p-adp: fix SDHC2 configuration To: Volodymyr Babchuk Cc: Stephan Gerhold , "stable@vger.kernel.org" , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bhupesh Sharma , "linux-arm-msm@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: <20240410134022.732767-1-volodymyr_babchuk@epam.com> <20240411115506.1170360-1-volodymyr_babchuk@epam.com> <769a6a2a-2f38-42de-b3ce-8585b8b0a758@linaro.org> <87v84m4nah.fsf@epam.com> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/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cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <87v84m4nah.fsf@epam.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 12/04/2024 17:24, Volodymyr Babchuk wrote: > > Hi Krzysztof, > > Krzysztof Kozlowski writes: > >> On 11/04/2024 13:55, Volodymyr Babchuk wrote: >>> There are multiple issues with SDHC2 configuration for SA8155P-ADP, >>> which prevent use of SDHC2 and causes issues with ethernet: >>> >>> - Card Detect pin for SHDC2 on SA8155P-ADP is connected to gpio4 of >>> PMM8155AU_1, not to SoC itself. SoC's gpio4 is used for DWMAC >>> TX. If sdhc driver probes after dwmac driver, it reconfigures >>> gpio4 and this breaks Ethernet MAC. >>> >>> - pinctrl configuration mentions gpio96 as CD pin. It seems it was >>> copied from some SM8150 example, because as mentioned above, >>> correct CD pin is gpio4 on PMM8155AU_1. >>> >>> - L13C voltage regulator limits minimal voltage to 2.504V, which >>> prevents use 1.8V to power SD card, which in turns does not allow >>> card to work in UHS mode. >> >> That's not really related. One issue, one commit. >> >>> >>> This patch fixes all the mentioned issues. >>> >>> Fixes: 0deb2624e2d0 ("arm64: dts: qcom: sa8155p-adp: Add support for uSD card") >>> Cc: stable@vger.kernel.org >>> Signed-off-by: Volodymyr Babchuk >>> >>> --- >>> >>> In v2: >>> - Added "Fixes:" tag >>> - CCed stable ML >>> - Fixed pinctrl configuration >>> - Extended voltage range for L13C voltage regulator >>> --- >>> arch/arm64/boot/dts/qcom/sa8155p-adp.dts | 32 +++++++++++------------- >>> 1 file changed, 14 insertions(+), 18 deletions(-) >>> >>> diff --git a/arch/arm64/boot/dts/qcom/sa8155p-adp.dts b/arch/arm64/boot/dts/qcom/sa8155p-adp.dts >>> index 5e4287f8c8cd1..b9d56bda96759 100644 >>> --- a/arch/arm64/boot/dts/qcom/sa8155p-adp.dts >>> +++ b/arch/arm64/boot/dts/qcom/sa8155p-adp.dts >>> @@ -283,7 +283,7 @@ vreg_l12c_1p808: ldo12 { >>> >>> vreg_l13c_2p96: ldo13 { >>> regulator-name = "vreg_l13c_2p96"; >>> - regulator-min-microvolt = <2504000>; >>> + regulator-min-microvolt = <1800000>; >>> regulator-max-microvolt = <2960000>; >>> regulator-initial-mode = ; >>> }; >>> @@ -384,10 +384,10 @@ &remoteproc_cdsp { >>> &sdhc_2 { >>> status = "okay"; >>> >>> - cd-gpios = <&tlmm 4 GPIO_ACTIVE_LOW>; >>> + cd-gpios = <&pmm8155au_1_gpios 4 GPIO_ACTIVE_LOW>; >>> pinctrl-names = "default", "sleep"; >>> - pinctrl-0 = <&sdc2_on>; >>> - pinctrl-1 = <&sdc2_off>; >>> + pinctrl-0 = <&sdc2_on &pmm8155au_1_sdc2_cd>; >>> + pinctrl-1 = <&sdc2_off &pmm8155au_1_sdc2_cd>; >>> vqmmc-supply = <&vreg_l13c_2p96>; /* IO line power */ >>> vmmc-supply = <&vreg_l17a_2p96>; /* Card power line */ >>> bus-width = <4>; >>> @@ -505,13 +505,6 @@ data-pins { >>> bias-pull-up; /* pull up */ >>> drive-strength = <16>; /* 16 MA */ >>> }; >>> - >>> - sd-cd-pins { >>> - pins = "gpio96"; >>> - function = "gpio"; >>> - bias-pull-up; /* pull up */ >>> - drive-strength = <2>; /* 2 MA */ >>> - }; >>> }; >>> >>> sdc2_off: sdc2-off-state { >>> @@ -532,13 +525,6 @@ data-pins { >>> bias-pull-up; /* pull up */ >>> drive-strength = <2>; /* 2 MA */ >>> }; >>> - >>> - sd-cd-pins { >>> - pins = "gpio96"; >>> - function = "gpio"; >>> - bias-pull-up; /* pull up */ >>> - drive-strength = <2>; /* 2 MA */ >>> - }; >>> }; >>> >>> usb2phy_ac_en1_default: usb2phy-ac-en1-default-state { >>> @@ -604,3 +590,13 @@ phy-reset-pins { >>> }; >>> }; >>> }; >>> + >>> +&pmm8155au_1_gpios { >>> + pmm8155au_1_sdc2_cd: pmm8155au_1-sdc2-cd { >> >> No underscores in node names. > > Fill fix. > >> Please also follow tlmm style of naming nodes. > > Just to be on the same page, will "pmm8155au_1_sdc2_cd: sdc2-cd-pins" be fine? pins are for sublevel, so you want -state. Just like other pmic GPIOs. > >> Also does not look like node is placed in alphabetical place. Where did >> you put it? > > I can't say that the file is sorted in the first place: > > # grep "^&" arch/arm64/boot/dts/qcom/sa8155p-adp.dts > &apps_rsc { > ðernet { > &qupv3_id_1 { > &remoteproc_adsp { > &remoteproc_cdsp { > &sdhc_2 { > &uart2 { > &uart9 { > &ufs_mem_hc { > &ufs_mem_phy { > &usb_1 { > &usb_1_dwc3 { > &usb_1_hsphy { > &usb_1_qmpphy { > &usb_2 { > &usb_2_dwc3 { > &usb_2_hsphy { > &usb_2_qmpphy { Was sorted till here... > &pcie0 { > &pcie0_phy { > &pcie1_phy { > &tlmm { and here second sorting started... > &pmm8155au_1_gpios { and you started third. > > > So, I can put after &pci1 to have it grouped with other entries that > start with p*, or I can put right after ðernet to make it appear in > alphabetical order. It is your call. Please put it in the first group, so after ethernet. If this gets ever sorted, then at least one less move. Best regards, Krzysztof