summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorJayesh Choudhary <j-choudhary@ti.com>2024-01-23 13:47:37 +0530
committerFrancesco Dolcini <francesco.dolcini@toradex.com>2024-03-21 14:26:33 +0000
commitaeafe13005fa46935cde80c62bfe71ca6a94bc8b (patch)
treea98b4161eb2b80ae3c6e4b98f3456ad129f39598 /arch
parent233c80fa5be6768f58cad97c38b50be6c9d77395 (diff)
arm: dts: k3-j722s-evm: Syncing device tree with kernel
Enable eMMC support by adding sdhci0 node. Add cma node and led node as well. Also add missing bootph-all flag for main_i2c0 node. Signed-off-by: Jayesh Choudhary <j-choudhary@ti.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/dts/k3-j722s-evm.dts46
1 files changed, 46 insertions, 0 deletions
diff --git a/arch/arm/dts/k3-j722s-evm.dts b/arch/arm/dts/k3-j722s-evm.dts
index 7576eca4f8..193ce9a551 100644
--- a/arch/arm/dts/k3-j722s-evm.dts
+++ b/arch/arm/dts/k3-j722s-evm.dts
@@ -8,7 +8,9 @@
/dts-v1/;
+#include <dt-bindings/leds/common.h>
#include "k3-j722s.dtsi"
+#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/net/ti-dp83867.h>
/ {
@@ -39,6 +41,14 @@
#size-cells = <2>;
ranges;
+ /* global cma region */
+ linux,cma {
+ compatible = "shared-dma-pool";
+ reusable;
+ size = <0x00 0x38000000>;
+ linux,cma-default;
+ };
+
secure_tfa_ddr: tfa@9e780000 {
reg = <0x00 0x9e780000 0x00 0x80000>;
no-map;
@@ -182,6 +192,27 @@
regulator-always-on;
regulator-boot-on;
};
+
+ leds {
+ compatible = "gpio-leds";
+ pinctrl-names = "default";
+ pinctrl-0 = <&led_pins_default>;
+
+ led-0 {
+ label = "j722s-evm:red:heartbeat";
+ gpios = <&main_gpio1 49 GPIO_ACTIVE_HIGH>;
+ function = LED_FUNCTION_HEARTBEAT;
+ linux,default-trigger = "heartbeat";
+ };
+
+ led-1 {
+ label = "j722s-evm:green:disk-activity";
+ gpios = <&exp1 16 GPIO_ACTIVE_HIGH>;
+ function = LED_FUNCTION_DISK_ACTIVITY;
+ linux,default-trigger = "mmc1";
+ default-state = "off";
+ };
+ };
};
&main_pmx0 {
@@ -246,6 +277,12 @@
>;
bootph-all;
};
+
+ led_pins_default: led-default-pins {
+ pinctrl-single,pins = <
+ J722S_IOPAD(0x0244, PIN_INPUT, 7) /* (A24) MMC1_SDWP */
+ >;
+ };
};
&main_gpio1 {
@@ -301,6 +338,7 @@
pinctrl-names = "default";
pinctrl-0 = <&main_i2c0_pins_default>;
clock-frequency = <400000>;
+ bootph-all;
exp1: gpio@23 {
compatible = "ti,tca6424";
@@ -323,6 +361,14 @@
};
};
+&sdhci0 {
+ /*eMMC*/
+ status = "okay";
+ ti,driver-strength-ohm = <50>;
+ disable-wp;
+ bootph-all;
+};
+
&sdhci1 {
/* SD/MMC */
status = "okay";