aboutsummaryrefslogtreecommitdiffstats
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-14 19:29:56 +0000
commit438c014047d2523878cf6a9dc0063ed8145c8969 (patch)
tree11a4a3e3dbd6784e9eba913250a581a55599a156
parent6f38ca0041ec49662f97ee93d86e642b8d5416d5 (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 (cherry picked from commit e98aa7a71c06400b50a5c5bdd7e3e576485122bd)
-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