Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7022379rdb; Wed, 3 Jan 2024 01:43:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IG4+yKp+j3on0lTsxkAm+d8eu3yS+evRWRepBjHpLtPXEPp67attCqs3jHVMTsxyY70kEEr X-Received: by 2002:a05:6512:3b8:b0:50e:84ad:d0f7 with SMTP id v24-20020a05651203b800b0050e84add0f7mr4607690lfp.129.1704274990862; Wed, 03 Jan 2024 01:43:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704274990; cv=none; d=google.com; s=arc-20160816; b=Sh53IUEAdjsn4VcUCU4y48p/UvgZFt773tUvHqJqz7yAjOwNliePDwX2y01qA8G/6d xeiGaPZ+CjXA0GXkVgpcOTwcxKCKLGepqyz6ld7yQmQnK3xK1/Ayrxu+d06ELP6YTrXT G7M/0Tq7TGjkjdICLpwH5kyOGArONXO6xNJ9mcqKJY/ge4TwoNVqIi1ScLMW7lxU899v 6zN5o1c/FU6OPRPMiRr8RW4supQAXdzLAfZ7+YZ9GAjALPiqnel5tElSSe2tqacLBtj4 0U7TMPmUXremr3yQCsb62NBGUqItdmFFDg8exaEduOQEMWq2vBgUe80yF0V4GKGin4Rt 8gxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=SsaFdYOZ30qB/LUZ2tov9ldw0tJLl5TlL8WLprUKcdc=; fh=k8lTEIau/Fyjb7q2j+0Iiu71OZToO1Gv6f4oVuYB3hE=; b=za5o3Iugz794w3pmwZ+dLwk9G9GsBAC208SuekloWjhAYB2jF6Aihen4zY25EJIol0 etKZtozucBQeEBMnzResCPk8CMrMeWMPlAnt6aTmk+sor5xRAMKLp/nwINbqNl0IqZry ue8TwUJvAWk894G3W01BLPh2belLzlunIC09uvZ8srveHP0YlctgDg/oo6wjIkJl4Bgq 3aSchq2VlMT81vSjJb6tNAVnDBCkcV9Nt5B33v5/5FicCvIYfSjJKh4gqhNpFFwAfr8a bgxFiKwi4TJRKDavnqIVhxeFokujTgSvXyURZrbjeiblAA/hNeARCcQNBuTnRCuvqPtg dX8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xff.cz header.s=mail header.b=DWllvzcs; spf=pass (google.com: domain of linux-kernel+bounces-15338-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15338-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=xff.cz Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id gi34-20020a1709070ca200b00a26ac591e55si10337256ejc.129.2024.01.03.01.43.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 01:43:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15338-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@xff.cz header.s=mail header.b=DWllvzcs; spf=pass (google.com: domain of linux-kernel+bounces-15338-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15338-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=xff.cz 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8E0571F23F2B for ; Wed, 3 Jan 2024 09:43:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C91718623; Wed, 3 Jan 2024 09:43:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=xff.cz header.i=@xff.cz header.b="DWllvzcs" X-Original-To: linux-kernel@vger.kernel.org Received: from vps.xff.cz (vps.xff.cz [195.181.215.36]) (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 AF505182A4; Wed, 3 Jan 2024 09:42:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=xff.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xff.cz DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xff.cz; s=mail; t=1704274974; bh=+FuXJj2iKg82sXCjmgWQQwQpfkrjPVRuS95BkQPHOsw=; h=Date:From:To:Cc:Subject:X-My-GPG-KeyId:References:From; b=DWllvzcsi439e2+YBGopYhr7/9P4TW/n11basEqxa5WmGOsOuP9HnwC1kXB4B2o1+ SbiCHP4a0BGb1mZFtaJjf3sSm54STGsn0NSLu5ZpzdrxDb3+tuGLSgdyPZpmbBYqrL 7VHgotempQviHZ7yLqhZT+zg9JoMETqwqz2oaZt8= Date: Wed, 3 Jan 2024 10:42:54 +0100 From: =?utf-8?Q?Ond=C5=99ej?= Jirman To: Manuel Traut Cc: 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: Mail-Followup-To: =?utf-8?Q?Ond=C5=99ej?= Jirman , Manuel Traut , 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 X-My-GPG-KeyId: EBFBDDE11FB918D44D1F56C1F9F0A873BE9777ED 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=us-ascii Content-Disposition: inline In-Reply-To: <20240102-pinetab2-v3-4-cb1aa69f8c30@mecka.net> 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 > + }; > + > [...] > > + > + speaker_amp: speaker-amplifier { > + compatible = "simple-audio-amplifier"; > + pinctrl-names = "default"; > + pinctrl-0 = <&spk_ctl>; > + enable-gpios = <&gpio4 RK_PC2 GPIO_ACTIVE_HIGH>; > + sound-name-prefix = "Speaker Amplifier"; > + VCC-supply = <&vcc_bat>; > + }; > + > + vcc_3v3: vcc-3v3 { > + compatible = "regulator-fixed"; > + regulator-name = "vcc_3v3"; > + regulator-always-on; > + regulator-boot-on; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + vin-supply = <&vcc3v3_sys>; > + }; > + > + vcc3v3_minipcie: vcc3v3-minipcie { > + compatible = "regulator-fixed"; > + enable-active-high; > + gpio = <&gpio4 RK_PC3 GPIO_ACTIVE_HIGH>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pcie_pwren_h>; > + regulator-name = "vcc3v3_minipcie"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + vin-supply = <&vcc_sys>; This regulator is supplied by vcc_bat: https://megous.com/dl/tmp/4ec71a4a2aea9498.png > + }; > + > + vcc3v3_sd: vcc3v3-sd { > + compatible = "regulator-fixed"; > + gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>; > + pinctrl-names = "default"; > + pinctrl-0 = <&sdmmc_pwren_l>; > + regulator-name = "vcc3v3_sd"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + vin-supply = <&vcc3v3_sys>; > + }; > + > + vcc5v0_usb_host0: vcc5v0-usb-host0 { > + compatible = "regulator-fixed"; > + enable-active-high; > + gpio = <&gpio4 RK_PC4 GPIO_ACTIVE_HIGH>; > + pinctrl-names = "default"; > + pinctrl-0 = <&usb_host_pwren1_h>; > + regulator-name = "vcc5v0_usb_host0"; > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + vin-supply = <&vcc5v_midu>; > + }; > + > + vcc5v0_usb_host2: vcc5v0-usb-host2 { > + compatible = "regulator-fixed"; > + enable-active-high; > + gpio = <&gpio4 RK_PC5 GPIO_ACTIVE_HIGH>; > + pinctrl-names = "default"; > + pinctrl-0 = <&usb_host_pwren2_h>; > + regulator-name = "vcc5v0_usb_host2"; > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + vin-supply = <&vcc5v_midu>; > + }; > + > + vcc_bat: vcc-bat { > + compatible = "regulator-fixed"; > + regulator-name = "vcc_bat"; > + regulator-always-on; > + regulator-boot-on; > + }; > + > + vcc_sys: vcc-sys { > + compatible = "regulator-fixed"; > + regulator-name = "vcc_sys"; > + regulator-always-on; > + regulator-boot-on; > + vin-supply = <&vcc_bat>; > + }; > + > + vdd1v2_dvp: vdd1v2-dvp { > + compatible = "regulator-fixed"; > + regulator-name = "vdd1v2_dvp"; > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1200000>; > + vin-supply = <&vcc_3v3>; > + /*enable-supply = <&vcc2v8_dvp>;*/ > + }; There's no vdd1v2_dvp in the schematic on the camera sensor connector, or elsewhere: https://megous.com/dl/tmp/fd95f003d8f3fbfb.png So I guess, you can drop this, entirely. Maybe it's VDD1V5_DVP but I don't think it needs to be described in DT, since it's pretty local to this camera sensor, and nothing else uses it. https://megous.com/dl/tmp/7fc384e196c5428f.png regards, o.