From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (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 1E43D15B56C for ; Thu, 2 May 2024 15:53:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714665189; cv=none; b=m64p6o/dHf1050xYf3ul1Q3djK0mxHRPqq8kk9ZozJBYTwuRRR1+QlA/eyb6GWQ5XJLYAfsCBka5JMxfz1LzvfDIT81lol9CzkZOE4DTRhg5oSqap2PjZ/oOdStkL4HUXJcHxKkZJiTHC33tBtFRPd7lba09t0qARfr/LcZQMiQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714665189; c=relaxed/simple; bh=hgLqQsUmbnlqSKDOOFDfYvGL7hLvkqrTWQ08Fg0yZ2c=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=EKU5NozyUrsJqgc5aCXtwEUiXcII8zEoCQQUtnuAGcXox3/44f9ONNgGd6oph/W8gIpyy+9ewnQXv2Orj0BovXe2IfUb0OlGIfyROCysgY3cT8NrLYUfZ/P95MdzS32c01YCHOkGsm8wFzG8qka3YgMv8isjSUg+P8wJ/6h4l78= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=tenstorrent.com; spf=pass smtp.mailfrom=tenstorrent.com; dkim=pass (2048-bit key) header.d=tenstorrent.com header.i=@tenstorrent.com header.b=XXRv0S7M; arc=none smtp.client-ip=209.85.214.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=tenstorrent.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tenstorrent.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tenstorrent.com header.i=@tenstorrent.com header.b="XXRv0S7M" Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-1ec486198b6so26196375ad.1 for ; Thu, 02 May 2024 08:53:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenstorrent.com; s=google; t=1714665187; x=1715269987; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=xrO+BzTfAqGrVSW6gaAM1uVW/UhYnHc2qIbuASzSIck=; b=XXRv0S7MFTlv3u2OhC968Zki0V1ZqmbE8lL18EQVLpE2J+GRo6VUd2rFmDAVLUoDI7 RH1LkBOnS3AwTa1FBTCt2W4v6Pvav2gueoZrvWdPN5tTPku5V+YP28JkYAQmG/LH7IOz nlfLZW2YHtALHKxTpuqZOkLRh/U6PQciMJI+anpzID3lWjxcgM4q9dju31eQtTZgwilv 1Ywn+yLzK62CRFJ/WRED2NqBctu0HiNd1zpgRCnINVReE+JsJzMYDN6dxYBEHgEUicAV ea12Hlh8u9pGF7cCQetFrW4iE2kLy6q0i/m6Jox6t0JPnjIHtbHI8cnheNLB2zBIiIGt FmJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714665187; x=1715269987; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=xrO+BzTfAqGrVSW6gaAM1uVW/UhYnHc2qIbuASzSIck=; b=ZuMVzcna91PGLv0CVH2zT2siTwfCii1RJ4nNRyCh7JNsFVfBzAA3nkZYHdhmpuXWsH UK0nW4A+pX2YCm4MhjPoNfjkfbnrt7Kag6wKNFMrB65JgCvnrOWjeq5xra9yPj4Lvj1U nrLp284eXbtF7QLAkFIm5Iobk1LCef+tJiH7Z6dWzvMGnb/3iAvUcxOmKCpPamdkG5zg EByA1M0V5uY5VN1YzfneFumljS2liaZsO21a7sGY4hnAqtpqF7IVBDhy4K5aj5BRjrpw jpY7LRTnkf99i5dByOG/thCHvdtnylcAyHNSaax4XOPZ3N4LKMr+zDnbS+r4qUxx8VyX r59g== X-Forwarded-Encrypted: i=1; AJvYcCXIEAkePOwGa9ClcYFvGbs+EghC2qdGNI3wnfCbWShpz9TFMGvgGn5UtlaQCsC0F1nqQQkmKxke6Yb13k7Q8p6t4hE9Ec9crN5UWUsP X-Gm-Message-State: AOJu0YzWHoKRwtpmmGiC9mASbVTmmaPpII0juMWvGXEdrFTYfvE0o7zO GOJsUayZznUaK9suQg5WEvadpbE4g8pTfLduvgtPAMtq2pkQ1JNFhFOVzmb8zhM= X-Google-Smtp-Source: AGHT+IGrW1OPSdicmml9TYEIm0yY7aapvxFGT0j7ToPXTRa7G6YIhicWH6kAZGYVaA97W1Sg6HV2lw== X-Received: by 2002:a17:902:bb8b:b0:1e4:5b89:dbfa with SMTP id m11-20020a170902bb8b00b001e45b89dbfamr28506pls.41.1714665187388; Thu, 02 May 2024 08:53:07 -0700 (PDT) Received: from x1 ([2601:1c2:1802:170:e8cc:54a1:83d7:2ef1]) by smtp.gmail.com with ESMTPSA id m3-20020a170902c44300b001ec2e620b1fsm1447508plm.273.2024.05.02.08.53.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 08:53:07 -0700 (PDT) Date: Thu, 2 May 2024 08:53:05 -0700 From: Drew Fustini To: Thomas Bonnefille Cc: Jisheng Zhang , Guo Ren , Fu Wei , Yangtao Li , Emil Renner Berthing , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv@lists.infradead.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Miquel Raynal , Thomas Petazzoni Subject: Re: [PATCH RFC v2 4/4] riscv: dts: thead: Add clock to TH1520 mmc controllers Message-ID: References: <20240426-th1520-clk-v2-v2-0-96b829e6fcee@tenstorrent.com> <20240426-th1520-clk-v2-v2-4-96b829e6fcee@tenstorrent.com> <1444dac5-c725-4bf7-8843-469a62c3abf1@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1444dac5-c725-4bf7-8843-469a62c3abf1@bootlin.com> On Thu, May 02, 2024 at 09:47:43AM +0200, Thomas Bonnefille wrote: > > > On 4/27/24 2:10 AM, Drew Fustini wrote: > > Change the clock property in the T-Head TH1520 mmc controller nodes to a > > real clock provided by the AP_SUBSYS clock driver. > > > > Signed-off-by: Drew Fustini > > I experienced that, when the I2C clocks were correctly configured, the UART > stopped working, likely due to their dependence on FOUTPOSTDIV. > Setting up the UART correctly, for instance: > > uartx: serial@xxxxxxxxxx { > ... > clocks = <&clk CLK_UART_SCLK>, <&clk > CLK_UARTX_PCLK>; > clock-names = "baudclk", "apb_pclk"; > ... > status = "disabled"; > }; > resolved the issue. > As this would be mandatory in the future, I suggest that you configure all > the nodes currently set to a fixed clock, not just the MMC controller. Thank you for testing and discovering this issue. Could you post your device tree so I can be sure I'm testing the same as what you have? Drew