From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) (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 82276517BA3 for ; Tue, 8 Sep 2026 09:28:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788859734; cv=none; b=j23UUeNla7pgfosvP4yu6CiRPxoHGn9r9OfUyTjybzc2q4kbG52bbZBPGh7teBD5B4/8jFc3Me/VfqxjR3oBZXzI2KLwVQYhShbB5B4a7Foc4+OyMLEI5u9pqLZW5cVib+KCvkBh7stkIZffbaWtE1N2+/q0h+H3DXcxaMxIPdU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788859734; c=relaxed/simple; bh=Qtu69igHTHFeUpqJnL+cNF9pCnQyvj2ES5i9e2nUAdc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=U9p1yCDkRn6mQ3udwA2G2B+c9EbAuPLc+p77imSR9aMVB62WxlYRoi+HJuuS94SajcbGT05zPEUtYYtzcaIz1RnVM3I67/b84rWvDaBCMzWFj1vO9Fn9Q47IOdIQmkR1Yr8ngeu1/1zbiR/0AJgqG9KX+0b3DkrChtdBZ7ngB6Y= 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=Y7C6J/e0; arc=none smtp.client-ip=209.85.216.50 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="Y7C6J/e0" Received: by mail-pj1-f50.google.com with SMTP id 98e67ed59e1d1-38e041ea211so3445187a91.0 for ; Tue, 08 Sep 2026 02:28:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788859732; x=1789464532; 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:content-type; bh=8EcwJ6FJdDLZqAgx4ZJcfrdseGR1/I5SVESCmgXprts=; b=Y7C6J/e0ct2QBI9ua/KC9QZqNv4KyRGLUyKE7lgB2L4NQNynrBrzvywjnNS8fXh/wh w0ni5BQCJ3gVGW7e55rCgzDDPkwEK1aZA3wMc4vSREC4vyVxHEdNeUEjaVusYt2qIeU5 hxk0LJ552zEo/QA6gV+Lg1mhVxYSjktBAtazPJjBmCg3q8uyPGv22SdBAX46DnXbGSit KdL02thk19/NoRwIjMRrcqWLFwXe5TiJNWChG1w8XL6D4Qhb6i0PyvxpVWepNjXFmMoP 02TJvy11ejhYHWTF5sBT5HVDPx4w51jfxeIgFRnRl+xzK9N9UBn8OOOofLV+8da1Ht45 O/hA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788859732; x=1789464532; 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:content-type; bh=8EcwJ6FJdDLZqAgx4ZJcfrdseGR1/I5SVESCmgXprts=; b=OC/73UFeDWSGJ/sH3tTGe7s4KhsJlXwG3V6JVISuyE+BKmi4uK/8ib5i9F6DfsdysS zm9IUJVl7QR0kiZLAMDEiTIoo1JPXu7PHIZ67JHzKiMcSE87+rbEXvXG8lNveFZT0oKO +7vlVUI6cpHDbPSYlPaJkpuiIp1yD+wdUGwxkVUKKmnCL/983blck1lEHJtqc3eU5ZE2 o9v27jC+4mGaS7it6qrS7rr9TbjAC1cFwTYB9CGbO1ByeGNDW2BPI3KYgBA+AMQTzcXw ky9H3bjD4o7SPGAQAXHS8RdYbcOJ7yIlbzM90SGWrcXvn2cfmtfoxrJeL24JaOga2EQ1 73sA== X-Forwarded-Encrypted: i=1; AKwUvByVh3p3kY5T5jhUPYIO3LDuKRKS6pQZvmxLRxGroalCGD6fpPystAVZGl5WGsua6Nl8y/B3q/wKpQEswns=@vger.kernel.org X-Gm-Message-State: AFuF++lgiUsj+Y1qG+FywYyxiSR4Ve84i8UM/XxC/CZaK3mWh75IvzpE +tkw51zx0FJVbKD8KYmJZtxlHsEE07vvAlvkGe5rpGUmvebRCTjfBuuF X-Gm-Gg: AYBFou09jRhiUEQo6T+xm8BZFkItuJ0Ae3ucAPv/pfVJ1WilK+e4Fl2svKJUcgRdhpS Q8C+Rv5HCgerN24kFeGTwhONimw2UKYN27N9Yh5vPaFdmO7TZyI7bDONhd18YvqeY2qkeYQRKML OmhGAjCxQ57uFwY0wtPQIlu6fwmXsZuz1BmbQUs0Jt9u+umas7ZzkN1cOysLF7EWn1DGmrs1sq/ 8z50FQiDkQ1ZfHpbH+NM7c7apE2PUZmFwQvC/b/LswygtlR2vDFD4PqirezRea0UGZ8gcl3nEJi ex7LvoZduOe5P1fkP8m+P/5Fcj1k0ST9GoBJI5hcCzEboDNMYe1L3BDcFLx+bcfPqAkj/RHfHnT 5O6joLdYRRMdQP06cuuQn7HfwxJXzp4JOqORFINBRk76CeVhGkND4WJZpQwSFGzKH0ePss3ybl0 rNtjHrK4763YwdjvwbRzTWIoUAIFbPum0xSyfgtPjlZCVha5hWS+OxFeD6XWbNF+tFafOa1pOW9 9Vepr5Gg9nQsb+/Gil5dyb8ZouzHbXwKezGXp6rmyzYobdKluL5 X-Received: by 2002:a17:90b:2808:b0:398:b46d:48c0 with SMTP id 98e67ed59e1d1-39b262aaeb7mr44896355a91.18.1788859731444; Tue, 08 Sep 2026 02:28:51 -0700 (PDT) Received: from localhost.localdomain (60-250-196-139.hinet-ip.hinet.net. [60.250.196.139]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-39b08c39227sm32109846a91.9.2026.09.08.02.28.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2026 02:28:51 -0700 (PDT) From: Joey Lu To: zhengxingda@iscas.ac.cn, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, simona@ffwll.ch, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: ychuang3@nuvoton.com, schung@nuvoton.com, yclu4@nuvoton.com, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Joey Lu Subject: [PATCH v6 1/6] dt-bindings: display: verisilicon,dc: add support for nuvoton,ma35d1-dcu Date: Tue, 8 Sep 2026 17:28:35 +0800 Message-ID: <20260908092840.225220-2-a0987203069@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260908092840.225220-1-a0987203069@gmail.com> References: <20260908092840.225220-1-a0987203069@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add the Nuvoton MA35D1 DCUltraLite (nuvoton,ma35d1-dcu) to the binding. The DCUltraLite uses only four clocks (core, axi, ahb, pix0) and one reset (core), with a single output port. The MA35D1 clock controller gates the core, AXI and AHB clocks with a single bit, but each remains a distinct clock line feeding the IP with its own rate constraints, so all four must still be listed individually in the devicetree; core, axi and ahb happen to share the same clock phandle. Move the clocks/clock-names minItems to 4 and resets/reset-names minItems to 1 at the top level, since that is the lowest count any supported variant needs. Add an allOf/if block that tightens the constraint back up to the fixed 5-clock/3-reset topology required by the existing thead,th1520-dc8200 compatible, and another one that caps the new nuvoton,ma35d1-dcu compatible at the 4-clock/1-reset count it actually wires up. Signed-off-by: Joey Lu --- .../bindings/display/verisilicon,dc.yaml | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/Documentation/devicetree/bindings/display/verisilicon,dc.yaml b/Documentation/devicetree/bindings/display/verisilicon,dc.yaml index 919a900122012..773966677d0f4 100644 --- a/Documentation/devicetree/bindings/display/verisilicon,dc.yaml +++ b/Documentation/devicetree/bindings/display/verisilicon,dc.yaml @@ -17,6 +17,7 @@ properties: items: - enum: - thead,th1520-dc8200 + - nuvoton,ma35d1-dcu - const: verisilicon,dc # DC IPs have discoverable ID/revision registers reg: @@ -26,6 +27,7 @@ properties: maxItems: 1 clocks: + minItems: 4 items: - description: DC Core clock - description: DMA AXI bus clock @@ -34,6 +36,7 @@ properties: - description: Pixel clock of output 1 clock-names: + minItems: 4 items: - const: core - const: axi @@ -42,12 +45,14 @@ properties: - const: pix1 resets: + minItems: 1 items: - description: DC Core reset - description: DMA AXI bus reset - description: Configuration AHB bus reset reset-names: + minItems: 1 items: - const: core - const: axi @@ -79,6 +84,45 @@ required: - reset-names - ports +allOf: + - if: + properties: + compatible: + contains: + const: thead,th1520-dc8200 + then: + properties: + clocks: + minItems: 5 + + clock-names: + minItems: 5 + + resets: + minItems: 3 + + reset-names: + minItems: 3 + + - if: + properties: + compatible: + contains: + const: nuvoton,ma35d1-dcu + then: + properties: + clocks: + maxItems: 4 + + clock-names: + maxItems: 4 + + resets: + maxItems: 1 + + reset-names: + maxItems: 1 + additionalProperties: false examples: -- 2.43.0