1. 09 5月, 2019 13 次提交
    • T
      Merge branch 'master' of git://git.denx.de/u-boot-sunxi · 504bf790
      Tom Rini 提交于
      - H6 Beelink GS1 board (Clément)
      - Olimex A64-Teres-I board (Jonas)
      - sunxi build fix for CONFIG_CMD_PXE|DHCP (Ondrej)
      - Change include order (Jagan)
      - EPHY clock changes (Jagan)
      - EMAC enablement on Cubietruck Plus, BPI-M3 (Chen-Yu Tsai)
      504bf790
    • C
      sunxi: Enable EMAC on the Bananapi M3 · c23b33f5
      Chen-Yu Tsai 提交于
      The Bananapi M3 has an RTL8211E PHY connected to the EMAC using
      RGMII. The PHY is powered by DCDC1 through SW @ 3.3V.
      
      The board is designed to use 3.3V with RGMII, instead of the standard
      reduced voltage of 2.5V we see everywhere. DLDO3, which provides the
      I/O voltages, is raised to match.
      
      This patch enables the EMAC and Realtek PHY drivers in the defconfig.
      The device tree file already has the EMAC enabled.
      Signed-off-by: NChen-Yu Tsai <wens@csie.org>
      Reviewed-by: NJagan Teki <jagan@amarulasolutions.com>
      c23b33f5
    • C
      sunxi: Enable EMAC on the Cubietruck Plus · b39eab2f
      Chen-Yu Tsai 提交于
      The Cubietruck Plus has an RTL8211E PHY connected to the EMAC using
      RGMII. The PHY is powered by DLDO4 @ 3.3V, while the I/O pins are
      powered by DLDO3 @ 2.5V.
      
      This patch enables the EMAC and Realtek PHY drivers in the defconfig.
      The device tree file already has the EMAC enabled.
      Signed-off-by: NChen-Yu Tsai <wens@csie.org>
      Reviewed-by: NJagan Teki <jagan@amarulasolutions.com>
      b39eab2f
    • J
      sun50i: a64: Add Olimex A64-Teres-I board initial support · 997b857a
      Jonas Smedegaard 提交于
      Olimex A64-Teres-I board is a mainboard (the only one so far)
      for Olimex Teres-I DIY laptop kit.
      
      Key features:
      - Allwinner A64 Cortex-A53
      - Mali-400MP2 GPU
      - AXP803 PMIC
      - 2GB DDR3 RAM
      - MicroSD Slot
      - 16GB eMMC Flash
      - eDP LCD display
      - HDMI
      - USB Host
      - Battery management
      - 5V DC power supply
      - Certified Open Source Hardware (OSHW)
      
      Works:
      - i2C
      - MMC/SD
      - PWM backlight
      
      Known broken:
      - Internal keyboard (seems to be because the keyboard firmware loads a
      bootloader first, and then disconnects bootloader and connect real
      keyboard). External ones connected to the USB port work fine.
      
      This patch enables support for the A64-Teres-I board to u-boot,
      including enabling screen backlight (lacking from Linux device-tree).
      
      Linux commit details about the sun50i-a64-teres-i.dts sync:
      "arm64: dts: allwinner: a64: Rename uart0_pins_a label to uart0_pb_pins"
      (sha1: d91ebb95b96c8840932dc3a10c9f243712555467)
      
      Cosmetic warnings regarding whitespace and placement of SPDX notice for
      dts file was ignored.
      
      config and .dtsi file are adapted from pinebook files.
      Tested-by: NJonas Smedegaard <dr@jones.dk>
      Signed-off-by: NJonas Smedegaard <dr@jones.dk>
      Signed-off-by: NIcenowy Zheng <icenowy@aosc.io>
      Reviewed-by: NJagan Teki <jagan@amarulasolutions.com>
      [jagan: move board entry in MAINTAINERS file at proper position]
      Signed-off-by: NJagan Teki <jagan@amarulasolutions.com>
      997b857a
    • J
      net: sun8i_emac: Add EPHY CLK and RESET support · 2348453c
      Jagan Teki 提交于
      Add EPHY CLK and RESET support for sun8i_emac driver to
      enable EPHY TX clock and EPHY reset pins via CLK and RESET
      framework.
      
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      Cc: Lothar Felten <lothar.felten@gmail.com>
      Signed-off-by: NJagan Teki <jagan@amarulasolutions.com>
      Acked-by: NJoe Hershberger <joe.hershberger@ni.com>
      2348453c
    • J
      test/dm: reset: Add reset_get_by_index[_nodev] test · 41cdb285
      Jagan Teki 提交于
      Add sample dm reset test for reset_get_by_index and
      reset_get_by_index_nodev functionality code.
      
      Cc: Stephen Warren <swarren@nvidia.com>
      Signed-off-by: NJagan Teki <jagan@amarulasolutions.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      41cdb285
    • J
      reset: Get the RESET by index without device · ea9dc35a
      Jagan Teki 提交于
      Getting a RESET by index with device is not straight forward
      for some use-cases like handling clock operations for child
      node in parent driver. So we need to process the child node
      in parent probe via ofnode and process RESET operation for child
      without udevice but with ofnode.
      
      So add reset_get_by_index_nodev() and move the common code
      in reset_get_by_index_tail() to use for reset_get_by_index()
      
      Cc: Stephen Warren <swarren@nvidia.com>
      Signed-off-by: NJagan Teki <jagan@amarulasolutions.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      ea9dc35a
    • J
      test/dm: clk: Add clk_get_by_index[_nodev] test · d7a672e3
      Jagan Teki 提交于
      Add sample dm clk test for clk_get_by_index and
      clk_get_by_index_nodev functionality code.
      
      Cc: Stephen Warren <swarren@nvidia.com>
      Signed-off-by: NJagan Teki <jagan@amarulasolutions.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      d7a672e3
    • J
      clk: Use clk_get_by_index_tail() · dcb63fcd
      Jagan Teki 提交于
      clk_get_by_index_tail() now handle common clk get by index
      code so use it from clk_get_by_indexed_prop().
      
      Cc: Stephen Warren <swarren@nvidia.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      Signed-off-by: NJagan Teki <jagan@amarulasolutions.com>
      dcb63fcd
    • J
      clk: Get the CLK by index without device · 75f98314
      Jagan Teki 提交于
      Getting a CLK by index with device is not straight forward
      for some use-cases like handling clock operations for child
      node in parent driver. So we need to process the child node
      in parent probe via ofnode and process CLK operation for child
      without udevice but with ofnode.
      
      So add clk_get_by_index_nodev() and move the common code
      in clk_get_by_index_tail() to use for clk_get_by_index()
      
      Cc: Stephen Warren <swarren@nvidia.com>
      Signed-off-by: NJagan Teki <jagan@amarulasolutions.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      75f98314
    • J
      serial: sifive: Change include order · b24f9057
      Jagan Teki 提交于
      Like clk_get_by_index, there is requirement for
      clk_get_by_index_nodev. In this case to make common
      code functionalities for dev and nodev, clk_get_by_index
      is trying to get the index of clock by passing ofnode
      instead of actual dev like current gpio uclass does.
      
      In these scenarios with current order of include files
      the serial_sifive driver is unable to find CONFIG_ENV_SIZE.
      
      In file included from arch/riscv/include/asm/u-boot.h:23:0,
                       from include/dm/of.h:10,
                       from include/dm/ofnode.h:12,
                       from include/clk.h:11,
                       from drivers/serial/serial_sifive.c:6:
      include/environment.h:145:19: error: 'CONFIG_ENV_SIZE'
      undeclared here (not in a function); did you mean 'CONFIG_CMD_XIMG'?
       #define ENV_SIZE (CONFIG_ENV_SIZE - ENV_HEADER_SIZE)
      
      So, fix consists of changing the order of include files
      in serial_sifive.c to include first common.h file.
      
      Cc: Anup Patel <Anup.Patel@wdc.com>
      Cc: Rick Chen <rick@andestech.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Reviewed-by: NBin Meng <bmeng.cn@gmail.com>
      Signed-off-by: NJagan Teki <jagan@amarulasolutions.com>
      b24f9057
    • J
      clk: sifive: fu540-prci: Change include order · db2f6961
      Jagan Teki 提交于
      Like clk_get_by_index, there is requirement for
      clk_get_by_index_nodev. In this case to make common
      code functionalities for dev and nodev, clk_get_by_index
      is trying to get the index of clock by passing ofnode
      instead of actual dev like current gpio uclass does.
      
      In these scenarios with current order of include files
      the fu540-prci driver is unable to find CONFIG_ENV_SIZE.
      
      In file included from arch/riscv/include/asm/u-boot.h:23:0,
                       from include/dm/of.h:10,
                       from include/dm/ofnode.h:12,
                       from include/clk.h:11,
                       from include/clk-uclass.h:13,
                       from drivers/clk/sifive/fu540-prci.c:32:
      include/environment.h:145:19: error: 'CONFIG_ENV_SIZE'
      undeclared here (not in a function); did you mean 'CONFIG_CMD_XIMG'?
       #define ENV_SIZE (CONFIG_ENV_SIZE - ENV_HEADER_SIZE)
      
      So, fix consists of changing the order of include files
      in fu540-prci.c to include first common.h file.
      
      Cc: Anup Patel <Anup.Patel@wdc.com>
      Cc: Rick Chen <rick@andestech.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Reviewed-by: NBin Meng <bmeng.cn@gmail.com>
      Signed-off-by: NJagan Teki <jagan@amarulasolutions.com>
      db2f6961
    • J
      spi: atcspi200: Change include order · 0cbee854
      Jagan Teki 提交于
      Like clk_get_by_index, there is requirement for
      clk_get_by_index_nodev. In this case to make common
      code functionalities for dev and nodev, clk_get_by_index
      is trying to get the index of clock by passing ofnode
      instead of actual dev like current gpio uclass does.
      
      In these scenarios with current order of include files
      the atcspi200_spi driver is unable to find CONFIG_ENV_SIZE.
      
      In file included from arch/nds32/include/asm/u-boot.h:24,
                       from include/dm/of.h:10,
                       from include/dm/ofnode.h:12,
                       from include/clk.h:11,
                       from drivers/spi/atcspi200_spi.c:9:
      include/environment.h:145:19: error: 'CONFIG_ENV_SIZE'
      undeclared here (not in a function); did you mean 'CONFIG_CMD_XIMG'?
       #define ENV_SIZE (CONFIG_ENV_SIZE - ENV_HEADER_SIZE)
      
      So, fix consists of changing the order of include files
      in atcspi200_spi.c to include first common.h file.
      Reviewed-by: NBin Meng <bmeng.cn@gmail.com>
      Signed-off-by: NJagan Teki <jagan@amarulasolutions.com>
      0cbee854
  2. 08 5月, 2019 27 次提交