Skip to contentSkip to conversation

dt-bindings: arm64: dts: mediatek: Add mt8395-evk board

PATCH Superseded Macpaul Lin 4 participants 25 messages Sep 4, 2023 – Sep 7, 2023

Subsystems (2)

v1 of 8 Superseded Latest is v8 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 dt-bindings: arm64: dts: mediatek: Add mt8395-evk board

Add bindings for the MediaTek mt8395-evk board. The mt8359-evk board is also named as "Genio 1200-EVK". MT8195 and MT8395 are the same family series SoC could share many of the peripheral drivers.

---
 Documentation/devicetree/bindings/arm/mediatek.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/mediatek.yaml +1 -0
index ae12b1cab9fb..685b461fda28 100644
@@ -171,6 +171,7 @@ properties:
           - enum:
               - mediatek,mt8195-demo
               - mediatek,mt8195-evb
+              - mediatek,mt8395-evk
           - const: mediatek,mt8195
       - description: Google Burnet (HP Chromebook x360 11MK G3 EE)
         items:
Signature · 1 line
2.18.0
#1 lore raw

PATCH 2/2 arm64: dts: mediatek: add device-tree for Genio 1200 EVK board

Add basic device-tree for the Genio 1200 EVK board. The Demo board is made by MediaTek and has a MT8395 SoC (MT8195 family), associated with the MT6359 and MT6360 PMICs, and
the MT7921 connectivity chip.

The IOs available on that board are:
* 1 USB Type-C connector with DP aux mode support
* 2 USB Type-A connector with a USB hub
* 1 micro-USB port for gadget or OTG support
* 1 full size HDMI RX and 1 full size HDMI TX connector
* 1 micro SD slot
* 40 pins header
* SPI interface header
* 1 M.2 slot
* 1 audio jack
* 1 micro-USB port for serial debug
* 2 connectors for DSI displays, 1 of the DSI panel is installed
* 3 connectors for CSI cameras
* 1 connector for a eDP panel
* 1 MMC storage
* 1 Touch Panel (installed DSI display)
* 1 M.2 slot for 5G dongle

This commit adds basic support in order to be able to boot.

---
 arch/arm64/boot/dts/mediatek/Makefile         |   1 +
 .../boot/dts/mediatek/genio-1200-evk.dts      | 931 ++++++++++++++++++
 2 files changed, 932 insertions(+)
 create mode 100644 arch/arm64/boot/dts/mediatek/genio-1200-evk.dts

Notes for v1:
- This dts patch has been checked with 'make dtbs_check W=1', however, some warnings are caused by mt8195.dtsi, should be fixed by separate patches.

arch/arm64/boot/dts/mediatek/Makefile +1 -0
index c99c3372a4b5..5bf29581f08b 100644
@@ -1,4 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0
+dtb-$(CONFIG_ARCH_MEDIATEK) += genio-1200-evk.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt2712-evb.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt6755-evb.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt6779-evb.dtb
arch/arm64/boot/dts/mediatek/genio-1200-evk.dts new file +931 -0

931 lines not on this page · raw message

Signature · 1 line
2.18.0
#2 lore raw

Re: [PATCH 2/2] arm64: dts: mediatek: add device-tree for Genio 1200 EVK board

Quoted 64 lines · Macpaul Lin

Add basic device-tree for the Genio 1200 EVK board. The Demo board is made by MediaTek and has a MT8395 SoC (MT8195 family), associated with the MT6359 and MT6360 PMICs, and
the MT7921 connectivity chip.

The IOs available on that board are:
* 1 USB Type-C connector with DP aux mode support
* 2 USB Type-A connector with a USB hub
* 1 micro-USB port for gadget or OTG support
* 1 full size HDMI RX and 1 full size HDMI TX connector
* 1 micro SD slot
* 40 pins header
* SPI interface header
* 1 M.2 slot
* 1 audio jack
* 1 micro-USB port for serial debug
* 2 connectors for DSI displays, 1 of the DSI panel is installed
* 3 connectors for CSI cameras
* 1 connector for a eDP panel
* 1 MMC storage
* 1 Touch Panel (installed DSI display)
* 1 M.2 slot for 5G dongle

This commit adds basic support in order to be able to boot.

---
 arch/arm64/boot/dts/mediatek/Makefile         |   1 +
 .../boot/dts/mediatek/genio-1200-evk.dts      | 931 ++++++++++++++++++
 2 files changed, 932 insertions(+)
 create mode 100644 arch/arm64/boot/dts/mediatek/genio-1200-evk.dts

Notes for v1:
- This dts patch has been checked with 'make dtbs_check W=1', however, some warnings are caused by mt8195.dtsi, should be fixed by separate patches.

arch/arm64/boot/dts/mediatek/Makefile +1 -0
index c99c3372a4b5..5bf29581f08b 100644
@@ -1,4 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0
+dtb-$(CONFIG_ARCH_MEDIATEK) += genio-1200-evk.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt2712-evb.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt6755-evb.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt6779-evb.dtb
arch/arm64/boot/dts/mediatek/genio-1200-evk.dts new file +11 -0
new file mode 100644
index 000000000000..696ad535ac8f
@@ -0,0 +1,931 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+/*
+ * Copyright (C) 2023 MediaTek Inc.
+ * Author: Ben Lok <[email protected]>
+ *	   Macpaul Lin <[email protected]>
+ */
+/dts-v1/;
+
+#include "mt8195.dtsi"
+#include "mt6359.dtsi"
+#include <dt-bindings/gpio/gpio.h>

arch/arm64/boot/dts/mediatek/genio-1200-evk.dts line 21

Quoted 10 lines
arch/arm64/boot/dts/mediatek/genio-1200-evk.dts new file +10 -0
+#include <dt-bindings/input/input.h>
+#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/pinctrl/mt8195-pinfunc.h>
+#include <dt-bindings/regulator/mediatek,mt6360-regulator.h>
+#include <dt-bindings/spmi/spmi.h>
+#include <dt-bindings/usb/pd.h>
+
+/ {
+	model = "MediaTek Genio 1200 EVK-P1V2-EMMC";
+	compatible = "mediatek,mt8395-evk", "mediatek,mt8195";

In the binding patch you said mt8395 is a SoC, so you miss here its compatible.

Quoted 18 lines
arch/arm64/boot/dts/mediatek/genio-1200-evk.dts new file +18 -0
+
+	aliases {
+		serial0 = &uart0;
+		ethernet0 = &eth;
+	};
+
+	chosen {
+		stdout-path = "serial0:921600n8";
+	};
+
+	firmware {
+		optee {
+			compatible = "linaro,optee-tz";
+			method = "smc";
+		};
+	};
+
+	memory@40000000 {

arch/arm64/boot/dts/mediatek/genio-1200-evk.dts line 49

Quoted 10 lines
arch/arm64/boot/dts/mediatek/genio-1200-evk.dts new file +10 -0
+		device_type = "memory";
+		reg = <0 0x40000000 0x2 0x00000000>;
+	};
+
+	reserved-memory {
+		#address-cells = <2>;
+		#size-cells = <2>;
+		ranges;
+
+		/* 12 MiB reserved for OP-TEE (BL32)

Use Linux coding style comments.

arch/arm64/boot/dts/mediatek/genio-1200-evk.dts line 151

Quoted 8 lines
arch/arm64/boot/dts/mediatek/genio-1200-evk.dts new file +8 -0
+	can_clk: can-clk {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <20000000>;
+		clock-output-names = "can-clk";
+	};
+
+	wifi_pwr_fixed_3v3: wifi-pwr-fixed-3v3 {

And this is not a regulator? All other nodes are called regulator-X

Quoted 9 lines
arch/arm64/boot/dts/mediatek/genio-1200-evk.dts new file +9 -0
+		compatible = "regulator-fixed";
+		regulator-name = "wifi_pwr_fixed_3v3";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		gpio = <&pio 135 GPIO_ACTIVE_HIGH>;
+		enable-active-high;
+		regulator-always-on;
+	};
+};

....

arch/arm64/boot/dts/mediatek/genio-1200-evk.dts line 293

Quoted 10 lines
arch/arm64/boot/dts/mediatek/genio-1200-evk.dts new file +10 -0
+
+&i2c6 {
+	clock-frequency = <400000>;
+	pinctrl-0 = <&i2c6_pins>;
+	pinctrl-names = "default";
+	#address-cells = <1>;
+	#size-cells = <0>;
+	status = "okay";
+
+	mt6360: mt6360@34 {

Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification:
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation

Quoted 85 lines
arch/arm64/boot/dts/mediatek/genio-1200-evk.dts new file +85 -0
+		compatible = "mediatek,mt6360";
+		reg = <0x34>;
+		interrupts = <128 IRQ_TYPE_EDGE_FALLING>;
+		interrupt-names = "IRQB";
+		interrupt-controller;
+		#interrupt-cells = <1>;
+		pinctrl-0 = <&mt6360_pins>;
+
+		charger {
+			compatible = "mediatek,mt6360-chg";
+			richtek,vinovp-microvolt = <14500000>;
+
+			otg_vbus_regulator: usb-otg-vbus-regulator {
+				regulator-name = "usb-otg-vbus";
+				regulator-min-microvolt = <4425000>;
+				regulator-max-microvolt = <5825000>;
+			};
+		};
+
+		regulator {
+			compatible = "mediatek,mt6360-regulator";
+			LDO_VIN3-supply = <&mt6360_buck2>;
+
+			mt6360_buck1: buck1 {
+				regulator-name = "emi_vdd2";
+				regulator-min-microvolt = <300000>;
+				regulator-max-microvolt = <1300000>;
+				regulator-allowed-modes = <MT6360_OPMODE_NORMAL
+							   MT6360_OPMODE_LP
+							   MT6360_OPMODE_ULP>;
+				regulator-always-on;
+			};
+
+			mt6360_buck2: buck2 {
+				regulator-name = "emi_vddq";
+				regulator-min-microvolt = <300000>;
+				regulator-max-microvolt = <1300000>;
+				regulator-allowed-modes = <MT6360_OPMODE_NORMAL
+							   MT6360_OPMODE_LP
+							   MT6360_OPMODE_ULP>;
+				regulator-always-on;
+			};
+
+			mt6360_ldo1: ldo1 {
+				regulator-name = "tp1_p3v0";
+				regulator-min-microvolt = <3300000>;
+				regulator-max-microvolt = <3300000>;
+				regulator-allowed-modes = <MT6360_OPMODE_NORMAL
+							   MT6360_OPMODE_LP>;
+				regulator-always-on;
+			};
+
+			mt6360_ldo2: ldo2 {
+				regulator-name = "panel1_p1v8";
+				regulator-min-microvolt = <1800000>;
+				regulator-max-microvolt = <1800000>;
+				regulator-allowed-modes = <MT6360_OPMODE_NORMAL
+							   MT6360_OPMODE_LP>;
+			};
+
+			mt6360_ldo3: ldo3 {
+				regulator-name = "vmc_pmu";
+				regulator-min-microvolt = <1200000>;
+				regulator-max-microvolt = <3600000>;
+				regulator-allowed-modes = <MT6360_OPMODE_NORMAL
+							   MT6360_OPMODE_LP>;
+			};
+
+			mt6360_ldo5: ldo5 {
+				regulator-name = "vmch_pmu";
+				regulator-min-microvolt = <2700000>;
+				regulator-max-microvolt = <3600000>;
+				regulator-allowed-modes = <MT6360_OPMODE_NORMAL
+							   MT6360_OPMODE_LP>;
+			};
+
+			/* This is a measure point, which name is mt6360_ldo1 on schematic */
+			mt6360_ldo6: ldo6 {
+				regulator-name = "mt6360_ldo1";
+				regulator-min-microvolt = <500000>;
+				regulator-max-microvolt = <2100000>;
+				regulator-allowed-modes = <MT6360_OPMODE_NORMAL
+							   MT6360_OPMODE_LP>;
+			};
+

arch/arm64/boot/dts/mediatek/genio-1200-evk.dts line 388

Quoted 10 lines
arch/arm64/boot/dts/mediatek/genio-1200-evk.dts new file +10 -0
+			mt6360_ldo7: ldo7 {
+				regulator-name = "emi_vmddr_en";
+				regulator-min-microvolt = <500000>;
+				regulator-max-microvolt = <2100000>;
+				regulator-allowed-modes = <MT6360_OPMODE_NORMAL
+							   MT6360_OPMODE_LP>;
+				regulator-always-on;
+			};
+		};
+

Stray blank line

Quoted 45 lines
arch/arm64/boot/dts/mediatek/genio-1200-evk.dts new file +45 -0
+	};
+};
+
+&spi1 {
+	pinctrl-0 = <&spi1_pins>;
+	pinctrl-names = "default";
+	mediatek,pad-select = <0>;
+	#address-cells = <1>;
+	#size-cells = <0>;
+	status = "okay";
+	cs-gpios = <&pio 64 GPIO_ACTIVE_LOW>;
+
+	can0: can@0 {
+		compatible = "microchip,mcp2518fd";
+		reg = <0>;
+		clocks = <&can_clk>;
+		spi-max-frequency = <20000000>;
+		interrupts-extended = <&pio 16 IRQ_TYPE_LEVEL_LOW>;
+		vdd-supply = <&mt6359_vcn33_2_bt_ldo_reg>;
+		xceiver-supply = <&mt6359_vcn33_2_bt_ldo_reg>;
+	};
+};
+
+&spi2 {
+	pinctrl-0 = <&spi2_pins>;
+	pinctrl-names = "default";
+	mediatek,pad-select = <0>;
+	#address-cells = <1>;
+	#size-cells = <0>;
+	status = "okay";
+};
+
+&xhci0 {
+	status = "okay";
+};
+
+&xhci1 {
+	vusb33-supply = <&mt6359_vusb_ldo_reg>;
+	status = "okay";
+};
+
+&xhci2 {
+	vusb33-supply = <&mt6359_vusb_ldo_reg>;
+	status = "okay";
+};

arch/arm64/boot/dts/mediatek/genio-1200-evk.dts line 443

Quoted 10 lines
arch/arm64/boot/dts/mediatek/genio-1200-evk.dts new file +10 -0
+
+&xhci3 {
+	vusb33-supply = <&mt6359_vusb_ldo_reg>;
+	status = "okay";
+};
+
+&u3port0 {
+	status = "okay";
+};
+

You have quite surprising ordering of these overrides...

...

arch/arm64/boot/dts/mediatek/genio-1200-evk.dts line 864

Quoted 6 lines
arch/arm64/boot/dts/mediatek/genio-1200-evk.dts new file +6 -0
+
+&spmi {
+	#address-cells = <2>;
+	#size-cells = <0>;
+
+	mt6315_6: mt6315@6 {

Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification:
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation

Quoted 7 lines
arch/arm64/boot/dts/mediatek/genio-1200-evk.dts new file +7 -0
+		compatible = "mediatek,mt6315-regulator";
+		reg = <0x6 SPMI_USID>;
+
+		regulators {
+			mt6315_6_vbuck1: vbuck1 {
+				regulator-compatible = "vbuck1";
+				regulator-name = "Vbcpu";

arch/arm64/boot/dts/mediatek/genio-1200-evk.dts line 881

Quoted 10 lines
arch/arm64/boot/dts/mediatek/genio-1200-evk.dts new file +10 -0
+				regulator-min-microvolt = <300000>;
+				regulator-max-microvolt = <1193750>;
+				regulator-enable-ramp-delay = <256>;
+				regulator-allowed-modes = <0 1 2>;
+				regulator-always-on;
+			};
+		};
+	};
+
+	mt6315_7: mt6315@7 {

Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification:
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation

arch/arm64/boot/dts/mediatek/genio-1200-evk.dts line 885

Quoted 4 lines
arch/arm64/boot/dts/mediatek/genio-1200-evk.dts new file +4 -0
+		compatible = "mediatek,mt6315-regulator";
+		reg = <0x7 SPMI_USID>;
+
+		regulators {

Best regards,
Krzysztof

#3 lore raw
In reply to Macpaul Lin
Quoted 3 lines · Macpaul Lin

Add bindings for the MediaTek mt8395-evk board. The mt8359-evk board is also named as "Genio 1200-EVK". MT8195 and MT8395 are the same family series SoC could share

How can be the same and have different numbers? You sill need dedicated compatible.

Best regards,
Krzysztof

#4 lore raw
Quoted 4 lines · Krzysztof Kozlowski

External email : Please do not click links or open attachments until you have verified the sender or the content.

Quoted 8 lines
Quoted 3 lines · Macpaul Lin

Add bindings for the MediaTek mt8395-evk board. The mt8359-evk board is also named as "Genio 1200-EVK". MT8195 and MT8395 are the same family series SoC could share

How can be the same and have different numbers? You sill need dedicated compatible.

The SoCs mt8195 and mt8395 are designed for different market application and physical characteristics, using different efuse values for distinction. The booting flow and configurations are controllered by the boot loaders, firmware, and TF-A. Therefore, the part numbers and procurement channels are different. The detail information of these efuse values is proprietary, so I cant disclose it futher. Hence the most of peripheral drivers and base address are almost the same.

Quoted 4 lines

Best regards,
Krzysztof

Best regards,
Macpaul Lin

#5 lore raw
Quoted 17 lines · Macpaul Lin
Quoted 5 lines · Krzysztof Kozlowski

External email : Please do not click links or open attachments until you have verified the sender or the content.

Quoted 8 lines
Quoted 3 lines · Macpaul Lin

Add bindings for the MediaTek mt8395-evk board. The mt8359-evk board is also named as "Genio 1200-EVK". MT8195 and MT8395 are the same family series SoC could share

How can be the same and have different numbers? You sill need dedicated compatible.

Quoted 7 lines

The SoCs mt8195 and mt8395 are designed for different market application and physical characteristics, using different efuse values for distinction. The booting flow and configurations are controllered by the boot loaders, firmware, and TF-A. Therefore, the part numbers and procurement channels are different. The detail information of these efuse values is proprietary, so I cant disclose it futher. Hence the most of peripheral drivers and base address are almost the same.

1. Drivers? So we talk about compatibility, not the same.
2. "almost the same" is not the same. Follow the guidelines for writing bindings.

Best regards,
Krzysztof

#6 lore raw
Quoted 21 lines · Krzysztof Kozlowski

External email : Please do not click links or open attachments until you have verified the sender or the content.

Quoted 16 lines · Macpaul Lin
Quoted 12 lines · Krzysztof Kozlowski

External email : Please do not click links or open attachments until you have verified the sender or the content.

Quoted 3 lines · Macpaul Lin

Add bindings for the MediaTek mt8395-evk board. The mt8359-evk board is also named as "Genio 1200-EVK". MT8195 and MT8395 are the same family series SoC could share

How can be the same and have different numbers? You sill need dedicated compatible.

Quoted 6 lines
Quoted 1 line

The SoCs mt8195 and mt8395 are designed for different market application and physical characteristics, using different efuse values for distinction. The booting flow and configurations are controllered by the boot loaders, firmware, and TF-A. Therefore, the part numbers and procurement channels are different. The detail information of these efuse values is proprietary, so I cant disclose it futher. Hence the most of peripheral drivers and base address are almost the same.

1. Drivers? So we talk about compatibility, not the same.
2. "almost the same" is not the same. Follow the guidelines for writing bindings.

Thanks for the review.

After internal confirmation and discussion, it can be confirmed that the MT8195 and MT8395 are identical SoCs from to binding's perspective. MediaTek hope the mt8395 boards could directly use mt8195.dtsi, without the need to create a separate mt8395.dtsi to include mt8195.dtsi. Therefore, we hope to fully adopt the bindings of mt8195. However, I will submit a revised patch for compatible since they are different boards.

If the reviewer still disagrees, then MediaTek will create a new binding and use mt8395.dtsi to include mt8195.dtsi to apply the separate bindings for differentiation.

Quoted 4 lines

Best regards,
Krzysztof

Best regards,
Macpaul Lin

#7 lore raw
Quoted 39 lines · Macpaul Lin
Quoted 31 lines · Krzysztof Kozlowski

External email : Please do not click links or open attachments until you have verified the sender or the content.

Quoted 17 lines · Macpaul Lin
Quoted 5 lines · Krzysztof Kozlowski

External email : Please do not click links or open attachments until you have verified the sender or the content.

Quoted 8 lines
Quoted 3 lines · Macpaul Lin

Add bindings for the MediaTek mt8395-evk board. The mt8359-evk board is also named as "Genio 1200-EVK". MT8195 and MT8395 are the same family series SoC could share

How can be the same and have different numbers? You sill need dedicated compatible.

Quoted 7 lines

The SoCs mt8195 and mt8395 are designed for different market application and physical characteristics, using different efuse values for distinction. The booting flow and configurations are controllered by the boot loaders, firmware, and TF-A. Therefore, the part numbers and procurement channels are different. The detail information of these efuse values is proprietary, so I cant disclose it futher. Hence the most of peripheral drivers and base address are almost the same.

Quoted 4 lines

1. Drivers? So we talk about compatibility, not the same.
2. "almost the same" is not the same. Follow the guidelines for writing bindings.

Quoted 4 lines

Thanks for the review.

After internal confirmation and discussion, it can be confirmed that the MT8195 and MT8395 are identical SoCs from to binding's perspective.

I am sorry, but I really do not care what you internally discussed about bindings. I do not think your internal review respect existing guidelines. You talked about drivers, not "bindings perspective", so your internal discussion is clearly discussing something else.

Quoted 4 lines

MediaTek hope the mt8395 boards could directly use mt8195.dtsi, without the need to create a separate mt8395.dtsi to include mt8195.dtsi. Therefore, we hope to fully adopt the bindings of mt8195. However, I will submit a revised patch for compatible since they are different boards.

You can disagree but then I expect arguments from your side.

Best regards,
Krzysztof

#8 lore raw

Il 05/09/23 12:36, Krzysztof Kozlowski ha scritto:

Quoted 50 lines · Macpaul Lin
Quoted 39 lines · Krzysztof Kozlowski
Quoted 31 lines

External email : Please do not click links or open attachments until you have verified the sender or the content.

Quoted 17 lines · Macpaul Lin
Quoted 5 lines · Krzysztof Kozlowski

External email : Please do not click links or open attachments until you have verified the sender or the content.

Quoted 8 lines
Quoted 3 lines · Macpaul Lin

Add bindings for the MediaTek mt8395-evk board. The mt8359-evk board is also named as "Genio 1200-EVK". MT8195 and MT8395 are the same family series SoC could share

How can be the same and have different numbers? You sill need dedicated compatible.

Quoted 7 lines

The SoCs mt8195 and mt8395 are designed for different market application and physical characteristics, using different efuse values for distinction. The booting flow and configurations are controllered by the boot loaders, firmware, and TF-A. Therefore, the part numbers and procurement channels are different. The detail information of these efuse values is proprietary, so I cant disclose it futher. Hence the most of peripheral drivers and base address are almost the same.

Quoted 4 lines

1. Drivers? So we talk about compatibility, not the same.
2. "almost the same" is not the same. Follow the guidelines for writing bindings.

Quoted 4 lines

Thanks for the review.

After internal confirmation and discussion, it can be confirmed that the MT8195 and MT8395 are identical SoCs from to binding's perspective.

I am sorry, but I really do not care what you internally discussed about bindings. I do not think your internal review respect existing guidelines. You talked about drivers, not "bindings perspective", so your internal discussion is clearly discussing something else.

Quoted 7 lines
Quoted 4 lines

MediaTek hope the mt8395 boards could directly use mt8195.dtsi, without the need to create a separate mt8395.dtsi to include mt8195.dtsi. Therefore, we hope to fully adopt the bindings of mt8195. However, I will submit a revised patch for compatible since they are different boards.

You can disagree but then I expect arguments from your side.

In short - they're the same chip, as in, they behave the same on a *hardware* perspective; what changes is the bootchain (plus stricter security from TF-A) and allowable temperature ranges for operation, that's practically it...

...so yes the compatible for the "new soc" must be documented, but that's practically just a revision, *not a new soc* at all.

(though, I agree that seeing a different name as in 1 -> 3 can be totally confusing)

The drivers difference that Macpaul hinted to are about drivers needing some SMC calls instead of direct MMIO manipulation, so, something like two bindings for something like two drivers will need to add a 8395 compatible; speaking of what we would have in a devicetree for this SoC, that'd be exactly 99% identical to mt8195.dtsi.

Anyway, drivers are drivers, bindings describe hardware - and the hw is, again, the same...

Hope that this makes things clearer! :-)

Cheers,
Angelo

#9 lore raw
Quoted 75 lines · AngeloGioacchino Del Regno and Krzsztof Kozlowski

Il 05/09/23 12:36, Krzysztof Kozlowski ha scritto:

Quoted 50 lines · Macpaul Lin
Quoted 39 lines · Krzysztof Kozlowski
Quoted 31 lines

External email : Please do not click links or open attachments until you have verified the sender or the content.

Quoted 17 lines · Macpaul Lin
Quoted 5 lines · Krzysztof Kozlowski

External email : Please do not click links or open attachments until you have verified the sender or the content.

Quoted 8 lines
Quoted 3 lines · Macpaul Lin

Add bindings for the MediaTek mt8395-evk board. The mt8359-evk board is also named as "Genio 1200-EVK". MT8195 and MT8395 are the same family series SoC could share

How can be the same and have different numbers? You sill need dedicated compatible.

Quoted 7 lines

The SoCs mt8195 and mt8395 are designed for different market application and physical characteristics, using different efuse values for distinction. The booting flow and configurations are controllered by the boot loaders, firmware, and TF-A. Therefore, the part numbers and procurement channels are different. The detail information of these efuse values is proprietary, so I cant disclose it futher. Hence the most of peripheral drivers and base address are almost the same.

Quoted 4 lines

1. Drivers? So we talk about compatibility, not the same.
2. "almost the same" is not the same. Follow the guidelines for writing bindings.

Quoted 4 lines

Thanks for the review.

After internal confirmation and discussion, it can be confirmed that the MT8195 and MT8395 are identical SoCs from to binding's perspective.

I am sorry, but I really do not care what you internally discussed about bindings. I do not think your internal review respect existing guidelines. You talked about drivers, not "bindings perspective", so your internal discussion is clearly discussing something else.

Quoted 7 lines
Quoted 4 lines

MediaTek hope the mt8395 boards could directly use mt8195.dtsi, without the need to create a separate mt8395.dtsi to include mt8195.dtsi. Therefore, we hope to fully adopt the bindings of mt8195. However, I will submit a revised patch for compatible since they are different boards.

You can disagree but then I expect arguments from your side.

In short - they're the same chip, as in, they behave the same on a *hardware* perspective; what changes is the bootchain (plus stricter security from TF-A) and allowable temperature ranges for operation, that's practically it...

...so yes the compatible for the "new soc" must be documented, but that's practically just a revision, *not a new soc* at all.

(though, I agree that seeing a different name as in 1 -> 3 can be totally confusing)

The drivers difference that Macpaul hinted to are about drivers needing some SMC calls instead of direct MMIO manipulation, so, something like two bindings for something like two drivers will need to add a 8395 compatible; speaking of what we would have in a devicetree for this SoC, that'd be exactly 99% identical to mt8195.dtsi.

Quoted 7 lines

Anyway, drivers are drivers, bindings describe hardware - and the hw is, again, the same...

Hope that this makes things clearer! :-)

Cheers,
Angelo

Thanks for your patience and clarification.
I'll submit new SOC binding and revise the patches for mt8395 board.

Thanks
Macpaul Lin

#10 lore raw

PATCH v2 1/2 dt-bindings: arm64: dts: mediatek: add mt8395-evk board

In reply to Macpaul Lin

1. Add compatible for MT8395.
2. Add bindings for the MediaTek mt8395-evk board, also known as the "Genio 1200-EVK".

The MT8195 and MT8395 belong to the same SoC family, with only minor differences in their physical characteristics. They utilize unique efuse values for differentiation.

The booting process and configurations are managed by boot loaders, firmware, and TF-A. Consequently, the part numbers and procurement channels vary.

---
 Documentation/devicetree/bindings/arm/mediatek.yaml | 5 +++++
 1 file changed, 5 insertions(+)

Changes for v2:
- add more detail description for mt8395.
- add bindings for mt8395, and mt8395-evk.

Documentation/devicetree/bindings/arm/mediatek.yaml +5 -0
index ae12b1cab9fb..d7a20df640d7 100644
@@ -248,6 +248,11 @@ properties:
           - enum:
               - mediatek,mt8365-evk
           - const: mediatek,mt8365
+      - description: MediaTek Genio 1200 Boards (Genio 1200 EVK)
+        items:
+          - enum:
+              - mediatek,mt8395-evk
+          - const: mediatek,mt8395
       - items:
           - enum:
               - mediatek,mt8516-pumpkin
Signature · 1 line
2.18.0
#11 lore raw

PATCH v2 2/2 arm64: dts: mediatek: add device-tree for Genio 1200 EVK board

Add basic device-tree for the Genio 1200 EVK board. The Demo board is made by MediaTek and has a MT8395 SoC (MT8195 family), associated with the MT6359 and MT6360 PMICs, and
the MT7921 connectivity chip.

The IOs available on that board are:
* 1 USB Type-C connector with DP aux mode support
* 2 USB Type-A connector with a USB hub
* 1 micro-USB port for gadget or OTG support
* 1 full size HDMI RX and 1 full size HDMI TX connector
* 1 micro SD slot
* 40 pins header
* SPI interface header
* 1 M.2 slot
* 1 audio jack
* 1 micro-USB port for serial debug
* 2 connectors for DSI displays, 1 of the DSI panel is installed
* 3 connectors for CSI cameras
* 1 connector for a eDP panel
* 1 MMC storage
* 1 Touch Panel (installed DSI display)
* 1 M.2 slot for 5G dongle

This commit adds basic support in order to be able to boot.

---
 arch/arm64/boot/dts/mediatek/Makefile         |   1 +
 .../boot/dts/mediatek/genio-1200-evk.dts      | 915 ++++++++++++++++++
 2 files changed, 916 insertions(+)
 create mode 100644 arch/arm64/boot/dts/mediatek/genio-1200-evk.dts

Changes for v2:
- correct SOC binding to "mediatek,mt8395".
- Fix a Linux coding style comments for optee node.
- Fix wifi fixed 3.3v power's name as "wifi-3v3-regulator".
- Fix node name of mt6360 and mt6517 to generic dts name as "pmic".
- Remove unecessary blank line.
- Reording usb node as the order of "phy" then "host".

arch/arm64/boot/dts/mediatek/Makefile +1 -0
index c99c3372a4b5..5bf29581f08b 100644
@@ -1,4 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0
+dtb-$(CONFIG_ARCH_MEDIATEK) += genio-1200-evk.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt2712-evb.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt6755-evb.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt6779-evb.dtb
arch/arm64/boot/dts/mediatek/genio-1200-evk.dts new file +915 -0

915 lines not on this page · raw message

Signature · 1 line
2.18.0
#12 lore raw

Re: [PATCH v2 2/2] arm64: dts: mediatek: add device-tree for Genio 1200 EVK board

Quoted 39 lines · Macpaul Lin
arch/arm64/boot/dts/mediatek/genio-1200-evk.dts new file +39 -0
+	edp_panel_fixed_12v: regulator-1 {
+		compatible = "regulator-fixed";
+		regulator-name = "edp_backlight_12v";
+		regulator-min-microvolt = <12000000>;
+		regulator-max-microvolt = <12000000>;
+		enable-active-high;
+		gpio = <&pio 96 GPIO_ACTIVE_HIGH>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&edp_panel_12v_en_pins>;
+	};
+
+	backlight_lcd0: backlight-lcd0 {
+		compatible = "pwm-backlight";
+		pwms = <&disp_pwm0 0 500000>;
+		enable-gpios = <&pio 47 GPIO_ACTIVE_HIGH>;
+		brightness-levels = <0 1023>;
+		num-interpolated-steps = <1023>;
+		default-brightness-level = <576>;
+	};
+
+	backlight_lcd1: backlight-lcd1 {
+		compatible = "pwm-backlight";
+		pwms = <&disp_pwm1 0 500000>;
+		enable-gpios = <&pio 46 GPIO_ACTIVE_HIGH>;
+		brightness-levels = <0 1023>;
+		num-interpolated-steps = <1023>;
+		default-brightness-level = <576>;
+	};
+
+	keys: gpio-keys {
+		compatible = "gpio-keys";
+
+		button-volume-up {
+			wakeup-source;
+			debounce-interval = <100>;
+			gpios = <&pio 106 GPIO_ACTIVE_LOW>;
+			label = "volume_up";
+			linux,code = <KEY_VOLUMEUP>;
+		};

arch/arm64/boot/dts/mediatek/genio-1200-evk.dts line 152

Quoted 10 lines
arch/arm64/boot/dts/mediatek/genio-1200-evk.dts new file +10 -0
+	};
+
+	can_clk: can-clk {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <20000000>;
+		clock-output-names = "can-clk";
+	};
+
+	wifi_3v3: wifi-3v3-regulator {

This is a friendly reminder during the review process.

It seems my previous comments were not fully addressed. Maybe my feedback got lost between the quotes, maybe you just forgot to apply it. Please go back to the previous discussion and either implement all requested changes or keep discussing them.

Thank you.

Best regards,
Krzysztof

#13 lore raw

Re: [PATCH v2 2/2] arm64: dts: mediatek: add device-tree for Genio 1200 EVK board

Quoted 57 lines · Krzysztof Kozlowski

External email : Please do not click links or open attachments until you have verified the sender or the content.

Quoted 39 lines · Macpaul Lin
arch/arm64/boot/dts/mediatek/genio-1200-evk.dts new file +39 -0
+edp_panel_fixed_12v: regulator-1 {
+compatible = "regulator-fixed";
+regulator-name = "edp_backlight_12v";
+regulator-min-microvolt = <12000000>;
+regulator-max-microvolt = <12000000>;
+enable-active-high;
+gpio = <&pio 96 GPIO_ACTIVE_HIGH>;
+pinctrl-names = "default";
+pinctrl-0 = <&edp_panel_12v_en_pins>;
+};
+
+backlight_lcd0: backlight-lcd0 {
+compatible = "pwm-backlight";
+pwms = <&disp_pwm0 0 500000>;
+enable-gpios = <&pio 47 GPIO_ACTIVE_HIGH>;
+brightness-levels = <0 1023>;
+num-interpolated-steps = <1023>;
+default-brightness-level = <576>;
+};
+
+backlight_lcd1: backlight-lcd1 {
+compatible = "pwm-backlight";
+pwms = <&disp_pwm1 0 500000>;
+enable-gpios = <&pio 46 GPIO_ACTIVE_HIGH>;
+brightness-levels = <0 1023>;
+num-interpolated-steps = <1023>;
+default-brightness-level = <576>;
+};
+
+keys: gpio-keys {
+compatible = "gpio-keys";
+
+button-volume-up {
+wakeup-source;
+debounce-interval = <100>;
+gpios = <&pio 106 GPIO_ACTIVE_LOW>;
+label = "volume_up";
+linux,code = <KEY_VOLUMEUP>;
+};

arch/arm64/boot/dts/mediatek/genio-1200-evk.dts line 152

Quoted 10 lines
arch/arm64/boot/dts/mediatek/genio-1200-evk.dts new file +10 -0
+};
+
+can_clk: can-clk {
+compatible = "fixed-clock";
+#clock-cells = <0>;
+clock-frequency = <20000000>;
+clock-output-names = "can-clk";
+};
+
+wifi_3v3: wifi-3v3-regulator {

This is a friendly reminder during the review process.

Quoted 4 lines

It seems my previous comments were not fully addressed. Maybe my feedback got lost between the quotes, maybe you just forgot to apply it. Please go back to the previous discussion and either implement all requested changes or keep discussing them.

This keeps a format with -regulator is because I've found some other use cases. It seems "-regulator" or "regulator-" could be arbitrary. I'm not sure if it is a new guideline for regulator's node. If there is in the devicetree document, maybe I just missed it?

However if this is for the purpose of keeping the DTS format tidy, I will update it in the next version, also fix another "usb-otg-vbus-regulator" node.

arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts
a1d3281450ab2 (Christopher Obbard 2023-01-09 16:58:01 +0100 46) vcc5v0_sys: vcc5v0-sys-regulator {

arch/arm64/boot/dts/rockchip/rk3566-anbernic-rgxx3.dtsi
523adb553573d (Chris Morgan 2022-09-06 16:03:24 -0500 256) vcc_wifi: regulator-vcc-wifi {

Quoted 4 lines

Thank you.

Best regards,
Krzysztof

Thanks.
Macpaul Lin

Quoted 2 lines
#14 lore raw

Re: [PATCH v2 2/2] arm64: dts: mediatek: add device-tree for Genio 1200 EVK board

Quoted 11 lines · Macpaul Lin
Quoted 9 lines

Review

Quoted 2 lines
(quoted diff) +2 -0
+
+wifi_3v3: wifi-3v3-regulator {

This is a friendly reminder during the review process.

It seems my previous comments were not fully addressed. Maybe my feedback got lost between the quotes, maybe you just forgot to apply it. Please go back to the previous discussion and either implement all requested changes or keep discussing them.

Quoted 4 lines

This keeps a format with -regulator is because I've found some other use cases. It seems "-regulator" or "regulator-" could be arbitrary. I'm not sure if it is a new guideline for regulator's node. If there is in the devicetree document, maybe I just missed it?

What is the point to name in the same DTS some of the regulators "regulator-foo" and some "foo-regulator"?

Best regards,
Krzysztof

#15 lore raw

Re: [PATCH v2 2/2] arm64: dts: mediatek: add device-tree for Genio 1200 EVK board

Quoted 16 lines · Krzysztof Kozlowski

External email : Please do not click links or open attachments until you have verified the sender or the content.

Quoted 11 lines · Macpaul Lin
Quoted 9 lines

Review

Quoted 2 lines
(quoted diff) +2 -0
+
+wifi_3v3: wifi-3v3-regulator {

This is a friendly reminder during the review process.

It seems my previous comments were not fully addressed. Maybe my feedback got lost between the quotes, maybe you just forgot to apply it. Please go back to the previous discussion and either implement all requested changes or keep discussing them.

Quoted 8 lines
Quoted 1 line

This keeps a format with -regulator is because I've found some other use cases. It seems "-regulator" or "regulator-" could be arbitrary. I'm not sure if it is a new guideline for regulator's node. If there is in the devicetree document, maybe I just missed it?

What is the point to name in the same DTS some of the regulators "regulator-foo" and some "foo-regulator"?

Best regards,
Krzysztof

It looks like I've miss the point of previous review comment. Updated new patch in v3 series.

Thanks
Macpaul Lin

#16 lore raw

Re: [PATCH v2 1/2] dt-bindings: arm64: dts: mediatek: add mt8395-evk board

In reply to Macpaul Lin
Quoted 8 lines · Macpaul Lin

1. Add compatible for MT8395.
2. Add bindings for the MediaTek mt8395-evk board, also known as the "Genio 1200-EVK".

The MT8195 and MT8395 belong to the same SoC family, with only minor differences in their physical characteristics. They utilize unique efuse values for differentiation.

Quoted 8 lines

The booting process and configurations are managed by boot loaders, firmware, and TF-A. Consequently, the part numbers and procurement channels vary.

---
 Documentation/devicetree/bindings/arm/mediatek.yaml | 5 +++++
 1 file changed, 5 insertions(+)

Do not attach (thread) your patchsets to some other threads (unrelated or older versions). This buries them deep in the mailbox and might interfere with applying entire sets.

Quoted 10 lines

Changes for v2:
- add more detail description for mt8395.
- add bindings for mt8395, and mt8395-evk.

Documentation/devicetree/bindings/arm/mediatek.yaml +0 -0
index ae12b1cab9fb..d7a20df640d7 100644

Documentation/devicetree/bindings/arm/mediatek.yaml properties: · line 255

Quoted 8 lines
Documentation/devicetree/bindings/arm/mediatek.yaml +5 -0
@@ -248,6 +248,11 @@ properties:
           - enum:
               - mediatek,mt8365-evk
           - const: mediatek,mt8365
+      - description: MediaTek Genio 1200 Boards (Genio 1200 EVK)
+        items:
+          - enum:
+              - mediatek,mt8395-evk
+          - const: mediatek,mt8395

I don't understand. You said last time this is fully compatible with mt8195, so why it's not here?

Best regards,
Krzysztof

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#17 lore raw

Re: [PATCH v2 1/2] dt-bindings: arm64: dts: mediatek: add mt8395-evk board

Quoted 40 lines · Krzysztof Kozlowski

External email : Please do not click links or open attachments until you have verified the sender or the content.

Quoted 8 lines · Macpaul Lin

1. Add compatible for MT8395.
2. Add bindings for the MediaTek mt8395-evk board, also known as the "Genio 1200-EVK".

The MT8195 and MT8395 belong to the same SoC family, with only minor differences in their physical characteristics. They utilize unique efuse values for differentiation.

Quoted 8 lines

The booting process and configurations are managed by boot loaders, firmware, and TF-A. Consequently, the part numbers and procurement channels vary.

---
 Documentation/devicetree/bindings/arm/mediatek.yaml | 5 +++++
 1 file changed, 5 insertions(+)

Do not attach (thread) your patchsets to some other threads (unrelated or older versions). This buries them deep in the mailbox and might interfere with applying entire sets.

Quoted 14 lines

Changes for v2:
- add more detail description for mt8395.
- add bindings for mt8395, and mt8395-evk.

Documentation/devicetree/bindings/arm/mediatek.yaml +1 -0
index ae12b1cab9fb..d7a20df640d7 100644
@@ -248,6 +248,11 @@ properties:
           - enum:
               - mediatek,mt8365-evk
           - const: mediatek,mt8365
+      - description: MediaTek Genio 1200 Boards (Genio 1200 EVK)
Quoted 9 lines

Documentation/devicetree/bindings/arm/mediatek.yaml properties: · line 255

Quoted 4 lines
Documentation/devicetree/bindings/arm/mediatek.yaml +4 -0
+        items:
+          - enum:
+              - mediatek,mt8395-evk
+          - const: mediatek,mt8395

I don't understand. You said last time this is fully compatible with mt8195, so why it's not here?

Yes, mt8395 is fully compatible with mt8195.

But after reading Angelo's comment, we thought it is necessary to create a new compatible to avoid confusion for users.
https://lore.kernel.org/lkml/[email protected]/

Although they are fully compatible, developers cannot arbitrarily replace the chip on the board with another one. So separated bindings might be better.

Quoted 2 lines

Best regards,
Krzysztof

Thanks
Macpaul Lin

#18 lore raw

Re: [PATCH v2 1/2] dt-bindings: arm64: dts: mediatek: add mt8395-evk board

Quoted 54 lines · Macpaul Lin
Quoted 41 lines · Krzysztof Kozlowski

External email : Please do not click links or open attachments until you have verified the sender or the content.

Quoted 8 lines · Macpaul Lin

1. Add compatible for MT8395.
2. Add bindings for the MediaTek mt8395-evk board, also known as the "Genio 1200-EVK".

The MT8195 and MT8395 belong to the same SoC family, with only minor differences in their physical characteristics. They utilize unique efuse values for differentiation.

Quoted 8 lines

The booting process and configurations are managed by boot loaders, firmware, and TF-A. Consequently, the part numbers and procurement channels vary.

---
 Documentation/devicetree/bindings/arm/mediatek.yaml | 5 +++++
 1 file changed, 5 insertions(+)

Do not attach (thread) your patchsets to some other threads (unrelated or older versions). This buries them deep in the mailbox and might interfere with applying entire sets.

Quoted 14 lines

Changes for v2:
- add more detail description for mt8395.
- add bindings for mt8395, and mt8395-evk.

Documentation/devicetree/bindings/arm/mediatek.yaml +1 -0
index ae12b1cab9fb..d7a20df640d7 100644
@@ -248,6 +248,11 @@ properties:
           - enum:
               - mediatek,mt8365-evk
           - const: mediatek,mt8365
+      - description: MediaTek Genio 1200 Boards (Genio 1200 EVK)
Quoted 9 lines

Documentation/devicetree/bindings/arm/mediatek.yaml properties: · line 255

Quoted 4 lines
Documentation/devicetree/bindings/arm/mediatek.yaml +4 -0
+        items:
+          - enum:
+              - mediatek,mt8395-evk
+          - const: mediatek,mt8395

I don't understand. You said last time this is fully compatible with mt8195, so why it's not here?

Quoted 6 lines

Yes, mt8395 is fully compatible with mt8195.

But after reading Angelo's comment, we thought it is necessary to create a new compatible to avoid confusion for users.
https://lore.kernel.org/lkml/[email protected]/

New compatible is a requirement, you got clear comments from me on this as well. However we did not ask to remove a compatible of compatible devices. You also need it. Otherwise how your compatibility is going to work?

Best regards,
Krzysztof

#19 lore raw

Re: [PATCH v2 1/2] dt-bindings: arm64: dts: mediatek: add mt8395-evk board

In reply to Macpaul Lin

Il 06/09/23 11:53, Macpaul Lin ha scritto:

Quoted 53 lines · Krzysztof Kozlowski
Quoted 40 lines

External email : Please do not click links or open attachments until you have verified the sender or the content.

Quoted 8 lines · Macpaul Lin

1. Add compatible for MT8395.
2. Add bindings for the MediaTek mt8395-evk board, also known as the "Genio 1200-EVK".

The MT8195 and MT8395 belong to the same SoC family, with only minor differences in their physical characteristics. They utilize unique efuse values for differentiation.

Quoted 8 lines

The booting process and configurations are managed by boot loaders, firmware, and TF-A. Consequently, the part numbers and procurement channels vary.

---
 Documentation/devicetree/bindings/arm/mediatek.yaml | 5 +++++

 1 file changed, 5 insertions(+)

Do not attach (thread) your patchsets to some other threads (unrelated or older versions). This buries them deep in the mailbox and might interfere with applying entire sets.

Quoted 14 lines

Changes for v2:
 - add more detail description for mt8395.
 - add bindings for mt8395, and mt8395-evk.

Documentation/devicetree/bindings/arm/mediatek.yaml +0 -0
index ae12b1cab9fb..d7a20df640d7 100644
@@ -248,6 +248,11 @@ properties:

           - enum:
               - mediatek,mt8365-evk
           - const: mediatek,mt8365
+      - description: MediaTek Genio 1200 Boards (Genio 1200 EVK)

Quoted 9 lines
Quoted 4 lines

+        items:
+          - enum:
+              - mediatek,mt8395-evk
+          - const: mediatek,mt8395

I don't understand. You said last time this is fully compatible with mt8195, so why it's not here?

Quoted 6 lines

Yes, mt8395 is fully compatible with mt8195.

But after reading Angelo's comment, we thought it is necessary to create a new compatible to avoid confusion for users.
https://lore.kernel.org/lkml/[email protected]/

Although they are fully compatible, developers cannot arbitrarily replace the chip on the board with another one. So separated bindings might be better.

Sorry you've misunderstood; I was trying to explain to Krzysztof that the two SoCs are fully compatible... my suggestion was in like with what you're trying to do as in I am agreeing with your first version, Macpaul, to inherit MT8195.

So,

- enum
- mediatek,mt8395-evk
- const: mediatek,mt8195
- const: mediatek,mt8395

Quoted 6 lines
Quoted 3 lines

Best regards,
Krzysztof

Thanks
Macpaul Lin

#20 lore raw

Re: [PATCH v2 1/2] dt-bindings: arm64: dts: mediatek: add mt8395-evk board

Quoted 13 lines · AngeloGioacchino Del Regno
Quoted 8 lines

Yes, mt8395 is fully compatible with mt8195.

But after reading Angelo's comment, we thought it is necessary to create a new compatible to avoid confusion for users.
https://lore.kernel.org/lkml/[email protected]/

Although they are fully compatible, developers cannot arbitrarily replace the chip on the board with another one. So separated bindings might be better.

Sorry you've misunderstood; I was trying to explain to Krzysztof that the two SoCs are fully compatible... my suggestion was in like with what you're trying to do as in I am agreeing with your first version, Macpaul, to inherit MT8195.

Quoted 6 lines

So,

- enum
- mediatek,mt8395-evk
- const: mediatek,mt8195
- const: mediatek,mt8395

The other way - mt8395 followed by mt8195 :)

Best regards,
Krzysztof

#21 lore raw

Re: [PATCH v2 1/2] dt-bindings: arm64: dts: mediatek: add mt8395-evk board

Quoted 16 lines · Krzysztof Kozlowski

External email : Please do not click links or open attachments until you have verified the sender or the content.

Quoted 11 lines · AngeloGioacchino Del Regno
Quoted 6 lines

Yes, mt8395 is fully compatible with mt8195.

But after reading Angelo's comment, we thought it is necessary to create a new compatible to avoid confusion for users.
https://lore.kernel.org/lkml/[email protected]/

Although they are fully compatible, developers cannot arbitrarily replace the chip on the board with another one. So separated bindings might be better.

Sorry you've misunderstood; I was trying to explain to Krzysztof that the two SoCs are fully compatible... my suggestion was in like with what you're trying to do as in I am agreeing with your first version, Macpaul, to inherit MT8195.

Quoted 8 lines
Quoted 6 lines

So,

- enum
- mediatek,mt8395-evk
- const: mediatek,mt8195
- const: mediatek,mt8395

The other way - mt8395 followed by mt8195 :)

Roger that. :)

Quoted 3 lines

Best regards,
Krzysztof

Thanks
Macpaul Lin

#22 lore raw

Re: [PATCH v2 1/2] dt-bindings: arm64: dts: mediatek: add mt8395-evk board

Can you please only target Reviewers/Maintainers and mailinglists reported by get_maintainers script?

I have only sent patches for mediatek and did some tests. So i'm not interested in patches for hardware i do not have here :). I guess i'm not alone... regards Frank

#23 lore raw

Re: [PATCH v2 1/2] dt-bindings: arm64: dts: mediatek: add mt8395-evk board

Quoted 8 lines · Frank Wunderlich

External email : Please do not click links or open attachments until you have verified the sender or the content.

Can you please only target Reviewers/Maintainers and mailinglists reported by get_maintainers script?

I have only sent patches for mediatek and did some tests. So i'm not interested in patches for hardware i do not have here :). I guess i'm not alone... regards Frank

I'm sorry for bothering you and other contributors. I've indeed run get_maintainers.sh script for these 2 patches. Here's the result.

Rob Herring <[email protected]> (maintainer:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS)
Krzysztof Kozlowski <[email protected]> (maintainer:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,commit_signer:3/4=75%) Conor Dooley <[email protected]> (maintainer:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS)
Matthias Brugger <[email protected]> (maintainer:ARM/Mediatek SoC support,commit_signer:3/4=75%,in file)
...
AngeloGioacchino Del Regno <[email protected]> (reviewer:ARM/Mediatek SoC support,commit_signer:2/4=50%,authored:1/4=25%,added_lines:1/12=8%) Frank Wunderlich <[email protected]> (commit_signer:1/4=25%,authored:1/4=25%,added_lines:1/12=8%)
...
[striped...]

You've contributed the similar percentage as Angelo for these files. So I think both of you could be important reviewers.
I'll try to skip contributors who add lines less then 10% next time and see if this will help.

Thanks!
Macpaul Lin

#24 lore raw

Re: [PATCH v2 1/2] dt-bindings: arm64: dts: mediatek: add mt8395-evk board

Quoted 34 lines · Macpaul Lin
Quoted 9 lines · Frank Wunderlich

External email : Please do not click links or open attachments until you have verified the sender or the content.

Can you please only target Reviewers/Maintainers and mailinglists reported by get_maintainers script?

I have only sent patches for mediatek and did some tests. So i'm not interested in patches for hardware i do not have here :). I guess i'm not alone... regards Frank

I'm sorry for bothering you and other contributors. I've indeed run get_maintainers.sh script for these 2 patches. Here's the result.

Rob Herring <[email protected]> (maintainer:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS)
Krzysztof Kozlowski <[email protected]> (maintainer:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,commit_signer:3/4=75%) Conor Dooley <[email protected]> (maintainer:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS)
Matthias Brugger <[email protected]> (maintainer:ARM/Mediatek SoC support,commit_signer:3/4=75%,in file)
...
AngeloGioacchino Del Regno <[email protected]> (reviewer:ARM/Mediatek SoC support,commit_signer:2/4=50%,authored:1/4=25%,added_lines:1/12=8%) Frank Wunderlich <[email protected]> (commit_signer:1/4=25%,authored:1/4=25%,added_lines:1/12=8%)
...
[striped...]

Quoted 4 lines

You've contributed the similar percentage as Angelo for these files. So I think both of you could be important reviewers.
I'll try to skip contributors who add lines less then 10% next time and see if this will help.

No, commit_signer is 1. Don't cc people unrelated people. Unrelated is everyone which is not maintainer, reviewer, discussion list.

Best regards,
Krzysztof