Skip to content

Commit 41951a2

Browse files
authored
Merge pull request #295 from CodeChenL/fix_amlogic
refactor: some overlays are replaced with reference syntax
2 parents 9ca2252 + fe9f52e commit 41951a2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+654
-963
lines changed

arch/arm64/boot/dts/amlogic/overlays/meson-g12-disable-gpu.dts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,8 @@
99
exclusive = "gpu";
1010
description = "Disable GPU.";
1111
};
12+
};
1213

13-
fragment@0 {
14-
target = <&mali>;
15-
16-
__overlay__ {
17-
status = "disabled";
18-
};
19-
};
14+
&mali {
15+
status = "disabled";
2016
};

arch/arm64/boot/dts/amlogic/overlays/meson-g12-disable-hdmi.dts

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,16 @@
99
exclusive = "hdmi";
1010
description = "Disable HDMI.";
1111
};
12+
};
1213

13-
fragment@0 {
14-
target = <&hdmi_tx>;
15-
16-
__overlay__ {
17-
status = "disabled";
18-
};
19-
};
20-
21-
fragment@1 {
22-
target = <&cecb_AO>;
23-
24-
__overlay__ {
25-
status = "disabled";
26-
};
27-
};
14+
&hdmi_tx {
15+
status = "disabled";
16+
};
2817

29-
fragment@2 {
30-
target = <&cec_AO>;
18+
&cecb_AO {
19+
status = "disabled";
20+
};
3121

32-
__overlay__ {
33-
status = "disabled";
34-
};
35-
};
22+
&cec_AO {
23+
status = "disabled";
3624
};

arch/arm64/boot/dts/amlogic/overlays/meson-g12-disable-usb.dts

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,16 @@
99
exclusive = "usb";
1010
description = "Disable USB.";
1111
};
12+
};
1213

13-
fragment@0 {
14-
target = <&usb>;
15-
16-
__overlay__ {
17-
status = "disabled";
18-
};
19-
};
20-
21-
fragment@1 {
22-
target = <&usb2_phy0>;
23-
24-
__overlay__ {
25-
status = "disabled";
26-
};
27-
};
14+
&usb {
15+
status = "disabled";
16+
};
2817

29-
fragment@2 {
30-
target = <&usb2_phy0>;
18+
&usb2_phy0 {
19+
status = "disabled";
20+
};
3121

32-
__overlay__ {
33-
status = "disabled";
34-
};
35-
};
22+
&usb2_phy0 {
23+
status = "disabled";
3624
};

arch/arm64/boot/dts/amlogic/overlays/meson-g12-gpio-poweroff.dts

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,13 @@
1212
exclusive = "GPIOAO_9";
1313
description = "Enable gpio-poweroff on GPIOAO_9,";
1414
};
15+
};
1516

16-
fragment@0 {
17-
target-path = "/";
18-
__overlay__ {
19-
gpio-poweroff {
20-
compatible = "gpio-poweroff";
21-
gpios = <&gpio_ao GPIOAO_9 GPIO_ACTIVE_LOW>;
22-
timeout-ms = <20000>;
23-
force;
24-
};
25-
};
17+
&{/} {
18+
gpio-poweroff {
19+
compatible = "gpio-poweroff";
20+
gpios = <&gpio_ao GPIOAO_9 GPIO_ACTIVE_LOW>;
21+
timeout-ms = <20000>;
22+
force;
2623
};
2724
};

arch/arm64/boot/dts/amlogic/overlays/meson-g12-i2c-ao-m0.dts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,10 @@
99
exclusive = "i2c_AO", "GPIOAO_2", "GPIOAO_3";
1010
description = "Enable I2C_AO-M0 on GPIOAO_2 and GPIOAO_3.";
1111
};
12+
};
1213

13-
fragment@0 {
14-
target = <&i2c_AO>;
15-
__overlay__ {
16-
status = "okay";
17-
pinctrl-0 = <&i2c_ao_sck_pins &i2c_ao_sda_pins>;
18-
pinctrl-names = "default";
19-
};
20-
};
14+
&i2c_AO {
15+
status = "okay";
16+
pinctrl-0 = <&i2c_ao_sck_pins &i2c_ao_sda_pins>;
17+
pinctrl-names = "default";
2118
};

arch/arm64/boot/dts/amlogic/overlays/meson-g12-i2c-ee-m0-01.dts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,10 @@
99
exclusive = "i2c0", "GPIOZ_0", "GPIOZ_1";
1010
description = "Enable I2C_EE-M0 on GPIOZ_0 and GPIOZ_1.";
1111
};
12+
};
1213

13-
fragment@0 {
14-
target = <&i2c0>;
15-
__overlay__ {
16-
status = "okay";
17-
pinctrl-0 = <&i2c0_sck_z1_pins &i2c0_sda_z0_pins>;
18-
pinctrl-names = "default";
19-
};
20-
};
21-
};
14+
&i2c0 {
15+
status = "okay";
16+
pinctrl-0 = <&i2c0_sck_z1_pins &i2c0_sda_z0_pins>;
17+
pinctrl-names = "default";
18+
};

arch/arm64/boot/dts/amlogic/overlays/meson-g12-i2c-ee-m0-17.dts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,10 @@
99
exclusive = "i2c0", "GPIOZ_1", "GPIOZ_7";
1010
description = "Enable I2C_EE-M0 on GPIOZ_1 and GPIOZ_7.";
1111
};
12+
};
1213

13-
fragment@0 {
14-
target = <&i2c0>;
15-
__overlay__ {
16-
status = "okay";
17-
pinctrl-0 = <&i2c0_sck_z1_pins &i2c0_sda_z7_pins>;
18-
pinctrl-names = "default";
19-
};
20-
};
21-
};
14+
&i2c0 {
15+
status = "okay";
16+
pinctrl-0 = <&i2c0_sck_z1_pins &i2c0_sda_z7_pins>;
17+
pinctrl-names = "default";
18+
};

arch/arm64/boot/dts/amlogic/overlays/meson-g12-i2c-ee-m1-h.dts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,10 @@
99
exclusive = "i2c1", "GPIOH_6", "GPIOH_7";
1010
description = "Enable I2C_EE-M1 on GPIOH_6 and GPIOH_7.";
1111
};
12+
};
1213

13-
fragment@0 {
14-
target = <&i2c1>;
15-
__overlay__ {
16-
status = "okay";
17-
pinctrl-0 = <&i2c1_sck_h7_pins &i2c1_sda_h6_pins>;
18-
pinctrl-names = "default";
19-
};
20-
};
14+
&i2c1 {
15+
status = "okay";
16+
pinctrl-0 = <&i2c1_sck_h7_pins &i2c1_sda_h6_pins>;
17+
pinctrl-names = "default";
2118
};

arch/arm64/boot/dts/amlogic/overlays/meson-g12-i2c-ee-m1-x.dts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,10 @@
99
exclusive = "i2c1", "GPIOX_10", "GPIOX_11";
1010
description = "Enable I2C_EE-M1 on GPIOX_10 and GPIOX_11.";
1111
};
12+
};
1213

13-
fragment@0 {
14-
target = <&i2c1>;
15-
__overlay__ {
16-
status = "okay";
17-
pinctrl-0 = <&i2c1_sck_x_pins &i2c1_sda_x_pins>;
18-
pinctrl-names = "default";
19-
};
20-
};
14+
&i2c1 {
15+
status = "okay";
16+
pinctrl-0 = <&i2c1_sck_x_pins &i2c1_sda_x_pins>;
17+
pinctrl-names = "default";
2118
};

arch/arm64/boot/dts/amlogic/overlays/meson-g12-i2c-ee-m3-a-ds3231.dts

Lines changed: 19 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -13,35 +13,29 @@
1313
exclusive = "GPIOAO_3";
1414
description = "Enable DS3231 RTC on I2C_EE-M3.\nINT = GPIOAO_3";
1515
};
16+
};
1617

17-
fragment@0 {
18-
target = <&i2c3>;
19-
__overlay__ {
20-
status = "okay";
21-
pinctrl-0 = <&i2c3_sck_a_pins &i2c3_sda_a_pins>;
22-
pinctrl-names = "default";
18+
&i2c3 {
19+
status = "okay";
20+
pinctrl-0 = <&i2c3_sck_a_pins &i2c3_sda_a_pins>;
21+
pinctrl-names = "default";
2322

24-
ds3231: ds3231@68 {
25-
compatible = "maxim,ds3231";
26-
reg = <0x68>;
27-
#clock-cells = <1>;
28-
interrupt-parent = <&gpio_intc>;
29-
interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
30-
};
31-
};
23+
ds3231: ds3231@68 {
24+
compatible = "maxim,ds3231";
25+
reg = <0x68>;
26+
#clock-cells = <1>;
27+
interrupt-parent = <&gpio_intc>;
28+
interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
3229
};
30+
};
3331

34-
fragment@1 {
35-
target = <&ao_pinctrl>;
36-
__overlay__ {
37-
ds3231_int_pins: ds3231-int-pins@0 {
38-
mux {
39-
groups = "GPIOAO_3";
40-
function = "gpio_aobus";
41-
bias-pull-up;
42-
drive-strength-microamp = <4000>;
43-
};
44-
};
32+
&ao_pinctrl {
33+
ds3231_int_pins: ds3231-int-pins@0 {
34+
mux {
35+
groups = "GPIOAO_3";
36+
function = "gpio_aobus";
37+
bias-pull-up;
38+
drive-strength-microamp = <4000>;
4539
};
4640
};
4741
};

0 commit comments

Comments
 (0)