Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

riscv: dts: Re-organize the DT nodes

As per the convention for any SOC device with external connection,
define only device DT node in SOC DTSi file with status = "disabled"
and enable device in Board DTS file with status = "okay"

Reported-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Yash Shah <yash.shah@sifive.com>
Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>

authored by

Yash Shah and committed by
Paul Walmsley
45b03df2 ff8391e1

+19
+6
arch/riscv/boot/dts/sifive/fu540-c000.dtsi
··· 163 163 interrupt-parent = <&plic0>; 164 164 interrupts = <4>; 165 165 clocks = <&prci PRCI_CLK_TLCLK>; 166 + status = "disabled"; 166 167 }; 167 168 uart1: serial@10011000 { 168 169 compatible = "sifive,fu540-c000-uart", "sifive,uart0"; ··· 171 170 interrupt-parent = <&plic0>; 172 171 interrupts = <5>; 173 172 clocks = <&prci PRCI_CLK_TLCLK>; 173 + status = "disabled"; 174 174 }; 175 175 i2c0: i2c@10030000 { 176 176 compatible = "sifive,fu540-c000-i2c", "sifive,i2c0"; ··· 183 181 reg-io-width = <1>; 184 182 #address-cells = <1>; 185 183 #size-cells = <0>; 184 + status = "disabled"; 186 185 }; 187 186 qspi0: spi@10040000 { 188 187 compatible = "sifive,fu540-c000-spi", "sifive,spi0"; ··· 194 191 clocks = <&prci PRCI_CLK_TLCLK>; 195 192 #address-cells = <1>; 196 193 #size-cells = <0>; 194 + status = "disabled"; 197 195 }; 198 196 qspi1: spi@10041000 { 199 197 compatible = "sifive,fu540-c000-spi", "sifive,spi0"; ··· 205 201 clocks = <&prci PRCI_CLK_TLCLK>; 206 202 #address-cells = <1>; 207 203 #size-cells = <0>; 204 + status = "disabled"; 208 205 }; 209 206 qspi2: spi@10050000 { 210 207 compatible = "sifive,fu540-c000-spi", "sifive,spi0"; ··· 215 210 clocks = <&prci PRCI_CLK_TLCLK>; 216 211 #address-cells = <1>; 217 212 #size-cells = <0>; 213 + status = "disabled"; 218 214 }; 219 215 }; 220 216 };
+13
arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts
··· 42 42 }; 43 43 }; 44 44 45 + &uart0 { 46 + status = "okay"; 47 + }; 48 + 49 + &uart1 { 50 + status = "okay"; 51 + }; 52 + 53 + &i2c0 { 54 + status = "okay"; 55 + }; 56 + 45 57 &qspi0 { 58 + status = "okay"; 46 59 flash@0 { 47 60 compatible = "issi,is25wp256", "jedec,spi-nor"; 48 61 reg = <0>;