From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) (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 A742633F5A4 for ; Tue, 3 Mar 2026 08:15:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772525763; cv=none; b=XQpfwFhdkidT0Ub9pOOQpQ+JikPZ+pfIfqmPagwNcHU4hlypIyROJ6PSyZVvddnVUFEbs+GP2Q5xJSjHXe8JUU4Esa27Gfwatny5sCMlKpNtGBuDx3gP+v6WkE3B/Y+Snu0yk7Z2LjBZpoE0rzYwZxNLiiu41DQ2o3UaVVHyBfk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772525763; c=relaxed/simple; bh=h7UQp+wCCdGxuPRthbKJCaMnTN9z9Rmtr0lUehGbgh4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=BaEg/x3UqZLbaqYulzzog+rBhcwy4Zqk3C+23sBqvFcf8mdlnYZaMBYxL7ZmsHtCe57/xCSnswumiF56BgfTS7DBSRglWYUT/SgPaT2V9k6oSkOshvi4DfzCoO/itdxHVmxXe62POTVi6uuOm2MKg1l+wvqG0NanQxs/MTF4Xx8= 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=Uxerb8oa; arc=none smtp.client-ip=209.85.216.52 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="Uxerb8oa" Received: by mail-pj1-f52.google.com with SMTP id 98e67ed59e1d1-3598b95ad7dso1451763a91.2 for ; Tue, 03 Mar 2026 00:15:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1772525753; x=1773130553; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=TOoaOEZuNJH/wFIt6h7FeWwE1+oo5QuN+aJxkWYzY4s=; b=Uxerb8oaCCHITvXnvichS4DlkVfxUmTYqIM/l3tpXAA09/+TyIp3uZJ5vXxIGRtrBK 6y3bo/4Vv5uq5gDzXgf53kb+p/59adyBYKD5aA8RgEhabxFSlBkUy4Ec1I3igW6lZHdv vozrHne30y+YNhjT1T+6339N7hNY7LlUQV8t6nZuj2/XRAXYDmXMk9W2HjCVMnC8/aCH DKLgBomVazYQRSwTIi8NALJnv15zDHcrSLp5mS4tyok6VyrG3kn105zV0v57ug9c1PmY PDZpRh397b9q2op3fXaEyjA7y4LnRmXreSgY6CiTPc3ucLY0xMh/eElURSwk7Ge7lmiw 4usA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772525753; x=1773130553; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=TOoaOEZuNJH/wFIt6h7FeWwE1+oo5QuN+aJxkWYzY4s=; b=flc1wAothlWzxde2cVbFS/qwz1svectPgsxPgtlHvxmfT8S6/qMOVUcWzedlGYmZgq 1y/zzTM8hiSVR71Z8nOaTWXYbhxBoYaUG6jLOjQHXICEDf7QtZAXODbYz6pq5n7luw4V qAB6qYSMxif01cW4cYUZDBui8pssJk0x5SEyUL2Q8YXOD9B2kiFRspfgGaqaljU/cJcC Ti4C9D48Cw9sTSaDB3Jc58POXMKFQG/tkx264Eh8iU2Ii/ytFJbuug0tuqCYY+pLESgv QXsfrKmPEVhORcx15Dc4HlU3VmICllS/L7Vm91Zp1Yp5bfSyS5UlJNQbM8jI7bKMryJ8 G38w== X-Forwarded-Encrypted: i=1; AJvYcCVzdu0uPtd8+AoxpV8sF2Ka2EY+nfsgpaEHlPiN/hxuRwWifQDzAYZsMcUwjjrDy1cSKSBiN6nqY2gVH0Q=@vger.kernel.org X-Gm-Message-State: AOJu0YyY70CWLCP2GxrDxQi+I0BvqsPTOBjxqJU34uBnotP+BmTpYPNs nuVvwJzyLmbcmdobS7ven5+K6W4odJzAkYJ5KtTUZqVIs3gCkgxH/gL+ X-Gm-Gg: ATEYQzz4ulyAKAHiA9KhyQ8g0tbR6T81/tGTv6+3AeCds6hNj+W3NSMqrVtRt5jxv3n xEGflmL4122x1jsQThu+AXi/dh3okHeGczGBAOs/x46VGJHzPeZd15xMu7Q+A2VNqsD4oULX/Ip pCMBsfooVbNuoF6CO7QpSG7Rb3SkbtLlQKr0cYH3u3yLMFa0vntk9mMjJL308OAxultCy0OlcWG R1Wo8440sMi5oRVLmbyunW+NrtRk+geqg/cHdeLJdlggJwDE1xRH0oGl0xiEh8xgnl47yccvW6l B1aHo1/Mo11cHUwxRumHBqNSarKrd978DzSPm2jKIQYg8oBpzm4IuGIjvij247zCjjpvBR+cLGy h319up0B4k97pfiu6aO8knqFdonlbrbHUQt9CGSqBP2zNDtp/z56DAoHuLubQjILWRSf6q5nqlA dBdWmjlezA4mxpPssWcti+rtvaQzPxW7cxSaj0Len5VJRTNRF4DEusUY/H9kkqKjOLhhNkdNxyW 1RU X-Received: by 2002:a17:90b:4b50:b0:354:a662:47ff with SMTP id 98e67ed59e1d1-35965d188d6mr12983648a91.35.1772525752831; Tue, 03 Mar 2026 00:15:52 -0800 (PST) Received: from [192.168.0.101] (60-250-196-139.hinet-ip.hinet.net. [60.250.196.139]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3599c408296sm1377885a91.5.2026.03.03.00.15.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 03 Mar 2026 00:15:52 -0800 (PST) Message-ID: Date: Tue, 3 Mar 2026 16:15:44 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 3/3] drm/nuvoton: add MA35D1 display controller driver To: Icenowy Zheng , airlied@gmail.com, simona@ffwll.ch, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: ychuang3@nuvoton.com, schung@nuvoton.com, yclu4@nuvoton.com, linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260129040532.382693-1-a0987203069@gmail.com> <20260129040532.382693-4-a0987203069@gmail.com> <8806eaf82fbef4cd51bb4e4bb44d60894b3504b4.camel@icenowy.me> <9cccf8cd84b394f66b85e2af3bef0a3ecd154747.camel@icenowy.me> Content-Language: en-US From: Joey Lu In-Reply-To: <9cccf8cd84b394f66b85e2af3bef0a3ecd154747.camel@icenowy.me> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2/10/2026 8:02 PM, Icenowy Zheng wrote: > 在 2026-02-09星期一的 16:45 +0800,Joey Lu写道: >> On 2/6/2026 11:09 PM, Icenowy Zheng wrote: >>> 在 2026-01-29星期四的 12:05 +0800,Joey Lu写道: >>>> ========== 8< ============ >>>> +#endif >>>> diff --git a/drivers/gpu/drm/nuvoton/ma35_regs.h >>>> b/drivers/gpu/drm/nuvoton/ma35_regs.h >>>> new file mode 100644 >>>> index 000000000000..0f4a7a13e7d8 >>>> --- /dev/null >>>> +++ b/drivers/gpu/drm/nuvoton/ma35_regs.h >>>> @@ -0,0 +1,88 @@ >>>> +/* SPDX-License-Identifier: GPL-2.0+ */ >>>> +/* >>>> + * Nuvoton DRM driver >>>> + * >>>> + * Copyright (C) 2026 Nuvoton Technology Corp. >>>> + * >>>> + * Author: Joey Lu >>>> + */ >>>> + >>>> +#ifndef _MA35_REGS_H_ >>>> +#define _MA35_REGS_H_ >>>> + >>>> +#define MA35_FRAMEBUFFER_CONFIG                   0x1518 >>> Please check my Verisilicon DC8200 driver, which is already part of >>> drm-misc-next now. >>> >>> The display controller here seems to be a earlier one from >>> Verisilicon.it looks like a DC8000, or maybe a more earlier one? >> The DCU is a Vivante DCUltra IP rather than a DC8000 series. >> >> It's an earlier generation display controller and was customized for >> Nuvoton, so it doesn't have a public model ID. >> >> Because of that lineage, parts of the register layout and >> functionality >> remain similar to older DC IPs. > The kernel seems to dislike different drivers for similar IPs. > >> Please refer to MA35D1 datasheet for more details. > I checked it, and the register definitions looks compatible with DC8000 > registers at [1]. However no identification information is shown in the > manual. > > I may get a MA35D1 board after the Lunar New Year (although it looks a > little expensive), is it easy to bring up mainline kernal on arbitary > MA35D1 boards? > > [1] > https://github.com/milkv-megrez/rockos-u-boot/blob/c9221cf2fa77d39c0b241ab4b030c708e7ebe279/drivers/video/eswin/eswin_dc_reg.h Our team is actively working on upstreaming support for MA35D1. It is possible to bring up the mainline kernel on arbitrary MA35D1 boards, but for the best experience I strongly recommend using our Buildroot[1] or Yocto[2] tooling available on the official GitHub. These provide board-specific configurations and greatly simplify the process. If you decide to get an MA35D1 board yourself, our Buildroot/Yocto setup will help you get started quickly and ensure you have the right patches and configurations in place. Currently, the mainline kernel version is 6.6, which is sufficient for checking registers and basic functionality. For more complete feature support, our Buildroot/Yocto tooling remains the recommended path. [1] https://github.com/OpenNuvoton/buildroot_2024 [2] https://github.com/OpenNuvoton/MA35D1_yocto-v5.0 Best regards, Joey