Skip to contentSkip to conversation

rockchip: Initial RK3368 and GeekBox support

PATCH New Andreas Färber 5 participants 17 messages Jul 18, 2016 – Aug 29, 2016

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

cover rockchip: Initial RK3368 and GeekBox support

Hi,

This series adds initial support for RK3368 SoC and GeekBox. For more details see the commit message.

Will need to be rebased onto Heiko's cleanups and Kever's RK3399 series.

Regards,
Andreas

Cc Simon Glass <[email protected]>
Cc Kever Yang <[email protected]>
Cc Heiko St?bner <[email protected]>

Andreas F?rber (2):
dts: Import rk3368-geekbox.dts
ARM64: rockchip: Add initial support for RK3368 based GeekBox

 arch/arm/Kconfig                       |    4 -
 arch/arm/dts/Makefile                  |    3 +-
 arch/arm/dts/rk3368-geekbox.dts        |  319 ++++++++++
 arch/arm/dts/rk3368.dtsi               | 1082 ++++++++++++++++++++++++++++++++
 arch/arm/mach-rockchip/Kconfig         |   14 +
 arch/arm/mach-rockchip/Makefile        |    1 +
 arch/arm/mach-rockchip/rk3368/Kconfig  |   14 +
 arch/arm/mach-rockchip/rk3368/Makefile |    7 +
 arch/arm/mach-rockchip/rk3368/rk3368.c |   28 +
 board/geekbuying/geekbox/Kconfig       |   15 +
 board/geekbuying/geekbox/Makefile      |    7 +
 board/geekbuying/geekbox/geekbox.c     |   26 +
 configs/geekbox_defconfig              |   20 +
 include/configs/geekbox.h              |   19 +
 include/configs/rk3368_common.h        |   47 ++
 include/dt-bindings/clock/rk3368-cru.h |  384 ++++++++++++
 16 files changed, 1985 insertions(+), 5 deletions(-)
 create mode 100644 arch/arm/dts/rk3368-geekbox.dts
 create mode 100644 arch/arm/dts/rk3368.dtsi
 create mode 100644 arch/arm/mach-rockchip/rk3368/Kconfig
 create mode 100644 arch/arm/mach-rockchip/rk3368/Makefile
 create mode 100644 arch/arm/mach-rockchip/rk3368/rk3368.c
 create mode 100644 board/geekbuying/geekbox/Kconfig
 create mode 100644 board/geekbuying/geekbox/Makefile
 create mode 100644 board/geekbuying/geekbox/geekbox.c
 create mode 100644 configs/geekbox_defconfig
 create mode 100644 include/configs/geekbox.h
 create mode 100644 include/configs/rk3368_common.h
 create mode 100644 include/dt-bindings/clock/rk3368-cru.h
Signature · 1 line
2.6.6
#1 lore raw

PATCH 1/2 dts: Import rk3368-geekbox.dts

Unmodified from Linux kernel v4.7-rc6.

---
 arch/arm/dts/Makefile                  |    3 +-
 arch/arm/dts/rk3368-geekbox.dts        |  319 ++++++++++
 arch/arm/dts/rk3368.dtsi               | 1081 ++++++++++++++++++++++++++++++++
 include/dt-bindings/clock/rk3368-cru.h |  384 ++++++++++++
 4 files changed, 1786 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/dts/rk3368-geekbox.dts
 create mode 100644 arch/arm/dts/rk3368.dtsi
 create mode 100644 include/dt-bindings/clock/rk3368-cru.h
arch/arm/dts/Makefile +2 -1
index 73e334e..fd355e3 100644
@@ -32,7 +32,8 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += \
 	rk3288-jerry.dtb \
 	rk3288-rock2-square.dtb \
 	rk3288-evb.dtb \
-	rk3036-sdk.dtb
+	rk3036-sdk.dtb \
+	rk3368-geekbox.dtb
 dtb-$(CONFIG_ARCH_MESON) += \
 	meson-gxbb-odroidc2.dtb
 dtb-$(CONFIG_TEGRA) += tegra20-harmony.dtb \
arch/arm/dts/rk3368-geekbox.dts new file +319 -0

319 lines not on this page · raw message

arch/arm/dts/rk3368.dtsi new file +1081 -0

1,081 lines not on this page · raw message

include/dt-bindings/clock/rk3368-cru.h new file +384 -0

384 lines not on this page · raw message

Signature · 1 line
2.6.6
#2 lore raw

PATCH 1/2 dts: Import rk3368-geekbox.dts

Quoted 12 lines · Andreas F?rber

Unmodified from Linux kernel v4.7-rc6.

---
 arch/arm/dts/Makefile                  |    3 +-
 arch/arm/dts/rk3368-geekbox.dts        |  319 ++++++++++
 arch/arm/dts/rk3368.dtsi               | 1081 ++++++++++++++++++++++++++++++++
 include/dt-bindings/clock/rk3368-cru.h |  384 ++++++++++++
 4 files changed, 1786 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/dts/rk3368-geekbox.dts
 create mode 100644 arch/arm/dts/rk3368.dtsi
 create mode 100644 include/dt-bindings/clock/rk3368-cru.h
#3 lore raw

PATCH 2/2 ARM64: rockchip: Add initial support for RK3368 based GeekBox

In reply to Andreas Färber

The RK3368 is an octa-core Cortex-A53 SoC from Rockchip.

The GeekBox is a TV box from GeekBuying, based on an MXM3 module. The module can be used with base boards such as the GeekBox Landingship.

This adds basic support to chain-load U-Boot from Rockchip's miniloader.

  $ ./lollipop_u-boot/tools/loaderimage --pack u-boot.bin u-boot.img
  # ./utils/upgrade_tool di uboot u-boot.img

Implemented is the serial console, but no boot media drivers yet.

Note that flashing the resulting U-Boot will not allow you to enter the rockusb mode any more via "Update" button. Instead, you will need to short two pins on the bottom of the module to enter MaskRom mode and re-flash the loader:

  # ./utils/upgrade_tool ul ./lollipop_u-boot/RK3368MiniLoaderAll_V2.40.bin
  # ./utils/upgrade_tool di uboot u-boot.img
---
 arch/arm/Kconfig                       |  4 ---
 arch/arm/dts/rk3368.dtsi               |  1 +
 arch/arm/mach-rockchip/Kconfig         | 14 ++++++++++
 arch/arm/mach-rockchip/Makefile        |  1 +
 arch/arm/mach-rockchip/rk3368/Kconfig  | 14 ++++++++++
 arch/arm/mach-rockchip/rk3368/Makefile |  7 +++++
 arch/arm/mach-rockchip/rk3368/rk3368.c | 28 ++++++++++++++++++++
 board/geekbuying/geekbox/Kconfig       | 15 +++++++++++
 board/geekbuying/geekbox/Makefile      |  7 +++++
 board/geekbuying/geekbox/geekbox.c     | 26 +++++++++++++++++++
 configs/geekbox_defconfig              | 20 +++++++++++++++
 include/configs/geekbox.h              | 19 ++++++++++++++
 include/configs/rk3368_common.h        | 47 ++++++++++++++++++++++++++++++++++
 13 files changed, 199 insertions(+), 4 deletions(-)
 create mode 100644 arch/arm/mach-rockchip/rk3368/Kconfig
 create mode 100644 arch/arm/mach-rockchip/rk3368/Makefile
 create mode 100644 arch/arm/mach-rockchip/rk3368/rk3368.c
 create mode 100644 board/geekbuying/geekbox/Kconfig
 create mode 100644 board/geekbuying/geekbox/Makefile
 create mode 100644 board/geekbuying/geekbox/geekbox.c
 create mode 100644 configs/geekbox_defconfig
 create mode 100644 include/configs/geekbox.h
 create mode 100644 include/configs/rk3368_common.h
arch/arm/Kconfig +0 -4
index f9fddad..4ff1a26 100644
@@ -838,14 +838,10 @@ config STM32
 
 config ARCH_ROCKCHIP
 	bool "Support Rockchip SoCs"
-	select SUPPORT_SPL
-	select SPL
 	select OF_CONTROL
 	select BLK
 	select DM
-	select SPL_DM
 	select SYS_MALLOC_F
-	select SPL_SYS_MALLOC_SIMPLE
 	select DM_GPIO
 	select DM_I2C
 	select DM_MMC
arch/arm/dts/rk3368.dtsi +1 -0
index 8b4a7c9..3ab7edc 100644
@@ -609,6 +609,7 @@
 	uart2: serial at ff690000 {
 		compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
 		reg = <0x0 0xff690000 0x0 0x100>;
+		clock-frequency = <24000000>;
 		clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
 		clock-names = "baudclk", "apb_pclk";
 		interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
arch/arm/mach-rockchip/Kconfig +14 -0
index 86b77f8..597f043 100644
@@ -3,6 +3,10 @@ if ARCH_ROCKCHIP
 config ROCKCHIP_RK3288
 	bool "Support Rockchip RK3288"
 	select CPU_V7
+	select SUPPORT_SPL
+	select SPL
+	select SPL_DM
+	select SPL_SYS_MALLOC_SIMPLE
 	help
 	  The Rockchip RK3288 is a ARM-based SoC with a quad-core Cortex-A17
 	  including NEON and GPU, 1MB L2 cache, Mali-T7 graphics, two
@@ -13,12 +17,21 @@ config ROCKCHIP_RK3288
 config ROCKCHIP_RK3036
 	bool "Support Rockchip RK3036"
 	select CPU_V7
+	select SUPPORT_SPL
+	select SPL
+	select SPL_DM
+	select SPL_SYS_MALLOC_SIMPLE
 	help
 	  The Rockchip RK3036 is a ARM-based SoC with a dual-core Cortex-A7
 	  including NEON and GPU, Mali-400 graphics, several DDR3 options
 	  and video codec support. Peripherals include Gigabit Ethernet,
 	  USB2 host and OTG, SDIO, I2S, UART, SPI, I2C and PWMs.
 
+config ROCKCHIP_RK3368
+	bool "Support Rockchip RK3368"
+	select ARM64
+	select SYS_NS16550
+
 config ROCKCHIP_SPL_BACK_TO_BROM
 	bool "SPL returns to bootrom"
 	default y if ROCKCHIP_RK3036
@@ -29,4 +42,5 @@ config ROCKCHIP_SPL_BACK_TO_BROM
 
 source "arch/arm/mach-rockchip/rk3288/Kconfig"
 source "arch/arm/mach-rockchip/rk3036/Kconfig"
+source "arch/arm/mach-rockchip/rk3368/Kconfig"
 endif
arch/arm/mach-rockchip/Makefile +1 -0
index 6763af4..48e78c1 100644
@@ -16,3 +16,4 @@ obj-y += rk_timer.o
 endif
 obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288/
 obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036/
+obj-$(CONFIG_ROCKCHIP_RK3368) += rk3368/
arch/arm/mach-rockchip/rk3368/Kconfig new file +14 -0
new file mode 100644
index 0000000..5f2cd53
@@ -0,0 +1,14 @@
+if ROCKCHIP_RK3368
+
+config TARGET_GEEKBOX
+	bool "GeekBox"
+
+config SYS_SOC
+	default "rockchip"
+
+config SYS_MALLOC_F_LEN
+	default 0x0800
+
+source "board/geekbuying/geekbox/Kconfig"
+
+endif
arch/arm/mach-rockchip/rk3368/Makefile new file +7 -0
new file mode 100644
index 0000000..3e20498
@@ -0,0 +1,7 @@
+#
+# Copyright (c) 2016 Andreas F?rber
+#
+# SPDX-License-Identifier:	GPL-2.0+
+#
+
+obj-y		+= rk3368.o
arch/arm/mach-rockchip/rk3368/rk3368.c new file +28 -0
new file mode 100644
index 0000000..dd34fed
@@ -0,0 +1,28 @@
+/*
+ * Copyright (c) 2016 Andreas F?rber
+ *
+ * SPDX-License-Identifier:     GPL-2.0+
+ */
+
+#include <common.h>
+#include <asm/armv8/mmu.h>
+
+static struct mm_region rk3368_mem_map[] = {
+	{
+		.base = 0x0UL,
+		.size = 0x80000000UL,
+		.attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
+			 PTE_BLOCK_INNER_SHARE
+	}, {
+		.base = 0xf0000000UL,
+		.size = 0x10000000UL,
+		.attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
+			 PTE_BLOCK_NON_SHARE |
+			 PTE_BLOCK_PXN | PTE_BLOCK_UXN
+	}, {
+		/* List terminator */
+		0,
+	}
+};
+
+struct mm_region *mem_map = rk3368_mem_map;
board/geekbuying/geekbox/Kconfig new file +15 -0
new file mode 100644
index 0000000..41aa8fb
@@ -0,0 +1,15 @@
+if TARGET_GEEKBOX
+
+config SYS_BOARD
+	default "geekbox"
+
+config SYS_VENDOR
+	default "geekbuying"
+
+config SYS_CONFIG_NAME
+	default "geekbox"
+
+config BOARD_SPECIFIC_OPTIONS # dummy
+	def_bool y
+
+endif
board/geekbuying/geekbox/Makefile new file +7 -0
new file mode 100644
index 0000000..5c1d66c
@@ -0,0 +1,7 @@
+#
+# Copyright (c) 2016 Andreas F?rber
+#
+# SPDX-License-Identifier:	GPL-2.0+
+#
+
+obj-y	+= geekbox.o
board/geekbuying/geekbox/geekbox.c new file +26 -0
new file mode 100644
index 0000000..4a9c4ff
@@ -0,0 +1,26 @@
+/*
+ * Copyright (c) 2016 Andreas F?rber
+ *
+ * SPDX-License-Identifier:     GPL-2.0+
+ */
+
+#include <common.h>
+
+DECLARE_GLOBAL_DATA_PTR;
+
+int board_init(void)
+{
+	return 0;
+}
+
+int dram_init(void)
+{
+	gd->ram_size = 0x80000000;
+	return 0;
+}
+
+void dram_init_banksize(void)
+{
+	gd->bd->bi_dram[0].start = 0;
+	gd->bd->bi_dram[0].size = 0x80000000;
+}
configs/geekbox_defconfig new file +20 -0
new file mode 100644
index 0000000..6e82c22
@@ -0,0 +1,20 @@
+CONFIG_ARM=y
+CONFIG_ARCH_ROCKCHIP=y
+CONFIG_ROCKCHIP_RK3368=y
+CONFIG_TARGET_GEEKBOX=y
+CONFIG_DEFAULT_DEVICE_TREE="rk3368-geekbox"
+CONFIG_HUSH_PARSER=y
+# CONFIG_CMD_IMLS is not set
+CONFIG_REGMAP=y
+CONFIG_SYSCON=y
+CONFIG_CLK=y
+CONFIG_SYSRESET=y
+CONFIG_PINCTRL=y
+CONFIG_RAM=y
+CONFIG_DEBUG_UART=y
+CONFIG_DEBUG_UART_BASE=0xFF690000
+CONFIG_DEBUG_UART_CLOCK=24000000
+CONFIG_DEBUG_UART_SHIFT=2
+CONFIG_DEBUG_UART_ANNOUNCE=y
+CONFIG_DEBUG_UART_SKIP_INIT=y
+CONFIG_ERRNO_STR=y
include/configs/geekbox.h new file +19 -0
new file mode 100644
index 0000000..47490f1
@@ -0,0 +1,19 @@
+/*
+ * Copyright (c) 2016 Andreas F?rber
+ *
+ * SPDX-License-Identifier:     GPL-2.0+
+ */
+
+#ifndef __CONFIGS_GEEKBOX_H
+#define __CONFIGS_GEEKBOX_H
+
+#include <configs/rk3368_common.h>
+
+#define CONFIG_ENV_IS_NOWHERE
+#define CONFIG_ENV_SIZE			0x2000
+#define CONFIG_SYS_NO_FLASH
+
+#define CONFIG_SYS_WHITE_ON_BLACK
+#define CONFIG_CONSOLE_SCROLL_LINES		10
+
+#endif
include/configs/rk3368_common.h new file +47 -0

47 lines not on this page · raw message

Signature · 1 line
2.6.6
#4 lore raw

PATCH 2/2 ARM64: rockchip: Add initial support for RK3368 based GeekBox

Am 18.07.2016 um 03:06 schrieb Andreas F?rber:

Quoted 168 lines

The RK3368 is an octa-core Cortex-A53 SoC from Rockchip.

The GeekBox is a TV box from GeekBuying, based on an MXM3 module. The module can be used with base boards such as the GeekBox Landingship.

This adds basic support to chain-load U-Boot from Rockchip's miniloader.

  $ ./lollipop_u-boot/tools/loaderimage --pack u-boot.bin u-boot.img
  # ./utils/upgrade_tool di uboot u-boot.img

Implemented is the serial console, but no boot media drivers yet.

Note that flashing the resulting U-Boot will not allow you to enter the rockusb mode any more via "Update" button. Instead, you will need to short two pins on the bottom of the module to enter MaskRom mode and re-flash the loader:

  # ./utils/upgrade_tool ul ./lollipop_u-boot/RK3368MiniLoaderAll_V2.40.bin
  # ./utils/upgrade_tool di uboot u-boot.img
---
 arch/arm/Kconfig                       |  4 ---
 arch/arm/dts/rk3368.dtsi               |  1 +
 arch/arm/mach-rockchip/Kconfig         | 14 ++++++++++
 arch/arm/mach-rockchip/Makefile        |  1 +
 arch/arm/mach-rockchip/rk3368/Kconfig  | 14 ++++++++++
 arch/arm/mach-rockchip/rk3368/Makefile |  7 +++++
 arch/arm/mach-rockchip/rk3368/rk3368.c | 28 ++++++++++++++++++++
 board/geekbuying/geekbox/Kconfig       | 15 +++++++++++
 board/geekbuying/geekbox/Makefile      |  7 +++++
 board/geekbuying/geekbox/geekbox.c     | 26 +++++++++++++++++++
 configs/geekbox_defconfig              | 20 +++++++++++++++
 include/configs/geekbox.h              | 19 ++++++++++++++
 include/configs/rk3368_common.h        | 47 ++++++++++++++++++++++++++++++++++
 13 files changed, 199 insertions(+), 4 deletions(-)
 create mode 100644 arch/arm/mach-rockchip/rk3368/Kconfig
 create mode 100644 arch/arm/mach-rockchip/rk3368/Makefile
 create mode 100644 arch/arm/mach-rockchip/rk3368/rk3368.c
 create mode 100644 board/geekbuying/geekbox/Kconfig
 create mode 100644 board/geekbuying/geekbox/Makefile
 create mode 100644 board/geekbuying/geekbox/geekbox.c
 create mode 100644 configs/geekbox_defconfig
 create mode 100644 include/configs/geekbox.h
 create mode 100644 include/configs/rk3368_common.h
arch/arm/Kconfig +0 -4
index f9fddad..4ff1a26 100644
@@ -838,14 +838,10 @@ config STM32
 
 config ARCH_ROCKCHIP
 	bool "Support Rockchip SoCs"
-	select SUPPORT_SPL
-	select SPL
 	select OF_CONTROL
 	select BLK
 	select DM
-	select SPL_DM
 	select SYS_MALLOC_F
-	select SPL_SYS_MALLOC_SIMPLE
 	select DM_GPIO
 	select DM_I2C
 	select DM_MMC
arch/arm/dts/rk3368.dtsi +1 -0
index 8b4a7c9..3ab7edc 100644
@@ -609,6 +609,7 @@
 	uart2: serial at ff690000 {
 		compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
 		reg = <0x0 0xff690000 0x0 0x100>;
+		clock-frequency = <24000000>;
 		clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
 		clock-names = "baudclk", "apb_pclk";
 		interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
arch/arm/mach-rockchip/Kconfig +14 -0
index 86b77f8..597f043 100644
@@ -3,6 +3,10 @@ if ARCH_ROCKCHIP
 config ROCKCHIP_RK3288
 	bool "Support Rockchip RK3288"
 	select CPU_V7
+	select SUPPORT_SPL
+	select SPL
+	select SPL_DM
+	select SPL_SYS_MALLOC_SIMPLE
 	help
 	  The Rockchip RK3288 is a ARM-based SoC with a quad-core Cortex-A17
 	  including NEON and GPU, 1MB L2 cache, Mali-T7 graphics, two
@@ -13,12 +17,21 @@ config ROCKCHIP_RK3288
 config ROCKCHIP_RK3036
 	bool "Support Rockchip RK3036"
 	select CPU_V7
+	select SUPPORT_SPL
+	select SPL
+	select SPL_DM
+	select SPL_SYS_MALLOC_SIMPLE
 	help
 	  The Rockchip RK3036 is a ARM-based SoC with a dual-core Cortex-A7
 	  including NEON and GPU, Mali-400 graphics, several DDR3 options
 	  and video codec support. Peripherals include Gigabit Ethernet,
 	  USB2 host and OTG, SDIO, I2S, UART, SPI, I2C and PWMs.
 
+config ROCKCHIP_RK3368
+	bool "Support Rockchip RK3368"
+	select ARM64
+	select SYS_NS16550
+
 config ROCKCHIP_SPL_BACK_TO_BROM
 	bool "SPL returns to bootrom"
 	default y if ROCKCHIP_RK3036
@@ -29,4 +42,5 @@ config ROCKCHIP_SPL_BACK_TO_BROM
 
 source "arch/arm/mach-rockchip/rk3288/Kconfig"
 source "arch/arm/mach-rockchip/rk3036/Kconfig"
+source "arch/arm/mach-rockchip/rk3368/Kconfig"
 endif
arch/arm/mach-rockchip/Makefile +1 -0
index 6763af4..48e78c1 100644
@@ -16,3 +16,4 @@ obj-y += rk_timer.o
 endif
 obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288/
 obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036/
+obj-$(CONFIG_ROCKCHIP_RK3368) += rk3368/
arch/arm/mach-rockchip/rk3368/Kconfig new file +14 -0
new file mode 100644
index 0000000..5f2cd53
@@ -0,0 +1,14 @@
+if ROCKCHIP_RK3368
+
+config TARGET_GEEKBOX
+	bool "GeekBox"
+
+config SYS_SOC
+	default "rockchip"
+
+config SYS_MALLOC_F_LEN
+	default 0x0800
+
+source "board/geekbuying/geekbox/Kconfig"
+
+endif
arch/arm/mach-rockchip/rk3368/Makefile new file +7 -0
new file mode 100644
index 0000000..3e20498
@@ -0,0 +1,7 @@
+#
+# Copyright (c) 2016 Andreas F?rber
+#
+# SPDX-License-Identifier:	GPL-2.0+
+#
+
+obj-y		+= rk3368.o
arch/arm/mach-rockchip/rk3368/rk3368.c new file +0 -0
new file mode 100644
index 0000000..dd34fed

arch/arm/mach-rockchip/rk3368/rk3368.c line 2

Quoted 2 lines
arch/arm/mach-rockchip/rk3368/rk3368.c new file +2 -0
@@ -0,0 +1,28 @@
+/*
+ * Copyright (c) 2016 Andreas F?rber

Copied from rk3399, should reproduce Rockchip copyright.

Quoted 101 lines
arch/arm/mach-rockchip/rk3368/rk3368.c new file +26 -0
+ *
+ * SPDX-License-Identifier:     GPL-2.0+
+ */
+
+#include <common.h>
+#include <asm/armv8/mmu.h>
+
+static struct mm_region rk3368_mem_map[] = {
+	{
+		.base = 0x0UL,
+		.size = 0x80000000UL,
+		.attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
+			 PTE_BLOCK_INNER_SHARE
+	}, {
+		.base = 0xf0000000UL,
+		.size = 0x10000000UL,
+		.attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
+			 PTE_BLOCK_NON_SHARE |
+			 PTE_BLOCK_PXN | PTE_BLOCK_UXN
+	}, {
+		/* List terminator */
+		0,
+	}
+};
+
+struct mm_region *mem_map = rk3368_mem_map;
board/geekbuying/geekbox/Kconfig new file +15 -0
new file mode 100644
index 0000000..41aa8fb
@@ -0,0 +1,15 @@
+if TARGET_GEEKBOX
+
+config SYS_BOARD
+	default "geekbox"
+
+config SYS_VENDOR
+	default "geekbuying"
+
+config SYS_CONFIG_NAME
+	default "geekbox"
+
+config BOARD_SPECIFIC_OPTIONS # dummy
+	def_bool y
+
+endif
board/geekbuying/geekbox/Makefile new file +7 -0
new file mode 100644
index 0000000..5c1d66c
@@ -0,0 +1,7 @@
+#
+# Copyright (c) 2016 Andreas F?rber
+#
+# SPDX-License-Identifier:	GPL-2.0+
+#
+
+obj-y	+= geekbox.o
board/geekbuying/geekbox/geekbox.c new file +26 -0
new file mode 100644
index 0000000..4a9c4ff
@@ -0,0 +1,26 @@
+/*
+ * Copyright (c) 2016 Andreas F?rber
+ *
+ * SPDX-License-Identifier:     GPL-2.0+
+ */
+
+#include <common.h>
+
+DECLARE_GLOBAL_DATA_PTR;
+
+int board_init(void)
+{
+	return 0;
+}
+
+int dram_init(void)
+{
+	gd->ram_size = 0x80000000;
+	return 0;
+}
+
+void dram_init_banksize(void)
+{
+	gd->bd->bi_dram[0].start = 0;
+	gd->bd->bi_dram[0].size = 0x80000000;
+}
configs/geekbox_defconfig new file +3 -0
new file mode 100644
index 0000000..6e82c22
@@ -0,0 +1,20 @@
+CONFIG_ARM=y
+CONFIG_ARCH_ROCKCHIP=y
+CONFIG_ROCKCHIP_RK3368=y

configs/geekbox_defconfig line 13

Quoted 10 lines
configs/geekbox_defconfig new file +10 -0
+CONFIG_TARGET_GEEKBOX=y
+CONFIG_DEFAULT_DEVICE_TREE="rk3368-geekbox"
+CONFIG_HUSH_PARSER=y
+# CONFIG_CMD_IMLS is not set
+CONFIG_REGMAP=y
+CONFIG_SYSCON=y
+CONFIG_CLK=y
+CONFIG_SYSRESET=y
+CONFIG_PINCTRL=y
+CONFIG_RAM=y

Not all of these may actually be necessary? Ditto for rk3399.

configs/geekbox_defconfig line 18

Quoted 5 lines
configs/geekbox_defconfig new file +5 -0
+CONFIG_DEBUG_UART=y
+CONFIG_DEBUG_UART_BASE=0xFF690000
+CONFIG_DEBUG_UART_CLOCK=24000000
+CONFIG_DEBUG_UART_SHIFT=2
+CONFIG_DEBUG_UART_ANNOUNCE=y

This one didn't work and should be dropped anyway.

Quoted 46 lines
configs/geekbox_defconfig new file +2 -0
+CONFIG_DEBUG_UART_SKIP_INIT=y
+CONFIG_ERRNO_STR=y
include/configs/geekbox.h new file +19 -0
new file mode 100644
index 0000000..47490f1
@@ -0,0 +1,19 @@
+/*
+ * Copyright (c) 2016 Andreas F?rber
+ *
+ * SPDX-License-Identifier:     GPL-2.0+
+ */
+
+#ifndef __CONFIGS_GEEKBOX_H
+#define __CONFIGS_GEEKBOX_H
+
+#include <configs/rk3368_common.h>
+
+#define CONFIG_ENV_IS_NOWHERE
+#define CONFIG_ENV_SIZE			0x2000
+#define CONFIG_SYS_NO_FLASH
+
+#define CONFIG_SYS_WHITE_ON_BLACK
+#define CONFIG_CONSOLE_SCROLL_LINES		10
+
+#endif
include/configs/rk3368_common.h new file +13 -0
new file mode 100644
index 0000000..27ff1b9
@@ -0,0 +1,47 @@
+/*
+ * Copyright (c) 2016 Andreas F?rber
+ *
+ * SPDX-License-Identifier:     GPL-2.0+
+ */
+
+#ifndef __CONFIG_RK3368_COMMON_H
+#define __CONFIG_RK3368_COMMON_H
+
+#define CONFIG_SYS_CACHELINE_SIZE	64
+
+#include <asm/arch/hardware.h>
+#include <linux/sizes.h>

include/configs/rk3368_common.h line 23

Quoted 10 lines
include/configs/rk3368_common.h new file +10 -0
+
+#define CONFIG_NR_DRAM_BANKS		1
+#define CONFIG_SYS_MAXARGS		16
+#define CONFIG_BAUDRATE			115200
+#define CONFIG_SYS_MALLOC_LEN		(32 << 20)
+#define CONFIG_SYS_CBSIZE		1024
+#define CONFIG_SKIP_LOWLEVEL_INIT
+#define CONFIG_DISPLAY_BOARDINFO
+
+//#define CONFIG_SYS_NS16550

Leftover, replaced by Kconfig.

Quoted 14 lines
include/configs/rk3368_common.h new file +14 -0
+#define CONFIG_SYS_NS16550_MEM32
+
+#ifdef CONFIG_SPL_BUILD
+#define CONFIG_SYS_TEXT_BASE		0x00000000
+#else
+#define CONFIG_SYS_TEXT_BASE		0x00200000
+#endif
+#define CONFIG_SYS_INIT_SP_ADDR		0x00300000
+#define CONFIG_SYS_LOAD_ADDR		0x00800800
+
+#ifndef CONFIG_SPL_BUILD
+
+#include <config_distro_defaults.h>
+

include/configs/rk3368_common.h line 47

Quoted 10 lines
include/configs/rk3368_common.h new file +10 -0
+#define BOOT_TARGET_DEVICES(func)
+
+#include <config_distro_bootcmd.h>
+
+#define CONFIG_EXTRA_ENV_SETTINGS \
+	BOOTENV
+
+#endif
+
+#endif

Regards,
Andreas

Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany
GF: Felix Imend?rffer, Jane Smithard, Graham Norton
HRB 21284 (AG N?rnberg)
#5 lore raw

PATCH 2/2 ARM64: rockchip: Add initial support for RK3368 based GeekBox

In reply to Andreas Färber

Hi Andreas,

Quoted 37 lines · Andreas F?rber

The RK3368 is an octa-core Cortex-A53 SoC from Rockchip.

The GeekBox is a TV box from GeekBuying, based on an MXM3 module. The module can be used with base boards such as the GeekBox Landingship.

This adds basic support to chain-load U-Boot from Rockchip's miniloader.

  $ ./lollipop_u-boot/tools/loaderimage --pack u-boot.bin u-boot.img
  # ./utils/upgrade_tool di uboot u-boot.img

Implemented is the serial console, but no boot media drivers yet.

Note that flashing the resulting U-Boot will not allow you to enter the rockusb mode any more via "Update" button. Instead, you will need to short two pins on the bottom of the module to enter MaskRom mode and re-flash the loader:

  # ./utils/upgrade_tool ul ./lollipop_u-boot/RK3368MiniLoaderAll_V2.40.bin
  # ./utils/upgrade_tool di uboot u-boot.img
---
 arch/arm/Kconfig                       |  4 ---
 arch/arm/dts/rk3368.dtsi               |  1 +
 arch/arm/mach-rockchip/Kconfig         | 14 ++++++++++
 arch/arm/mach-rockchip/Makefile        |  1 +
 arch/arm/mach-rockchip/rk3368/Kconfig  | 14 ++++++++++
 arch/arm/mach-rockchip/rk3368/Makefile |  7 +++++
 arch/arm/mach-rockchip/rk3368/rk3368.c | 28 ++++++++++++++++++++
 board/geekbuying/geekbox/Kconfig       | 15 +++++++++++
 board/geekbuying/geekbox/Makefile      |  7 +++++
 board/geekbuying/geekbox/geekbox.c     | 26 +++++++++++++++++++
 configs/geekbox_defconfig              | 20 +++++++++++++++
 include/configs/geekbox.h              | 19 ++++++++++++++
 include/configs/rk3368_common.h        | 47 ++++++++++++++++++++++++++++++++++
 13 files changed, 199 insertions(+), 4 deletions(-)
 create mode 100644 arch/arm/mach-rockchip/rk3368/Kconfig
Quoted 8 lines
 create mode 100644 arch/arm/mach-rockchip/rk3368/Makefile
 create mode 100644 arch/arm/mach-rockchip/rk3368/rk3368.c
 create mode 100644 board/geekbuying/geekbox/Kconfig
 create mode 100644 board/geekbuying/geekbox/Makefile
 create mode 100644 board/geekbuying/geekbox/geekbox.c
 create mode 100644 configs/geekbox_defconfig
 create mode 100644 include/configs/geekbox.h
 create mode 100644 include/configs/rk3368_common.h

Can you please also send a README in board/geekbuying/geekbox with the flashing info from your cover letter?

Regards,
Simon

maintainer
#6 lore raw

PATCH 2/2 ARM64: rockchip: Add initial support for RK3368 based GeekBox

In reply to Andreas Färber

Hi Andreas,

Am Montag, 18. Juli 2016, 03:06:07 schrieb Andreas F?rber:

Quoted 66 lines

The RK3368 is an octa-core Cortex-A53 SoC from Rockchip.

The GeekBox is a TV box from GeekBuying, based on an MXM3 module. The module can be used with base boards such as the GeekBox Landingship.

This adds basic support to chain-load U-Boot from Rockchip's miniloader.

  $ ./lollipop_u-boot/tools/loaderimage --pack u-boot.bin u-boot.img
  # ./utils/upgrade_tool di uboot u-boot.img

Implemented is the serial console, but no boot media drivers yet.

Note that flashing the resulting U-Boot will not allow you to enter the rockusb mode any more via "Update" button. Instead, you will need to short two pins on the bottom of the module to enter MaskRom mode and re-flash the loader:

  # ./utils/upgrade_tool ul ./lollipop_u-boot/RK3368MiniLoaderAll_V2.40.bin
  # ./utils/upgrade_tool di uboot u-boot.img
---
 arch/arm/Kconfig                       |  4 ---
 arch/arm/dts/rk3368.dtsi               |  1 +
 arch/arm/mach-rockchip/Kconfig         | 14 ++++++++++
 arch/arm/mach-rockchip/Makefile        |  1 +
 arch/arm/mach-rockchip/rk3368/Kconfig  | 14 ++++++++++
 arch/arm/mach-rockchip/rk3368/Makefile |  7 +++++
 arch/arm/mach-rockchip/rk3368/rk3368.c | 28 ++++++++++++++++++++
 board/geekbuying/geekbox/Kconfig       | 15 +++++++++++
 board/geekbuying/geekbox/Makefile      |  7 +++++
 board/geekbuying/geekbox/geekbox.c     | 26 +++++++++++++++++++
 configs/geekbox_defconfig              | 20 +++++++++++++++
 include/configs/geekbox.h              | 19 ++++++++++++++
 include/configs/rk3368_common.h        | 47
++++++++++++++++++++++++++++++++++ 13 files changed, 199 insertions(+), 4
deletions(-)
 create mode 100644 arch/arm/mach-rockchip/rk3368/Kconfig
 create mode 100644 arch/arm/mach-rockchip/rk3368/Makefile
 create mode 100644 arch/arm/mach-rockchip/rk3368/rk3368.c
 create mode 100644 board/geekbuying/geekbox/Kconfig
 create mode 100644 board/geekbuying/geekbox/Makefile
 create mode 100644 board/geekbuying/geekbox/geekbox.c
 create mode 100644 configs/geekbox_defconfig
 create mode 100644 include/configs/geekbox.h
 create mode 100644 include/configs/rk3368_common.h
arch/arm/Kconfig +0 -4
index f9fddad..4ff1a26 100644
@@ -838,14 +838,10 @@ config STM32
 
 config ARCH_ROCKCHIP
 	bool "Support Rockchip SoCs"
-	select SUPPORT_SPL
-	select SPL
 	select OF_CONTROL
 	select BLK
 	select DM
-	select SPL_DM
 	select SYS_MALLOC_F
-	select SPL_SYS_MALLOC_SIMPLE
 	select DM_GPIO
 	select DM_I2C
 	select DM_MMC

[...]

Quoted 18 lines
arch/arm/mach-rockchip/Kconfig +4 -0
index 86b77f8..597f043 100644
@@ -3,6 +3,10 @@ if ARCH_ROCKCHIP
 config ROCKCHIP_RK3288
 	bool "Support Rockchip RK3288"
 	select CPU_V7
+	select SUPPORT_SPL
+	select SPL
+	select SPL_DM
+	select SPL_SYS_MALLOC_SIMPLE
 	help
 	  The Rockchip RK3288 is a ARM-based SoC with a quad-core Cortex-A17
 	  including NEON and GPU, 1MB L2 cache, Mali-T7 graphics, two
@@ -13,12 +17,21 @@ config ROCKCHIP_RK3288
 config ROCKCHIP_RK3036
 	bool "Support Rockchip RK3036"

arch/arm/mach-rockchip/Kconfig config ROCKCHIP_RK3288 · line 28

Quoted 10 lines
arch/arm/mach-rockchip/Kconfig +4 -0
 	select CPU_V7
+	select SUPPORT_SPL
+	select SPL
+	select SPL_DM
+	select SPL_SYS_MALLOC_SIMPLE
 	help
 	  The Rockchip RK3036 is a ARM-based SoC with a dual-core Cortex-A7
 	  including NEON and GPU, Mali-400 graphics, several DDR3 options
 	  and video codec support. Peripherals include Gigabit Ethernet,
 	  USB2 host and OTG, SDIO, I2S, UART, SPI, I2C and PWMs.

looks like both you and Kever need that separation of the SPL symbols (me as well for the rk3188 for the time being), so it might make sense to split that out into a separate patch, all could use.

I guess it might also make it easier for Simon to find an order to apply the patches?

Heiko

#7 lore raw

PATCH 2/2 ARM64: rockchip: Add initial support for RK3368 based GeekBox

Hi,

Quoted 103 lines · Heiko St?bner

Hi Andreas,

Am Montag, 18. Juli 2016, 03:06:07 schrieb Andreas F?rber:

Quoted 66 lines

The RK3368 is an octa-core Cortex-A53 SoC from Rockchip.

The GeekBox is a TV box from GeekBuying, based on an MXM3 module. The module can be used with base boards such as the GeekBox Landingship.

This adds basic support to chain-load U-Boot from Rockchip's miniloader.

  $ ./lollipop_u-boot/tools/loaderimage --pack u-boot.bin u-boot.img
  # ./utils/upgrade_tool di uboot u-boot.img

Implemented is the serial console, but no boot media drivers yet.

Note that flashing the resulting U-Boot will not allow you to enter the rockusb mode any more via "Update" button. Instead, you will need to short two pins on the bottom of the module to enter MaskRom mode and re-flash the loader:

  # ./utils/upgrade_tool ul ./lollipop_u-boot/RK3368MiniLoaderAll_V2.40.bin
  # ./utils/upgrade_tool di uboot u-boot.img
---
 arch/arm/Kconfig                       |  4 ---
 arch/arm/dts/rk3368.dtsi               |  1 +
 arch/arm/mach-rockchip/Kconfig         | 14 ++++++++++
 arch/arm/mach-rockchip/Makefile        |  1 +
 arch/arm/mach-rockchip/rk3368/Kconfig  | 14 ++++++++++
 arch/arm/mach-rockchip/rk3368/Makefile |  7 +++++
 arch/arm/mach-rockchip/rk3368/rk3368.c | 28 ++++++++++++++++++++
 board/geekbuying/geekbox/Kconfig       | 15 +++++++++++
 board/geekbuying/geekbox/Makefile      |  7 +++++
 board/geekbuying/geekbox/geekbox.c     | 26 +++++++++++++++++++
 configs/geekbox_defconfig              | 20 +++++++++++++++
 include/configs/geekbox.h              | 19 ++++++++++++++
 include/configs/rk3368_common.h        | 47
++++++++++++++++++++++++++++++++++ 13 files changed, 199 insertions(+), 4
deletions(-)
 create mode 100644 arch/arm/mach-rockchip/rk3368/Kconfig
 create mode 100644 arch/arm/mach-rockchip/rk3368/Makefile
 create mode 100644 arch/arm/mach-rockchip/rk3368/rk3368.c
 create mode 100644 board/geekbuying/geekbox/Kconfig
 create mode 100644 board/geekbuying/geekbox/Makefile
 create mode 100644 board/geekbuying/geekbox/geekbox.c
 create mode 100644 configs/geekbox_defconfig
 create mode 100644 include/configs/geekbox.h
 create mode 100644 include/configs/rk3368_common.h
arch/arm/Kconfig +0 -4
index f9fddad..4ff1a26 100644
@@ -838,14 +838,10 @@ config STM32
 
 config ARCH_ROCKCHIP
      bool "Support Rockchip SoCs"
-     select SUPPORT_SPL
-     select SPL
      select OF_CONTROL
      select BLK
      select DM
-     select SPL_DM
      select SYS_MALLOC_F
-     select SPL_SYS_MALLOC_SIMPLE
      select DM_GPIO
      select DM_I2C
      select DM_MMC

[...]

Quoted 18 lines
arch/arm/mach-rockchip/Kconfig +4 -0
index 86b77f8..597f043 100644
@@ -3,6 +3,10 @@ if ARCH_ROCKCHIP
 config ROCKCHIP_RK3288
      bool "Support Rockchip RK3288"
      select CPU_V7
+     select SUPPORT_SPL
+     select SPL
+     select SPL_DM
+     select SPL_SYS_MALLOC_SIMPLE
      help
        The Rockchip RK3288 is a ARM-based SoC with a quad-core Cortex-A17
        including NEON and GPU, 1MB L2 cache, Mali-T7 graphics, two
@@ -13,12 +17,21 @@ config ROCKCHIP_RK3288
 config ROCKCHIP_RK3036
      bool "Support Rockchip RK3036"

arch/arm/mach-rockchip/Kconfig config ROCKCHIP_RK3288 · line 28

Quoted 10 lines
arch/arm/mach-rockchip/Kconfig +4 -0
      select CPU_V7
+     select SUPPORT_SPL
+     select SPL
+     select SPL_DM
+     select SPL_SYS_MALLOC_SIMPLE
      help
        The Rockchip RK3036 is a ARM-based SoC with a dual-core Cortex-A7
        including NEON and GPU, Mali-400 graphics, several DDR3 options
        and video codec support. Peripherals include Gigabit Ethernet,
        USB2 host and OTG, SDIO, I2S, UART, SPI, I2C and PWMs.

looks like both you and Kever need that separation of the SPL symbols (me as well for the rk3188 for the time being), so it might make sense to split that out into a separate patch, all could use.

Quoted 2 lines

I guess it might also make it easier for Simon to find an order to apply the patches?

Yes. Andreas, can you please resent your patches against u-boot-rockchip/master?

Also it needs a MAINTAINERS file I think.

Regards,
Simon

#8 lore raw

PATCH 2/2 ARM64: rockchip: Add initial support for RK3368 based GeekBox

Hi Simon,

Am 23.07.2016 um 04:31 schrieb Simon Glass:

Quoted 35 lines · Heiko St?bner
Quoted 34 lines

Am Montag, 18. Juli 2016, 03:06:07 schrieb Andreas F?rber:

Quoted 18 lines
arch/arm/mach-rockchip/Kconfig +4 -0
index 86b77f8..597f043 100644
@@ -3,6 +3,10 @@ if ARCH_ROCKCHIP
 config ROCKCHIP_RK3288
      bool "Support Rockchip RK3288"
      select CPU_V7
+     select SUPPORT_SPL
+     select SPL
+     select SPL_DM
+     select SPL_SYS_MALLOC_SIMPLE
      help
        The Rockchip RK3288 is a ARM-based SoC with a quad-core Cortex-A17
        including NEON and GPU, 1MB L2 cache, Mali-T7 graphics, two
@@ -13,12 +17,21 @@ config ROCKCHIP_RK3288
 config ROCKCHIP_RK3036
      bool "Support Rockchip RK3036"

arch/arm/mach-rockchip/Kconfig config ROCKCHIP_RK3288 · line 28

Quoted 10 lines
arch/arm/mach-rockchip/Kconfig +4 -0
      select CPU_V7
+     select SUPPORT_SPL
+     select SPL
+     select SPL_DM
+     select SPL_SYS_MALLOC_SIMPLE
      help
        The Rockchip RK3036 is a ARM-based SoC with a dual-core Cortex-A7
        including NEON and GPU, Mali-400 graphics, several DDR3 options
        and video codec support. Peripherals include Gigabit Ethernet,
        USB2 host and OTG, SDIO, I2S, UART, SPI, I2C and PWMs.

looks like both you and Kever need that separation of the SPL symbols (me as well for the rk3188 for the time being), so it might make sense to split that out into a separate patch, all could use.

Quoted 4 lines
Quoted 2 lines

I guess it might also make it easier for Simon to find an order to apply the patches?

Yes. Andreas, can you please resent your patches against u-boot-rockchip/master?

I had done that and thereby ran into the mismerges I pointed out. ;) Didn't send that blown-up version out since you suggested an rk3399 resend, which came once I was unavailable over the extended weekend...

Quoted 1 line

Also it needs a MAINTAINERS file I think.

True.

Regards,
Andreas

Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany
GF: Felix Imend?rffer, Jane Smithard, Graham Norton
HRB 21284 (AG N?rnberg)
#9 lore raw

cover rockchip: Initial RK3368 and GeekBox support

In reply to Andreas Färber

Hi Andreas,

Quoted 10 lines · Andreas F?rber

Hi,

This series adds initial support for RK3368 SoC and GeekBox. For more details see the commit message.

Will need to be rebased onto Heiko's cleanups and Kever's RK3399 series.

Regards,
Andreas

Quoted 8 lines
Cc Simon Glass <[email protected]>
Cc Kever Yang <[email protected]>
Cc Heiko St?bner <[email protected]>

Andreas F?rber (2):
dts: Import rk3368-geekbox.dts
ARM64: rockchip: Add initial support for RK3368 based GeekBox

Are you planning to respin these patches? I'd like to get them applied soon.

Thanks,
Simon

Quoted 33 lines
 arch/arm/Kconfig                       |    4 -
 arch/arm/dts/Makefile                  |    3 +-
 arch/arm/dts/rk3368-geekbox.dts        |  319 ++++++++++
 arch/arm/dts/rk3368.dtsi               | 1082 ++++++++++++++++++++++++++++++++
 arch/arm/mach-rockchip/Kconfig         |   14 +
 arch/arm/mach-rockchip/Makefile        |    1 +
 arch/arm/mach-rockchip/rk3368/Kconfig  |   14 +
 arch/arm/mach-rockchip/rk3368/Makefile |    7 +
 arch/arm/mach-rockchip/rk3368/rk3368.c |   28 +
 board/geekbuying/geekbox/Kconfig       |   15 +
 board/geekbuying/geekbox/Makefile      |    7 +
 board/geekbuying/geekbox/geekbox.c     |   26 +
 configs/geekbox_defconfig              |   20 +
 include/configs/geekbox.h              |   19 +
 include/configs/rk3368_common.h        |   47 ++
 include/dt-bindings/clock/rk3368-cru.h |  384 ++++++++++++
 16 files changed, 1985 insertions(+), 5 deletions(-)
 create mode 100644 arch/arm/dts/rk3368-geekbox.dts
 create mode 100644 arch/arm/dts/rk3368.dtsi
 create mode 100644 arch/arm/mach-rockchip/rk3368/Kconfig
 create mode 100644 arch/arm/mach-rockchip/rk3368/Makefile
 create mode 100644 arch/arm/mach-rockchip/rk3368/rk3368.c
 create mode 100644 board/geekbuying/geekbox/Kconfig
 create mode 100644 board/geekbuying/geekbox/Makefile
 create mode 100644 board/geekbuying/geekbox/geekbox.c
 create mode 100644 configs/geekbox_defconfig
 create mode 100644 include/configs/geekbox.h
 create mode 100644 include/configs/rk3368_common.h
 create mode 100644 include/dt-bindings/clock/rk3368-cru.h

--
2.6.6

#10 lore raw

cover rockchip: Initial RK3368 and GeekBox support

Hi Simon,

Am 06.08.2016 um 06:30 schrieb Simon Glass:

Quoted 17 lines

Hi Andreas,

Quoted 14 lines · Andreas F?rber

Hi,

This series adds initial support for RK3368 SoC and GeekBox. For more details see the commit message.

Will need to be rebased onto Heiko's cleanups and Kever's RK3399 series.

Regards,
Andreas

Cc Simon Glass <[email protected]>
Cc Kever Yang <[email protected]>
Cc Heiko St?bner <[email protected]>
Quoted 6 lines
Quoted 4 lines

Andreas F?rber (2):
dts: Import rk3368-geekbox.dts
ARM64: rockchip: Add initial support for RK3368 based GeekBox

Are you planning to respin these patches?

Eventually...?

Quoted 1 line

I'd like to get them applied soon.

And I'd like to get my work recognized! However, despite our previous IRC chat, I had to find out _while_ replying to the rk3399 mails that you had once again not just applied all patches (twenty minutes after ack'ing them on a Saturday) but already sent a pull on Tuesday my nighttime that I was not CC'ed on and that Tom has merged the night after. So it feels like I'm wasting my time here and consequently I stopped my review and rebase.

Not only that it's too late for the patches themselves, but Wolfgang also publishes statistics of Reviewed-bys, which we can't add to commits after merging. If you as maintainer don't give people who spent time providing serious review comments sufficient chance to add their Reviewed-by - and a weekend of absence is certainly something to cope with since you said you were away end of that week as well - it becomes a distorted, non-telling statistic. So I am kindly suggesting that Wolfgang drops the Reviewed-by statistics if maintainers don't care for them and instead we just all do ugly fix-ups so that we can at least get recognition in the Signed-off-by statistics.

While we're only talking about 4 tags here, it's a matter of principle and respect.

Thanks,
Andreas

Quoted 3 lines

Thanks,
Simon

[snip]

Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany
GF: Felix Imend?rffer, Jane Smithard, Graham Norton
HRB 21284 (AG N?rnberg)
#11 lore raw

cover rockchip: Initial RK3368 and GeekBox support

+Tom for comment

Hi Andreas,

Quoted 20 lines · Andreas F?rber

Hi Simon,

Am 06.08.2016 um 06:30 schrieb Simon Glass:

Quoted 17 lines

Hi Andreas,

Quoted 14 lines · Andreas F?rber

Hi,

This series adds initial support for RK3368 SoC and GeekBox. For more details see the commit message.

Will need to be rebased onto Heiko's cleanups and Kever's RK3399 series.

Regards,
Andreas

Cc Simon Glass <[email protected]>
Cc Kever Yang <[email protected]>
Cc Heiko St?bner <[email protected]>
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

Andreas F?rber (2):
dts: Import rk3368-geekbox.dts
ARM64: rockchip: Add initial support for RK3368 based GeekBox

Are you planning to respin these patches?

Eventually...?

If it is soon then I can get this in for the upcoming release. Otherwise I'll need to wait. Also can you please add a README with a bit more detail on how to test it? Your cover letter suggests that it requires shorting two pins (which pins?) after flashing U-Boot. Is there another way for me to try it?

Quoted 22 lines
Quoted 2 lines

I'd like to get them applied soon.

And I'd like to get my work recognized! However, despite our previous IRC chat, I had to find out _while_ replying to the rk3399 mails that you had once again not just applied all patches (twenty minutes after ack'ing them on a Saturday) but already sent a pull on Tuesday my nighttime that I was not CC'ed on and that Tom has merged the night after. So it feels like I'm wasting my time here and consequently I stopped my review and rebase.

Not only that it's too late for the patches themselves, but Wolfgang also publishes statistics of Reviewed-bys, which we can't add to commits after merging. If you as maintainer don't give people who spent time providing serious review comments sufficient chance to add their Reviewed-by - and a weekend of absence is certainly something to cope with since you said you were away end of that week as well - it becomes a distorted, non-telling statistic. So I am kindly suggesting that Wolfgang drops the Reviewed-by statistics if maintainers don't care for them and instead we just all do ugly fix-ups so that we can at least get recognition in the Signed-off-by statistics.

Quoted 2 lines

While we're only talking about 4 tags here, it's a matter of principle and respect.

What do you mean by respect?

I normally expect a follow-up review to come through fairly quickly. The last review I saw from you was 10 days ago. I tend to want to move things forward fairly quickly in general for Rockchip, but particularly at this point where the merge window is closed and pending patches really need to get in for testing.

So a few questions:
- How long do you expect a patch to sit on the list before I pick it up?
- Similarly for a follow-up v2, etc. patch?
- How long between my Ack and applying?
- Anything else you are looking for?

I seldom copy people on the pull requests - is that something we should be doing?

I'm happy to adjust the rules for Rockchip if it will encourage more participation. This is very new in mainline so there is a lot to do.

Quoted 3 lines

Thanks,
Andreas

Regards,
Simon

#12 lore raw

cover rockchip: Initial RK3368 and GeekBox support

In reply to Andreas Färber
Quoted 31 lines · Andreas F?rber

Hi Simon,

Am 06.08.2016 um 06:30 schrieb Simon Glass:

Quoted 17 lines

Hi Andreas,

Quoted 14 lines · Andreas F?rber

Hi,

This series adds initial support for RK3368 SoC and GeekBox. For more details see the commit message.

Will need to be rebased onto Heiko's cleanups and Kever's RK3399 series.

Regards,
Andreas

Cc Simon Glass <[email protected]>
Cc Kever Yang <[email protected]>
Cc Heiko St?bner <[email protected]>
Quoted 6 lines
Quoted 4 lines

Andreas F?rber (2):
dts: Import rk3368-geekbox.dts
ARM64: rockchip: Add initial support for RK3368 based GeekBox

Are you planning to respin these patches?

Eventually...?

Quoted 1 line

I'd like to get them applied soon.

Quoted 7 lines

And I'd like to get my work recognized! However, despite our previous IRC chat, I had to find out _while_ replying to the rk3399 mails that you had once again not just applied all patches (twenty minutes after ack'ing them on a Saturday) but already sent a pull on Tuesday my nighttime that I was not CC'ed on and that Tom has merged the night after. So it feels like I'm wasting my time here and consequently I stopped my review and rebase.

In the U-Boot community, we are not in the habit of cc'ing everyone with a change in a given pull request. Is there a tool the kernel folks use here that makes this easy?

And the rule of thumb that I use, and I try and get everyone else to use as well is that a patch should be out for a week before it gets picked up and merged as that should give everyone time to review, comment and test. Did that not happen with the patches Simon picked up?

Thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160807/667e159b/attachment.sig>
#13 lore raw

cover rockchip: Initial RK3368 and GeekBox support

Am 07.08.2016 um 15:31 schrieb Tom Rini:

Quoted 40 lines · Andreas F?rber
Quoted 31 lines

Hi Simon,

Am 06.08.2016 um 06:30 schrieb Simon Glass:

Quoted 17 lines

Hi Andreas,

Quoted 14 lines · Andreas F?rber

Hi,

This series adds initial support for RK3368 SoC and GeekBox. For more details see the commit message.

Will need to be rebased onto Heiko's cleanups and Kever's RK3399 series.

Regards,
Andreas

Cc Simon Glass <[email protected]>
Cc Kever Yang <[email protected]>
Cc Heiko St?bner <[email protected]>
Quoted 6 lines
Quoted 4 lines

Andreas F?rber (2):
dts: Import rk3368-geekbox.dts
ARM64: rockchip: Add initial support for RK3368 based GeekBox

Are you planning to respin these patches?

Eventually...?

Quoted 1 line

I'd like to get them applied soon.

Quoted 7 lines

And I'd like to get my work recognized! However, despite our previous IRC chat, I had to find out _while_ replying to the rk3399 mails that you had once again not just applied all patches (twenty minutes after ack'ing them on a Saturday) but already sent a pull on Tuesday my nighttime that I was not CC'ed on and that Tom has merged the night after. So it feels like I'm wasting my time here and consequently I stopped my review and rebase.

Quoted 3 lines

In the U-Boot community, we are not in the habit of cc'ing everyone with a change in a given pull request. Is there a tool the kernel folks use here that makes this easy?

Not that I'm aware of.

But that is besides the point, as my very complaint is that I'm not credited in the patches that got merged, so no tool could've extracted my name for CC'ing.

It's about Simon having mismerged those patches and having overlooked unresolved review comments of mine for those patches before and me specifically having complained to him about not waiting for my Reviewed-by before applying them. So him seeing that I did not reply to his Saturday mails, I feel it would've been fair in this particular case
a) to ping me again after the weekend and b) to let me know that he is no longer waiting for my review comments or that I really need to hurry up with an objection until X. He did not say so in a reply that reached my inbox, and I was not CC'ed on the pull request itself, thus a pull request behind my back.

I'm not too deep into U-Boot, so maybe there was a reason for this hush-hush workflow, but then at least the communication was fairly bad.

Had I known that the pull is already on the list, I wouldn't have replied with a Reviewed-by for 1/4 that same day (which surely Simon was CC'ed on) or I could've asked Tom to hold off merging it until I'm done reviewing the next day.

Quoted 4 lines

And the rule of thumb that I use, and I try and get everyone else to use as well is that a patch should be out for a week before it gets picked up and merged as that should give everyone time to review, comment and test. Did that not happen with the patches Simon picked up?

Slightly less than a week. For some other projects it's ~two weeks. Also again note that this is not about some random patch but one where Simon specifically said he would be away, that he would exchange the patches on his branch where necessary and where he asked me to "sing". It leaves a bad taste that Simon was absent himself the week the patches were posted but apparently expects me to be available whenever he is. I don't work on U-Boot as a job, and for rebasing rk3368 patches - which many of my review comments resulted from - I need access to the hardware for testing.

Note that I was similarly surprised how quickly two patches of mine went into his tree, with just one day in between and despite conflicts between my rk3368 and Kever's rk3399 preparations. I can see that having patches in a tree facilitates testing, but it also prevents serious peer review when not just staging but also merging them.

Regards,
Andreas

Signature · 11 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany
GF: Felix Imend?rffer, Jane Smithard, Graham Norton
HRB 21284 (AG N?rnberg)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160807/a5e61f3d/attachment.sig>
#14 lore raw

cover rockchip: Initial RK3368 and GeekBox support

Quoted 45 lines · Andreas F?rber

Am 07.08.2016 um 15:31 schrieb Tom Rini:

Quoted 40 lines · Andreas F?rber
Quoted 31 lines

Hi Simon,

Am 06.08.2016 um 06:30 schrieb Simon Glass:

Quoted 17 lines

Hi Andreas,

Quoted 14 lines · Andreas F?rber

Hi,

This series adds initial support for RK3368 SoC and GeekBox. For more details see the commit message.

Will need to be rebased onto Heiko's cleanups and Kever's RK3399 series.

Regards,
Andreas

Cc Simon Glass <[email protected]>
Cc Kever Yang <[email protected]>
Cc Heiko St?bner <[email protected]>
Quoted 6 lines
Quoted 4 lines

Andreas F?rber (2):
dts: Import rk3368-geekbox.dts
ARM64: rockchip: Add initial support for RK3368 based GeekBox

Are you planning to respin these patches?

Eventually...?

Quoted 1 line

I'd like to get them applied soon.

Quoted 7 lines

And I'd like to get my work recognized! However, despite our previous IRC chat, I had to find out _while_ replying to the rk3399 mails that you had once again not just applied all patches (twenty minutes after ack'ing them on a Saturday) but already sent a pull on Tuesday my nighttime that I was not CC'ed on and that Tom has merged the night after. So it feels like I'm wasting my time here and consequently I stopped my review and rebase.

Quoted 3 lines

In the U-Boot community, we are not in the habit of cc'ing everyone with a change in a given pull request. Is there a tool the kernel folks use here that makes this easy?

Quoted 5 lines

Not that I'm aware of.

But that is besides the point, as my very complaint is that I'm not credited in the patches that got merged, so no tool could've extracted my name for CC'ing.

Alright.

Quoted 34 lines

It's about Simon having mismerged those patches and having overlooked unresolved review comments of mine for those patches before and me specifically having complained to him about not waiting for my Reviewed-by before applying them. So him seeing that I did not reply to his Saturday mails, I feel it would've been fair in this particular case
a) to ping me again after the weekend and b) to let me know that he is no longer waiting for my review comments or that I really need to hurry up with an objection until X. He did not say so in a reply that reached my inbox, and I was not CC'ed on the pull request itself, thus a pull request behind my back.

I'm not too deep into U-Boot, so maybe there was a reason for this hush-hush workflow, but then at least the communication was fairly bad.

Had I known that the pull is already on the list, I wouldn't have replied with a Reviewed-by for 1/4 that same day (which surely Simon was CC'ed on) or I could've asked Tom to hold off merging it until I'm done reviewing the next day.

Quoted 4 lines

And the rule of thumb that I use, and I try and get everyone else to use as well is that a patch should be out for a week before it gets picked up and merged as that should give everyone time to review, comment and test. Did that not happen with the patches Simon picked up?

Slightly less than a week. For some other projects it's ~two weeks. Also again note that this is not about some random patch but one where Simon specifically said he would be away, that he would exchange the patches on his branch where necessary and where he asked me to "sing". It leaves a bad taste that Simon was absent himself the week the patches were posted but apparently expects me to be available whenever he is. I don't work on U-Boot as a job, and for rebasing rk3368 patches - which many of my review comments resulted from - I need access to the hardware for testing.

Quoted 5 lines

Note that I was similarly surprised how quickly two patches of mine went into his tree, with just one day in between and despite conflicts between my rk3368 and Kever's rk3399 preparations. I can see that having patches in a tree facilitates testing, but it also prevents serious peer review when not just staging but also merging them.

I want to treat all of the above at once. First, sorry. We don't have an intentionally "hush-hush" workflow, but every custodian does decide how many emails to send when moving a patch forward. And unless I'm testing multiple PRs (or they come in while I'm already testing one) the time between getting a PR and applying it is usually the same (US, east coast) day if it passes my testing. But we are trying to include more crediting, not less, so it is not intentional to have left things out[1]. So this was a mistake in our part, sorry. Sometimes review comments are missed. But this too is not usually intentional unless it's small things that can be addressed in a follow-up in order to get things otherwise in and unblocking other work. In the end however, Simon, please slow down a bit. It's OK if stuff misses a release, there's always the next one. And it may make sense to follow what Hans has been doing with the sunxi tree and having a next branch (which can always be rebased and stuff replaced in!) so it's both clear that patches are being picked up, but not rushing to get things in before a window closes. Thanks!

Signature · 12 lines
Tom

[1]: Patchwork had an outage recently and some stuff didn't make it in
there and thus was missed unless picked up manually.  Most tags come in
via patchwork not manually adding to the commit message.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160807/454357e9/attachment.sig>
#15 lore raw

cover rockchip: Initial RK3368 and GeekBox support

Hi Tom, Andreas,

Quoted 103 lines · Tom Rini
Quoted 45 lines · Andreas F?rber

Am 07.08.2016 um 15:31 schrieb Tom Rini:

Quoted 40 lines · Andreas F?rber
Quoted 31 lines

Hi Simon,

Am 06.08.2016 um 06:30 schrieb Simon Glass:

Quoted 17 lines

Hi Andreas,

Quoted 14 lines · Andreas F?rber

Hi,

This series adds initial support for RK3368 SoC and GeekBox. For more details see the commit message.

Will need to be rebased onto Heiko's cleanups and Kever's RK3399 series.

Regards,
Andreas

Cc Simon Glass <[email protected]>
Cc Kever Yang <[email protected]>
Cc Heiko St?bner <[email protected]>
Quoted 6 lines
Quoted 4 lines

Andreas F?rber (2):
dts: Import rk3368-geekbox.dts
ARM64: rockchip: Add initial support for RK3368 based GeekBox

Are you planning to respin these patches?

Eventually...?

Quoted 1 line

I'd like to get them applied soon.

Quoted 7 lines

And I'd like to get my work recognized! However, despite our previous IRC chat, I had to find out _while_ replying to the rk3399 mails that you had once again not just applied all patches (twenty minutes after ack'ing them on a Saturday) but already sent a pull on Tuesday my nighttime that I was not CC'ed on and that Tom has merged the night after. So it feels like I'm wasting my time here and consequently I stopped my review and rebase.

Quoted 3 lines

In the U-Boot community, we are not in the habit of cc'ing everyone with a change in a given pull request. Is there a tool the kernel folks use here that makes this easy?

Quoted 5 lines

Not that I'm aware of.

But that is besides the point, as my very complaint is that I'm not credited in the patches that got merged, so no tool could've extracted my name for CC'ing.

Alright.

Quoted 34 lines

It's about Simon having mismerged those patches and having overlooked unresolved review comments of mine for those patches before and me specifically having complained to him about not waiting for my Reviewed-by before applying them. So him seeing that I did not reply to his Saturday mails, I feel it would've been fair in this particular case
a) to ping me again after the weekend and b) to let me know that he is no longer waiting for my review comments or that I really need to hurry up with an objection until X. He did not say so in a reply that reached my inbox, and I was not CC'ed on the pull request itself, thus a pull request behind my back.

I'm not too deep into U-Boot, so maybe there was a reason for this hush-hush workflow, but then at least the communication was fairly bad.

Had I known that the pull is already on the list, I wouldn't have replied with a Reviewed-by for 1/4 that same day (which surely Simon was CC'ed on) or I could've asked Tom to hold off merging it until I'm done reviewing the next day.

Quoted 4 lines

And the rule of thumb that I use, and I try and get everyone else to use as well is that a patch should be out for a week before it gets picked up and merged as that should give everyone time to review, comment and test. Did that not happen with the patches Simon picked up?

Slightly less than a week. For some other projects it's ~two weeks. Also again note that this is not about some random patch but one where Simon specifically said he would be away, that he would exchange the patches on his branch where necessary and where he asked me to "sing". It leaves a bad taste that Simon was absent himself the week the patches were posted but apparently expects me to be available whenever he is. I don't work on U-Boot as a job, and for rebasing rk3368 patches - which many of my review comments resulted from - I need access to the hardware for testing.

Quoted 5 lines

Note that I was similarly surprised how quickly two patches of mine went into his tree, with just one day in between and despite conflicts between my rk3368 and Kever's rk3399 preparations. I can see that having patches in a tree facilitates testing, but it also prevents serious peer review when not just staging but also merging them.

I want to treat all of the above at once. First, sorry. We don't have an intentionally "hush-hush" workflow, but every custodian does decide how many emails to send when moving a patch forward. And unless I'm testing multiple PRs (or they come in while I'm already testing one) the time between getting a PR and applying it is usually the same (US, east coast) day if it passes my testing. But we are trying to include more crediting, not less, so it is not intentional to have left things out[1]. So this was a mistake in our part, sorry. Sometimes review comments are missed. But this too is not usually intentional unless

Quoted 8 lines

it's small things that can be addressed in a follow-up in order to get things otherwise in and unblocking other work. In the end however, Simon, please slow down a bit. It's OK if stuff misses a release, there's always the next one. And it may make sense to follow what Hans has been doing with the sunxi tree and having a next branch (which can always be rebased and stuff replaced in!) so it's both clear that patches are being picked up, but not rushing to get things in before a window closes. Thanks!

OK thanks Tom for looking at this. I'll slow down a bit on the Rockchip stuff. I'll look at using a -next branch for that also.

Andreas let me know how things go. I'd really like to see a review for new patches within a week if possible (absent holidays, etc.).

Quoted 7 lines

--
Tom

[1]: Patchwork had an outage recently and some stuff didn't make it in there and thus was missed unless picked up manually. Most tags come in via patchwork not manually adding to the commit message.

Yes that was a pain!

Regards,
SImon

#16 lore raw

cover rockchip: Initial RK3368 and GeekBox support

In reply to Andreas Färber

Hi,

Quoted 4 lines

This series adds initial support for RK3368 SoC and GeekBox. For more details see the commit message.

Will need to be rebased onto Heiko's cleanups and Kever's RK3399 series.

Did you ever get a chance to rebase these? Wouldn't mind playing with my geekbox with an upstream u-boot.

Regards,
Peter