Re: [U-Boot] [PATCH 3/3] ARM: dts: Add missing DT for Meson G12A support

2019-05-31 Thread Neil Armstrong
On 28/05/2019 10:50, Neil Armstrong wrote:
> The following DT nodes in the process on review for Linux 5.3,
> until Linux 5.3 is tagged, add the missing DT nodes in u-boot specific
> DTSI files that will be dropped when the v5.3-rc1 DT is synced again.
> 
> Signed-off-by: Neil Armstrong 
> ---
>  arch/arm/dts/meson-g12a-u-boot.dtsi  | 216 +++
>  arch/arm/dts/meson-g12a-u200-u-boot.dtsi |  63 +++
>  2 files changed, 279 insertions(+)
>  create mode 100644 arch/arm/dts/meson-g12a-u-boot.dtsi
>  create mode 100644 arch/arm/dts/meson-g12a-u200-u-boot.dtsi
> 
> diff --git a/arch/arm/dts/meson-g12a-u-boot.dtsi 
> b/arch/arm/dts/meson-g12a-u-boot.dtsi
> new file mode 100644
> index 00..5065d8b65a
> --- /dev/null
> +++ b/arch/arm/dts/meson-g12a-u-boot.dtsi
> @@ -0,0 +1,216 @@
> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> +/*
> + * Copyright (c) 2019 BayLibre, SAS.
> + * Author: Maxime Jourdan 

Oops wrong author, will fix while applying

> + */
> +
> +/ {
> + soc {
> + ethmac: ethernet@ff3f {
> + compatible = "amlogic,meson-axg-dwmac", 
> "snps,dwmac-3.710",
> +  "snps,dwmac";
> + reg = <0x0 0xff3f 0x0 0x1
> +0x0 0xff634540 0x0 0x8>;
> + interrupts = ;
> + interrupt-names = "macirq";
> + clocks = < CLKID_ETH>,
> +  < CLKID_FCLK_DIV2>,
> +  < CLKID_MPLL2>;
> + clock-names = "stmmaceth", "clkin0", "clkin1";
> + status = "disabled";
> +
> + mdio0: mdio {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + compatible = "snps,dwmac-mdio";
> + };
> + };
> +
> + sd_emmc_a: sd@ffe03000 {
> + compatible = "amlogic,meson-axg-mmc";
> + reg = <0x0 0xffe03000 0x0 0x800>;
> + interrupts = ;
> + status = "disabled";
> + clocks = < CLKID_SD_EMMC_A>,
> +  < CLKID_SD_EMMC_A_CLK0>,
> +  < CLKID_FCLK_DIV2>;
> + clock-names = "core", "clkin0", "clkin1";
> + resets = < RESET_SD_EMMC_A>;
> + };
> +
> + sd_emmc_b: sd@ffe05000 {
> + compatible = "amlogic,meson-axg-mmc";
> + reg = <0x0 0xffe05000 0x0 0x800>;
> + interrupts = ;
> + status = "disabled";
> + clocks = < CLKID_SD_EMMC_B>,
> +  < CLKID_SD_EMMC_B_CLK0>,
> +  < CLKID_FCLK_DIV2>;
> + clock-names = "core", "clkin0", "clkin1";
> + resets = < RESET_SD_EMMC_B>;
> + };
> +
> + sd_emmc_c: mmc@ffe07000 {
> + compatible = "amlogic,meson-axg-mmc";
> + reg = <0x0 0xffe07000 0x0 0x800>;
> + interrupts = ;
> + status = "disabled";
> + clocks = < CLKID_SD_EMMC_C>,
> +  < CLKID_SD_EMMC_C_CLK0>,
> +  < CLKID_FCLK_DIV2>;
> + clock-names = "core", "clkin0", "clkin1";
> + resets = < RESET_SD_EMMC_C>;
> + };
> + };
> +};
> +
> +_pinctrl {
> + emmc_pins: emmc {
> + mux {
> + groups = "emmc_nand_d0",
> +  "emmc_nand_d1",
> +  "emmc_nand_d2",
> +  "emmc_nand_d3",
> +  "emmc_nand_d4",
> +  "emmc_nand_d5",
> +  "emmc_nand_d6",
> +  "emmc_nand_d7",
> +  "emmc_clk",
> +  "emmc_cmd";
> + function = "emmc";
> + bias-pull-up;
> + };
> + };
> +
> + emmc_ds_pins: emmc-ds {
> + mux {
> + groups = "emmc_nand_ds";
> + function = "emmc";
> + bias-pull-down;
> + };
> + };
> +
> + emmc_clk_gate_pins: emmc_clk_gate {
> + mux {
> + groups = "BOOT_8";
> + function = "gpio_periphs";
> + bias-pull-down;
> + };
> + };
> +
> + eth_leds_pins: eth-leds {
> + mux {
> + groups = "eth_link_led",
> +  "eth_act_led";
> + function = "eth";
> + bias-disable;
> + };
> + };
> +
> + 

[U-Boot] [PATCH 3/3] ARM: dts: Add missing DT for Meson G12A support

2019-05-28 Thread Neil Armstrong
The following DT nodes in the process on review for Linux 5.3,
until Linux 5.3 is tagged, add the missing DT nodes in u-boot specific
DTSI files that will be dropped when the v5.3-rc1 DT is synced again.

Signed-off-by: Neil Armstrong 
---
 arch/arm/dts/meson-g12a-u-boot.dtsi  | 216 +++
 arch/arm/dts/meson-g12a-u200-u-boot.dtsi |  63 +++
 2 files changed, 279 insertions(+)
 create mode 100644 arch/arm/dts/meson-g12a-u-boot.dtsi
 create mode 100644 arch/arm/dts/meson-g12a-u200-u-boot.dtsi

diff --git a/arch/arm/dts/meson-g12a-u-boot.dtsi 
b/arch/arm/dts/meson-g12a-u-boot.dtsi
new file mode 100644
index 00..5065d8b65a
--- /dev/null
+++ b/arch/arm/dts/meson-g12a-u-boot.dtsi
@@ -0,0 +1,216 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2019 BayLibre, SAS.
+ * Author: Maxime Jourdan 
+ */
+
+/ {
+   soc {
+   ethmac: ethernet@ff3f {
+   compatible = "amlogic,meson-axg-dwmac", 
"snps,dwmac-3.710",
+"snps,dwmac";
+   reg = <0x0 0xff3f 0x0 0x1
+  0x0 0xff634540 0x0 0x8>;
+   interrupts = ;
+   interrupt-names = "macirq";
+   clocks = < CLKID_ETH>,
+< CLKID_FCLK_DIV2>,
+< CLKID_MPLL2>;
+   clock-names = "stmmaceth", "clkin0", "clkin1";
+   status = "disabled";
+
+   mdio0: mdio {
+   #address-cells = <1>;
+   #size-cells = <0>;
+   compatible = "snps,dwmac-mdio";
+   };
+   };
+
+   sd_emmc_a: sd@ffe03000 {
+   compatible = "amlogic,meson-axg-mmc";
+   reg = <0x0 0xffe03000 0x0 0x800>;
+   interrupts = ;
+   status = "disabled";
+   clocks = < CLKID_SD_EMMC_A>,
+< CLKID_SD_EMMC_A_CLK0>,
+< CLKID_FCLK_DIV2>;
+   clock-names = "core", "clkin0", "clkin1";
+   resets = < RESET_SD_EMMC_A>;
+   };
+
+   sd_emmc_b: sd@ffe05000 {
+   compatible = "amlogic,meson-axg-mmc";
+   reg = <0x0 0xffe05000 0x0 0x800>;
+   interrupts = ;
+   status = "disabled";
+   clocks = < CLKID_SD_EMMC_B>,
+< CLKID_SD_EMMC_B_CLK0>,
+< CLKID_FCLK_DIV2>;
+   clock-names = "core", "clkin0", "clkin1";
+   resets = < RESET_SD_EMMC_B>;
+   };
+
+   sd_emmc_c: mmc@ffe07000 {
+   compatible = "amlogic,meson-axg-mmc";
+   reg = <0x0 0xffe07000 0x0 0x800>;
+   interrupts = ;
+   status = "disabled";
+   clocks = < CLKID_SD_EMMC_C>,
+< CLKID_SD_EMMC_C_CLK0>,
+< CLKID_FCLK_DIV2>;
+   clock-names = "core", "clkin0", "clkin1";
+   resets = < RESET_SD_EMMC_C>;
+   };
+   };
+};
+
+_pinctrl {
+   emmc_pins: emmc {
+   mux {
+   groups = "emmc_nand_d0",
+"emmc_nand_d1",
+"emmc_nand_d2",
+"emmc_nand_d3",
+"emmc_nand_d4",
+"emmc_nand_d5",
+"emmc_nand_d6",
+"emmc_nand_d7",
+"emmc_clk",
+"emmc_cmd";
+   function = "emmc";
+   bias-pull-up;
+   };
+   };
+
+   emmc_ds_pins: emmc-ds {
+   mux {
+   groups = "emmc_nand_ds";
+   function = "emmc";
+   bias-pull-down;
+   };
+   };
+
+   emmc_clk_gate_pins: emmc_clk_gate {
+   mux {
+   groups = "BOOT_8";
+   function = "gpio_periphs";
+   bias-pull-down;
+   };
+   };
+
+   eth_leds_pins: eth-leds {
+   mux {
+   groups = "eth_link_led",
+"eth_act_led";
+   function = "eth";
+   bias-disable;
+   };
+   };
+
+   eth_rmii_pins: eth-rmii {
+   mux {
+   groups = "eth_mdio",
+"eth_mdc",
+