|
| 1 | +From 7ada4b7e39819f2cc765b27f3fc1ad38ece3278f Mon Sep 17 00:00:00 2001 |
| 2 | +From: Tomer Maimon < [email protected]> |
| 3 | +Date: Mon, 1 Jul 2024 10:10:46 +0300 |
| 4 | +Subject: [PATCH] arm64: dts: modify clock property in modules node |
| 5 | + |
| 6 | +Modify clock property handler in UART, CPU, PECI modules to reset |
| 7 | +controller. |
| 8 | + |
| 9 | +This change was pushed upstream and under reviewing: |
| 10 | +https://lore.kernel.org/all/ [email protected]/ |
| 11 | + |
| 12 | +Signed-off-by: Tomer Maimon < [email protected]> |
| 13 | +--- |
| 14 | + .../boot/dts/nuvoton/nuvoton-common-npcm8xx.dtsi | 16 ++++++++-------- |
| 15 | + arch/arm64/boot/dts/nuvoton/nuvoton-npcm845.dtsi | 8 ++++---- |
| 16 | + 2 files changed, 12 insertions(+), 12 deletions(-) |
| 17 | + |
| 18 | +diff --git a/arch/arm64/boot/dts/nuvoton/nuvoton-common-npcm8xx.dtsi b/arch/arm64/boot/dts/nuvoton/nuvoton-common-npcm8xx.dtsi |
| 19 | +index 41d345448430..92e3b0fe746f 100644 |
| 20 | +--- a/arch/arm64/boot/dts/nuvoton/nuvoton-common-npcm8xx.dtsi |
| 21 | ++++ b/arch/arm64/boot/dts/nuvoton/nuvoton-common-npcm8xx.dtsi |
| 22 | +@@ -73,7 +73,7 @@ peci: peci-controller@100000 { |
| 23 | + compatible = "nuvoton,npcm845-peci"; |
| 24 | + reg = <0x100000 0x1000>; |
| 25 | + interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>; |
| 26 | +- clocks = <&clk NPCM8XX_CLK_APB3>; |
| 27 | ++ clocks = <&rstc NPCM8XX_CLK_APB3>; |
| 28 | + cmd-timeout-ms = <1000>; |
| 29 | + status = "disabled"; |
| 30 | + }; |
| 31 | +@@ -89,7 +89,7 @@ timer0: timer@8000 { |
| 32 | + serial0: serial@0 { |
| 33 | + compatible = "nuvoton,npcm845-uart", "nuvoton,npcm750-uart"; |
| 34 | + reg = <0x0 0x1000>; |
| 35 | +- clocks = <&clk NPCM8XX_CLK_UART>; |
| 36 | ++ clocks = <&rstc NPCM8XX_CLK_UART>; |
| 37 | + interrupts = <GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>; |
| 38 | + reg-shift = <2>; |
| 39 | + status = "disabled"; |
| 40 | +@@ -98,7 +98,7 @@ serial0: serial@0 { |
| 41 | + serial1: serial@1000 { |
| 42 | + compatible = "nuvoton,npcm845-uart", "nuvoton,npcm750-uart"; |
| 43 | + reg = <0x1000 0x1000>; |
| 44 | +- clocks = <&clk NPCM8XX_CLK_UART>; |
| 45 | ++ clocks = <&rstc NPCM8XX_CLK_UART>; |
| 46 | + interrupts = <GIC_SPI 193 IRQ_TYPE_LEVEL_HIGH>; |
| 47 | + reg-shift = <2>; |
| 48 | + status = "disabled"; |
| 49 | +@@ -107,7 +107,7 @@ serial1: serial@1000 { |
| 50 | + serial2: serial@2000 { |
| 51 | + compatible = "nuvoton,npcm845-uart", "nuvoton,npcm750-uart"; |
| 52 | + reg = <0x2000 0x1000>; |
| 53 | +- clocks = <&clk NPCM8XX_CLK_UART>; |
| 54 | ++ clocks = <&rstc NPCM8XX_CLK_UART>; |
| 55 | + interrupts = <GIC_SPI 194 IRQ_TYPE_LEVEL_HIGH>; |
| 56 | + reg-shift = <2>; |
| 57 | + status = "disabled"; |
| 58 | +@@ -116,7 +116,7 @@ serial2: serial@2000 { |
| 59 | + serial3: serial@3000 { |
| 60 | + compatible = "nuvoton,npcm845-uart", "nuvoton,npcm750-uart"; |
| 61 | + reg = <0x3000 0x1000>; |
| 62 | +- clocks = <&clk NPCM8XX_CLK_UART>; |
| 63 | ++ clocks = <&rstc NPCM8XX_CLK_UART>; |
| 64 | + interrupts = <GIC_SPI 195 IRQ_TYPE_LEVEL_HIGH>; |
| 65 | + reg-shift = <2>; |
| 66 | + status = "disabled"; |
| 67 | +@@ -125,7 +125,7 @@ serial3: serial@3000 { |
| 68 | + serial4: serial@4000 { |
| 69 | + compatible = "nuvoton,npcm845-uart", "nuvoton,npcm750-uart"; |
| 70 | + reg = <0x4000 0x1000>; |
| 71 | +- clocks = <&clk NPCM8XX_CLK_UART>; |
| 72 | ++ clocks = <&rstc NPCM8XX_CLK_UART>; |
| 73 | + interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>; |
| 74 | + reg-shift = <2>; |
| 75 | + status = "disabled"; |
| 76 | +@@ -134,7 +134,7 @@ serial4: serial@4000 { |
| 77 | + serial5: serial@5000 { |
| 78 | + compatible = "nuvoton,npcm845-uart", "nuvoton,npcm750-uart"; |
| 79 | + reg = <0x5000 0x1000>; |
| 80 | +- clocks = <&clk NPCM8XX_CLK_UART>; |
| 81 | ++ clocks = <&rstc NPCM8XX_CLK_UART>; |
| 82 | + interrupts = <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>; |
| 83 | + reg-shift = <2>; |
| 84 | + status = "disabled"; |
| 85 | +@@ -143,7 +143,7 @@ serial5: serial@5000 { |
| 86 | + serial6: serial@6000 { |
| 87 | + compatible = "nuvoton,npcm845-uart", "nuvoton,npcm750-uart"; |
| 88 | + reg = <0x6000 0x1000>; |
| 89 | +- clocks = <&clk NPCM8XX_CLK_UART>; |
| 90 | ++ clocks = <&rstc NPCM8XX_CLK_UART2>; |
| 91 | + interrupts = <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>; |
| 92 | + reg-shift = <2>; |
| 93 | + status = "disabled"; |
| 94 | +diff --git a/arch/arm64/boot/dts/nuvoton/nuvoton-npcm845.dtsi b/arch/arm64/boot/dts/nuvoton/nuvoton-npcm845.dtsi |
| 95 | +index 383938dcd3ce..3cbcea65eba2 100644 |
| 96 | +--- a/arch/arm64/boot/dts/nuvoton/nuvoton-npcm845.dtsi |
| 97 | ++++ b/arch/arm64/boot/dts/nuvoton/nuvoton-npcm845.dtsi |
| 98 | +@@ -14,7 +14,7 @@ cpus { |
| 99 | + cpu0: cpu@0 { |
| 100 | + device_type = "cpu"; |
| 101 | + compatible = "arm,cortex-a35"; |
| 102 | +- clocks = <&clk NPCM8XX_CLK_CPU>; |
| 103 | ++ clocks = <&rstc NPCM8XX_CLK_CPU>; |
| 104 | + reg = <0x0 0x0>; |
| 105 | + next-level-cache = <&l2>; |
| 106 | + enable-method = "psci"; |
| 107 | +@@ -23,7 +23,7 @@ cpu0: cpu@0 { |
| 108 | + cpu1: cpu@1 { |
| 109 | + device_type = "cpu"; |
| 110 | + compatible = "arm,cortex-a35"; |
| 111 | +- clocks = <&clk NPCM8XX_CLK_CPU>; |
| 112 | ++ clocks = <&rstc NPCM8XX_CLK_CPU>; |
| 113 | + reg = <0x0 0x1>; |
| 114 | + next-level-cache = <&l2>; |
| 115 | + enable-method = "psci"; |
| 116 | +@@ -32,7 +32,7 @@ cpu1: cpu@1 { |
| 117 | + cpu2: cpu@2 { |
| 118 | + device_type = "cpu"; |
| 119 | + compatible = "arm,cortex-a35"; |
| 120 | +- clocks = <&clk NPCM8XX_CLK_CPU>; |
| 121 | ++ clocks = <&rstc NPCM8XX_CLK_CPU>; |
| 122 | + reg = <0x0 0x2>; |
| 123 | + next-level-cache = <&l2>; |
| 124 | + enable-method = "psci"; |
| 125 | +@@ -41,7 +41,7 @@ cpu2: cpu@2 { |
| 126 | + cpu3: cpu@3 { |
| 127 | + device_type = "cpu"; |
| 128 | + compatible = "arm,cortex-a35"; |
| 129 | +- clocks = <&clk NPCM8XX_CLK_CPU>; |
| 130 | ++ clocks = <&rstc NPCM8XX_CLK_CPU>; |
| 131 | + reg = <0x0 0x3>; |
| 132 | + next-level-cache = <&l2>; |
| 133 | + enable-method = "psci"; |
| 134 | +-- |
| 135 | +2.34.1 |
| 136 | + |
0 commit comments