Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp850020rdb; Fri, 26 Jan 2024 12:38:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IE6HXDOCtW4edSJkLBwwrChhAwWP/+hsZp8hYIKLmonaizRmfN+4gn3dtaYP49yfbTBgU1w X-Received: by 2002:a17:902:e986:b0:1d4:2266:64bf with SMTP id f6-20020a170902e98600b001d4226664bfmr366921plb.52.1706301496159; Fri, 26 Jan 2024 12:38:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706301496; cv=pass; d=google.com; s=arc-20160816; b=cfFmEIasO6zFATlOs/KjeC3zInxXOfSpSsuo8IbCmnZEckS2PyNcGAXSP0zDnySSTy sqrIVSOac8UQ1oLQilqS3j7Dounj+Tbnrcr7xr9RGEYoxHqPuSW3sTIrIEuzgXmwl/XD nqVIOELNFDlBwXkKQde8cEv7MguyHGpaADUF/ECS6tXv6wymT3iz583+PoqVSCIl4tpW ZyQEYJF3UTIGTyANCSrUJZR/4K2TLsNtFuLI7gPMs7UwxC64eqUo/3O+SgEVQ2YEtNIO 4U1ETCL9ZoHdKkvF+FrggjcOCdDxo1Xl/BDK3nzK8P+4ZsHklUbsG1/N+IrkWCLL9TCH wI0A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:to:from:date:dkim-signature; bh=NYCCyIQ53N2fPJSmSe1OnCZBRQHCjx5kJLMTGRkp3Ro=; fh=aRh2SCqgGkQyXMQ7YIGk205cWsefY0aqLDUUlC0nWW4=; b=0/78dmSA60YXU3++xt2IwGDzrHM9R6hYHYTnUCgb8K2MZh87OKdLFb1If68QH2WO78 ERyq1bBxBGHq+knqJtQu3HHSouZHepm1pdLAkLDQ48QFMhJ6ucC0n1Z1OeC5MQ/lhdYX g5eGUfRUPFPUyebxVHk3BCEIS7Fv+jyw9JJJObd0wiiswdwOdhZP2iV74NMVgg6Ar3qY SQSaI8B0ZeQVu2Zw1mXgz1LIcWN8XFMdF+daulMJLbL53Uo0oclMabmKuSzNwCypDwvm R/qYjE89Bn8HQUa8JTD+Ke1g9WCaShpTVLi46vdZuiZd/1ARaPT49vpkQPmnhUvz60ft 9Gew== ARC-Authentication-Results: i=2; mx.google.com; dkim=temperror (no key for signature) header.i=@mecka.net header.s=2016.11 header.b=cC5EMOIy; arc=pass (i=1 spf=pass spfdomain=mecka.net); spf=pass (google.com: domain of linux-kernel+bounces-40634-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40634-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id p19-20020a170902e35300b001d720323d4fsi1629882plc.40.2024.01.26.12.38.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 12:38:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-40634-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@mecka.net header.s=2016.11 header.b=cC5EMOIy; arc=pass (i=1 spf=pass spfdomain=mecka.net); spf=pass (google.com: domain of linux-kernel+bounces-40634-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40634-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 5EB0AB25BD5 for ; Fri, 26 Jan 2024 20:36:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3CD802420C; Fri, 26 Jan 2024 20:36:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=mecka.net header.i=@mecka.net header.b="cC5EMOIy" Received: from mecka.net (mecka.net [159.69.159.214]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9AA5422EF4; Fri, 26 Jan 2024 20:36:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.159.214 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706301392; cv=none; b=HC5GGeKW93B4wtsTzMMLsyV7OUrCcr+1iu0wwS+BRwcceljfOGKIWZppqIcAFlrAjU6hGmw7B3NdaaFQj8d2JqGv4tHQVO3I+TJpfqTb3Mmy96uVlYV4iG3REvhRWLGn5pVwNyqP2L8oPZiu0Mev3ytdAa1jvjaxox3dT9XHsIQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706301392; c=relaxed/simple; bh=bS0tHXldnDP7fP1hTCX/Dobr7gSKMxZIXrqw5AcghSc=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fDqV2YXgYDVe7BuvVuzTKwqmwhCVZrZSnPcf903307HLtIvUKVcRwNPlx6Jmd05vvoasP+KUfbYdaZ61seoclFdi1KoskG69eHQZgkI+iZMjD9aVyReeZ3bZ0KF8WlLAjleVvRcjqwFAQlPpnNOignyK+a8umNROoDGQySlRSeY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mecka.net; spf=pass smtp.mailfrom=mecka.net; dkim=fail (0-bit key) header.d=mecka.net header.i=@mecka.net header.b=cC5EMOIy reason="key not found in DNS"; arc=none smtp.client-ip=159.69.159.214 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mecka.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mecka.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mecka.net; s=2016.11; t=1706301020; bh=bS0tHXldnDP7fP1hTCX/Dobr7gSKMxZIXrqw5AcghSc=; h=Date:From:To:Subject:References:In-Reply-To:From; b=cC5EMOIy3hGOaPaCp40VoGhD5wRmepADo9Sbans8FHbyxXIaD3Q5dVXYhZfj9eJl/ AIoAKjkp9uMqM78/RAeaUZsBJVFREknowDoPzrSCT7/1UB/WmIsOD/QXgxt8cWmWw2 Eji+gCm8xZ9MGRSItCu24/ELJUT1shgjLwMGC257hAEA88z2h/NK+DwykNNaPhw+YB f/U5TY4llR8Q0kNJoTVmZ2x8aFzQJ6McVmc8R+BRyy3ppEKx4ESSQ1GZyg0zoTwh9l ZOkeJ8i02kjKcxbBUs/WZMFjA1wADIp/3dmurR5t37ZzVmzeM9aa5ggKUsvSY6Sesf fJnapb/MbfYGw== Received: from mecka.net (unknown [185.147.11.134]) by mecka.net (Postfix) with ESMTPSA id B135B3B4E7E; Fri, 26 Jan 2024 21:30:19 +0100 (CET) Date: Fri, 26 Jan 2024 21:30:18 +0100 From: Manuel Traut To: =?utf-8?Q?Ond=C5=99ej?= Jirman , Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Sandy Huang , Mark Yao , Diederik de Haas , Segfault , Arnaud Ferraris , Danct12 , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: Re: [PATCH v3 4/4] arm64: dts: rockchip: Add devicetree for Pine64 PineTab2 Message-ID: References: <20240102-pinetab2-v3-0-cb1aa69f8c30@mecka.net> <20240102-pinetab2-v3-4-cb1aa69f8c30@mecka.net> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Hello Ondřej, On Fri, Jan 05, 2024 at 05:48:46PM +0100, Ondřej Jirman wrote: > On Fri, Jan 05, 2024 at 05:11:03PM +0100, Manuel Traut wrote: > > On Wed, Jan 03, 2024 at 10:42:54AM +0100, Ondřej Jirman wrote: > > > Hello Manuel, > > > > > > a few more things I noticed: > > > > > > On Tue, Jan 02, 2024 at 05:15:47PM +0100, Manuel Traut wrote: > > > > From: Alexander Warnecke > > > > > > > > + leds { > > > > + compatible = "gpio-leds"; > > > > + > > > > + pinctrl-names = "default"; > > > > + pinctrl-0 = <&flash_led_en_h>; > > > > + > > > > + led-0 { > > > > + gpios = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>; > > > > + color = ; > > > > + function = LED_FUNCTION_FLASH; > > > > + }; > > > > > > This LED is supplied by VCC5V_MIDU, so maybe this should be a regulator-led > > > supplied by gpio (FLASH_LED_EN_H) controlled regulator-fixed named f_led which > > > is in turn supplied by VCC5V_MIDU. > > > > > > https://megous.com/dl/tmp/9bf0d85d78946b5e.png > > > > regulator-leds are controlled by turning on or off the regulator. However > > VCC5V_MIDU is also used by other devices (USB, HDMI, ..) so I guess this is > > not what we want. I would keep it as is. > > It's used by the LED. gpio-leds will not ensure it's on when you enable the LED. > > In practice this may only come up if someone tries to save power by unloading > dwc3 USB driver, when using PT2 outside of the keyboard case. Otherwise > VCC5V_MIDU will be enabled by DWC3 driver's use of PHY API. > > In any case, I'm not saying you should use VCC5V_MIDU directly in regulator-led, > but as a vin-supply to a new regulator-fixed node (which would be describing > this "fixed voltage regulator" https://megous.com/dl/tmp/cc65ec81ab9af163.png ). Sorry for the late response, I was busy with other things in the last weeks. I changed it to be a regulator led and will post a v4 soon.