Received: by 2002:ab2:68c1:0:b0:1fd:9a81:d0e4 with SMTP id e1csp201217lqp; Sat, 8 Jun 2024 12:01:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXRGE8QDmYTcH6/ICiZlu/+An/B4iyxpcQABzjq6AXPk5Y3/aWc8i/oym/u/PbV/5f7HCUB9zTh/uIFNK27gZa/818IaPgY/SwrQd0XpQ== X-Google-Smtp-Source: AGHT+IFbLxgy53KTmIdMxDckQOXrrgiTvytzQl0QQxSsiRMxeqIhS9qkHBkiZggnBWtIoCHj90o0 X-Received: by 2002:a05:6102:365:b0:48c:36bf:8eb8 with SMTP id ada2fe7eead31-48c41b09cedmr1744392137.14.1717873305429; Sat, 08 Jun 2024 12:01:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717873305; cv=pass; d=google.com; s=arc-20160816; b=iya1dLaO/hX5wEeOwD63300/hNEdTCjCrnzbPLcMXt5dMQQRID0JVPqKts2n9LC74T o+HV8DsyBk5BnjO3gUJGlIWsLB8zzlbNfY1TDp0CAlyFuzjChOOxhLez/4FgpE3bfS4S 1P2ZvGuPGuXoPkPMmWGGAxNa6AOr5lYQplMeNIxxhGngjP6QFupwJFgrMKT98xf7Ay6r vsKsDmmPRoreXTJhbjv9sIQO0t23eQHfhWLbw2RswlTcUGBoauiJQwZLgNUtK7Js0G7K LxpsJlZ+FL/Jud+FqOLSmZAsz4+a60yH2P9py6m0jLiPut52JgK8E/22qo9m2YwJ73wt L+ZQ== 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:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:feedback-id :dkim-signature:dkim-signature; bh=lt2gCnDCMY1CyDDj1IemDrmxftjgCwzl3+LRlMhaArk=; fh=F0yvrerzYePFrWY6vq9EiKyzGa43AzmnsOV565YeAlY=; b=fMt+WB8UpRR4caMazgR6RBgaUkwa5gJEw/kmFEMn50byovUSI+HYjJSXEvloJ7DdCW 0rRkry3BOzv/K0Cq0aM4e4ikOOuIathOhbDRNxPVB1y3ViV6D+nFLGvXFubQN8V31tB5 uDTbqA+gDmGd7lAPt0Y0lmRQF656DSk7eVsqiZ38KWVPVnEtX4It4ZySOuOE5W46bk3l m4uPh0PbpyRy/YoqzMyPfBnLowoO+26ca41vbJ0PXSU9k/RvbYPGW18Np2wzGHJF1Qbi 9GRkGpJrSWVc2r6IWT2/l5EAAxWB0VGys/B+I96JRk4ZphBCW0A4C9CJ/fbQXLQKOLgD GArw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@the-space.agency header.s=fm2 header.b=N9f2oPm9; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=mSUrlLSI; arc=pass (i=1 spf=pass spfdomain=the-space.agency dkim=pass dkdomain=the-space.agency dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-kernel+bounces-207175-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207175-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ada2fe7eead31-48c1a1ecc38si1642072137.243.2024.06.08.12.01.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Jun 2024 12:01:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207175-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=@the-space.agency header.s=fm2 header.b=N9f2oPm9; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=mSUrlLSI; arc=pass (i=1 spf=pass spfdomain=the-space.agency dkim=pass dkdomain=the-space.agency dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-kernel+bounces-207175-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207175-linux.lists.archive=gmail.com@vger.kernel.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 1B47D1C20B39 for ; Sat, 8 Jun 2024 19:01:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9E9FD208D0; Sat, 8 Jun 2024 19:01:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=the-space.agency header.i=@the-space.agency header.b="N9f2oPm9"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="mSUrlLSI" Received: from wfout4-smtp.messagingengine.com (wfout4-smtp.messagingengine.com [64.147.123.147]) (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 3C48C1CA8A; Sat, 8 Jun 2024 19:01:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.147 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717873292; cv=none; b=robPrczjGCw7mVkL/6ppn90TjgAo6C//8dF/H8H/4chpC8iOn9b/0CoPxenU+bakEaBpilVTRWtlDCCSBj4DvCR0NkeGWoaORp6+CN6ru0wgd0EyW/Y2QY9XMobkhUIgwP19V/VT02X1zEtzLkYwR0+PO+yjBeUVfMweiHLCbxI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717873292; c=relaxed/simple; bh=MG5PpexBysmxCCmeiqkWMqz28iL/gaKFz0brOpSzbwM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=QNG2bo4QiDKXUaI8qvPCXBqRyWlBfx91e04LWslZLylQSpL60A/CLw8oRv6gTOt5TrGQqOJuNZn7B0behG8UDAKrkFreOpL3Q0XHXkqVHYOXEer/YeKqE5Z4yceak9nNsitl6eUnt2acj9p665bnH6kIMQCNpqted+gqIm5gE38= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=the-space.agency; spf=pass smtp.mailfrom=the-space.agency; dkim=pass (2048-bit key) header.d=the-space.agency header.i=@the-space.agency header.b=N9f2oPm9; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=mSUrlLSI; arc=none smtp.client-ip=64.147.123.147 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=the-space.agency Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=the-space.agency Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfout.west.internal (Postfix) with ESMTP id 955DC1C0007B; Sat, 8 Jun 2024 15:01:28 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sat, 08 Jun 2024 15:01:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= the-space.agency; h=cc:cc:content-transfer-encoding:content-type :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to; s=fm2; t=1717873288; x=1717959688; bh=lt2gCnDCMY1CyDDj1IemD rmxftjgCwzl3+LRlMhaArk=; b=N9f2oPm98Ay9T7k7p3IatLbue+16UQnGWG8OS zq/2CodnPgeSEkOloW1sZF3KYf9hraoJ9A4HEzWopgRwfRrGbUxvLjQ5bt9YEPWA 7T8P886Ikd/d0Oh2xjXGdhVHOenlaHdf5vm5avZRHCBWmxclRQRcVdgORQx6sJOp rsclWrkOrlDWImZwZia/77it0snyHCozAiSDrjI2+CTrESg1TvJVLdTbJsVl8aWc 7yBXJTTNTqOqqu8g7l/jPyAKZYwSXqPqN10OEcITerDfUHVUbVG7GC2jItaxCwSJ 2Ve5d61i5SWVSqw41v0F3gq22twcF2r+h1rBW6vN6Jn6sH4fw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1717873288; x= 1717959688; bh=lt2gCnDCMY1CyDDj1IemDrmxftjgCwzl3+LRlMhaArk=; b=m SUrlLSIN4QuF74SAFmGE67uiQfC+4J0bvliRa/bdVpHHXJvShU9pjp3iTaiIg80I YrKE1XzglH/Nq42HztkXNY0ok0dE+Gb7N1i7Rb7AT4++WOEF8aBm4wN8e3z7vYVl PUAhYolE0TEnuFDVo/seOGSisY095mSQxCbHBDge4+yKQCJiepgTCuwFL7bSnk7u WzBzyYUFXYz+7VI7SXWprHQuovoNtdzkX2uOAskmA0T4yu6Y/3ioynps1xplWoCI VtZC/mNBjX2XNluxeGbiuzWWsPjNpKkTffZHrWwzorZ9bSmxFLocaeTWjOMJeUdW nMKu97547yUfp8FSBWShw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfedtgedgieejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpehmvges thhhvgdqshhprggtvgdrrghgvghntgihnecuggftrfgrthhtvghrnhepkeffjeettdegje ejfeevhffhieeufeevhfdvhffhhfeljeeuteeifeehveetudffnecuffhomhgrihhnpehf rhhivghnughlhigvlhgvtgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpehmvgesthhhvgdqshhprggtvgdrrghgvghntgih X-ME-Proxy: Feedback-ID: i2f914587:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 8 Jun 2024 15:01:25 -0400 (EDT) Message-ID: <279b22e7-56ab-49ce-8b35-3a68258a4a91@the-space.agency> Date: Sat, 8 Jun 2024 21:01:23 +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 2/2] arm64: dts: rockchip: Add FriendlyElec CM3588 NAS board To: Sebastian Kropatsch , Heiko Stuebner , linux-rockchip@lists.infradead.org, Sebastian Reichel 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> Content-Language: en-US From: me@the-space.agency In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hey Sebastian, On 08.06.2024 19:22, Sebastian Kropatsch wrote: > 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 There are these SY6280AAC power switches, which have enable pins and unique power net names coming out of them. I think it would be best to treat those as regulators. i.e.: - Page 4 C4 has GPIO1_D2 as enable, outputting VBUS5V0_TYPEC - Page 17 D4 has GPIO4_B0 as enable, outputting USB3_PORT1_5V - Page 17 C4 has GPIO3_A5 as enable, outputting USB3_PORT2_5V - Page 17 B4 has GPIO1_A4 as enable, outputting USB2_PORT_5V Each can just be seen as a regulator outputting either 0V or 5V. Kind regards, Space