From 1d54866a15eea1e7df6f7ce0f4c08358c1ef8774 Mon Sep 17 00:00:00 2001 From: Martin Ayotte Date: Tue, 13 Nov 2018 15:08:34 -0500 Subject: [PATCH] add new H6 overlays for UARTs and I2Cs --- sun50i-h6/sun50i-h6-i2c0.dts | 20 ++++++++++++++++++++ sun50i-h6/sun50i-h6-i2c1.dts | 20 ++++++++++++++++++++ sun50i-h6/sun50i-h6-i2c2.dts | 20 ++++++++++++++++++++ sun50i-h6/sun50i-h6-uart1.dts | 22 ++++++++++++++++++++++ sun50i-h6/sun50i-h6-uart2.dts | 32 ++++++++++++++++++++++++++++++++ sun50i-h6/sun50i-h6-uart3.dts | 32 ++++++++++++++++++++++++++++++++ 6 files changed, 146 insertions(+) create mode 100644 sun50i-h6/sun50i-h6-i2c0.dts create mode 100644 sun50i-h6/sun50i-h6-i2c1.dts create mode 100644 sun50i-h6/sun50i-h6-i2c2.dts create mode 100644 sun50i-h6/sun50i-h6-uart1.dts create mode 100644 sun50i-h6/sun50i-h6-uart2.dts create mode 100644 sun50i-h6/sun50i-h6-uart3.dts diff --git a/sun50i-h6/sun50i-h6-i2c0.dts b/sun50i-h6/sun50i-h6-i2c0.dts new file mode 100644 index 0000000..7e7ee8c --- /dev/null +++ b/sun50i-h6/sun50i-h6-i2c0.dts @@ -0,0 +1,20 @@ +/dts-v1/; +/plugin/; + +/ { + compatible = "allwinner,sun50i-h6"; + + fragment@0 { + target-path = "/aliases"; + __overlay__ { + i2c0 = "/soc/i2c@5002000"; + }; + }; + + fragment@1 { + target = <&i2c0>; + __overlay__ { + status = "okay"; + }; + }; +}; diff --git a/sun50i-h6/sun50i-h6-i2c1.dts b/sun50i-h6/sun50i-h6-i2c1.dts new file mode 100644 index 0000000..1117698 --- /dev/null +++ b/sun50i-h6/sun50i-h6-i2c1.dts @@ -0,0 +1,20 @@ +/dts-v1/; +/plugin/; + +/ { + compatible = "allwinner,sun50i-h6"; + + fragment@0 { + target-path = "/aliases"; + __overlay__ { + i2c1 = "/soc/i2c@5002400"; + }; + }; + + fragment@1 { + target = <&i2c1>; + __overlay__ { + status = "okay"; + }; + }; +}; diff --git a/sun50i-h6/sun50i-h6-i2c2.dts b/sun50i-h6/sun50i-h6-i2c2.dts new file mode 100644 index 0000000..b627529 --- /dev/null +++ b/sun50i-h6/sun50i-h6-i2c2.dts @@ -0,0 +1,20 @@ +/dts-v1/; +/plugin/; + +/ { + compatible = "allwinner,sun50i-h6"; + + fragment@0 { + target-path = "/aliases"; + __overlay__ { + i2c2 = "/soc/i2c@5002800"; + }; + }; + + fragment@1 { + target = <&i2c2>; + __overlay__ { + status = "okay"; + }; + }; +}; diff --git a/sun50i-h6/sun50i-h6-uart1.dts b/sun50i-h6/sun50i-h6-uart1.dts new file mode 100644 index 0000000..44aa94e --- /dev/null +++ b/sun50i-h6/sun50i-h6-uart1.dts @@ -0,0 +1,22 @@ +/dts-v1/; +/plugin/; + +/ { + compatible = "allwinner,sun50i-h6"; + + fragment@0 { + target-path = "/aliases"; + __overlay__ { + serial1 = "/soc/serial@5000400"; + }; + }; + + fragment@1 { + target = <&uart1>; + __overlay__ { + pinctrl-names = "default"; + pinctrl-0 = <&uart1_pins>; + status = "okay"; + }; + }; +}; diff --git a/sun50i-h6/sun50i-h6-uart2.dts b/sun50i-h6/sun50i-h6-uart2.dts new file mode 100644 index 0000000..7a1860e --- /dev/null +++ b/sun50i-h6/sun50i-h6-uart2.dts @@ -0,0 +1,32 @@ +/dts-v1/; +/plugin/; + +/ { + compatible = "allwinner,sun50i-h6"; + + fragment@0 { + target-path = "/aliases"; + __overlay__ { + serial2 = "/soc/serial@5000800"; + }; + }; + + fragment@1 { + target = <&pio>; + __overlay__ { + uart2_rts_cts: uart2_rts_cts { + pins = "PD21", "PD22"; + function = "uart2"; + }; + }; + }; + + fragment@2 { + target = <&uart2>; + __overlay__ { + pinctrl-names = "default"; + pinctrl-0 = <&uart2_pins>; + status = "okay"; + }; + }; +}; diff --git a/sun50i-h6/sun50i-h6-uart3.dts b/sun50i-h6/sun50i-h6-uart3.dts new file mode 100644 index 0000000..38a59ac --- /dev/null +++ b/sun50i-h6/sun50i-h6-uart3.dts @@ -0,0 +1,32 @@ +/dts-v1/; +/plugin/; + +/ { + compatible = "allwinner,sun50i-h6"; + + fragment@0 { + target-path = "/aliases"; + __overlay__ { + serial3 = "/soc/serial@05000c00"; + }; + }; + + fragment@1 { + target = <&pio>; + __overlay__ { + uart3_rts_cts: uart3_rts_cts { + pins = "PD25", "PD26"; + function = "uart3"; + }; + }; + }; + + fragment@2 { + target = <&uart3>; + __overlay__ { + pinctrl-names = "default"; + pinctrl-0 = <&uart3_pins>; + status = "okay"; + }; + }; +};