mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2025-09-17 06:29:22 +00:00
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.12.43 Removed upstreamed: generic/backport-6.12/612-07-v6.17-net-dsa-b53-prevent-SWITCH_CTRL-access-on-BCM5325.patch[1] generic-backport/612-08-v6.17-net-dsa-b53-fix-IP_MULTICAST_CTRL-on-BCM5325.patch[2] generic-backport/612-09-v6.17-net-dsa-b53-prevent-DIS_LEARNING-access-on-BCM5325.patch[3] generic-backport/612-11-v6.17-net-dsa-b53-prevent-GMII_PORT_OVERRIDE_CTRL-access-on-BCM5325.patch[4] generic-backport/612-14-v6.17-net-dsa-b53-ensure-BCM5325-PHYs-are-enabled.patch[5] generic-backport/830-v6.17-Revert-leds-trigger-netdev-Configure-LED-blink-inter.patch[6] bcm27xx/patches-6.12/950-0100-media-tc358743-Increase-FIFO-level-to-374.patch[7] bcm27xx/patches-6.12/950-0102-media-tc358743-Check-I2C-succeeded-during-probe.patch[8] bcm27xx/patches-6.12/950-0107-media-tc358743-Return-an-appropriate-colorspace-from.patch[9] bcm27xx/patches-6.12/950-0341-Allow-RESET_BRCMSTB-on-ARCH_BCM2835.patch[10] lantiq/patches-6.12/102-11-v6.17-MIPS-lantiq-falcon-sysctrl-fix-request-memory-check-.patch[11] lantiq/patches-6.12/102-12-v6.17-MIPS-vpe-mt-add-missing-prototypes-for-vpe_-alloc-st.patch[12] qualcommax/patches-6.12/0170-clk-qcom-gcc-ipq8074-fix-broken-freq-table-for-nss_port6_tx_clk_src.patch[13] generic/backport-6.12/612-13-v6.17-net-dsa-b53-fix-b53_imp_vlan_setup-for-BCM5325.patch[14] All other patches automatically rebased. 1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.43&id=f16f96ccfe56ef2d627c20ba47f6d9d7dea40f5b 2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.43&id=394bd12d1f93ed2fa0fa1d8f31ffd3c344681e85 3. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.43&id=9f45e4858f8096bb27f9a2c75fc24a538dffad67 4. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.43&id=15cf46cc6ecc7a54b397294675d11c379ddf69ef 5. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.43&id=0d250ad617a035904744cef74a5d5dc43d0199b9 6. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.43&id=cb9bb872366e10fa42e1e0200a0c2e5d05a27bec 7. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.43&id=f25d566c5674decd0051a3e624805fc1524729bf 8. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.43&id=3e03ee3b65baeac4c253b30650492ffffad9b608 9. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.43&id=b42b107293b52ac8d46238815b1071138a47a7e4 10. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.43&id=e285cdb9d2e4ba2e4515ae898f92e9f38be64eb3 11. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.43&id=1e9079ff83eac962bc3b1e2fbad73b2f7d5256f4 12. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.43&id=8520c843d9a2770012f23da08e4e2ccf1bb05ba6 13. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.43&id=f1c5c55fb6cda312f5ed15505588caaf05a69043 14. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.43&id=757955c80663ac3df7053abaf6fcc75051ef7a7c Build system: x86/64 (Intel N150 based) Build-tested: flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3, x86/64-glibc Run-tested: flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3, x86/64-glibc Signed-off-by: John Audia <therealgraysky@proton.me> Link: https://github.com/openwrt/openwrt/pull/19618 Signed-off-by: Robert Marko <robimarko@gmail.com>
92 lines
3.3 KiB
Diff
92 lines
3.3 KiB
Diff
From 245f9bcd052ce74c843ac40d4cb45fe50cf634d1 Mon Sep 17 00:00:00 2001
|
|
From: Dave Stevenson <dave.stevenson@raspberrypi.org>
|
|
Date: Wed, 31 Oct 2018 14:57:21 +0000
|
|
Subject: [PATCH] media: tc358743: Add support for 972Mbit/s link freq.
|
|
|
|
Adds register setups for running the CSI lanes at 972Mbit/s,
|
|
which allows 1080P50 UYVY down 2 lanes.
|
|
|
|
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
|
|
|
|
media: tc358743: Add support for 972Mbit/s link freq.
|
|
|
|
Adds register setups for running the CSI lanes at 972Mbit/s,
|
|
which allows 1080P50 UYVY down 2 lanes.
|
|
|
|
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
|
|
|
|
media: i2c: tc358743: Fix fallthrough warning
|
|
|
|
Signed-off-by: Jacko Dirks <jdirks.linuxdev@gmail.com>
|
|
---
|
|
drivers/media/i2c/tc358743.c | 48 +++++++++++++++++++++++++-----------
|
|
1 file changed, 34 insertions(+), 14 deletions(-)
|
|
|
|
--- a/drivers/media/i2c/tc358743.c
|
|
+++ b/drivers/media/i2c/tc358743.c
|
|
@@ -1980,6 +1980,7 @@ static int tc358743_probe_of(struct tc35
|
|
/*
|
|
* The CSI bps per lane must be between 62.5 Mbps and 1 Gbps.
|
|
* The default is 594 Mbps for 4-lane 1080p60 or 2-lane 720p60.
|
|
+ * 972 Mbps allows 1080P50 UYVY over 2-lane.
|
|
*/
|
|
bps_pr_lane = 2 * endpoint.link_frequencies[0];
|
|
if (bps_pr_lane < 62500000U || bps_pr_lane > 1000000000U) {
|
|
@@ -1993,23 +1994,42 @@ static int tc358743_probe_of(struct tc35
|
|
state->pdata.refclk_hz * state->pdata.pll_prd;
|
|
|
|
/*
|
|
- * FIXME: These timings are from REF_02 for 594 Mbps per lane (297 MHz
|
|
- * link frequency). In principle it should be possible to calculate
|
|
+ * FIXME: These timings are from REF_02 for 594 or 972 Mbps per lane
|
|
+ * (297 MHz or 486 MHz link frequency).
|
|
+ * In principle it should be possible to calculate
|
|
* them based on link frequency and resolution.
|
|
*/
|
|
- if (bps_pr_lane != 594000000U)
|
|
+ switch (bps_pr_lane) {
|
|
+ default:
|
|
dev_warn(dev, "untested bps per lane: %u bps\n", bps_pr_lane);
|
|
- state->pdata.lineinitcnt = 0xe80;
|
|
- state->pdata.lptxtimecnt = 0x003;
|
|
- /* tclk-preparecnt: 3, tclk-zerocnt: 20 */
|
|
- state->pdata.tclk_headercnt = 0x1403;
|
|
- state->pdata.tclk_trailcnt = 0x00;
|
|
- /* ths-preparecnt: 3, ths-zerocnt: 1 */
|
|
- state->pdata.ths_headercnt = 0x0103;
|
|
- state->pdata.twakeup = 0x4882;
|
|
- state->pdata.tclk_postcnt = 0x008;
|
|
- state->pdata.ths_trailcnt = 0x2;
|
|
- state->pdata.hstxvregcnt = 0;
|
|
+ fallthrough;
|
|
+ case 594000000U:
|
|
+ state->pdata.lineinitcnt = 0xe80;
|
|
+ state->pdata.lptxtimecnt = 0x003;
|
|
+ /* tclk-preparecnt: 3, tclk-zerocnt: 20 */
|
|
+ state->pdata.tclk_headercnt = 0x1403;
|
|
+ state->pdata.tclk_trailcnt = 0x00;
|
|
+ /* ths-preparecnt: 3, ths-zerocnt: 1 */
|
|
+ state->pdata.ths_headercnt = 0x0103;
|
|
+ state->pdata.twakeup = 0x4882;
|
|
+ state->pdata.tclk_postcnt = 0x008;
|
|
+ state->pdata.ths_trailcnt = 0x2;
|
|
+ state->pdata.hstxvregcnt = 0;
|
|
+ break;
|
|
+ case 972000000U:
|
|
+ state->pdata.lineinitcnt = 0x1b58;
|
|
+ state->pdata.lptxtimecnt = 0x007;
|
|
+ /* tclk-preparecnt: 6, tclk-zerocnt: 40 */
|
|
+ state->pdata.tclk_headercnt = 0x2806;
|
|
+ state->pdata.tclk_trailcnt = 0x00;
|
|
+ /* ths-preparecnt: 6, ths-zerocnt: 8 */
|
|
+ state->pdata.ths_headercnt = 0x0806;
|
|
+ state->pdata.twakeup = 0x4268;
|
|
+ state->pdata.tclk_postcnt = 0x008;
|
|
+ state->pdata.ths_trailcnt = 0x5;
|
|
+ state->pdata.hstxvregcnt = 0;
|
|
+ break;
|
|
+ }
|
|
|
|
state->reset_gpio = devm_gpiod_get_optional(dev, "reset",
|
|
GPIOD_OUT_LOW);
|