From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8FDC73F484C for ; Wed, 1 Jul 2026 09:16:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782897403; cv=none; b=s4J0iEmwq+M4wR0DzqXWscmslS8LqEw2A0G1sgw3zXg8QfJz2ct3AOmRSvQ4bquqS3tWYOWnSokBSlCnNEyYeKmyvuk0Az2jbwIHR//LKJIEX2MHpzwU12Mq8c34tUOD8gDSVKrbK0Lm2Avw90oQf/Gnhl6YX8ujV9EQDZ1ufW0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782897403; c=relaxed/simple; bh=YVwgQbUqvO/cXJu0uYhwMlWs0d9HSq0ha0qBi4Yel2Y=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=kwkGmbMcIN/0+wcthJYNTzGDGhpZNjpFC2hmxZ03vUYtxsL8LBQ/C6PjWYNHJqFggypbHCxHRcojDp3tZ4B1aBcVDrWQla1oczVKoHDRIkXdq3WijkziElFrGWaZIIeCvtQJbVtPqWh/x7pEXYoQ7JYTHIwW9aIn7CQdZQVXM70= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=IjmkdqYH; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=JCDtpt6x; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="IjmkdqYH"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="JCDtpt6x" Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6618GD8l488368 for ; Wed, 1 Jul 2026 09:16:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= Smnh6dpxA7GSflHhp9Ym/+c6BAz0hfiEY8iMiw/ngGI=; b=IjmkdqYHauI3wt3v 1jKzAQbzk1Lz8eAFWrYTXhsRSqmszQHjN1JOXEEy9MfRMOyTIIm5eO5s42XvTzGq LJMIJcBV6O/3hcLy6c7Cqxn7HtEtLWe8B8+TFsMR0JD7CS15YY36ITmE8FcfSW0U iMYWf37lsW7gB05Jdd/uu9xZmg514BOVRusw+vsdM2AsJ8rfdUKh0ujnlt1seneC 66nm0XGx5V4KW6vn4+WEuVVtENESJhUjwY22y4aBnY0yqkcLrKujyOUlN+ple2VS bO+fgYhC2ES2vsZzgO+rZKWshrazOOG46Y9OV7N6DU3iRcbiwMJRs4oe0DHLLSEb OV6Huw== Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4f4rsy1vs5-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 01 Jul 2026 09:16:39 +0000 (GMT) Received: by mail-qt1-f197.google.com with SMTP id d75a77b69052e-51c21be5bb4so2180431cf.0 for ; Wed, 01 Jul 2026 02:16:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1782897399; x=1783502199; darn=vger.kernel.org; h=content-transfer-encoding:content-type: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 :content-type; bh=Smnh6dpxA7GSflHhp9Ym/+c6BAz0hfiEY8iMiw/ngGI=; b=JCDtpt6xKYX/0WX3GLk6UuwDnvq8wbVhhyzxglm7/mEfheLASyeN6AE5oRwVJyWvGk pnBNltx7di6jMOFiYqN59oelWnP4pkbJcBP4brttWkK/VLbr3G1gzrt6WIDbHedD3RPV 2gQyA11Bxuiz7iiXZpotrB6m2lQKXX5M986PY8ECX8LEdlvEHFs2/UiiC3ZmTz0BUXiU cYYfM31xwVm4vpIDFlSMXcwy5UokDRg7PGHwUEbnG8XaQ7mfEGgLwcGFLnn96qu3MjTm +rWbuE2zfuYLf2nSBAheeYcKzyRxcBu71uwd5KfSsyNYe6YY0MTAkLqdv/phA+QJrhvA INfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782897399; x=1783502199; h=content-transfer-encoding:content-type: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:content-type; bh=Smnh6dpxA7GSflHhp9Ym/+c6BAz0hfiEY8iMiw/ngGI=; b=np9Biz4wpGxyfRT+oW+9UAVE4ZhtE/JFRpxmJZ6HeOnSZFsmKMGXSH1e/tmHRQd53t iK6aQlc3HRW4GtqD0SFJOedCP4fJdyhCYfX8ZEwMuqjV2eVCLZh1lNBrtfqLsTW+z8vU 9g3kdaz4h1p2rP/GYwBDjn5571PKulXXOX4peu4a8l0n6PBvNInFEJx7mE36w78ylEFr lN/ISz5QO6ghmU8uC8AdoHY9Y/r/KtEnycpg5laTbHqxtTvFoQYWZoz+giINKetrBFZD Npci5nSb9YBzxD3VMOSlUx4kZoQpTRnWO8Y6xuIl7zA3TfdASiXLoU0+jYlh5k8wkOd2 DH+g== X-Forwarded-Encrypted: i=1; AFNElJ/ZMbVvChgTKAwxQ2BiIOX1zO7SdhpYznr+9Wet32xZOCvylAxHi7vmDxsNnUfGoJ7vPlazcns0yiGeEpo=@vger.kernel.org X-Gm-Message-State: AOJu0YzIV5m8ADH5xLSiQqn6jEMrRieBdRPHMQd7B7kW+PALLCKl4mqy ji/E5fkXFqFEHi1gaO6SLBbxSjDfhmCvwQqYkmh4ILzv9jTG+qQdt61/aMFYYV5aZmQcnvlUU6F efLOEu/tKHXYKgI7rHW6Hbdpdk1PinWUc2tQEFB5Xzj9RSjTthftR24GQNzssu9jlW94= X-Gm-Gg: AfdE7cloT0kWTOJzTBGSWJa+2m4TM2KMYBOhZ15Nky7SgLNHEdufO+8SqgamL45qT83 smA1TWONr72vtJXUOFLJNkP0xpY/ZQTMf8VibHuPTWzWtbljyFm2W0YhFlcEnUY2vgHk7c26Sl6 tJBxGnI8QrgUFoos8UubmRRN459MY9hj+niCi092ozbdclwazHbXxR7zI+uDISkU5MWEjFH6Lsd BVe9V+bEUKdK43y3f1Rwc/WEmc8CouOQZ2amn02V7s8RYaeEl2eUBFVeVX/szt/3ziwJTqZYpp4 LC8Ed6dRFq1p3pwSA6B7/S/vpJkg2R4qvJmJGPXqPD3elqpJ3agy74246Uv/ooBtYEcs4+8/iUX h8r3i9tuT4SF2OvtsYoKSE300CImWAgMEb1U= X-Received: by 2002:a05:620a:1a0e:b0:915:6433:2599 with SMTP id af79cd13be357-92e7821f763mr62958485a.1.1782897398672; Wed, 01 Jul 2026 02:16:38 -0700 (PDT) X-Received: by 2002:a05:620a:1a0e:b0:915:6433:2599 with SMTP id af79cd13be357-92e7821f763mr62956185a.1.1782897398265; Wed, 01 Jul 2026 02:16:38 -0700 (PDT) Received: from [192.168.120.170] ([178.235.128.140]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c1288d1ef53sm243541466b.7.2026.07.01.02.16.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 01 Jul 2026 02:16:37 -0700 (PDT) Message-ID: <1f999970-1dc0-4eef-86da-64f555cc30be@oss.qualcomm.com> Date: Wed, 1 Jul 2026 11:16:35 +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: sm8550: add SDHC4 controller node To: Vladimir Zapolskiy , William Bright Cc: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Ram Boukobza , Tendai Makumire References: <20260427-sm8550-sdhc4-support-v2-1-a4241f43ecd5@imd-tec.com> <5a5cbf8f-07ef-419a-8d30-c1b0b2786312@linaro.org> <00643a25-040a-4bec-8324-f52b30d84f9f@linaro.org> Content-Language: en-US From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-GUID: Qw8f3tCaajfItId2Oes6jDjuuzHEM1e_ X-Authority-Analysis: v=2.4 cv=fLgJG5ae c=1 sm=1 tr=0 ts=6a44daf7 cx=c_pps a=EVbN6Ke/fEF3bsl7X48z0g==:117 a=PRfkaYvzSr8QmIIGAkY2Sg==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=VwQbUJbxAAAA:8 a=gNcS5RXMAAAA:8 a=giWfNUZJfUIx4I3DD8IA:9 a=QEXdDO2ut3YA:10 a=a_PwQJl-kcHnX1M80qC6:22 a=VeqYHxXNbGx7SVBbL1V1:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzAxMDA5NCBTYWx0ZWRfX4RkM95jfNL3u vT85VhdCk0vHfPfcQh96E6PQZBfiH+izzLUSD0KcSM3XtE/bz8i09I+aArDWRIVrbmXzzo0oWtH vsRw7hvQpT6fGiMy4L3WhLi/GNmnEOp5IZ9/2z3SwgcGdr6DQobXWnUh+LOCyU/X8y6h51o3+zg 9VMQll7IrB5imKYDGgO5SUz7geUYCrpT5Mixna+ewuCqT96VV7emfnJfBUZhQCgjOya7oss5FIm 4H3KuAQm1BT9khuGh70G6cGP5R/zm3K+gc3XsQ2M1jss0CnZsRUgQo9EywlclDHDgcCLQ+yJBHV VSjM1C6S7a4YzXN4oO6x36Loy9IURaRhyBHXxiGs3VahpnKDAlErMSmYpldZF6IiAF45fGPd2C5 ANja0IWEVgMKV83NghjKffgR20bcvMzX7nrwgk/wOH43G6/FPJ/vGfg1EnRc6VtD+zADcaXSY8U xYjq3tCJLrbKeluCkhQ== X-Proofpoint-ORIG-GUID: Qw8f3tCaajfItId2Oes6jDjuuzHEM1e_ X-Proofpoint-Spam-Info: AW1haW4tMjYwNzAxMDA5NCBTYWx0ZWRfXxXmOxaJguiJD qsswkbCQwDQ+n7A3uuuMrm8EgSOLBnA9dpzdEuF/9ylkyxGaly73GfKPm9ziBZZr8dO6/bpZ9AO JOtbMuEW+bv1Svx+N2mlRw/XcZ57SLg= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-07-01_02,2026-06-26_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 phishscore=0 malwarescore=0 suspectscore=0 priorityscore=1501 bulkscore=0 spamscore=0 adultscore=0 lowpriorityscore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607010094 On 6/30/26 2:41 PM, Vladimir Zapolskiy wrote: > On 6/30/26 14:09, Konrad Dybcio wrote: >> On 6/12/26 11:11 AM, Vladimir Zapolskiy wrote: >>> On 6/12/26 11:47, William Bright wrote: >>>> On Thu, Jun 11, 2026 at 10:48:34AM +0300, Vladimir Zapolskiy wrote: >>>>> Looks like the SDHC driver behaves expectedly then. For me it's hard to say >>>>> what may be the rootcause, I believe the lower bus frequency should be fine, >>>>> so it sounds like a hardware issue, but could it be PCB/board specific one? >>>>> >>>>> If you find a chance to copy the SDHC driver (and its small dependencies) >>>>> from Android and test it on your board, and if it also fails, then it might >>>>> be well concluded that something is wrong with hardware, still it won't be >>>>> quite convincing that the SoC SDHC is to blame here. >>>>> >>>>> Hope it helps. >>>>> >>>> My colleague Tendai () had the same issue >>>> with dll-tuning failing in SDR50 when working on the downstream 5.15 msm >>>> kernel [1]. >> >> I have a "feature table" and it says SM8550->SDC4->DLL [Y/N] -> No >> >> no wonder it fails the tuning if it's not present (or that's at least >> my interpretation of this doc..) > > So, is it a hardware problem of the SDHC4 controller, which reports "SDR50 mode > requires tuning" bit in CAPS1 (see SDHCI_USE_SDR50_TUNING from sdhci.h)? > > https://lore.kernel.org/linux-arm-msm/aik1ZYUT-cnpfdQn@will-Legion-Slim-5-16APH8/ > >> There's some notes about the frequency being limited to 75 MHz in >> SDR50 and to 37.5 in DDR50. >> >> The supported modes are DS, HS, SDR12, SDR25, SDR50 and DDR50 (with >> the caveat above). I found another doc now and it says that on 8550 specifically the bit you mentioned above is recommended to be "overwritten to 0". I don't know if it's actually r/w, but the bottom line is that tuning should not take place, per my understanding. Konrad