From patchwork Sun Sep 3 20:57:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2978 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lj1-f199.google.com (mail-lj1-f199.google.com [209.85.208.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id C7F5C40F59 for ; Sun, 3 Sep 2023 22:57:10 +0200 (CEST) Received: by mail-lj1-f199.google.com with SMTP id 38308e7fff4ca-2bd24fcd68csf7554591fa.0 for ; Sun, 03 Sep 2023 13:57:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1693774630; cv=pass; d=google.com; s=arc-20160816; b=l0itKLbcfrizidnaF8nqyIgjBAcyG6rRaWBWaMG056749dtKBIobdiCjA8aG+Sw8Fn E8u/iTaSMj3c0V3I49uoVkvpWjXIulpNrWftZS/O98uinbz7sOPCP0yFPePB7mNrZxMx AnC35UaSte0jbdEXeimoHDsTkZNyo5AdploT3IFrTgZRZtCkfnAyojRO9Em9mhUl5/SI A8HBUa9FKNZ+zXOWW0kX43/d0/NjSPOzc2NPpKdXtt1V9/py+K2290gvKSEHwTkg+xwB cWXu7/MaJsnFnkaO1wel72fzICUnEm9JkkG2ZNzyxLe7c+fWEIcrK1k8/Kaw1obtofwH dTzA== 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=pNftj3MiKadpFbFnQdVfx6k76X9EG3zOSavh0Qb/jJE=; fh=G1L7/xxzt+w38Iw9zi+0vBZwn8EvOdRlLFVpqkUuFRY=; b=IGYLdyGFc2VHhY7TCbeLCTFuddUSzwP0DnWC3r6dfBxgjKGE4MD9qC+N/JRXfp4HKB DabJZm8hEYN7CMnWigdJ+5zdpstuF7t1tcx8Rpd5MEIVVzKcZ+fBiUnxDhpxnwHili5P BC/bxoIDam8zc1diVMPYP5ySA1TYbjIII2gs4gKpMCbP3tFSpVrIeOZ4TaUuLfZpiYVC +5vcbcDIhL4dY2UcS5Zyj4kRuMyh6LqaTi6ii5RjLi0RYLMhlYlhrsQnhai+qjbYg4T3 yRvGX2iaWwQvZ0sPF8JCxbwnvp8s2fH+17E6bmUKXQ5ddW0SlJZ+XaeTDO9Z95BRoNuh UUiA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=H4Utc2dY; 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=1693774630; x=1694379430; 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:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=pNftj3MiKadpFbFnQdVfx6k76X9EG3zOSavh0Qb/jJE=; b=UE49Bo5TgSps9ji3STivaJIHcggdsc08bU7yEIY45K/K4x/O9hbhFB3p+2BQjoWBZw 7th3wAvdSYbCNxEpkeogH4JCjRJdspEQoVjeTlDdrJkd1tkK9lwCbW8yVFTN6Xsg4/z9 mDlfkQKPv9C5kkTCgzlVv87DTvpeRCMRy8x7E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693774630; x=1694379430; 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=pNftj3MiKadpFbFnQdVfx6k76X9EG3zOSavh0Qb/jJE=; b=IV+3na+LhRl57eULRAod7uzI0dKS1m7F953UCXhPO+Va/wfFJ1GYNyKFbd1csbnWZW yMhoO40Tb10bvfvNQZx8GhfTanE/Iy8QI+Lfl3kUlpUcs2kj4IGHkHWytYZ4CT2AChyh LT9nPbXk4aY6WhRZ5m8J7B+WD9cyIFW4oK1Ivo/0jOjJM/vYpak/6OP5sC/y3JJ5+Po3 D7xHItj4/I22Fi2BMYLtp/uWKtt0mQC4cgBQp9SwXXv6L3Sq1S1Tm7HeUE+t+5QuL+FF W3X5wd7FqeQUFpjcshEUBfzAutPSzCU1XItSLkdDe6sTSNLf8ERCtnpxAwv9cCWGZmcf 7pXw== X-Gm-Message-State: AOJu0YwiD9O4qrUPMcKhVWgXyzzfas/zHt8tyKmGMptK7F4uuEBrvDr8 3qGAd0W5Juyabcjz26EZ66pErZGK X-Google-Smtp-Source: AGHT+IHF3J4PKELrIDlNqmBD847G3fxES25Ko5lgwGaE/cGaMBAezBAcVFPJtGXdmFBsiA4SkmW5NA== X-Received: by 2002:a05:651c:214:b0:2b6:9da9:2884 with SMTP id y20-20020a05651c021400b002b69da92884mr5863844ljn.40.1693774630332; Sun, 03 Sep 2023 13:57:10 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:651c:1305:b0:2b9:5e1d:de39 with SMTP id u5-20020a05651c130500b002b95e1dde39ls685355lja.0.-pod-prod-06-eu; Sun, 03 Sep 2023 13:57:09 -0700 (PDT) X-Received: by 2002:a05:6512:748:b0:500:94c3:8e3b with SMTP id c8-20020a056512074800b0050094c38e3bmr4999753lfs.57.1693774628669; Sun, 03 Sep 2023 13:57:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693774628; cv=none; d=google.com; s=arc-20160816; b=GZsnyA0OS3Ty2X9uDVDXuN/yKf2rkm7f11P1LBinIPTgnBnnz5TssRpwCv1798j2Cw CSA2k5yGdRNpMrFx0krQVGroeohufTfqeQcMsIvEXdHn89MVmcUXsWr9Trk1m4OykyoR i2ewjxF+oajFYAJ5oCj28rZ2UU6kaSD0EzxQRkgBq00wZaJQI27AZ2dmWXVPGHGlR0GX eeZmsV4fe6/SWGrs/YspuX/R5+BlW7yV9Iq8cb+c2rvQGI8XAYO6dUrHjo8+KrmWRsor vNQQ8Jtf9EpKs4euZU2Nms6sH5ygmetk8Fz4bVLCeJPmeUTUDbM9skkiNgLkNz/ckKRL e/rw== 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=8TYglP+cNP848xbNNC8t1ng0fe7mgor003HF4vz/ysA=; fh=G1L7/xxzt+w38Iw9zi+0vBZwn8EvOdRlLFVpqkUuFRY=; b=lldmGQigR/xZPy6mSVwP3uY5+CW5UTo4EZS5lE/3IyF29Jr8yNvek0ELMu2Kfn72wW n/WVxyES11qjCTH8Av5rRE10G4B3Gtb6DOzAsEicmHjcPKCtkM1nLZH0HL53fN5ewgRD NANN1TQC0nOWiNPHyWwOXrjxwACVKxEMARl6uVXEfoX7q0K7/LpdgsWjuRWWN5k9OX2n 3Iq9gMKfIFEaLSg0KoTFuj5YOXDrlKFvJro3LfBTvTlg2Dw4Se0NeWQ2OU3GIdV7IEy+ UT5LRr0CLt1fgNV8e60Yn/DnPkR7ztPoVQa5517FrCYjvJU7j8a+88omuu/uAYOIqL08 wH5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=H4Utc2dY; 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 y11-20020a056512044b00b005008b4d4fbesor3163484lfk.17.2023.09.03.13.57.08 for (Google Transport Security); Sun, 03 Sep 2023 13:57:08 -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:6512:110a:b0:4fe:21f2:a04a with SMTP id l10-20020a056512110a00b004fe21f2a04amr6193023lfg.8.1693774628229; Sun, 03 Sep 2023 13:57:08 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-79-54-71-141.retail.telecomitalia.it. [79.54.71.141]) by smtp.gmail.com with ESMTPSA id v22-20020aa7d9d6000000b0052568bf9411sm4850232eds.68.2023.09.03.13.57.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Sep 2023 13:57:07 -0700 (PDT) From: Dario Binacchi To: u-boot@lists.denx.de Cc: linux-amarula@amarulasolutions.com, Dario Binacchi , Patrice Chotard , Patrick Delaunay , Simon Glass , Tom Rini , uboot-stm32@st-md-mailman.stormreply.com Subject: [RFC PATCH 2/5] ARM: dts: stm32: make the LTDC clock usable by the clock driver Date: Sun, 3 Sep 2023 22:57:00 +0200 Message-Id: <20230903205703.662080-3-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230903205703.662080-1-dario.binacchi@amarulasolutions.com> References: <20230903205703.662080-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=H4Utc2dY; 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: , As described in [1], the "clocks" property contains "a phandle to the clock device node, an index selecting between gated clocks (0) and other clocks (1), and an index specifying the clock to use." The current version of the clock driver, unlike the kernel, is currently able to properly handle nodes with "clocks" properties with an index set to 0. This patch is preparatory for future developments that require the use of the LTDC clock. [1] Documentation/devicetree/bindings/clock/st,stm32-rcc.txt Signed-off-by: Dario Binacchi Reviewed-by: Patrice Chotard --- arch/arm/dts/stm32f469-disco-u-boot.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/stm32f469-disco-u-boot.dtsi b/arch/arm/dts/stm32f469-disco-u-boot.dtsi index c07e2022e4a8..dcc70369cd0d 100644 --- a/arch/arm/dts/stm32f469-disco-u-boot.dtsi +++ b/arch/arm/dts/stm32f469-disco-u-boot.dtsi @@ -134,6 +134,10 @@ bootph-all; }; +<dc { + clocks = <&rcc 0 STM32F4_APB2_CLOCK(LTDC)>; +}; + &pinctrl { bootph-all;