The localbus childs are highly board specific and need to be part of the
board dts. Otherwise we run into duplicate unit address issues if a
board has something else (NAND) connected to the bus id.
Signed-off-by: Mathias Kresin <dev@kresin.me>
-&gpiomm {
- status = "okay";
- lantiq,shadow = <0x0>;
-};
-
&gsw {
phy-mode = "mii";
mtd-mac-address = <&boardconfig 0x16>;
&gsw {
phy-mode = "mii";
mtd-mac-address = <&boardconfig 0x16>;
+
+ gpiomm: gpiomm@1 {
+ compatible = "lantiq,gpio-mm";
+ reg = <1 0x0 0x10 >;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ #gpio-cells = <2>;
+ gpio-controller;
+ lantiq,shadow = <0x0>;
+ };
-&gpiomm {
- status = "okay";
- lantiq,shadow = <0x400>;
-};
-
&gsw {
phy-mode = "mii";
mtd-mac-address = <&boardconfig 0x16>;
&gsw {
phy-mode = "mii";
mtd-mac-address = <&boardconfig 0x16>;
+
+ gpiomm: gpiomm@1 {
+ compatible = "lantiq,gpio-mm";
+ reg = <1 0x0 0x10 >;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ #gpio-cells = <2>;
+ gpio-controller;
+ lantiq,shadow = <0x400>;
+ };
-&gpiomm {
- status = "okay";
- lantiq,shadow = <0x400>;
-};
-
&gsw {
/* gpiomm 10 - switch */
phy-mode = "rmii";
&gsw {
/* gpiomm 10 - switch */
phy-mode = "rmii";
+
+ gpiomm: gpiomm@1 {
+ compatible = "lantiq,gpio-mm";
+ reg = <1 0x0 0x10 >;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ #gpio-cells = <2>;
+ gpio-controller;
+ lantiq,shadow = <0x400>;
+ };
-&gpiomm {
- status = "okay";
- lantiq,shadow = <0x77f>;
-};
-
/*
#define ARV452CPW_SWITCH_RESET 110
*/
/*
#define ARV452CPW_SWITCH_RESET 110
*/
+
+ gpiomm: gpiomm@1 {
+ compatible = "lantiq,gpio-mm";
+ reg = <1 0x0 0x10 >;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ #gpio-cells = <2>;
+ gpio-controller;
+ lantiq,shadow = <0x77f>;
+ };
-&gpiomm {
- status = "okay";
- lantiq,shadow = <0x0>;
-};
-
/*
#define SWITCH_RESET 13
*/
/*
#define SWITCH_RESET 13
*/
+
+ gpiomm: gpiomm@1 {
+ compatible = "lantiq,gpio-mm";
+ reg = <1 0x0 0x10 >;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ #gpio-cells = <2>;
+ gpio-controller;
+ lantiq,shadow = <0x0>;
+ };
-&gpiomm {
- status = "okay";
- lantiq,shadow = <0x3>;
-};
-
&gsw {
phy-mode = "rmii";
mtd-mac-address = <&boardconfig 0x16>;
&gsw {
phy-mode = "rmii";
mtd-mac-address = <&boardconfig 0x16>;
+
+ gpiomm: gpiomm@1 {
+ compatible = "lantiq,gpio-mm";
+ reg = <1 0x0 0x10 >;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ #gpio-cells = <2>;
+ gpio-controller;
+ lantiq,shadow = <0x3>;
+ };
-
-&gpiomm {
- status = "okay";
- lantiq,shadow = <3>;
-};
-
&gsw {
phy-mode = "mii";
mtd-mac-address = <&boardconfig 0x16>;
&gsw {
phy-mode = "mii";
mtd-mac-address = <&boardconfig 0x16>;
+
+ gpiomm: gpiomm@1 {
+ compatible = "lantiq,gpio-mm";
+ reg = <1 0x0 0x10 >;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ #gpio-cells = <2>;
+ gpio-controller;
+ lantiq,shadow = <3>;
+ };
-
-&gpiomm {
- status = "okay";
- lantiq,shadow = <0x3>;
-};
-
&gpios {
status = "okay";
};
&gpios {
status = "okay";
};
+
+ gpiomm: gpiomm@1 {
+ compatible = "lantiq,gpio-mm";
+ reg = <1 0x0 0x10 >;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ #gpio-cells = <2>;
+ gpio-controller;
+ lantiq,shadow = <0x3>;
+ };
ranges = <0 0 0x0 0x3ffffff /* addrsel0 */
1 0 0x4000000 0x4000010>; /* addsel1 */
compatible = "lantiq,localbus", "simple-bus";
ranges = <0 0 0x0 0x3ffffff /* addrsel0 */
1 0 0x4000000 0x4000010>; /* addsel1 */
compatible = "lantiq,localbus", "simple-bus";
-
- gpiomm: gpiomm@1 {
- compatible = "lantiq,gpio-mm";
- reg = <1 0x0 0x10 >;
- #address-cells = <1>;
- #size-cells = <1>;
- #gpio-cells = <2>;
- gpio-controller;
- status = "disabled";
- };