Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp329704rdb; Fri, 5 Jan 2024 11:09:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IHKmrFoJNdRsbQ3MjWKAbi6pUwK4BNC7EJTAh4EHNNADkr67GeKhfuqkv2fbrP5jEZPx8xM X-Received: by 2002:a05:6a00:2d12:b0:6d9:b5cb:d773 with SMTP id fa18-20020a056a002d1200b006d9b5cbd773mr3517277pfb.22.1704481746942; Fri, 05 Jan 2024 11:09:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704481746; cv=none; d=google.com; s=arc-20160816; b=hltZn5RtEU1DXs8fqz4lbFg0am/Ktvj5UEsW0qJiGPd2GQapA+II309n2pK81HGTJ2 eNMmR+B1cukz1JUInKdgZYIf4JZImzTtOwpMejytnzFVr22wdpOhZI09Xl+FHnEMfDkb LCDZ6eUoJL+HpBu7SWk1MT/u3D4Sq3K9xcmbhuEZ7h08fPA7iAty2503yzRFLtRgvhxO ZnK2aVm/Aa7Nah++hO5PhZlB9m5MKfmpvmz3swoPPBf7ziB7PEQBzRN7LT0sesEG0Dy4 +/peqxmLKoS7gYfUNza0DPO2f7n/LVZDMprS3kXveZB86w4snwW+qOr3LPKxYFEb5SwQ kRxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=NC2bJp2abkUAY3rCEbXohtWXjxySOLDcFj8N67lxtGk=; fh=aOSVRzHd0RYwGlKAPtHTq4zPGELHA6NRSa1YLISev34=; b=mTbGTYSAuxfEdLjbZu9rRnNfzd+/ps/7BGFGENUR7JKggqub/NXQCEXajaBGlf0wnn vIMF2Na8/p9P5Jn/Ty3bmDPNoXUR6xocbZ7S6vRsdWJl7snLk9IUvGQld/0pwmWdXa8c 27nj0Kl/6u/qUfOGS+JDe6UPEBRVO/UTuMRS1SkgCCGHomteqPCrlOMJ1z3sdvAQjbj0 OhjITmALtwadzSocm2S/AuDBrp2nbTTkZ/PI2NIofL6Vbt2mhs9Q9kV87q3/f1QgvJ2T GwuFSSNj7pHiFunolbe9GmJBB4aTwa+qv3Bvrpm+SqCV3dQhJYc+n/92P+vOjwluGFVg 5vTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FHC8hzGo; spf=pass (google.com: domain of linux-kernel+bounces-18288-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18288-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id jo16-20020a056a00909000b006d9f3b55cfbsi1727661pfb.97.2024.01.05.11.09.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 11:09:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-18288-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FHC8hzGo; spf=pass (google.com: domain of linux-kernel+bounces-18288-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18288-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 98EFE285786 for ; Fri, 5 Jan 2024 19:09:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B521035F03; Fri, 5 Jan 2024 19:08:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="FHC8hzGo" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-yw1-f178.google.com (mail-yw1-f178.google.com [209.85.128.178]) (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 5ED3135EF4 for ; Fri, 5 Jan 2024 19:08:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yw1-f178.google.com with SMTP id 00721157ae682-5e784ce9bb8so7189557b3.0 for ; Fri, 05 Jan 2024 11:08:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704481736; x=1705086536; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=NC2bJp2abkUAY3rCEbXohtWXjxySOLDcFj8N67lxtGk=; b=FHC8hzGoU0OSp8rw5AfoHRxydi3dPezdiBrIqcnFLKKF+HyTlGv2sibtE5GKCTgEHH ALjAlr4uZztrdBVx+KD6ozKwmA8VorOYY93+sU60dJJnfwrFvD97+hV+J90h30ZQ0wRD 1lbOBdbHdCHfB9IVmVb/9BIZjSS46Da6Wbx9VKiPkWW8pSeXEFjO8vXRhXRlU/Xn+EIy EjHsttgnC812cpK7GFSxA9J0EPkL3Nrus/AmI2IBqRXUpACy2aYX/UZeCyWrPMDQbIPX 3bnvAe7XRNYGenh+DCVuQphMcICzcT/vldkrAoiklU6VFdxJHDbdnZLBdVDzA8MM2292 sqpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704481736; x=1705086536; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NC2bJp2abkUAY3rCEbXohtWXjxySOLDcFj8N67lxtGk=; b=k5li4XdN0Xbrrtk7+yW5zr2kcMdogX0G2oKJdKgsXHCYhj4ZDaEES/01+ZTbIg1w3/ Ug6BMwNefwGUCr7uw5i/1R2eBLPGalKHOZLQXoe7ITopeoESgW5LpP4pmP1PKhnAlQka Fsv3viHEB1e1d1h+9vcvoFrPMjh9itRT6sogXyrHS9HcwhmzyBBhmb1sYuIxbKyI4F0s BGF1ATk9czW9AaNre8zKTND8qml06dDYL9VcidZMbSi9o01iTQnG3N+p7DFqvyptPmCE YCBzNNoFow5gOJnzXKA7dv4oxChXndg4UPphmvPxvWDP03iWW6b8M5zu0fT7+/VGdlXO hthQ== X-Gm-Message-State: AOJu0YzbfwQUH82UvHPNFdOwHLp8KRsyTJhknBtgF+TncNzkT1MuExZq vxgSz4Y3l0mBqHY5ixuk7Wj4uO/xD5StEaOohSQA9jiKtv7i3Q== X-Received: by 2002:a0d:c785:0:b0:5f5:cdbb:534f with SMTP id j127-20020a0dc785000000b005f5cdbb534fmr1479204ywd.24.1704481736301; Fri, 05 Jan 2024 11:08:56 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240104084206.721824-1-dario.binacchi@amarulasolutions.com> <20240104084206.721824-8-dario.binacchi@amarulasolutions.com> In-Reply-To: <20240104084206.721824-8-dario.binacchi@amarulasolutions.com> From: Linus Walleij Date: Fri, 5 Jan 2024 20:08:44 +0100 Message-ID: Subject: Re: [PATCH v4 7/8] drm/panel: nt35510: move hardwired parameters to configuration To: Dario Binacchi Cc: linux-kernel@vger.kernel.org, linux-amarula@amarulasolutions.com, Alexandre Torgue , Daniel Vetter , David Airlie , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Neil Armstrong , Sam Ravnborg , Thomas Zimmermann , dri-devel@lists.freedesktop.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jan 4, 2024 at 9:42=E2=80=AFAM Dario Binacchi wrote: > This patch, preparatory for future developments, move the hardwired > parameters to configuration data to allow the addition of new > NT35510-based panels. > > Signed-off-by: Dario Binacchi I tested this patch on the NT35510-based Skomer and it makes the whole display mirrored around the Y-axis (text from right to left instead of the other way around, penguins appear mirrored upper right etc). + /* Enable TE, EoTP and RGB pixel format */ + .dopctr =3D { NT35510_DOPCTR_0_DSITE | NT35510_DOPCTR_0_EOTP | + NT35510_DOPCTR_0_N565, NT35510_DOPCTR_1_CTB }, + .madctl =3D NT35510_ROTATE_180_SETTING, Changing this to NT35510_ROTATE_0_SETTING makes it work fine again. With that change: Reviewed-by: Linus Walleij Tested-by: Linus Walleij Yours, Linus Walleij