Enable vehicle board CAN transceivers 25/26625/1
authorScott Murray <scott.murray@konsulko.com>
Thu, 9 Sep 2021 20:32:28 +0000 (16:32 -0400)
committerScott Murray <scott.murray@konsulko.com>
Thu, 9 Sep 2021 20:42:27 +0000 (16:42 -0400)
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

meta-agl-refhw-gen3/recipes-kernel/linux/files/0001-add-agl-refhw.patch

index 014a195..a47b6fb 100644 (file)
@@ -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