From patchwork Wed Jul 12 06:29:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2937 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 28BDD40F4A for ; Wed, 12 Jul 2023 08:29:26 +0200 (CEST) Received: by mail-ed1-f72.google.com with SMTP id 4fb4d7f45d1cf-51df83a05eesf3839282a12.1 for ; Tue, 11 Jul 2023 23:29:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1689143366; cv=pass; d=google.com; s=arc-20160816; b=1JF2tvvQabGagzzpqIQc9SmFd6P/rriKpDZPsXF/hzztuEL6BCFE/yFplH4RVdEpXO wx4EDwuHi8XZgIXci21sUR4uLjPoZJFEzy8izzZTk0YNEJHgr4oha5n4p8aKz7VWn90Z TTub1GiMRlfOAH6CXVhF9clxz2hDa8Yzz0zb71B8jXFUQcrpy24POID5bCU5ZL560YDa OOsOYkKi8EqA5Eu1knHui8hTvdYjEWkjPCp5SZLQ2BL3F134o4SMpFtSQW9xbRHq1uWv 4c3jhof97JwP/a9xv9aQcIG3i/ra50QZ1rahfQqA0sNrlSb/8yVI4iti4sgZL71TJLaO nreg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=63isGDrIzAHOikzCwiKGEykb/ordOebox5HskjJWv88=; fh=tzbQPq+N7grO1gGa+bAwyFl2D209FzUnZRd8HGB+Xqs=; b=RflijQO4SoxLkLJFphpBzdG0sUyCCp1os3BxY7n451zVYuAYQaY75LdgSZlkfXB433 TH/Ux20FFwA4ezAhY+qJIGl5DTMMF5swU5JtMcPQSluu2l0K5GuHyKwgRSSjyTs4tjQe aAuB09ph3Z5t/iuAQ0F7TmA7IXKBiUEuePJhbr/wRieBci4z9D2TYcON7rD8UXqwxGYc qHzISobIaFvg/XysRezdEMiwl3thLUSlemAXq4XvbV0vyzvoWcqILqsctyvJQDgVqeV8 Awzz/JEC4Lc9phQlidxbBe4E7HW6i2kYi/eelcqjRIO2EmJMvc22xq9U/Wg2ql5nIJfd Kh9w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=nQ5MMGz6; 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1689143366; x=1691735366; 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:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=63isGDrIzAHOikzCwiKGEykb/ordOebox5HskjJWv88=; b=RyZu3VJKZR2Vwzxyh0i7J9VDa/FJuZjcqEa04JWTcWyJAF4zurwgatzp+2ef+Mc0Q0 dDiW/Il2w+x/w3unT7kO24zkuepIsvBut+CvuhoBRC+/JB/E1cWZzx/kfZID4XG5qWqj jxwNVzD5kWT03usq42APW0vPHbzzufw6c0/0A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689143366; x=1691735366; 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:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=63isGDrIzAHOikzCwiKGEykb/ordOebox5HskjJWv88=; b=YSDaO3JRWgyoFzbsXZHpiKtYWQ8exC9DRrbn91xjp0Q6Q1lT9Tr4W5x//BtSMJGjxT IyWkWTrXkoL6T8vv4dCs8EssaVOVZ+fZxiCbfLSuS4qzgON2KulBIQXoNsoIhSVeHPv2 Yhik/i1vPt+GKj/wFIK18NC0u4ivjGF0eMbKS0/CBQKtsv5gelbhaFPeS5mvp5JYImGl db0/UipKJ7tgL3x58oc9Y5TGjsqlE19JM/RPNV6VJeRBkGcn/FcztxJZgEf0X8L8lGh/ DyABQRdZHe3NGdOYxrOhhYRCNUjEWp6c5PJGxR7EZa7H6uPmYPUzZO2ZdF1MbJwDEhmr emWw== X-Gm-Message-State: ABy/qLa3czAnuQcAJHPyywuQO8vNztp6lIT7LoigCWlxWzPBKs1Kz/gu JdvrTiR/sHCKfh6d3soZJ7LCMv0j X-Google-Smtp-Source: APBJJlFX7MJdEEsdtadDX6J5xLecbMdpyA87oqZg+IJiw6Mh2eXBQCtm54hr+w8kErZcmO5CceQsnQ== X-Received: by 2002:a05:6402:549:b0:51e:ec0:fd84 with SMTP id i9-20020a056402054900b0051e0ec0fd84mr14065021edx.40.1689143365692; Tue, 11 Jul 2023 23:29:25 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:c3c5:0:b0:51d:ad30:5d57 with SMTP id l5-20020aa7c3c5000000b0051dad305d57ls4712765edr.0.-pod-prod-05-eu; Tue, 11 Jul 2023 23:29:24 -0700 (PDT) X-Received: by 2002:a17:907:a704:b0:988:7d68:9fee with SMTP id vw4-20020a170907a70400b009887d689feemr19436703ejc.34.1689143363891; Tue, 11 Jul 2023 23:29:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689143363; cv=none; d=google.com; s=arc-20160816; b=oeZi1eB9K29mAKy5ozlNivdDm2A+VpbyqQTEAtS1lMjwCeh4s8DQp49my6Bu2V9OBg qF2P0kpurTX1UsKTMm2W6ujSqho7Ok5uzrX3CL+ALbnE35KeZ9INI7rUrik/8gSMI+eX FVrauqfJOo86PEIFswOx/rvSmRE9xTkywoBCtGW8QUKYeRrvq7nrWG/SXZO0615+qHLR M/K0O+5mm6MHOTnWXvQ8+hLtYlDLpMTVEcM9YqaXEMBimByK/RH7i5BWsDThe4NyIxUH 9405cz0/b6Qd+acczzru66nHg5SstN4r2q8L7PXBV+5Tv5rQQKx2iYbjH6AKVRacBsUk wt5g== 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:cc:to:from:dkim-signature; bh=QIHZ9R3luUe4h54VtlXXPhHVEQN7PHyTj2OXRY7l0a4=; fh=tzbQPq+N7grO1gGa+bAwyFl2D209FzUnZRd8HGB+Xqs=; b=K6F5NokYxvsfT28QiDVm9N4gx8ThH6A6GNZxWTGo1OnanlYoOsIXgsqwCYU0Ti+TYn +eN1/S7b6jmfOrH0MANJ7cvJT1MIK4Nt+jRJtA4Vn2QAjMKALtD8zlRHK6wIKyxpmwL8 kbkyHvUGVP5gCUbj2qlJhF+g4F0j78Y9Cc6hrQ1OoCLvIsPg+2lFuZ3gfYUQYbxSVFsu 6z1zwQX1VPdXlYU2MbglOA7WezfCH4fAQqGTKRY7XWHWm1Q/Jw/1GUGCVlF5PZW7youM C4ZHlP4ClolITXaWCU+U3+2MmiB7lBgcd3A/0FNWLLu4ptzyIe6DkzsFpqJj/fv0a9Mz HtIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=nQ5MMGz6; 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 Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id q4-20020a1709060e4400b009937419491asor1266169eji.14.2023.07.11.23.29.23 for (Google Transport Security); Tue, 11 Jul 2023 23:29:23 -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:a17:906:3504:b0:982:bb95:5014 with SMTP id r4-20020a170906350400b00982bb955014mr14341745eja.64.1689143363363; Tue, 11 Jul 2023 23:29:23 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com (host-82-58-49-236.retail.telecomitalia.it. [82.58.49.236]) by smtp.gmail.com with ESMTPSA id d21-20020a170906371500b009890e402a6bsm2065390ejc.221.2023.07.11.23.29.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jul 2023 23:29:22 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Amarula patchwork , Raphael Gallais-Pou , Philippe Cornu , michael@amarulasolutions.com, Dario Binacchi , Alexandre Torgue , Conor Dooley , Krzysztof Kozlowski , Maxime Coquelin , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH v6 1/3] ARM: dts: stm32: add ltdc support on stm32f746 MCU Date: Wed, 12 Jul 2023 08:29:16 +0200 Message-Id: <20230712062918.2248573-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230712062918.2248573-1-dario.binacchi@amarulasolutions.com> References: <20230712062918.2248573-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=nQ5MMGz6; 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 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: , Add LTDC (Lcd-tft Display Controller) support. Signed-off-by: Dario Binacchi --- (no changes since v1) arch/arm/boot/dts/st/stm32f746.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/st/stm32f746.dtsi b/arch/arm/boot/dts/st/stm32f746.dtsi index d1802efd067c..36eda1562e83 100644 --- a/arch/arm/boot/dts/st/stm32f746.dtsi +++ b/arch/arm/boot/dts/st/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 Jul 12 06:29:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2938 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id DD95040CCE for ; Wed, 12 Jul 2023 08:29:27 +0200 (CEST) Received: by mail-lj1-f197.google.com with SMTP id 38308e7fff4ca-2b70c44b5fdsf54169871fa.1 for ; Tue, 11 Jul 2023 23:29:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1689143367; cv=pass; d=google.com; s=arc-20160816; b=oTsRmOAgM0WZe+OJ2bZunE+mCEH9+Z9hY9wdMm6shdg4HfadeO3KPwFsTYjy/unlj3 yAd02uq+FmHFskK8s8VB9GI12MrZFvYCj9Sko1h4OQO/6dY+sLA2zD2nwqyr5RjhJJ9K IM7BtNk5QLwH5ES+/R9oRGmVsSqlQhW3pWGgPKw8PnBHmwecJx8E6Gm01vLrw07I2LnK 2oKgQwCV4/k8oh2Ux3kzsswo5kvMbTuoqmNJSKo3vHyEjX8rixlCVDax0awhTq++m5Y6 Ta39jAETpjufja+WDCUxtu7ksxw3wWwPGClLCdXEojveABbOXWipW1LSHQilymxzEc4v iYnQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=EZ7tmWZLdKoSO07gD0fR7dKG6unl/LBhFIdO8HTtR60=; fh=tzbQPq+N7grO1gGa+bAwyFl2D209FzUnZRd8HGB+Xqs=; b=sdZ4xtUIMUZkOvJASOchS5GfAg3VK5+UWy/5x+wcF9mpopLpQy1125ivk/0BRAApjl WbZIauR29KvSiyZuGTBQ0v2vSh46o77uv2n4HzSNHYzFQjdUMn5C7RprkV5xl8SINwtf sgT4oKObKxV1viuj454ZGtsXE7oEq/nLNCj1T6GiLJjImVx51cQYNEiqxhwGGzK0gBnQ ejBvuSxadWXG307Eq5HWS+bTmWfxmPuYCbQctnxk8VURbpntrjnf84dkOMcgU/dDaeX4 jK08ACE1oBXKZZ8iXCimr+cVFdrYKo9YyG1xVrSGkpJqoBGIS0n+WwqQXPCaOX86NIwu 6XsQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=fQehUMh0; 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1689143367; x=1691735367; 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:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=EZ7tmWZLdKoSO07gD0fR7dKG6unl/LBhFIdO8HTtR60=; b=Iz7y2CmT5GicIkHbGa8ye0m3QHh3sPMkjKue7q/j9OPO+Qd4+fPx3czNulLQvXjCxI jjK43nAe+1XjUGGpzDfJ0LHjJEL+lUreRKSN/kZzxHQ8bE6HUYAj39FGZr4gcsjmgYY7 +BT40bw0cTGofU09mcztlYbBJbem1j6XI31uQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689143367; x=1691735367; 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:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=EZ7tmWZLdKoSO07gD0fR7dKG6unl/LBhFIdO8HTtR60=; b=Qhwq4FABRvWLvLlB+FZhqCT6UWi+/i0fErzRZZb9SHvQWXerQjWTkQNQPih8bzu67G 2n5QlTiFFP1CljQKSQP5zxfeL8cmpXyepst+ihZ4wSZIDCn2zV4bkbHuWn820/ETPkIP ulHQa123z1EmytjaCOuPYQsFLuLq6EH7wQGfY+TXkkvl00sKkUBQb8kIXvnWsyezUyxb GCQWJmixsZMKbqruT994i8MfDdYAiTqd0q8A7VT0j35cp8ATkFh0MC7s6iQwPykkZffk yjC9fhaU+NuKbSssVDUbH/LxWEAdtWtrN7R95t5E4QHiD9Bpz7F61YH3fIrwpFF3IOHZ 6xZA== X-Gm-Message-State: ABy/qLZ9WpMev4znJs6txf9BJaRAM8PnLMI1qnLPPmdJu/A2pJfEPa7A UiFhgFMtN89CBkneGiHxhe2b7hIT X-Google-Smtp-Source: APBJJlGfKse6fJIjhL7uiI8qA7i30U031PXSAWsxEIJ4fmA3pk1mTN/EKtVrzCyhLqCaVcyXqQy5RQ== X-Received: by 2002:a2e:9549:0:b0:2b6:d613:2147 with SMTP id t9-20020a2e9549000000b002b6d6132147mr12521657ljh.50.1689143367067; Tue, 11 Jul 2023 23:29:27 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:651c:1547:b0:2b6:6c25:2e98 with SMTP id y7-20020a05651c154700b002b66c252e98ls1798386ljp.2.-pod-prod-06-eu; Tue, 11 Jul 2023 23:29:25 -0700 (PDT) X-Received: by 2002:a05:651c:112:b0:2b1:ed29:7c47 with SMTP id a18-20020a05651c011200b002b1ed297c47mr13830327ljb.8.1689143365355; Tue, 11 Jul 2023 23:29:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689143365; cv=none; d=google.com; s=arc-20160816; b=V3d0SC6ozzBdLgItdIalmnle79xBVMx3PJXkAaMip4RTatPyL7SSDZU0ZsaFJGFlWI j83g8mT31mPP91w7rl17mUhSTxM5x9r71K61f3YkN54VjxrhtFQGDf+chFeH0FYmywQJ lutW9avNqCbZLAsCQwWcTvJgfYiZIeMgD3PujUY2Cx069x5kwNoP8TubJfcgPPwmk1H4 SXWK86hce6XSdUjRUNYVj5ZHtr5mua3VFYLwend3VvuRUoqiobfNji9ElpQVehuT4ChS wQVERVjJcthrMu/iXtQyoZjQkkCjP+wA0XMQKrFn6/D35Zuj/tnQHxoEw9tKECEuYlQO MPxA== 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:cc:to:from:dkim-signature; bh=jaFWUw9gKjfe3Ukcvgb1jp0d6hB2t/eCpjIsrYyKWTo=; fh=tzbQPq+N7grO1gGa+bAwyFl2D209FzUnZRd8HGB+Xqs=; b=iHIr5+bmy2/CFpfz+Vb10+Z0pRkgJbrR0Oo2qW1Xf7o6MQ0UIb8/KK78G/lGCEUDmN 5WpxBGjJ6qO0iYLWuw/b35ylgrcxVHe3RNdKeX+OebK1QRu0XHq8LXK09b/BpWt4AAVr GJ9haYRgQF6Q3G2yNW1jIk/8A8U5xyumzg6BSrRWCrPA09u4y8wppHCFWnl62Ozw13Ub z9q7dfXf+qJ383Xr2a4iYuZJJzmWob028v1Wnf5u2HFy6AsBTL6olUHNcZJuMBqU55w4 PvmR0qrw8p7NqodEe3lT0QeVwC538vMMNm5vFbKNVLnl1hentEhB4mdKeNtu6mYYDv8j VzQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=fQehUMh0; 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 Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id e13-20020a05651c038d00b002b6f55a1a1csor1882375ljp.1.2023.07.11.23.29.25 for (Google Transport Security); Tue, 11 Jul 2023 23:29: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:a2e:8699:0:b0:2b6:9ebc:daf8 with SMTP id l25-20020a2e8699000000b002b69ebcdaf8mr15337445lji.31.1689143364867; Tue, 11 Jul 2023 23:29:24 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com (host-82-58-49-236.retail.telecomitalia.it. [82.58.49.236]) by smtp.gmail.com with ESMTPSA id d21-20020a170906371500b009890e402a6bsm2065390ejc.221.2023.07.11.23.29.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jul 2023 23:29:24 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Amarula patchwork , Raphael Gallais-Pou , Philippe Cornu , michael@amarulasolutions.com, Dario Binacchi , Alexandre Torgue , Conor Dooley , Krzysztof Kozlowski , Maxime Coquelin , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH v6 2/3] ARM: dts: stm32: add pin map for LTDC on stm32f7 Date: Wed, 12 Jul 2023 08:29:17 +0200 Message-Id: <20230712062918.2248573-3-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230712062918.2248573-1-dario.binacchi@amarulasolutions.com> References: <20230712062918.2248573-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=fQehUMh0; 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 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: , Add pin configurations for using LTDC (LCD-tft Display Controller) on stm32f746-disco board. Signed-off-by: Dario Binacchi --- (no changes since v3) Changes in v3: - rename ltdc-pins-a-0 to ltdc-0. arch/arm/boot/dts/st/stm32f7-pinctrl.dtsi | 35 +++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm/boot/dts/st/stm32f7-pinctrl.dtsi b/arch/arm/boot/dts/st/stm32f7-pinctrl.dtsi index 9f65403295ca..36dad40dd0c7 100644 --- a/arch/arm/boot/dts/st/stm32f7-pinctrl.dtsi +++ b/arch/arm/boot/dts/st/stm32f7-pinctrl.dtsi @@ -365,6 +365,41 @@ pins2 { bias-pull-up; }; }; + + + ltdc_pins_a: ltdc-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 Jul 12 06:29:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2939 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 5912640F4A for ; Wed, 12 Jul 2023 08:29:28 +0200 (CEST) Received: by mail-ed1-f72.google.com with SMTP id 4fb4d7f45d1cf-51a38fb9dc8sf4132460a12.0 for ; Tue, 11 Jul 2023 23:29:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1689143368; cv=pass; d=google.com; s=arc-20160816; b=0aqbHEaORpgU3/x9l6ThchZO5dALw7DhF2DGbwev4q9mb1SGQ3WXzhVn0UKLWy1D1m fdUy0aJ5T8rnA/th/h1YjFMZlnPhwuPNFb27ozldxOlWFBIkcuRwuZvFsC6t2uSla3Hm AW9uqq3UGNw4mNdqk60eCXzicYg3zCZWWk8MaAMTgMTToY1VS5AKGyL+h1Hz5m0KqC0p ooibACPT8wTExwX7ndSlNulFovWQUJq4BvELLHTZDOtfLQez251nsWvZI5Ci1rz+w+KG iq8qFK+CKV/O1sIag0ULyyYl2cWqwJuBPfu+OakKFbgJjWc7dfNtKk3dXptpyy7HO2o4 oXhQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=7GthZH0C52ytA+eNmCwpiMtW5oiSGRqtQGLrVRK5PZE=; fh=tzbQPq+N7grO1gGa+bAwyFl2D209FzUnZRd8HGB+Xqs=; b=U5bYc0JGOi43c1OSRjc1RBa07jC9Cfou57iuqNYEIiu7IXRsu0C1G5d0Q9Q2rcHKd9 UR+FRTPtrdNBVkxo5IpT5f7AHjl7YcOxd1i9WXfbs8D8NVbHaHqMKfADp/JQkuN/NrLD rHXNQbslPfXA3luP2EPSDV3XtDe8I9WkAujY2/Bg5gsybBn+W3CCusm8R+0x0tsUKhKC E8jkWug21c/vNbc/9iIgZg9QJtc49mk4zumicm8ep8vnYX2YkjfZ8Oz7a7JI/drGd43p EQwmISQgHpCCTrq/kob6jVems96sbny5MOPd5gP5SkF5VdnTgl3Qkkx6NxnUG6YEDjGl ChCQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=HEETYVF3; 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1689143368; x=1691735368; 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:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=7GthZH0C52ytA+eNmCwpiMtW5oiSGRqtQGLrVRK5PZE=; b=dn0S/NKr9epbXdfDOuuwiXP7FOhpT/NuX434bcF1PhVkA79QYT+x5xsmrCTDQzQp4e sKePkaiu6sKehu07jPhcSAZBPJ1nrhj3SQ0HExkPqwXbtaF6aB1uhTkPYPgPuxicebO8 Qs3vhPgEJgzb6Dl0gQs6zm14QmtBKSMcreIo0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689143368; x=1691735368; 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:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7GthZH0C52ytA+eNmCwpiMtW5oiSGRqtQGLrVRK5PZE=; b=Nt+wOrgkmqat3bZFLuZj13I49o9vMk98H2anNJQgzuAA50HcSmYT/1+WEIQ/ItlOdF ruS1LbLwUzfBRG+XLYLds26zRblMiGU7wGnNgltgmGeq/HXYq3NjsKSbG9NQPYHWA73F vRaQ/mNuOIzX9W/NHOVbGbCA0jD492Nd1pRw10/v6pGR7v7GPX4+6gfZxnhfVSAkA4tD xLDvPQ2cg8W0th4vqm8olv+4KqKlX8WqXtUX+RTEa/ii33c9fxwom6m9HDAPaY7UegJm So9fDXFZZyL/9WBpZh+jBB428XMDNylJGCJDGn5ajq0E9nP+SfQrdznBUzcXor/YeA4j +Hvw== X-Gm-Message-State: ABy/qLaUHfADvnayXIQXjHW1IpVLzzKQEsD2LvgCXpcUgA4IC+vvKCXh 8pVkYQfv4PfC/gu1tUUsrUVXO0o5 X-Google-Smtp-Source: APBJJlFylQD+odx6QClHI+ldxHJqQkmeBz/pqJ0Du83MpghzFzbRdNgSsTfltTIks36GvnKNRHqwEA== X-Received: by 2002:a05:6402:7cd:b0:51e:587c:9a2a with SMTP id u13-20020a05640207cd00b0051e587c9a2amr10235913edy.17.1689143368142; Tue, 11 Jul 2023 23:29:28 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:1a57:b0:514:a0b8:647d with SMTP id bf23-20020a0564021a5700b00514a0b8647dls1638188edb.0.-pod-prod-02-eu; Tue, 11 Jul 2023 23:29:27 -0700 (PDT) X-Received: by 2002:a17:906:259:b0:993:d5bd:a757 with SMTP id 25-20020a170906025900b00993d5bda757mr18585746ejl.19.1689143366571; Tue, 11 Jul 2023 23:29:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689143366; cv=none; d=google.com; s=arc-20160816; b=P0PNcVB6K8GwCjZiPi1jRwB9HDpuywP7AuU3Eu6l+qeqcyDa0EPt5qe9I5AeKyvW4/ YtpNRBmdtuYiMOJzJ+hfaPdxti2jo+on3uIZE3K1qVwr29Kd1R5UYhLpAd9Y6VbWkEx4 WpMzmV5hzPmruMdGaVJMLTNN7fNJhwSA8LIQant9sWyNMk7r2JAAmQuYc1OvAZhpxql9 JqikYwJGC1xyCKbwfbWfNApDeL3kj0L2OyGBE0ojk96OjYh09u5eXRt/SEsAw6lLOfTf mEMUpIxagCe6Xfa0oCugG2Mr35wxe53igCstVnszzRny+7G8xzlSonDo/FsoNCo8UP6s n8bg== 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:cc:to:from:dkim-signature; bh=YGihCxuuhTbmdH2hnVIgkw0LhiTdDuWDElMvl2JmI2g=; fh=tzbQPq+N7grO1gGa+bAwyFl2D209FzUnZRd8HGB+Xqs=; b=ZWY2LoUy9lVaqHYhTTLZrmkv+Zv0QTJnE0M018KbEVRz2vBnc6pTrGapeBRasQ3ZfR hIcOhib8u1016lMg5yxAoRtIUPOpmdCtl1fh/dMhy6VCkJ0jPWTjpvkfxq9xPm5N3631 RETYunZNa2a+uiYu5lMi8rtxFWsGbZdqMhN0Ro0wz6f1+pBcuOR3kdYqd6go41BJbU7m CM53TaKdo6iUv0Pgqv4NHW2pYPpNVTVT8QaFb1arpooIMvVMsEMbtJl7gApE8dAqVWbx bfTN5nZb+Iu9Lmv03IRIYW41HdQTGJbmrRwYqoRlHdypMqq9i5ur90q+ZCM9OKXquYPA 9cbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=HEETYVF3; 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 Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id e22-20020a170906249600b0098d66f0d6d2sor1387399ejb.1.2023.07.11.23.29.26 for (Google Transport Security); Tue, 11 Jul 2023 23:29:26 -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:a17:906:15:b0:993:f611:7c95 with SMTP id 21-20020a170906001500b00993f6117c95mr12384538eja.39.1689143366256; Tue, 11 Jul 2023 23:29:26 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com (host-82-58-49-236.retail.telecomitalia.it. [82.58.49.236]) by smtp.gmail.com with ESMTPSA id d21-20020a170906371500b009890e402a6bsm2065390ejc.221.2023.07.11.23.29.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jul 2023 23:29:25 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Amarula patchwork , Raphael Gallais-Pou , Philippe Cornu , michael@amarulasolutions.com, Dario Binacchi , Alexandre Torgue , Conor Dooley , Krzysztof Kozlowski , Maxime Coquelin , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH v6 3/3] ARM: dts: stm32: support display on stm32f746-disco board Date: Wed, 12 Jul 2023 08:29:18 +0200 Message-Id: <20230712062918.2248573-4-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230712062918.2248573-1-dario.binacchi@amarulasolutions.com> References: <20230712062918.2248573-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=HEETYVF3; 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 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: , Add support to Rocktech RK043FN48H display on stm32f746-disco board. Signed-off-by: Dario Binacchi --- Changes in v6: - Remove dma nodes from stm32f746-disco.dts, they are not used by LTDC, so there is no need to enable them. Changes in v5: I am confident that framebuffer sizing is a real requirement for STM32 boards, but I need some time to understand if and how to introduce this functionality. Therefore, I drop the following patches to allow the series to be fully merged: - [4/6] dt-bindings: display: stm32-ltdc: add optional st,fb-bpp property - [5/6] ARM: dts: stm32: set framebuffer bit depth on stm32f746-disco - [6/6] drm/stm: set framebuffer bit depth through DTS property Changes in v4: - Use DTS property instead of module parameter to set the framebuffer bit depth. Changes in v3: - drop [4/6] dt-bindings: display: simple: add Rocktech RK043FN48H Applied to https://anongit.freedesktop.org/git/drm/drm-misc.git (drm-misc-next): https://cgit.freedesktop.org/drm/drm-misc/commit/?id=c42a37a27c777d63961dd634a30f7c887949491a - drop [5/6] drm/panel: simple: add support for Rocktech RK043FN48H panel Applied to https://anongit.freedesktop.org/git/drm/drm-misc.git (drm-misc-next) https://cgit.freedesktop.org/drm/drm-misc/commit/?id=13cdd12a9f934158f4ec817cf048fcb4384aa9dc arch/arm/boot/dts/st/stm32f746-disco.dts | 43 ++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/arch/arm/boot/dts/st/stm32f746-disco.dts b/arch/arm/boot/dts/st/stm32f746-disco.dts index c11616ed5fc6..c00d34179e2e 100644 --- a/arch/arm/boot/dts/st/stm32f746-disco.dts +++ b/arch/arm/boot/dts/st/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,18 @@ &i2c1 { 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>;