On Thu, Jan 18, 2018 at 6:07 PM, Maxime RipardI'm not sure this will be good ideal. We will have one EVB with all
<maxime.ripard@xxxxxxxxxxxxxxxxxx> wrote:
Hi!Follow the bindings, I guess? I don't think we (sunxi) have dealt
On Mon, Jan 15, 2018 at 12:07:34PM +0200, Stefan Mavrodiev wrote:
We have that? That's bad, but you're right :)I think this will conflict the gmac alias defined in sun7i-a20.dtsi:+/dts-v1/;ethernet1? if there's a single network interface, it should be
+#include "sun7i-a20.dtsi"
+#include "sunxi-common-regulators.dtsi"
+
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/pwm/pwm.h>
+
+/ {
+ model = "Olimex A20-SOM204-EVB";
+ compatible = "olimex,a20-olimex-som204-evb", "allwinner,sun7i-a20";
+
+ aliases {
+ serial0 = &uart0;
+ serial1 = &uart4;
+ serial2 = &uart7;
+ spi0 = &spi1;
+ spi1 = &spi2;
+ ethernet1 = &rtl8723bs;
ethernet0.
aliases {
ethernet0 = &gmac;
};
Still, the user and the system will see it as a single board, and theSTAT led is on the SOM204 module, while led1/2 on the EVB. Thats why+ stat {You don't have the same prefix between stat and led1/led2. I'm fine
+ label = "a20-som204:green:stat";
+ gpios = <&pio 8 0 GPIO_ACTIVE_HIGH>;
+ default-state = "on";
+ };
+
+ led1 {
+ label = "a20-som204-evb:green:led1";
+ gpios = <&pio 8 10 GPIO_ACTIVE_HIGH>;
+ default-state = "on";
+ };
+
+ led2 {
+ label = "a20-som204-evb:yellow:led2";
+ gpios = <&pio 8 11 GPIO_ACTIVE_HIGH>;
+ default-state = "on";
+ };
with both, but you should be consistent :)
they have different prefix.
documentation states that it should be the board name. I'm not quite
sure what a good rule would be here. Have you looked at how other
boards dealt with it? Chen-Yu, any opinion on this?
with modules that have LEDs or anything that needs to be named after
the board.
On a related topic, I don't know if you (Stefan / Olimex) want to split
this into a .dtsi file for the SoM, and a .dts file for the EVB. It might
help your customers?
I've tried it previously, and it helps in some waysRegards,
when you're matching the files to the schematics. But it is confusing
when you want the big picture. On the other hand, this is not going to
help with supporting different modules on the same baseboard, as the
routing, peripherals and labels likely won't match up. Just my two cents.
ChenYu