From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj2-f13.google.com (mail-pj2-f13.google.com [74.125.227.141]) (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 470B13D75BE for ; Fri, 18 Sep 2026 03:01:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.227.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789700504; cv=none; b=gi6sHYyR//BAbtc2a79Mz7qAgZ9qz+gpuYZnO1Km/mFIiYgkkA21LeOB0L83y1HI6CYfZ/u6df0PSd+2clki3Eb2N/UbZjQAl9UhX1E3F06fyjcRD2ka6gdeyeoLSLyxUTBk8Nn2ncWonbap4F7XMDPQuuwPsLA6G6BMpdT9gYw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789700504; c=relaxed/simple; bh=mFz63k23aaQYRmdN+ViRxXvGx6v8cMKKcpGHaF7j7H8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=i/1204LwzG2y2/3yajl+CNfnhAFhKcAfVm+0HhqRz6PDBlgQe/XpRpiE2ey1wQhmnke9CrGFwuTCQiSGqeU5MvFA7arCwaVOWUGJkku8RBghd6SRGN5zMO3bdlxEhHZFW7MaS4PRQJIyStsQOtrLjSNHlYH/cieSTy+sm53OsgM= 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=OeIpFAc1; arc=none smtp.client-ip=74.125.227.141 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="OeIpFAc1" Received: by mail-pj2-f13.google.com with SMTP id 98e67ed59e1d1-396ccb652d7so259845a91.0 for ; Thu, 17 Sep 2026 20:01:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1789700498; x=1790305298; 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=zNwi0hswB7nBQJuSOnrDkFTvC7EtUxGnPwE8AGU2RxA=; b=OeIpFAc1U/ra27Exf6LWJ5N67oECYjJdiKpQKitxlSM++mufXAQJ0MkwwCaWPqdJTj Xclg8BL4QrziW3pKGCy8z4EzFNEOPI8LiSOtXiVfLbUlB+nNX8w9jNH3k0k2gwr14oiK 8XvZsO0REwvOmT5UgjCdhmemZpY6P9FxzO7eZM9NLCVWAw5aHrn9ofKPuLqCGuBlYa5P fylTF45xVzYv3i+hz+V2IB6lQNVfg03XM0s7Vmps3To73XR5tHEtmNHfXZNu5p6WQMSL D4iBxCZr6NGjtdrgAdZZZKx3oYKPPVLdO/c9TXGUaqxc4JluBBSTEZfUdv9tdyoHfMuz HB1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789700498; x=1790305298; 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=zNwi0hswB7nBQJuSOnrDkFTvC7EtUxGnPwE8AGU2RxA=; b=0sfE22OKKdatmBgy0TptBeLIfxZ3fVYLT71hE/HKkOmvNmdzcw07xbdH4GtTk1z9y5 NhHRlx3qybn8CpkGfqLWUZmNmxLA8jl9PkdnltAxdwJVtDMGNOmYfpFSLnSGjMQU1GUH pjWJdnY0a5AEYHzbGJD8vf3RBLhOKFuONwOSap6lVVaPHwTXhF0Rtn5KJl1InMxIMQJc 6imPhKhX71GgjYsSU9WvmY4h5JlioyHZaGWNde692wxQIhsePBYzsrHMcIayWIX3fGIn 3zUc66wGCg/bSwQCPJM6hrjddLTpqQNLGCRQn+/x07ePMKAGrfExFRpolNcGoKKGHfPr ra0Q== X-Forwarded-Encrypted: i=1; AKwUvByrmMVAxrdaJueacfqM8Q4dv4s0eVMT5ugr3kWlbCHV+vpZvmmnmH5uw94bz1hIrtm36TnvI4Tx177jZS4=@vger.kernel.org X-Gm-Message-State: AFuF++k6nKwHw9r9KOKjE6JE9CZk633nCcfrEO+HM3kMMdv/X95a+SMI /IDbQpvegBC7Z1Zeea4ton/EXCEM9HNVJmw0GhFRTjzgV8fi9zOZM0fK X-Gm-Gg: AYBFou1aP8HAJhPjqJUFDrvgTNBlHvx823qW8y7HnuoHjrl4rxUoQdLfP64C77EROgb gH73DOEQNP7dMFnlOMkeeZkgZaU9F72ehb5XyOJbioiqCrt4ATppXGPtnHFLqPHVUTb1AZTLNge /T66bcMdgsswd4kWDT2o31r7y3Oqubuhxvvn2dkIqPa97uXmW/5R7wGnN3GkeG5jlY8CvGPUMMp LaGzx8yXD9vZH9csmsCFzkZsj3jt9i+f+MIfY+aRswI52sXLeQ1+R6vu9FWF2AmcNoCDk0rn+QI fyoLcLCFpyEbCryEdCC47vsKq3kV6UJdpEax1mBEigxcglM2N9dY5kO3CSkyTueBK60jJDwwawH 2jpaSiVuSG6FdqcfQ1NRltUDzhQxzRikyhZqwdcJO9OFt0pbO7nuXsMB/8nWMudz9KHy1qLhhXX mtqorfPO+JD+gdas7OFY9WlEng87zeRQcSOdXAcXAII66ndOKu+pPwNUAwFYyFFx124DCXO7WrH w313ixzZ8C0dhma9vjdO6G2w4NR20opazTot8PU7U5QUMTOO/SKZ4F57QZ/jOA= X-Received: by 2002:a17:90a:38c4:b0:39e:5c75:acbb with SMTP id 98e67ed59e1d1-39e5c75c196mr202652a91.11.1789700497914; Thu, 17 Sep 2026 20:01:37 -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-39e362e9402sm7969141a91.15.2026.09.17.20.01.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Sep 2026 20:01:37 -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 , Conor Dooley Subject: [PATCH v7 1/7] dt-bindings: display: verisilicon,dc: add support for nuvoton,ma35d1-dcu Date: Fri, 18 Sep 2026 11:01:19 +0800 Message-ID: <20260918030125.315978-2-a0987203069@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260918030125.315978-1-a0987203069@gmail.com> References: <20260918030125.315978-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. Restrict the same nuvoton,ma35d1-dcu if block to a single port@0, since the DCUltraLite only has one output port. Signed-off-by: Joey Lu Acked-by: Conor Dooley --- .../bindings/display/verisilicon,dc.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/Documentation/devicetree/bindings/display/verisilicon,dc.yaml b/Documentation/devicetree/bindings/display/verisilicon,dc.yaml index 919a900122012..e1e6a3a953646 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,52 @@ 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 + + ports: + properties: + port@1: false + + required: + - port@0 + additionalProperties: false examples: -- 2.43.0