Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 04A9DC001B0 for ; Fri, 11 Aug 2023 20:46:44 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9AF178693A; Fri, 11 Aug 2023 22:46:42 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kwiboo.se header.i=@kwiboo.se header.b="cezKAITG"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B93A88693C; Fri, 11 Aug 2023 22:46:41 +0200 (CEST) Received: from s.wrqvtzvf.outbound-mail.sendgrid.net (s.wrqvtzvf.outbound-mail.sendgrid.net [149.72.126.143]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A0DA7868BB for ; Fri, 11 Aug 2023 22:46:39 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bounces+31435339-7456-u-boot=lists.denx.de@em2124.kwiboo.se DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=mime-version:subject:references:from:in-reply-to:to:cc:content-type: content-transfer-encoding:cc:content-type:from:subject:to; s=s1; bh=H9nI574FZ0azzeV4lJ9VFbjWnkAzCmVplh6hmW52CuU=; b=cezKAITGmYWXlZ6o9Kl2q5QoKNZc9KIw4RyoQjRD51yC8dkf4rVbP1Roj4aZQ+1ikg6q lE5EHQ4s4T6uprG/rCk8n0o1GeU6NuQif4QvwfA72B0WRjpLZykav/8tnmSR1jq70aYkHZ PcMNqfkcnEJCDoZW07wFdNRyuzewBzjSPtcX49SKSvRk3gVm3PvIXXaV19kNw4ydkoDui6 augr6I0pRAlD9c4p1zToLXH/AGItaDs8+BLaGJzcGOyKH40Cy7abdemM0pDGWXVO23lVPU dT0aC6LL/Y9kZBrg6QIsQJ6mYlDVob5yfDXbQPpsUiZevw09Z2QRMUcswz+xIpBw== Received: by filterdrecv-77869f68cc-gp8f7 with SMTP id filterdrecv-77869f68cc-gp8f7-1-64D69E2D-34 2023-08-11 20:46:37.640617837 +0000 UTC m=+8025028.413861701 Received: from [192.168.1.50] (unknown) by geopod-ismtpd-7 (SG) with ESMTP id YaRLAsSOQvGvjlXCexMkWQ Fri, 11 Aug 2023 20:46:37.249 +0000 (UTC) Message-ID: <08812d49-e681-21cd-5f60-8d8e3dbcd9f7@kwiboo.se> Date: Fri, 11 Aug 2023 20:46:37 +0000 (UTC) MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: [PATCH 2/2] rockchip: rk356x-u-boot: Add bootph-all to i2c0_xfer pinctrl node Content-Language: en-US References: <20230803210239.3998777-1-jonas@kwiboo.se> <20230803210239.3998777-2-jonas@kwiboo.se> <9d7063f9-c1c9-681c-480b-4c88895e6ccf@theobroma-systems.com> From: Jonas Karlman In-Reply-To: <9d7063f9-c1c9-681c-480b-4c88895e6ccf@theobroma-systems.com> X-SG-EID: =?us-ascii?Q?TdbjyGynYnRZWhH+7lKUQJL+ZxmxpowvO2O9SQF5CwCVrYgcwUXgU5DKUU3QxA?= =?us-ascii?Q?fZekEeQsTe+RrMu3cja6a0h8IkHzele9Fzcik2Z?= =?us-ascii?Q?vfInIT151IG76OZOUTjl1z0iUfj9t2RqntgPUts?= =?us-ascii?Q?erILLKA9Bze=2Fw9SSLfX11GWYbT=2FuREau4v=2FY7BU?= =?us-ascii?Q?c2Ze1XIAIXTYmtt=2FBhaGbM2duFSScahj8tnIJ3c?= =?us-ascii?Q?BMzMAhKA+sb4+vp6X=2FcfvaACOPxX+Qd=2FQlj639?= To: Quentin Schulz , Kever Yang , Simon Glass , Philipp Tomsich , Jaehoon Chung , Chris Morgan Cc: u-boot@lists.denx.de X-Entity-ID: P7KYpSJvGCELWjBME/J5tg== Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Hi Quentin, On 2023-08-08 11:55, Quentin Schulz wrote: > Hi Jonas, > > On 8/3/23 23:11, Jonas Karlman wrote: >> A RK8XX PMIC is typically using i2c0 on RK356x devices. Add bootph-all >> to required pinctrl nodes to simplify use of the prevent booting on >> power plug-in option in SPL. >> > > I'd say this should be added to device-specific DTSes whenever > appropriate and not to the SoC-specific DTSI. Not everybody's following > to the letter the reference design. This also unnecessarily increases > the size of the SPL DTSes for boards which aren't following the > reference design. This only help ensures that the default pinctrl defined in rk356x.dtsi for i2c0 would be included in SPL dtb when the i2c0 node is enabled. The size change is negligible, my Pine64 Quartz64-A u-boot-spl.dtb increase 185 bytes, from 5392 to 5577. And with u-boot-spl.bin at 139 KB SPL can grow an additional 117 KB until we reach size limit. I mainly wanted to remove the need for duplicate definition in board u-boot.dtsi for upcoming devices like Pine64 PineNote and PineTab2. Regards, Jonas > > Cheers, > Quentin