aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2020-03-26 14:27:49 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2020-04-16 09:09:14 +0300
commitd2edda9ccbc998d5fbfc76941202b7e73b793cf0 (patch)
tree05cac6b2f29a4784c98e7c4d732926c5858e217b
parent8258850947ee83af9b5788d7dc300380814497fb (diff)
downloadlinux-dt-d2edda9ccbc998d5fbfc76941202b7e73b793cf0.tar.gz
Add AM5 EVM DT overlays
AM5 EVM DT overlays are applied on top of x15 base board and enable gpio keys, LCD and mmc. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r--Makefile4
-rw-r--r--arch/arm/boot/dts/ti/am57xx-evm-common.dtso161
-rw-r--r--arch/arm/boot/dts/ti/am57xx-evm-reva3.dtso11
-rw-r--r--arch/arm/boot/dts/ti/am57xx-evm.dtso11
4 files changed, 187 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 180b2ab..522c794 100644
--- a/Makefile
+++ b/Makefile
@@ -99,6 +99,10 @@ clean:
# base-dtb,ovl1,ovl2...
dtb-tests-arm := dra76-evm.dtb,ti/dra76-evm-tfp410.dtbo
+dtb-tests-arm += \
+ am57xx-beagle-x15.dtb,ti/am57xx-evm-common.dtbo,ti/am57xx-evm.dtbo \
+ am57xx-beagle-x15-revc.dtb,ti/am57xx-evm-common.dtbo,ti/am57xx-evm-reva3.dtbo \
+
dtb-tests-arm64 :=
comma := ,
diff --git a/arch/arm/boot/dts/ti/am57xx-evm-common.dtso b/arch/arm/boot/dts/ti/am57xx-evm-common.dtso
new file mode 100644
index 0000000..bd9a5a7
--- /dev/null
+++ b/arch/arm/boot/dts/ti/am57xx-evm-common.dtso
@@ -0,0 +1,161 @@
+/dts-v1/;
+/plugin/;
+#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
+/ {
+ fragment@101 {
+ target-path = "/";
+
+ __overlay__ {
+ compatible = "ti,am5728-evm", "ti,am572x-beagle-x15", "ti,am5728", "ti,dra742", "ti,dra74", "ti,dra7";
+ model = "TI AM5728 EVM";
+
+ aliases {
+ display0 = "/display";
+ display1 = "/connector";
+ };
+
+ gpio_keys {
+ compatible = "gpio-keys";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ autorepeat;
+
+ USER1 {
+ gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
+ label = "Up";
+ linux,code = <KEY_UP>;
+ };
+
+ USER2 {
+ gpios = <&gpio2 25 GPIO_ACTIVE_LOW>;
+ label = "Down";
+ linux,code = <KEY_DOWN>;
+ };
+
+ USER3 {
+ gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
+ label = "Left";
+ linux,code = <KEY_LEFT>;
+ };
+
+ USER4 {
+ gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
+ label = "Right";
+ linux,code = <KEY_RIGHT>;
+ };
+
+ USER5 {
+ gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
+ label = "Home";
+ linux,code = <KEY_HOME>;
+ };
+ };
+
+ lcd0: display {
+ compatible = "osddisplays,osd070t1718-19ts";
+ backlight = <&lcd_bl>;
+ enable-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
+
+ port {
+ lcd_in: endpoint {
+ remote-endpoint = <&dpi_out>;
+ };
+ };
+ };
+
+ lcd_bl: backlight {
+ compatible = "pwm-backlight";
+ brightness-levels = <0 243 245 247 249 251 252 253 255>;
+ default-brightness-level = <8>;
+ pwms = <&ehrpwm1 0 50000 0>;
+ };
+
+ com_3v6: fixedregulator-com_3v6 {
+ compatible = "regulator-fixed";
+ regulator-name = "com_3v6";
+ regulator-min-microvolt = <3600000>;
+ regulator-max-microvolt = <3600000>;
+ vin-supply = <&evm_5v0>;
+ regulator-always-on;
+ regulator-boot-on;
+ };
+
+ vmmcwl_fixed: fixedregulator-mmcwl {
+ compatible = "regulator-fixed";
+ regulator-name = "vmmcwl_fixed";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ gpio = <&gpio5 8 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ };
+ };
+ };
+};
+
+&ehrpwm1 {
+ status = "okay";
+};
+
+&epwmss1 {
+ status = "okay";
+};
+
+&i2c5 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ clock-frequency = <400000>;
+ status = "okay";
+
+ pixcir_ts@5c {
+ compatible = "pixcir,pixcir_tangoc";
+ attb-gpio = <&gpio2 4 GPIO_ACTIVE_HIGH>;
+ interrupt-parent = <&gpio2>;
+ interrupts = <4 0>;
+ reg = <0x5c>;
+ reset-gpio = <&gpio2 6 GPIO_ACTIVE_HIGH>;
+ touchscreen-size-x = <1024>;
+ touchscreen-size-y = <600>;
+ };
+};
+
+&uart8 {
+ status = "okay";
+};
+
+&dss {
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+
+ dpi_out: endpoint {
+ data-lines = <24>;
+ remote-endpoint = <&lcd_in>;
+ };
+ };
+ };
+};
+
+&mmc3 {
+ status = "okay";
+ vmmc-supply = <&com_3v6>;
+ vqmmc-supply = <&vmmcwl_fixed>;
+ bus-width = <4>;
+ cap-power-off-card;
+ keep-power-in-suspend;
+ non-removable;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ wlcore: wlcore@2 {
+ compatible = "ti,wl1835";
+ reg = <2>;
+ interrupt-parent = <&gpio5>;
+ interrupts = <7 IRQ_TYPE_EDGE_RISING>;
+ };
+};
diff --git a/arch/arm/boot/dts/ti/am57xx-evm-reva3.dtso b/arch/arm/boot/dts/ti/am57xx-evm-reva3.dtso
new file mode 100644
index 0000000..17e778f
--- /dev/null
+++ b/arch/arm/boot/dts/ti/am57xx-evm-reva3.dtso
@@ -0,0 +1,11 @@
+/dts-v1/;
+/plugin/;
+
+&mmc3 {
+ pinctrl-names = "default", "hs", "sdr12", "sdr25", "sdr50";
+ pinctrl-0 = <&mmc3_pins_default>;
+ pinctrl-1 = <&mmc3_pins_hs>;
+ pinctrl-2 = <&mmc3_pins_sdr12>;
+ pinctrl-3 = <&mmc3_pins_sdr25>;
+ pinctrl-4 = <&mmc3_pins_sdr50 &mmc3_iodelay_manual1_rev20_conf>;
+};
diff --git a/arch/arm/boot/dts/ti/am57xx-evm.dtso b/arch/arm/boot/dts/ti/am57xx-evm.dtso
new file mode 100644
index 0000000..91a57e9
--- /dev/null
+++ b/arch/arm/boot/dts/ti/am57xx-evm.dtso
@@ -0,0 +1,11 @@
+/dts-v1/;
+/plugin/;
+
+&mmc3 {
+ pinctrl-names = "default", "hs", "sdr12", "sdr25", "sdr50";
+ pinctrl-0 = <&mmc3_pins_default>;
+ pinctrl-1 = <&mmc3_pins_hs>;
+ pinctrl-2 = <&mmc3_pins_sdr12>;
+ pinctrl-3 = <&mmc3_pins_sdr25>;
+ pinctrl-4 = <&mmc3_pins_sdr50 &mmc3_iodelay_manual1_rev11_conf>;
+};