Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp183760lqb; Tue, 28 May 2024 12:18:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUwYR7n1SRK+t6t75inl4E86nQc9VL0gPxU1Vh5OgMvLKa03jJ9n/XJHZTwIn7vTCKw6jClhPpFrRrwVjslQeu+xbNAT4kCLKAX7660qg== X-Google-Smtp-Source: AGHT+IExskW26fcO6pzYipk0oPvM2nKchuYDCzLEL0qfYUR9dQ0MJV0GiZmiEzawVRKNctkNGLaZ X-Received: by 2002:a05:6830:719a:b0:6f0:97a4:3e9d with SMTP id 46e09a7af769-6f8d0b67a8cmr15716022a34.38.1716923913966; Tue, 28 May 2024 12:18:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716923913; cv=pass; d=google.com; s=arc-20160816; b=lT4Wv5u77uAKiBjpJISvhP/5QQzQL2HZzKj1zLismvyS4wUobqZQWVvhaB25a2k89T +0iId96Unr+mpcx/VaDJ5HbNVBytILiQU3IKmlhgs7j4asRxdSfqG7AbQAF+2HIgVCoh D2cwdSmmXr0aywN0sNABkzvmMnQSyATQxMQocKL/I5r5FgKg+OrqLqAvLqk2dzSZ3twp z4dVe6L1TP/ExAKavVkVwR/XIom8egzg0J6R00LhDi6Hr3N3/qoloTuJXb573ab6EZ30 cOu4z7JpGp/fQFeJI/0YS9C61MLKLDm0VQaXpXapS4z1GbbIzbQVxjK1TlP3l9EYCZOn cPqg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=+pZuAstp/YZTEcgdZM3sSMUyH7IfwijkbaleGgKzEtM=; fh=/OlyqAq4CC1hVZ9ySSKBjI8c6lq9uya85/Htdn9fANA=; b=yP44u9b4e9/Tf7vHatYIx1tzuL1uXbRLNeQndbLBKjp9jT0tA7H/2xOZrFkuZUWTlV Mx823gonWluTAePF38y4glv8hh7H6pRDw4jZm6R+W8Xa0vTdONOvoOKiPRlIlZPBNk6p SPruJ04ygAQJ7swL61cJHJeBU/Qxpa60EQ5PAPzOHVZrG/qsCq2UnF4VuBY48qROU/Xy NUZQSXWk4F3UpIo6iDs3wOuZEUz87gxKXhPYEktn1Xkw3Ux00lfvzrslQ4LPbQADAEt4 a9R8eFbkXBgzHZBgKEAg483x93d+52eczh7y+3GYqSpAaDjfsQRRvcfXY1gbFe1V8AXZ EfXw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RNwvASTH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-192924-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192924-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43fdaf9941dsi20418101cf.364.2024.05.28.12.18.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 12:18:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192924-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RNwvASTH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-192924-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192924-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 0D2071C27312 for ; Tue, 28 May 2024 19:17:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6363516FF4F; Tue, 28 May 2024 19:15:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RNwvASTH" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 40A00170822; Tue, 28 May 2024 19:15:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716923746; cv=none; b=AcRbjLzKtlpdZDTXz9v2uj3qU9pfasgHkDYoKM8OECJV62syCAzLanvmN/wk8HOJC0X34sSzFX+IHBXra2EvHAwB5E/QAfsXJHYgsNzqWatUofFENkeBNpVtvZbBMAhq6xAbb9JwsCgajo3h4edKRQUSQXIJ1dHK8qwiz+4NMEA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716923746; c=relaxed/simple; bh=W9Hk0yMrwr4jkcQ6ZWTGhlT7vkcX3TSsoa2ozME1iXA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Qn+rcZEXm9ytGk5W3TZU0jq30YJjf982MppjYRdBvFEKgXYmOauWtcINEPWuh25EQhUYSDVM5rfML42VmupP83oahSS59j6CftB3fiHj7dquJSmyfAWbVu8FOPpqdins2MsonQNQvpbqmsNln/Jp7pTU8rAOby0zUH74M9sGMQ4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RNwvASTH; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87B66C3277B; Tue, 28 May 2024 19:15:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716923745; bh=W9Hk0yMrwr4jkcQ6ZWTGhlT7vkcX3TSsoa2ozME1iXA=; h=From:To:Cc:Subject:Date:From; b=RNwvASTHid1n6p5dlreSdAPoeBvV0HNsD4lUozXBi23oisy8ZgvIdbLv4SqeNz0Eq 3egcvYMoMQZxrFRKgLHHISqFpe9aj7zU5x7veuvoqwsOUzVTnZxOXgm0j4UkiDpe/3 sGqAANffsMXJTqejuGCIi5PlZdE7nGOIZ1zu62dHYfwaX6ldCkJ9cMEgEV5McVk46D zEmmZ7s9JTWdiXtA3wFf/wVnRZtLuuBu6lMttvWdFIyHXynhO4H4f6JwUsODZ2Umig CeNWNcTe3Rp3GfJjPUI043OWs+cD2OomtGfFsREexdKuPrHRHrHRhMeJ58XwTRDfuV 4iACjWLatr5xQ== From: "Rob Herring (Arm)" To: Linus Walleij , Krzysztof Kozlowski , Conor Dooley , Liviu Dudau , Sudeep Holla , Lorenzo Pieralisi Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] arm: dts: arm: Drop redundant fixed-factor clocks Date: Tue, 28 May 2024 14:15:31 -0500 Message-ID: <20240528191536.1444649-1-robh@kernel.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit There's not much reason to have multiple fixed-factor-clock instances which are all the same factor and clock input. Drop the nodes, but keep the labels to minimize the changes and keep some distinction of the different clocks. Signed-off-by: Rob Herring (Arm) --- arch/arm/boot/dts/arm/arm-realview-eb.dtsi | 42 +------------------ arch/arm/boot/dts/arm/arm-realview-pb1176.dts | 34 +-------------- arch/arm/boot/dts/arm/arm-realview-pb11mp.dts | 42 +------------------ arch/arm/boot/dts/arm/arm-realview-pbx.dtsi | 42 +------------------ arch/arm/boot/dts/arm/integratorap.dts | 10 +---- arch/arm/boot/dts/arm/mps2.dtsi | 34 +-------------- 6 files changed, 6 insertions(+), 198 deletions(-) diff --git a/arch/arm/boot/dts/arm/arm-realview-eb.dtsi b/arch/arm/boot/dts/arm/arm-realview-eb.dtsi index 96f813f44cb3..b3ced3380b7d 100644 --- a/arch/arm/boot/dts/arm/arm-realview-eb.dtsi +++ b/arch/arm/boot/dts/arm/arm-realview-eb.dtsi @@ -53,7 +53,7 @@ vmmc: fixedregulator@0 { regulator-boot-on; }; - xtal24mhz: xtal24mhz@24M { + xtal24mhz: mclk: kmiclk: sspclk: uartclk: wdogclk: clock-24000000 { #clock-cells = <0>; compatible = "fixed-clock"; clock-frequency = <24000000>; @@ -67,46 +67,6 @@ timclk: timclk@1M { clocks = <&xtal24mhz>; }; - mclk: mclk@24M { - #clock-cells = <0>; - compatible = "fixed-factor-clock"; - clock-div = <1>; - clock-mult = <1>; - clocks = <&xtal24mhz>; - }; - - kmiclk: kmiclk@24M { - #clock-cells = <0>; - compatible = "fixed-factor-clock"; - clock-div = <1>; - clock-mult = <1>; - clocks = <&xtal24mhz>; - }; - - sspclk: sspclk@24M { - #clock-cells = <0>; - compatible = "fixed-factor-clock"; - clock-div = <1>; - clock-mult = <1>; - clocks = <&xtal24mhz>; - }; - - uartclk: uartclk@24M { - #clock-cells = <0>; - compatible = "fixed-factor-clock"; - clock-div = <1>; - clock-mult = <1>; - clocks = <&xtal24mhz>; - }; - - wdogclk: wdogclk@24M { - #clock-cells = <0>; - compatible = "fixed-factor-clock"; - clock-div = <1>; - clock-mult = <1>; - clocks = <&xtal24mhz>; - }; - /* FIXME: this actually hangs off the PLL clocks */ pclk: pclk@0 { #clock-cells = <0>; diff --git a/arch/arm/boot/dts/arm/arm-realview-pb1176.dts b/arch/arm/boot/dts/arm/arm-realview-pb1176.dts index e819e58e4b62..cd86986175d4 100644 --- a/arch/arm/boot/dts/arm/arm-realview-pb1176.dts +++ b/arch/arm/boot/dts/arm/arm-realview-pb1176.dts @@ -63,7 +63,7 @@ veth: regulator-veth { regulator-boot-on; }; - xtal24mhz: xtal24mhz@24M { + xtal24mhz: mclk: kmiclk: sspclk: uartclk: clock-24000000 { #clock-cells = <0>; compatible = "fixed-clock"; clock-frequency = <24000000>; @@ -77,38 +77,6 @@ timclk: timclk@1M { clocks = <&xtal24mhz>; }; - mclk: mclk@24M { - #clock-cells = <0>; - compatible = "fixed-factor-clock"; - clock-div = <1>; - clock-mult = <1>; - clocks = <&xtal24mhz>; - }; - - kmiclk: kmiclk@24M { - #clock-cells = <0>; - compatible = "fixed-factor-clock"; - clock-div = <1>; - clock-mult = <1>; - clocks = <&xtal24mhz>; - }; - - sspclk: sspclk@24M { - #clock-cells = <0>; - compatible = "fixed-factor-clock"; - clock-div = <1>; - clock-mult = <1>; - clocks = <&xtal24mhz>; - }; - - uartclk: uartclk@24M { - #clock-cells = <0>; - compatible = "fixed-factor-clock"; - clock-div = <1>; - clock-mult = <1>; - clocks = <&xtal24mhz>; - }; - /* FIXME: this actually hangs off the PLL clocks */ pclk: pclk@0 { #clock-cells = <0>; diff --git a/arch/arm/boot/dts/arm/arm-realview-pb11mp.dts b/arch/arm/boot/dts/arm/arm-realview-pb11mp.dts index 29afc5c05759..0988c2bd436b 100644 --- a/arch/arm/boot/dts/arm/arm-realview-pb11mp.dts +++ b/arch/arm/boot/dts/arm/arm-realview-pb11mp.dts @@ -163,7 +163,7 @@ veth: regulator-veth { regulator-boot-on; }; - xtal24mhz: xtal24mhz@24M { + xtal24mhz: mclk: kmiclk: sspclk: uartclk: wdogclk: clock-24000000 { #clock-cells = <0>; compatible = "fixed-clock"; clock-frequency = <24000000>; @@ -183,46 +183,6 @@ timclk: timclk@1M { clocks = <&xtal24mhz>; }; - mclk: mclk@24M { - #clock-cells = <0>; - compatible = "fixed-factor-clock"; - clock-div = <1>; - clock-mult = <1>; - clocks = <&xtal24mhz>; - }; - - kmiclk: kmiclk@24M { - #clock-cells = <0>; - compatible = "fixed-factor-clock"; - clock-div = <1>; - clock-mult = <1>; - clocks = <&xtal24mhz>; - }; - - sspclk: sspclk@24M { - #clock-cells = <0>; - compatible = "fixed-factor-clock"; - clock-div = <1>; - clock-mult = <1>; - clocks = <&xtal24mhz>; - }; - - uartclk: uartclk@24M { - #clock-cells = <0>; - compatible = "fixed-factor-clock"; - clock-div = <1>; - clock-mult = <1>; - clocks = <&xtal24mhz>; - }; - - wdogclk: wdogclk@24M { - #clock-cells = <0>; - compatible = "fixed-factor-clock"; - clock-div = <1>; - clock-mult = <1>; - clocks = <&xtal24mhz>; - }; - /* FIXME: this actually hangs off the PLL clocks */ pclk: pclk@0 { #clock-cells = <0>; diff --git a/arch/arm/boot/dts/arm/arm-realview-pbx.dtsi b/arch/arm/boot/dts/arm/arm-realview-pbx.dtsi index e715626db567..6a0e67998061 100644 --- a/arch/arm/boot/dts/arm/arm-realview-pbx.dtsi +++ b/arch/arm/boot/dts/arm/arm-realview-pbx.dtsi @@ -62,7 +62,7 @@ veth: regulator-veth { regulator-boot-on; }; - xtal24mhz: xtal24mhz@24M { + xtal24mhz: mclk: kmiclk: sspclk: uartclk: wdogclk: clock-24000000 { #clock-cells = <0>; compatible = "fixed-clock"; clock-frequency = <24000000>; @@ -82,46 +82,6 @@ timclk: timclk@1M { clocks = <&xtal24mhz>; }; - mclk: mclk@24M { - #clock-cells = <0>; - compatible = "fixed-factor-clock"; - clock-div = <1>; - clock-mult = <1>; - clocks = <&xtal24mhz>; - }; - - kmiclk: kmiclk@24M { - #clock-cells = <0>; - compatible = "fixed-factor-clock"; - clock-div = <1>; - clock-mult = <1>; - clocks = <&xtal24mhz>; - }; - - sspclk: sspclk@24M { - #clock-cells = <0>; - compatible = "fixed-factor-clock"; - clock-div = <1>; - clock-mult = <1>; - clocks = <&xtal24mhz>; - }; - - uartclk: uartclk@24M { - #clock-cells = <0>; - compatible = "fixed-factor-clock"; - clock-div = <1>; - clock-mult = <1>; - clocks = <&xtal24mhz>; - }; - - wdogclk: wdogclk@24M { - #clock-cells = <0>; - compatible = "fixed-factor-clock"; - clock-div = <1>; - clock-mult = <1>; - clocks = <&xtal24mhz>; - }; - /* FIXME: this actually hangs off the PLL clocks */ pclk: pclk@0 { #clock-cells = <0>; diff --git a/arch/arm/boot/dts/arm/integratorap.dts b/arch/arm/boot/dts/arm/integratorap.dts index d9927d3181dc..27498e0f93f6 100644 --- a/arch/arm/boot/dts/arm/integratorap.dts +++ b/arch/arm/boot/dts/arm/integratorap.dts @@ -57,20 +57,12 @@ chosen { }; /* 24 MHz chrystal on the Integrator/AP development board */ - xtal24mhz: xtal24mhz@24M { + xtal24mhz: pclk: clock-24000000 { #clock-cells = <0>; compatible = "fixed-clock"; clock-frequency = <24000000>; }; - pclk: pclk@0 { - #clock-cells = <0>; - compatible = "fixed-factor-clock"; - clock-div = <1>; - clock-mult = <1>; - clocks = <&xtal24mhz>; - }; - /* The UART clock is 14.74 MHz divided by an ICS525 */ uartclk: uartclk@14.74M { #clock-cells = <0>; diff --git a/arch/arm/boot/dts/arm/mps2.dtsi b/arch/arm/boot/dts/arm/mps2.dtsi index ce308820765b..d930168fbd91 100644 --- a/arch/arm/boot/dts/arm/mps2.dtsi +++ b/arch/arm/boot/dts/arm/mps2.dtsi @@ -78,7 +78,7 @@ spicfgclk: clk-spicfg { clock-frequency = <75000000>; }; - sysclk: clk-sys { + sysclk: spiclcd: spicon: i2cclcd: i2caud: clock-sys { compatible = "fixed-factor-clock"; clocks = <&oscclk0>; #clock-cells = <0>; @@ -102,38 +102,6 @@ audsclk: clk-auds { clock-mult = <1>; }; - spiclcd: clk-cpiclcd { - compatible = "fixed-factor-clock"; - clocks = <&oscclk0>; - #clock-cells = <0>; - clock-div = <2>; - clock-mult = <1>; - }; - - spicon: clk-spicon { - compatible = "fixed-factor-clock"; - clocks = <&oscclk0>; - #clock-cells = <0>; - clock-div = <2>; - clock-mult = <1>; - }; - - i2cclcd: clk-i2cclcd { - compatible = "fixed-factor-clock"; - clocks = <&oscclk0>; - #clock-cells = <0>; - clock-div = <2>; - clock-mult = <1>; - }; - - i2caud: clk-i2caud { - compatible = "fixed-factor-clock"; - clocks = <&oscclk0>; - #clock-cells = <0>; - clock-div = <2>; - clock-mult = <1>; - }; - soc { compatible = "simple-bus"; ranges; -- 2.43.0