Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2633570rwd; Mon, 22 May 2023 01:44:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ42hwC9WPJ/HbZN7pssz70eJ/XUcQiFuvrMpWBP0lcFqZ6oyTiL9VQHM5nah/VsJBWvnaCu X-Received: by 2002:a05:6a20:734e:b0:10a:eaff:9608 with SMTP id v14-20020a056a20734e00b0010aeaff9608mr6173674pzc.17.1684745072286; Mon, 22 May 2023 01:44:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684745072; cv=none; d=google.com; s=arc-20160816; b=BWahaGlN34cF9qJ8K2mTRQvtmr5tTdnXAo0t2/qRezjwsSDJL1P3LsqdqAKeti23J5 Er4CbfQWGZZe/jDC8nCc5iiEo/wF/mlgP/eXEbCMdzlwXpVEabr2k/JThmKcrJKk73Bk xCIGGPrQj0jhs2LmIV3Cdvl4MD2VUU1Fk6muSq5Rd/suWEM0HuYa/ccxjpL0aAs6FylJ 0dR9vHdg3fCPQDYoojBH1C4X6tKqrqNMUcMc0QjIQjHWJvHCD0Fa9syS0URPu47EGvtp Yps9UfPtN/PMENr8JwYP7HWD1BazFsGAp17q/Bxre8TrM0Y/HwrZmhClvQQZcJERa9NG 6piA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:references:cc:to:content-language:subject:reply-to :from:user-agent:mime-version:date:message-id:dkim-signature; bh=NeV5En8UNDI6ND9Cl0vdQV/hWPRmeF2Nr0L6XTGGovE=; b=lesmRdW4ZzmIQJqeEFke1Y64+Z5m80bjUbJbH+flqiqa1vGYxAMLBrB85WGRQhzIIW SMxcXvdVQL5KFKMbdsZLT5bx3Y/hz/cJ8n9JnpfFqkshsyu/Btxvo4RWgjtH4E5H8nwz DrFx/VXHSq1dqUPStyUBS2wGqM3BbFQaSvsWpfkUXJ3NJVoWwR0Ur6YYskYBdvCvaiWy 8KKB9NRAA6fpZOklVSVj5W7L95wz89TB4rxdfNrWT/mQF3dBZsmcupb7PHfnQM4/5rLE H1zlBTCKGl+LIZdHiWcxij58AngziXZJa1Yongu1nFAKYaaTyzMNPUSITWG0hlma2lG+ SN3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=j501JRhv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t20-20020a63b254000000b0053413a8294fsi2896930pgo.899.2023.05.22.01.44.18; Mon, 22 May 2023 01:44:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=j501JRhv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230344AbjEVIfE (ORCPT + 99 others); Mon, 22 May 2023 04:35:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230183AbjEVIfC (ORCPT ); Mon, 22 May 2023 04:35:02 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34BE5B6 for ; Mon, 22 May 2023 01:35:00 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-3f605d8a8a9so5176685e9.0 for ; Mon, 22 May 2023 01:35:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684744498; x=1687336498; h=content-transfer-encoding:in-reply-to:organization:references:cc:to :content-language:subject:reply-to:from:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=NeV5En8UNDI6ND9Cl0vdQV/hWPRmeF2Nr0L6XTGGovE=; b=j501JRhvGDeMw+S1dWL4iUZXNgekf22uw688RzL8gjdv8mdfquL3uuobvC4YUD6Q3p r8IBTOiOtxeIa9slNmCmHUIVrfpmCt5Vf0SgIJqeEYr2KnN9y/J/nphfr70LSGI/UvMS gWpn73OimTcpOc3roagdeK7v0KQ70SLVUTvYGQQsz2ckXmHIWVDIIgGr5YL8GsfIlvjs KYMplWCOPf6PwGBdcitXS3TdOEpRNceHAqVBc9nh2mjWShW92cuKTO5Fw9f8zrMdclhr KukdYexZQYp3OceDvFP9VzGZzTqfx51zdGgA5H5KVhRE8JttI8udy7x+DRCo9OImZecZ uiOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684744498; x=1687336498; h=content-transfer-encoding:in-reply-to:organization:references:cc:to :content-language:subject:reply-to:from:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=NeV5En8UNDI6ND9Cl0vdQV/hWPRmeF2Nr0L6XTGGovE=; b=V/rdH3mSdlMfeGF4x+v0VCevuU+th5gJ9/HXspDtnDFKcSqubVDu3EFhks/9J2Q71S Edtp0xc9Z0rui/wtFzbeVjOaUPZ8GUi/nB166cocMatPygiWhY7yT1n+ugwBWntHGc1s YXSOcd9TT49YbIeexyYiZBIVhpUKoBVUCznFfkUejATNrA7Bh/v7nZrsHrtkKitPj5h5 0jIRUb8pgYq4hsAwIhYPZvDgphvT2Y0ziTiyDvZzMMkzJQj43O2gF0gaNdHkOFaSPVgq yg3Nle9b3F03NEVwoaU5dFjpLSuS/ovjmYMSzUA6Uczn/h5Gdx7L/NcCK4HDK1CYgnUx WuTg== X-Gm-Message-State: AC+VfDxKkMkvws0c55yxpwHQluXi1i6gBonT5ImFoTUkWFCbuqMlO7NK xYWL/ECie2Vu8sDPwuNsDAs71w== X-Received: by 2002:a05:600c:2247:b0:3f4:86:33b with SMTP id a7-20020a05600c224700b003f40086033bmr6383787wmm.26.1684744498553; Mon, 22 May 2023 01:34:58 -0700 (PDT) Received: from [192.168.27.65] (home.beaume.starnux.net. [82.66.176.246]) by smtp.gmail.com with ESMTPSA id d25-20020a1c7319000000b003f4ddde398csm7698807wmb.21.2023.05.22.01.34.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 May 2023 01:34:58 -0700 (PDT) Message-ID: Date: Mon, 22 May 2023 10:34:56 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 From: Neil Armstrong Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH v5 2/3] drm/panel: Add Samsung S6D7AA0 panel controller driver Content-Language: en-US To: Artur Weber , thierry.reding@gmail.com Cc: Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Nikita Travkin References: <20230519170354.29610-1-aweber.kernel@gmail.com> <20230519170354.29610-3-aweber.kernel@gmail.com> Organization: Linaro Developer Services In-Reply-To: <20230519170354.29610-3-aweber.kernel@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19/05/2023 19:03, Artur Weber wrote: > Initial driver for S6D7AA0-controlled panels. Currently, the following > panels are supported: > > - S6D7AA0-LSL080AL02 (Samsung Galaxy Tab 3 8.0) > - S6D7AA0-LSL080AL03 (Samsung Galaxy Tab A 8.0 2015) > - S6D7AA0-LTL101AT01 (Samsung Galaxy Tab A 9.7 2015) > > It should be possible to extend this driver to work with other panels > using this IC. > > Tested-by: Nikita Travkin #ltl101at01 > Signed-off-by: Artur Weber > --- > Changed in v2: > - Removed unused panel_name property from desc struct > Changed in v4: > - Added LSL080AL03 and LTL101AT01 panels > - Added DSI-controlled backlight support for panels that support it > - Renamed command defines: CMD_* -> MCS_* > - Dropped s6d7aa0_bl_ctl_on (not universal across panels) > - Dropped MIPI_DSI_MODE_LPM flag > - Added vmipi-supply, renamed enable-supply to power-supply > Changed in v5: > - Changed compatible to avoid concatenating multiple model numbers > --- > drivers/gpu/drm/panel/Kconfig | 7 + > drivers/gpu/drm/panel/Makefile | 1 + > drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c | 585 ++++++++++++++++++ > 3 files changed, 593 insertions(+) > create mode 100644 drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c > > diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig > index 2b9d6db7860b..203c0ef0bbfd 100644 > --- a/drivers/gpu/drm/panel/Kconfig > +++ b/drivers/gpu/drm/panel/Kconfig > @@ -553,6 +553,13 @@ config DRM_PANEL_SAMSUNG_S6D27A1 > This panel can be found in Samsung Galaxy Ace 2 > GT-I8160 mobile phone. > > +config DRM_PANEL_SAMSUNG_S6D7AA0 > + tristate "Samsung S6D7AA0 MIPI-DSI video mode panel controller" > + depends on OF > + depends on BACKLIGHT_CLASS_DEVICE > + select DRM_MIPI_DSI > + select VIDEOMODE_HELPERS > + > config DRM_PANEL_SAMSUNG_S6E3HA2 > tristate "Samsung S6E3HA2 DSI video mode panel" > depends on OF > diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile > index ff169781e82d..30cf553c8d1d 100644 > --- a/drivers/gpu/drm/panel/Makefile > +++ b/drivers/gpu/drm/panel/Makefile > @@ -54,6 +54,7 @@ obj-$(CONFIG_DRM_PANEL_SAMSUNG_DB7430) += panel-samsung-db7430.o > obj-$(CONFIG_DRM_PANEL_SAMSUNG_LD9040) += panel-samsung-ld9040.o > obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6D16D0) += panel-samsung-s6d16d0.o > obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6D27A1) += panel-samsung-s6d27a1.o > +obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6D7AA0) += panel-samsung-s6d7aa0.o > obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E3HA2) += panel-samsung-s6e3ha2.o > obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E63J0X03) += panel-samsung-s6e63j0x03.o > obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E63M0) += panel-samsung-s6e63m0.o > diff --git a/drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c b/drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c > new file mode 100644 > index 000000000000..f532aa018428 > --- /dev/null > +++ b/drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c > @@ -0,0 +1,585 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Samsung S6D7AA0 MIPI-DSI TFT LCD controller drm_panel driver. > + * > + * Copyright (C) 2022 Artur Weber > + */ > + > +#include > +#include > +#include > +#include > +#include > +#include > +#include > + > +#include