* [PATCH 1/2] dt-bindings: arm: mediatek: Add Bananapi BPI-R3 mini
@ 2024-06-02 10:40 Chukun Pan
2024-06-02 10:40 ` [PATCH 2/2] arm64: dts: " Chukun Pan
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Chukun Pan @ 2024-06-02 10:40 UTC (permalink / raw)
To: Matthias Brugger, AngeloGioacchino Del Regno
Cc: Krzysztof Kozlowski, Conor Dooley, Rob Herring, linux-arm-kernel,
linux-mediatek, linux-kernel, devicetree, Chukun Pan
Add compatible for Bananapi BPI-R3 mini Router (Filogic 830).
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
---
Documentation/devicetree/bindings/arm/mediatek.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b/Documentation/devicetree/bindings/arm/mediatek.yaml
index 09f9ffd3ff7b..12946e9dcd12 100644
--- a/Documentation/devicetree/bindings/arm/mediatek.yaml
+++ b/Documentation/devicetree/bindings/arm/mediatek.yaml
@@ -91,6 +91,7 @@ properties:
- enum:
- acelink,ew-7886cax
- bananapi,bpi-r3
+ - bananapi,bpi-r3-mini
- mediatek,mt7986a-rfb
- const: mediatek,mt7986a
- items:
--
2.25.1
^ permalink raw reply related [flat|nested] 5+ messages in thread* [PATCH 2/2] arm64: dts: mediatek: Add Bananapi BPI-R3 mini 2024-06-02 10:40 [PATCH 1/2] dt-bindings: arm: mediatek: Add Bananapi BPI-R3 mini Chukun Pan @ 2024-06-02 10:40 ` Chukun Pan 2024-07-18 15:47 ` Shengyu Qu 2024-06-02 16:44 ` [PATCH 1/2] dt-bindings: arm: " Krzysztof Kozlowski 2024-06-04 15:28 ` Rob Herring (Arm) 2 siblings, 1 reply; 5+ messages in thread From: Chukun Pan @ 2024-06-02 10:40 UTC (permalink / raw) To: Matthias Brugger, AngeloGioacchino Del Regno Cc: Krzysztof Kozlowski, Conor Dooley, Rob Herring, linux-arm-kernel, linux-mediatek, linux-kernel, devicetree, Chukun Pan The Bananapi BPI-R3 mini is a development board with the MediaTek MT7986A (Filogic 830) SoC. Key Features: 2GB DDR4 RAM 8GB eMMC flash 128MB Nand flash MT7976C DBDC WiFi 1x FAN connector 1x NANO SIM slot 1x USB2.0 Type-A 1x M.2 Key B USB 1x M.2 Key M PCIe 2x 2.5GbE EN8811H Ethernet Type-C PD 12V Power supply Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn> --- arch/arm64/boot/dts/mediatek/Makefile | 1 + .../mediatek/mt7986a-bananapi-bpi-r3-mini.dts | 480 ++++++++++++++++++ 2 files changed, 481 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-mini.dts diff --git a/arch/arm64/boot/dts/mediatek/Makefile b/arch/arm64/boot/dts/mediatek/Makefile index 37b4ca3a87c9..14af5681d0ee 100644 --- a/arch/arm64/boot/dts/mediatek/Makefile +++ b/arch/arm64/boot/dts/mediatek/Makefile @@ -12,6 +12,7 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt7981b-xiaomi-ax3000t.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-acelink-ew-7886cax.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-emmc.dtbo +dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-mini.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-nand.dtbo dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-nor.dtbo dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-sd.dtbo diff --git a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-mini.dts b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-mini.dts new file mode 100644 index 000000000000..683b7394ff79 --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-mini.dts @@ -0,0 +1,480 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +/dts-v1/; +#include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/input/input.h> +#include <dt-bindings/leds/common.h> + +#include "mt7986a.dtsi" + +/ { + model = "Bananapi BPI-R3 mini"; + chassis-type = "embedded"; + compatible = "bananapi,bpi-r3-mini", "mediatek,mt7986a"; + + aliases { + serial0 = &uart0; + ethernet0 = &gmac0; + ethernet1 = &gmac1; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + keys { + compatible = "gpio-keys"; + + key-reset { + label = "reset"; + linux,code = <KEY_RESTART>; + gpios = <&pio 7 GPIO_ACTIVE_LOW>; + }; + }; + + leds { + compatible = "gpio-leds"; + + led-0 { + function = LED_FUNCTION_STATUS; + color = <LED_COLOR_ID_GREEN>; + gpios = <&pio 19 GPIO_ACTIVE_HIGH>; + default-state = "on"; + }; + }; + + fan: pwm-fan { + compatible = "pwm-fan"; + /* cooling level (0, 1, 2, 3) - pwm inverted */ + cooling-levels = <255 128 64 0>; + pwms = <&pwm 0 10000>; + #cooling-cells = <2>; + }; + + rfkill { + compatible = "rfkill-gpio"; + label = "rfkill-modem"; + radio-type = "wwan"; + reset-gpios = <&pio 15 GPIO_ACTIVE_HIGH>; + shutdown-gpios = <&pio 13 GPIO_ACTIVE_HIGH>; + }; + + dcin: regulator-12vd { + compatible = "regulator-fixed"; + regulator-name = "12vd"; + regulator-min-microvolt = <12000000>; + regulator-max-microvolt = <12000000>; + regulator-boot-on; + regulator-always-on; + }; + + reg_1p8v: regulator-1p8v { + compatible = "regulator-fixed"; + regulator-name = "1.8vd"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + vin-supply = <&dcin>; + }; + + reg_3p3v: regulator-3p3v { + compatible = "regulator-fixed"; + regulator-name = "3.3vd"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + vin-supply = <&dcin>; + }; + + reg_5v_vbus: regulator-5v-vbus { + compatible = "regulator-fixed"; + regulator-name = "5v_vbus1"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-boot-on; + regulator-always-on; + vin-supply = <&dcin>; + }; + + /* labeled A_EN8811_PWR in schematic */ + reg_phya: regulator-phya { + compatible = "regulator-fixed"; + gpio = <&pio 16 GPIO_ACTIVE_LOW>; + regulator-name = "reg_phya"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + /* labeled B_EN8811_PWR in schematic */ + reg_phyb: regulator-phyb { + compatible = "regulator-fixed"; + gpio = <&pio 17 GPIO_ACTIVE_LOW>; + regulator-name = "reg_phyb"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + vcc_keyb: regulator-vcc-keyb { + compatible = "regulator-fixed"; + gpio = <&pio 20 GPIO_ACTIVE_LOW>; + regulator-name = "vcc_keyb"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <®_3p3v>; + }; +}; + +&cpu_thermal { + cooling-maps { + map-cpu-active-high { + /* active: set fan to cooling level 3 */ + cooling-device = <&fan 3 3>; + trip = <&cpu_trip_active_high>; + }; + + map-cpu-active-med { + /* active: set fan to cooling level 2 */ + cooling-device = <&fan 2 2>; + trip = <&cpu_trip_active_med>; + }; + + map-cpu-active-low { + /* active: set fan to cooling level 1 */ + cooling-device = <&fan 1 1>; + trip = <&cpu_trip_active_low>; + }; + }; +}; + +&crypto { + status = "okay"; +}; + +ð { + pinctrl-names = "default"; + pinctrl-0 = <&mdio_pins>; + status = "okay"; + + gmac0: mac@0 { + compatible = "mediatek,eth-mac"; + reg = <0>; + phy-mode = "2500base-x"; + phy-handle = <&phy14>; + phy-supply = <®_phya>; + }; + + gmac1: mac@1 { + compatible = "mediatek,eth-mac"; + reg = <1>; + phy-mode = "2500base-x"; + phy-handle = <&phy15>; + phy-supply = <®_phyb>; + }; + + mdio: mdio-bus { + #address-cells = <1>; + #size-cells = <0>; + }; +}; + +&mdio { + phy14: phy@14 { + compatible = "ethernet-phy-ieee802.3-c45"; + reg = <14>; + reset-assert-us = <10000>; + reset-deassert-us = <20000>; + reset-gpios = <&pio 49 GPIO_ACTIVE_LOW>; + interrupt-parent = <&pio>; + interrupts = <48 IRQ_TYPE_EDGE_FALLING>; + airoha,pnswap-rx; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + function = LED_FUNCTION_LAN; + color = <LED_COLOR_ID_AMBER>; + default-state = "keep"; + }; + + led@1 { + reg = <1>; + function = LED_FUNCTION_LAN; + color = <LED_COLOR_ID_GREEN>; + default-state = "keep"; + }; + }; + }; + + phy15: phy@15 { + compatible = "ethernet-phy-ieee802.3-c45"; + reg = <15>; + reset-assert-us = <10000>; + reset-deassert-us = <20000>; + reset-gpios = <&pio 47 GPIO_ACTIVE_LOW>; + interrupt-parent = <&pio>; + interrupts = <46 IRQ_TYPE_EDGE_FALLING>; + airoha,pnswap-rx; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + function = LED_FUNCTION_WAN; + color = <LED_COLOR_ID_AMBER>; + default-state = "keep"; + }; + + led@1 { + reg = <1>; + function = LED_FUNCTION_WAN; + color = <LED_COLOR_ID_GREEN>; + default-state = "keep"; + }; + }; + }; +}; + +&i2c0 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins>; + status = "okay"; + + eeprom@50 { + compatible = "atmel,24c02"; + reg = <0x50>; + pagesize = <8>; + size = <256>; + }; +}; + +&spi0 { + pinctrl-names = "default"; + pinctrl-0 = <&spi_flash_pins>; + status = "okay"; + + spi_nand: flash@0 { + compatible = "spi-nand"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0>; + + spi-max-frequency = <52000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <4>; + }; +}; + +&mmc0 { + bus-width = <8>; + cap-mmc-highspeed; + hs400-ds-delay = <0x14014>; + max-frequency = <200000000>; + mmc-hs200-1_8v; + mmc-hs400-1_8v; + non-removable; + no-sd; + no-sdio; + pinctrl-names = "default", "state_uhs"; + pinctrl-0 = <&mmc0_pins_default>; + pinctrl-1 = <&mmc0_pins_uhs>; + vmmc-supply = <®_3p3v>; + vqmmc-supply = <®_1p8v>; + status = "okay"; +}; + +&pcie { + pinctrl-names = "default"; + pinctrl-0 = <&pcie_pins>; + status = "okay"; +}; + +&pcie_phy { + status = "okay"; +}; + +&pio { + i2c0_pins: i2c0-pins { + mux { + function = "i2c"; + groups = "i2c"; + }; + }; + + mdio_pins: mdio-pins { + mux { + function = "eth"; + groups = "mdc_mdio"; + }; + }; + + spi_flash_pins: spi-flash-pins { + mux { + function = "spi"; + groups = "spi0", "spi0_wp_hold"; + }; + conf-pu { + pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP"; + drive-strength = <8>; + mediatek,pull-up-adv = <0>; /* bias-disable */ + }; + conf-pd { + pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO"; + drive-strength = <8>; + mediatek,pull-down-adv = <0>; /* bias-disable */ + }; + }; + + mmc0_pins_default: mmc0-pins { + mux { + function = "emmc"; + groups = "emmc_51"; + }; + conf-cmd-dat { + pins = "EMMC_DATA_0", "EMMC_DATA_1", "EMMC_DATA_2", + "EMMC_DATA_3", "EMMC_DATA_4", "EMMC_DATA_5", + "EMMC_DATA_6", "EMMC_DATA_7", "EMMC_CMD"; + input-enable; + drive-strength = <4>; + mediatek,pull-up-adv = <1>; /* pull-up 10K */ + }; + conf-clk { + pins = "EMMC_CK"; + drive-strength = <6>; + mediatek,pull-down-adv = <2>; /* pull-down 50K */ + }; + conf-ds { + pins = "EMMC_DSL"; + mediatek,pull-down-adv = <2>; /* pull-down 50K */ + }; + conf-rst { + pins = "EMMC_RSTB"; + drive-strength = <4>; + mediatek,pull-up-adv = <1>; /* pull-up 10K */ + }; + }; + + mmc0_pins_uhs: mmc0-uhs-pins { + mux { + function = "emmc"; + groups = "emmc_51"; + }; + conf-cmd-dat { + pins = "EMMC_DATA_0", "EMMC_DATA_1", "EMMC_DATA_2", + "EMMC_DATA_3", "EMMC_DATA_4", "EMMC_DATA_5", + "EMMC_DATA_6", "EMMC_DATA_7", "EMMC_CMD"; + input-enable; + drive-strength = <4>; + mediatek,pull-up-adv = <1>; /* pull-up 10K */ + }; + conf-clk { + pins = "EMMC_CK"; + drive-strength = <6>; + mediatek,pull-down-adv = <2>; /* pull-down 50K */ + }; + conf-ds { + pins = "EMMC_DSL"; + mediatek,pull-down-adv = <2>; /* pull-down 50K */ + }; + conf-rst { + pins = "EMMC_RSTB"; + drive-strength = <4>; + mediatek,pull-up-adv = <1>; /* pull-up 10K */ + }; + }; + + pcie_pins: pcie-pins { + mux { + function = "pcie"; + groups = "pcie_clk", "pcie_wake", "pcie_pereset"; + }; + }; + + pwm_pins: pwm-pins { + mux { + function = "pwm"; + groups = "pwm0", "pwm1_0"; + }; + }; + + uart1_pins: uart1-pins { + mux { + function = "uart"; + groups = "uart1"; + }; + }; + + wf_led_pins: wf-led-pins { + mux { + function = "led"; + groups = "wifi_led"; + }; + }; + + wf_dbdc_pins: wf-dbdc-pins { + mux { + function = "wifi"; + groups = "wf_dbdc"; + }; + conf { + pins = "WF0_HB1", "WF0_HB2", "WF0_HB3", "WF0_HB4", + "WF0_HB0", "WF0_HB0_B", "WF0_HB5", "WF0_HB6", + "WF0_HB7", "WF0_HB8", "WF0_HB9", "WF0_HB10", + "WF0_TOP_CLK", "WF0_TOP_DATA", "WF1_HB1", + "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0", + "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8", + "WF1_TOP_CLK", "WF1_TOP_DATA"; + drive-strength = <4>; + }; + }; +}; + +&pwm { + pinctrl-names = "default"; + pinctrl-0 = <&pwm_pins>; + status = "okay"; +}; + +&ssusb { + vusb33-supply = <&vcc_keyb>; + vbus-supply = <®_5v_vbus>; + status = "okay"; +}; + +&trng { + status = "okay"; +}; + +&uart0 { + status = "okay"; +}; + +&uart1 { + pinctrl-names = "default"; + pinctrl-0 = <&uart1_pins>; + status = "okay"; +}; + +&usb_phy { + status = "okay"; +}; + +&watchdog { + status = "okay"; +}; + +&wifi { + pinctrl-names = "dbdc"; + pinctrl-0 = <&wf_dbdc_pins>, <&wf_led_pins>; + status = "okay"; +}; -- 2.25.1 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] arm64: dts: mediatek: Add Bananapi BPI-R3 mini 2024-06-02 10:40 ` [PATCH 2/2] arm64: dts: " Chukun Pan @ 2024-07-18 15:47 ` Shengyu Qu 0 siblings, 0 replies; 5+ messages in thread From: Shengyu Qu @ 2024-07-18 15:47 UTC (permalink / raw) To: Chukun Pan, Matthias Brugger, AngeloGioacchino Del Regno Cc: wiagn233, Krzysztof Kozlowski, Conor Dooley, Rob Herring, linux-arm-kernel, linux-mediatek, linux-kernel, devicetree [-- Attachment #1.1.1: Type: text/plain, Size: 13318 bytes --] Hi, I have made some changes to the dts, can you have a look? Maybe they can be added in the next version. https://github.com/openwrt/openwrt/pull/15936 Best regards, Shengyu 在 2024/6/2 18:40, Chukun Pan 写道: > The Bananapi BPI-R3 mini is a development board with the > MediaTek MT7986A (Filogic 830) SoC. > > Key Features: > 2GB DDR4 RAM > 8GB eMMC flash > 128MB Nand flash > MT7976C DBDC WiFi > 1x FAN connector > 1x NANO SIM slot > 1x USB2.0 Type-A > 1x M.2 Key B USB > 1x M.2 Key M PCIe > 2x 2.5GbE EN8811H Ethernet > Type-C PD 12V Power supply > > Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn> > --- > arch/arm64/boot/dts/mediatek/Makefile | 1 + > .../mediatek/mt7986a-bananapi-bpi-r3-mini.dts | 480 ++++++++++++++++++ > 2 files changed, 481 insertions(+) > create mode 100644 arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-mini.dts > > diff --git a/arch/arm64/boot/dts/mediatek/Makefile b/arch/arm64/boot/dts/mediatek/Makefile > index 37b4ca3a87c9..14af5681d0ee 100644 > --- a/arch/arm64/boot/dts/mediatek/Makefile > +++ b/arch/arm64/boot/dts/mediatek/Makefile > @@ -12,6 +12,7 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt7981b-xiaomi-ax3000t.dtb > dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-acelink-ew-7886cax.dtb > dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3.dtb > dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-emmc.dtbo > +dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-mini.dtb > dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-nand.dtbo > dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-nor.dtbo > dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-sd.dtbo > diff --git a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-mini.dts b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-mini.dts > new file mode 100644 > index 000000000000..683b7394ff79 > --- /dev/null > +++ b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-mini.dts > @@ -0,0 +1,480 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT > + > +/dts-v1/; > +#include <dt-bindings/gpio/gpio.h> > +#include <dt-bindings/input/input.h> > +#include <dt-bindings/leds/common.h> > + > +#include "mt7986a.dtsi" > + > +/ { > + model = "Bananapi BPI-R3 mini"; > + chassis-type = "embedded"; > + compatible = "bananapi,bpi-r3-mini", "mediatek,mt7986a"; > + > + aliases { > + serial0 = &uart0; > + ethernet0 = &gmac0; > + ethernet1 = &gmac1; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > + > + keys { > + compatible = "gpio-keys"; > + > + key-reset { > + label = "reset"; > + linux,code = <KEY_RESTART>; > + gpios = <&pio 7 GPIO_ACTIVE_LOW>; > + }; > + }; > + > + leds { > + compatible = "gpio-leds"; > + > + led-0 { > + function = LED_FUNCTION_STATUS; > + color = <LED_COLOR_ID_GREEN>; > + gpios = <&pio 19 GPIO_ACTIVE_HIGH>; > + default-state = "on"; > + }; > + }; > + > + fan: pwm-fan { > + compatible = "pwm-fan"; > + /* cooling level (0, 1, 2, 3) - pwm inverted */ > + cooling-levels = <255 128 64 0>; > + pwms = <&pwm 0 10000>; > + #cooling-cells = <2>; > + }; > + > + rfkill { > + compatible = "rfkill-gpio"; > + label = "rfkill-modem"; > + radio-type = "wwan"; > + reset-gpios = <&pio 15 GPIO_ACTIVE_HIGH>; > + shutdown-gpios = <&pio 13 GPIO_ACTIVE_HIGH>; > + }; > + > + dcin: regulator-12vd { > + compatible = "regulator-fixed"; > + regulator-name = "12vd"; > + regulator-min-microvolt = <12000000>; > + regulator-max-microvolt = <12000000>; > + regulator-boot-on; > + regulator-always-on; > + }; > + > + reg_1p8v: regulator-1p8v { > + compatible = "regulator-fixed"; > + regulator-name = "1.8vd"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-boot-on; > + regulator-always-on; > + vin-supply = <&dcin>; > + }; > + > + reg_3p3v: regulator-3p3v { > + compatible = "regulator-fixed"; > + regulator-name = "3.3vd"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-boot-on; > + regulator-always-on; > + vin-supply = <&dcin>; > + }; > + > + reg_5v_vbus: regulator-5v-vbus { > + compatible = "regulator-fixed"; > + regulator-name = "5v_vbus1"; > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + regulator-boot-on; > + regulator-always-on; > + vin-supply = <&dcin>; > + }; > + > + /* labeled A_EN8811_PWR in schematic */ > + reg_phya: regulator-phya { > + compatible = "regulator-fixed"; > + gpio = <&pio 16 GPIO_ACTIVE_LOW>; > + regulator-name = "reg_phya"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-boot-on; > + regulator-always-on; > + }; > + > + /* labeled B_EN8811_PWR in schematic */ > + reg_phyb: regulator-phyb { > + compatible = "regulator-fixed"; > + gpio = <&pio 17 GPIO_ACTIVE_LOW>; > + regulator-name = "reg_phyb"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-boot-on; > + regulator-always-on; > + }; > + > + vcc_keyb: regulator-vcc-keyb { > + compatible = "regulator-fixed"; > + gpio = <&pio 20 GPIO_ACTIVE_LOW>; > + regulator-name = "vcc_keyb"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + vin-supply = <®_3p3v>; > + }; > +}; > + > +&cpu_thermal { > + cooling-maps { > + map-cpu-active-high { > + /* active: set fan to cooling level 3 */ > + cooling-device = <&fan 3 3>; > + trip = <&cpu_trip_active_high>; > + }; > + > + map-cpu-active-med { > + /* active: set fan to cooling level 2 */ > + cooling-device = <&fan 2 2>; > + trip = <&cpu_trip_active_med>; > + }; > + > + map-cpu-active-low { > + /* active: set fan to cooling level 1 */ > + cooling-device = <&fan 1 1>; > + trip = <&cpu_trip_active_low>; > + }; > + }; > +}; > + > +&crypto { > + status = "okay"; > +}; > + > +ð { > + pinctrl-names = "default"; > + pinctrl-0 = <&mdio_pins>; > + status = "okay"; > + > + gmac0: mac@0 { > + compatible = "mediatek,eth-mac"; > + reg = <0>; > + phy-mode = "2500base-x"; > + phy-handle = <&phy14>; > + phy-supply = <®_phya>; > + }; > + > + gmac1: mac@1 { > + compatible = "mediatek,eth-mac"; > + reg = <1>; > + phy-mode = "2500base-x"; > + phy-handle = <&phy15>; > + phy-supply = <®_phyb>; > + }; > + > + mdio: mdio-bus { > + #address-cells = <1>; > + #size-cells = <0>; > + }; > +}; > + > +&mdio { > + phy14: phy@14 { > + compatible = "ethernet-phy-ieee802.3-c45"; > + reg = <14>; > + reset-assert-us = <10000>; > + reset-deassert-us = <20000>; > + reset-gpios = <&pio 49 GPIO_ACTIVE_LOW>; > + interrupt-parent = <&pio>; > + interrupts = <48 IRQ_TYPE_EDGE_FALLING>; > + airoha,pnswap-rx; > + > + leds { > + #address-cells = <1>; > + #size-cells = <0>; > + > + led@0 { > + reg = <0>; > + function = LED_FUNCTION_LAN; > + color = <LED_COLOR_ID_AMBER>; > + default-state = "keep"; > + }; > + > + led@1 { > + reg = <1>; > + function = LED_FUNCTION_LAN; > + color = <LED_COLOR_ID_GREEN>; > + default-state = "keep"; > + }; > + }; > + }; > + > + phy15: phy@15 { > + compatible = "ethernet-phy-ieee802.3-c45"; > + reg = <15>; > + reset-assert-us = <10000>; > + reset-deassert-us = <20000>; > + reset-gpios = <&pio 47 GPIO_ACTIVE_LOW>; > + interrupt-parent = <&pio>; > + interrupts = <46 IRQ_TYPE_EDGE_FALLING>; > + airoha,pnswap-rx; > + > + leds { > + #address-cells = <1>; > + #size-cells = <0>; > + > + led@0 { > + reg = <0>; > + function = LED_FUNCTION_WAN; > + color = <LED_COLOR_ID_AMBER>; > + default-state = "keep"; > + }; > + > + led@1 { > + reg = <1>; > + function = LED_FUNCTION_WAN; > + color = <LED_COLOR_ID_GREEN>; > + default-state = "keep"; > + }; > + }; > + }; > +}; > + > +&i2c0 { > + pinctrl-names = "default"; > + pinctrl-0 = <&i2c0_pins>; > + status = "okay"; > + > + eeprom@50 { > + compatible = "atmel,24c02"; > + reg = <0x50>; > + pagesize = <8>; > + size = <256>; > + }; > +}; > + > +&spi0 { > + pinctrl-names = "default"; > + pinctrl-0 = <&spi_flash_pins>; > + status = "okay"; > + > + spi_nand: flash@0 { > + compatible = "spi-nand"; > + #address-cells = <1>; > + #size-cells = <1>; > + reg = <0>; > + > + spi-max-frequency = <52000000>; > + spi-rx-bus-width = <4>; > + spi-tx-bus-width = <4>; > + }; > +}; > + > +&mmc0 { > + bus-width = <8>; > + cap-mmc-highspeed; > + hs400-ds-delay = <0x14014>; > + max-frequency = <200000000>; > + mmc-hs200-1_8v; > + mmc-hs400-1_8v; > + non-removable; > + no-sd; > + no-sdio; > + pinctrl-names = "default", "state_uhs"; > + pinctrl-0 = <&mmc0_pins_default>; > + pinctrl-1 = <&mmc0_pins_uhs>; > + vmmc-supply = <®_3p3v>; > + vqmmc-supply = <®_1p8v>; > + status = "okay"; > +}; > + > +&pcie { > + pinctrl-names = "default"; > + pinctrl-0 = <&pcie_pins>; > + status = "okay"; > +}; > + > +&pcie_phy { > + status = "okay"; > +}; > + > +&pio { > + i2c0_pins: i2c0-pins { > + mux { > + function = "i2c"; > + groups = "i2c"; > + }; > + }; > + > + mdio_pins: mdio-pins { > + mux { > + function = "eth"; > + groups = "mdc_mdio"; > + }; > + }; > + > + spi_flash_pins: spi-flash-pins { > + mux { > + function = "spi"; > + groups = "spi0", "spi0_wp_hold"; > + }; > + conf-pu { > + pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP"; > + drive-strength = <8>; > + mediatek,pull-up-adv = <0>; /* bias-disable */ > + }; > + conf-pd { > + pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO"; > + drive-strength = <8>; > + mediatek,pull-down-adv = <0>; /* bias-disable */ > + }; > + }; > + > + mmc0_pins_default: mmc0-pins { > + mux { > + function = "emmc"; > + groups = "emmc_51"; > + }; > + conf-cmd-dat { > + pins = "EMMC_DATA_0", "EMMC_DATA_1", "EMMC_DATA_2", > + "EMMC_DATA_3", "EMMC_DATA_4", "EMMC_DATA_5", > + "EMMC_DATA_6", "EMMC_DATA_7", "EMMC_CMD"; > + input-enable; > + drive-strength = <4>; > + mediatek,pull-up-adv = <1>; /* pull-up 10K */ > + }; > + conf-clk { > + pins = "EMMC_CK"; > + drive-strength = <6>; > + mediatek,pull-down-adv = <2>; /* pull-down 50K */ > + }; > + conf-ds { > + pins = "EMMC_DSL"; > + mediatek,pull-down-adv = <2>; /* pull-down 50K */ > + }; > + conf-rst { > + pins = "EMMC_RSTB"; > + drive-strength = <4>; > + mediatek,pull-up-adv = <1>; /* pull-up 10K */ > + }; > + }; > + > + mmc0_pins_uhs: mmc0-uhs-pins { > + mux { > + function = "emmc"; > + groups = "emmc_51"; > + }; > + conf-cmd-dat { > + pins = "EMMC_DATA_0", "EMMC_DATA_1", "EMMC_DATA_2", > + "EMMC_DATA_3", "EMMC_DATA_4", "EMMC_DATA_5", > + "EMMC_DATA_6", "EMMC_DATA_7", "EMMC_CMD"; > + input-enable; > + drive-strength = <4>; > + mediatek,pull-up-adv = <1>; /* pull-up 10K */ > + }; > + conf-clk { > + pins = "EMMC_CK"; > + drive-strength = <6>; > + mediatek,pull-down-adv = <2>; /* pull-down 50K */ > + }; > + conf-ds { > + pins = "EMMC_DSL"; > + mediatek,pull-down-adv = <2>; /* pull-down 50K */ > + }; > + conf-rst { > + pins = "EMMC_RSTB"; > + drive-strength = <4>; > + mediatek,pull-up-adv = <1>; /* pull-up 10K */ > + }; > + }; > + > + pcie_pins: pcie-pins { > + mux { > + function = "pcie"; > + groups = "pcie_clk", "pcie_wake", "pcie_pereset"; > + }; > + }; > + > + pwm_pins: pwm-pins { > + mux { > + function = "pwm"; > + groups = "pwm0", "pwm1_0"; > + }; > + }; > + > + uart1_pins: uart1-pins { > + mux { > + function = "uart"; > + groups = "uart1"; > + }; > + }; > + > + wf_led_pins: wf-led-pins { > + mux { > + function = "led"; > + groups = "wifi_led"; > + }; > + }; > + > + wf_dbdc_pins: wf-dbdc-pins { > + mux { > + function = "wifi"; > + groups = "wf_dbdc"; > + }; > + conf { > + pins = "WF0_HB1", "WF0_HB2", "WF0_HB3", "WF0_HB4", > + "WF0_HB0", "WF0_HB0_B", "WF0_HB5", "WF0_HB6", > + "WF0_HB7", "WF0_HB8", "WF0_HB9", "WF0_HB10", > + "WF0_TOP_CLK", "WF0_TOP_DATA", "WF1_HB1", > + "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0", > + "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8", > + "WF1_TOP_CLK", "WF1_TOP_DATA"; > + drive-strength = <4>; > + }; > + }; > +}; > + > +&pwm { > + pinctrl-names = "default"; > + pinctrl-0 = <&pwm_pins>; > + status = "okay"; > +}; > + > +&ssusb { > + vusb33-supply = <&vcc_keyb>; > + vbus-supply = <®_5v_vbus>; > + status = "okay"; > +}; > + > +&trng { > + status = "okay"; > +}; > + > +&uart0 { > + status = "okay"; > +}; > + > +&uart1 { > + pinctrl-names = "default"; > + pinctrl-0 = <&uart1_pins>; > + status = "okay"; > +}; > + > +&usb_phy { > + status = "okay"; > +}; > + > +&watchdog { > + status = "okay"; > +}; > + > +&wifi { > + pinctrl-names = "dbdc"; > + pinctrl-0 = <&wf_dbdc_pins>, <&wf_led_pins>; > + status = "okay"; > +}; [-- Attachment #1.1.2: OpenPGP public key --] [-- Type: application/pgp-keys, Size: 6977 bytes --] [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 840 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] dt-bindings: arm: mediatek: Add Bananapi BPI-R3 mini 2024-06-02 10:40 [PATCH 1/2] dt-bindings: arm: mediatek: Add Bananapi BPI-R3 mini Chukun Pan 2024-06-02 10:40 ` [PATCH 2/2] arm64: dts: " Chukun Pan @ 2024-06-02 16:44 ` Krzysztof Kozlowski 2024-06-04 15:28 ` Rob Herring (Arm) 2 siblings, 0 replies; 5+ messages in thread From: Krzysztof Kozlowski @ 2024-06-02 16:44 UTC (permalink / raw) To: Chukun Pan, Matthias Brugger, AngeloGioacchino Del Regno Cc: Krzysztof Kozlowski, Conor Dooley, Rob Herring, linux-arm-kernel, linux-mediatek, linux-kernel, devicetree On 02/06/2024 12:40, Chukun Pan wrote: > Add compatible for Bananapi BPI-R3 mini Router (Filogic 830). > > Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn> > --- > Documentation/devicetree/bindings/arm/mediatek.yaml | 1 + > 1 file changed, 1 insertion(+) > Acked-by: Krzysztof Kozlowski <krzk@kernel.org> Best regards, Krzysztof ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] dt-bindings: arm: mediatek: Add Bananapi BPI-R3 mini 2024-06-02 10:40 [PATCH 1/2] dt-bindings: arm: mediatek: Add Bananapi BPI-R3 mini Chukun Pan 2024-06-02 10:40 ` [PATCH 2/2] arm64: dts: " Chukun Pan 2024-06-02 16:44 ` [PATCH 1/2] dt-bindings: arm: " Krzysztof Kozlowski @ 2024-06-04 15:28 ` Rob Herring (Arm) 2 siblings, 0 replies; 5+ messages in thread From: Rob Herring (Arm) @ 2024-06-04 15:28 UTC (permalink / raw) To: Chukun Pan Cc: linux-mediatek, devicetree, Conor Dooley, Matthias Brugger, linux-arm-kernel, AngeloGioacchino Del Regno, linux-kernel, Krzysztof Kozlowski On Sun, 02 Jun 2024 18:40:20 +0800, Chukun Pan wrote: > Add compatible for Bananapi BPI-R3 mini Router (Filogic 830). > > Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn> > --- > Documentation/devicetree/bindings/arm/mediatek.yaml | 1 + > 1 file changed, 1 insertion(+) > 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-mini.dtb' for 20240602104021.387713-1-amadeus@jmu.edu.cn: arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-mini.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-mini.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-mini.dtb: ethernet@15100000: mac@0: Unevaluated properties are not allowed ('phy-supply' was unexpected) from schema $id: http://devicetree.org/schemas/net/mediatek,net.yaml# arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-mini.dtb: ethernet@15100000: mac@1: Unevaluated properties are not allowed ('phy-supply' was unexpected) from schema $id: http://devicetree.org/schemas/net/mediatek,net.yaml# arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-mini.dtb: rfkill: 'reset-gpios' does not match any of the regexes: 'pinctrl-[0-9]+' from schema $id: http://devicetree.org/schemas/net/rfkill-gpio.yaml# ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-07-18 15:47 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2024-06-02 10:40 [PATCH 1/2] dt-bindings: arm: mediatek: Add Bananapi BPI-R3 mini Chukun Pan 2024-06-02 10:40 ` [PATCH 2/2] arm64: dts: " Chukun Pan 2024-07-18 15:47 ` Shengyu Qu 2024-06-02 16:44 ` [PATCH 1/2] dt-bindings: arm: " Krzysztof Kozlowski 2024-06-04 15:28 ` Rob Herring (Arm)
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox