From patchwork Tue Sep 3 15:30:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3398 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lf1-f69.google.com (mail-lf1-f69.google.com [209.85.167.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 1FCD23F228 for ; Tue, 3 Sep 2024 17:31:28 +0200 (CEST) Received: by mail-lf1-f69.google.com with SMTP id 2adb3069b0e04-53341717c62sf5136373e87.2 for ; Tue, 03 Sep 2024 08:31:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1725377487; cv=pass; d=google.com; s=arc-20240605; b=Gb/SccSDKR5W7u8IHxjPDJDxLa9lC0NTu+odCB+yqVPwEF8KSlVz00Ax1zmClINMoO dpLTEQSE4lKK8aVcais63Bt81Hn8ZxWfCyg31LkRdcoiI4TGkBnBYMI5yVMCiFmaNGsu cUUti6BhgueD5BPpl9+hSH5GxXe7ECGku57zxrMM39pxiWAlT4Rs1Q14tWkOhZhQjlE1 sKFKnnGlgIE3gRGwRnWvMzBRxxNRqVK1kXHy8ip76g4jPAyKZ8zWnjdicujEtG2RVMSL 6Y6Odt3HbAahq6+/GxINjZG1VxXMJ9qygWKHRx8TmAywlGmuSHM4UHtf50ofyMOjuOQg Isgg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:to:from:dkim-signature; bh=uEbglxqtV55PAuFOk/kh1d1sFwKvr9AjqMIi6u03PFc=; fh=EU1PrTr97iyXm/91B/bftsx3ulfFrzySoE6P3X+6hgo=; b=hlSlTuTuF5Tg29NmvQIIXJyZa8RDS6oGCbc4yTp3f7J+9NHh2CehP2R6tRSS9VT+oL G/o2nPM8p5WssTjiFw1HG4YTkh2WI467DAio2QQeVkoI32UVYHg86fAoJELJ4UrtWfov 56YdpWF6eGQBtvP9XI5lCDtyBrX861wsHbf1IrCKhk95OxuCWTRJnW4cDPZEPKaoI05g JVPxbGHBW182QCeQs3D/MBQtro6UY68bts8+DWQl3IYMCXgPEWz2Q790guhj/FAijAXS FQsuTzyV21jP5+O5wGiFWht75dnovg+T43my9wyk9UPgWH1Szz7Us4Eg0CHA+e3xzPls yZeQ==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=BBieTSo1; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1725377487; x=1725982287; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=uEbglxqtV55PAuFOk/kh1d1sFwKvr9AjqMIi6u03PFc=; b=rSwZCuMdqh28BtKwuiNXZcm1O0QPIL0Z5bLoV1n1sBLY9GDvdcbdXWQkntQZyPKVPS v22qE/UENSAcCqRQGmvnMVmRQ9mQu9Gro7c4Kvvqvzg4ZMG3+r0Ec6VajFCljSWUa4e/ NqIvuMH64pJz9XJ3ZpFbiJDXCs0Z4OxN3KfBI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725377487; x=1725982287; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:to:from:x-beenthere :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=uEbglxqtV55PAuFOk/kh1d1sFwKvr9AjqMIi6u03PFc=; b=A2vqMwge+ZJvlqggUHnWXubduvr0tZh5on+wMO3hIyC4pIgTraHk3zGhXI+7k0OH+U sICBN5RasyDPfVC05gsLBCr4fLCsTClZIxm9n1GtZaxvSPlMIJbo49HVxURa3Cc4lG96 Jakli/pS1LT8zjPl5gizuHIAnB+My1NPKTwa18RXQnR+Z7hKJdHOUxVEp1zVFJCcFBRo Bvt/tA40tfR5n1sgZqdLk1v4gBXbV1S3gyqHM0RGqM7y+Q77omyLrAQkA4ZMq6DfqX2Q xgfdEODBp829DNV+Qr4HAPPOgEwkbYIyyH6tQTpFoM0Jr0pjEBUfpJiotAEFsKeyOWhY qbrg== X-Forwarded-Encrypted: i=2; AJvYcCVQXDAI9qVCgj/ozl8OEsTD0dH1aSe3R6MTEG5nNddsfmIi8tggAsRnvH25lRvSUJJ7wd8WNogiV76JCrjI@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YyBsXidpSIXa9ULxTIzpC2VJVI9C5AxwaeiFegWseRs2h0q55uS oyIrMI2Dhm10Hk8ujspDd466YXR5CFLrcWYWYEn+HunZES3aBMjKi1g4oHP65kg5zw== X-Google-Smtp-Source: AGHT+IFfDnj/bJpRMKT9Qfj2VuvzslEeBhrBEXUiFGPWzH6OhhXrhbQkmh0jMIPn7WHbnmVAAxsSeA== X-Received: by 2002:a05:6512:693:b0:530:aeea:27e1 with SMTP id 2adb3069b0e04-53546bc03cemr9945293e87.50.1725377487416; Tue, 03 Sep 2024 08:31:27 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:600c:4ec6:b0:426:6c3e:18fc with SMTP id 5b1f17b1804b1-42bb2a15479ls3448215e9.2.-pod-prod-04-eu; Tue, 03 Sep 2024 08:31:26 -0700 (PDT) X-Received: by 2002:a05:600c:3582:b0:42b:9260:235f with SMTP id 5b1f17b1804b1-42c7b5b4b72mr64879275e9.19.1725377485964; Tue, 03 Sep 2024 08:31:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725377485; cv=none; d=google.com; s=arc-20160816; b=Fv72qaiFrcl5/7lqqDK00OAS7wzgFNuCscFK3lIUvfG1zI8cXxANmCy8xKTlHdtFbI +BjY/upGSB7g2/Lc2X9Dh+pYrMje6rbcTNavrGn2KkPa0Xh2MyZv1+3rgWwndkfhwDKW CE33yiCvx/CUFT+KHzAKmAavIG5+Pcb9yHQwweAR7umATjfYPdFXj77t/xB4dIOt2duP V6REzkI7m9xg1PoGSek7X5zrE1tCKqQQjQCqsWZaqALhyezS3oeiZ14/0KppEwDFYZX5 8pi80jpKJb066OqsQsVfBzEk8y5j4GLA42zmPwR0HfNYbG9Rln/+6c+63RsWhdZtbuUk hILw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:dkim-signature; bh=Bnu1QvThdvnbMQYv8rBVdFr0tRSNTs4cbebITfUf0eA=; fh=FtQepR0uNoeKT2PVdKfTKOkvEYfwbRmoVE9BmlYw3tk=; b=i/UdR6JN/xK/kuYsfyAGV4fl2rpMqHWpUzsKMXKJ719MQHZWX07CzCL4uOqJ28uc2A YC6/yHHCSjRtbiAL4uAOrku8NS9Mr875RZmj+AKm/lhE5XRt2s/uRAChjidfnVo1GEZG +3BWGcAn0aDVyoY28ibXpzSK89NgUNcJF5suCsezkM0HOvbYxzJQVgRts37L8CkOtnoa YnU4jQp3iVRLnt38BpvIK3Z5fskX4ODwB5hqyTK8S9ssEGnOY6M8DO3s8CWtfF0CpXzd 2e+O+FYgrkZEMul+Ay6IsX1i2j9euDgD6cvO4d7usTnzrCF4sA97C9xZnPmFwu0CqtyV tc/w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=BBieTSo1; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id 5b1f17b1804b1-42bb70bfb50sor45551195e9.8.2024.09.03.08.31.25 for (Google Transport Security); Tue, 03 Sep 2024 08:31:25 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a05:600c:c19:b0:427:d8f7:b718 with SMTP id 5b1f17b1804b1-42c7b5d8f40mr65336405e9.24.1725377485317; Tue, 03 Sep 2024 08:31:25 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com ([2.196.42.65]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42bb6e273e3sm174168685e9.30.2024.09.03.08.31.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 08:31:25 -0700 (PDT) From: Dario Binacchi To: linux-amarula@amarulasolutions.com Subject: [PATCH 26/29] video: bridge: samsung: support simple frame-buffer Date: Tue, 3 Sep 2024 17:30:57 +0200 Message-ID: <20240903153100.918077-26-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240903153100.918077-1-dario.binacchi@amarulasolutions.com> References: <20240903153100.918077-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=BBieTSo1; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , If you want to pass the frame-buffer to the kernel, the video output is initialized by U-Boot, and kept by the kernel. The patch does not turn off the power domains or disable the peripheral if you want to support such feature. Co-Developed-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- drivers/video/bridge/samsung-dsi-host.c | 7 +++++++ drivers/video/bridge/samsung-dsim.c | 3 +++ 2 files changed, 10 insertions(+) diff --git a/drivers/video/bridge/samsung-dsi-host.c b/drivers/video/bridge/samsung-dsi-host.c index dd3e33c4edc7..01385f30fce4 100644 --- a/drivers/video/bridge/samsung-dsi-host.c +++ b/drivers/video/bridge/samsung-dsi-host.c @@ -1515,6 +1515,12 @@ static int samsung_dsi_enable(struct udevice *dev) return 0; } +#if IS_ENABLED(CONFIG_VIDEO_DT_SIMPLEFB) +static int samsung_dsi_disable(struct udevice *dev) +{ + return 0; +} +#else static int samsung_dsi_disable(struct udevice *dev) { u32 intsrc; @@ -1532,6 +1538,7 @@ static int samsung_dsi_disable(struct udevice *dev) return 0; } +#endif struct dsi_host_ops samsung_dsi_ops = { .init = samsung_dsi_init, diff --git a/drivers/video/bridge/samsung-dsim.c b/drivers/video/bridge/samsung-dsim.c index 986f1d830844..6e5a12218315 100644 --- a/drivers/video/bridge/samsung-dsim.c +++ b/drivers/video/bridge/samsung-dsim.c @@ -144,5 +144,8 @@ U_BOOT_DRIVER(samsung_dsim) = { .remove = samsung_dsim_remove, .probe = samsung_dsim_probe, .ops = &samsung_dsim_ops, +#if IS_ENABLED(CONFIG_VIDEO_DT_SIMPLEFB) + .flags = DM_FLAG_LEAVE_PD_ON, +#endif .priv_auto = sizeof(struct samsung_dsim_priv), };