* [PATCH 0/4] fix up pin definitions for BPI-R3 board
@ 2024-06-27 7:58 Leith Bade
2024-06-27 7:58 ` [PATCH 1/4] arm64: dts: mediatek: mt7986: fix the switch reset line on BPI-R3 Leith Bade
` (4 more replies)
0 siblings, 5 replies; 12+ messages in thread
From: Leith Bade @ 2024-06-27 7:58 UTC (permalink / raw)
To: robh, krzk+dt, conor+dt, matthias.bgg, angelogioacchino.delregno,
frank-w
Cc: devicetree, linux-arm-kernel, linux-mediatek, didi.debian
This is my first patch submission to Linux so I apologise in advance for
any mistakes.
These changes were motivated by a pin conflict with the PCIe M.2 connector
and the push buttons. As a result I decided go work through all 100 GPIO
pins using the public board schematics. As I need to acquire a M.2 SSD to
test the PCIe pin change that patch is not included in this series yet.
Working though the pins I noticed a bug with with the MT7531 chip's reset
line which was on the wrong GPIO. Since it was conflicting with the boot
mode switch input GPIO pins I looked into ways to document the use of
those pins with the switch. I ended up choosing a gpio-hog, but please
let me know if there is a better alternative.
I also added some missing pin groups for some of the built-in SoC devices
to clearly document the use of those GPIO pins.
I have actually written up a gpio-line-names list give all the pins
names to match their usage on this board. If there is interest in this
I can submit this as an additional patch. I see only some MT8xxx devices
in the mediatek directory have a gpio-line-names so I wasn't sure if I
should add it.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH 1/4] arm64: dts: mediatek: mt7986: fix the switch reset line on BPI-R3
2024-06-27 7:58 [PATCH 0/4] fix up pin definitions for BPI-R3 board Leith Bade
@ 2024-06-27 7:58 ` Leith Bade
2024-07-30 9:18 ` AngeloGioacchino Del Regno
2024-06-27 7:58 ` [PATCH 2/4] arm64: dts: mediatek: mt7986: add gpio-hog for boot mode switch " Leith Bade
` (3 subsequent siblings)
4 siblings, 1 reply; 12+ messages in thread
From: Leith Bade @ 2024-06-27 7:58 UTC (permalink / raw)
To: robh, krzk+dt, conor+dt, matthias.bgg, angelogioacchino.delregno,
frank-w
Cc: devicetree, linux-arm-kernel, linux-mediatek, didi.debian,
Leith Bade
The current GPIO definition for the MT7531 switch reset line incorrectly
specifies a pin GPIO_0 (GPIO5) that is connected to the boot mode
selection DIP switch (SW1).
In the public schematic for the BPI-R3 (titled "BPI-R3-MT7986A",
revision "V1.1", sheet 4), the SPI1_CS (GPIO32) pin of the MT7986 (U1E)
is connected to the GbE_RESET net.
Frank Wunderlich has told me, via the Banana Pi forum, that this GbE_RESET
net connects to the MT7531 reset line in the private part of the shematic
he has a copy of.
Signed-off-by: Leith Bade <leith@bade.nz>
---
arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts
index ed79ad1ae871..951612ea1e66 100644
--- a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts
+++ b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts
@@ -206,7 +206,7 @@ switch: switch@31 {
interrupt-controller;
#interrupt-cells = <1>;
interrupts-extended = <&pio 66 IRQ_TYPE_LEVEL_HIGH>;
- reset-gpios = <&pio 5 GPIO_ACTIVE_HIGH>;
+ reset-gpios = <&pio 32 GPIO_ACTIVE_HIGH>;
};
};
--
2.25.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 2/4] arm64: dts: mediatek: mt7986: add gpio-hog for boot mode switch on BPI-R3
2024-06-27 7:58 [PATCH 0/4] fix up pin definitions for BPI-R3 board Leith Bade
2024-06-27 7:58 ` [PATCH 1/4] arm64: dts: mediatek: mt7986: fix the switch reset line on BPI-R3 Leith Bade
@ 2024-06-27 7:58 ` Leith Bade
2024-07-03 11:39 ` kernel test robot
2024-06-27 7:58 ` [PATCH 3/4] arm64: dts: mediatek: mt7986: add missing pin groups to BPI-R3 Leith Bade
` (2 subsequent siblings)
4 siblings, 1 reply; 12+ messages in thread
From: Leith Bade @ 2024-06-27 7:58 UTC (permalink / raw)
To: robh, krzk+dt, conor+dt, matthias.bgg, angelogioacchino.delregno,
frank-w
Cc: devicetree, linux-arm-kernel, linux-mediatek, didi.debian,
Leith Bade
To avoid future pin conflicts with the boot mode dip switch (SW1), add
a gpio-hog to document the two GPIOs it is connected to. If another device
attempts to then claim the pins a log message will get printed.
The BPI-R3 has a four position DIP switch (labelled SW1), that is used to
configure the boot mode. The first two positions (labelled A & B)
configure two bootstrap pins on the MT7986 that select which flash chip
the boot ROM will load the second stage bootloader from. The third
position toggles chip select lines to select between the NOR or NAND chip
on the SPI0 bus. The fourth position toggles chip select lines to select
between the eMMC chip or SD card on the MMC0 bus.
Only the first two positions are connected to GPIO pins on the MT7986. In
the public schematic for the BPI-R3 (titled "BPI-R3-MT7986A",
revision "V1.1", sheet 4), these are the MT7986 (U1E) pins GPIO_0 (GPIO5)
and GPIO_1 (GPIO6). This gpio-hog configures the two boot mode pins as
inputs.
Signed-off-by: Leith Bade <leith@bade.nz>
---
arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts
index 951612ea1e66..2cccbec39d34 100644
--- a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts
+++ b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts
@@ -235,6 +235,13 @@ &pcie_phy {
};
&pio {
+ boot_mode_hog: boot-mode-hog {
+ gpio-hog;
+ gpios = <5 GPIO_ACTIVE_HIGH>,
+ <6 GPIO_ACTIVE_HIGH>;
+ input;
+ };
+
i2c_pins: i2c-pins {
mux {
function = "i2c";
--
2.25.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 3/4] arm64: dts: mediatek: mt7986: add missing pin groups to BPI-R3
2024-06-27 7:58 [PATCH 0/4] fix up pin definitions for BPI-R3 board Leith Bade
2024-06-27 7:58 ` [PATCH 1/4] arm64: dts: mediatek: mt7986: fix the switch reset line on BPI-R3 Leith Bade
2024-06-27 7:58 ` [PATCH 2/4] arm64: dts: mediatek: mt7986: add gpio-hog for boot mode switch " Leith Bade
@ 2024-06-27 7:58 ` Leith Bade
2024-06-27 7:58 ` [PATCH 4/4] arm64: dts: mediatek: mt7986: add missing UART1 CTS/RTS pins in BPI-R3 Leith Bade
2024-06-27 14:48 ` [PATCH 0/4] fix up pin definitions for BPI-R3 board Rob Herring (Arm)
4 siblings, 0 replies; 12+ messages in thread
From: Leith Bade @ 2024-06-27 7:58 UTC (permalink / raw)
To: robh, krzk+dt, conor+dt, matthias.bgg, angelogioacchino.delregno,
frank-w
Cc: devicetree, linux-arm-kernel, linux-mediatek, didi.debian,
Leith Bade
The uart0, mdio and switch nodes are not connected to pin groups unlike
most of the other nodes.
Signed-off-by: Leith Bade <leith@bade.nz>
---
.../dts/mediatek/mt7986a-bananapi-bpi-r3.dts | 27 +++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts
index 2cccbec39d34..54087001cc8c 100644
--- a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts
+++ b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts
@@ -194,6 +194,8 @@ gmac1: mac@1 {
};
mdio: mdio-bus {
+ pinctrl-names = "default";
+ pinctrl-0 = <&mdio_pins>;
#address-cells = <1>;
#size-cells = <0>;
};
@@ -206,6 +208,8 @@ switch: switch@31 {
interrupt-controller;
#interrupt-cells = <1>;
interrupts-extended = <&pio 66 IRQ_TYPE_LEVEL_HIGH>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&switch_pins>;
reset-gpios = <&pio 32 GPIO_ACTIVE_HIGH>;
};
};
@@ -335,6 +339,13 @@ mux {
};
};
+ uart0_pins: uart0-pins {
+ mux {
+ function = "uart";
+ groups = "uart0";
+ };
+ };
+
uart1_pins: uart1-pins {
mux {
function = "uart";
@@ -349,6 +360,20 @@ mux {
};
};
+ mdio_pins: mdio-pins {
+ mux {
+ function = "eth";
+ groups = "mdc_mdio";
+ };
+ };
+
+ switch_pins: switch-pins {
+ mux {
+ function = "eth";
+ groups = "switch_int";
+ };
+ };
+
wf_2g_5g_pins: wf-2g-5g-pins {
mux {
function = "wifi";
@@ -471,6 +496,8 @@ &trng {
};
&uart0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&uart0_pins>;
status = "okay";
};
--
2.25.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 4/4] arm64: dts: mediatek: mt7986: add missing UART1 CTS/RTS pins in BPI-R3
2024-06-27 7:58 [PATCH 0/4] fix up pin definitions for BPI-R3 board Leith Bade
` (2 preceding siblings ...)
2024-06-27 7:58 ` [PATCH 3/4] arm64: dts: mediatek: mt7986: add missing pin groups to BPI-R3 Leith Bade
@ 2024-06-27 7:58 ` Leith Bade
2024-07-30 9:18 ` AngeloGioacchino Del Regno
2024-06-27 14:48 ` [PATCH 0/4] fix up pin definitions for BPI-R3 board Rob Herring (Arm)
4 siblings, 1 reply; 12+ messages in thread
From: Leith Bade @ 2024-06-27 7:58 UTC (permalink / raw)
To: robh, krzk+dt, conor+dt, matthias.bgg, angelogioacchino.delregno,
frank-w
Cc: devicetree, linux-arm-kernel, linux-mediatek, didi.debian,
Leith Bade
The current definition of the uart1_pins pin group does not include the
CTS and RTS pins that are available on header CON1.
In the public schematic for the BPI-R3 (titled "BPI-R3-MT7986A",
revision "V1.1", sheet 4), the UART1_RTS and UART1_CTS pins are connected
via nets to the connector CON1 (sheet 14) UART0-RTS and UART0-CTS pins.
The datasheet does not show these nets as connected to anything else.
These pins can be configured for either UART1 or as a GPIO, with no other
alternate usage listed in the pinctrl driver. By changing the pin group
definition from uart1_rx_tx to uart1 the additional RTS and CTS pins are
included.
Signed-off-by: Leith Bade <leith@bade.nz>
---
arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts
index 54087001cc8c..48bd1e04963c 100644
--- a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts
+++ b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts
@@ -349,7 +349,7 @@ mux {
uart1_pins: uart1-pins {
mux {
function = "uart";
- groups = "uart1_rx_tx";
+ groups = "uart1";
};
};
--
2.25.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH 0/4] fix up pin definitions for BPI-R3 board
2024-06-27 7:58 [PATCH 0/4] fix up pin definitions for BPI-R3 board Leith Bade
` (3 preceding siblings ...)
2024-06-27 7:58 ` [PATCH 4/4] arm64: dts: mediatek: mt7986: add missing UART1 CTS/RTS pins in BPI-R3 Leith Bade
@ 2024-06-27 14:48 ` Rob Herring (Arm)
2024-06-29 23:06 ` Leith Bade
4 siblings, 1 reply; 12+ messages in thread
From: Rob Herring (Arm) @ 2024-06-27 14:48 UTC (permalink / raw)
To: Leith Bade
Cc: devicetree, conor+dt, linux-mediatek, didi.debian, matthias.bgg,
krzk+dt, linux-arm-kernel, angelogioacchino.delregno
On Thu, 27 Jun 2024 17:58:52 +1000, Leith Bade wrote:
> This is my first patch submission to Linux so I apologise in advance for
> any mistakes.
>
> These changes were motivated by a pin conflict with the PCIe M.2 connector
> and the push buttons. As a result I decided go work through all 100 GPIO
> pins using the public board schematics. As I need to acquire a M.2 SSD to
> test the PCIe pin change that patch is not included in this series yet.
>
> Working though the pins I noticed a bug with with the MT7531 chip's reset
> line which was on the wrong GPIO. Since it was conflicting with the boot
> mode switch input GPIO pins I looked into ways to document the use of
> those pins with the switch. I ended up choosing a gpio-hog, but please
> let me know if there is a better alternative.
>
> I also added some missing pin groups for some of the built-in SoC devices
> to clearly document the use of those GPIO pins.
>
> I have actually written up a gpio-line-names list give all the pins
> names to match their usage on this board. If there is interest in this
> I can submit this as an additional patch. I see only some MT8xxx devices
> in the mediatek directory have a gpio-line-names so I wasn't sure if I
> should add it.
>
>
>
>
My bot found new DTB warnings on the .dts files added or changed in this
series.
Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings
are fixed by another series. Ultimately, it is up to the platform
maintainer whether these warnings are acceptable or not. No need to reply
unless the platform maintainer has comments.
If you already ran DT checks and didn't see these error(s), then
make sure dt-schema is up to date:
pip3 install dtschema --upgrade
New warnings running 'make CHECK_DTBS=y mediatek/mt7986a-bananapi-bpi-r3.dtb' for 20240627075856.2314804-1-leith@bade.nz:
arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dtb: pinctrl@1001f000: 'boot-mode-hog' does not match any of the regexes: '-pins$', 'pinctrl-[0-9]+'
from schema $id: http://devicetree.org/schemas/pinctrl/mediatek,mt7986-pinctrl.yaml#
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 0/4] fix up pin definitions for BPI-R3 board
2024-06-27 14:48 ` [PATCH 0/4] fix up pin definitions for BPI-R3 board Rob Herring (Arm)
@ 2024-06-29 23:06 ` Leith Bade
0 siblings, 0 replies; 12+ messages in thread
From: Leith Bade @ 2024-06-29 23:06 UTC (permalink / raw)
To: Rob Herring (Arm)
Cc: devicetree, conor+dt, linux-mediatek, didi.debian, matthias.bgg,
krzk+dt, linux-arm-kernel, angelogioacchino.delregno
On Fri, 28 Jun 2024 at 00:48, Rob Herring (Arm) <robh@kernel.org> wrote:
> New warnings running 'make CHECK_DTBS=y mediatek/mt7986a-bananapi-bpi-r3.dtb' for 20240627075856.2314804-1-leith@bade.nz:
>
> arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dtb: pinctrl@1001f000: 'boot-mode-hog' does not match any of the regexes: '-pins$', 'pinctrl-[0-9]+'
> from schema $id: http://devicetree.org/schemas/pinctrl/mediatek,mt7986-pinctrl.yaml#
I saw this warning as well when I ran the DT schema check.
However I think this is a false warning as the gpio-hog schema
requires "*-hog" in the name, but the MT7986 pinctrl schema doesn't
allow for this.
Looking at other examples of gpio-hog I can see in
arch/arm64/boot/dts/mediatek/pumpkin-common.dtsi some hogs that are
very similar to my new one with "*-hog" in the name under a node with
"gpio-controller". Another example is
arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts which has a
hog ("asm_sel") under "pio" which is the same location as my new hog,
but this one seems to violate the requirement for "hog" to be in the
name.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 2/4] arm64: dts: mediatek: mt7986: add gpio-hog for boot mode switch on BPI-R3
2024-06-27 7:58 ` [PATCH 2/4] arm64: dts: mediatek: mt7986: add gpio-hog for boot mode switch " Leith Bade
@ 2024-07-03 11:39 ` kernel test robot
2024-07-04 7:41 ` Krzysztof Kozlowski
0 siblings, 1 reply; 12+ messages in thread
From: kernel test robot @ 2024-07-03 11:39 UTC (permalink / raw)
To: Leith Bade, robh, krzk+dt, conor+dt, matthias.bgg,
angelogioacchino.delregno, frank-w
Cc: oe-kbuild-all, devicetree, linux-arm-kernel, linux-mediatek,
didi.debian, Leith Bade
Hi Leith,
kernel test robot noticed the following build warnings:
[auto build test WARNING on robh/for-next]
[also build test WARNING on linus/master v6.10-rc6 next-20240703]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Leith-Bade/arm64-dts-mediatek-mt7986-fix-the-switch-reset-line-on-BPI-R3/20240628-001353
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
patch link: https://lore.kernel.org/r/20240627075856.2314804-3-leith%40bade.nz
patch subject: [PATCH 2/4] arm64: dts: mediatek: mt7986: add gpio-hog for boot mode switch on BPI-R3
config: arm64-randconfig-051-20240703 (https://download.01.org/0day-ci/archive/20240703/202407031954.bBLv9YRp-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 13.2.0
dtschema version: 2024.6.dev3+g650bf2d
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240703/202407031954.bBLv9YRp-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202407031954.bBLv9YRp-lkp@intel.com/
dtcheck warnings: (new ones prefixed by >>)
arch/arm64/boot/dts/mediatek/mt7986a.dtsi:431.19-445.5: Warning (simple_bus_reg): /soc/t-phy: missing or empty reg/ranges property
>> arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dtb: pinctrl@1001f000: 'boot-mode-hog' does not match any of the regexes: '-pins$', 'pinctrl-[0-9]+'
from schema $id: http://devicetree.org/schemas/pinctrl/mediatek,mt7986-pinctrl.yaml#
arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dtb: crypto@10320000: interrupts: [[0, 116, 4], [0, 117, 4], [0, 118, 4], [0, 119, 4]] is too short
from schema $id: http://devicetree.org/schemas/crypto/inside-secure,safexcel.yaml#
arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dtb: crypto@10320000: interrupt-names: ['ring0', 'ring1', 'ring2', 'ring3'] is too short
from schema $id: http://devicetree.org/schemas/crypto/inside-secure,safexcel.yaml#
arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dtb: switch@31: 'interrupts' is a dependency of 'interrupt-controller'
from schema $id: http://devicetree.org/schemas/net/dsa/mediatek,mt7530.yaml#
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 2/4] arm64: dts: mediatek: mt7986: add gpio-hog for boot mode switch on BPI-R3
2024-07-03 11:39 ` kernel test robot
@ 2024-07-04 7:41 ` Krzysztof Kozlowski
2024-07-04 8:56 ` Philip Li
0 siblings, 1 reply; 12+ messages in thread
From: Krzysztof Kozlowski @ 2024-07-04 7:41 UTC (permalink / raw)
To: kernel test robot, Philip Li
Cc: devicetree, conor+dt, Leith Bade, linux-mediatek, didi.debian,
oe-kbuild-all, matthias.bgg, krzk+dt, robh, linux-arm-kernel,
angelogioacchino.delregno
On 03/07/2024 13:39, kernel test robot wrote:
> Hi Leith,
>
> kernel test robot noticed the following build warnings:
>
> [auto build test WARNING on robh/for-next]
> [also build test WARNING on linus/master v6.10-rc6 next-20240703]
> dtcheck warnings: (new ones prefixed by >>)
> arch/arm64/boot/dts/mediatek/mt7986a.dtsi:431.19-445.5: Warning (simple_bus_reg): /soc/t-phy: missing or empty reg/ranges property
>>> arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dtb: pinctrl@1001f000: 'boot-mode-hog' does not match any of the regexes: '-pins$', 'pinctrl-[0-9]+'
> from schema $id: http://devicetree.org/schemas/pinctrl/mediatek,mt7986-pinctrl.yaml#
> arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dtb: crypto@10320000: interrupts: [[0, 116, 4], [0, 117, 4], [0, 118, 4], [0, 119, 4]] is too short
> from schema $id: http://devicetree.org/schemas/crypto/inside-secure,safexcel.yaml#
> arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dtb: crypto@10320000: interrupt-names: ['ring0', 'ring1', 'ring2', 'ring3'] is too short
> from schema $id: http://devicetree.org/schemas/crypto/inside-secure,safexcel.yaml#
> arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dtb: switch@31: 'interrupts' is a dependency of 'interrupt-controller'
> from schema $id: http://devicetree.org/schemas/net/dsa/mediatek,mt7530.yaml#
Is this one more noise / false positive report?
Intel, please filter your emails only to relevant reports. I am really
getting tired of them.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 2/4] arm64: dts: mediatek: mt7986: add gpio-hog for boot mode switch on BPI-R3
2024-07-04 7:41 ` Krzysztof Kozlowski
@ 2024-07-04 8:56 ` Philip Li
0 siblings, 0 replies; 12+ messages in thread
From: Philip Li @ 2024-07-04 8:56 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: devicetree, conor+dt, kernel test robot, Leith Bade,
linux-mediatek, didi.debian, oe-kbuild-all, matthias.bgg, krzk+dt,
robh, linux-arm-kernel, angelogioacchino.delregno
On Thu, Jul 04, 2024 at 09:41:13AM +0200, Krzysztof Kozlowski wrote:
> On 03/07/2024 13:39, kernel test robot wrote:
> > Hi Leith,
> >
> > kernel test robot noticed the following build warnings:
> >
> > [auto build test WARNING on robh/for-next]
> > [also build test WARNING on linus/master v6.10-rc6 next-20240703]
>
> > dtcheck warnings: (new ones prefixed by >>)
> > arch/arm64/boot/dts/mediatek/mt7986a.dtsi:431.19-445.5: Warning (simple_bus_reg): /soc/t-phy: missing or empty reg/ranges property
> >>> arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dtb: pinctrl@1001f000: 'boot-mode-hog' does not match any of the regexes: '-pins$', 'pinctrl-[0-9]+'
> > from schema $id: http://devicetree.org/schemas/pinctrl/mediatek,mt7986-pinctrl.yaml#
> > arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dtb: crypto@10320000: interrupts: [[0, 116, 4], [0, 117, 4], [0, 118, 4], [0, 119, 4]] is too short
> > from schema $id: http://devicetree.org/schemas/crypto/inside-secure,safexcel.yaml#
> > arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dtb: crypto@10320000: interrupt-names: ['ring0', 'ring1', 'ring2', 'ring3'] is too short
> > from schema $id: http://devicetree.org/schemas/crypto/inside-secure,safexcel.yaml#
> > arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dtb: switch@31: 'interrupts' is a dependency of 'interrupt-controller'
> > from schema $id: http://devicetree.org/schemas/net/dsa/mediatek,mt7530.yaml#
>
>
> Is this one more noise / false positive report?
>
> Intel, please filter your emails only to relevant reports. I am really
> getting tired of them.
Got it, sorry for the noise. We will configure the bot to avoid sending
false reports in future.
>
> Best regards,
> Krzysztof
>
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 1/4] arm64: dts: mediatek: mt7986: fix the switch reset line on BPI-R3
2024-06-27 7:58 ` [PATCH 1/4] arm64: dts: mediatek: mt7986: fix the switch reset line on BPI-R3 Leith Bade
@ 2024-07-30 9:18 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 12+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-07-30 9:18 UTC (permalink / raw)
To: Leith Bade, robh, krzk+dt, conor+dt, matthias.bgg, frank-w
Cc: devicetree, linux-arm-kernel, linux-mediatek, didi.debian
Il 27/06/24 09:58, Leith Bade ha scritto:
> The current GPIO definition for the MT7531 switch reset line incorrectly
> specifies a pin GPIO_0 (GPIO5) that is connected to the boot mode
> selection DIP switch (SW1).
>
> In the public schematic for the BPI-R3 (titled "BPI-R3-MT7986A",
> revision "V1.1", sheet 4), the SPI1_CS (GPIO32) pin of the MT7986 (U1E)
> is connected to the GbE_RESET net.
>
> Frank Wunderlich has told me, via the Banana Pi forum, that this GbE_RESET
> net connects to the MT7531 reset line in the private part of the shematic
> he has a copy of.
>
This commit needs a Fixes tag. After which,
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
> Signed-off-by: Leith Bade <leith@bade.nz>
> ---
> arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts
> index ed79ad1ae871..951612ea1e66 100644
> --- a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts
> +++ b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts
> @@ -206,7 +206,7 @@ switch: switch@31 {
> interrupt-controller;
> #interrupt-cells = <1>;
> interrupts-extended = <&pio 66 IRQ_TYPE_LEVEL_HIGH>;
> - reset-gpios = <&pio 5 GPIO_ACTIVE_HIGH>;
> + reset-gpios = <&pio 32 GPIO_ACTIVE_HIGH>;
> };
> };
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 4/4] arm64: dts: mediatek: mt7986: add missing UART1 CTS/RTS pins in BPI-R3
2024-06-27 7:58 ` [PATCH 4/4] arm64: dts: mediatek: mt7986: add missing UART1 CTS/RTS pins in BPI-R3 Leith Bade
@ 2024-07-30 9:18 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 12+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-07-30 9:18 UTC (permalink / raw)
To: Leith Bade, robh, krzk+dt, conor+dt, matthias.bgg, frank-w
Cc: devicetree, linux-arm-kernel, linux-mediatek, didi.debian
Il 27/06/24 09:58, Leith Bade ha scritto:
> The current definition of the uart1_pins pin group does not include the
> CTS and RTS pins that are available on header CON1.
>
> In the public schematic for the BPI-R3 (titled "BPI-R3-MT7986A",
> revision "V1.1", sheet 4), the UART1_RTS and UART1_CTS pins are connected
> via nets to the connector CON1 (sheet 14) UART0-RTS and UART0-CTS pins.
> The datasheet does not show these nets as connected to anything else.
>
> These pins can be configured for either UART1 or as a GPIO, with no other
> alternate usage listed in the pinctrl driver. By changing the pin group
> definition from uart1_rx_tx to uart1 the additional RTS and CTS pins are
> included.
>
> Signed-off-by: Leith Bade <leith@bade.nz>
Fixes tag please, after which:
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Cheers,
Angelo
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2024-07-30 9:19 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-27 7:58 [PATCH 0/4] fix up pin definitions for BPI-R3 board Leith Bade
2024-06-27 7:58 ` [PATCH 1/4] arm64: dts: mediatek: mt7986: fix the switch reset line on BPI-R3 Leith Bade
2024-07-30 9:18 ` AngeloGioacchino Del Regno
2024-06-27 7:58 ` [PATCH 2/4] arm64: dts: mediatek: mt7986: add gpio-hog for boot mode switch " Leith Bade
2024-07-03 11:39 ` kernel test robot
2024-07-04 7:41 ` Krzysztof Kozlowski
2024-07-04 8:56 ` Philip Li
2024-06-27 7:58 ` [PATCH 3/4] arm64: dts: mediatek: mt7986: add missing pin groups to BPI-R3 Leith Bade
2024-06-27 7:58 ` [PATCH 4/4] arm64: dts: mediatek: mt7986: add missing UART1 CTS/RTS pins in BPI-R3 Leith Bade
2024-07-30 9:18 ` AngeloGioacchino Del Regno
2024-06-27 14:48 ` [PATCH 0/4] fix up pin definitions for BPI-R3 board Rob Herring (Arm)
2024-06-29 23:06 ` Leith Bade
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).