Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1272622lqp; Mon, 15 Apr 2024 00:44:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWDKQoSgkV90XCNK671aQuYE5XV+fWwPFq7dLgBoS6S3vZiv/OkKCnLXDZxDk0BrHx9S1UIFo1pS2zeT6fv8Sezwx7WLY620m32p6wvZw== X-Google-Smtp-Source: AGHT+IFdFv324+AxAVJMrApbY2B65phJDYw82aZSJSeKma78p4LgpRiCWropxM0ifkt6WYVy3oHC X-Received: by 2002:ac8:588c:0:b0:434:3ecb:b6eb with SMTP id t12-20020ac8588c000000b004343ecbb6ebmr10844679qta.46.1713167089810; Mon, 15 Apr 2024 00:44:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713167089; cv=pass; d=google.com; s=arc-20160816; b=TPzS6FYy9oS4WdMaXvtYaPa2o5g+ibArxmoWxEq3uBkGIY0ffltn6fRfyVTSr6jhwC dD/0hhC6Uo0dg7lFSTyDJu8uOdvx2YHOnGYYX6fqLx30Fym5L/QaKZSfZ203nU3a+v4M V6R+mL2zDkmmYWRY7FgcVHmirTbrkRlNWHOyRlG/tHEAKMY9KE8W10qckTqL19yiSS6W DJc/xkQ+dCfvDKrZXanfOh4SREuqLTDSTPB/w3AUkJvUGIIpFOP+wUh5+Mwe4wfNjo8q M9cw6BiIe2mo/eTtfreyvp8a1vzFC05N5yseZxcxQ+jpXSbzN9hj9uGm9ZSNoZVpcvY9 zgUg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:from :content-language:references:to:subject:cc:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=QiMNpOSoKUjR1Wtr6GuPAYb1hdJwJ3VRxcscaIKAfYI=; fh=QTdP00+oexRtS7fP3Dph6q2i5MkcOPMn64yaP7f1Bu8=; b=nCSLzqFG/buFnpB0ABvbQd/TEnDz2SbnSIPXCEBH58Agm19zEYuugSF0dgs6lcmz+p C+CHd2RB6Cl+VEwnW0UkZnfUnZuoOhc9eLKTR3hgKOJN2un6d9xermdCVyObNmZKQa4J sX17JdGFH6ti5oHPe+Dyw0oLxs+hWK96Skw9OK8cmCxM2cQBN4F3WOi0Fuc9Mc3l+m2a w2wkLqhIgVGbGLggs8cSgXTbZtoV4yAj7lg79MDsxGRA9ubLCoYlEvne0to7mvh2fsiv U2CCJSZxsICa1uZddMrxB6pydfNYKpCZM2VVo5nK5P8of0Ml2ACxUHwYZT9Efs/UWr3E GOhg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="Nvk/rXZK"; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-144692-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144692-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id u21-20020a05622a011500b004368be56934si7519380qtw.191.2024.04.15.00.44.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 00:44:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144692-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="Nvk/rXZK"; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-144692-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144692-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5B7A91C21E31 for ; Mon, 15 Apr 2024 07:44:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E00DF2940F; Mon, 15 Apr 2024 07:44:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="Nvk/rXZK" Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) (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 A1F3320335; Mon, 15 Apr 2024 07:44:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713167080; cv=none; b=V9R1VGsZHl8ftE4ARna3yUR+vPqX+dPU5yJI3pgL4yj2+IDfQMYImwjKsGjC0gmZ5pCXEj2Zie8kUEp96gCYBLyAuvXHhA6JKIrav4vOaTAYfUtxhcYzvXv8HtNhBJg+MxIFSkk2xKAuWKIVYKlcd/6irvRrBbjOYLQz26Iedco= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713167080; c=relaxed/simple; bh=rd7uyf9US0bWcIRDFwfOfCTgUqPC8XCQTic44zRqyak=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=hYvUq4krKWH2e8K8s0vTgbZBz/gN5f88cLe/6a1hz2DckvGtxK/cIcBbZ+7X+N0wzsckuR2bRyXI90+Lut3Hd8bG1WMkgrRWBLx+hg9pzGNsBFkP31N2nv9IK4FtIzhhR89ygkAJxrfrZgWev62iiiAlwAihqcnfHZO3CRIXkH8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=Nvk/rXZK; arc=none smtp.client-ip=217.70.183.198 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 1EFB9C000A; Mon, 15 Apr 2024 07:44:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1713167075; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QiMNpOSoKUjR1Wtr6GuPAYb1hdJwJ3VRxcscaIKAfYI=; b=Nvk/rXZKJbOHwRNhheJEh6OEqevzX5EWhGMEBpjQwRuAGofgY90i5t6ve7M8rCOgybM9AI LvhqNrQbmL32AwGzGiPjynna5C4jrUUslDb1QI2DPsTtgPNzmfXol/ytndeH8zSxhMKeG3 tf027rlA9YlmDZWO0ORc/Y/ewPz3C5F0uMYGrMHAC6jG58tezdRBgGA8fVMRPQdZ9zkWGz WQFC3gdATNbxSJuFIRETajuWjeQq5Hj6JOEYzmvhhuxtPqRUIMUZx4LNENGZ0WIKiS0Cq1 G2BCU+OjutjghLev5pLgozyyDu420qMyizc7fMUeom7UBnM1hvvqRpUwQUGqSw== Message-ID: <16df0d66-991a-4d9c-9321-b139555a5e64@bootlin.com> Date: Mon, 15 Apr 2024 09:44:32 +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 Cc: michael.opdenacker@bootlin.com, Jisheng Zhang , Liu Gui , Jingbao Qiu , dlan@gentoo.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: (subset) [PATCH v9 0/6] riscv: sophgo: add clock support for Sophgo CV1800/SG2000 SoCs To: Inochi Amaoto , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chao Wei , Chen Wang , Paul Walmsley , Palmer Dabbelt , Albert Ou References: <2696c0e0-0f15-44d1-ba40-dcab4be802d2@bootlin.com> Content-Language: en-US From: Michael Opdenacker Organization: Bootlin In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-GND-Sasl: michael.opdenacker@bootlin.com Hi Inochi On 4/14/24 at 11:41, Inochi Amaoto wrote: >> Gotcha for the CONFIG_CLK_SOPHGO_CV1800 setting. However, I'm confused. Why >> is this setting available in linux-next, but neither in >> git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git ("master" and >> "for-next") nor in github.com/sophgo/linux.git ("master" and "for-next") ? > At now, we only maintain the dts related change, but not the driver > code. The driver code is usually applied by the subsystem maintainer. > This is why you only see the clk changes in the linux-next. > >> What's the tree used to push to linux-next? >> > As you see, the driver code applied to the clk/for-next. That is the > tree used to push. It makes perfect sense, thanks! So, I tried to boot my Milk-V Duo S board with the latest linux-next kernel (with CONFIG_CLK_SOPHGO_CV1800=y). Here's what I'm getting: [ 1.933301] mmc0: SDHCI controller on 4310000.mmc [4310000.mmc] using ADMA 64-bit [ 1.947274] Legacy PMU implementation is available [ 1.954001] clk: Disabling unused clocks [ 1.959283] PM: genpd: Disabling unused power domains [ 1.964840] ALSA device list: [ 1.968165] No soundcards found. [ 1.975652] dw-apb-uart 4140000.serial: forbid DMA for kernel console [ 2.133075] mmc0: Internal clock never stabilised. [ 2.138256] mmc0: sdhci: ============ SDHCI REGISTER DUMP =========== [ 2.145082] mmc0: sdhci: Sys addr: 0x00000000 | Version: 0x00000000 [ 2.151906] mmc0: sdhci: Blk size: 0x00000000 | Blk cnt: 0x00000000 [ 2.158725] mmc0: sdhci: Argument: 0x00000000 | Trn mode: 0x00000000 [ 2.165543] mmc0: sdhci: Present: 0x00000000 | Host ctl: 0x00000000 [ 2.172362] mmc0: sdhci: Power: 0x00000000 | Blk gap: 0x00000000 [ 2.179220] mmc0: sdhci: Wake-up: 0x00000000 | Clock: 0x00000000 [ 2.186056] mmc0: sdhci: Timeout: 0x00000000 | Int stat: 0x00000000 [ 2.192878] mmc0: sdhci: Int enab: 0x00000000 | Sig enab: 0x00000000 [ 2.199699] mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000 [ 2.206520] mmc0: sdhci: Caps: 0x00000000 | Caps_1: 0x00000000 [ 2.213342] mmc0: sdhci: Cmd: 0x00000000 | Max curr: 0x00000000 [ 2.220162] mmc0: sdhci: Resp[0]: 0x00000000 | Resp[1]: 0x00000000 [ 2.226983] mmc0: sdhci: Resp[2]: 0x00000000 | Resp[3]: 0x00000000 [ 2.233798] mmc0: sdhci: Host ctl2: 0x00000000 [ 2.238558] mmc0: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x0000000000000000 [ 2.246189] mmc0: sdhci: ============================================ [ 2.256290] /dev/root: Can't open blockdev [ 2.261025] VFS: Cannot open root device "/dev/mmcblk0p2" or unknown-block(0,0): error -6 Here's my device tree (compiled with the sophgo for-next) branch: /dts-v1/; #include "cv1812h.dtsi" / { model = "Milk-V Duo S"; compatible = "milkv,duos", "sophgo,cv1812h"; aliases { serial0 = &uart0; }; chosen { stdout-path = "serial0:115200n8"; }; memory@80000000 { device_type = "memory"; reg = <0x80000000 0x20000000>; }; }; &osc { clock-frequency = <25000000>; }; &sdhci0 { status = "okay"; bus-width = <4>; no-mmc; no-sdio; disable-wp; }; &uart0 { status = "okay"; }; What's frustrating is that I got the mmc working a few days back :-) Hoping this helps... Cheers Michael. -- Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com