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

ARM: dts: at91: at91sam9xx5ek: Style cleanup

- newline between properties and sub-nodes
- use tags from included dtsi instead of duplicating the hierarchy

There are no differences in the generated .dtbs

Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
Link: https://lore.kernel.org/r/20190812212757.23432-7-uwe@kleine-koenig.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

authored by

Uwe Kleine-König and committed by
Alexandre Belloni
b222de02 c1ad3ffb

+226 -245
+4 -8
arch/arm/boot/dts/at91sam9g15ek.dts
··· 14 14 model = "Atmel AT91SAM9G15-EK"; 15 15 compatible = "atmel,at91sam9g15ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; 16 16 17 - ahb { 18 - apb { 19 - hlcdc: hlcdc@f8038000 { 20 - status = "okay"; 21 - }; 22 - }; 23 - }; 24 - 25 17 backlight: backlight { 26 18 status = "okay"; 27 19 }; ··· 29 37 panel_reg: panel_regulator { 30 38 status = "okay"; 31 39 }; 40 + }; 41 + 42 + &hlcdc { 43 + status = "okay"; 32 44 };
+45 -48
arch/arm/boot/dts/at91sam9g25ek.dts
··· 12 12 / { 13 13 model = "Atmel AT91SAM9G25-EK"; 14 14 compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; 15 + }; 15 16 16 - ahb { 17 - apb { 18 - spi0: spi@f0000000 { 19 - status = "disabled"; 20 - }; 17 + &i2c0 { 18 + camera@30 { 19 + compatible = "ovti,ov2640"; 20 + reg = <0x30>; 21 + pinctrl-names = "default"; 22 + pinctrl-0 = <&pinctrl_pck0_as_isi_mck &pinctrl_sensor_power &pinctrl_sensor_reset>; 23 + resetb-gpios = <&pioA 7 GPIO_ACTIVE_LOW>; 24 + pwdn-gpios = <&pioA 13 GPIO_ACTIVE_HIGH>; 25 + clocks = <&pmc PMC_TYPE_SYSTEM 8>; 26 + clock-names = "xvclk"; 27 + assigned-clocks = <&pmc PMC_TYPE_SYSTEM 8>; 28 + assigned-clock-rates = <25000000>; 29 + status = "okay"; 21 30 22 - mmc1: mmc@f000c000 { 23 - status = "disabled"; 24 - }; 25 - 26 - i2c0: i2c@f8010000 { 27 - ov2640: camera@30 { 28 - compatible = "ovti,ov2640"; 29 - reg = <0x30>; 30 - pinctrl-names = "default"; 31 - pinctrl-0 = <&pinctrl_pck0_as_isi_mck &pinctrl_sensor_power &pinctrl_sensor_reset>; 32 - resetb-gpios = <&pioA 7 GPIO_ACTIVE_LOW>; 33 - pwdn-gpios = <&pioA 13 GPIO_ACTIVE_HIGH>; 34 - clocks = <&pmc PMC_TYPE_SYSTEM 8>; 35 - clock-names = "xvclk"; 36 - assigned-clocks = <&pmc PMC_TYPE_SYSTEM 8>; 37 - assigned-clock-rates = <25000000>; 38 - status = "okay"; 39 - 40 - port { 41 - ov2640_0: endpoint { 42 - remote-endpoint = <&isi_0>; 43 - bus-width = <8>; 44 - }; 45 - }; 46 - }; 47 - }; 48 - 49 - macb0: ethernet@f802c000 { 50 - phy-mode = "rmii"; 51 - status = "okay"; 52 - }; 53 - 54 - isi: isi@f8048000 { 55 - status = "okay"; 56 - port { 57 - isi_0: endpoint@0 { 58 - reg = <0>; 59 - remote-endpoint = <&ov2640_0>; 60 - bus-width = <8>; 61 - vsync-active = <1>; 62 - hsync-active = <1>; 63 - }; 64 - }; 31 + port { 32 + ov2640_0: endpoint { 33 + remote-endpoint = <&isi_0>; 34 + bus-width = <8>; 65 35 }; 66 36 }; 67 37 }; 38 + }; 39 + 40 + &isi { 41 + status = "okay"; 42 + 43 + port { 44 + isi_0: endpoint@0 { 45 + reg = <0>; 46 + remote-endpoint = <&ov2640_0>; 47 + bus-width = <8>; 48 + vsync-active = <1>; 49 + hsync-active = <1>; 50 + }; 51 + }; 52 + }; 53 + 54 + &macb0 { 55 + phy-mode = "rmii"; 56 + status = "okay"; 57 + }; 58 + 59 + &mmc1 { 60 + status = "disabled"; 61 + }; 62 + 63 + &spi0 { 64 + status = "disabled"; 68 65 };
+9 -13
arch/arm/boot/dts/at91sam9g35ek.dts
··· 14 14 model = "Atmel AT91SAM9G35-EK"; 15 15 compatible = "atmel,at91sam9g35ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; 16 16 17 - ahb { 18 - apb { 19 - macb0: ethernet@f802c000 { 20 - phy-mode = "rmii"; 21 - status = "okay"; 22 - }; 23 - 24 - hlcdc: hlcdc@f8038000 { 25 - status = "okay"; 26 - }; 27 - }; 28 - }; 29 - 30 17 backlight: backlight { 31 18 status = "okay"; 32 19 }; ··· 29 42 panel_reg: panel_regulator { 30 43 status = "okay"; 31 44 }; 45 + }; 46 + 47 + &hlcdc { 48 + status = "okay"; 49 + }; 50 + 51 + &macb0 { 52 + phy-mode = "rmii"; 53 + status = "okay"; 32 54 };
+16 -20
arch/arm/boot/dts/at91sam9x25ek.dts
··· 12 12 / { 13 13 model = "Atmel AT91SAM9X25-EK"; 14 14 compatible = "atmel,at91sam9x25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; 15 + }; 15 16 16 - ahb { 17 - apb { 18 - can1: can@f8004000 { 19 - status = "okay"; 20 - }; 17 + &can1 { 18 + status = "okay"; 19 + }; 21 20 22 - macb0: ethernet@f802c000 { 23 - phy-mode = "rmii"; 24 - status = "okay"; 25 - }; 21 + &macb0 { 22 + phy-mode = "rmii"; 23 + status = "okay"; 24 + }; 26 25 27 - macb1: ethernet@f8030000 { 28 - phy-mode = "rmii"; 29 - status = "okay"; 30 - }; 26 + &macb1 { 27 + phy-mode = "rmii"; 28 + status = "okay"; 29 + }; 31 30 32 - pwm0: pwm@f8034000 { 33 - pinctrl-names = "default"; 34 - pinctrl-0 = <&pinctrl_pwm0_pwm0_1>; 35 - status = "okay"; 36 - }; 37 - }; 38 - }; 31 + &pwm0 { 32 + pinctrl-names = "default"; 33 + pinctrl-0 = <&pinctrl_pwm0_pwm0_1>; 34 + status = "okay"; 39 35 };
+20 -23
arch/arm/boot/dts/at91sam9x35ek.dts
··· 13 13 / { 14 14 model = "Atmel AT91SAM9X35-EK"; 15 15 compatible = "atmel,at91sam9x35ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; 16 + }; 16 17 17 - ahb { 18 - apb { 19 - macb0: ethernet@f802c000 { 20 - phy-mode = "rmii"; 21 - status = "okay"; 22 - }; 23 - hlcdc: hlcdc@f8038000 { 24 - status = "okay"; 25 - }; 26 - }; 27 - }; 18 + &backlight { 19 + status = "okay"; 20 + }; 28 21 29 - backlight: backlight { 30 - status = "okay"; 31 - }; 22 + &bl_reg { 23 + status = "okay"; 24 + }; 32 25 33 - bl_reg: backlight_regulator { 34 - status = "okay"; 35 - }; 26 + &hlcdc { 27 + status = "okay"; 28 + }; 36 29 37 - panel: panel { 38 - status = "okay"; 39 - }; 30 + &macb0 { 31 + phy-mode = "rmii"; 32 + status = "okay"; 33 + }; 40 34 41 - panel_reg: panel_regulator { 42 - status = "okay"; 43 - }; 35 + &panel { 36 + status = "okay"; 37 + }; 38 + 39 + &panel_reg { 40 + status = "okay"; 44 41 };
+132 -133
arch/arm/boot/dts/at91sam9x5ek.dtsi
··· 16 16 stdout-path = "serial0:115200n8"; 17 17 }; 18 18 19 - ahb { 20 - apb { 21 - mmc0: mmc@f0008000 { 22 - pinctrl-0 = < 23 - &pinctrl_board_mmc0 24 - &pinctrl_mmc0_slot0_clk_cmd_dat0 25 - &pinctrl_mmc0_slot0_dat1_3>; 26 - status = "okay"; 27 - slot@0 { 28 - reg = <0>; 29 - bus-width = <4>; 30 - cd-gpios = <&pioD 15 GPIO_ACTIVE_HIGH>; 31 - }; 32 - }; 33 - 34 - mmc1: mmc@f000c000 { 35 - pinctrl-0 = < 36 - &pinctrl_board_mmc1 37 - &pinctrl_mmc1_slot0_clk_cmd_dat0 38 - &pinctrl_mmc1_slot0_dat1_3>; 39 - status = "okay"; 40 - slot@0 { 41 - reg = <0>; 42 - bus-width = <4>; 43 - cd-gpios = <&pioD 14 GPIO_ACTIVE_HIGH>; 44 - }; 45 - }; 46 - 47 - dbgu: serial@fffff200 { 48 - status = "okay"; 49 - }; 50 - 51 - usart0: serial@f801c000 { 52 - atmel,use-dma-rx; 53 - atmel,use-dma-tx; 54 - status = "okay"; 55 - }; 56 - 57 - usb2: gadget@f803c000 { 58 - pinctrl-names = "default"; 59 - pinctrl-0 = <&pinctrl_board_usb2>; 60 - atmel,vbus-gpio = <&pioB 16 GPIO_ACTIVE_HIGH>; 61 - status = "okay"; 62 - }; 63 - 64 - i2c0: i2c@f8010000 { 65 - status = "okay"; 66 - 67 - wm8731: wm8731@1a { 68 - compatible = "wm8731"; 69 - reg = <0x1a>; 70 - }; 71 - }; 72 - 73 - adc0: adc@f804c000 { 74 - atmel,adc-ts-wires = <4>; 75 - atmel,adc-ts-pressure-threshold = <10000>; 76 - status = "okay"; 77 - }; 78 - 79 - pinctrl@fffff400 { 80 - camera_sensor { 81 - pinctrl_pck0_as_isi_mck: pck0_as_isi_mck-0 { 82 - atmel,pins = 83 - <AT91_PIOC 15 AT91_PERIPH_C AT91_PINCTRL_NONE>; /* ISI_MCK */ 84 - }; 85 - 86 - pinctrl_sensor_power: sensor_power-0 { 87 - atmel,pins = 88 - <AT91_PIOA 13 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; 89 - }; 90 - 91 - pinctrl_sensor_reset: sensor_reset-0 { 92 - atmel,pins = 93 - <AT91_PIOA 7 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; 94 - }; 95 - }; 96 - 97 - mmc0 { 98 - pinctrl_board_mmc0: mmc0-board { 99 - atmel,pins = 100 - <AT91_PIOD 15 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD15 gpio CD pin pull up and deglitch */ 101 - }; 102 - }; 103 - 104 - mmc1 { 105 - pinctrl_board_mmc1: mmc1-board { 106 - atmel,pins = 107 - <AT91_PIOD 14 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD14 gpio CD pin pull up and deglitch */ 108 - }; 109 - }; 110 - 111 - usb2 { 112 - pinctrl_board_usb2: usb2-board { 113 - atmel,pins = 114 - <AT91_PIOB 16 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>; /* PB16 gpio vbus sense, deglitch */ 115 - }; 116 - }; 117 - }; 118 - 119 - spi0: spi@f0000000 { 120 - status = "disabled"; /* conflicts with mmc1 */ 121 - cs-gpios = <&pioA 14 0>, <0>, <0>, <0>; 122 - m25p80@0 { 123 - compatible = "atmel,at25df321a"; 124 - spi-max-frequency = <50000000>; 125 - reg = <0>; 126 - }; 127 - }; 128 - 129 - watchdog@fffffe40 { 130 - status = "okay"; 131 - }; 132 - 133 - ssc0: ssc@f0010000 { 134 - status = "okay"; 135 - }; 136 - }; 137 - 138 - usb0: ohci@600000 { 139 - status = "okay"; 140 - num-ports = <3>; 141 - atmel,vbus-gpio = <0 /* &pioD 18 GPIO_ACTIVE_LOW *//* Activate to have access to port A */ 142 - &pioD 19 GPIO_ACTIVE_LOW 143 - &pioD 20 GPIO_ACTIVE_LOW 144 - >; 145 - }; 146 - 147 - usb1: ehci@700000 { 148 - status = "okay"; 149 - }; 150 - }; 151 - 152 19 sound { 153 20 compatible = "atmel,sam9x5-wm8731-audio"; 154 21 ··· 30 163 atmel,ssc-controller = <&ssc0>; 31 164 atmel,audio-codec = <&wm8731>; 32 165 }; 166 + }; 167 + 168 + &adc0 { 169 + atmel,adc-ts-wires = <4>; 170 + atmel,adc-ts-pressure-threshold = <10000>; 171 + status = "okay"; 172 + }; 173 + 174 + &dbgu { 175 + status = "okay"; 176 + }; 177 + 178 + &i2c0 { 179 + status = "okay"; 180 + 181 + wm8731: wm8731@1a { 182 + compatible = "wm8731"; 183 + reg = <0x1a>; 184 + }; 185 + }; 186 + 187 + &mmc0 { 188 + pinctrl-0 = < 189 + &pinctrl_board_mmc0 190 + &pinctrl_mmc0_slot0_clk_cmd_dat0 191 + &pinctrl_mmc0_slot0_dat1_3>; 192 + status = "okay"; 193 + 194 + slot@0 { 195 + reg = <0>; 196 + bus-width = <4>; 197 + cd-gpios = <&pioD 15 GPIO_ACTIVE_HIGH>; 198 + }; 199 + }; 200 + 201 + &mmc1 { 202 + pinctrl-0 = < 203 + &pinctrl_board_mmc1 204 + &pinctrl_mmc1_slot0_clk_cmd_dat0 205 + &pinctrl_mmc1_slot0_dat1_3>; 206 + status = "okay"; 207 + 208 + slot@0 { 209 + reg = <0>; 210 + bus-width = <4>; 211 + cd-gpios = <&pioD 14 GPIO_ACTIVE_HIGH>; 212 + }; 213 + }; 214 + 215 + &pinctrl { 216 + camera_sensor { 217 + pinctrl_pck0_as_isi_mck: pck0_as_isi_mck-0 { 218 + atmel,pins = 219 + <AT91_PIOC 15 AT91_PERIPH_C AT91_PINCTRL_NONE>; /* ISI_MCK */ 220 + }; 221 + 222 + pinctrl_sensor_power: sensor_power-0 { 223 + atmel,pins = 224 + <AT91_PIOA 13 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; 225 + }; 226 + 227 + pinctrl_sensor_reset: sensor_reset-0 { 228 + atmel,pins = 229 + <AT91_PIOA 7 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; 230 + }; 231 + }; 232 + 233 + mmc0 { 234 + pinctrl_board_mmc0: mmc0-board { 235 + atmel,pins = 236 + <AT91_PIOD 15 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD15 gpio CD pin pull up and deglitch */ 237 + }; 238 + }; 239 + 240 + mmc1 { 241 + pinctrl_board_mmc1: mmc1-board { 242 + atmel,pins = 243 + <AT91_PIOD 14 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD14 gpio CD pin pull up and deglitch */ 244 + }; 245 + }; 246 + 247 + usb2 { 248 + pinctrl_board_usb2: usb2-board { 249 + atmel,pins = 250 + <AT91_PIOB 16 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>; /* PB16 gpio vbus sense, deglitch */ 251 + }; 252 + }; 253 + }; 254 + 255 + &spi0 { 256 + cs-gpios = <&pioA 14 0>, <0>, <0>, <0>; 257 + status = "disabled"; /* conflicts with mmc1 */ 258 + 259 + m25p80@0 { 260 + compatible = "atmel,at25df321a"; 261 + spi-max-frequency = <50000000>; 262 + reg = <0>; 263 + }; 264 + }; 265 + 266 + &ssc0 { 267 + status = "okay"; 268 + }; 269 + 270 + &usart0 { 271 + atmel,use-dma-rx; 272 + atmel,use-dma-tx; 273 + status = "okay"; 274 + }; 275 + 276 + &usb0 { 277 + num-ports = <3>; 278 + atmel,vbus-gpio = <0 /* &pioD 18 GPIO_ACTIVE_LOW *//* Activate to have access to port A */ 279 + &pioD 19 GPIO_ACTIVE_LOW 280 + &pioD 20 GPIO_ACTIVE_LOW 281 + >; 282 + status = "okay"; 283 + }; 284 + 285 + &usb1 { 286 + status = "okay"; 287 + }; 288 + 289 + &usb2 { 290 + pinctrl-names = "default"; 291 + pinctrl-0 = <&pinctrl_board_usb2>; 292 + atmel,vbus-gpio = <&pioB 16 GPIO_ACTIVE_HIGH>; 293 + status = "okay"; 294 + }; 295 + 296 + &watchdog { 297 + status = "okay"; 33 298 };