2023-06-16 13:34:09

by Michael Walle

[permalink] [raw]
Subject: [PATCH 0/3] ARM: dts: lan966x: kontron-d10: device tree updates

Fixes board reset and SPI CS# of the Kontron D10 board. Since the
MaxLinear PHY now correctly handles interrupts, we can add the correct
hardware descrption.

Signed-off-by: Michael Walle <[email protected]>
---
Michael Walle (3):
ARM: dts: lan966x: kontron-d10: fix board reset
ARM: dts: lan966x: kontron-d10: fix SPI CS
ARM: dts: lan966x: kontron-d10: add PHY interrupts

.../dts/lan966x-kontron-kswitch-d10-mmt-8g.dts | 2 ++
.../boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi | 29 +++++++++++++++++++++-
2 files changed, 30 insertions(+), 1 deletion(-)
---
base-commit: f7efed9f38f886edb450041b82a6f15d663c98f8
change-id: 20230616-feature-d10-dt-cleanups-e79bd2e12518



2023-06-16 13:36:54

by Michael Walle

[permalink] [raw]
Subject: [PATCH 2/3] ARM: dts: lan966x: kontron-d10: fix SPI CS

The pinctrl node was missing which change the pin mux to GPIO mode.
Add it so we don't have to rely on the bootloader to set the correct
mode.

Fixes: 79d83b3a458e ("ARM: dts: lan966x: add basic Kontron KSwitch D10 support")
Signed-off-by: Michael Walle <[email protected]>
---
arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi b/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi
index f86e2e751403..2e16217ac88e 100644
--- a/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi
+++ b/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi
@@ -41,7 +41,7 @@ &flx3 {
status = "okay";

spi3: spi@400 {
- pinctrl-0 = <&fc3_b_pins>;
+ pinctrl-0 = <&fc3_b_pins>, <&spi3_cs_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
@@ -79,6 +79,12 @@ sgpio_b_pins: sgpio-b-pins {
function = "sgpio_b";
};

+ spi3_cs_pins: spi3-cs-pins {
+ /* CS# */
+ pins = "GPIO_46";
+ function = "gpio";
+ };
+
usart0_pins: usart0-pins {
/* RXD, TXD */
pins = "GPIO_25", "GPIO_26";

--
2.30.2


2023-06-21 09:49:08

by Claudiu Beznea

[permalink] [raw]
Subject: Re: [PATCH 0/3] ARM: dts: lan966x: kontron-d10: device tree updates

On 16.06.2023 16:18, Michael Walle wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> Fixes board reset and SPI CS# of the Kontron D10 board. Since the
> MaxLinear PHY now correctly handles interrupts, we can add the correct
> hardware descrption.
>
> Signed-off-by: Michael Walle <[email protected]>
> ---
> Michael Walle (3):
> ARM: dts: lan966x: kontron-d10: fix board reset
> ARM: dts: lan966x: kontron-d10: fix SPI CS
> ARM: dts: lan966x: kontron-d10: add PHY interrupts

Applied to at91-dt, thanks!