Welcome! Log In Create A New Profile

Advanced

Promwad-ThinClient - can't boot 6.11 kernel

Posted by cmp18 
Re: Promwad-ThinClient - can't boot 6.11 kernel
January 01, 2025 11:47PM
MM & cmp18,

Thanks for the log.

Yes, the i2c pinctrl error need to be fixed before we can see the hub spins up or not!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
MM
Re: Promwad-ThinClient - can't boot 6.11 kernel
January 02, 2025 10:47AM
bodhi, cmp18


6282 has two i2c buses, may be 64 is valid addres for second?

http://lists.infradead.org/pipermail/linux-arm-kernel/2013-January/145043.html
MM
Re: Promwad-ThinClient - can't boot 6.11 kernel
January 02, 2025 12:07PM
...

from kirkwood-6282.dtsi:


/*
			 * Default I2C1 pinctrl setting on mpp36/mpp37,
			 * overwrite marvell,pins on board level if required.
			 */
			pmx_twsi1: pmx-twsi1 {
				marvell,pins = "mpp36", "mpp37";
				marvell,function = "twsi1";
			};

in the 6282 dtsi i2c1 is defined, not i2c0
Re: Promwad-ThinClient - can't boot 6.11 kernel
January 02, 2025 01:41PM
MM,

> in the 6282 dtsi i2c1 is defined, not i2c0

i2c0 is defined in kirkwood.dtsi. Look at the include chain. Usually, a board uses i2c0, unless it is more complex and needs i2c1.

People have seen 64 as the 2nd address, but nobody has bothered trying to figure out whether it is i2c1. The guess is it is for debugging purpose.

===
edit: typos

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 01/02/2025 02:56PM by bodhi.
Re: Promwad-ThinClient - can't boot 6.11 kernel
January 02, 2025 01:45PM
Here is another version for the DTB.

In retrospect, using the OpenBlocks A7 board DTS as a base was my mistake. By now, I've realized that it has almost nothing in common with the PrompWad.

We'll need to strip out more nodes from this DTS. But for now, it is to solve the USB problem first so I let it stay the way it is, unless there is a conflict.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - kirkwood-promwad-thin-client.dtb (11.3 KB)
open | download - kirkwood-promwad-thin-client.dts (2.7 KB)
MM
Re: Promwad-ThinClient - can't boot 6.11 kernel
January 02, 2025 03:16PM
bodhi,

cool,

pin8 and pin9 (twsi0) was busy by uart1

Thanks!

====
edit: i reread pin functions and dts)



Edited 1 time(s). Last edit at 01/02/2025 11:56PM by MM.
MM
Re: Promwad-ThinClient - can't boot 6.11 kernel
January 03, 2025 09:24AM
bodhi,

log with new DTB
Attachments:
open | download - 03_01_log.txt (80.8 KB)
MM
Re: Promwad-ThinClient - can't boot 6.11 kernel
January 03, 2025 10:38AM
the new box seems to have problems(

log from the old one
Attachments:
open | download - new_log.txt (26.7 KB)
Re: Promwad-ThinClient - can't boot 6.11 kernel
January 09, 2025 10:33PM
MM,

The patch linux-3.1.1_r1416.patch is quite confusing. I think the patch is wrong.

i2c0 is for the Audio device.
+static struct i2c_board_info i2c0_board_info[] __initdata = {
+	{
+		I2C_BOARD_INFO("alc5621", 0x1a),
+		.platform_data = &alc5621_data,
+	},
+};

But the USB hub is on i2c1 only and if it is not Thin Client.

+#ifdef CONFIG_WTPLUG_THINCLIENT
+static struct alc5623_platform_data alc5621_data = {
+	.add_ctrl = 0x3700,
+	.jack_det_ctrl = 0x4980,
+};
+
+static struct i2c_board_info i2c0_board_info[] __initdata = {
+	{
+		I2C_BOARD_INFO("alc5621", 0x1a),
+		.platform_data = &alc5621_data,
+	},
+};
+
+#else
+
+static struct i2c_board_info i2c1_board_info[] __initdata = {
+	{
+		I2C_BOARD_INFO("usb2514", 0x2c),
+	},
+};
+
+#endif


+#ifndef CONFIG_WTPLUG_THINCLIENT
+	platform_device_register(&wtplug_leds);
+	/* set poweroff function */
+	pm_power_off = wtplug_poweroff;
+	
+#if defined(CONFIG_USB_251XHUB)
+	usb2514_hub_to_smbus();
+#endif
+	i2c_register_board_info(1, i2c1_board_info,
+			ARRAY_SIZE(i2c1_board_info));
+#endif
+#ifdef CONFIG_WTPLUG_THINCLIENT
+	i2c_register_board_info(0, i2c0_board_info,
+		ARRAY_SIZE(i2c0_board_info));
+	kirkwood_audio_init();
+#endif

Could you try

i2c probe 0
i2c probe 1

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 01/09/2025 10:35PM by bodhi.
MM
Re: Promwad-ThinClient - can't boot 6.11 kernel
January 10, 2025 12:56PM
bodhi,

u-boot i2c probe:

Marvell>> i2c probe
Valid chip addresses: 1A 64
Marvell>> i2c probe 0
Valid chip addresses: 1A 64
Marvell>> i2c probe 1
Valid chip addresses: 1A 64
Marvell>>
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: