From patchwork Sun Oct 8 15:44:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2990 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 2DC983F080 for ; Sun, 8 Oct 2023 17:46:02 +0200 (CEST) Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-534543af820sf3168919a12.2 for ; Sun, 08 Oct 2023 08:46:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696779962; cv=pass; d=google.com; s=arc-20160816; b=fYUYmQS5i7XqAy8xxvIxUfpB3Sw4EJDqMaqqx+hFQrYh+u1TWEdiCXsDfhxitoG+SG nFxS4TQEDxWEiqYzfkkZMuoSbAFVEtj4DD8z/d0UDfERfViWdqmUhs28cfWwNFvgfeYU 7T8bhLYEAWJIoPgC2DrAbmS33l/qLoOTsh7x8kJ6Bx/xqz2BnC4TDswxUq4rkPaRmxxK +aXqiaEH4VTdXZYwNqjMlUWL1SMRWJSJBC7DPl/0zpqQ7Oq3aWo3GwCQ4WPnDdUS9XRw XyltC79uomgVa3p3nc6xzlXAwEyojE7BNNJYlUqZwXApbEmoxfDnWLXh+R/rncGaRXZf zBjA== 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=QGwJ3pcB7tdXz6HmGzlHilEfqz7U5O3tdKJOMAx/8os=; fh=G1L7/xxzt+w38Iw9zi+0vBZwn8EvOdRlLFVpqkUuFRY=; b=E+y1+3ru3PxB3jC8kqFRKBi4WeIOK9WAJVh1JZOZv9K6Mi4SMY6O5rAIpjJLk3qaYU fsZS3XEFbjVCg8L6e2I5DUsa3UGJp+uG+FA/OF53HpYtvRRs2H/k5BGj4ilWLijMMb6q VHTAklyqujJ7ujG0RE+iT67pBlAqNxZeO/T0a8xN7SP/uReHIz7HPrq9Emyk+I2NfUB8 e70ZzRU/Ycr3IW2S1fZK0NUQ6nlgvL0jkqtY4ehungsAJU8dIzv6FbbxMC+rhNQ0W215 sLxDCBs204P2JZiblrTWFUK/5Qeyn/PuDYoSS6vu/tvATuaiW7bmQ+ahh1saKNBhx0Vc q85Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Se1Wm85L; 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=1696779962; x=1697384762; 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=QGwJ3pcB7tdXz6HmGzlHilEfqz7U5O3tdKJOMAx/8os=; b=dj38xzYal+ZfYHnjkNd3Bye5ZYOBUCa0kenr5ryc260XE5UGA7nAjOIbuwtv/efV3a 4P6fmsd7O0vURuu7p84SIuzUH6UmUNQ9fde5QZDTsELLB4Pvof4Qzyf9jPE5WfcmyDFB 2NCZzdd8QeLA36uPnOkN+hiNuxZienrbFtZUQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696779962; x=1697384762; 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=QGwJ3pcB7tdXz6HmGzlHilEfqz7U5O3tdKJOMAx/8os=; b=fxeaP2ai+AJOVUBB1upUEB7iZ7876vrjab2IRVimuTxNcVCHgpYi9fbe5rHakgp4Jw N71NWaNXnxNK8PsnzJgRgORUsz+E0ppLkVUIgAl/h16UK64Rcf5bnCbRjenSxZ6+aJ9C fdd8THRLzXprvlbGr3lnhSmNrI6T50nahBaFrxv9y6D6/rdJvJeLr9DoYXOWj6XTRZkd 8xcgbiwaZqdFd8hIoJloXVrTmWx8q9r37kGL45oxx4QUZigsAH1aM0fJktCGCjI6IWW3 v/fYSHozBCgbyiFSgHSxU4YiKn8rDHg3tCA5pjp934skusvvma+fk2hfdl7+tvBm92GV kd9g== X-Gm-Message-State: AOJu0YxoRM6OpZXlG9MA94GBuGH/BhkWkmIUmuwZIPh5daW0T4xdbhhB b4pIUHYxJGDv6scnFyJzPCZicqK+ X-Google-Smtp-Source: AGHT+IF0EgCViVfAr5/RBymt0tN0SEHIeihQMmB7H+8lVxmQqYeqBsDA1cbiZcksRY0IItRm12Lffw== X-Received: by 2002:aa7:da55:0:b0:533:277c:acc3 with SMTP id w21-20020aa7da55000000b00533277cacc3mr11795216eds.13.1696779961651; Sun, 08 Oct 2023 08:46:01 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:c487:0:b0:534:7b4a:8d91 with SMTP id m7-20020aa7c487000000b005347b4a8d91ls509325edq.2.-pod-prod-06-eu; Sun, 08 Oct 2023 08:46:00 -0700 (PDT) X-Received: by 2002:a17:906:5357:b0:9ae:7681:f62a with SMTP id j23-20020a170906535700b009ae7681f62amr12688219ejo.44.1696779960236; Sun, 08 Oct 2023 08:46:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696779960; cv=none; d=google.com; s=arc-20160816; b=rCKtyM+egXtEv+CGqqTKSuRxI47pnUOFxXx2wAb9WwHQqpJWPbnqgbU4W57lY118CR RTmiMtM8iSX91CLb2WxeFrW+TZuiUkcurUFIxuacZb91vW9oOJm6/jP8U55h8FTapMql 7x2rsPWnchPdWvdfCu2mNQZX44rTOaH4TAoljZxHw9p9ZW6ruqCkDKLwxANX3tOyGUga PoF2X935W2U66ipaUChiklxt3mHr+MtZzsrEp1aCkwayFOqBMeuhASytAHh6uvCzvnNL VIh5B7GSb+7D2HT4AQqq0OJGEf9CyXbiXVjYLulTbV7jwhFu/Ms7fQSrQTdAyxbnkdnH opWw== 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=bIGSMWG9wB8nSXXdhajx7VgE3zyfpt07huxXjyhDX0I=; fh=G1L7/xxzt+w38Iw9zi+0vBZwn8EvOdRlLFVpqkUuFRY=; b=jpAOnTyfyOTwnDXSgRJ6hch2gcwQ59MwQrt4encxrrTk5OXkaDGM+zvA0kBG+WIoCz muqZMH1sW8hC8wCUl2xUBfR/11yqtkugE/2KtFZXsFI1oBqCoPa6V9Xu7roAzoIn+JT2 mV/nG8d/CmbXO2+UKCjk319RHh4fz9paJQ4PtdMctjbS9kHMnHzIADo0X1R40JnCYcbf BBhIvvgfldzAczkMJmwql9yRwKsajuXyvZT/51R9BDiMZaW10bdgP2c9i3gaizrFTX1N g2PrrgRmqP6h0k7NPR88GdW7oYIygOMcUxYCK9fFqABEpH/pmxr4zFiJpX5T5pSxZQb7 kyuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Se1Wm85L; 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 hd11-20020a170907968b00b009ba0a38f29asor878860ejc.19.2023.10.08.08.46.00 for (Google Transport Security); Sun, 08 Oct 2023 08:46:00 -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:907:774e:b0:9a5:d972:af43 with SMTP id kx14-20020a170907774e00b009a5d972af43mr11896479ejc.65.1696779959775; Sun, 08 Oct 2023 08:45:59 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-79-50-102-159.retail.telecomitalia.it. [79.50.102.159]) by smtp.gmail.com with ESMTPSA id lc11-20020a170906f90b00b009b9aa8fffdasm5623981ejb.131.2023.10.08.08.45.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Oct 2023 08:45:59 -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 v2 2/5] ARM: dts: stm32: make the LTDC clock usable by the clock driver Date: Sun, 8 Oct 2023 17:44:54 +0200 Message-ID: <20231008154538.1622772-3-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231008154538.1622772-1-dario.binacchi@amarulasolutions.com> References: <20231008154538.1622772-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=Se1Wm85L; 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 --- Changes in v2: - Add Patrice Chotard's Reviewed-by tag. 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;