Skip to contentSkip to conversation

dt-bindings: arm64: mediatek: add Kontron 3.5"-SBC-i1200

PATCH Superseded Michael Walle 3 participants 6 messages Feb 21, 2024 – Mar 11, 2024

Subsystems (2)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/2 dt-bindings: arm64: mediatek: add Kontron 3.5"-SBC-i1200

Add the compatible string for the Kontron 3.5"-SBC-i1200 single board computer.

---
v3:
- drop description and add to mt8395 existing entry

v2:
- convert enum to const as there is only one specific board

---
 Documentation/devicetree/bindings/arm/mediatek.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/mediatek.yaml +1 -0
index 09f9ffd3ff7b..29ebe1f9c1d2 100644
@@ -353,6 +353,7 @@ properties:
           - const: mediatek,mt8365
       - items:
           - enum:
+              - kontron,3-5-sbc-i1200
               - mediatek,mt8395-evk
               - radxa,nio-12l
           - const: mediatek,mt8395
Signature · 1 line
2.39.2
#1 lore raw

PATCH v3 2/2 arm64: dts: mediatek: add Kontron 3.5"-SBC-i1200

Add basic support for the Kontron 3.5" single board computer featuring a Mediatek i1200 SoC (MT8395/MT8195).

---
v3:
- add vsys regulator
- correct the LDO input of the mt6360 regulator
- add missing interrupt-cells
- no underscores in node names
- dropped regulator-compatible everywhere and use the correc node name instead
- reordered mmc0 properties
- split mmc1 pinctrl properties, add no-mmc
- removed all MTK_DRIVE_8mA
- add i2c0 and i2c1
- add comments for spi and i2c busses
- add firmware-name property for scp (this should probably go into the base dtsi?!)
- add missing tpm compatible
- renamed thermal zones to something more meaningful
- add correct bias-pull-up to (some) i2c busses
- moved reset handling into the PHY node, also added a compatible string for the PHY.

Mh, my memory is hazy, but IIRC I run into the same problem which was discussed on netdev some time ago. That is, the PHY driver cannot be probed unless it is taken out of reset. Which will only happen if you probe it. And the workaround/advise was to use the compatible string in that case, which is unfortunate.
Just wanted to point out, that it is *not* the same as snps,reset-* because the latter will work just fine without the compatible. I'll go with the compatible for now.

I did *not* add the vbus to the USB ports, not even on the front port. That is because of:
dependencies:
connector: [ usb-role-switch ]
and we just have a simple USB3.2 USB-A connector, no dual roles. IMHO that is a bug in the driver, which should handle the vbus supply as optional.

v2:
- none

---
 arch/arm64/boot/dts/mediatek/Makefile         |    1 +
 .../mediatek/mt8395-kontron-3-5-sbc-i1200.dts | 1127 +++++++++++++++++
 2 files changed, 1128 insertions(+)
 create mode 100644 arch/arm64/boot/dts/mediatek/mt8395-kontron-3-5-sbc-i1200.dts
arch/arm64/boot/dts/mediatek/Makefile +1 -0
index 37b4ca3a87c9..697b6b5de3cb 100644
@@ -76,5 +76,6 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt8195-demo.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8195-evb.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8365-evk.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8395-genio-1200-evk.dtb
+dtb-$(CONFIG_ARCH_MEDIATEK) += mt8395-kontron-3-5-sbc-i1200.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8395-radxa-nio-12l.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8516-pumpkin.dtb
arch/arm64/boot/dts/mediatek/mt8395-kontron-3-5-sbc-i1200.dts new file +1127 -0

1,127 lines not on this page · raw message

Signature · 1 line
2.39.2
#2 lore raw

Re: [PATCH v3 2/2] arm64: dts: mediatek: add Kontron 3.5"-SBC-i1200

Hi,

Quoted 4 lines · Michael Walle

Add basic support for the Kontron 3.5" single board computer featuring a Mediatek i1200 SoC (MT8395/MT8195).

Any feedback on this? Should I repost after the merge window or is it fine as it is for now?

-michael

Quoted 40 lines

---
v3:
- add vsys regulator
- correct the LDO input of the mt6360 regulator
- add missing interrupt-cells
- no underscores in node names
- dropped regulator-compatible everywhere and use the correc node name instead
- reordered mmc0 properties
- split mmc1 pinctrl properties, add no-mmc
- removed all MTK_DRIVE_8mA
- add i2c0 and i2c1
- add comments for spi and i2c busses
- add firmware-name property for scp (this should probably go into the base dtsi?!)
- add missing tpm compatible
- renamed thermal zones to something more meaningful
- add correct bias-pull-up to (some) i2c busses
- moved reset handling into the PHY node, also added a compatible string for the PHY.

Mh, my memory is hazy, but IIRC I run into the same problem which was discussed on netdev some time ago. That is, the PHY driver cannot be probed unless it is taken out of reset. Which will only happen if you probe it. And the workaround/advise was to use the compatible string in that case, which is unfortunate.
Just wanted to point out, that it is *not* the same as snps,reset-* because the latter will work just fine without the compatible. I'll go with the compatible for now.

I did *not* add the vbus to the USB ports, not even on the front port. That is because of:
dependencies:
connector: [ usb-role-switch ]
and we just have a simple USB3.2 USB-A connector, no dual roles. IMHO that is a bug in the driver, which should handle the vbus supply as optional.

v2:
- none

maintainer Reviewed-by
#3 lore raw

Re: [PATCH v3 2/2] arm64: dts: mediatek: add Kontron 3.5"-SBC-i1200

Il 11/03/24 09:44, Michael Walle ha scritto:

Quoted 11 lines

Hi,

Quoted 4 lines · Michael Walle

Add basic support for the Kontron 3.5" single board computer featuring a Mediatek i1200 SoC (MT8395/MT8195).

Any feedback on this? Should I repost after the merge window or is it fine as it is for now?

My feedback is

...and no there's no need to repost after the merge window, at least, I'm not picky about that.

Though, if I ever forget about this one for *whatever reason*, please feel free to ping me or Matthias about it and we will make sure to pick it up.

Cheers!
Angelo

Quoted 42 lines

-michael

Quoted 40 lines

---
v3:
- add vsys regulator
- correct the LDO input of the mt6360 regulator
- add missing interrupt-cells
- no underscores in node names
- dropped regulator-compatible everywhere and use the correc node name instead
- reordered mmc0 properties
- split mmc1 pinctrl properties, add no-mmc
- removed all MTK_DRIVE_8mA
- add i2c0 and i2c1
- add comments for spi and i2c busses
- add firmware-name property for scp (this should probably go into the base dtsi?!)
- add missing tpm compatible
- renamed thermal zones to something more meaningful
- add correct bias-pull-up to (some) i2c busses
- moved reset handling into the PHY node, also added a compatible string for the PHY.

Mh, my memory is hazy, but IIRC I run into the same problem which was discussed on netdev some time ago. That is, the PHY driver cannot be probed unless it is taken out of reset. Which will only happen if you probe it. And the workaround/advise was to use the compatible string in that case, which is unfortunate.
Just wanted to point out, that it is *not* the same as snps,reset-* because the latter will work just fine without the compatible. I'll go with the compatible for now.

I did *not* add the vbus to the USB ports, not even on the front port. That is because of:
dependencies:
connector: [ usb-role-switch ]
and we just have a simple USB3.2 USB-A connector, no dual roles. IMHO that is a bug in the driver, which should handle the vbus supply as optional.

v2:
- none

Acked-by on v3 1/2
#4 lore raw
In reply to Michael Walle
Quoted 4 lines · Michael Walle

Add the compatible string for the Kontron 3.5"-SBC-i1200 single board computer.

Cheers,
Conor.

Quoted 25 lines

---
v3:
- drop description and add to mt8395 existing entry

v2:
- convert enum to const as there is only one specific board

---
 Documentation/devicetree/bindings/arm/mediatek.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/mediatek.yaml +1 -0
index 09f9ffd3ff7b..29ebe1f9c1d2 100644
@@ -353,6 +353,7 @@ properties:
           - const: mediatek,mt8365
       - items:
           - enum:
+              - kontron,3-5-sbc-i1200
               - mediatek,mt8395-evk
               - radxa,nio-12l
           - const: mediatek,mt8395
Signature · 1 line
2.39.2