From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (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 A14EC1DBB3A for ; Sun, 16 Nov 2025 12:00:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763294453; cv=none; b=n3ncZD1SfUpQHNE82Kubef5W4twHwVO5kpuRT25JFRRwlhXOsgOdBnWVfZMje0JYWAAYeqjG0q5wU63bTmyZ7ElN9qKzp5wZmELFSekZ+mJXCCMudQQUMbB2+6apJpUfdbOTuKrdu8r3Rg5n7tfQIW96BUMi9vQCaJOs8oxgLz4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763294453; c=relaxed/simple; bh=y8FaqKEjgD4Y2LjTTGKyATQQX3MWIGa2bobHCkDv5PE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=EOBgnxyv2b1qUmeZzx15SqEGn4iq6s2H4UWw4w4dbHPxn+5JqheV97dVwcL3+QxANxO2neH+meQDJxOZ9BpNopYnXPUl96HVNhQf5oL/tRM2jQZhyk80iYfS3STfzKl5y+vWs0+2sYyzoQgd6o9mm0Qf2OIjwLJ1Gk22salDFMQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=CVmDcesl; arc=none smtp.client-ip=209.85.218.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="CVmDcesl" Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-b736cd741c1so329889466b.0 for ; Sun, 16 Nov 2025 04:00:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763294449; x=1763899249; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=y8FaqKEjgD4Y2LjTTGKyATQQX3MWIGa2bobHCkDv5PE=; b=CVmDceslEFS5KH+2GMFa/SQodalsWRgxo5DoQiqFkYiKfg3wDkKlgYqkZ4Ag5M5BiT r2tlKSmhLSaiyvmFXGNGNJUDHQy3mG2JGCnAvodh9Uza2AQjtIQtAvXXk3q0W/iaPr7G EN0x/s/hspGBtclwuMWueiewiJwlr64aD45bcWc2P5Tyb2ikTWFSGlMtwOQKBZzcaKSW JOdhKg8GpXOrPsDbsjG4EmCmHKIyUyZQtCVDXVjzU1SJTSLUGMA1EAdD5JOkKIW54tQa pT7CtXDbCEohoS5svEiPPwSb+JcImTj+xHKChMdL4fzXvuoBUivz82p3AFKRZQQbYYrG fZBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763294449; x=1763899249; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=y8FaqKEjgD4Y2LjTTGKyATQQX3MWIGa2bobHCkDv5PE=; b=nCX75IgM9TUHmbIJ9dasrkED5vpIs9yKtTlWlpd0hZuSeuP7GlcIY8c/HJ19Mz+hLB YnCR+hFQoCXcU/2NEZ2KhO0is0XYqLsQd0bmOu0z17qNjMHq3y5dIxcB+b6qVFZiI6A7 E21rhqkHm64YUE9SCATeWQBuYk0I6Ds1B0r8AMnuglxXgL/RpVIkf988moShmTTb/Xrr c+NF2JoKlfVYwmmqObuF/gmfLjjTxWiQ4kipFTKW8Yx8y3zt2VZ3t5ADJWdD5mNTQrkV IrdtRh4ASH/sFacafwsIEBlNrir3jRFSlRSq9XMdX44Lcs3PwI0L+aOgowINB/xTLzbu J3vg== X-Forwarded-Encrypted: i=1; AJvYcCVfLeEVnp/r5qRREnM0CooCA6gOlDlW7RPS9C3E3iuOBw172ctj64Oe+31/cIflGBeN7uFNHxQac5q8GXQ=@vger.kernel.org X-Gm-Message-State: AOJu0YwLGPo8QmJjYTxaa5sXKElj0cK/iossehyGzOnc5wzwQO9uYZoC rqMkD6OnWix0ZVl1Isy1XWi/FNaeAxQkQ1JDpNXf3shialgOW5oMQnVg X-Gm-Gg: ASbGncvl64Mc+iGq9McLmFoD1j4vAu1UOR22wJ/2SqNfrrB1SgXUy+nVIRJW2xx2gPa Ky70jv9IFbsQa1MQTdBnr4BJtwV7jmFRxnRUr9XRPGVfUngCrYjG5SfBLgOsiICPEcq/mqx+vOR q7xVzzSPoWss3Km+AjEO9SECi+tLoIrY1QB8FjCzwP3mHVF917hj+XONC9crhCOU6Sn1tMRxZY7 JX2BpY1ahkk/EpcGunG8Gbq3lfZanZsZtn29YCZLhwScOdMwWINIrCjUPWFvKYpIPiYjofvvFEe NNQuZyBUjvUvsNn9n/s7cUtlnGlKuMgVWnhdrtg7Uhqlf5qLDsxO8p4qNmCxaRfmq+gOQUCy3/4 OUF04FsJRgUfYIR94SN29zbNOq4TqwoISureWXPPtuRB0XgSszVv9G3CWxI9PScSpsPCPo9g9qY /GKu+Va1DWql/dmSdQMFqwwJJhC23Z3GP7Nj1k1hYQ+q3bS7vCeegaJyCMg1DfGtC1S//q5h5+Q lZLdCsGzEBcSI9T X-Google-Smtp-Source: AGHT+IFWFubjCIweyb9YCoKzVFcXXsXAAvddERhRBpi3vJIG1VQ4HjCz6c3ATn4RBI8dMcQCX4ffyw== X-Received: by 2002:a17:907:96a8:b0:b73:989d:3a86 with SMTP id a640c23a62f3a-b73989d3e2bmr79438866b.40.1763294448767; Sun, 16 Nov 2025 04:00:48 -0800 (PST) Received: from jernej-laptop.localnet (178-79-73-218.dynamic.telemach.net. [178.79.73.218]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b734fad48dcsm826174066b.25.2025.11.16.04.00.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Nov 2025 04:00:48 -0800 (PST) From: Jernej =?UTF-8?B?xaBrcmFiZWM=?= To: Krzysztof Kozlowski Cc: wens@csie.org, samuel@sholland.org, mripard@kernel.org, maarten.lankhorst@linux.intel.com, tzimmermann@suse.de, airlied@gmail.com, simona@ffwll.ch, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Subject: Re: [PATCH 6/7] dt-bindings: display: allwinner: Update H616 DE33 binding Date: Sun, 16 Nov 2025 13:00:47 +0100 Message-ID: <10753322.nUPlyArG6x@jernej-laptop> In-Reply-To: <4b4ebcc2-491a-42d3-9758-60de80ce5eb6@kernel.org> References: <20251115141347.13087-1-jernej.skrabec@gmail.com> <20251116-pigeon-of-optimal-blizzard-2cb3b3@kuoka> <4b4ebcc2-491a-42d3-9758-60de80ce5eb6@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Hi! Dne nedelja, 16. november 2025 ob 12:33:55 Srednjeevropski standardni =C4= =8Das je Krzysztof Kozlowski napisal(a): > On 16/11/2025 12:33, Krzysztof Kozlowski wrote: > > On Sat, Nov 15, 2025 at 03:13:46PM +0100, Jernej Skrabec wrote: > >> As it turns out, current H616 DE33 binding was written based on > >> incomplete understanding of DE33 design. Namely, planes are shared > >> resource and not tied to specific mixer, which was the case for previo= us > >> generations of Display Engine (DE3 and earlier). > >> > >> This means that current DE33 binding doesn't properly reflect HW and > >> using it would mean that second mixer (used for second display output) > >> can't be supported. > >> > >> Update DE33 mixer binding so instead of referencing planes register > >> space, it contains phandle to newly introduced DE33 planes node. > >> > >> There is no user of this binding yet, so changes can be made safely, > >> without breaking any backward compatibility. > >=20 > > And why would you configure statically - per soc - always the same plane > > as per mixer? If you do that, it means it is really fixed and internal > > to display engine thus should not be exposed in DT. Not sure I understand what you mean. H616 SoC has 6 planes which are represented with single DE33 planes node (see previous DT binding).=20 Driver has to decide initial allocation. For example, 3 planes for each mixer. However, nothing prevents to allocate 1 plane to first mixer and 5 to other. You can even allocate all 6 planes to one mixer and none to the other, if board has only one output enabled. In any case, plane allocation is runtime decision and has nothing to do with DT. Since planes are shared resource, their register space can't be assigned to only one mixer. See [1] for example how this would look like. > >=20 > > Describing each IP block resource in DT is way too granular. > >=20 >=20 > BTW, everything is update, thus subject is really non-informative. I guess "fix" would be more descriptive. Best regards, Jernej [1] https://github.com/jernejsk/linux-1/blob/d93d56d92db52c7ff228c0532a1045= de02e0662c/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi#L181-L235