Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp397659lqi; Wed, 6 Mar 2024 23:50:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUxYS54I7YbJp7aQfPuQtltuDDag+Chw3ksKgyNebEm9dLvPtGN/iGdxe/1Zo4UFkkKWIvnwNMzZZofmHzn2sP17MeLpW+djJ6w2HHuhg== X-Google-Smtp-Source: AGHT+IH70qDpe/YDgt1EsVknuNDBINEjDEcA7eAbct106uwHU1YduNkN5iM3TYxS/oSJlR76aI26 X-Received: by 2002:a17:90b:19d3:b0:29b:7f85:db2c with SMTP id nm19-20020a17090b19d300b0029b7f85db2cmr1086439pjb.12.1709797847382; Wed, 06 Mar 2024 23:50:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709797847; cv=pass; d=google.com; s=arc-20160816; b=mheCfa5aI+hN4aETYrDC8tVCKAtgNspezTG2ay/ueIkMgduPaTOFKxrYSWbJsZcLM2 oZy/Hk+FctiGLoITMJwM/AO+kuzXzVMCO+tJqmHT3H+W91R/tmu89GoAt91qlDh4ZZ5A gL+LTM+fc6tCqtPUGRh3+vXkNxzCLmGuF/FNYtQWdKesKTo0R026Cg0ujRGCln9S+SHq 6jtI8A3e2S4L5+z/Kvq5jIKy88fIZ4RDCC5SMwYyP+juu9BjlL/tK2J1jURHhf4zGhby 8UoYyQ0HKr2YemjsGeHy5Zz+Nsx3LDBroHiaQeuarntOSzKdmGIri26DipxfHtpxefrG tUzQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=Ah0ukiTsKA1pY9lznY+1jzvEeB+m6H6B1R6XwmhrPB0=; fh=v6AVGSF+OWCmIa9FAC9Ksou2JAVIpZdUoh7bwiP4AgM=; b=SE21ZnmjVnx735hbj//kP9k/koA5J15Bly2zge492sBJDHlHBcRqfDuA5Fvf3mtHv2 RD8qeZUBhGTuC5AplKwGK7EK3zEnc9kzQr95HffWgCMRF9FdvCjDPDJdt1fHXY+ZoP5W /N1bECujzuE7nailFmjpCLWpJ4VENVs1eWVoKAvTTEMeOSf5K36lN9Ul1RSQuxTn0HUk 4hpUvqFX4nw8ojvDdMQhEwEjmL+M5kKJUL0DobUo55rQs9dMbl3ZLsOtWyEvUnrQoOW7 HtBB0ooN3zHvi3mexd1+I3vcR7pAMbUhQ/GzWM3ZtBoQyvIIjoScDlKN7QfMq2sGUJQm Rf/Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aPXUc351; 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-95085-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95085-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. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d6-20020a63fd06000000b005e425bf0f0esi13197222pgh.830.2024.03.06.23.50.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 23:50:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95085-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aPXUc351; 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-95085-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95085-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 7D5BDB2168E for ; Thu, 7 Mar 2024 07:50:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A6EC26312E; Thu, 7 Mar 2024 07:50:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="aPXUc351" Received: from mail-yb1-f171.google.com (mail-yb1-f171.google.com [209.85.219.171]) (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 3A9BE1BF3A for ; Thu, 7 Mar 2024 07:50:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709797831; cv=none; b=PoxzcGpAWPpVdkxdu/TGx8CKfvMk9BnN9TkjlLOkEGBvNopOoXOVGuMeB1lIHjjLAW2CssyG/cGA/G4K/p4lvWGav2ioIMjjAutPf0THTZnbsJwI8TVSVaisPJSshvKFNlP4wBsqWt5xjGeEFaiGo1Rw49ZjVcWhdcv82yMi1w0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709797831; c=relaxed/simple; bh=obiCLTXc9AtSTZAokHiOqHN8TgdotsLfNQ198pkoL7I=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=AhIk+4ZpYBd8yN/K/rATRX/kxY6k0+X3ZpTPzrrxD+ac9uGumdKFT/MAm/VBKASkkbDrjVTBrD5bFNtjXmcnZIbyGRzCZX9EmMLplGYMSeTrPE27cAgu0sYxgbl8JKIj2wqHkYFRdmZS1+J8p/G1MVgx3P1EvkNeZdFKUp2DN/c= 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=aPXUc351; arc=none smtp.client-ip=209.85.219.171 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-yb1-f171.google.com with SMTP id 3f1490d57ef6-dc25e12cc63so1666524276.0 for ; Wed, 06 Mar 2024 23:50:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709797828; x=1710402628; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Ah0ukiTsKA1pY9lznY+1jzvEeB+m6H6B1R6XwmhrPB0=; b=aPXUc351/Aoy6e4tGorPE8vtqwU1567VlOfS4cK7aoPyV7Pk8ief4q7LrR9kS01mtg XgnUz7LVT87nVbGZfUWPhlh528KJuQSD0ZLhRMIGvLb4efBqjWg2Bu90sMXtrqLPDTQo e4OX4eqcZXclRsDLJ5rx9FsOAYKrFnUKRo1/EliMTCR+gIOUt2RIHA+yHfrM64AuiiJm Uuh+eAjKkDAENcpnf1aLpIINwC6Q/pKfs9suSXAHWLSzZw5wZn+gL6glNqBehNyJ5y61 4yShUAJmLkpI+U62ZFkzYBGKjdRgjh6h05w44SosJ1Wp5gsZANkeo7WbbiVxYLhfPGbx w+KQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709797828; x=1710402628; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ah0ukiTsKA1pY9lznY+1jzvEeB+m6H6B1R6XwmhrPB0=; b=Lgwi+97sXqVL237J+y8aAIs+uEN/iQea1zbzxYk3nkTJTbWoZBtcWf/qZbgAhtWhJK ByR369XE9hU+xhSYEiUXPP91R7W7wviy9o+1fD4sANEdhPaHwLptNx4MFQhiew9ZS8xH TfG8+aQJtzk0Nfcg6T2da02JN/0aX9Q+0jufSjJm8UTLceW5bSt6i+d6U7tEVg7YDUw6 9VDh8XrwWpCFrHNZ7oNNLHdIwQtq1pTY9TpdpVotuk5b+L2KsubUA8aJnFo3mNTRDQLK zEzWtmIau9YstEDcI/enBGbbQcdVdQ4AWotjcdkHvOoxsQn/67s7f/0gxhhu8AfBl/qB sLeQ== X-Forwarded-Encrypted: i=1; AJvYcCVsLEg1bx8WvbHNiDoMKgY5UcVTvvnHOo+8ihuZF0MjL6DB5D1a5liz4Fa7EXakqVIPqhK4ZjLwAF1WYY314glK9DlHfqIfgH+ubir2 X-Gm-Message-State: AOJu0YzZSfzuM9s0DWSDovNrrVQHA6GC61zvyEdZH81O9OwzJnkwNQ8Q fm1CcdaWhOvU7+npxpjQVTiVhvPdOr8ZMBnk2mW7SsJ9U4hi7RBGU6KjLvYUy25Bbu/mgtKFORo ux41X0/WtgPSuiy+O7TF7TKgXd42Ey5gQIt4M/w== X-Received: by 2002:a25:1ed5:0:b0:dcd:9a9b:8d7e with SMTP id e204-20020a251ed5000000b00dcd9a9b8d7emr377200ybe.9.1709797828227; Wed, 06 Mar 2024 23:50:28 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240306123006.724934-1-amadeus@jmu.edu.cn> <20240306123006.724934-2-amadeus@jmu.edu.cn> <78b1a1a2-a9fa-4b28-9d96-d65bb5517199@gmail.com> In-Reply-To: From: Dmitry Baryshkov Date: Thu, 7 Mar 2024 09:50:16 +0200 Message-ID: Subject: Re: [PATCH v5 1/1] arm64: dts: qcom: ipq6018: add sdhci node To: Robert Marko Cc: Chukun Pan , Bjorn Andersson , Konrad Dybcio , Krzysztof Kozlowski , Conor Dooley , Rob Herring , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Thu, 7 Mar 2024 at 09:38, Robert Marko wrote: > > On Thu, 7 Mar 2024 at 08:28, Dmitry Baryshkov > wrote: > > > > On Wed, 6 Mar 2024 at 22:35, Robert Marko wrote: > > > > > > > > > On 06. 03. 2024. 20:43, Dmitry Baryshkov wrote: > > > > On Wed, 6 Mar 2024 at 14:31, Chukun Pan wrote: > > > >> Add node to support mmc controller inside of IPQ6018. > > > >> This controller supports both eMMC and SD cards. > > > >> > > > >> Tested with: > > > >> eMMC (HS200) > > > >> SD Card (SDR50/SDR104) > > > >> > > > >> Signed-off-by: Chukun Pan > > > >> --- > > > >> arch/arm64/boot/dts/qcom/ipq6018.dtsi | 19 +++++++++++++++++++ > > > >> 1 file changed, 19 insertions(+) > > > >> > > > >> diff --git a/arch/arm64/boot/dts/qcom/ipq6018.dtsi b/arch/arm64/boot/dts/qcom/ipq6018.dtsi > > > >> index 322eced0b876..420c192bccd9 100644 > > > >> --- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi > > > >> +++ b/arch/arm64/boot/dts/qcom/ipq6018.dtsi > > > >> @@ -441,6 +441,25 @@ dwc_1: usb@7000000 { > > > >> }; > > > >> }; > > > >> > > > >> + sdhc: mmc@7804000 { > > > >> + compatible = "qcom,ipq6018-sdhci", "qcom,sdhci-msm-v5"; > > > >> + reg = <0x0 0x07804000 0x0 0x1000>, > > > >> + <0x0 0x07805000 0x0 0x1000>; > > > >> + reg-names = "hc", "cqhci"; > > > >> + > > > >> + interrupts = , > > > >> + ; > > > >> + interrupt-names = "hc_irq", "pwr_irq"; > > > >> + > > > >> + clocks = <&gcc GCC_SDCC1_AHB_CLK>, > > > >> + <&gcc GCC_SDCC1_APPS_CLK>, > > > >> + <&xo>; > > > >> + clock-names = "iface", "core", "xo"; > > > >> + resets = <&gcc GCC_SDCC1_BCR>; > > > >> + max-frequency = <192000000>; > > > > If I understand correctly, GCC_SDCC1_APPS_CLK support frequencies up > > > > to 384 MHz, but here you are limiting it to 192 MHz. Why is it so? > > > > > > > > I am not sure that 384MHz is actually supported as IPQ6018 datasheet > > > > clearly indicates that HS400 mode is not supported. > > > > I didn't check the datasheet, I opened the gcc-ipq6018.c > > I understand that, I just pointed it out, it wouldn't surprise me if > the frequency table > was just copy/pasted from IPQ8074. Then it might be fixed instead, making the max-frequency property unnecessary. > > Regards, > Robert > > > > > > > > > > Regards, > > > > Robert > > > > > > > >> + status = "disabled"; > > > >> + }; > > > >> + > > > >> blsp_dma: dma-controller@7884000 { > > > >> compatible = "qcom,bam-v1.7.0"; > > > >> reg = <0x0 0x07884000 0x0 0x2b000>; > > > >> -- > > > >> 2.25.1 > > > >> > > > >> > > > > > > > > > > > > -- > > With best wishes > > Dmitry -- With best wishes Dmitry