From e98aa7a71c06400b50a5c5bdd7e3e576485122bd Mon Sep 17 00:00:00 2001 From: Scott Murray Date: Thu, 9 Sep 2021 16:32:28 -0400 Subject: 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 Change-Id: I3f4f13fb261f9a2770b73e9f9d48240577357a70 --- .../linux/files/0001-add-agl-refhw.patch | 24 +++++++++++++++++----- 1 file 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 --- 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 -- cgit 1.2.3-korg