View difference between Paste ID: S2LgdgfZ and wcMwbwfb
SHOW: | | - or go back to the newest paste.
1-
// UPDATE: sufficiently recent versions of dtc support syntax similar to that used by overlay-utils, except you do still need the two directives at the top, and manually add the file identification fragment.
1+
2-
2+
3
                                                         |
4
/dts-v1/;                                                |
5
/plugin/;                                                |
6
                                                         |
7
#include <dt-bindings/board/am335x-bbw-bbb-base.h>       |  #include <dt-bindings/board/am335x-bbw-bbb-base.h>
8
#include <dt-bindings/pinctrl/am33xx.h>                  |  #include <dt-bindings/pinctrl/am33xx.h>
9
                                                         |
10
/ {                                                      |
11
    fragment@0 {                                         |
12
        target-path="/chosen";                           |
13
        __overlay__ {                                    |  &{/chosen} {
14-
        target-path= " /chosen";                         |
14+
            overlays {                                   |      overlays {
15-
        __overlay__ {                                    |
15+
                BB-UART1-00A0 = __TIMESTAMP__;           |          BB-UART1-00A0 = __TIMESTAMP__;
16-
            overlays {                                   |
16+
17-
                BB-UART1-00A0 = __TIMESTAMP__;           |  // file identification is added automatically
17+
18-
            };                                           |  // by dtsi-to-overlay
18+
19-
        };                                               |
19+
20
    fragment@1 {                                         |
21
        target = <&ocp>;                                 |
22
        __overlay__ {                                    |  &ocp {
23
            P9_24_pinmux { status = "disabled"; };       |      P9_24_pinmux { status = "disabled"; };
24
            P9_26_pinmux { status = "disabled"; };       |      P9_26_pinmux { status = "disabled"; };
25
        };                                               |  };
26
    };                                                   |
27
                                                         |
28
    fragment@2 {                                         |
29
        target = <&am33xx_pinmux>;                       |
30
        __overlay__ {                                    |  &am33xx_pinmux {
31
            uart1_pins: uart1 {                          |      uart1_pins: uart1 {
32
                pinctrl-single,pins = <                  |          pinctrl-single,pins = <
33
                    BONE_P9_24 (PIN_OUTPUT | MUX_MODE0)  |              BONE_P9_24 (PIN_OUTPUT | MUX_MODE0)
34
                    BONE_P9_26 (PIN_INPUT  | MUX_MODE0)  |              BONE_P9_26 (PIN_INPUT  | MUX_MODE0)
35
                >;                                       |          >;
36
            };                                           |      };
37
        };                                               |  };
38
    };                                                   |
39
                                                         |
40
    fragment@3 {                                         |
41
        target = <&uart1>;                               |
42
        __overlay__ {                                    |  &uart1 {
43
            status = "okay";                             |      status = "okay";
44
            pinctrl-names = "default";                   |      pinctrl-names = "default";
45
            pinctrl-0 = <&uart1_pins>;                   |      pinctrl-0 = <&uart1_pins>;
46
        };                                               |  };
47
    };                                                   |
48
};                                                       |