summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2021-09-09 16:32:28 -0400
committerScott Murray <scott.murray@konsulko.com>2021-09-09 16:42:27 -0400
commite98aa7a71c06400b50a5c5bdd7e3e576485122bd (patch)
tree10dcae1252382e4bc0690e44cc390e2542b525ab
parentecb71fdb747431561642ae8f67098a559937542a (diff)
Enable vehicle board CAN transceivers
Update reference hardware support kernel patch to enable the vehicle board CAN transceivers by pulling them out of standby mode on power on. Bug-AGL: SPEC-4073 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I3f4f13fb261f9a2770b73e9f9d48240577357a70
-rw-r--r--meta-agl-refhw-gen3/recipes-kernel/linux/files/0001-add-agl-refhw.patch24
1 files changed, 19 insertions, 5 deletions
diff --git a/meta-agl-refhw-gen3/recipes-kernel/linux/files/0001-add-agl-refhw.patch b/meta-agl-refhw-gen3/recipes-kernel/linux/files/0001-add-agl-refhw.patch
index 014a195..a47b6fb 100644
--- a/meta-agl-refhw-gen3/recipes-kernel/linux/files/0001-add-agl-refhw.patch
+++ b/meta-agl-refhw-gen3/recipes-kernel/linux/files/0001-add-agl-refhw.patch
@@ -7,13 +7,13 @@ Signed-off-by: Raquel Medina <raquel.medina@konsulko.com>
---
arch/arm64/boot/dts/renesas/agl-refhw-common.dtsi | 918 ++++++++++++++++++++++
- arch/arm64/boot/dts/renesas/r8a7795-agl-refhw.dts | 378 +++++++++
+ arch/arm64/boot/dts/renesas/r8a7795-agl-refhw.dts | 392 +++++++++
drivers/media/i2c/adv748x/adv748x-core.c | 24 +-
- 3 files changed, 1319 insertions(+), 1 deletion(-)
+ 3 files changed, 1333 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/renesas/agl-refhw-common.dtsi b/arch/arm64/boot/dts/renesas/agl-refhw-common.dtsi
new file mode 100644
-index 000000000000..cdd5975a77a2
+index 000000000000..796ac4c078e0
--- /dev/null
+++ b/arch/arm64/boot/dts/renesas/agl-refhw-common.dtsi
@@ -0,0 +1,918 @@
@@ -937,10 +937,10 @@ index 000000000000..cdd5975a77a2
+};
diff --git a/arch/arm64/boot/dts/renesas/r8a7795-agl-refhw.dts b/arch/arm64/boot/dts/renesas/r8a7795-agl-refhw.dts
new file mode 100644
-index 000000000000..0a63d2e7a64b
+index 000000000000..83638a6228c0
--- /dev/null
+++ b/arch/arm64/boot/dts/renesas/r8a7795-agl-refhw.dts
-@@ -0,0 +1,378 @@
+@@ -0,0 +1,392 @@
+/*
+ * Device Tree Source for the AGL reference hardware board with R-Car H3 ES3.0
+ *
@@ -1319,6 +1319,20 @@ index 000000000000..0a63d2e7a64b
+ /delete-property/ wp-gpios;
+ non-removable;
+};
++
++&gpio6 {
++ /* Enable the CAN 1 & 2 transceivers */
++ can-1-transceiver-stb {
++ gpio-hog;
++ gpios = <21 GPIO_ACTIVE_HIGH>;
++ output-high;
++ };
++ can-2-transceiver-stb {
++ gpio-hog;
++ gpios = <12 GPIO_ACTIVE_HIGH>;
++ output-high;
++ };
++};
diff --git a/drivers/media/i2c/adv748x/adv748x-core.c b/drivers/media/i2c/adv748x/adv748x-core.c
index 87092ce5ba73..357c334113aa 100644
--- a/drivers/media/i2c/adv748x/adv748x-core.c