public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Dragan Simic <dsimic@manjaro.org>
To: Jonas Karlman <jonas@kwiboo.se>
Cc: Kever Yang <kever.yang@rock-chips.com>,
	Simon Glass <sjg@chromium.org>,
	Philipp Tomsich <philipp.tomsich@vrull.eu>,
	Tom Rini <trini@konsulko.com>,
	Jagan Teki <jagan@amarulasolutions.com>,
	u-boot@lists.denx.de
Subject: Re: [PATCH 29/31] rockchip: rk3399-rockpro64: Sync device tree from linux v6.8
Date: Sun, 31 Mar 2024 23:24:57 +0200	[thread overview]
Message-ID: <d348b22bae52f6ae4b7e82bbf44b1bae@manjaro.org> (raw)
In-Reply-To: <20240331202921.262323-30-jonas@kwiboo.se>

On 2024-03-31 22:28, Jonas Karlman wrote:
> Sync rk3399-rockpro64 device tree from linux v6.8.
> 
> Add SF_DEFAULT_SPEED=10000000 and SPI_FLASH_SFDP_SUPPORT=y to improve
> support for booting from SPI flash.
> 
> Remove USE_PREBOOT=y to speed up booting, standard boot will init USB
> after faster boot media has been evaluated.
> 
> Add CMD_POWEROFF=y to support poweroff using cmdline and power on using
> the pwr button on the board.
> 
> Add PHY_REALTEK=y and DM_ETH_PHY=y to support ethernet PHY.
> 
> Remove SPL_TINY_MEMSET=y to use full memset in SPL.
> 
> Signed-off-by: Jonas Karlman <jonas@kwiboo.se>

Looking good to me.  Thank you for all these nice cleanups!

Reviewed-by: Dragan Simic <dsimic@manjaro.org>

> ---
>  arch/arm/dts/rk3399-rockpro64.dtsi | 98 ++++++++++++++++++++++++++++--
>  configs/rockpro64-rk3399_defconfig |  7 ++-
>  2 files changed, 97 insertions(+), 8 deletions(-)
> 
> diff --git a/arch/arm/dts/rk3399-rockpro64.dtsi
> b/arch/arm/dts/rk3399-rockpro64.dtsi
> index 6bff8db7d33e..f30b82a10ca3 100644
> --- a/arch/arm/dts/rk3399-rockpro64.dtsi
> +++ b/arch/arm/dts/rk3399-rockpro64.dtsi
> @@ -11,6 +11,7 @@
> 
>  / {
>  	aliases {
> +		ethernet0 = &gmac;
>  		mmc0 = &sdio0;
>  		mmc1 = &sdmmc;
>  		mmc2 = &sdhci;
> @@ -20,6 +21,15 @@
>  		stdout-path = "serial2:1500000n8";
>  	};
> 
> +	/* enable for panel backlight support */
> +	backlight: backlight {
> +		compatible = "pwm-backlight";
> +		brightness-levels = <0 4 8 16 32 64 128 255>;
> +		default-brightness-level = <5>;
> +		pwms = <&pwm0 0 1000000 0>;
> +		status = "disabled";
> +	};
> +
>  	clkin_gmac: external-gmac-clock {
>  		compatible = "fixed-clock";
>  		clock-frequency = <125000000>;
> @@ -33,7 +43,7 @@
>  		pinctrl-names = "default";
>  		pinctrl-0 = <&pwrbtn>;
> 
> -		power {
> +		key-power {
>  			debounce-interval = <100>;
>  			gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
>  			label = "GPIO Key Power";
> @@ -69,6 +79,7 @@
> 
>  	fan: pwm-fan {
>  		compatible = "pwm-fan";
> +		cooling-levels = <0 100 150 200 255>;
>  		#cooling-cells = <2>;
>  		fan-supply = <&vcc12v_dcin>;
>  		pwms = <&pwm1 0 50000 0>;
> @@ -106,6 +117,14 @@
>  		};
>  	};
> 
> +	avdd: avdd-regulator {
> +		compatible = "regulator-fixed";
> +		regulator-name = "avdd";
> +		regulator-min-microvolt = <11000000>;
> +		regulator-max-microvolt = <11000000>;
> +		vin-supply = <&vcc3v3_s0>;
> +	};
> +
>  	vcc12v_dcin: vcc12v-dcin {
>  		compatible = "regulator-fixed";
>  		regulator-name = "vcc12v_dcin";
> @@ -212,12 +231,12 @@
>  	vdd_log: vdd-log {
>  		compatible = "pwm-regulator";
>  		pwms = <&pwm2 0 25000 1>;
> +		pwm-supply = <&vcc5v0_sys>;
>  		regulator-name = "vdd_log";
>  		regulator-always-on;
>  		regulator-boot-on;
>  		regulator-min-microvolt = <800000>;
>  		regulator-max-microvolt = <1700000>;
> -		vin-supply = <&vcc5v0_sys>;
>  	};
>  };
> 
> @@ -245,6 +264,34 @@
>  	cpu-supply = <&vdd_cpu_b>;
>  };
> 
> +&cpu_thermal {
> +	trips {
> +		cpu_warm: cpu_warm {
> +			temperature = <55000>;
> +			hysteresis = <2000>;
> +			type = "active";
> +		};
> +
> +		cpu_hot: cpu_hot {
> +			temperature = <65000>;
> +			hysteresis = <2000>;
> +			type = "active";
> +		};
> +	};
> +
> +	cooling-maps {
> +		map2 {
> +			trip = <&cpu_warm>;
> +			cooling-device = <&fan THERMAL_NO_LIMIT 1>;
> +		};
> +
> +		map3 {
> +			trip = <&cpu_hot>;
> +			cooling-device = <&fan 2 THERMAL_NO_LIMIT>;
> +		};
> +	};
> +};
> +
>  &emmc_phy {
>  	status = "okay";
>  };
> @@ -371,8 +418,6 @@
> 
>  			vcc3v0_touch: LDO_REG2 {
>  				regulator-name = "vcc3v0_touch";
> -				regulator-always-on;
> -				regulator-boot-on;
>  				regulator-min-microvolt = <3000000>;
>  				regulator-max-microvolt = <3000000>;
>  				regulator-state-mem {
> @@ -461,8 +506,6 @@
> 
>  			vcc3v3_s0: SWITCH_REG2 {
>  				regulator-name = "vcc3v3_s0";
> -				regulator-always-on;
> -				regulator-boot-on;
>  				regulator-state-mem {
>  					regulator-off-in-suspend;
>  				};
> @@ -536,6 +579,19 @@
>  		vbus-supply = <&vcc5v0_typec>;
>  		status = "okay";
>  	};
> +
> +	/* enable for pine64 touch screen support */
> +	touch: touchscreen@5d {
> +		compatible = "goodix,gt911";
> +		reg = <0x5d>;
> +		interrupt-parent = <&gpio4>;
> +		interrupts = <RK_PD5 IRQ_TYPE_EDGE_FALLING>;
> +		AVDD28-supply = <&vcc3v0_touch>;
> +		VDDIO-supply = <&vcc3v0_touch>;
> +		irq-gpios = <&gpio4 RK_PD5 GPIO_ACTIVE_HIGH>;
> +		reset-gpios = <&gpio4 RK_PD6 GPIO_ACTIVE_HIGH>;
> +		status = "disabled";
> +	};
>  };
> 
>  &i2s0 {
> @@ -571,6 +627,36 @@
>  	gpio1830-supply = <&vcc_3v0>;
>  };
> 
> +/* enable for pine64 panel display support */
> +&mipi_dsi {
> +	clock-master;
> +	status = "disabled";
> +
> +	ports {
> +		mipi_out: port@1 {
> +			reg = <1>;
> +
> +			mipi_out_panel: endpoint {
> +				remote-endpoint = <&mipi_in_panel>;
> +			};
> +		};
> +	};
> +
> +	mipi_panel: panel@0 {
> +		compatible = "feiyang,fy07024di26a30d";
> +		reg = <0>;
> +		avdd-supply = <&avdd>;
> +		backlight = <&backlight>;
> +		dvdd-supply = <&vcc3v3_s0>;
> +
> +		port {
> +			mipi_in_panel: endpoint {
> +				remote-endpoint = <&mipi_out_panel>;
> +			};
> +		};
> +	};
> +};
> +
>  &pcie0 {
>  	ep-gpios = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>;
>  	num-lanes = <4>;
> diff --git a/configs/rockpro64-rk3399_defconfig
> b/configs/rockpro64-rk3399_defconfig
> index 173f8f75020d..4e1af37a1559 100644
> --- a/configs/rockpro64-rk3399_defconfig
> +++ b/configs/rockpro64-rk3399_defconfig
> @@ -4,6 +4,7 @@ CONFIG_COUNTER_FREQUENCY=24000000
>  CONFIG_ARCH_ROCKCHIP=y
>  CONFIG_SPL_GPIO=y
>  CONFIG_NR_DRAM_BANKS=1
> +CONFIG_SF_DEFAULT_SPEED=10000000
>  CONFIG_ENV_SIZE=0x8000
>  CONFIG_ENV_OFFSET=0x3F8000
>  CONFIG_DEFAULT_DEVICE_TREE="rk3399-rockpro64"
> @@ -20,7 +21,6 @@ CONFIG_PCI=y
>  CONFIG_DEBUG_UART=y
>  CONFIG_BOOTSTAGE=y
>  CONFIG_BOOTSTAGE_REPORT=y
> -CONFIG_USE_PREBOOT=y
>  CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-rockpro64.dtb"
>  CONFIG_DISPLAY_BOARDINFO_LATE=y
>  CONFIG_SPL_MAX_SIZE=0x40000
> @@ -34,6 +34,7 @@ CONFIG_CMD_BOOTZ=y
>  CONFIG_CMD_GPT=y
>  CONFIG_CMD_MMC=y
>  CONFIG_CMD_PCI=y
> +CONFIG_CMD_POWEROFF=y
>  CONFIG_CMD_USB=y
>  # CONFIG_CMD_SETEXPR is not set
>  CONFIG_CMD_TIME=y
> @@ -57,7 +58,10 @@ CONFIG_MMC_SDHCI=y
>  CONFIG_MMC_SDHCI_SDMA=y
>  CONFIG_MMC_SDHCI_ROCKCHIP=y
>  CONFIG_SF_DEFAULT_BUS=1
> +CONFIG_SPI_FLASH_SFDP_SUPPORT=y
>  CONFIG_SPI_FLASH_GIGADEVICE=y
> +CONFIG_PHY_REALTEK=y
> +CONFIG_DM_ETH_PHY=y
>  CONFIG_ETH_DESIGNWARE=y
>  CONFIG_GMAC_ROCKCHIP=y
>  CONFIG_NVME_PCI=y
> @@ -96,5 +100,4 @@ CONFIG_VIDEO=y
>  CONFIG_DISPLAY=y
>  CONFIG_VIDEO_ROCKCHIP=y
>  CONFIG_DISPLAY_ROCKCHIP_HDMI=y
> -CONFIG_SPL_TINY_MEMSET=y
>  CONFIG_ERRNO_STR=y

  reply	other threads:[~2024-03-31 21:25 UTC|newest]

Thread overview: 108+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-31 20:28 [PATCH 00/31] rockchip: rk3399: Sync DT with linux v6.8 and update defconfigs Jonas Karlman
2024-03-31 20:28 ` [PATCH 01/31] rockchip: rk3399-gru: Fix max SPL size on bob and kevin Jonas Karlman
2024-04-23 10:59   ` Kever Yang
2024-03-31 20:28 ` [PATCH 02/31] rockchip: rk3399-ficus: Enable TPL and use common bss and stack addr Jonas Karlman
2024-04-02 13:10   ` Quentin Schulz
2024-04-02 13:47     ` Jonas Karlman
2024-04-03  4:45   ` Peter Robinson
2024-04-23 11:00   ` Kever Yang
2024-03-31 20:28 ` [PATCH 03/31] rockchip: rk3399: Sort imply statements alphabetically Jonas Karlman
2024-04-23 11:01   ` Kever Yang
2024-03-31 20:28 ` [PATCH 04/31] rockchip: rk3399: Enable ARMv8 crypto and FIT checksum validation Jonas Karlman
2024-04-02 13:22   ` Quentin Schulz
2024-05-01 11:37     ` Jonas Karlman
2024-04-23 11:01   ` Kever Yang
2024-03-31 20:28 ` [PATCH 05/31] rockchip: rk3399: Enable random generator on all boards Jonas Karlman
2024-04-02 13:55   ` Quentin Schulz
2024-04-03  4:44   ` Peter Robinson
2024-04-23 11:01   ` Kever Yang
2024-03-31 20:28 ` [PATCH 06/31] rockchip: rk3399: Imply support for GbE PHY Jonas Karlman
2024-04-02 13:56   ` Quentin Schulz
2024-04-23 11:01   ` Kever Yang
2024-03-31 20:28 ` [PATCH 07/31] rockchip: rk3399: Enable DT overlay support on all boards Jonas Karlman
2024-04-02 13:56   ` Quentin Schulz
2024-04-23 11:02   ` Kever Yang
2024-03-31 20:28 ` [PATCH 08/31] rockchip: rk3399: Remove use of xPL_MISC_DRIVERS options Jonas Karlman
2024-04-02 14:23   ` Quentin Schulz
2024-04-23 11:02   ` Kever Yang
2024-03-31 20:28 ` [PATCH 09/31] rockchip: rk3399: Add a default spl-boot-order prop Jonas Karlman
2024-04-02 14:02   ` Quentin Schulz
2024-05-01 11:47     ` Jonas Karlman
2024-04-23 11:02   ` Kever Yang
2024-03-31 20:28 ` [PATCH 10/31] rockchip: rk3399: Fix loading FIT from SD-card when booting from eMMC Jonas Karlman
2024-04-02 14:31   ` Quentin Schulz
2024-04-23 11:03   ` Kever Yang
2024-03-31 20:28 ` [PATCH 11/31] clk: rockchip: rk3399: Rename SCLK_DDRCLK to SCLK_DDRC Jonas Karlman
2024-04-01  8:56   ` Sumit Garg
2024-04-01  9:49     ` Jonas Karlman
2024-04-23 11:03   ` Kever Yang
2024-03-31 20:28 ` [PATCH 12/31] clk: rockchip: rk3399: Add dummy support for ACLK_VDU clock Jonas Karlman
2024-04-23 11:03   ` Kever Yang
2024-03-31 20:28 ` [PATCH 13/31] clk: rockchip: rk3399: Add dummy support for SCLK_PCIEPHY_REF clock Jonas Karlman
2024-04-02 14:44   ` Quentin Schulz
2024-05-01 11:58     ` Jonas Karlman
2024-04-23 11:03   ` Kever Yang
2024-03-31 20:28 ` [PATCH 14/31] clk: rockchip: rk3399: Add SCLK_USB3OTGx_REF support Jonas Karlman
2024-04-02 14:46   ` Quentin Schulz
2024-04-23 11:03   ` Kever Yang
2024-03-31 20:28 ` [PATCH 15/31] rockchip: rk3399: Sync soc device tree from linux v6.8 Jonas Karlman
2024-04-02 15:02   ` Quentin Schulz
2024-05-01 12:06     ` Jonas Karlman
2024-04-23 11:03   ` Kever Yang
2024-03-31 20:28 ` [PATCH 16/31] rockchip: rk3399-gru: Sync " Jonas Karlman
2024-04-23 11:03   ` Kever Yang
2024-03-31 20:28 ` [PATCH 17/31] rockchip: rk3399-puma: Sync DT " Jonas Karlman
2024-04-02 15:13   ` Quentin Schulz
2024-04-23 11:08   ` Kever Yang
2024-03-31 20:28 ` [PATCH 18/31] rockchip: rk3399-rock-pi-n10: Sync device tree " Jonas Karlman
2024-04-23 11:09   ` Kever Yang
2024-03-31 20:28 ` [PATCH 19/31] rockchip: rk3399-eaidk-610: " Jonas Karlman
2024-04-23 11:09   ` Kever Yang
2024-03-31 20:28 ` [PATCH 20/31] rockchip: rk3399-leez: " Jonas Karlman
2024-04-23 11:09   ` Kever Yang
2024-03-31 20:28 ` [PATCH 21/31] rockchip: rk3399-evb: " Jonas Karlman
2024-04-23 11:09   ` Kever Yang
2024-03-31 20:28 ` [PATCH 22/31] rockchip: rk3399-firefly: " Jonas Karlman
2024-04-23 11:10   ` Kever Yang
2024-03-31 20:28 ` [PATCH 23/31] rockchip: rk3399-orangepi: " Jonas Karlman
2024-04-23 11:11   ` Kever Yang
2024-03-31 20:28 ` [PATCH 24/31] rockchip: rk3399-roc-pc: " Jonas Karlman
2024-04-23 11:12   ` Kever Yang
2024-03-31 20:28 ` [PATCH 25/31] rockchip: rk3399-nanopi-4: " Jonas Karlman
2024-04-23 11:12   ` Kever Yang
2024-03-31 20:28 ` [PATCH 26/31] rockchip: rk3399-rock960: " Jonas Karlman
2024-04-03  4:53   ` Peter Robinson
2024-05-01 12:28     ` Jonas Karlman
2024-04-23 11:13   ` Kever Yang
2024-03-31 20:28 ` [PATCH 27/31] rockchip: rk3399-khadas: " Jonas Karlman
2024-04-23 11:14   ` Kever Yang
2024-03-31 20:28 ` [PATCH 28/31] rockchip: rk3399-rock-pi-4: " Jonas Karlman
2024-03-31 22:53   ` Dragan Simic
2024-03-31 23:14     ` Jonas Karlman
2024-03-31 23:30       ` Dragan Simic
2024-03-31 23:41         ` Jonas Karlman
2024-03-31 23:48           ` Dragan Simic
2024-04-02 21:41   ` Christopher Obbard
2024-04-23 11:14   ` Kever Yang
2024-03-31 20:28 ` [PATCH 29/31] rockchip: rk3399-rockpro64: " Jonas Karlman
2024-03-31 21:24   ` Dragan Simic [this message]
2024-04-23 11:14   ` Kever Yang
2024-03-31 20:28 ` [PATCH 30/31] rockchip: rk3399-pinebook-pro: " Jonas Karlman
2024-03-31 21:33   ` Dragan Simic
2024-04-23 11:14   ` Kever Yang
2024-03-31 20:28 ` [PATCH 31/31] rockchip: rk3399-pinephone-pro: " Jonas Karlman
2024-03-31 21:35   ` Dragan Simic
2024-04-23 11:15   ` Kever Yang
2024-04-01  8:52 ` [PATCH 00/31] rockchip: rk3399: Sync DT with linux v6.8 and update defconfigs Sumit Garg
2024-04-01  9:45   ` Jonas Karlman
2024-04-01 10:01     ` Jonas Karlman
2024-04-01 10:53       ` Sumit Garg
2024-04-01 11:04         ` Jonas Karlman
2024-04-01 11:33           ` Sumit Garg
2024-04-01 10:08     ` Sumit Garg
2024-04-01 10:24       ` Jonas Karlman
2024-04-01 11:15         ` Sumit Garg
2024-04-02 15:16 ` Quentin Schulz
2024-04-03  4:42 ` Peter Robinson
2024-04-23 11:27 ` Kever Yang
2024-04-24  9:21   ` Jonas Karlman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d348b22bae52f6ae4b7e82bbf44b1bae@manjaro.org \
    --to=dsimic@manjaro.org \
    --cc=jagan@amarulasolutions.com \
    --cc=jonas@kwiboo.se \
    --cc=kever.yang@rock-chips.com \
    --cc=philipp.tomsich@vrull.eu \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox