From patchwork Wed Jun 7 06:31:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 104272 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp49667vqr; Tue, 6 Jun 2023 23:36:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6RJdz0BLLaw1YCl0OwT+/7+5TZMHbQvUo6B6gDnpDsB0WcXIRb1W4ZXsCSGvCuRN4uOPva X-Received: by 2002:a05:6358:c683:b0:129:c9f4:a716 with SMTP id fe3-20020a056358c68300b00129c9f4a716mr462139rwb.30.1686119805612; Tue, 06 Jun 2023 23:36:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686119805; cv=none; d=google.com; s=arc-20160816; b=Yn8G1n0v12Pu8F0l10GCqmkkRuTWCUz7P9OCcURX8E5t/WAjUtMq9/IOyCKu7tkq97 fZUL9nbjEkgcQksbL/3sQOH4PToTqfZcDDdfyiCm3lg38lARQOY31IaN4Wy1GU9YdZZY yvAuCa5DUlAPhXhWx9W4B5JfvX50HbC2EsvFFyWU2EctUTbOtzbpxhmsx1/60VKBGhNQ VFQz+XqmHacUMPP4dwW0psivATbzLH0wmlSpW+T++P/AhaM3/FnRpF5DqQxK+Zks3OWa ZsDX/Pa/nBebE8D2Ej1JUoblv9F6a5UuXcAlrf5g33AKijdHh4qu1QElWpPP9kFeE9Tz FFEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2jBqOeBntw2+ThpWf4KE8BMuMRq2HYj3RR0u0oHiddc=; b=aeMjRMD5liVbw0lCaJEsk+8hJ7uKF8KDwq81eda3LjDLSg4DXX6tSwpeD4nob106cS 8hyIY8oI1PRZRIlj9Dxcdus0FM2UzCjGjAWfJgVmMe9gV97fYEQfQ7ONOMPrqlhQuVJ1 7ocws+AyF+sObMlAXNxfZTymQ73BotyzZwgCk6I02yZZgh6lFCsPIqc6jJnimThWbrsL 9c+diUa3MT8Cd9q2DWdoQjEBb8i6IbtELGl9ztXrfKw1wxjWl8cpZilZBprJL03HvzWu zkr0DzkQWV+1bQSqrq5lG4B3Lf1R5dhYnjZGI/RIcNeBDXaHnzeYm+6pKQMcK/6wmkKy ywOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="g2j6/JCV"; 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=amarulasolutions.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lb11-20020a17090b4a4b00b00258ee17486bsi653975pjb.160.2023.06.06.23.36.31; Tue, 06 Jun 2023 23:36:45 -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=@amarulasolutions.com header.s=google header.b="g2j6/JCV"; 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=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235157AbjFGGb4 (ORCPT + 99 others); Wed, 7 Jun 2023 02:31:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235056AbjFGGbw (ORCPT ); Wed, 7 Jun 2023 02:31:52 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 291001BC0 for ; Tue, 6 Jun 2023 23:31:47 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-3f6dfc4e01fso69694715e9.0 for ; Tue, 06 Jun 2023 23:31:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1686119505; x=1688711505; 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; bh=2jBqOeBntw2+ThpWf4KE8BMuMRq2HYj3RR0u0oHiddc=; b=g2j6/JCVxK3TnZWkCdaosIWVIMAC/i6nhFtyu+Re5bfo/RS+chFBZPxNyozCfc90my 23Oir7AD/urej/TP3IhFf5y8O5uP5ydLyWw1O9546HsHgPevZM/lEEMGM6pOckKnQ070 c9O9Krxv0kQzUEMbJow7q/8nGkkAEmplFUkco= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686119505; x=1688711505; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2jBqOeBntw2+ThpWf4KE8BMuMRq2HYj3RR0u0oHiddc=; b=E6vbx7gcpX1q1TgILz+kLjWQT9ZfCP5q7h/3Owxby78WrccZ0H3SK26PrMQaDJTIbQ UY/l2ahiaSoXcaPxTNbXpT9lMOXcQmcYQcR8eW2Nxby8KQwDV0waI82oBC0Z4GgrFDlD NtiIFcgMH0uAbpH3RuL4OM3w7xBc+iFUqgcSzc0BT2no+Jyb5AO/ppQE2/j556xvIZKY sbX4VJo+o0O8FjAFjx4/Dlx2freB2RMbir8Gje/UD4gHNl0Y2v2yYI9az/9i+3njc1HZ NJOh6ejBQH7voH/goAFyd0lI9vOOr7yibnShsq08KjyBdP0IHtOb0k8X6pnIJswh30lH ocDw== X-Gm-Message-State: AC+VfDyrNyuuZqIBKBa21NuIHxjzdOEMSYL2I5Zw//iYeo+B35K8wOnd 5QdH4vsqE4rSO9alNqH0zXtutRrUQSNljjNj48yxRA== X-Received: by 2002:a05:600c:2158:b0:3f7:2e57:d3af with SMTP id v24-20020a05600c215800b003f72e57d3afmr5795147wml.11.1686119505366; Tue, 06 Jun 2023 23:31:45 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.. ([37.159.114.163]) by smtp.gmail.com with ESMTPSA id m6-20020adff386000000b0030630120e56sm14385127wro.57.2023.06.06.23.31.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jun 2023 23:31:44 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Raphael Gallais-Pou , linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, Philippe Cornu , Amarula patchwork , Maxime Coquelin , michael@amarulasolutions.com, linux-stm32@st-md-mailman.stormreply.com, Alexandre Torgue , Dario Binacchi , Conor Dooley , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org Subject: [RESEND PATCH v2 1/6] ARM: dts: stm32: add ltdc support on stm32f746 MCU Date: Wed, 7 Jun 2023 08:31:34 +0200 Message-Id: <20230607063139.621351-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230607063139.621351-1-dario.binacchi@amarulasolutions.com> References: <20230607063139.621351-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768024761210423672?= X-GMAIL-MSGID: =?utf-8?q?1768024761210423672?= Add LTDC (Lcd-tft Display Controller) support. Signed-off-by: Dario Binacchi --- (no changes since v1) arch/arm/boot/dts/stm32f746.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/stm32f746.dtsi b/arch/arm/boot/dts/stm32f746.dtsi index dc868e6da40e..9c4ba0b7f239 100644 --- a/arch/arm/boot/dts/stm32f746.dtsi +++ b/arch/arm/boot/dts/stm32f746.dtsi @@ -507,6 +507,16 @@ pwm { }; }; + ltdc: display-controller@40016800 { + compatible = "st,stm32-ltdc"; + reg = <0x40016800 0x200>; + interrupts = <88>, <89>; + resets = <&rcc STM32F7_APB2_RESET(LTDC)>; + clocks = <&rcc 1 CLK_LCD>; + clock-names = "lcd"; + status = "disabled"; + }; + pwrcfg: power-config@40007000 { compatible = "st,stm32-power-config", "syscon"; reg = <0x40007000 0x400>; From patchwork Wed Jun 7 06:31:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 104275 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp50771vqr; Tue, 6 Jun 2023 23:39:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5pNz99HJ+8IZny/Su3gPD1v+2qyQ0JLu0wjE6hfG60At8L4qjx3cCE1d/wWEOiGf4Lo6aY X-Received: by 2002:a17:902:d34b:b0:1ac:6d4c:c26a with SMTP id l11-20020a170902d34b00b001ac6d4cc26amr2144400plk.14.1686119985200; Tue, 06 Jun 2023 23:39:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686119985; cv=none; d=google.com; s=arc-20160816; b=E2IPgxWTjQRDAj2oUUPA7loPyFgCDzFzPOJGdeNLYIQWRZEUDq4bdsnTvThZNoMMlN 5cc3/sH9MF5QVKp3ZLiYth99iOaN+OS14EGyUEw6HAxM1Ui3GpOaaQu6RNQwdMkMfswO QD362zw4URK7s2jkPSm4jMVwpRFkxGPn70qdf+T7cJ5HkZYbnFD24lulnhYV28bGTNDr pwVDAW8/glL4B6nC6fI1FfIGJShrfHk/fW69UD91BUzlgOD1UUBVg+D3WpducKZmz0gl u7bPjRR/f+u5k/34PuJ/gQq2JRUYyOAwXW8h3yCj03KMMEXjnwoE9YN1VEM2BYK3OYVS PY4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3QAQ0RCZfE4mrNQglSUgy3WeBMWWHrgZHNbJHgr6400=; b=Qo5exHBxHIOutZ33EfOUPJPakf/pnsIfebdJDh9OlcTjJ6NjLTJx8FDg9TfnU1i+rU AjfzYcbQFYMpJFMk0twY598OpQfEaD/fB6T77mTfwDkYCZXVH5xGoL5kIJ7pyw+YaR// i9aGNP6Wg1Ho79TmDDGCSzZUOHUWleDCtTaUH4iAFLyBoIRFoSX2e7hMuJxkQwqkybC+ 1/geBpKTh51nbCgNhiGQSsZennXohLwRAoZBm6Pk1ixWNKthC+VUMrFtupG2kdvNj9Pc FY0HYvBEoXw7xijk+lWNt90uvoumTUt08qxq6Uo5/bKcZmvvI1RY3UgucKRPpfvfRwMe p/mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=h2Pc0QIy; 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=amarulasolutions.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q1-20020a170902b10100b001a9ba4690casi8114727plr.295.2023.06.06.23.39.29; Tue, 06 Jun 2023 23:39:45 -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=@amarulasolutions.com header.s=google header.b=h2Pc0QIy; 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=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234057AbjFGGcB (ORCPT + 99 others); Wed, 7 Jun 2023 02:32:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234897AbjFGGbz (ORCPT ); Wed, 7 Jun 2023 02:31:55 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D49A81AC for ; Tue, 6 Jun 2023 23:31:48 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3f6a6b9c079so56661265e9.1 for ; Tue, 06 Jun 2023 23:31:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1686119507; x=1688711507; 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; bh=3QAQ0RCZfE4mrNQglSUgy3WeBMWWHrgZHNbJHgr6400=; b=h2Pc0QIyc0c+Ese5gn0TQbG4jtXqWPFGxlfBBI4qujJ5j/PoVbvqSoaNEQ5xdAEJ8r wG5F7picdZbAFya6ifGi2vPrn206t16wb3TdMMWdCXBPR3DwE1124jwS8JPUaU59iIH2 YcvO5fxeJnu0eXHh6LljL7+ZFDLu59JPVXN6g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686119507; x=1688711507; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3QAQ0RCZfE4mrNQglSUgy3WeBMWWHrgZHNbJHgr6400=; b=JpacvGy5m3+IxHll8unjxPpgZFcneLOXQ96r/0mWmjhllphob2zZQ1/ygqOm5kxPEt 32ZVCyr1TaDqOVofmd4Mth57bpXkOR/zCplZYxwjza4gdOXA40mHIMp4rhKLgER2hYyU NHd4inYbAK6tPOZIcV5ejEh66Y4rfKlnW33rJkKFjaqP3TNkJqXcZH1o1wZ04Q3VBepm o78hfqH+ZaH3u4dnlxHkI9gnzHfHq/rHLLZ111efnH935mYfdFdyhxn+Gr6m16k493yf G2X0/hdb7RKi0S22qFLBBeT0ekpWQBN9DPdcaFQcl3uP2+ixtmf1FUGz+GTMPOyIoanm GVWg== X-Gm-Message-State: AC+VfDytkMxAmq/L5ZPRCHX4RWHTIpy/23PykcoY0tpXKaChAZNxOwOj SLK1NaeLUsU4RbZnxtUUnC2VeGCQUzzoL3qHc9Dchg== X-Received: by 2002:a1c:4c11:0:b0:3f7:408e:b89a with SMTP id z17-20020a1c4c11000000b003f7408eb89amr3494250wmf.37.1686119507059; Tue, 06 Jun 2023 23:31:47 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.. ([37.159.114.163]) by smtp.gmail.com with ESMTPSA id m6-20020adff386000000b0030630120e56sm14385127wro.57.2023.06.06.23.31.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jun 2023 23:31:46 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Raphael Gallais-Pou , linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, Philippe Cornu , Amarula patchwork , Maxime Coquelin , michael@amarulasolutions.com, linux-stm32@st-md-mailman.stormreply.com, Alexandre Torgue , Dario Binacchi , Conor Dooley , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org Subject: [RESEND PATCH v2 2/6] ARM: dts: stm32: add pin map for LTDC on stm32f7 Date: Wed, 7 Jun 2023 08:31:35 +0200 Message-Id: <20230607063139.621351-3-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230607063139.621351-1-dario.binacchi@amarulasolutions.com> References: <20230607063139.621351-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768024949806207520?= X-GMAIL-MSGID: =?utf-8?q?1768024949806207520?= Add pin configurations for using LTDC (LCD-tft Display Controller) on stm32f746-disco board. Signed-off-by: Dario Binacchi --- (no changes since v1) arch/arm/boot/dts/stm32f7-pinctrl.dtsi | 35 ++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm/boot/dts/stm32f7-pinctrl.dtsi b/arch/arm/boot/dts/stm32f7-pinctrl.dtsi index 9f65403295ca..f3f90b9bcd61 100644 --- a/arch/arm/boot/dts/stm32f7-pinctrl.dtsi +++ b/arch/arm/boot/dts/stm32f7-pinctrl.dtsi @@ -365,6 +365,41 @@ pins2 { bias-pull-up; }; }; + + + ltdc_pins_a: ltdc-pins-a-0 { + pins { + pinmux = , /* LCD_B0 */ + , /* LCD_B4 */ + , /* LCD_VSYNC */ + , /* LCD_HSYNC */ + , /* LCD_CLK */ + , /* LCD_R0 */ + , /* LCD_R1 */ + , /* LCD_R2 */ + , /* LCD_R3 */ + , /* LCD_R4 */ + , /* LCD_R5 */ + , /* LCD_R6 */ + , /* LCD_R7 */ + , /* LCD_G0 */ + , /* LCD_G1 */ + , /* LCD_G2 */ + , /* LCD_G3 */ + , /* LCD_G4 */ + , /* LCD_B1 */ + , /* LCD_B2 */ + , /* LCD_B3 */ + , /* LCD_G5 */ + , /* LCD_G6 */ + , /* LCD_G7 */ + , /* LCD_B5 */ + , /* LCD_B6 */ + , /* LCD_B7 */ + ; /* LCD_DE */ + slew-rate = <2>; + }; + }; }; }; }; From patchwork Wed Jun 7 06:31:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 104274 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp50508vqr; Tue, 6 Jun 2023 23:39:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6lLvZKDSMK18q3dl83zhLIBd4Fl0yDqkfP2SjUPPbq1yRdOnjZ20oQK2zeULtMSPrvR//K X-Received: by 2002:a05:6a00:238c:b0:65b:38b2:8d4b with SMTP id f12-20020a056a00238c00b0065b38b28d4bmr5261526pfc.29.1686119944117; Tue, 06 Jun 2023 23:39:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686119944; cv=none; d=google.com; s=arc-20160816; b=VmP7+xnYXShIn4GXOsN1zoYXIC0jngH8EKhwLp1O8f97Mu1o29XP+MUzCjiEELnftu vx2QyXPBGjbg1KJlrHSGtlLbM1SzGWgVP4du9IeKrGxR1VA9jLcgVloQnLhUaXTUgDOl lbVtb/3l6l+wiQY5IxZ0AcUQctC0bx+wfY++heoKfnw5Mnpmqa0nyEqUG1MSJRonTH8+ 9DD/rpoc6rSEnu47opuFMOLo7yP7oMrmv35Gns24e4C2IZq84jQdLZc3GN85L1/wwpW8 EjYG6TSdYnpdXV9Kwi06BCnc8FF8vKki3UsdT5BKFdFmymrmxWl4dqBNfT5pCbx6TYgq sTkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=tlm5X0f1SJIUHEa+Ch7CRBAmlhS5LXsyaOP8GZ1/KKI=; b=mwh3uEkMUMhUyNwSSiSC+qmMk8tfn/SYqgAKwVQoOXB7Yc4ARfHPqj+EcuwPfOEP7C ZkWLgJ4YVFpYmG/m+JAW5EJB2aAzjmtpkZaHsbfN0Zh+l+LKeW5N5V/1Lw0PtZs1yi8Q wgeOQ7VPYek1jS1uwqmFLw4Q9jq/uquZ4hm+uicsUUELXbpj+WerFeQ6EtfzeKZtJHWS 0IaDvqrMlZwMdgHg+M2kBSvwqxqLj3QfOOomO4wpGZ4QcAj9GPI/bk8eXCs7ZON0qIJt 5P7eCKHD10RO09vMgmIw/JbfqsMhVppXJZcIa7m0FPgk3Bigd2Y+/ujGhUY1GWxkonI9 QM7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=bzMNTxZK; 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=amarulasolutions.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w27-20020aa7955b000000b0063d3aed5eb8si8314563pfq.140.2023.06.06.23.38.49; Tue, 06 Jun 2023 23:39:04 -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=@amarulasolutions.com header.s=google header.b=bzMNTxZK; 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=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236809AbjFGGcF (ORCPT + 99 others); Wed, 7 Jun 2023 02:32:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234420AbjFGGb4 (ORCPT ); Wed, 7 Jun 2023 02:31:56 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F9851730 for ; Tue, 6 Jun 2023 23:31:50 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-3f73617a292so38379675e9.2 for ; Tue, 06 Jun 2023 23:31:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1686119509; x=1688711509; 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; bh=tlm5X0f1SJIUHEa+Ch7CRBAmlhS5LXsyaOP8GZ1/KKI=; b=bzMNTxZK/4hAhbCJfyfkajbjSZHcrJlJ/ANGEgI8Xc2LZi/1j3XIaARW8OaUk1oUNt xVXHCzLxMc+NJPP7tmKJXtlG0YFtoAOv6eKRl6cIeAXRzBEeZFxDxGMzfM6EQiFdDCoG UlbJzxvd+HoA7k7tgjRYe/4BsTTBBkPNUkICY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686119509; x=1688711509; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tlm5X0f1SJIUHEa+Ch7CRBAmlhS5LXsyaOP8GZ1/KKI=; b=H/sTvA4tsp18oD6YD7HflObQqMqZH5UPrpglRwKctSl6F8/+GrpBKrq2xV39K51YJ5 M3CxZetb5UcJfenpEUk0vYS/5Lymou6I+AcSbBKUX8Zd2MFEu3AQzbo8A8OJly+TSlps vPS1p8/sZla2/TULk0Mi/yiPrFzmtnCqBeu61BUkd0ylAifUbwoeRX5FTVO6Hxx6NbbQ 9v3XtJnuCG/IeIElrEZVYKmwUHF0yQB+KvlebdXeCKmaR+yUY1wjwvnBC8qcrlwnhBf7 9Tx0EEm0lEtg8gE47UYex8SBdmiw7Y5w5JCa4y1C3KM68JY5qa+5slE+N76ugeXOMSEO W7PA== X-Gm-Message-State: AC+VfDwdi6z39YuRGUeJFNBvCC9Jc1Ev/stdn1HUy1q4MnGwflK67M31 ewTjQSI3Vp+5TDrNhuQW/1M4HBVs5PZ8RdhbJZ0M5g== X-Received: by 2002:adf:eac1:0:b0:30e:5729:b5a5 with SMTP id o1-20020adfeac1000000b0030e5729b5a5mr1086540wrn.38.1686119508799; Tue, 06 Jun 2023 23:31:48 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.. ([37.159.114.163]) by smtp.gmail.com with ESMTPSA id m6-20020adff386000000b0030630120e56sm14385127wro.57.2023.06.06.23.31.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jun 2023 23:31:48 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Raphael Gallais-Pou , linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, Philippe Cornu , Amarula patchwork , Maxime Coquelin , michael@amarulasolutions.com, linux-stm32@st-md-mailman.stormreply.com, Alexandre Torgue , Dario Binacchi , Conor Dooley , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org Subject: [RESEND PATCH v2 3/6] ARM: dts: stm32: support display on stm32f746-disco board Date: Wed, 7 Jun 2023 08:31:36 +0200 Message-Id: <20230607063139.621351-4-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230607063139.621351-1-dario.binacchi@amarulasolutions.com> References: <20230607063139.621351-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768024906540202507?= X-GMAIL-MSGID: =?utf-8?q?1768024906540202507?= Add support to Rocktech RK043FN48H display on stm32f746-disco board. Signed-off-by: Dario Binacchi --- (no changes since v1) arch/arm/boot/dts/stm32f746-disco.dts | 51 +++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/arch/arm/boot/dts/stm32f746-disco.dts b/arch/arm/boot/dts/stm32f746-disco.dts index c11616ed5fc6..cda423b6a874 100644 --- a/arch/arm/boot/dts/stm32f746-disco.dts +++ b/arch/arm/boot/dts/stm32f746-disco.dts @@ -60,10 +60,41 @@ memory@c0000000 { reg = <0xC0000000 0x800000>; }; + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + linux,cma { + compatible = "shared-dma-pool"; + no-map; + size = <0x80000>; + linux,dma-default; + }; + }; + aliases { serial0 = &usart1; }; + backlight: backlight { + compatible = "gpio-backlight"; + gpios = <&gpiok 3 GPIO_ACTIVE_HIGH>; + status = "okay"; + }; + + panel_rgb: panel-rgb { + compatible = "rocktech,rk043fn48h"; + backlight = <&backlight>; + enable-gpios = <&gpioi 12 GPIO_ACTIVE_HIGH>; + status = "okay"; + port { + panel_in_rgb: endpoint { + remote-endpoint = <<dc_out_rgb>; + }; + }; + }; + usbotg_hs_phy: usb-phy { #phy-cells = <0>; compatible = "usb-nop-xceiv"; @@ -99,6 +130,26 @@ &i2c1 { status = "okay"; }; +&dma1 { + status = "okay"; +}; + +&dma2 { + status = "okay"; +}; + +<dc { + pinctrl-0 = <<dc_pins_a>; + pinctrl-names = "default"; + status = "okay"; + + port { + ltdc_out_rgb: endpoint { + remote-endpoint = <&panel_in_rgb>; + }; + }; +}; + &sdio1 { status = "okay"; vmmc-supply = <&mmc_vcard>; From patchwork Wed Jun 7 06:31:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 104273 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp50201vqr; Tue, 6 Jun 2023 23:38:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7NZJt3sysb2BcSMHhBvksoNfAL/DepC2jdFgrKPXFY3WO6Vce88pixMGz97VFUrpfdf5+O X-Received: by 2002:a05:6a21:9986:b0:f3:33fb:a62b with SMTP id ve6-20020a056a21998600b000f333fba62bmr2415256pzb.9.1686119891837; Tue, 06 Jun 2023 23:38:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686119891; cv=none; d=google.com; s=arc-20160816; b=GM13nJnVlr0sxpRBXGZD9aLTXPmuSxQ0Ombf6TEm5TsBivlKi4kPyJfG4xdLpY88DZ k2RXVTnZg5pZR7QGpgjYlbLuTO6d+IaGOaglzznKms3in9vrhIPB4Mcc/ngBWhKnKX75 I9W1hd3iEQhpT80QVrT1vrkL4d9fqhRpn9+PPrQ6VDGn8zejOCvXTh9JS72hQwd/pibM o88jlSrvdLEYWYq/MkO6VTJv3YjaOO/7fRVl8+jwxoq1C+qC8tBS4HBXfUbnb8tqi4LZ c62czINDM1IKlaRb2Db7UhJF+xMOYBbHSPFL6RFvUxx79zJG+7CxWW+lODejupn5ftO3 TkWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+N6ncdPhuJx70XZ6yjaTOtXW/wJdhXZgpqu86CyLnmg=; b=X5BHDf/SpPOU3BIYZUSh1rcr/41MQom4qccAey6Y3Xd5O3kfUpzfIUWg/JEHzNtDGm EyYegcyQDS53XOLisxAn0TRRjkxRqLcVQ6Yh2R6K/22nvWNKBuetjs8h0j9+GYdRGi4d WTlQd4t7WU/UGBlg5wN2U+muIAUSR5/DnFf3YWafQIbmTZ5KtCceZ8HsxHVa4nmCG1d8 Hhkj1eZD/TjZzZe1UoYRN/lM2RqWNi32pNGPgy8XUKeebT5tm3NzcJ0ep5I6w1h3qFtk 2JXgBzUyPZqtnhd8Sbf0kUU25MHjW1oGV3opJ0dY98h01pc77APX3pmgrO80aMNbog+b PTDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=iSFhC91P; 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=amarulasolutions.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a13-20020aa7970d000000b006489d6fa83fsi6988340pfg.142.2023.06.06.23.37.56; Tue, 06 Jun 2023 23:38:11 -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=@amarulasolutions.com header.s=google header.b=iSFhC91P; 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=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233661AbjFGGca (ORCPT + 99 others); Wed, 7 Jun 2023 02:32:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234458AbjFGGb4 (ORCPT ); Wed, 7 Jun 2023 02:31:56 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5AEE1735 for ; Tue, 6 Jun 2023 23:31:52 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-3f6e1394060so58493535e9.3 for ; Tue, 06 Jun 2023 23:31:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1686119511; x=1688711511; 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; bh=+N6ncdPhuJx70XZ6yjaTOtXW/wJdhXZgpqu86CyLnmg=; b=iSFhC91P61leOakC3ZYDB1vfHeGButTdGDM1hW2MzuCfi7TC+dUY0TPp87E5Gwzxxo h1o6UEBegakpxBiWmhOhHQNcKItVaIWq4KsvQsneKZ0iK3g19qU++mCSiiVscT1xka+X S7IGHfHgN7WvF22pGm+WjoUgdt42UbaeJaUH8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686119511; x=1688711511; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+N6ncdPhuJx70XZ6yjaTOtXW/wJdhXZgpqu86CyLnmg=; b=Jb7xUPRziyl5JzNYA/DvYuc9/KDmtujLlP5nI7dHtqogHd0nqUloxgrZ7B6+BtxpS+ Euce3U2MTO6wbc7wru0PYEMUBRmv8ouJonDoD1Xc1/CpZRl9lW8h+9w1SYo609avN8lU NrMpGm5BqLZLFUgKR0eZ5eEPqslHidG3OcPB2USEw9+yafVePOju27IpbDxv3itFqzyC iz4jXMOV8iuBSa0M8BdIksRy0tsT5nMSqiE52sx/urraOe5rb73WmFL/v9e/H8nZVmCo 6A1u4GnUKNvQVfciD4gr/6ejX94RdyxyxeF09Jfm75WnTV+mfIZ3HrHup+BKqJAm9Dwe YD9A== X-Gm-Message-State: AC+VfDwlZcWMI6/vjv5UripNgIrGkptMjWcSbhACfgNp14lQlElVtYHO MMWqjA/GYNe9Siqjdx4fOKg83nmQRZaEV2k5coZEqg== X-Received: by 2002:adf:e80f:0:b0:30e:59e9:5e1f with SMTP id o15-20020adfe80f000000b0030e59e95e1fmr732503wrm.65.1686119511073; Tue, 06 Jun 2023 23:31:51 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.. ([37.159.114.163]) by smtp.gmail.com with ESMTPSA id m6-20020adff386000000b0030630120e56sm14385127wro.57.2023.06.06.23.31.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jun 2023 23:31:50 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Raphael Gallais-Pou , linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, Philippe Cornu , Amarula patchwork , Maxime Coquelin , michael@amarulasolutions.com, linux-stm32@st-md-mailman.stormreply.com, Alexandre Torgue , Dario Binacchi , Conor Dooley , Conor Dooley , Daniel Vetter , David Airlie , Krzysztof Kozlowski , Neil Armstrong , Rob Herring , Sam Ravnborg , Thierry Reding , devicetree@vger.kernel.org Subject: [RESEND PATCH v2 4/6] dt-bindings: display: simple: add Rocktech RK043FN48H Date: Wed, 7 Jun 2023 08:31:37 +0200 Message-Id: <20230607063139.621351-5-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230607063139.621351-1-dario.binacchi@amarulasolutions.com> References: <20230607063139.621351-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768024851330314531?= X-GMAIL-MSGID: =?utf-8?q?1768024851330314531?= Add compatible to panel-simple for Rocktech Displays Limited RK043FN48H 4.3" 480x272 LCD-TFT panel. Signed-off-by: Dario Binacchi Acked-by: Conor Dooley Reviewed-by: Jagan Teki Reviewed-by: Raphael Gallais-Pou --- Changes in v2: - Add 'Acked-by' tag of Conor Dooley. .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml index 01560fe226dd..bd6a92d2b41c 100644 --- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml +++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml @@ -280,6 +280,8 @@ properties: - rocktech,rk101ii01d-ct # Rocktech Display Ltd. RK070ER9427 800(RGB)x480 TFT LCD panel - rocktech,rk070er9427 + # Rocktech Display Ltd. RK043FN48H 4.3" 480x272 LCD-TFT panel + - rocktech,rk043fn48h # Samsung 13.3" FHD (1920x1080 pixels) eDP AMOLED panel - samsung,atna33xc20 # Samsung 12.2" (2560x1600 pixels) TFT LCD panel From patchwork Wed Jun 7 06:31:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 104276 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp51217vqr; Tue, 6 Jun 2023 23:40:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5D0Nz9RUtl5ii1PBTIgeMgRCaCEYek236matP4Zxz7gz9WHgOPtTQHdd75qw7qM7YSyHnB X-Received: by 2002:a17:903:1cc:b0:1b2:48a:57fa with SMTP id e12-20020a17090301cc00b001b2048a57famr3880966plh.56.1686120058827; Tue, 06 Jun 2023 23:40:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686120058; cv=none; d=google.com; s=arc-20160816; b=mXkEWBH8sZt56NMW3IbqzMuyG18tIxDMOF945FAlMGCTHdJaQ5wAyf6Rp+9H+9S+wy myhO037UGuO+o11cFDAZJI1b/ope6igqQYlomIGFxC+91IsoskI6dGlfbpZ6j0fKsjgf +bzeVHcmUIY0S/u05SwnA8nNskPe3jwfexLHomgPja73/K3VNpLU+hMKJce+i0N29xvM eJiWUqQg2v+bPrOVINWB5n5VrISrq/QfGyEamg9PaOPMzkf9Qv8hZOWwJJ5aIgiVmrpC 93TkIOqeaviPyP6TFpXng73uEVfjWYLWUwhQBDzo8DxaALwLbtXwdGeow8rF6xVW760f p8Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=QVzHDRPJNZ9IK1tuBeqT97BbWRZLa0+X8FPJl3jJUF8=; b=YOsBGnTnW+VHJAgj43PMLJ+PTpa66fnYxw3HkNHkr/RpFVop2VOijjRFpCkh8gHhZn m1UtMzL9Mvxpw11D7/YiDUL3V7WQ9VaUVIymHFXJMEOz0lt+dJcMFM22HxNXcpXYL36P HYiPhjziVYY2HgBtxmuU/6J+Um3OrclZ1ov4wuYlhBGx+dZLaZkmP7AkjKdFm9jQeTd8 Rr2QSi6sbG46K04Sa6GyyUD3TOQLXQLh+7U0+usVPr4iHf+9mE5SkAnGI25UA4qjADUW dHaArlfjwL+dfrVEeT3O68/ieNFPT0m/dA/907+MFQYteOI+5stmyfaQr+BSo3xPf8zY dLQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=UYvhY2b4; 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=amarulasolutions.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bs4-20020a632804000000b0053fbb3f1581si8449365pgb.701.2023.06.06.23.40.43; Tue, 06 Jun 2023 23:40:58 -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=@amarulasolutions.com header.s=google header.b=UYvhY2b4; 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=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235230AbjFGGcf (ORCPT + 99 others); Wed, 7 Jun 2023 02:32:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234663AbjFGGb5 (ORCPT ); Wed, 7 Jun 2023 02:31:57 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD6DFAA for ; Tue, 6 Jun 2023 23:31:53 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-3f732d37d7cso41478415e9.2 for ; Tue, 06 Jun 2023 23:31:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1686119513; x=1688711513; 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; bh=QVzHDRPJNZ9IK1tuBeqT97BbWRZLa0+X8FPJl3jJUF8=; b=UYvhY2b4HirdovbXfPtrGbUTJmn6mv0vjtYgUpqMd26yDC895U6FxmXqgAGGLQenPB FYBFTQymCHZR9yDzHZpZtmUct4e7yOQVQxu9U1J+GoTgNqgB2sTkk86EzY+LrPiny4+E xtH62ZWLxxlheBL841A43Q3wpYHfq0ZPA7qsY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686119513; x=1688711513; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QVzHDRPJNZ9IK1tuBeqT97BbWRZLa0+X8FPJl3jJUF8=; b=AJSlhbG0s6AOFVShYuj67MKZwGznMNBoifr/dWFAsGTEr8M29LNfP+l4pkPAYm4Cnl IBlJpoDxu1DlZroP0CvjpAaBmuKmX6/jgrmVpk2CvXc9MWewHkK0rAr71UfYhTjECC+Z /Pz58HyEYx1WWdGHx9nuv8y6cpGizh/f9d4VumifqZ0KgQn/Dd1y3IBRfIcYLSErPs1G KpYugLVkLRjFc7PSke5pMSqCjWVFjgSNHkbDeaQyLAdj+KDyc4tKl2SpTiJiqA5gRQMc t3r/jJoHtHD+jvXDlLCk6D0K+PKfJoIZy/Y9nrno8G78ZTKIaM8ttlBB3bD9tyyNApTp Pfuw== X-Gm-Message-State: AC+VfDyFuwavByAdfgJx/lATAdiw7GUjIA6pC9ZSQOKboH0ZRIdg4WSa ckkC0RxNTRE7DOGmDXK8wBeigHFy8QeXofvInsnVSg== X-Received: by 2002:adf:eb88:0:b0:309:38f4:fb52 with SMTP id t8-20020adfeb88000000b0030938f4fb52mr5870830wrn.9.1686119512971; Tue, 06 Jun 2023 23:31:52 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.. ([37.159.114.163]) by smtp.gmail.com with ESMTPSA id m6-20020adff386000000b0030630120e56sm14385127wro.57.2023.06.06.23.31.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jun 2023 23:31:52 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Raphael Gallais-Pou , linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, Philippe Cornu , Amarula patchwork , Maxime Coquelin , michael@amarulasolutions.com, linux-stm32@st-md-mailman.stormreply.com, Alexandre Torgue , Dario Binacchi , kernel test robot , Daniel Vetter , David Airlie , Neil Armstrong , Sam Ravnborg Subject: [RESEND PATCH v2 5/6] drm/panel: simple: add support for Rocktech RK043FN48H panel Date: Wed, 7 Jun 2023 08:31:38 +0200 Message-Id: <20230607063139.621351-6-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230607063139.621351-1-dario.binacchi@amarulasolutions.com> References: <20230607063139.621351-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768025026750182199?= X-GMAIL-MSGID: =?utf-8?q?1768025026750182199?= Add support for Rocktech RK043FN48H 4.3" (480x272) LCD-TFT panel. Signed-off-by: Dario Binacchi Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202306020343.jNTWeM0P-lkp@intel.com/ Reviewed-by: Jagan Teki --- Changes in v2: - Fix build warning reported by kernel test robot. - Add 'Reported-by' tag of kernel test robot. drivers/gpu/drm/panel/panel-simple.c | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 065f378bba9d..3b10e78d07d9 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -3188,6 +3188,32 @@ static const struct panel_desc qishenglong_gopher2b_lcd = { .connector_type = DRM_MODE_CONNECTOR_DPI, }; +static const struct display_timing rocktech_rk043fn48h_timing = { + .pixelclock = { 6000000, 9000000, 12000000 }, + .hactive = { 480, 480, 480 }, + .hback_porch = { 8, 43, 43 }, + .hfront_porch = { 2, 8, 8 }, + .hsync_len = { 1, 1, 1 }, + .vactive = { 272, 272, 272 }, + .vback_porch = { 2, 12, 12 }, + .vfront_porch = { 1, 4, 4 }, + .vsync_len = { 1, 10, 10 }, + .flags = DISPLAY_FLAGS_VSYNC_LOW | DISPLAY_FLAGS_HSYNC_LOW | + DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE, +}; + +static const struct panel_desc rocktech_rk043fn48h = { + .timings = &rocktech_rk043fn48h_timing, + .num_timings = 1, + .bpc = 8, + .size = { + .width = 95, + .height = 54, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X24, + .connector_type = DRM_MODE_CONNECTOR_DPI, +}; + static const struct display_timing rocktech_rk070er9427_timing = { .pixelclock = { 26400000, 33300000, 46800000 }, .hactive = { 800, 800, 800 }, @@ -4218,6 +4244,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "qishenglong,gopher2b-lcd", .data = &qishenglong_gopher2b_lcd, + }, { + .compatible = "rocktech,rk043fn48h", + .data = &rocktech_rk043fn48h, }, { .compatible = "rocktech,rk070er9427", .data = &rocktech_rk070er9427, From patchwork Wed Jun 7 06:31:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 104271 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp48962vqr; Tue, 6 Jun 2023 23:35:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4j67OYgU3DoihSFcYOwa6yZg5sxfrXOqrp4Un7IvHJPEphv6EhgLBj6nd3fcUkC2XXHWfG X-Received: by 2002:a05:6358:c5a0:b0:129:cbbe:5984 with SMTP id fc32-20020a056358c5a000b00129cbbe5984mr2571031rwb.13.1686119704992; Tue, 06 Jun 2023 23:35:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686119704; cv=none; d=google.com; s=arc-20160816; b=1JHJvFlnzyshu8MbzFspxOIPJpeYI8yr2gVOucFQvrM32zM4SL0HdZGr8fnz1HXsGm 1R/CBNgkmYv4VGzz3jFQ2NAhm6OL8yECUMs/uCq+1sRHTMX5sMy7UchAlZIaQTJ6QhoQ 2gq6ELbCUZy3j+i/2Y/o88NAcifxFDkwRnR3p6xXNbun8gw7xKAzBS1XUQ9EAY4rSVwI 8nlDx9ykIQyRWqqwWQWPIo1vjoqo8S0Y/s/gxFklPrTBHyDRwUvUzCHrtcZNMx3CSAEl V/HAt2EbRxSKYprqLknOrqnosBxCvuauQH1taV21ZOWR+xVYHDN7EWbRhQXOQlNXxSkP rsaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=yAW+zzizoPdH0S/aO5WCXuWp95MvJ4568t/x7rERkZ8=; b=0czzIbDPzmvCvIyx95sX+AelyzWZB5JBWF8rpSKj8LMNLAbYav7+wRUUH+hXv9Bw5B FoRR6YkYhp6CKrDiiSx04xKv6A9d9yRe+IhW4IQ/wz+rObddWKfPIyD7tl77vrwsF+na vStw0YNsNaKG0geL2YqUIOyeqfDHXfDqOK1fU15woKwrqTj8W0sqPht5+IRR3nlqW47J UpUZmouwO8SIqpGbArGc3Rp8gYGBLtRlP2Q2McNc4qIMZ7DFlJnCLbhxDoTk0J3LadXG XxzjU3zC/Cy+i2vMGAxqPoKNWp5OBlgAVQtuq27Br7k42juykRHWLCmnbfvmfsdTFcQZ YwvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=oij5WgWk; 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=amarulasolutions.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 5-20020a17090a018500b0024e29660f61si652981pjc.90.2023.06.06.23.34.49; Tue, 06 Jun 2023 23:35:04 -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=@amarulasolutions.com header.s=google header.b=oij5WgWk; 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=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236749AbjFGGcj (ORCPT + 99 others); Wed, 7 Jun 2023 02:32:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235241AbjFGGcD (ORCPT ); Wed, 7 Jun 2023 02:32:03 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AACA71725 for ; Tue, 6 Jun 2023 23:31:56 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-30af20f5f67so6827222f8f.1 for ; Tue, 06 Jun 2023 23:31:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1686119514; x=1688711514; 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; bh=yAW+zzizoPdH0S/aO5WCXuWp95MvJ4568t/x7rERkZ8=; b=oij5WgWkvYYOUtEp7mGMYwADDCD01LfrAmCNgml9W85dFDuFYvvNhkENHGeXh9Cq9u 3pK6gWcbQ7t2LYbZXgI0BCw/6fRRB5PeqRjLTlBbp+ET9axLadAiZztH4few/0KIz34X QJqbD/+9emeAKB44hrtPdlFjhs5oBzK5xrdwM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686119514; x=1688711514; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yAW+zzizoPdH0S/aO5WCXuWp95MvJ4568t/x7rERkZ8=; b=RlCn9Bn2wHYyCgj30TJgFVWCTO/Nq7fo1GYh/G2/eOG0eyrHy1Fws4q93dc1IMAuzh fg216sNZ0JAyECkNsNLJBkpDQbioTaY8gPmrq53OLXQzsVT8eaidmGqTIuoV0aREy2gQ ON0nKBLrb6BsiN2QNrn88x50KTeYjWozKbGOp2HTyxbVlDUi3PEEwnFFX3VCkbe5+6Dt nAjY3+NHoGvhxR1O8UPrAXYYV/vHUpeM4TG/MRpTp355uqamKt9mNWNtpnlMdbOYSVQt gE57AV+oqf+d66f71j18mnBP/iUhuk33Q++1UzZ3tOeAb+uvYRsUzBNiFP8YiVhIf2Bu CmuQ== X-Gm-Message-State: AC+VfDwJPQ+Q3c9uFXPMUGGUoI2h2WxtF6vWCLiR9TmfFDoBHOmHsBtG qLubbU4Ayfk1iUaewTMKlhEvw3svFYDxmLs/+YKAzg== X-Received: by 2002:a5d:420e:0:b0:306:3b78:fe33 with SMTP id n14-20020a5d420e000000b003063b78fe33mr3151485wrq.32.1686119514598; Tue, 06 Jun 2023 23:31:54 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.. ([37.159.114.163]) by smtp.gmail.com with ESMTPSA id m6-20020adff386000000b0030630120e56sm14385127wro.57.2023.06.06.23.31.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jun 2023 23:31:54 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Raphael Gallais-Pou , linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, Philippe Cornu , Amarula patchwork , Maxime Coquelin , michael@amarulasolutions.com, linux-stm32@st-md-mailman.stormreply.com, Alexandre Torgue , Dario Binacchi , Daniel Vetter , David Airlie , Yannick Fertre Subject: [RESEND PATCH v2 6/6] drm/stm: add an option to change FB bpp Date: Wed, 7 Jun 2023 08:31:39 +0200 Message-Id: <20230607063139.621351-7-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230607063139.621351-1-dario.binacchi@amarulasolutions.com> References: <20230607063139.621351-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768024655575010115?= X-GMAIL-MSGID: =?utf-8?q?1768024655575010115?= Boards that use the STM32F{4,7} series have limited amounts of RAM. The added parameter allows users to size, within certain limits, the memory footprint required by the framebuffer. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/gpu/drm/stm/drv.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/stm/drv.c b/drivers/gpu/drm/stm/drv.c index 422220df7d8c..65be2b442a6a 100644 --- a/drivers/gpu/drm/stm/drv.c +++ b/drivers/gpu/drm/stm/drv.c @@ -30,6 +30,11 @@ #define STM_MAX_FB_WIDTH 2048 #define STM_MAX_FB_HEIGHT 2048 /* same as width to handle orientation */ +static uint stm_bpp = 16; + +MODULE_PARM_DESC(bpp, "bits-per-pixel (default: 16)"); +module_param_named(bpp, stm_bpp, uint, 0644); + static const struct drm_mode_config_funcs drv_mode_config_funcs = { .fb_create = drm_gem_fb_create, .atomic_check = drm_atomic_helper_check, @@ -93,6 +98,7 @@ static int drv_load(struct drm_device *ddev) ddev->mode_config.min_height = 0; ddev->mode_config.max_width = STM_MAX_FB_WIDTH; ddev->mode_config.max_height = STM_MAX_FB_HEIGHT; + ddev->mode_config.preferred_depth = stm_bpp; ddev->mode_config.funcs = &drv_mode_config_funcs; ddev->mode_config.normalize_zpos = true; @@ -203,7 +209,7 @@ static int stm_drm_platform_probe(struct platform_device *pdev) if (ret) goto err_put; - drm_fbdev_dma_setup(ddev, 16); + drm_fbdev_dma_setup(ddev, stm_bpp); return 0;