Received: by 2002:ab2:68c1:0:b0:1fd:9a81:d0e4 with SMTP id e1csp168023lqp; Sat, 8 Jun 2024 10:22:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUDEXn6cqhXrpvhjjWGPRtSaQ0e42VPw6OAV2Rw1ifG3n7Bg13mPP1ZKj+sjPPW4i1UUoxutY0vm0AKxmIQsMReB+HCcchBUIsXJWsD/Q== X-Google-Smtp-Source: AGHT+IG1jlZL+KxBhQQUBxIyGmgY75fIFh57lwwL8EBeBhZ3bHzW7o1TudNNvkn3pEJb68/gKWXe X-Received: by 2002:a05:620a:204d:b0:795:21bf:519f with SMTP id af79cd13be357-7953c5f79c5mr504822985a.70.1717867346418; Sat, 08 Jun 2024 10:22:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717867346; cv=pass; d=google.com; s=arc-20160816; b=J6iIu5japjE1pMcVphS4dDGtGlNOsJTundUjR3XZj2ZPaL9S/NvLS38ZOvPaIVAKdC SoTteaFV4raopJrgFYJuYTyYc5Vl9gAPMyD+DoWfk/tPiBQVaTRk4BrWcW1ABJ6aCBM8 fr402Kxtt87ozbbagysg6tgSImjL3iH/gTSTk3tVWmMcSozQLTtCRZh24TUT7hsXHlnr zJVhBXa3zKi0VKS8vmow/588DHpccmrNIbzda7ilUZoNN+BDvRpZQe3X8muu608Zg+Eo eq65GSHSO6FqDuLmD2Ua29lHlkPiVKLifyuQWOPOr/1gghj6Uz/gL/+tt5Jumwd7ZUbj SE/Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id:dkim-signature; bh=2f+pYuR6lrsMVFpw7uUNre0sSUtn4WJWNxtrKHxGRHc=; fh=dctwTeI7s+8eKdpBBRwmMUNCha0GmY2Ec+HAW0qWgfw=; b=zyBBBJvoMXT8e0bJrnXOna1g2tHc2YBV0YaUNYxlqNocjbmD20rWXN0dewMWqKqgVP cx57st7QgwkDLYJUtRzBYU/5+4X2T7fNhzI8HQOU2fN/V/bmfNSlXuWFmXaudmED5NG4 F+YnSD6RdjwTSNPm+gWE5Bfprszm8jbPBnkhjUmJ1Iwew6QDb01qzLGZ8XdiY6ncGXxn z2/y/ddFSWHU5lu0aofVyFN7NiXJg0RAuEllfLKxOXWof6KwZGgCq687v/JtPAa7XZCo bOXII2k+0r0tVaZ7brDksNUk9C8OGVVayff5W2BuBYEfBp2PMxARsllkiiPY3HkupsLL yQPQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mail.de header.s=mailde202009 header.b=QtPq22zk; arc=pass (i=1 spf=pass spfdomain=mail.de dkim=pass dkdomain=mail.de dmarc=pass fromdomain=mail.de); spf=pass (google.com: domain of linux-kernel+bounces-207157-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207157-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mail.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-7953333a23bsi691043085a.591.2024.06.08.10.22.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Jun 2024 10:22:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207157-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=@mail.de header.s=mailde202009 header.b=QtPq22zk; arc=pass (i=1 spf=pass spfdomain=mail.de dkim=pass dkdomain=mail.de dmarc=pass fromdomain=mail.de); spf=pass (google.com: domain of linux-kernel+bounces-207157-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207157-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mail.de 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 1FA3A1C20B12 for ; Sat, 8 Jun 2024 17:22:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CAACF171B6; Sat, 8 Jun 2024 17:22:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mail.de header.i=@mail.de header.b="QtPq22zk" Received: from shout12.mail.de (shout12.mail.de [62.201.172.58]) (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 293C2C13D; Sat, 8 Jun 2024 17:22:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.201.172.58 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717867338; cv=none; b=huFBhNfaylP0ZpvXu4D7OVqTrdJ+PSx/bk6/Yiuyzu1icmpLSp0qsig1xztn5PTaCn9PUjr7OkwajWlq7BvARKXkS7BPnKAkwBttfowTPeMxdE9A7P2OyeN4A6D9QhlYqddQN29LUGsQa0+aB5kz/BMztBJZvvVfeRmQspJ3O8I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717867338; c=relaxed/simple; bh=nTqQvFr46P0vv3NLlWh3QruttC5WiwbWCLiZjuxYiw4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Aik9nygMvObun6eyDmnnHA8kAoww/OM68lN4aeMA/WOrhXa+WJLFZbqlKsg3E9OdDrRkk1ToNmuzkd0ZgvdlzyWFudYbE5LXxRwEAibxKdCmJtsHO+My6lWac75uJxudT/oJZnR0/KubsDt+LFbIzTIbwyPlF+/GDUv4k1P+MxU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mail.de; spf=pass smtp.mailfrom=mail.de; dkim=pass (2048-bit key) header.d=mail.de header.i=@mail.de header.b=QtPq22zk; arc=none smtp.client-ip=62.201.172.58 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mail.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mail.de Received: from shout02.mail.de (unknown [10.0.120.222]) by shout12.mail.de (Postfix) with ESMTPS id CD59324195D; Sat, 8 Jun 2024 19:22:07 +0200 (CEST) Received: from postfix02.mail.de (postfix02.bt.mail.de [10.0.121.126]) by shout02.mail.de (Postfix) with ESMTP id 7CB59240D28; Sat, 8 Jun 2024 19:22:07 +0200 (CEST) Received: from smtp01.mail.de (smtp03.bt.mail.de [10.0.121.213]) by postfix02.mail.de (Postfix) with ESMTP id 56B9FA00E2; Sat, 8 Jun 2024 19:22:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mail.de; s=mailde202009; t=1717867327; bh=nTqQvFr46P0vv3NLlWh3QruttC5WiwbWCLiZjuxYiw4=; h=Message-ID:Date:Subject:To:Cc:From:From:To:CC:Subject:Reply-To; b=QtPq22zkCst/3Odw3H+ZrzKPc1+PJfy5CFLdCIEFwWJf+Ty5hUeca2pvr47pY4cQ6 haBxMXq9Ugs0o2vgBln2sBpNoVHcggwHiOUWQ3mO/Q1MDc6YjFK2SQY1IhjiVzSYxw dQGcHZsD/nDFfUuQ4YlvPcXCq+O6Rnr8/tFqFvfX660fttgMej8ZcQA0FOF9Cw04Sp 7q8+1n0+RTvUKgS6I7+4QpMmUItv++HH3CH0RHDgFGIc7CERs2Sfx98Rj6N2jiDQir ExM4+gGeZPlqpzkBS+i/9W8EEKtx5AZEjBS8wYbMn6tcoSSm2WhOoF8oY+mTHfnyvi qUzdmukmKW3lQ== Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp01.mail.de (Postfix) with ESMTPSA id E0C8124009E; Sat, 8 Jun 2024 19:22:02 +0200 (CEST) Message-ID: Date: Sat, 8 Jun 2024 19:22:01 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH v2 2/2] arm64: dts: rockchip: Add FriendlyElec CM3588 NAS board To: Heiko Stuebner , linux-rockchip@lists.infradead.org, Sebastian Reichel , Space Meyer Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonas Karlman , Dragan Simic , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20240602211901.237769-1-seb-dev@mail.de> <20240602202132.2012-2-seb-dev@mail.de> <11747652.CDJkKcVGEf@phil> From: Sebastian Kropatsch In-Reply-To: <11747652.CDJkKcVGEf@phil> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-purgate: clean X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate-type: clean X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate: clean X-purgate-size: 2691 X-purgate-ID: 154282::1717867327-31E241F9-A930B556/0/0 Hello, Am 08.06.2024 um 16:38 schrieb Heiko Stuebner: > Am Donnerstag, 6. Juni 2024, 15:13:20 CEST schrieb Space Meyer: >> On 02.06.2024 22:20, Sebastian Kropatsch wrote: >>> Some RK3588 boards are still using this property, the following quote >>> is from rk3588-tiger-haikou.dts for example: >>> &sdmmc { >>> /* while the same pin, sdmmc_det does not detect card changes */ >>> cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>; >>> >>> I am unsure as to whether this comment from the quote might apply for >>> the CM3588 as well. Please let me know if you are able to tell :-) >> >> I don't quite understand this. However GPIO0_A4 *is* routed to the micro >> sd CD according to the NAS schematic, page 16 around A5. > > for the actual sdmmc_det functionality ... possibly some pinconfig thing? > I.e. pull-whatever settings? I have no idea. I just removed the "cd-gpios" line in v2 due to a suggestion by Jonas Karlman and then stumbled over this comment. So I'm not sure whether to include or not include this property for the CM3588 NAS since I don't know the consequences. Probably in the end it doesn't even matter :) >>> + vcc_3v3_pcie30: regulator-vcc-3v3-pcie30 { >>> + compatible = "regulator-fixed"; >>> + regulator-name = "vcc_3v3_pcie30"; >>> + regulator-always-on; >>> + regulator-boot-on; >>> + regulator-min-microvolt = <3300000>; >>> + regulator-max-microvolt = <3300000>; >>> + vin-supply = <&vcc_5v0_sys>; >>> + }; >> >> These are 4 seperate regulators according to the schematic. However, as >> they are all fixed, idk if they should be split or kept like this. > > personally, I really like the power-diagram to match schematics. > I.e. $debugfs/regulator/regulator_summary will produce a really nice > graph of all the system's regulators, so it's definitly nice if the > hirarchy matches. Also prevents head-scratching later on ;-) These are indeed 4 different regulators according to the schematic.[1] But they don't have any pin to control them separately. I can duplicate them 4 times if that's the preferred practice. But matching the schematics won't be possible either way, since e.g. there is only one single 5v regulator acc. to the schematic (vcc_5v0_sys), but vcc_5v0_host_20, vcc_5v0_host_30, vbus_5v0_typec and so on are needed since each device has a different control pin to enable its power. Or is there a better way to solve this while having only one 5v regulator node but still being able to set the control pins separately for the different USB ports? Cheers, Sebastian [1] https://wiki.friendlyelec.com/wiki/images/1/15/CM3588_NAS_SDK_2309_SCH.PDF