- 15 Nov, 2022 4 commits
-
-
Nicolas Frattaroli authored
This patch enables the PCIe2 on the CM4IO board when paired with a SOQuartz CM4 System-on-Module board. combphy2 also needs to be enabled in this case to make the PHY work for this. Signed-off-by:
Nicolas Frattaroli <frattaroli.nicolas@gmail.com> Link: https://lore.kernel.org/r/20221112160404.70868-5-frattaroli.nicolas@gmail.comSigned-off-by:
Heiko Stuebner <heiko@sntech.de>
-
Nicolas Frattaroli authored
This patch enables the i2s0 node on SOQuartz, which is responsible for hdmi audio, and adds an hdmi-sound node to enable said audio. Signed-off-by:
Nicolas Frattaroli <frattaroli.nicolas@gmail.com> Link: https://lore.kernel.org/r/20221112160404.70868-4-frattaroli.nicolas@gmail.comSigned-off-by:
Heiko Stuebner <heiko@sntech.de>
-
Nicolas Frattaroli authored
This patch adds and enables the necessary device tree nodes to enable video output and HDMI functionality on the SOQuartz module. Signed-off-by:
Nicolas Frattaroli <frattaroli.nicolas@gmail.com> Link: https://lore.kernel.org/r/20221112160404.70868-3-frattaroli.nicolas@gmail.comSigned-off-by:
Heiko Stuebner <heiko@sntech.de>
-
Nicolas Frattaroli authored
This enables the Mali-G52 GPU on the SOQuartz CM4 module. Signed-off-by:
Nicolas Frattaroli <frattaroli.nicolas@gmail.com> Link: https://lore.kernel.org/r/20221112160404.70868-2-frattaroli.nicolas@gmail.comSigned-off-by:
Heiko Stuebner <heiko@sntech.de>
-
- 30 Oct, 2022 10 commits
-
-
Furkan Kardame authored
This patch adds nodes needed for pcie2 to work on rk3566-roc-pc Signed-off-by:
Furkan Kardame <f.kardame@manjaro.org> Link: https://lore.kernel.org/r/20221026172152.64513-1-f.kardame@manjaro.orgSigned-off-by:
Heiko Stuebner <heiko@sntech.de>
-
Chris Morgan authored
Update the Odroid Go Advance to use "poll-interval" from the adc-joystick driver. Signed-off-by:
Chris Morgan <macromorgan@hotmail.com> Signed-off-by:
Maya Matuszczyk <maccraft123mc@gmail.com> Link: https://lore.kernel.org/r/20220816210440.14260-4-macroalpha82@gmail.comSigned-off-by:
Heiko Stuebner <heiko@sntech.de>
-
Chris Morgan authored
Add adc-joystick polling for all Anbernic RGxx3 based devices. They are all functionally identical in how they work. Signed-off-by:
Chris Morgan <macromorgan@hotmail.com> Link: https://lore.kernel.org/r/20221028184045.13113-5-macroalpha82@gmail.comSigned-off-by:
Heiko Stuebner <heiko@sntech.de>
-
Chris Morgan authored
Add support for the internal battery and charger for the Anbernic RG353P and RG503. Battery values are taken from the BSP Kernel device tree. Signed-off-by:
Chris Morgan <macromorgan@hotmail.com> Link: https://lore.kernel.org/r/20221028184045.13113-4-macroalpha82@gmail.comSigned-off-by:
Heiko Stuebner <heiko@sntech.de>
-
Chris Morgan authored
Anbernic RG353V and RG353VS are both RK3566 based handheld gaming devices from Anbernic. They are functionally very similar to the RG353P with the following distinct differences: - The battery size of the RG353V and RG353VS is 3200mAh instead of 3500mAh. - The audio uses the PMIC's internal amplifier for a mono speaker instead of an external amplifier with stereo speakers. - The GPIOs for the R1 and R2 buttons are switched. As for the differences between the RG353V and RG353VS, they are as follows: - The RG353VS has no touchscreen on i2c2. - The RG353VS has no eMMC. - The RG353VS has 1GB of RAM instead of 2GB. Signed-off-by:
Chris Morgan <macromorgan@hotmail.com> Link: https://lore.kernel.org/r/20221028184045.13113-3-macroalpha82@gmail.comSigned-off-by:
Heiko Stuebner <heiko@sntech.de>
-
Chris Morgan authored
Add entry for the Anbernic RG353V and RG353VS handheld devices. Signed-off-by:
Chris Morgan <macromorgan@hotmail.com> Acked-by:
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20221028184045.13113-2-macroalpha82@gmail.comSigned-off-by:
Heiko Stuebner <heiko@sntech.de>
-
Shengyu Qu authored
This patch adds related bus/pinctrl/power nodes to enable support for Radxa's Wi-Fi Bluetooth combo module. Tested with RADXA A6 module, which uses AP6275S (BCM43752A2) Signed-off-by:
Shengyu Qu <wiagn233@outlook.com> Link: https://lore.kernel.org/r/OS3P286MB25972313C916A68698B1CD8698359@OS3P286MB2597.JPNP286.PROD.OUTLOOK.COMSigned-off-by:
Heiko Stuebner <heiko@sntech.de>
-
Shengyu Qu authored
This patch adds I2S2 node for Radxa Rock 3A's M.2 E key slot for Bluetooth PCM input. I2S2 is not used now, but could be configured for Bluetooth HFP over PCM in future patches. Signed-off-by:
Shengyu Qu <wiagn233@outlook.com> Link: https://lore.kernel.org/r/OS3P286MB259791E603F96942F51332D098359@OS3P286MB2597.JPNP286.PROD.OUTLOOK.COMSigned-off-by:
Heiko Stuebner <heiko@sntech.de>
-
Shengyu Qu authored
This patch adds I2S2 device tree node for RK3566/RK3568. Signed-off-by:
Shengyu Qu <wiagn233@outlook.com> Link: https://lore.kernel.org/r/OS3P286MB259771C12F2B15A4DDF435FE98359@OS3P286MB2597.JPNP286.PROD.OUTLOOK.COMSigned-off-by:
Heiko Stuebner <heiko@sntech.de>
-
Heiko Stuebner authored
Move the node to its correct position, based on its mmio-address. Link: https://lore.kernel.org/all/20221030193708.1671069-1-heiko@sntech.deSigned-off-by:
Heiko Stuebner <heiko@sntech.de>
-
- 29 Oct, 2022 3 commits
-
-
Corentin Labbe authored
The rk3399 has a crypto IP handled by the rk3288 crypto driver so adds a node for it. Tested-by Diederik de Haas <didi.debian@cknow.org> Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Link: https://lore.kernel.org/r/20220927075511.3147847-29-clabbe@baylibre.comSigned-off-by:
Heiko Stuebner <heiko@sntech.de>
-
Corentin Labbe authored
rk3328 has a crypto IP handled by the rk3288 crypto driver so adds a node for it. Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Link: https://lore.kernel.org/r/20220927075511.3147847-28-clabbe@baylibre.comSigned-off-by:
Heiko Stuebner <heiko@sntech.de>
-
Heiko Stuebner authored
-
- 18 Oct, 2022 1 commit
-
-
FUKAUMI Naoki authored
add and enable Temperature Sensor ADC for Radxa ROCK 4C+ Signed-off-by:
FUKAUMI Naoki <naoki@radxa.com> Link: https://lore.kernel.org/r/20221018072242.2348995-1-naoki@radxa.comSigned-off-by:
Heiko Stuebner <heiko@sntech.de>
-
- 17 Oct, 2022 19 commits
-
-
Corentin Labbe authored
RK3399 has 2 crypto instance, named crypto0 and crypto1 in the TRM. Only reset for crypto1 is correctly named, but crypto0 is not. Since nobody use them, add a 0 to be consistent with the TRM and crypto1 entries. Acked-by:
Rob Herring <robh@kernel.org> Signed-off-by:
Corentin Labbe <clabbe@baylibre.com> Acked-by:
Stephen Boyd <sboyd@kernel.org> Link: https://lore.kernel.org/r/20220927075511.3147847-27-clabbe@baylibre.comSigned-off-by:
Heiko Stuebner <heiko@sntech.de>
-
Tom Fitzhenry authored
Pinephone Pro includes a AzureWave AW-CM256SM wifi (sdio0) and bt (uart0) combo module, which is based on Cypress CYP43455 (BCM43455). The CYP43455 datasheet ("Power-Up Sequence and Timing") documents: * needing to wait 10ms between consecutive WL_REG_ON toggles * needing to wait 110ms between power-on and SDIO access. Signed-off-by:
Tom Fitzhenry <tom@tom-fitzhenry.me.uk> Reviewed-by:
Ondřej Jirman <megi@xff.cz> Link: https://lore.kernel.org/r/20221002092809.451501-1-tom@tom-fitzhenry.me.ukSigned-off-by:
Heiko Stuebner <heiko@sntech.de>
-
Chukun Pan authored
Add Nodes to Radxa ROCK3 Model A board to support PCIe v3. Tested-by:
Anand Moon <linux.amoon@gmail.com> Signed-off-by:
Chukun Pan <amadeus@jmu.edu.cn> Link: https://lore.kernel.org/r/20221006152524.502445-3-amadeus@jmu.edu.cnSigned-off-by:
Heiko Stuebner <heiko@sntech.de>
-
Chukun Pan authored
Add -regulator suffix to regulator names on Radxa ROCK3 Model A board. This makes the naming more consistent. Signed-off-by:
Chukun Pan <amadeus@jmu.edu.cn> Acked-by:
Michael Riesch <michael.riesch@wolfvision.net> Link: https://lore.kernel.org/r/20221006152524.502445-2-amadeus@jmu.edu.cnSigned-off-by:
Heiko Stuebner <heiko@sntech.de>
-
Aurelien Jarno authored
Add the infrared receiver and its associated pinctrl entry. Note that there is an external pullup to VCC3V3_SYS. Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net> Tested-by:
Dan Johansen <strit@manjaro.org> Link: https://lore.kernel.org/r/20220930051246.391614-14-aurelien@aurel32.netSigned-off-by:
Heiko Stuebner <heiko@sntech.de>
-
Aurelien Jarno authored
Add nodes to ODROID-M1 to support PCIe v3 on the M2 slot. Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net> Tested-by:
Dan Johansen <strit@manjaro.org> Link: https://lore.kernel.org/r/20220930051246.391614-13-aurelien@aurel32.netSigned-off-by:
Heiko Stuebner <heiko@sntech.de>
-
Aurelien Jarno authored
Enable the Combo PHY and SATA nodes in ODROID-M1. Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net> Tested-by:
Dan Johansen <strit@manjaro.org> Link: https://lore.kernel.org/r/20220930051246.391614-12-aurelien@aurel32.netSigned-off-by:
Heiko Stuebner <heiko@sntech.de>
-
Aurelien Jarno authored
The Rockchip RK3568 has two USB XHCI controllers. The USB 2.0 signals are connected to a PHY providing one host-only port and one OTG port. The USB 3.0 signals are connected to two USB3.0/PCIE/SATA combo PHY. The ODROID M1 has 2 type A USB 3.0 connectors, with the USB 3.0 signals connected to the two combo PHYs. For the USB 2.0 signals, one connector is connected to the host-only PHY and uses the same power switch as the USB 2.0 ports. The other connector has its own power switch and is connected to the OTG PHY, which is also connected to a device only micro-USB connector. The purpose of this micro-USB connector is for firmware update using the Rockusb vendor specific USB class. Therefore it does not make sense to enable this port on Linux, and the PHY is forced to host mode. Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net> Tested-by:
Dan Johansen <strit@manjaro.org> Link: https://lore.kernel.org/r/20220930051246.391614-11-aurelien@aurel32.netSigned-off-by:
Heiko Stuebner <heiko@sntech.de>
-
Aurelien Jarno authored
The Rockchip RK3568 has two USB OHCI/EHCI controllers connected to a PHY providing one host-only port and one OTG port. On the ODROID-M1, they are both used in host mode. The USB ports are powered by a DC/DC converter providing 5V and named VCC5V0_SYS on the schematics, followed by a power switch. Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net> Tested-by:
Dan Johansen <strit@manjaro.org> Link: https://lore.kernel.org/r/20220930051246.391614-10-aurelien@aurel32.netSigned-off-by:
Heiko Stuebner <heiko@sntech.de>
-
Aurelien Jarno authored
Enable the GPU core on the Rockchip RK3568 ODROID-M1. Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net> Tested-by:
Dan Johansen <strit@manjaro.org> Link: https://lore.kernel.org/r/20220930051246.391614-9-aurelien@aurel32.netSigned-off-by:
Heiko Stuebner <heiko@sntech.de>
-
Aurelien Jarno authored
This enables the i2s0 controller and the hdmi-sound node on the ODROID-M1. Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net> Tested-by:
Dan Johansen <strit@manjaro.org> Link: https://lore.kernel.org/r/20220930051246.391614-8-aurelien@aurel32.netSigned-off-by:
Heiko Stuebner <heiko@sntech.de>
-
Aurelien Jarno authored
Enable the RK356x Video Output Processor (VOP) 2 on ODROID M1. Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net> Tested-by:
Dan Johansen <strit@manjaro.org> Link: https://lore.kernel.org/r/20220930051246.391614-7-aurelien@aurel32.netSigned-off-by:
Heiko Stuebner <heiko@sntech.de>
-
Aurelien Jarno authored
On the ODROID-M1, the I2S1 TDM controller is connected to the rk809 codec in I2S mode. It is used to provide a stereo headphones output and a mono speaker output. A GPIO with an external pullup is used as an headphone detection input. Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net> Tested-by:
Dan Johansen <strit@manjaro.org> Link: https://lore.kernel.org/r/20220930051246.391614-6-aurelien@aurel32.netSigned-off-by:
Heiko Stuebner <heiko@sntech.de>
-
Aurelien Jarno authored
Enable the Rockchip Serial Flash Controller for the ODROID-M1 and add the corresponding SPI NOR flash entry. The SFC is used in dual I/O mode and not quad I/O mode, as the FSPI_D2 pin is shared with the EMMC_RSTn pin. The partitions addresses and sizes are taken from the ODROID-M1 Partition Table page on the ODROID wiki. Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net> Tested-by:
Dan Johansen <strit@manjaro.org> Link: https://lore.kernel.org/r/20220930051246.391614-5-aurelien@aurel32.netSigned-off-by:
Heiko Stuebner <heiko@sntech.de>
-
Aurelien Jarno authored
Add the thermal nodes for the ODROID-M1. Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net> Tested-by:
Dan Johansen <strit@manjaro.org> Link: https://lore.kernel.org/r/20220930051246.391614-4-aurelien@aurel32.netSigned-off-by:
Heiko Stuebner <heiko@sntech.de>
-
Dongjin Kim authored
This patch is to add a device tree for new board Hardkernel ODROID-M1 based on Rockchip RK3568, includes basic peripherals - uart/eMMC/uSD/i2c and on-board ethernet. Signed-off-by:
Dongjin Kim <tobetter@gmail.com> [aurelien@aurel32.net: addressed issues from initial review] Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net> Tested-by:
Dan Johansen <strit@manjaro.org> Link: https://lore.kernel.org/r/20220930051246.391614-3-aurelien@aurel32.netSigned-off-by:
Heiko Stuebner <heiko@sntech.de>
-
Dongjin Kim authored
Add device tree binding for Hardkernel ODROID-M1 board based on RK3568 SoC. Signed-off-by:
Dongjin Kim <tobetter@gmail.com> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net> Acked-by:
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Tested-by:
Dan Johansen <strit@manjaro.org> Link: https://lore.kernel.org/r/20220930051246.391614-2-aurelien@aurel32.netSigned-off-by:
Heiko Stuebner <heiko@sntech.de>
-
Quentin Schulz authored
Add entry for the Theobroma Systems PX30-µQ7 (Ringneck) with Haikou devkit. Acked-by:
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by:
Quentin Schulz <quentin.schulz@theobroma-systems.com> Link: https://lore.kernel.org/r/20220930-upstream-ringneck-v2-2-6671694b6934@theobroma-systems.comSigned-off-by:
Heiko Stuebner <heiko@sntech.de>
-
Quentin Schulz authored
The PX30-uQ7 (Ringneck) SoM is a µQseven-compatible (40mmx70mm, MXM-230 connector) system-on-module from Theobroma Systems[1], featuring the Rockchip PX30. It provides the following feature set: * up to 4GB DDR4 * up to 128GB on-module eMMC (with 8-bit 1.8V interface) * SD card (on a baseboard) via edge connector * Fast Ethernet with on-module TI DP83825I PHY * MIPI-DSI/LVDS * MIPI-CSI * USB - 1x USB 2.0 dual-role - 3x USB 2.0 host * on-module STM32 Cortex-M0 companion controller, implementing: - low-power RTC functionality (ISL1208 emulation) - fan controller (AMC6821 emulation) - USB<->CAN bridge controller * on-module Espressif ESP32 for Bluetooth + 2.4GHz WiFi * on-module NXP SE05x Secure Element [1] https://www.theobroma-systems.com/som-product/px30-%C2%B5q7/Signed-off-by:
Quentin Schulz <quentin.schulz@theobroma-systems.com> Link: https://lore.kernel.org/r/20220930-upstream-ringneck-v2-1-6671694b6934@theobroma-systems.comSigned-off-by:
Heiko Stuebner <heiko@sntech.de>
-
- 16 Oct, 2022 3 commits
-
-
Linus Torvalds authored
-
git://git.kernel.org/pub/scm/linux/kernel/git/crng/randomLinus Torvalds authored
Pull more random number generator updates from Jason Donenfeld: "This time with some large scale treewide cleanups. The intent of this pull is to clean up the way callers fetch random integers. The current rules for doing this right are: - If you want a secure or an insecure random u64, use get_random_u64() - If you want a secure or an insecure random u32, use get_random_u32() The old function prandom_u32() has been deprecated for a while now and is just a wrapper around get_random_u32(). Same for get_random_int(). - If you want a secure or an insecure random u16, use get_random_u16() - If you want a secure or an insecure random u8, use get_random_u8() - If you want secure or insecure random bytes, use get_random_bytes(). The old function prandom_bytes() has been deprecated for a while now and has long been a wrapper around get_random_bytes() - If you want a non-uniform random u32, u16, or u8 bounded by a certain open interval maximum, use prandom_u32_max() I say "non-uniform", because it doesn't do any rejection sampling or divisions. Hence, it stays within the prandom_*() namespace, not the get_random_*() namespace. I'm currently investigating a "uniform" function for 6.2. We'll see what comes of that. By applying these rules uniformly, we get several benefits: - By using prandom_u32_max() with an upper-bound that the compiler can prove at compile-time is ≤65536 or ≤256, internally get_random_u16() or get_random_u8() is used, which wastes fewer batched random bytes, and hence has higher throughput. - By using prandom_u32_max() instead of %, when the upper-bound is not a constant, division is still avoided, because prandom_u32_max() uses a faster multiplication-based trick instead. - By using get_random_u16() or get_random_u8() in cases where the return value is intended to indeed be a u16 or a u8, we waste fewer batched random bytes, and hence have higher throughput. This series was originally done by hand while I was on an airplane without Internet. Later, Kees and I worked on retroactively figuring out what could be done with Coccinelle and what had to be done manually, and then we split things up based on that. So while this touches a lot of files, the actual amount of code that's hand fiddled is comfortably small" * tag 'random-6.1-rc1-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/crng/random: prandom: remove unused functions treewide: use get_random_bytes() when possible treewide: use get_random_u32() when possible treewide: use get_random_{u8,u16}() when possible, part 2 treewide: use get_random_{u8,u16}() when possible, part 1 treewide: use prandom_u32_max() when possible, part 2 treewide: use prandom_u32_max() when possible, part 1
-
Linus Torvalds authored
Merge tag 'perf-tools-for-v6.1-2-2022-10-16' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux Pull more perf tools updates from Arnaldo Carvalho de Melo: - Use BPF CO-RE (Compile Once, Run Everywhere) to support old kernels when using bperf (perf BPF based counters) with cgroups. - Support HiSilicon PCIe Performance Monitoring Unit (PMU), that monitors bandwidth, latency, bus utilization and buffer occupancy. Documented in Documentation/admin-guide/perf/hisi-pcie-pmu.rst. - User space tasks can migrate between CPUs, so when tracing selected CPUs, system-wide sideband is still needed, fix it in the setup of Intel PT on hybrid systems. - Fix metricgroups title message in 'perf list', it should state that the metrics groups are to be used with the '-M' option, not '-e'. - Sync the msr-index.h copy with the kernel sources, adding support for using "AMD64_TSC_RATIO" in filter expressions in 'perf trace' as well as decoding it when printing the MSR tracepoint arguments. - Fix program header size and alignment when generating a JIT ELF in 'perf inject'. - Add multiple new Intel PT 'perf test' entries, including a jitdump one. - Fix the 'perf test' entries for 'perf stat' CSV and JSON output when running on PowerPC due to an invalid topology number in that arch. - Fix the 'perf test' for arm_coresight failures on the ARM Juno system. - Fix the 'perf test' attr entry for PERF_FORMAT_LOST, adding this option to the or expression expected in the intercepted perf_event_open() syscall. - Add missing condition flags ('hs', 'lo', 'vc', 'vs') for arm64 in the 'perf annotate' asm parser. - Fix 'perf mem record -C' option processing, it was being chopped up when preparing the underlying 'perf record -e mem-events' and thus being ignored, requiring using '-- -C CPUs' as a workaround. - Improvements and tidy ups for 'perf test' shell infra. - Fix Intel PT information printing segfault in uClibc, where a NULL format was being passed to fprintf. * tag 'perf-tools-for-v6.1-2-2022-10-16' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux: (23 commits) tools arch x86: Sync the msr-index.h copy with the kernel sources perf auxtrace arm64: Add support for parsing HiSilicon PCIe Trace packet perf auxtrace arm64: Add support for HiSilicon PCIe Tune and Trace device driver perf auxtrace arm: Refactor event list iteration in auxtrace_record__init() perf tests stat+json_output: Include sanity check for topology perf tests stat+csv_output: Include sanity check for topology perf intel-pt: Fix system_wide dummy event for hybrid perf intel-pt: Fix segfault in intel_pt_print_info() with uClibc perf test: Fix attr tests for PERF_FORMAT_LOST perf test: test_intel_pt.sh: Add 9 tests perf inject: Fix GEN_ELF_TEXT_OFFSET for jit perf test: test_intel_pt.sh: Add jitdump test perf test: test_intel_pt.sh: Tidy some alignment perf test: test_intel_pt.sh: Print a message when skipping kernel tracing perf test: test_intel_pt.sh: Tidy some perf record options perf test: test_intel_pt.sh: Fix return checking again perf: Skip and warn on unknown format 'configN' attrs perf list: Fix metricgroups title message perf mem: Fix -C option behavior for perf mem record perf annotate: Add missing condition flags for arm64 ...
-