AGL/meta-agl-refhw.git
4 weeks agoAdd Yocto Project scarthgap release compatibility master next
Scott Murray [Thu, 18 Apr 2024 21:41:31 +0000 (17:41 -0400)]
Add Yocto Project scarthgap release compatibility

Switch to scarthgap in LAYERSERIES_COMPAT in layer.conf file.

Bug-AGL: SPEC-4578

Change-Id: Ifceeee5e4033cbfd6f25572036b06e8577ce3e8f
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
3 months agoAdd gitlab issue/merge request templates 17.90.0 ricefish/17.90.0 ricefish_17.90.0
Jan-Simon Moeller [Tue, 13 Feb 2024 22:24:46 +0000 (23:24 +0100)]
Add gitlab issue/merge request templates

Add template files for gitlab

Bug-AGL: SPEC-4474
Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Change-Id: I3d11f50786e33dd14ba4a37b3b0fc9da1e71ed9c

20 months agoarm-trusted-firmware: Change the way how RCAR_BL33_EXECUTION_EL is set to not conflic... 40/27940/1 14.91.0 14.92.0 14.93.0 14.94.0 15.91.0 15.91.1 15.92.0 16.91.0 16.91.1 16.92.0 16.93.0 octopus/14.91.0 octopus/14.92.0 octopus/14.93.0 octopus/14.94.0 octopus_14.91.0 octopus_14.92.0 octopus_14.93.0 octopus_14.94.0 pike/15.91.0 pike/15.91.1 pike/15.92.0 pike_15.91.0 pike_15.91.1 pike_15.92.0 quillback/16.91.0 quillback/16.91.1 quillback/16.92.0 quillback/16.93.0 quillback_16.91.0 quillback_16.91.1 quillback_16.92.0 quillback_16.93.0
Vasyl Vavrychuk [Mon, 22 Aug 2022 14:44:18 +0000 (16:44 +0200)]
arm-trusted-firmware: Change the way how RCAR_BL33_EXECUTION_EL is set to not conflict with other layers.

Replace '0001-Boot-Normal-World-in-EL2.patch' which conflicts with:

    meta-agl/meta-agl-bsp/meta-rcar-gen3/recipes-bsp/arm-trusted-firmware/files/0001-Boot-Normal-World-in-EL2.patch

Bug-AGL: SPEC-4532
Change-Id: Ia358512fcb68576d2794f13a0d32d8ab007366fb
Signed-off-by: Vasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com>
23 months agoAdd MMC aliases to reference hardware devicetree 37/27637/1 13.91.0 13.92.0 13.93.0 needlefish/13.91.0 needlefish/13.92.0 needlefish/13.93.0 needlefish_13.91.0 needlefish_13.92.0 needlefish_13.93.0
Scott Murray [Tue, 7 Jun 2022 21:29:03 +0000 (17:29 -0400)]
Add MMC aliases to reference hardware devicetree

To ensure MMC device naming is deterministic after the change to
asynchronous probing in upstream commit 7320915c8861, add the
required MMC device aliases.  This matches what was done for the
Salvator-X boards in d765a4f3 in upstream mainline (or e6d95f35
in linux-5.10.y).

Bug-AGL: SPEC-4432

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: I7d86c27a9547daa6017d72e01820d739ef0d07d9

2 years agowlconf: fix behavior with usrmerge 38/27438/1
Scott Murray [Tue, 3 May 2022 18:32:50 +0000 (14:32 -0400)]
wlconf: fix behavior with usrmerge

The do_install in the wlconf recipe was hard-coding /lib in a few
places instead of using ${nonarch_base_libdir}, which results in
packaging failures when using the usrmerge distro feature, properly
use ${nonarch_base_libdir} where required.

Bug-AGL: SPEC-4352

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: I6756e0fbb9f5ff23dda5cd57229283a9c8686d74

2 years agoUpdates for kirkstone
Scott Murray [Sun, 3 Apr 2022 22:09:03 +0000 (18:09 -0400)]
Updates for kirkstone

Changes:
- Updated LAYERSERIES_COMPAT.
- Updated override syntax via a combination of the conversion script
  in poky and manual inspection.
- Updated a license field viarunning the conversion script in poky.
- Updated branches in README, further updates will likely be required
  when an official Renesas BSP release is made.

Bug-AGL: SPEC-3819

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: I6f736f56a23ddb634232e5c99e21830bc6637764

2 years agoUpdates for BSP v5.5.0 24/26724/2 12.90.1 12.91.0 12.92.0 12.93.0 marlin/12.90.1 marlin/12.91.0 marlin/12.92.0 marlin/12.93.0 marlin_12.90.1 marlin_12.91.0 marlin_12.92.0 marlin_12.93.0
Scott Murray [Mon, 4 Oct 2021 15:43:39 +0000 (11:43 -0400)]
Updates for BSP v5.5.0

Changes:
- Kernel patches updated for the 5.10.41 linux-renesas kernel, most
  changes are for the upstream rename of the non-engineering sample H3
  from r8a7795 to r8a77951.
- The kernel patches have been renamed to match git format-patch /
  devtool naming conventions to be a bit more consistent and hopefully
  simplify future updates.
- To maintain consistency with the other rcar3 boards, as part of the
  kernel patch updates the reference hardware devicetree has been
  renamed to r8a77951-agl-refhw, which does result in a user visible
  change in the .dtb name.
- The upstreamed, then reverted upstream patch to arm-trusted-firmware
  to disable FDT generation has been replaced with a simpler patch to
  just put "renesas,unknown" in the compatible string instead of
  panic-ing.  This should be easier to carry forward.
- Documentation updated for new branch & tag.

Bug-AGL: SPEC-4103

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: I48b2cce5d55df3fff49e556821b27b8f516b98e1

2 years agoarm-trusted-firmware: build 1rank firmware when MACHINE=agl-refhw-h3 46/26746/1
Scott Murray [Tue, 26 Oct 2021 20:18:22 +0000 (16:18 -0400)]
arm-trusted-firmware: build 1rank firmware when MACHINE=agl-refhw-h3

Tweak the arm-trusted-firmware bbappend to build the extra 1rank
firmware when building standalone with MACHINE=agl-refhw-h3, and
also add an anonymous python snippet to disable the default
firmware configurations from the base recipe in that situation
as well, as they are not useful.

Bug-AGL: SPEC-4115

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: I4697476b08c9dfc722cc8e97c837786874869262

2 years agoEnable buffered-mode for accel/gyro sensors 32/26732/2
Hiroyuki Ishii [Tue, 12 Oct 2021 00:48:23 +0000 (09:48 +0900)]
Enable buffered-mode for accel/gyro sensors

During asm330lhh's driver initialization, there is a kernel message
which indicates failure of mapping irq like following:

irq: type mismatch, failed to map hwirq-39 for interrupt-controller@f1010000!

This is because of wrong statement in agl-refhw-common.dtsi and results
disabling buffered-mode of asm330lhh. With this change, the irq can be
correctly mapped and buffered-mode is enabled, i.e. buffer directory
comes up like following:

/sys/devices/platform/soc/e66d0000.i2c/i2c-3/3-006a/iio:device<n>/buffer

* Updates from Scott Murray:
- Changes merged into the main reference hardware patch as
  discussed in Gerrit.
- st,drdy-int-pin declaration added to mark int1 pin as explicitly
  used, matching other users of the driver.
- i2c3 bus speed increased to 400 KHz.  The ASM330LHH is the only
  device on it and is 400 KHz capable, which testing bears out.
  If any of the higher ODRs will be used in buffered mode, this
  seems desirable.

BUG-AGL: SPEC-4098

Signed-off-by: Hiroyuki Ishii <ishii.hiroyuki002@jp.panasonic.com>
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: I598b1195a20d9e4611d2e505779ebeebfcbd8757

2 years agoAdd support for 16Gbit/1rank DRAM version of the AGL reference hardware 38/26738/2
Yoshiki Ito [Wed, 20 Oct 2021 04:56:40 +0000 (13:56 +0900)]
Add support for 16Gbit/1rank DRAM version of the AGL reference hardware

The AGL reference hardware which is numbered 100 or above has
16Gbit/1rank DRAM. If you use the reference hardware described above,
please flash the firmware with the suffix "-agl-refhw-4x2g-1rank".

Bug-AGL: SPEC-4115

Signed-off-by: Yoshiki Ito <ito.yoshiki001@jp.panasonic.com>
Change-Id: Id13458b431451dce4cda717f35a05a6a56cf3d81

2 years agoFix CAN transceivers GPIO hog definitions 71/26671/1
Scott Murray [Fri, 24 Sep 2021 21:06:36 +0000 (17:06 -0400)]
Fix CAN transceivers GPIO hog definitions

Update reference hardware support kernel patch to fix enabling the
vehicle board CAN transceivers, I mistakenly set them to output-high
instead of output-low when creating the GPIO hog definitions.  The
pins need to be low to disable standby mode on the transceivers.

Bug-AGL: SPEC-4073

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: I882bdac8c30e42a2271c169e3cf888a6505093de

2 years agoAdd WLAN card support 26/26626/1
Scott Murray [Tue, 7 Sep 2021 15:03:24 +0000 (11:03 -0400)]
Add WLAN card support

This is loosely based on the contents of the tar file provided with
the WLAN cards (AGL_Refhw_sample_software_KK_20210225.tar.gz) with
updates for BSP v4.7.0 and other fixes.

Changes:
- Kernel patches and configuration update to enable the TI WL1837
  module.  As opposed to the original changes from Panasonic or the
  Kingfisher support, the HCI LL driver is used instead of the older
  ti-st + btwilink combination, since the the latter are deprecated
  and are removed in kernel 5.5.
- As part of the above the sound configuration in the devicetree has
  been reworked to support the WL1837 BT audio.  This includes
  dropping the HDMI1 audio configuration from the original Salvator-X
  devicetree, as it conflicts with the SSI used for the ak4613 in the
  reference hardware.
- Recipes added for wlconf (from meta-ti) and ti-bt-firmware (loosely
  derived from the meta-rcar-gen3-adas version).  The TI-TFL license
  used by ti-bt-firmware has been added in a top-level "licenses"
  directory and that added to LICENSE_PATH in layer.conf to satisfy
  the license packaging QA checking.

Bug-AGL: SPEC-4071

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: Ib17fc01331efe0f49a90f7a8b223ec88b33b44f7

2 years agoEnable vehicle board CAN transceivers 25/26625/1
Scott Murray [Thu, 9 Sep 2021 20:32:28 +0000 (16:32 -0400)]
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

2 years agoFix wrong USB1 pin setting 99/26599/1
ito.yoshiki001 [Fri, 27 Aug 2021 01:13:07 +0000 (10:13 +0900)]
Fix wrong USB1 pin setting

Since GP6_26 is used as USB1_PWEN, a collision occurs in the PFC
settings and the HSCIF2 is not working. Also, GP6_27 is not used
as USB1_OVC, and overcurrent detection is not working. This patch
fixes the incorrect pin settings for usb1 as described above.

Bug-AGL: SPEC-3658
Signed-off-by: ito.yoshiki001 <ito.yoshiki001@jp.panasonic.com>
Change-Id: If488a7d5ca4be0f3469a98f332821aead911e050

2 years agoarm-trusted-firmware: Update patch override 07/26507/2
Scott Murray [Wed, 21 Jul 2021 19:37:12 +0000 (15:37 -0400)]
arm-trusted-firmware: Update patch override

The override for the FDT deletion patch needs to be rcar-gen3
instead of agl-refhw-h3 so it will work when building with
MACHINE=h3ulcb in the AGL build as well as when building
standalone.

Bug-AGL: SPEC-3916

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: I87e61017bb753ecbe9904b4ecf0afd3d0824d8be

2 years agoarm-trusted-firmware: Fix BL2 fail on Renesas BSP 4.7.0. 40/26440/5
vasyl [Fri, 18 Jun 2021 08:18:33 +0000 (11:18 +0300)]
arm-trusted-firmware: Fix BL2 fail on Renesas BSP 4.7.0.

Backport [1] to fix boot error:

  NOTICE:  BL2: Cannot set compatible string, board unsupported

[1]: https://github.com/renesas-rcar/arm-trusted-firmware/commit/3ebd371fa1b1137ddee85b1825d1c1ce31c719d1

Bug-AGL: SPEC-3916
Change-Id: I5289437e71140d16a9e3505733b6423ec79ffe81
Signed-off-by: Vasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com>
2 years agoUpdate README 01/26501/1
Scott Murray [Tue, 13 Jul 2021 19:26:01 +0000 (15:26 -0400)]
Update README

Update meta-renesas branch information in README to document that the
v4.7.0 BSP release is what has been tested and is recommended.

Bug-AGL: SPEC-3992

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: Ia36b3be81ab7bfb285c020bb76249d2737e00312

2 years agoarm-trusted-firmware: Enable building in AGL build 68/26468/1
Scott Murray [Wed, 30 Jun 2021 18:10:57 +0000 (14:10 -0400)]
arm-trusted-firmware: Enable building in AGL build

Leverage the reworked extra_opl_ipt hook in the rcar3 BSP's
arm-trusted-firmware recipe as of BSP v4.7.0 to enable building the
reference hardware flavor of the firmware as an extra firmware
version when building with MACHINE=h3ulcb.  This will then enable
working inside the AGL build which combines the reference hardware
support into its h3ulcb build to avoid needing an extra platform
build.

Support for building standalone with MACHINE=agl-refhw-h3 has been
retained for potential use outside of the full AGL build.  The
firmware documentation has been reworked to document the build and
flashing procedure for both types of build.

Based on initial prototype by Vasyl Vavrychuk at:

https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl-refhw/+/26352

Bug-AGL: SPEC-3916

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: I5f74450851aeb4cb015a21e234709eca2014f378

3 years agoUpdate sound device name 50/26250/1 10.0.3 11.91.0 11.92.0 12.90.0 jellyfish/10.0.3 jellyfish_10.0.3 lamprey/11.91.0 lamprey/11.92.0 lamprey_11.91.0 lamprey_11.92.0 marlin/12.90.0 marlin_12.90.0
Scott Murray [Sun, 11 Apr 2021 22:11:12 +0000 (18:11 -0400)]
Update sound device name

Match change back to "ak4613" from "rcar-sound" for ULCB in BSP 4.70
so ALSA and WirePlumber configuration for ULCB will be picked up.

Bug-AGL: SPEC-3878

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: I50241c7fb991078e5df69ebc5ba845beda1b7157

3 years agoREADME: Fix typo: h3uclb -> h3ulcb 49/25849/1 sandbox/scottm/next-honister 10.92.0 10.93.0 koi/10.92.0 koi/10.93.0 koi_10.92.0 koi_10.93.0
Vasyl Vavrychuk [Tue, 22 Dec 2020 21:22:23 +0000 (23:22 +0200)]
README: Fix typo: h3uclb -> h3ulcb

Bug-AGL: SPEC-3708
Signed-off-by: Vasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com>
Change-Id: Ib81192a42fd055fc6fca9498a0027ed3977b2d59

3 years agoUpdate README 63/25763/1 10.91.0 koi/10.91.0 koi_10.91.0
Scott Murray [Mon, 7 Dec 2020 18:26:44 +0000 (13:26 -0500)]
Update README

Update top-level README to match the change to a "agl-refhw-h3"
feature in meta-agl that was integrated for Kooky Koi, and to
remove the note about HDMI issues, as they have been resolved.

Bug-AGL: SPEC-3708

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: Ic3e398abd47b0a79c8f0cb5847ebca2018fb924c

3 years agolinux-renesas: update driver for asm330lhh accel & gyro 38/25638/3 10.0.1 jellyfish/10.0.1 jellyfish_10.0.1
Raquel Medina [Wed, 25 Nov 2020 12:38:36 +0000 (13:38 +0100)]
linux-renesas: update driver for asm330lhh accel & gyro

Enable upstream kernel driver for asm330lhh: st_lsm6dsx,
and remove kernel driver st_asm330lhh introduced
previously via patch:
* update kernel config fragment to select st_lsm6dsx;
* update yocto recipe to remove patch adding
st_asm330lhh driver.

Bug-AGL: SPEC-3658
Signed-off-by: Raquel Medina <raquel.medina@konsulko.com>
Change-Id: I05e86130aab729f848ff18178fe74923c290ae00

3 years agoUpdate agl refhw patches for kernel 5.4 79/25579/1
Raquel Medina [Mon, 16 Nov 2020 03:05:13 +0000 (04:05 +0100)]
Update agl refhw patches for kernel 5.4

Rework agl refhw patches to apply to agl master
branch (linux-renesas v5.4/rcar-4.0.0).

Bug-AGL: SPEC-3658
Signed-off-by: Raquel Medina <raquel.medina@konsulko.com>
Change-Id: I0d69179c9acb9a28c9381c42927bda70a7589d61

3 years agoAdd dw-hdmi CEC IRQ muting patch
Scott Murray [Wed, 4 Nov 2020 23:08:49 +0000 (18:08 -0500)]
Add dw-hdmi CEC IRQ muting patch

Add patch with fix for dw-hdmi IRQ issues provided by Kato Kazuomi
from Panasonic.  This resolves the WARNING backtraces related to an
unhandled IRQ on boot and reading HDMI EDID.

Bug-AGL: SPEC-3658

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: I6103bbec094d63ccabcb1ec273b73d8a5c114a84

3 years agoEnable CONFIG_DRM_LOAD_EDID_FIRMWARE
Scott Murray [Thu, 29 Oct 2020 14:55:37 +0000 (10:55 -0400)]
Enable CONFIG_DRM_LOAD_EDID_FIRMWARE

Update reference hardware kernel configuration fragment to enable
CONFIG_DRM_LOAD_EDID_FIRMWARE.  This will allow using it as a
workaround for the HDMI EDID issues in a pinch.

Bug-AGL: SPEC-3658

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: I5616cdb19b694c5fa701e59916b91960b517a26a

3 years agoUpdate firmware documentation
Scott Murray [Mon, 26 Oct 2020 18:30:17 +0000 (14:30 -0400)]
Update firmware documentation

Changes:
- Add missing "optee-os" to bitbake command line for building the
  required firmware.
- Reorganize the firmware table to have the columns in the order
  that the information is needed for the EM_W commands.

Bug-AGL: SPEC-3658

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
3 years agoarm-trusted-firmware: add EL2 boot patch from meta-agl-bsp
Scott Murray [Mon, 26 Oct 2020 15:27:50 +0000 (11:27 -0400)]
arm-trusted-firmware: add EL2 boot patch from meta-agl-bsp

To generate a-t-f binaries equivalent to what is built for the other
H3 based boards in the AGL build process, add the KVM enabling patch
that is added by meta-agl-bsp.  It is still unclear if there is a
straightforward path to working the separate a-t-f build for the
reference hardware into the AGL h3ulcb build, so this duplication
seems like a necessary evil for now.

Bug-AGL: SPEC-3658

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
3 years agoAdd .gitreview
Scott Murray [Wed, 21 Oct 2020 22:24:31 +0000 (18:24 -0400)]
Add .gitreview

Add .gitreview file to enable "git review" command.

Bug-AGL: SPEC-3658

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
3 years agoRework for AGL UCB integration
Scott Murray [Wed, 21 Oct 2020 22:04:18 +0000 (18:04 -0400)]
Rework for AGL UCB integration

Changes include:
- The provided kernel patches have been reworked to not modify the
  salvator-x(s) devicetree source, but to introduce new files for the
  reference hardware instead.  There is some possibility that the
  reference hardware devicetree could be based off the the salvator-x
  with some work and perhaps splitting of the salvator-x source, but
  for now the aim is to avoid breaking the salvator-x(s) with the
  reference hardware changes.
- The modifications to the r8a7795 pinctrl driver have been replaced
  with a splitting of the USB interface OVC pins into their own pin
  groups, which has previously been done for other older Renesas
  hardware.  This allows booting the reference hardware off of the
  same kernel as other H3 boards, at the expense of minor devicetree
  modifications for them (e.g. h3ulcb).  There is likely some more
  work required if this needs to be upstreamed, as the ulcb.dtsi
  changes would mean that the pinctrl drivers for M3 would also need
  the new pin groups.
- All changes for the ST asm330lhh driver addtion have been moved to
  that patch to the kernel.
- A machine conf file has been added for "agl-refhw-h3", and the
  firmware documentation updated to document how to set up a build of
  the firmware using it.  This is required due to the firmware options
  from this layer's arm-trusted-firmware bbappend not being compatible
  with other H3 boards (eMMC versus Hyperflash boot).  A definition
  of the COMPATIBLE_MACHINE variable has been added to that bbappend
  to make sure that attempting to use it with another H3 machine will
  trigger an error.  In AGL, the bbappend will need to be masked out
  with BBMASK for now.
- The top-level README file has been updated to reflect the expected
  integration in AGL.

Bug-AGL: SPEC-3658

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
3 years agoInitial clean ups
Scott Murray [Tue, 20 Oct 2020 21:11:40 +0000 (17:11 -0400)]
Initial clean ups

Changes:
- Update the layer.conf to indicate dunfell compatibility and add
  LAYERDEPENDS definition to make layer dependencies explicit.
- Move kernel files to more expected recipes-kernel/linux directory.

Bug-AGL: SPEC-3658

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
3 years agoInitial check-in
Scott Murray [Tue, 20 Oct 2020 20:37:05 +0000 (16:37 -0400)]
Initial check-in

Initial check-in of the contents of the meta-refhw directory from
the AGL_Refhw_sample_software_20200512.tar.gz archive provided by
Panasonic as the initial BSP for the AGL reference hardware.  The
only change from the files as provided is that unneeded execute
file permissions have been removed.

Bug-AGL: SPEC-3658

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
3 years agoInitial empty repository
Jan-Simon Moeller [Tue, 20 Oct 2020 17:17:36 +0000 (17:17 +0000)]
Initial empty repository