Commit b222de02 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Alexandre Belloni

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: default avatarUwe Kleine-König <uwe@kleine-koenig.org>
Link: https://lore.kernel.org/r/20190812212757.23432-7-uwe@kleine-koenig.orgSigned-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent c1ad3ffb
...@@ -14,14 +14,6 @@ / { ...@@ -14,14 +14,6 @@ / {
model = "Atmel AT91SAM9G15-EK"; model = "Atmel AT91SAM9G15-EK";
compatible = "atmel,at91sam9g15ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; compatible = "atmel,at91sam9g15ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9";
ahb {
apb {
hlcdc: hlcdc@f8038000 {
status = "okay";
};
};
};
backlight: backlight { backlight: backlight {
status = "okay"; status = "okay";
}; };
...@@ -38,3 +30,7 @@ panel_reg: panel_regulator { ...@@ -38,3 +30,7 @@ panel_reg: panel_regulator {
status = "okay"; status = "okay";
}; };
}; };
&hlcdc {
status = "okay";
};
...@@ -12,19 +12,10 @@ ...@@ -12,19 +12,10 @@
/ { / {
model = "Atmel AT91SAM9G25-EK"; model = "Atmel AT91SAM9G25-EK";
compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9";
};
ahb { &i2c0 {
apb { camera@30 {
spi0: spi@f0000000 {
status = "disabled";
};
mmc1: mmc@f000c000 {
status = "disabled";
};
i2c0: i2c@f8010000 {
ov2640: camera@30 {
compatible = "ovti,ov2640"; compatible = "ovti,ov2640";
reg = <0x30>; reg = <0x30>;
pinctrl-names = "default"; pinctrl-names = "default";
...@@ -44,15 +35,11 @@ ov2640_0: endpoint { ...@@ -44,15 +35,11 @@ ov2640_0: endpoint {
}; };
}; };
}; };
}; };
macb0: ethernet@f802c000 { &isi {
phy-mode = "rmii";
status = "okay"; status = "okay";
};
isi: isi@f8048000 {
status = "okay";
port { port {
isi_0: endpoint@0 { isi_0: endpoint@0 {
reg = <0>; reg = <0>;
...@@ -62,7 +49,17 @@ isi_0: endpoint@0 { ...@@ -62,7 +49,17 @@ isi_0: endpoint@0 {
hsync-active = <1>; hsync-active = <1>;
}; };
}; };
}; };
};
}; &macb0 {
phy-mode = "rmii";
status = "okay";
};
&mmc1 {
status = "disabled";
};
&spi0 {
status = "disabled";
}; };
...@@ -14,19 +14,6 @@ / { ...@@ -14,19 +14,6 @@ / {
model = "Atmel AT91SAM9G35-EK"; model = "Atmel AT91SAM9G35-EK";
compatible = "atmel,at91sam9g35ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; compatible = "atmel,at91sam9g35ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9";
ahb {
apb {
macb0: ethernet@f802c000 {
phy-mode = "rmii";
status = "okay";
};
hlcdc: hlcdc@f8038000 {
status = "okay";
};
};
};
backlight: backlight { backlight: backlight {
status = "okay"; status = "okay";
}; };
...@@ -43,3 +30,12 @@ panel_reg: panel_regulator { ...@@ -43,3 +30,12 @@ panel_reg: panel_regulator {
status = "okay"; status = "okay";
}; };
}; };
&hlcdc {
status = "okay";
};
&macb0 {
phy-mode = "rmii";
status = "okay";
};
...@@ -12,28 +12,24 @@ ...@@ -12,28 +12,24 @@
/ { / {
model = "Atmel AT91SAM9X25-EK"; model = "Atmel AT91SAM9X25-EK";
compatible = "atmel,at91sam9x25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; compatible = "atmel,at91sam9x25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9";
};
ahb { &can1 {
apb {
can1: can@f8004000 {
status = "okay"; status = "okay";
}; };
macb0: ethernet@f802c000 { &macb0 {
phy-mode = "rmii"; phy-mode = "rmii";
status = "okay"; status = "okay";
}; };
macb1: ethernet@f8030000 { &macb1 {
phy-mode = "rmii"; phy-mode = "rmii";
status = "okay"; status = "okay";
}; };
pwm0: pwm@f8034000 { &pwm0 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_pwm0_pwm0_1>; pinctrl-0 = <&pinctrl_pwm0_pwm0_1>;
status = "okay"; status = "okay";
};
};
};
}; };
...@@ -13,32 +13,29 @@ ...@@ -13,32 +13,29 @@
/ { / {
model = "Atmel AT91SAM9X35-EK"; model = "Atmel AT91SAM9X35-EK";
compatible = "atmel,at91sam9x35ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; compatible = "atmel,at91sam9x35ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9";
};
ahb { &backlight {
apb {
macb0: ethernet@f802c000 {
phy-mode = "rmii";
status = "okay"; status = "okay";
}; };
hlcdc: hlcdc@f8038000 {
&bl_reg {
status = "okay"; status = "okay";
}; };
};
};
backlight: backlight { &hlcdc {
status = "okay"; status = "okay";
}; };
bl_reg: backlight_regulator { &macb0 {
phy-mode = "rmii";
status = "okay"; status = "okay";
}; };
panel: panel { &panel {
status = "okay"; status = "okay";
}; };
panel_reg: panel_regulator { &panel_reg {
status = "okay"; status = "okay";
};
}; };
...@@ -16,67 +16,70 @@ chosen { ...@@ -16,67 +16,70 @@ chosen {
stdout-path = "serial0:115200n8"; stdout-path = "serial0:115200n8";
}; };
ahb { sound {
apb { compatible = "atmel,sam9x5-wm8731-audio";
mmc0: mmc@f0008000 {
atmel,model = "wm8731 @ AT91SAM9X5EK";
atmel,audio-routing =
"Headphone Jack", "RHPOUT",
"Headphone Jack", "LHPOUT",
"LLINEIN", "Line In Jack",
"RLINEIN", "Line In Jack";
atmel,ssc-controller = <&ssc0>;
atmel,audio-codec = <&wm8731>;
};
};
&adc0 {
atmel,adc-ts-wires = <4>;
atmel,adc-ts-pressure-threshold = <10000>;
status = "okay";
};
&dbgu {
status = "okay";
};
&i2c0 {
status = "okay";
wm8731: wm8731@1a {
compatible = "wm8731";
reg = <0x1a>;
};
};
&mmc0 {
pinctrl-0 = < pinctrl-0 = <
&pinctrl_board_mmc0 &pinctrl_board_mmc0
&pinctrl_mmc0_slot0_clk_cmd_dat0 &pinctrl_mmc0_slot0_clk_cmd_dat0
&pinctrl_mmc0_slot0_dat1_3>; &pinctrl_mmc0_slot0_dat1_3>;
status = "okay"; status = "okay";
slot@0 { slot@0 {
reg = <0>; reg = <0>;
bus-width = <4>; bus-width = <4>;
cd-gpios = <&pioD 15 GPIO_ACTIVE_HIGH>; cd-gpios = <&pioD 15 GPIO_ACTIVE_HIGH>;
}; };
}; };
mmc1: mmc@f000c000 { &mmc1 {
pinctrl-0 = < pinctrl-0 = <
&pinctrl_board_mmc1 &pinctrl_board_mmc1
&pinctrl_mmc1_slot0_clk_cmd_dat0 &pinctrl_mmc1_slot0_clk_cmd_dat0
&pinctrl_mmc1_slot0_dat1_3>; &pinctrl_mmc1_slot0_dat1_3>;
status = "okay"; status = "okay";
slot@0 { slot@0 {
reg = <0>; reg = <0>;
bus-width = <4>; bus-width = <4>;
cd-gpios = <&pioD 14 GPIO_ACTIVE_HIGH>; cd-gpios = <&pioD 14 GPIO_ACTIVE_HIGH>;
}; };
}; };
dbgu: serial@fffff200 {
status = "okay";
};
usart0: serial@f801c000 {
atmel,use-dma-rx;
atmel,use-dma-tx;
status = "okay";
};
usb2: gadget@f803c000 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_board_usb2>;
atmel,vbus-gpio = <&pioB 16 GPIO_ACTIVE_HIGH>;
status = "okay";
};
i2c0: i2c@f8010000 {
status = "okay";
wm8731: wm8731@1a {
compatible = "wm8731";
reg = <0x1a>;
};
};
adc0: adc@f804c000 {
atmel,adc-ts-wires = <4>;
atmel,adc-ts-pressure-threshold = <10000>;
status = "okay";
};
pinctrl@fffff400 { &pinctrl {
camera_sensor { camera_sensor {
pinctrl_pck0_as_isi_mck: pck0_as_isi_mck-0 { pinctrl_pck0_as_isi_mck: pck0_as_isi_mck-0 {
atmel,pins = atmel,pins =
...@@ -114,53 +117,49 @@ pinctrl_board_usb2: usb2-board { ...@@ -114,53 +117,49 @@ pinctrl_board_usb2: usb2-board {
<AT91_PIOB 16 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>; /* PB16 gpio vbus sense, deglitch */ <AT91_PIOB 16 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>; /* PB16 gpio vbus sense, deglitch */
}; };
}; };
}; };
spi0: spi@f0000000 { &spi0 {
status = "disabled"; /* conflicts with mmc1 */
cs-gpios = <&pioA 14 0>, <0>, <0>, <0>; cs-gpios = <&pioA 14 0>, <0>, <0>, <0>;
status = "disabled"; /* conflicts with mmc1 */
m25p80@0 { m25p80@0 {
compatible = "atmel,at25df321a"; compatible = "atmel,at25df321a";
spi-max-frequency = <50000000>; spi-max-frequency = <50000000>;
reg = <0>; reg = <0>;
}; };
}; };
watchdog@fffffe40 { &ssc0 {
status = "okay"; status = "okay";
}; };
ssc0: ssc@f0010000 { &usart0 {
atmel,use-dma-rx;
atmel,use-dma-tx;
status = "okay"; status = "okay";
}; };
};
usb0: ohci@600000 { &usb0 {
status = "okay";
num-ports = <3>; num-ports = <3>;
atmel,vbus-gpio = <0 /* &pioD 18 GPIO_ACTIVE_LOW *//* Activate to have access to port A */ atmel,vbus-gpio = <0 /* &pioD 18 GPIO_ACTIVE_LOW *//* Activate to have access to port A */
&pioD 19 GPIO_ACTIVE_LOW &pioD 19 GPIO_ACTIVE_LOW
&pioD 20 GPIO_ACTIVE_LOW &pioD 20 GPIO_ACTIVE_LOW
>; >;
};
usb1: ehci@700000 {
status = "okay"; status = "okay";
}; };
};
sound {
compatible = "atmel,sam9x5-wm8731-audio";
atmel,model = "wm8731 @ AT91SAM9X5EK"; &usb1 {
status = "okay";
};
atmel,audio-routing = &usb2 {
"Headphone Jack", "RHPOUT", pinctrl-names = "default";
"Headphone Jack", "LHPOUT", pinctrl-0 = <&pinctrl_board_usb2>;
"LLINEIN", "Line In Jack", atmel,vbus-gpio = <&pioB 16 GPIO_ACTIVE_HIGH>;
"RLINEIN", "Line In Jack"; status = "okay";
};
atmel,ssc-controller = <&ssc0>; &watchdog {
atmel,audio-codec = <&wm8731>; status = "okay";
};
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment