add dts nodes to MT7622 SoC
Subsystems (2)
cover add dts nodes to MT7622 SoC
From: Sean Wang <[email protected]>
add dts nodes to MT7622 SoC and related rfb1 board
Ryder Lee (2):
arm64: dts: mt7622: add PCIe device nodes
arm64: dts: mt7622: add SATA device nodes
Sean Wang (10):
dt-bindings: clock: mediatek: add missing required #reset-cells
arm64: dts: mt7622: add clock controller device nodes
arm64: dts: mt7622: add power domain controller device nodes
arm64: dts: mt7622: add pinctrl related device nodes
arm64: dts: mt7622: add PMIC MT6380 related nodes
arm64: dts: mt7622: add cpufreq related device nodes
arm64: dts: mt7622: turn uart0 clock to real ones
arm64: dts: mt7622: add SoC and peripheral related device nodes
arm64: dts: mt7622: add flash related device nodes
arm64: dts: mt7622: add ethernet device nodes
.../bindings/arm/mediatek/mediatek,ethsys.txt | 2 + .../bindings/arm/mediatek/mediatek,pciesys.txt | 2 + .../bindings/arm/mediatek/mediatek,ssusbsys.txt | 2 + arch/arm64/boot/dts/mediatek/mt6380.dtsi | 91 ++++ arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 337 +++++++++++++ arch/arm64/boot/dts/mediatek/mt7622.dtsi | 533 ++++++++++++++++++++- 6 files changed, 962 insertions(+), 5 deletions(-) create mode 100644 arch/arm64/boot/dts/mediatek/mt6380.dtsi
Signature · 1 line
2.7.4
PATCH 1/12 dt-bindings: clock: mediatek: add missing required #reset-cells
From: Sean Wang <[email protected]>
All ethsys, pciesys and ssusbsys internally include reset controller, so explicitly add back these missing cell definitions to related bindings and examples.
--- Documentation/devicetree/bindings/arm/mediatek/mediatek,ethsys.txt | 2 ++ Documentation/devicetree/bindings/arm/mediatek/mediatek,pciesys.txt | 2 ++ Documentation/devicetree/bindings/arm/mediatek/mediatek,ssusbsys.txt | 2 ++ 3 files changed, 6 insertions(+)
Documentation/devicetree/bindings/arm/mediatek/mediatek,ethsys.txt +2 -0
@@ -9,6 +9,7 @@ Required Properties: - "mediatek,mt2701-ethsys", "syscon" - "mediatek,mt7622-ethsys", "syscon" - #clock-cells: Must be 1 +- #reset-cells: Must be 1 The ethsys controller uses the common clk binding from Documentation/devicetree/bindings/clock/clock-bindings.txt
@@ -20,4 +21,5 @@ ethsys: clock-controller at 1b000000 { compatible = "mediatek,mt2701-ethsys", "syscon"; reg = <0 0x1b000000 0 0x1000>; #clock-cells = <1>; + #reset-cells = <1>; };
Documentation/devicetree/bindings/arm/mediatek/mediatek,pciesys.txt +2 -0
@@ -8,6 +8,7 @@ Required Properties: - compatible: Should be: - "mediatek,mt7622-pciesys", "syscon" - #clock-cells: Must be 1 +- #reset-cells: Must be 1 The PCIESYS controller uses the common clk binding from Documentation/devicetree/bindings/clock/clock-bindings.txt
@@ -19,4 +20,5 @@ pciesys: pciesys at 1a100800 { compatible = "mediatek,mt7622-pciesys", "syscon"; reg = <0 0x1a100800 0 0x1000>; #clock-cells = <1>; + #reset-cells = <1>; };
Documentation/devicetree/bindings/arm/mediatek/mediatek,ssusbsys.txt +2 -0
@@ -8,6 +8,7 @@ Required Properties: - compatible: Should be: - "mediatek,mt7622-ssusbsys", "syscon" - #clock-cells: Must be 1 +- #reset-cells: Must be 1 The SSUSBSYS controller uses the common clk binding from Documentation/devicetree/bindings/clock/clock-bindings.txt
@@ -19,4 +20,5 @@ ssusbsys: ssusbsys at 1a000000 { compatible = "mediatek,mt7622-ssusbsys", "syscon"; reg = <0 0x1a000000 0 0x1000>; #clock-cells = <1>; + #reset-cells = <1>; };
Signature · 1 line
2.7.4
Re: [PATCH 01/12] dt-bindings: clock: mediatek: add missing required #reset-cells
Quoted 6 lines · sean.wang at mediatek.com
From: Sean Wang <[email protected]>
All ethsys, pciesys and ssusbsys internally include reset controller, so explicitly add back these missing cell definitions to related bindings and examples.
Quoted 8 lines
Signed-off-by Sean Wang <[email protected]>Cc Rob Herring <[email protected]>Cc Stephen Boyd <[email protected]>--- Documentation/devicetree/bindings/arm/mediatek/mediatek,ethsys.txt | 2 ++ Documentation/devicetree/bindings/arm/mediatek/mediatek,pciesys.txt | 2 ++ Documentation/devicetree/bindings/arm/mediatek/mediatek,ssusbsys.txt | 2 ++ 3 files changed, 6 insertions(+)
PATCH 2/12 arm64: dts: mt7622: add clock controller device nodes
In reply to [email protected]From: Sean Wang <[email protected]>
Add clock controller nodes for MT7622 and include header for topckgen, infracfg, pericfg, apmixedsys, ethsys, sgmiisys, pciesys and ssusbsys for those devices nodes to be added afterwards.
In addition, provides an oscillator node for the source of PLLs and dummy clock for PWARP to complement missing support of clock gate for the wrapper circuit in the driver.
--- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 76 ++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+)
arch/arm64/boot/dts/mediatek/mt7622.dtsi +76 -0
@@ -8,6 +8,8 @@ #include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/arm-gic.h> +#include <dt-bindings/clock/mt7622-clk.h> +#include <dt-bindings/reset/mt7622-reset.h> / { compatible = "mediatek,mt7622";
@@ -48,6 +50,19 @@ clock-frequency = <280000000>; }; + pwrap_clk: dummy40m { + compatible = "fixed-clock"; + clock-frequency = <40000000>; + #clock-cells = <0>; + }; + + clk25m: oscillator at 0 { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <25000000>; + clock-output-names = "clkxtal"; + }; + psci { compatible = "arm,psci-0.2"; method = "smc";
@@ -78,6 +93,22 @@ IRQ_TYPE_LEVEL_HIGH)>; }; + infracfg: infracfg at 10000000 { + compatible = "mediatek,mt7622-infracfg", + "syscon"; + reg = <0 0x10000000 0 0x1000>; + #clock-cells = <1>; + #reset-cells = <1>; + }; + + pericfg: pericfg at 10002000 { + compatible = "mediatek,mt7622-pericfg", + "syscon"; + reg = <0 0x10002000 0 0x1000>; + #clock-cells = <1>; + #reset-cells = <1>; + }; + sysirq: interrupt-controller at 10200620 { compatible = "mediatek,mt7622-sysirq", "mediatek,mt6577-sysirq";
@@ -87,6 +118,20 @@ reg = <0 0x10200620 0 0x20>; }; + apmixedsys: apmixedsys at 10209000 { + compatible = "mediatek,mt7622-apmixedsys", + "syscon"; + reg = <0 0x10209000 0 0x1000>; + #clock-cells = <1>; + }; + + topckgen: topckgen at 10210000 { + compatible = "mediatek,mt7622-topckgen", + "syscon"; + reg = <0 0x10210000 0 0x1000>; + #clock-cells = <1>; + }; + gic: interrupt-controller at 10300000 { compatible = "arm,gic-400"; interrupt-controller;
@@ -107,4 +152,35 @@ clock-names = "baud", "bus"; status = "disabled"; }; + + ssusbsys: ssusbsys at 1a000000 { + compatible = "mediatek,mt7622-ssusbsys", + "syscon"; + reg = <0 0x1a000000 0 0x1000>; + #clock-cells = <1>; + #reset-cells = <1>; + }; + + pciesys: pciesys at 1a100800 { + compatible = "mediatek,mt7622-pciesys", + "syscon"; + reg = <0 0x1a100800 0 0x1000>; + #clock-cells = <1>; + #reset-cells = <1>; + }; + + ethsys: syscon at 1b000000 { + compatible = "mediatek,mt7622-ethsys", + "syscon"; + reg = <0 0x1b000000 0 0x1000>; + #clock-cells = <1>; + #reset-cells = <1>; + }; + + sgmiisys: sgmiisys at 1b128000 { + compatible = "mediatek,mt7622-sgmiisys", + "syscon"; + reg = <0 0x1b128000 0 0x1000>; + #clock-cells = <1>; + }; };
Signature · 1 line
2.7.4
PATCH 3/12 arm64: dts: mt7622: add power domain controller device nodes
In reply to [email protected]From: Sean Wang <[email protected]>
add power domain controller nodes
--- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
arch/arm64/boot/dts/mediatek/mt7622.dtsi +15 -0
@@ -9,6 +9,7 @@ #include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/clock/mt7622-clk.h> +#include <dt-bindings/power/mt7622-power.h> #include <dt-bindings/reset/mt7622-reset.h> / {
@@ -109,6 +110,20 @@ #reset-cells = <1>; }; + scpsys: scpsys at 10006000 { + compatible = "mediatek,mt7622-scpsys", + "syscon"; + #power-domain-cells = <1>; + reg = <0 0x10006000 0 0x1000>; + interrupts = <GIC_SPI 165 IRQ_TYPE_LEVEL_LOW>, + <GIC_SPI 166 IRQ_TYPE_LEVEL_LOW>, + <GIC_SPI 167 IRQ_TYPE_LEVEL_LOW>, + <GIC_SPI 168 IRQ_TYPE_LEVEL_LOW>; + infracfg = <&infracfg>; + clocks = <&topckgen CLK_TOP_HIF_SEL>; + clock-names = "hif_sel"; + }; + sysirq: interrupt-controller at 10200620 { compatible = "mediatek,mt7622-sysirq", "mediatek,mt6577-sysirq";
Signature · 1 line
2.7.4
PATCH 4/12 arm64: dts: mt7622: add pinctrl related device nodes
In reply to [email protected]From: Sean Wang <[email protected]>
add pinctrl device nodes and rfb1 board, additionally include all pin groups possible being used on rfb1 board.
--- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 200 +++++++++++++++++++++++++++ arch/arm64/boot/dts/mediatek/mt7622.dtsi | 7 + 2 files changed, 207 insertions(+)
arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts +200 -0
@@ -7,6 +7,8 @@ */ /dts-v1/; +#include <dt-bindings/input/input.h> + #include "mt7622.dtsi" / {
@@ -17,11 +19,209 @@ bootargs = "console=ttyS0,115200n1"; }; + gpio_keys { + compatible = "gpio-keys-polled"; + poll-interval = <100>; + + factory { + label = "factory"; + linux,code = <BTN_0>; + gpios = <&pio 0 0>; + }; + + wps { + label = "wps"; + linux,code = <KEY_WPS_BUTTON>; + gpios = <&pio 102 0>; + }; + }; + memory { reg = <0 0x40000000 0 0x3F000000>; }; }; +&pio { + /* eMMC is shared pin with parallel NAND */ + emmc_pins_default: emmc-pins-default { + mux { + function = "emmc", "emmc_rst"; + groups = "emmc"; + }; + }; + + emmc_pins_uhs: emmc-pins-uhs { + mux { + function = "emmc"; + groups = "emmc"; + }; + }; + + eth_pins: eth-pins { + mux { + function = "eth"; + groups = "mdc_mdio", "rgmii_via_gmac2"; + }; + }; + + i2c1_pins: i2c1-pins { + mux { + function = "i2c"; + groups = "i2c1_0"; + }; + }; + + i2c2_pins: i2c2-pins { + mux { + function = "i2c"; + groups = "i2c2_0"; + }; + }; + + i2s1_pins: i2s1-pins { + mux { + function = "i2s"; + groups = "i2s_out_bclk_ws_mclk", + "i2s1_in_data", + "i2s1_out_data"; + }; + }; + + irrx_pins: irrx-pins { + mux { + function = "ir"; + groups = "ir_1_rx"; + }; + }; + + irtx_pins: irtx-pins { + mux { + function = "ir"; + groups = "ir_1_tx"; + }; + }; + + /* Parallel nand is shared pin with eMMC */ + parallel_nand_pins: parallel-nand-pins { + mux { + function = "flash"; + groups = "par_nand"; + }; + }; + + pcie0_pins: pcie0-pins { + mux { + groups = "pcie0_pad_perst", + "pcie0_1_waken", + "pcie0_1_clkreq"; + function = "pcie"; + }; + }; + + pcie1_pins: pcie1-pins { + mux { + groups = "pcie1_pad_perst", + "pcie1_0_waken", + "pcie1_0_clkreq"; + function = "pcie"; + }; + }; + + pmic_bus_pins: pmic-bus-pins { + mux { + groups = "pmic_bus"; + function = "pmic"; + }; + }; + + pwm7_pins: pwm1-2-pins { + mux { + function = "pwm"; + groups = "pwm_ch7_2"; + }; + }; + + wled_pins: wled-pins { + mux { + function = "led"; + groups = "wled"; + }; + }; + + sd0_pins_default: sd0-pins-default { + mux { + function = "sd"; + groups = "sd_0"; + }; + }; + + sd0_pins_uhs: sd0-pins-uhs { + mux { + function = "sd"; + groups = "sd_0"; + }; + }; + + /* Serial NAND is shared pin with SPI-NOR */ + serial_nand_pins: serial-nand-pins { + mux { + function = "flash"; + groups = "snfi"; + }; + }; + + spic0_pins: spic0-pins { + mux { + function = "spi"; + groups = "spic0_0"; + }; + }; + + spic1_pins: spic1-pins { + mux { + function = "spi"; + groups = "spic1_0"; + }; + }; + + /* SPI-NOR is shared pin with serial NAND */ + spi_nor_pins: spi-nor-pins { + mux { + function = "flash"; + groups = "spi_nor"; + }; + }; + + /* serial NAND is shared pin with SPI-NOR */ + serial_nand_pins: serial-nand-pins { + mux { + function = "flash"; + groups = "snfi"; + }; + }; + + uart0_pins: uart0-pins { + mux { + function = "uart"; + groups = "uart0_0_tx_rx" ; + }; + }; + + uart2_pins: uart2-pins { + mux { + function = "uart"; + groups = "uart2_1_tx_rx" ; + }; + }; + + watchdog_pins: watchdog-pins { + mux { + function = "watchdog"; + groups = "watchdog"; + }; + }; +}; + &uart0 { status = "okay"; };
arch/arm64/boot/dts/mediatek/mt7622.dtsi +7 -0
@@ -147,6 +147,13 @@ #clock-cells = <1>; }; + pio: pinctrl at 10211000 { + compatible = "mediatek,mt7622-pinctrl"; + reg = <0 0x10211000 0 0x1000>; + gpio-controller; + #gpio-cells = <2>; + }; + gic: interrupt-controller at 10300000 { compatible = "arm,gic-400"; interrupt-controller;
Signature · 1 line
2.7.4
PATCH 5/12 arm64: dts: mt7622: add PMIC MT6380 related nodes
In reply to [email protected]From: Sean Wang <[email protected]>
Enable pwrap and MT6380 on mt7622-rfb1 board. Also add all mt6380 regulator nodes in an alone file to allow similar boards using MT6380 able to resue the configuration.
--- arch/arm64/boot/dts/mediatek/mt6380.dtsi | 91 ++++++++++++++++++++++++++++ arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 8 +++ arch/arm64/boot/dts/mediatek/mt7622.dtsi | 12 ++++ 3 files changed, 111 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt6380.dtsi
arch/arm64/boot/dts/mediatek/mt6380.dtsi new file +91 -0
@@ -0,0 +1,91 @@ +/* + * Copyright (c) 2018 MediaTek Inc. + * Author: Chenglin Xu <[email protected]> + * Sean Wang <[email protected]> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +&pwrap { + regulators { + compatible = "mediatek,mt6380-regulator"; + + mt6380_vcpu_reg: buck-vcore1 { + regulator-name = "vcore1"; + regulator-min-microvolt = < 600000>; + regulator-max-microvolt = <1393750>; + regulator-ramp-delay = <6250>; + regulator-always-on; + regulator-boot-on; + }; + + mt6380_vcore_reg: buck-vcore { + regulator-name = "vcore"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1393750>; + regulator-ramp-delay = <6250>; + regulator-always-on; + regulator-boot-on; + }; + + mt6380_vrf_reg: buck-vrf { + regulator-name = "vrf"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1575000>; + regulator-ramp-delay = <0>; + regulator-always-on; + regulator-boot-on; + }; + + mt6380_vm_reg: ldo-vm { + regulator-name = "vm"; + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1400000>; + regulator-ramp-delay = <0>; + regulator-always-on; + regulator-boot-on; + }; + + mt6380_va_reg: ldo-va { + regulator-name = "va"; + regulator-min-microvolt = <2200000>; + regulator-max-microvolt = <3300000>; + regulator-ramp-delay = <0>; + regulator-always-on; + regulator-boot-on; + }; + + mt6380_vphy_reg: ldo-vphy { + regulator-name = "vphy"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-ramp-delay = <0>; + regulator-always-on; + regulator-boot-on; + }; + + mt6380_vddr_reg: ldo-vddr { + regulator-name = "vddr"; + regulator-min-microvolt = <1240000>; + regulator-max-microvolt = <1840000>; + regulator-ramp-delay = <0>; + regulator-always-on; + regulator-boot-on; + }; + + mt6380_vt_reg: ldo-vt { + regulator-name = "vt"; + regulator-min-microvolt = <2200000>; + regulator-max-microvolt = <3300000>; + regulator-ramp-delay = <0>; + regulator-always-on; + regulator-boot-on; + }; + }; +};
arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts +8 -0
@@ -10,6 +10,7 @@ #include <dt-bindings/input/input.h> #include "mt7622.dtsi" +#include "mt6380.dtsi" / { model = "MediaTek MT7622 RFB1 board";
@@ -222,6 +223,13 @@ }; }; +&pwrap { + pinctrl-names = "default"; + pinctrl-0 = <&pmic_bus_pins>; + + status = "okay"; +}; + &uart0 { status = "okay"; };
arch/arm64/boot/dts/mediatek/mt7622.dtsi +12 -0
@@ -102,6 +102,18 @@ #reset-cells = <1>; }; + pwrap: pwrap at 10001000 { + compatible = "mediatek,mt7622-pwrap"; + reg = <0 0x10001000 0 0x250>; + reg-names = "pwrap"; + clocks = <&infracfg CLK_INFRA_PMIC_PD>,<&pwrap_clk>; + clock-names = "spi","wrap"; + resets = <&infracfg MT7622_INFRA_PMIC_WRAP_RST>; + reset-names = "pwrap"; + interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>; + status = "disabled"; + }; + pericfg: pericfg at 10002000 { compatible = "mediatek,mt7622-pericfg", "syscon";
Signature · 1 line
2.7.4
Re: [PATCH 05/12] arm64: dts: mt7622: add PMIC MT6380 related nodes
Sean,
Quoted 25 lines · On Thu, Jan 4, 2018 at 10:40 AM, <[email protected]> wrote:
From: Sean Wang <[email protected]>
Enable pwrap and MT6380 on mt7622-rfb1 board. Also add all mt6380 regulator nodes in an alone file to allow similar boards using MT6380 able to resue the configuration.
Signed-off-by Sean Wang <[email protected]>Cc Mark Brown <[email protected]>Cc Matthias Brugger <[email protected]>--- arch/arm64/boot/dts/mediatek/mt6380.dtsi | 91 ++++++++++++++++++++++++++++ arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 8 +++ arch/arm64/boot/dts/mediatek/mt7622.dtsi | 12 ++++ 3 files changed, 111 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt6380.dtsiarch/arm64/boot/dts/mediatek/mt6380.dtsi new file +3
-0@@ -0,0 +1,91 @@ +/* + * Copyright (c) 2018 MediaTek Inc. + * Author: Chenglin Xu <[email protected]>
arch/arm64/boot/dts/mediatek/mt6380.dtsi line 13
Quoted 10 lines
arch/arm64/boot/dts/mediatek/mt6380.dtsi new file +10
-0+ * Sean Wang <[email protected]> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */
Would you mind using SPDX tags instead of this fine but long legalese? This is documented in Thomas patches [1].
Also if you could spread the word in your team, this would earn you good karma points.
Thank you!
[1] https://lkml.org/lkml/2017/12/28/323
Signature · 2 lines
Cordially Philippe Ombredanne
Re: [PATCH 05/12] arm64: dts: mt7622: add PMIC MT6380 related nodes
Quoted 42 lines · Philippe Ombredanne
Sean,
Quoted 25 lines · On Thu, Jan 4, 2018 at 10:40 AM, <[email protected]> wrote:
From: Sean Wang <[email protected]>
Enable pwrap and MT6380 on mt7622-rfb1 board. Also add all mt6380 regulator nodes in an alone file to allow similar boards using MT6380 able to resue the configuration.
Signed-off-by Sean Wang <[email protected]>Cc Mark Brown <[email protected]>Cc Matthias Brugger <[email protected]>--- arch/arm64/boot/dts/mediatek/mt6380.dtsi | 91 ++++++++++++++++++++++++++++ arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 8 +++ arch/arm64/boot/dts/mediatek/mt7622.dtsi | 12 ++++ 3 files changed, 111 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt6380.dtsiarch/arm64/boot/dts/mediatek/mt6380.dtsi new file +3
-0@@ -0,0 +1,91 @@ +/* + * Copyright (c) 2018 MediaTek Inc. + * Author: Chenglin Xu <[email protected]>arch/arm64/boot/dts/mediatek/mt6380.dtsi line 13
Quoted 10 lines
arch/arm64/boot/dts/mediatek/mt6380.dtsi new file +10
-0+ * Sean Wang <[email protected]> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */Would you mind using SPDX tags instead of this fine but long legalese? This is documented in Thomas patches [1].
Quoted 5 lines
Also if you could spread the word in your team, this would earn you good karma points.
Thank you!
Hi, Philippe
thanks for your suggestion
Certainly, this can be replaced with
SPDX-License-Identifier: GPL-2.0
most drivers from MediaTek use the similar disclaimer, it should be fine to use SPDX tags instead.
Sean
Re: [PATCH 05/12] arm64: dts: mt7622: add PMIC MT6380 related nodes
Sean,
Quoted 54 lines · Sean Wang
Quoted 42 lines · Philippe Ombredanne
Sean,
Quoted 25 lines · On Thu, Jan 4, 2018 at 10:40 AM, <[email protected]> wrote:
From: Sean Wang <[email protected]>
Enable pwrap and MT6380 on mt7622-rfb1 board. Also add all mt6380 regulator nodes in an alone file to allow similar boards using MT6380 able to resue the configuration.
Signed-off-by Sean Wang <[email protected]>Cc Mark Brown <[email protected]>Cc Matthias Brugger <[email protected]>--- arch/arm64/boot/dts/mediatek/mt6380.dtsi | 91 ++++++++++++++++++++++++++++ arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 8 +++ arch/arm64/boot/dts/mediatek/mt7622.dtsi | 12 ++++ 3 files changed, 111 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt6380.dtsiarch/arm64/boot/dts/mediatek/mt6380.dtsi new file +3
-0@@ -0,0 +1,91 @@ +/* + * Copyright (c) 2018 MediaTek Inc. + * Author: Chenglin Xu <[email protected]>arch/arm64/boot/dts/mediatek/mt6380.dtsi line 13
Quoted 10 lines
arch/arm64/boot/dts/mediatek/mt6380.dtsi new file +10
-0+ * Sean Wang <[email protected]> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */Would you mind using SPDX tags instead of this fine but long legalese? This is documented in Thomas patches [1].
Quoted 5 lines
Also if you could spread the word in your team, this would earn you good karma points.
Thank you!Hi, Philippe
thanks for your suggestion
Quoted 9 lines
Certainly, this can be replaced with
SPDX-License-Identifier: GPL-2.0
most drivers from MediaTek use the similar disclaimer, it should be fine to use SPDX tags instead.
Sean
Thank you! that's great.
Signature · 2 lines
Cordially Philippe Ombredanne
Re: [PATCH 05/12] arm64: dts: mt7622: add PMIC MT6380 related nodes
Hi, Philippe
Currently, I'm really confused about what usage STYLE of SPDX license identifier I should use for each type of file.
could you point me where I can find the related document describing SPDX usage style for those files expected by the community in the future?
I found more than one way STYLE of SPDX present at current code, for example as below. If there's no absolute definition for them, and then which way that is better?
1)
for *.dts, applied with "// " at head or within " /* */ " not at head
such as
arch/arm/boot/dts/bcm953012hr.dts:2: * SPDX-License-Identifier:
BSD-3-Clause arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts:4: *
SPDX-License-Identifier: (GPL-2.0+ OR MIT) arch/arm/boot/dts/uniphier-ld6b-ref.dts:7: * SPDX-License-Identifier:
(GPL-2.0+ OR MIT) arch/arm/boot/dts/owl-s500-guitar-bb-rev-b.dts:4: *
SPDX-License-Identifier: (GPL-2.0+ OR MIT) arch/arm/boot/dts/keystone-k2g-ice.dts:6: * SPDX-License-Identifier:
GPL-2.0arch/arm/boot/dts/uniphier-pro4-sanji.dts:7: * SPDX-License-Identifier:
(GPL-2.0+ OR MIT) arch/arm/boot/dts/owl-s500-cubieboard6.dts:6: * SPDX-License-Identifier:
(GPL-2.0+ OR MIT)arch/arm/boot/dts/uniphier-pro4-ace.dts:7: * SPDX-License-Identifier:
(GPL-2.0+ OR MIT)arch/arm/boot/dts/uniphier-sld8-ref.dts:7: * SPDX-License-Identifier:
(GPL-2.0+ OR MIT)arch/arm/boot/dts/uniphier-pro4-ref.dts:7: * SPDX-License-Identifier:
(GPL-2.0+ OR MIT) arch/arm/boot/dts/uniphier-pxs2-gentil.dts:7: * SPDX-License-Identifier:
(GPL-2.0+ OR MIT) arch/arm/boot/dts/uniphier-pxs2-vodka.dts:7: * SPDX-License-Identifier:
(GPL-2.0+ OR MIT)arch/arm/boot/dts/uniphier-ld4-ref.dts:7: * SPDX-License-Identifier:
(GPL-2.0+ OR MIT)
arch/arm64/boot/dts/nvidia/tegra132-norrin.dts:1://
SPDX-License-Identifier: GPL-2.0 arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts:1://
SPDX-License-Identifier: GPL-2.0 arch/arm64/boot/dts/nvidia/tegra210-smaug.dts:1://
SPDX-License-Identifier: GPL-2.0 arch/arm64/boot/dts/arm/vexpress-v2f-1xv7-ca53x2.dts:1://
SPDX-License-Identifier: GPL-2.0 arch/arm64/boot/dts/arm/rtsm_ve-aemv8a.dts:1:// SPDX-License-Identifier:
GPL-2.0
arch/arm64/boot/dts/arm/foundation-v8.dts:1:// SPDX-License-Identifier:
GPL-2.0
arch/arm64/boot/dts/arm/foundation-v8-gicv3.dts:1://
SPDX-License-Identifier: GPL-2.0 arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts:1://
SPDX-License-Identifier: GPL-2.0
2)
for *.c, applied with "// " at head or within " /* */ " not at head
such as
drivers/base/memory.c:1:// SPDX-License-Identifier: GPL-2.0 drivers/base/devtmpfs.c:1:// SPDX-License-Identifier: GPL-2.0 drivers/base/node.c:1:// SPDX-License-Identifier: GPL-2.0 drivers/base/dma-coherent.c:1:// SPDX-License-Identifier: GPL-2.0 drivers/cpuidle/cpuidle-pseries.c:1:// SPDX-License-Identifier: GPL-2.0 drivers/cpuidle/cpuidle-powernv.c:1:// SPDX-License-Identifier: GPL-2.0 drivers/mtd/maps/tsunami_flash.c:1:// SPDX-License-Identifier: GPL-2.0 drivers/mtd/maps/physmap_of_gemini.c:1:// SPDX-License-Identifier:
GPL-2.0
drivers/mtd/tests/mtd_test.c:1:// SPDX-License-Identifier: GPL-2.0 drivers/mtd/onenand/onenand_bbt.c:1:// SPDX-License-Identifier: GPL-2.0 drivers/media/common/b2c2/flexcop-i2c.c:1:// SPDX-License-Identifier:
GPL-2.0
drivers/soc/xilinx/zynqmp/pm.c:10: * SPDX-License-Identifier: GPL-2.0+drivers/soc/amlogic/meson-gx-pwrc-vpu.c:5: * SPDX-License-Identifier:
GPL-2.0+drivers/soc/amlogic/meson-gx-socinfo.c:5: * SPDX-License-Identifier:
GPL-2.0+drivers/soc/amlogic/meson-mx-socinfo.c:4: * SPDX-License-Identifier:
GPL-2.0+drivers/i2c/busses/i2c-sprd.c:4: * SPDX-License-Identifier: (GPL-2.0+ OR MIT)drivers/spi/spi-meson-spicc.c:7: * SPDX-License-Identifier: GPL-2.0+ drivers/spi/spi-sprd-adi.c:4: * SPDX-License-Identifier: GPL-2.0 drivers/dma/sprd-dma.c:4: * SPDX-License-Identifier: GPL-2.0
3)
for *.h, applied with "// " at head or within " /* */ " at head
such as
drivers/usb/dwc3/gadget.h:1:// SPDX-License-Identifier: GPL-2.0 drivers/usb/dwc3/io.h:1:// SPDX-License-Identifier: GPL-2.0 drivers/usb/dwc3/debug.h:1:// SPDX-License-Identifier: GPL-2.0 drivers/usb/dwc3/core.h:1:// SPDX-License-Identifier: GPL-2.0 drivers/usb/atm/usbatm.h:1:// SPDX-License-Identifier: GPL-2.0+ drivers/usb/misc/rio500_usb.h:1:// SPDX-License-Identifier: GPL-2.0+ drivers/usb/misc/sisusbvga/sisusb.h:1:// SPDX-License-Identifier:
(GPL-2.0 OR BSD-3-Clause) drivers/usb/misc/sisusbvga/sisusb_init.h:1:// SPDX-License-Identifier:
(GPL-2.0+ OR BSD-3-Clause) drivers/usb/misc/sisusbvga/sisusb_struct.h:1:// SPDX-License-Identifier:
(GPL-2.0+ OR BSD-3-Clause)
drivers/usb/misc/usb_u132.h:1:// SPDX-License-Identifier: GPL-2.0
drivers/tty/serial/dz.h:1:/* SPDX-License-Identifier: GPL-2.0 */ drivers/tty/serial/apbuart.h:1:/* SPDX-License-Identifier: GPL-2.0 */ drivers/tty/serial/sunzilog.h:1:/* SPDX-License-Identifier: GPL-2.0 */ drivers/tty/serial/zs.h:1:/* SPDX-License-Identifier: GPL-2.0 */ drivers/tty/serial/sh-sci.h:1:/* SPDX-License-Identifier: GPL-2.0 */ drivers/tty/serial/cpm_uart/cpm_uart_cpm1.h:1:/*
SPDX-License-Identifier: GPL-2.0 */ drivers/tty/serial/cpm_uart/cpm_uart_cpm2.h:1:/*
SPDX-License-Identifier: GPL-2.0 */ drivers/tty/serial/sunsab.h:1:/* SPDX-License-Identifier: GPL-2.0 */ drivers/tty/serial/amba-pl011.h:1:/* SPDX-License-Identifier: GPL-2.0 */ drivers/tty/serial/crisv10.h:1:/* SPDX-License-Identifier: GPL-2.0 */
4)
no issue, Makefile, or Kconfig, definitely applied with "# " at head
Sean
Quoted 69 lines · Philippe Ombredanne
Sean,
Quoted 54 lines · Sean Wang
Quoted 42 lines · Philippe Ombredanne
Sean,
Quoted 25 lines · On Thu, Jan 4, 2018 at 10:40 AM, <[email protected]> wrote:
From: Sean Wang <[email protected]>
Enable pwrap and MT6380 on mt7622-rfb1 board. Also add all mt6380 regulator nodes in an alone file to allow similar boards using MT6380 able to resue the configuration.
Signed-off-by Sean Wang <[email protected]>Cc Mark Brown <[email protected]>Cc Matthias Brugger <[email protected]>--- arch/arm64/boot/dts/mediatek/mt6380.dtsi | 91 ++++++++++++++++++++++++++++ arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 8 +++ arch/arm64/boot/dts/mediatek/mt7622.dtsi | 12 ++++ 3 files changed, 111 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt6380.dtsiarch/arm64/boot/dts/mediatek/mt6380.dtsi new file +3
-0@@ -0,0 +1,91 @@ +/* + * Copyright (c) 2018 MediaTek Inc. + * Author: Chenglin Xu <[email protected]>arch/arm64/boot/dts/mediatek/mt6380.dtsi line 13
Quoted 10 lines
arch/arm64/boot/dts/mediatek/mt6380.dtsi new file +10
-0+ * Sean Wang <[email protected]> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */Would you mind using SPDX tags instead of this fine but long legalese? This is documented in Thomas patches [1].
Quoted 5 lines
Also if you could spread the word in your team, this would earn you good karma points.
Thank you!Hi, Philippe
thanks for your suggestion
Quoted 9 lines
Certainly, this can be replaced with
SPDX-License-Identifier: GPL-2.0
most drivers from MediaTek use the similar disclaimer, it should be fine to use SPDX tags instead.
Sean
Thank you! that's great.
PATCH 6/12 arm64: dts: mt7622: add cpufreq related device nodes
In reply to [email protected]From: Sean Wang <[email protected]>
Add clocks, regulators and opp information into cpu nodes. In addition, the power supply for cpu nodes is deployed on mt7622-rfb1 board.
--- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 12 +++++++ arch/arm64/boot/dts/mediatek/mt7622.dtsi | 49 ++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+)
arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts +12 -0
@@ -20,6 +20,18 @@ bootargs = "console=ttyS0,115200n1"; }; + cpus { + cpu at 0 { + proc-supply = <&mt6380_vcpu_reg>; + sram-supply = <&mt6380_vm_reg>; + }; + + cpu at 1 { + proc-supply = <&mt6380_vcpu_reg>; + sram-supply = <&mt6380_vm_reg>; + }; + }; + gpio_keys { compatible = "gpio-keys-polled"; poll-interval = <100>;
arch/arm64/boot/dts/mediatek/mt7622.dtsi +49 -0
67 lines not on this page · raw message
Signature · 1 line
2.7.4
Re: [PATCH 06/12] arm64: dts: mt7622: add cpufreq related device nodes
arch/arm64/boot/dts/mediatek/mt7622.dtsi line 21
Quoted 9 lines · sean.wang at mediatek.com
arch/arm64/boot/dts/mediatek/mt7622.dtsi +1
-0@@ -18,6 +18,50 @@ #address-cells = <2>; #size-cells = <2>; + cpu_opp_table: opp_table {
Rob recently asked me to do name the nodes with "-" instead of "_". So this becomes "cpu_opp_table: opp-table {" then.
Signature · 1 line
viresh
Re: [PATCH 06/12] arm64: dts: mt7622: add cpufreq related device nodes
Quoted 9 lines · Viresh Kumar
Quoted 8 lines · sean.wang at mediatek.com
arch/arm64/boot/dts/mediatek/mt7622.dtsi +0
-0@@ -18,6 +18,50 @@ #address-cells = <2>; #size-cells = <2>;
Quoted 5 lines
arch/arm64/boot/dts/mediatek/mt7622.dtsi line 21
Quoted 1 line
arch/arm64/boot/dts/mediatek/mt7622.dtsi +1
-0+ cpu_opp_table: opp_table {Rob recently asked me to do name the nodes with "-" instead of "_". So this becomes "
cpu_opp_table: opp-table {" then.
okay, I will do it in the next version.
PATCH 7/12 arm64: dts: mt7622: turn uart0 clock to real ones
In reply to [email protected]From: Sean Wang <[email protected]>
This patch also cleans up two oscillators that provide clocks for MT7623. Switch the uart clocks to the real ones while at it.
--- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-)
arch/arm64/boot/dts/mediatek/mt7622.dtsi +2 -13
@@ -88,18 +88,6 @@ }; }; - uart_clk: dummy25m { - compatible = "fixed-clock"; - #clock-cells = <0>; - clock-frequency = <25000000>; - }; - - bus_clk: dummy280m { - compatible = "fixed-clock"; - #clock-cells = <0>; - clock-frequency = <280000000>; - }; - pwrap_clk: dummy40m { compatible = "fixed-clock"; clock-frequency = <40000000>;
@@ -231,7 +219,8 @@ "mediatek,mt6577-uart"; reg = <0 0x11002000 0 0x400>; interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_LOW>; - clocks = <&uart_clk>, <&bus_clk>; + clocks = <&topckgen CLK_TOP_UART_SEL>, + <&pericfg CLK_PERI_UART1_PD>; clock-names = "baud", "bus"; status = "disabled"; };
Signature · 1 line
2.7.4
PATCH 8/12 arm64: dts: mt7622: add SoC and peripheral related device nodes
In reply to [email protected]From: Sean Wang <[email protected]>
Add watchdog, rtc, auxadc, cir, efuse, rng, uart[1-4], pwm, i2c[0-2], spi[0-1] and btif nodes
--- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 54 ++++++++ arch/arm64/boot/dts/mediatek/mt7622.dtsi | 194 +++++++++++++++++++++++++++ 2 files changed, 248 insertions(+)
arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts +54 -0
@@ -235,6 +235,34 @@ }; }; +&btif { + status = "okay"; +}; + +&cir { + pinctrl-names = "default"; + pinctrl-0 = <&irrx_pins>; + status = "okay"; +}; + +&i2c1 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c1_pins>; + status = "okay"; +}; + +&i2c2 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c2_pins>; + status = "okay"; +}; + +&pwm { + pinctrl-names = "default"; + pinctrl-0 = <&pwm7_pins>; + status = "okay"; +}; + &pwrap { pinctrl-names = "default"; pinctrl-0 = <&pmic_bus_pins>;
@@ -242,6 +270,32 @@ status = "okay"; }; +&spi0 { + pinctrl-names = "default"; + pinctrl-0 = <&spic0_pins>; + status = "okay"; +}; + +&spi1 { + pinctrl-names = "default"; + pinctrl-0 = <&spic1_pins>; + status = "okay"; +}; + &uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_pins>; + status = "okay"; +}; + +&uart2 { + pinctrl-names = "default"; + pinctrl-0 = <&uart2_pins>; + status = "okay"; +}; + +&watchdog { + pinctrl-names = "default"; + pinctrl-0 = <&watchdog_pins>; status = "okay"; };
arch/arm64/boot/dts/mediatek/mt7622.dtsi +194 -0
230 lines not on this page · raw message
Signature · 1 line
2.7.4
PATCH 9/12 arm64: dts: mt7622: add flash related device nodes
In reply to [email protected]From: Sean Wang <[email protected]>
add nodes for NOR flash, parallel Nand flash with error correction code support.
--- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 23 +++++++++++++++++++ arch/arm64/boot/dts/mediatek/mt7622.dtsi | 34 ++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+)
arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts +23 -0
@@ -235,6 +235,10 @@ }; }; +&bch { + status = "disabled"; +}; + &btif { status = "okay"; };
@@ -257,6 +261,25 @@ status = "okay"; }; +&nandc { + pinctrl-names = "default"; + pinctrl-0 = <¶llel_nand_pins>; + status = "disabled"; +}; + +&nor_flash { + pinctrl-names = "default"; + pinctrl-0 = <&spi_nor_pins>; + status = "disabled"; + + flash at 0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "jedec,spi-nor"; + reg = <0>; + }; +}; + &pwm { pinctrl-names = "default"; pinctrl-0 = <&pwm7_pins>;
arch/arm64/boot/dts/mediatek/mt7622.dtsi +34 -0
@@ -395,6 +395,40 @@ status = "disabled"; }; + nandc: nfi at 1100d000 { + compatible = "mediatek,mt7622-nfc"; + reg = <0 0x1100D000 0 0x1000>; + interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_LOW>; + clocks = <&pericfg CLK_PERI_NFI_PD>, + <&pericfg CLK_PERI_SNFI_PD>; + clock-names = "nfi_clk", "pad_clk"; + ecc-engine = <&bch>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + bch: ecc at 1100e000 { + compatible = "mediatek,mt7622-ecc"; + reg = <0 0x1100e000 0 0x1000>; + interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_LOW>; + clocks = <&pericfg CLK_PERI_NFIECC_PD>; + clock-names = "nfiecc_clk"; + status = "disabled"; + }; + + nor_flash: spi at 11014000 { + compatible = "mediatek,mt7622-nor", + "mediatek,mt8173-nor"; + reg = <0 0x11014000 0 0xe0>; + clocks = <&pericfg CLK_PERI_FLASH_PD>, + <&topckgen CLK_TOP_FLASH_SEL>; + clock-names = "spi", "sf"; + #address-cells = <1>; + #size-cells = <1>; + status = "disabled"; + }; + spi1: spi at 11016000 { compatible = "mediatek,mt7622-spi"; reg = <0 0x11016000 0 0x100>;
Signature · 1 line
2.7.4
PATCH 10/12 arm64: dts: mt7622: add ethernet device nodes
In reply to [email protected]From: Sean Wang <[email protected]>
add ethernet device nodes which enable GMAC1 with SGMII interface
--- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 22 ++++++++++++++++++++ arch/arm64/boot/dts/mediatek/mt7622.dtsi | 31 ++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+)
arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts +22 -0
@@ -249,6 +249,28 @@ status = "okay"; }; +ð { + pinctrl-names = "default"; + pinctrl-0 = <ð_pins>; + status = "okay"; + + gmac1: mac at 1 { + compatible = "mediatek,eth-mac"; + reg = <1>; + phy-handle = <&phy5>; + }; + + mdio-bus { + #address-cells = <1>; + #size-cells = <0>; + + phy5: ethernet-phy at 5 { + reg = <5>; + phy-mode = "sgmii"; + }; + }; +}; + &i2c1 { pinctrl-names = "default"; pinctrl-0 = <&i2c1_pins>;
arch/arm64/boot/dts/mediatek/mt7622.dtsi +31 -0
@@ -477,6 +477,37 @@ #reset-cells = <1>; }; + eth: ethernet at 1b100000 { + compatible = "mediatek,mt7622-eth", + "mediatek,mt2701-eth", + "syscon"; + reg = <0 0x1b100000 0 0x20000>; + interrupts = <GIC_SPI 223 IRQ_TYPE_LEVEL_LOW>, + <GIC_SPI 224 IRQ_TYPE_LEVEL_LOW>, + <GIC_SPI 225 IRQ_TYPE_LEVEL_LOW>; + clocks = <&topckgen CLK_TOP_ETH_SEL>, + <ðsys CLK_ETH_ESW_EN>, + <ðsys CLK_ETH_GP0_EN>, + <ðsys CLK_ETH_GP1_EN>, + <ðsys CLK_ETH_GP2_EN>, + <&sgmiisys CLK_SGMII_TX250M_EN>, + <&sgmiisys CLK_SGMII_RX250M_EN>, + <&sgmiisys CLK_SGMII_CDR_REF>, + <&sgmiisys CLK_SGMII_CDR_FB>, + <&topckgen CLK_TOP_SGMIIPLL>, + <&apmixedsys CLK_APMIXED_ETH2PLL>; + clock-names = "ethif", "esw", "gp0", "gp1", "gp2", + "sgmii_tx250m", "sgmii_rx250m", + "sgmii_cdr_ref", "sgmii_cdr_fb", "sgmii_ck", + "eth2pll"; + power-domains = <&scpsys MT7622_POWER_DOMAIN_ETHSYS>; + mediatek,ethsys = <ðsys>; + mediatek,sgmiisys = <&sgmiisys>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + sgmiisys: sgmiisys at 1b128000 { compatible = "mediatek,mt7622-sgmiisys", "syscon";
Signature · 1 line
2.7.4
PATCH 11/12 arm64: dts: mt7622: add PCIe device nodes
In reply to [email protected]From: Ryder Lee <[email protected]>
This patch adds PCIe support fot MT7622.
--- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 10 ++++ arch/arm64/boot/dts/mediatek/mt7622.dtsi | 76 ++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+)
arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts +10 -0
@@ -54,6 +54,16 @@ }; }; +&pcie { + pinctrl-names = "default"; + pinctrl-0 = <&pcie0_pins>; + status = "okay"; + + pcie at 0,0 { + status = "okay"; + }; +}; + &pio { /* eMMC is shared pin with parallel NAND */ emmc_pins_default: emmc-pins-default {
arch/arm64/boot/dts/mediatek/mt7622.dtsi +76 -0
82 lines not on this page · raw message
Signature · 1 line
2.7.4
PATCH 12/12 arm64: dts: mt7622: add SATA device nodes
In reply to [email protected]From: Ryder Lee <[email protected]>
This patch adds SATA support fot MT7622.
--- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 8 ++++++ arch/arm64/boot/dts/mediatek/mt7622.dtsi | 40 ++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+)
arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts +8 -0
@@ -325,6 +325,14 @@ status = "okay"; }; +&sata { + status = "okay"; +}; + +&sata_phy { + status = "okay"; +}; + &spi0 { pinctrl-names = "default"; pinctrl-0 = <&spic0_pins>;
arch/arm64/boot/dts/mediatek/mt7622.dtsi +40 -0
@@ -9,6 +9,7 @@ #include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/clock/mt7622-clk.h> +#include <dt-bindings/phy/phy.h> #include <dt-bindings/power/mt7622-power.h> #include <dt-bindings/reset/mt7622-reset.h>
@@ -545,6 +546,45 @@ }; }; + sata: sata at 1a200000 { + compatible = "mediatek,mt7622-ahci", + "mediatek,mtk-ahci"; + reg = <0 0x1a200000 0 0x1100>; + interrupts = <GIC_SPI 233 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "hostc"; + clocks = <&pciesys CLK_SATA_AHB_EN>, + <&pciesys CLK_SATA_AXI_EN>, + <&pciesys CLK_SATA_ASIC_EN>, + <&pciesys CLK_SATA_RBC_EN>, + <&pciesys CLK_SATA_PM_EN>; + clock-names = "ahb", "axi", "asic", "rbc", "pm"; + phys = <&sata_port PHY_TYPE_SATA>; + phy-names = "sata-phy"; + ports-implemented = <0x1>; + power-domains = <&scpsys MT7622_POWER_DOMAIN_HIF0>; + resets = <&pciesys MT7622_SATA_AXI_BUS_RST>, + <&pciesys MT7622_SATA_PHY_SW_RST>, + <&pciesys MT7622_SATA_PHY_REG_RST>; + reset-names = "axi", "sw", "reg"; + mediatek,phy-mode = <&pciesys>; + status = "disabled"; + }; + + sata_phy: sata-phy at 1a243000 { + compatible = "mediatek,generic-tphy-v1"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + status = "disabled"; + + sata_port: sata-phy at 1a243000 { + reg = <0 0x1a243000 0 0x0100>; + clocks = <&topckgen CLK_TOP_ETH_500M>; + clock-names = "ref"; + #phy-cells = <1>; + }; + }; + ethsys: syscon at 1b000000 { compatible = "mediatek,mt7622-ethsys", "syscon";
Signature · 1 line
2.7.4