Convert recently merged T30 boards to use DM PMIC
Subsystems (2)
cover Convert recently merged T30 boards to use DM PMIC
Since the proposed PMIC patches have been accepted, I see the need to convert boards which I maintain to use DM drivers instead of board hacks.
Svyatoslav Ryhel (5):
board: lg-x3: convert LG Optimus 4X and Vu to use DM PMIC
board: endeavoru: convert HTC One X to use DM PMIC
board: transformer-t30: convert ASUS Transformers to use DM PMIC
board: grouper: convert ASUS Google Nexus 7 (2012) to use DM PMIC
ARM: dts: tegra30: enable USB PHY node on some devices
arch/arm/dts/tegra30-asus-grouper-common.dtsi | 7 + .../dts/tegra30-asus-nexus7-grouper-E1565.dts | 1 + .../dts/tegra30-asus-nexus7-grouper-PM269.dts | 1 + .../dts/tegra30-asus-nexus7-tilapia-E1565.dts | 1 + arch/arm/dts/tegra30-asus-p1801-t.dts | 17 ++ arch/arm/dts/tegra30-asus-tf600t.dts | 15 ++ arch/arm/dts/tegra30-asus-transformer.dtsi | 9 + arch/arm/dts/tegra30-htc-endeavoru.dts | 8 + arch/arm/dts/tegra30-lg-x3.dtsi | 9 + board/asus/grouper/Kconfig | 8 - board/asus/grouper/Makefile | 4 +- .../asus/grouper/configs/grouper_E1565.config | 6 +- .../asus/grouper/configs/grouper_PM269.config | 6 +- board/asus/grouper/configs/tilapia.config | 6 +- board/asus/grouper/grouper-spl-max.c | 2 +- board/asus/grouper/grouper-spl-ti.c | 2 +- board/asus/grouper/grouper.c | 154 +----------------- board/asus/transformer-t30/Kconfig | 10 -- .../transformer-t30/configs/tf600t.config | 2 +- .../transformer-t30/transformer-t30-spl.c | 2 +- board/asus/transformer-t30/transformer-t30.c | 121 +------------- board/htc/endeavoru/endeavoru-spl.c | 2 +- board/htc/endeavoru/endeavoru.c | 72 +------- board/lg/x3-t30/x3-t30-spl.c | 2 +- board/lg/x3-t30/x3-t30.c | 97 +---------- configs/endeavoru_defconfig | 4 + configs/grouper_common_defconfig | 1 + configs/transformer_t30_defconfig | 5 + configs/x3_t30_defconfig | 4 + 29 files changed, 128 insertions(+), 450 deletions(-)
Signature · 1 line
2.40.1
PATCH 1/5 board: lg-x3: convert LG Optimus 4X and Vu to use DM PMIC
Since required drivers were merged, we can safely clean up the board and switch to DM based driver with device tree support.
--- arch/arm/dts/tegra30-lg-x3.dtsi | 1 + board/lg/x3-t30/x3-t30-spl.c | 2 +- board/lg/x3-t30/x3-t30.c | 97 ++------------------------------- configs/x3_t30_defconfig | 4 ++ 4 files changed, 11 insertions(+), 93 deletions(-)
arch/arm/dts/tegra30-lg-x3.dtsi +1 -0
@@ -110,6 +110,7 @@ regulator-name = "vdd_ddr_rx"; regulator-min-microvolt = <2850000>; regulator-max-microvolt = <2850000>; + regulator-boot-on; }; }; };
board/lg/x3-t30/x3-t30-spl.c +1 -1
@@ -9,7 +9,7 @@* Svyatoslav Ryhel <[email protected]> */ -#include <common.h> +#include <asm/arch/tegra.h> #include <asm/arch-tegra/tegra_i2c.h> #include <linux/delay.h>
board/lg/x3-t30/x3-t30.c +5 -92
117 lines not on this page · raw message
configs/x3_t30_defconfig +4 -0
@@ -45,6 +45,7 @@ CONFIG_CMD_USB_MASS_STORAGE=y CONFIG_CMD_UMS_ABORT_KEYED=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_PAUSE=y +CONFIG_CMD_REGULATOR=y CONFIG_CMD_EXT4_WRITE=y # CONFIG_SPL_DOS_PARTITION is not set # CONFIG_SPL_EFI_PARTITION is not set
@@ -64,11 +65,14 @@ CONFIG_FASTBOOT_CMD_OEM_FORMAT=y CONFIG_SYS_I2C_TEGRA=y CONFIG_BUTTON_KEYBOARD=y CONFIG_DM_PMIC=y +CONFIG_DM_PMIC_MAX77663=y CONFIG_DM_REGULATOR=y +CONFIG_DM_REGULATOR_MAX77663=y CONFIG_DM_REGULATOR_FIXED=y CONFIG_PWM_TEGRA=y CONFIG_SYS_NS16550=y CONFIG_TEGRA20_SLINK=y +CONFIG_SYSRESET_MAX77663=y CONFIG_USB=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_TEGRA=y
Signature · 1 line
2.40.1
PATCH 2/5 board: endeavoru: convert HTC One X to use DM PMIC
In reply to Svyatoslav RyhelSince required drivers were merged, we can safely clean up the board and switch to DM based driver with device tree support.
--- arch/arm/dts/tegra30-htc-endeavoru.dts | 1 + board/htc/endeavoru/endeavoru-spl.c | 2 +- board/htc/endeavoru/endeavoru.c | 72 +++----------------------- configs/endeavoru_defconfig | 4 ++ 4 files changed, 12 insertions(+), 67 deletions(-)
arch/arm/dts/tegra30-htc-endeavoru.dts +1 -0
@@ -81,6 +81,7 @@ regulator-name = "avdd_dsi_csi"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; + regulator-boot-on; }; }; };
board/htc/endeavoru/endeavoru-spl.c +1 -1
@@ -9,7 +9,7 @@* Svyatoslav Ryhel <[email protected]> */ -#include <common.h> +#include <asm/arch/tegra.h> #include <asm/arch-tegra/tegra_i2c.h> #include <linux/delay.h>
board/htc/endeavoru/endeavoru.c +6 -66
91 lines not on this page · raw message
configs/endeavoru_defconfig +4 -0
@@ -44,6 +44,7 @@ CONFIG_CMD_USB_MASS_STORAGE=y CONFIG_CMD_UMS_ABORT_KEYED=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_PAUSE=y +CONFIG_CMD_REGULATOR=y CONFIG_CMD_EXT4_WRITE=y # CONFIG_SPL_DOS_PARTITION is not set # CONFIG_SPL_EFI_PARTITION is not set
@@ -61,10 +62,13 @@ CONFIG_FASTBOOT_CMD_OEM_FORMAT=y CONFIG_SYS_I2C_TEGRA=y CONFIG_BUTTON_KEYBOARD=y CONFIG_DM_PMIC=y +CONFIG_DM_PMIC_TPS80031=y CONFIG_DM_REGULATOR=y CONFIG_DM_REGULATOR_FIXED=y +CONFIG_DM_REGULATOR_TPS80031=y CONFIG_PWM_TEGRA=y CONFIG_SYS_NS16550=y +CONFIG_SYSRESET_TPS80031=y CONFIG_USB=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_TEGRA=y
Signature · 1 line
2.40.1
PATCH 3/5 board: transformer-t30: convert ASUS Transformers to use DM PMIC
In reply to Svyatoslav RyhelSince required drivers were merged, we can safely clean up the board and switch to DM based driver with device tree support.
--- arch/arm/dts/tegra30-asus-p1801-t.dts | 2 + arch/arm/dts/tegra30-asus-tf600t.dts | 4 + arch/arm/dts/tegra30-asus-transformer.dtsi | 2 + board/asus/transformer-t30/Kconfig | 10 -- .../transformer-t30/configs/tf600t.config | 2 +- .../transformer-t30/transformer-t30-spl.c | 2 +- board/asus/transformer-t30/transformer-t30.c | 121 +----------------- configs/transformer_t30_defconfig | 5 + 8 files changed, 21 insertions(+), 127 deletions(-)
arch/arm/dts/tegra30-asus-p1801-t.dts +2 -0
@@ -101,6 +101,7 @@ regulator-name = "vdd_emmc_core"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; + regulator-boot-on; }; /* uSD slot VDD */
@@ -108,6 +109,7 @@ regulator-name = "vdd_usd"; regulator-min-microvolt = <3100000>; regulator-max-microvolt = <3100000>; + regulator-boot-on; }; /* uSD slot VDDIO */
arch/arm/dts/tegra30-asus-tf600t.dts +4 -0
@@ -84,12 +84,14 @@ regulator-name = "vdd_1v2_backlight"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; + regulator-boot-on; }; vcore_lcd: vdd2 { regulator-name = "vcore_lcd"; regulator-min-microvolt = <1500000>; regulator-max-microvolt = <1500000>; + regulator-boot-on; }; vdd_1v8_vio: vddio {
@@ -105,6 +107,7 @@ regulator-name = "vdd_emmc_core"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; + regulator-boot-on; }; /* uSD slot VDDIO */
@@ -119,6 +122,7 @@ regulator-name = "avdd_dsi_csi"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; + regulator-boot-on; }; }; };
arch/arm/dts/tegra30-asus-transformer.dtsi +2 -0
@@ -82,6 +82,7 @@ regulator-name = "vdd_emmc_core"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; + regulator-boot-on; }; /* uSD slot VDD */
@@ -89,6 +90,7 @@ regulator-name = "vdd_usd"; regulator-min-microvolt = <3100000>; regulator-max-microvolt = <3100000>; + regulator-boot-on; }; /* uSD slot VDDIO */
board/asus/transformer-t30/Kconfig +0 -10
@@ -9,14 +9,4 @@ config SYS_VENDOR config SYS_CONFIG_NAME default "transformer-t30" -config TRANSFORMER_SPI_BOOT - bool "Enable support for SPI based flash" - select TEGRA20_SLINK - select DM_SPI_FLASH - select SPI_FLASH_WINBOND - help - Tegra 3 based Transformers with Windows RT have core - boot sequence (BCT and EBT) on separate SPI FLASH - memory with 4MB size. - endif
board/asus/transformer-t30/configs/tf600t.config +1 -1
@@ -1,4 +1,4 @@ CONFIG_DEFAULT_DEVICE_TREE="tegra30-asus-tf600t" -CONFIG_TRANSFORMER_SPI_BOOT=y CONFIG_BOOTCOMMAND="setenv gpio_button 222; if run check_button; then poweroff; fi; setenv gpio_button 132; if run check_button; then echo Starting SPI flash update ...; run update_spi; fi; run bootcmd_usb0; run bootcmd_mmc1; run bootcmd_mmc0; poweroff;" +CONFIG_SPI_FLASH_WINBOND=y CONFIG_USB_GADGET_PRODUCT_NUM=0x4d00
board/asus/transformer-t30/transformer-t30-spl.c +1 -1
@@ -9,7 +9,7 @@* Svyatoslav Ryhel <[email protected]> */ -#include <common.h> +#include <asm/arch/tegra.h> #include <asm/arch-tegra/tegra_i2c.h> #include <linux/delay.h>
board/asus/transformer-t30/transformer-t30.c +6 -115
141 lines not on this page · raw message
configs/transformer_t30_defconfig +5 -0
@@ -45,6 +45,7 @@ CONFIG_CMD_USB_MASS_STORAGE=y CONFIG_CMD_UMS_ABORT_KEYED=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_PAUSE=y +CONFIG_CMD_REGULATOR=y CONFIG_CMD_EXT4_WRITE=y # CONFIG_SPL_DOS_PARTITION is not set # CONFIG_SPL_EFI_PARTITION is not set
@@ -65,10 +66,14 @@ CONFIG_I2C_MUX=y CONFIG_I2C_MUX_GPIO=y CONFIG_BUTTON_KEYBOARD=y CONFIG_DM_PMIC=y +CONFIG_DM_PMIC_TPS65910=y CONFIG_DM_REGULATOR=y CONFIG_DM_REGULATOR_FIXED=y +CONFIG_DM_REGULATOR_TPS65911=y CONFIG_PWM_TEGRA=y CONFIG_SYS_NS16550=y +CONFIG_TEGRA20_SLINK=y +CONFIG_SYSRESET_TPS65910=y CONFIG_USB=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_TEGRA=y
Signature · 1 line
2.40.1
PATCH 4/5 board: grouper: convert ASUS Google Nexus 7 (2012) to use DM PMIC
In reply to Svyatoslav RyhelSince required drivers were merged, we can safely clean up the board and switch to DM based driver with device tree support.
--- .../dts/tegra30-asus-nexus7-grouper-E1565.dts | 1 + .../dts/tegra30-asus-nexus7-grouper-PM269.dts | 1 + .../dts/tegra30-asus-nexus7-tilapia-E1565.dts | 1 + board/asus/grouper/Kconfig | 8 - board/asus/grouper/Makefile | 4 +- .../asus/grouper/configs/grouper_E1565.config | 6 +- .../asus/grouper/configs/grouper_PM269.config | 6 +- board/asus/grouper/configs/tilapia.config | 6 +- board/asus/grouper/grouper-spl-max.c | 2 +- board/asus/grouper/grouper-spl-ti.c | 2 +- board/asus/grouper/grouper.c | 154 +----------------- configs/grouper_common_defconfig | 1 + 12 files changed, 29 insertions(+), 163 deletions(-)
arch/arm/dts/tegra30-asus-nexus7-grouper-E1565.dts +1 -0
@@ -35,6 +35,7 @@ regulator-name = "vcore_emmc"; regulator-min-microvolt = <2850000>; regulator-max-microvolt = <2850000>; + regulator-boot-on; }; }; };
arch/arm/dts/tegra30-asus-nexus7-grouper-PM269.dts +1 -0
@@ -36,6 +36,7 @@ regulator-name = "vdd_emmc_core"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; + regulator-boot-on; }; }; };
arch/arm/dts/tegra30-asus-nexus7-tilapia-E1565.dts +1 -0
@@ -35,6 +35,7 @@ regulator-name = "vcore_emmc"; regulator-min-microvolt = <2850000>; regulator-max-microvolt = <2850000>; + regulator-boot-on; }; }; };
board/asus/grouper/Kconfig +0 -8
@@ -9,12 +9,4 @@ config SYS_VENDOR config SYS_CONFIG_NAME default "grouper" -config GROUPER_TPS65911 - bool "Enable support TI TPS65911 PMIC" - select CMD_POWEROFF - -config GROUPER_MAX77663 - bool "Enable support MAXIM MAX77663 PMIC" - select CMD_POWEROFF - endif
board/asus/grouper/Makefile +2 -2
@@ -7,8 +7,8 @@ # Svyatoslav Ryhel <[email protected]> ifdef CONFIG_SPL_BUILD -obj-$(CONFIG_GROUPER_MAX77663) += grouper-spl-max.o -obj-$(CONFIG_GROUPER_TPS65911) += grouper-spl-ti.o +obj-$(CONFIG_DM_PMIC_MAX77663) += grouper-spl-max.o +obj-$(CONFIG_DM_PMIC_TPS65910) += grouper-spl-ti.o endif obj-y += grouper.o
board/asus/grouper/configs/grouper_E1565.config +5 -1
@@ -1,2 +1,6 @@ CONFIG_DEFAULT_DEVICE_TREE="tegra30-asus-nexus7-grouper-E1565" -CONFIG_GROUPER_MAX77663=y +CONFIG_CMD_POWEROFF=y +# CONFIG_MAX77663_GPIO is not set +CONFIG_DM_PMIC_MAX77663=y +CONFIG_DM_REGULATOR_MAX77663=y +CONFIG_SYSRESET_MAX77663=y
board/asus/grouper/configs/grouper_PM269.config +5 -1
@@ -1,2 +1,6 @@ CONFIG_DEFAULT_DEVICE_TREE="tegra30-asus-nexus7-grouper-PM269" -CONFIG_GROUPER_TPS65911=y +CONFIG_CMD_POWEROFF=y +CONFIG_DM_PMIC_TPS65910=y +# CONFIG_DM_REGULATOR_TPS65910 is not set +CONFIG_DM_REGULATOR_TPS65911=y +CONFIG_SYSRESET_TPS65910=y
board/asus/grouper/configs/tilapia.config +5 -1
@@ -1,3 +1,7 @@ CONFIG_DEFAULT_DEVICE_TREE="tegra30-asus-nexus7-tilapia-E1565" -CONFIG_GROUPER_MAX77663=y CONFIG_SYS_PROMPT="Tegra30 (Tilapia) # " +CONFIG_CMD_POWEROFF=y +# CONFIG_MAX77663_GPIO is not set +CONFIG_DM_PMIC_MAX77663=y +CONFIG_DM_REGULATOR_MAX77663=y +CONFIG_SYSRESET_MAX77663=y
board/asus/grouper/grouper-spl-max.c +1 -1
@@ -9,7 +9,7 @@* Svyatoslav Ryhel <[email protected]> */ -#include <common.h> +#include <asm/arch/tegra.h> #include <asm/arch-tegra/tegra_i2c.h> #include <linux/delay.h>
board/asus/grouper/grouper-spl-ti.c +1 -1
@@ -9,7 +9,7 @@* Svyatoslav Ryhel <[email protected]> */ -#include <common.h> +#include <asm/arch/tegra.h> #include <asm/arch-tegra/tegra_i2c.h> #include <linux/delay.h>
board/asus/grouper/grouper.c +6 -148
174 lines not on this page · raw message
configs/grouper_common_defconfig +1 -0
@@ -43,6 +43,7 @@ CONFIG_CMD_USB_MASS_STORAGE=y CONFIG_CMD_UMS_ABORT_KEYED=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_PAUSE=y +CONFIG_CMD_REGULATOR=y CONFIG_CMD_EXT4_WRITE=y # CONFIG_SPL_DOS_PARTITION is not set # CONFIG_SPL_EFI_PARTITION is not set
Signature · 1 line
2.40.1
PATCH 5/5 ARM: dts: tegra30: enable USB PHY node on some devices
In reply to Svyatoslav RyhelEnable USB PHY nodes on ASUS Transformers, Grouper, Enadevoru and LG X3. This is not mandatory since driver will use default values but preferable for new devices.
--- arch/arm/dts/tegra30-asus-grouper-common.dtsi | 7 +++++++ arch/arm/dts/tegra30-asus-p1801-t.dts | 15 +++++++++++++++ arch/arm/dts/tegra30-asus-tf600t.dts | 11 +++++++++++ arch/arm/dts/tegra30-asus-transformer.dtsi | 7 +++++++ arch/arm/dts/tegra30-htc-endeavoru.dts | 7 +++++++ arch/arm/dts/tegra30-lg-x3.dtsi | 8 ++++++++ 6 files changed, 55 insertions(+)
arch/arm/dts/tegra30-asus-grouper-common.dtsi +7 -0
@@ -71,6 +71,13 @@ dr_mode = "otg"; }; + usb-phy@7d000000 { + status = "okay"; + nvidia,hssync-start-delay = <0>; + nvidia,xcvr-lsfslew = <2>; + nvidia,xcvr-lsrslew = <2>; + }; + backlight: backlight { compatible = "pwm-backlight";
arch/arm/dts/tegra30-asus-p1801-t.dts +15 -0
@@ -150,17 +150,32 @@ dr_mode = "otg"; }; + usb-phy@7d000000 { + status = "okay"; + nvidia,hssync-start-delay = <0>; + nvidia,xcvr-lsfslew = <2>; + nvidia,xcvr-lsrslew = <2>; + }; + /* Mini USB port */ usb2: usb@7d004000 { status = "okay"; nvidia,vbus-gpio = <&gpio TEGRA_GPIO(H, 7) GPIO_ACTIVE_HIGH>; }; + usb-phy@7d004000 { + status = "okay"; + }; + /* Dock's USB port */ usb3: usb@7d008000 { status = "okay"; }; + usb-phy@7d008000 { + status = "okay"; + }; + /* PMIC has a built-in 32KHz oscillator which is used by PMC */ clk32k_in: clock-32k { compatible = "fixed-clock";
arch/arm/dts/tegra30-asus-tf600t.dts +11 -0
@@ -165,11 +165,22 @@ dr_mode = "otg"; }; + usb-phy@7d000000 { + status = "okay"; + nvidia,hssync-start-delay = <0>; + nvidia,xcvr-lsfslew = <2>; + nvidia,xcvr-lsrslew = <2>; + }; + /* Dock's USB port */ usb3: usb@7d008000 { status = "okay"; }; + usb-phy@7d008000 { + status = "okay"; + }; + backlight: backlight { compatible = "pwm-backlight";
arch/arm/dts/tegra30-asus-transformer.dtsi +7 -0
@@ -131,6 +131,13 @@ dr_mode = "otg"; }; + usb-phy@7d000000 { + status = "okay"; + nvidia,hssync-start-delay = <0>; + nvidia,xcvr-lsfslew = <2>; + nvidia,xcvr-lsrslew = <2>; + }; + /* Dock's USB port */ usb3: usb@7d008000 { status = "okay";
arch/arm/dts/tegra30-htc-endeavoru.dts +7 -0
@@ -101,6 +101,13 @@ dr_mode = "otg"; }; + usb-phy@7d000000 { + status = "okay"; + nvidia,hssync-start-delay = <0>; + nvidia,xcvr-lsfslew = <2>; + nvidia,xcvr-lsrslew = <2>; + }; + backlight: backlight { compatible = "nvidia,tegra-pwm-backlight";
arch/arm/dts/tegra30-lg-x3.dtsi +8 -0
@@ -153,6 +153,14 @@ dr_mode = "otg"; }; + usb-phy@7d000000 { + status = "okay"; + nvidia,hssync-start-delay = <0>; + nvidia,xcvr-lsfslew = <2>; + nvidia,xcvr-lsrslew = <2>; + vbus-supply = <&avdd_3v3_periph>; + }; + /* PMIC has a built-in 32KHz oscillator which is used by PMC */ clk32k_in: clock-32k { compatible = "fixed-clock";
Signature · 1 line
2.40.1
Hi Svyatoslav,
Quoted 6 lines
Since the proposed PMIC patches have been accepted, I see the need to convert boards which I maintain to use DM drivers instead of board hacks.
Svyatoslav Ryhel (5):
board: lg-x3: convert LG Optimus 4X and Vu to use DM PMIC
board: endeavoru: convert HTC One X to use DM PMIC
Is there a reason why the two above devices don't appear to have their .dts files in the upstream kernel?
Quoted 38 lines
board: transformer-t30: convert ASUS Transformers to use DM PMIC
board: grouper: convert ASUS Google Nexus 7 (2012) to use DM PMIC
ARM: dts: tegra30: enable USB PHY node on some devicesarch/arm/dts/tegra30-asus-grouper-common.dtsi | 7 + .../dts/tegra30-asus-nexus7-grouper-E1565.dts | 1 + .../dts/tegra30-asus-nexus7-grouper-PM269.dts | 1 + .../dts/tegra30-asus-nexus7-tilapia-E1565.dts | 1 + arch/arm/dts/tegra30-asus-p1801-t.dts | 17 ++ arch/arm/dts/tegra30-asus-tf600t.dts | 15 ++ arch/arm/dts/tegra30-asus-transformer.dtsi | 9 + arch/arm/dts/tegra30-htc-endeavoru.dts | 8 + arch/arm/dts/tegra30-lg-x3.dtsi | 9 + board/asus/grouper/Kconfig | 8 - board/asus/grouper/Makefile | 4 +- .../asus/grouper/configs/grouper_E1565.config | 6 +- .../asus/grouper/configs/grouper_PM269.config | 6 +- board/asus/grouper/configs/tilapia.config | 6 +- board/asus/grouper/grouper-spl-max.c | 2 +- board/asus/grouper/grouper-spl-ti.c | 2 +- board/asus/grouper/grouper.c | 154 +----------------- board/asus/transformer-t30/Kconfig | 10 -- .../transformer-t30/configs/tf600t.config | 2 +- .../transformer-t30/transformer-t30-spl.c | 2 +- board/asus/transformer-t30/transformer-t30.c | 121 +------------- board/htc/endeavoru/endeavoru-spl.c | 2 +- board/htc/endeavoru/endeavoru.c | 72 +------- board/lg/x3-t30/x3-t30-spl.c | 2 +- board/lg/x3-t30/x3-t30.c | 97 +---------- configs/endeavoru_defconfig | 4 + configs/grouper_common_defconfig | 1 + configs/transformer_t30_defconfig | 5 + configs/x3_t30_defconfig | 4 + 29 files changed, 128 insertions(+), 450 deletions(-)--
2.40.1
пн, 6 лист. 2023 р. о 13:46 Peter Robinson <[email protected]> пише:
Quoted 6 lines
Hi Svyatoslav,
Quoted 3 lines
Since the proposed PMIC patches have been accepted, I see the need to convert boards which I maintain to use DM drivers instead of board hacks.
Quoted 7 lines
Quoted 3 lines
Svyatoslav Ryhel (5):
board: lg-x3: convert LG Optimus 4X and Vu to use DM PMIC
board: endeavoru: convert HTC One X to use DM PMICIs there a reason why the two above devices don't appear to have their .dts files in the upstream kernel?
Yes, there is a reason. Linux maintainers treat submitters as existential enemies or as dirt at least. I was trying to work with linux but I have no desire to spend any time to upstream endeavoru or lg_x3.
Quoted 38 lines
Quoted 38 lines
board: transformer-t30: convert ASUS Transformers to use DM PMIC
board: grouper: convert ASUS Google Nexus 7 (2012) to use DM PMIC
ARM: dts: tegra30: enable USB PHY node on some devicesarch/arm/dts/tegra30-asus-grouper-common.dtsi | 7 + .../dts/tegra30-asus-nexus7-grouper-E1565.dts | 1 + .../dts/tegra30-asus-nexus7-grouper-PM269.dts | 1 + .../dts/tegra30-asus-nexus7-tilapia-E1565.dts | 1 + arch/arm/dts/tegra30-asus-p1801-t.dts | 17 ++ arch/arm/dts/tegra30-asus-tf600t.dts | 15 ++ arch/arm/dts/tegra30-asus-transformer.dtsi | 9 + arch/arm/dts/tegra30-htc-endeavoru.dts | 8 + arch/arm/dts/tegra30-lg-x3.dtsi | 9 + board/asus/grouper/Kconfig | 8 - board/asus/grouper/Makefile | 4 +- .../asus/grouper/configs/grouper_E1565.config | 6 +- .../asus/grouper/configs/grouper_PM269.config | 6 +- board/asus/grouper/configs/tilapia.config | 6 +- board/asus/grouper/grouper-spl-max.c | 2 +- board/asus/grouper/grouper-spl-ti.c | 2 +- board/asus/grouper/grouper.c | 154 +----------------- board/asus/transformer-t30/Kconfig | 10 -- .../transformer-t30/configs/tf600t.config | 2 +- .../transformer-t30/transformer-t30-spl.c | 2 +- board/asus/transformer-t30/transformer-t30.c | 121 +------------- board/htc/endeavoru/endeavoru-spl.c | 2 +- board/htc/endeavoru/endeavoru.c | 72 +------- board/lg/x3-t30/x3-t30-spl.c | 2 +- board/lg/x3-t30/x3-t30.c | 97 +---------- configs/endeavoru_defconfig | 4 + configs/grouper_common_defconfig | 1 + configs/transformer_t30_defconfig | 5 + configs/x3_t30_defconfig | 4 + 29 files changed, 128 insertions(+), 450 deletions(-)--
2.40.1
Quoted 12 lines · Svyatoslav Ryhel
пн, 6 лист. 2023 р. о 13:46 Peter Robinson <[email protected]> пише:
Quoted 10 lines
Hi Svyatoslav,
Quoted 6 lines
Since the proposed PMIC patches have been accepted, I see the need to convert boards which I maintain to use DM drivers instead of board hacks.
Svyatoslav Ryhel (5):
board: lg-x3: convert LG Optimus 4X and Vu to use DM PMIC
board: endeavoru: convert HTC One X to use DM PMIC
Quoted 8 lines
Quoted 3 lines
Is there a reason why the two above devices don't appear to have their .dts files in the upstream kernel?
Yes, there is a reason. Linux maintainers treat submitters as existential enemies or as dirt at least. I was trying to work with linux but I have no desire to spend any time to upstream endeavoru or
lg_x3.
The usual policy for acceptance into U-Boot is to have upstream review in the kernel first.
Quoted 38 lines
Quoted 38 lines
Quoted 38 lines
board: transformer-t30: convert ASUS Transformers to use DM PMIC
board: grouper: convert ASUS Google Nexus 7 (2012) to use DM PMIC
ARM: dts: tegra30: enable USB PHY node on some devicesarch/arm/dts/tegra30-asus-grouper-common.dtsi | 7 + .../dts/tegra30-asus-nexus7-grouper-E1565.dts | 1 + .../dts/tegra30-asus-nexus7-grouper-PM269.dts | 1 + .../dts/tegra30-asus-nexus7-tilapia-E1565.dts | 1 + arch/arm/dts/tegra30-asus-p1801-t.dts | 17 ++ arch/arm/dts/tegra30-asus-tf600t.dts | 15 ++ arch/arm/dts/tegra30-asus-transformer.dtsi | 9 + arch/arm/dts/tegra30-htc-endeavoru.dts | 8 + arch/arm/dts/tegra30-lg-x3.dtsi | 9 + board/asus/grouper/Kconfig | 8 - board/asus/grouper/Makefile | 4 +- .../asus/grouper/configs/grouper_E1565.config | 6 +- .../asus/grouper/configs/grouper_PM269.config | 6 +- board/asus/grouper/configs/tilapia.config | 6 +- board/asus/grouper/grouper-spl-max.c | 2 +- board/asus/grouper/grouper-spl-ti.c | 2 +- board/asus/grouper/grouper.c | 154 +----------------- board/asus/transformer-t30/Kconfig | 10 -- .../transformer-t30/configs/tf600t.config | 2 +- .../transformer-t30/transformer-t30-spl.c | 2 +- board/asus/transformer-t30/transformer-t30.c | 121 +------------- board/htc/endeavoru/endeavoru-spl.c | 2 +- board/htc/endeavoru/endeavoru.c | 72 +------- board/lg/x3-t30/x3-t30-spl.c | 2 +- board/lg/x3-t30/x3-t30.c | 97 +---------- configs/endeavoru_defconfig | 4 + configs/grouper_common_defconfig | 1 + configs/transformer_t30_defconfig | 5 + configs/x3_t30_defconfig | 4 + 29 files changed, 128 insertions(+), 450 deletions(-)--
2.40.1
пн, 6 лист. 2023 р. о 15:13 Peter Robinson <[email protected]> пише:
Quoted 18 lines · Svyatoslav Ryhel
Quoted 16 lines
пн, 6 лист. 2023 р. о 13:46 Peter Robinson <[email protected]> пише:
Quoted 13 lines
Hi Svyatoslav,
Quoted 6 lines
Since the proposed PMIC patches have been accepted, I see the need to convert boards which I maintain to use DM drivers instead of board hacks.
Svyatoslav Ryhel (5):
board: lg-x3: convert LG Optimus 4X and Vu to use DM PMIC
board: endeavoru: convert HTC One X to use DM PMICIs there a reason why the two above devices don't appear to have their .dts files in the upstream kernel?
Quoted 8 lines
Quoted 4 lines
Yes, there is a reason. Linux maintainers treat submitters as existential enemies or as dirt at least. I was trying to work with linux but I have no desire to spend any time to upstream endeavoru or
lg_x3.The usual policy for acceptance into U-Boot is to have upstream review in the kernel first.
May you point to a policy which clearly and explicitly states this as a mandatory condition?
Quoted 38 lines
Quoted 38 lines
Quoted 38 lines
Quoted 38 lines
board: transformer-t30: convert ASUS Transformers to use DM PMIC
board: grouper: convert ASUS Google Nexus 7 (2012) to use DM PMIC
ARM: dts: tegra30: enable USB PHY node on some devicesarch/arm/dts/tegra30-asus-grouper-common.dtsi | 7 + .../dts/tegra30-asus-nexus7-grouper-E1565.dts | 1 + .../dts/tegra30-asus-nexus7-grouper-PM269.dts | 1 + .../dts/tegra30-asus-nexus7-tilapia-E1565.dts | 1 + arch/arm/dts/tegra30-asus-p1801-t.dts | 17 ++ arch/arm/dts/tegra30-asus-tf600t.dts | 15 ++ arch/arm/dts/tegra30-asus-transformer.dtsi | 9 + arch/arm/dts/tegra30-htc-endeavoru.dts | 8 + arch/arm/dts/tegra30-lg-x3.dtsi | 9 + board/asus/grouper/Kconfig | 8 - board/asus/grouper/Makefile | 4 +- .../asus/grouper/configs/grouper_E1565.config | 6 +- .../asus/grouper/configs/grouper_PM269.config | 6 +- board/asus/grouper/configs/tilapia.config | 6 +- board/asus/grouper/grouper-spl-max.c | 2 +- board/asus/grouper/grouper-spl-ti.c | 2 +- board/asus/grouper/grouper.c | 154 +----------------- board/asus/transformer-t30/Kconfig | 10 -- .../transformer-t30/configs/tf600t.config | 2 +- .../transformer-t30/transformer-t30-spl.c | 2 +- board/asus/transformer-t30/transformer-t30.c | 121 +------------- board/htc/endeavoru/endeavoru-spl.c | 2 +- board/htc/endeavoru/endeavoru.c | 72 +------- board/lg/x3-t30/x3-t30-spl.c | 2 +- board/lg/x3-t30/x3-t30.c | 97 +---------- configs/endeavoru_defconfig | 4 + configs/grouper_common_defconfig | 1 + configs/transformer_t30_defconfig | 5 + configs/x3_t30_defconfig | 4 + 29 files changed, 128 insertions(+), 450 deletions(-)--
2.40.1
Quoted 25 lines · Svyatoslav Ryhel
пн, 6 лист. 2023 р. о 15:13 Peter Robinson <[email protected]> пише:
Quoted 23 lines · Svyatoslav Ryhel
Quoted 20 lines
пн, 6 лист. 2023 р. о 13:46 Peter Robinson <[email protected]> пише:
Quoted 6 lines
Hi Svyatoslav,
Quoted 3 lines
Since the proposed PMIC patches have been accepted, I see the need to convert boards which I maintain to use DM drivers instead of board hacks.
Quoted 7 lines
Quoted 3 lines
Svyatoslav Ryhel (5):
board: lg-x3: convert LG Optimus 4X and Vu to use DM PMIC
board: endeavoru: convert HTC One X to use DM PMICIs there a reason why the two above devices don't appear to have their .dts files in the upstream kernel?
Yes, there is a reason. Linux maintainers treat submitters as existential enemies or as dirt at least. I was trying to work with linux but I have no desire to spend any time to upstream endeavoru or
lg_x3.
Quoted 6 lines
Quoted 3 lines
The usual policy for acceptance into U-Boot is to have upstream review in the kernel first.
May you point to a policy which clearly and explicitly states this as a mandatory condition?
There have been a number of devices rejected in the past until their DT are upstream but I'll leave Tom, who I've explicitly added on cc:, to clarify the exact policy.
Quoted 38 lines
Quoted 38 lines
Quoted 38 lines
Quoted 38 lines
Quoted 38 lines
board: transformer-t30: convert ASUS Transformers to use DM PMIC
board: grouper: convert ASUS Google Nexus 7 (2012) to use DM PMIC
ARM: dts: tegra30: enable USB PHY node on some devicesarch/arm/dts/tegra30-asus-grouper-common.dtsi | 7 + .../dts/tegra30-asus-nexus7-grouper-E1565.dts | 1 + .../dts/tegra30-asus-nexus7-grouper-PM269.dts | 1 + .../dts/tegra30-asus-nexus7-tilapia-E1565.dts | 1 + arch/arm/dts/tegra30-asus-p1801-t.dts | 17 ++ arch/arm/dts/tegra30-asus-tf600t.dts | 15 ++ arch/arm/dts/tegra30-asus-transformer.dtsi | 9 + arch/arm/dts/tegra30-htc-endeavoru.dts | 8 + arch/arm/dts/tegra30-lg-x3.dtsi | 9 + board/asus/grouper/Kconfig | 8 - board/asus/grouper/Makefile | 4 +- .../asus/grouper/configs/grouper_E1565.config | 6 +- .../asus/grouper/configs/grouper_PM269.config | 6 +- board/asus/grouper/configs/tilapia.config | 6 +- board/asus/grouper/grouper-spl-max.c | 2 +- board/asus/grouper/grouper-spl-ti.c | 2 +- board/asus/grouper/grouper.c | 154 +----------------- board/asus/transformer-t30/Kconfig | 10 -- .../transformer-t30/configs/tf600t.config | 2 +- .../transformer-t30/transformer-t30-spl.c | 2 +- board/asus/transformer-t30/transformer-t30.c | 121 +------------- board/htc/endeavoru/endeavoru-spl.c | 2 +- board/htc/endeavoru/endeavoru.c | 72 +------- board/lg/x3-t30/x3-t30-spl.c | 2 +- board/lg/x3-t30/x3-t30.c | 97 +---------- configs/endeavoru_defconfig | 4 + configs/grouper_common_defconfig | 1 + configs/transformer_t30_defconfig | 5 + configs/x3_t30_defconfig | 4 + 29 files changed, 128 insertions(+), 450 deletions(-)--
2.40.1
Quoted 30 lines · Peter Robinson
Quoted 29 lines · Svyatoslav Ryhel
пн, 6 лист. 2023 р. о 15:13 Peter Robinson <[email protected]> пише:
Quoted 26 lines · Svyatoslav Ryhel
Quoted 12 lines
пн, 6 лист. 2023 р. о 13:46 Peter Robinson <[email protected]> пише:
Quoted 10 lines
Hi Svyatoslav,
Quoted 6 lines
Since the proposed PMIC patches have been accepted, I see the need to convert boards which I maintain to use DM drivers instead of board hacks.
Svyatoslav Ryhel (5):
board: lg-x3: convert LG Optimus 4X and Vu to use DM PMIC
board: endeavoru: convert HTC One X to use DM PMICQuoted 8 lines
Quoted 3 lines
Is there a reason why the two above devices don't appear to have their .dts files in the upstream kernel?
Yes, there is a reason. Linux maintainers treat submitters as existential enemies or as dirt at least. I was trying to work with linux but I have no desire to spend any time to upstream endeavoru or
lg_x3.The usual policy for acceptance into U-Boot is to have upstream review in the kernel first.
Quoted 6 lines
Quoted 2 lines
May you point to a policy which clearly and explicitly states this as a mandatory condition?
There have been a number of devices rejected in the past until their DT are upstream but I'll leave Tom, who I've explicitly added on cc:, to clarify the exact policy.
Well, here is where it's tricky. I brought this up for one of the Broadcom MIPS platforms a week or two back, and Linus Walleij's point (and I'm paraphrasing) is there's not really an upstream for it to go.
What we cannot have is device tree bindings[1] that aren't upstream or worse yet conflict with the official bindings.
So the general way to resolve that is have device tree file be drop-in from the linux kernel, and what additions we must have be done via -u-boot.dtsi files. And in turn, some SoCs are better about keeping in sync with the kernel than other SoCs are.
Now, upstream being actively hostile to dts files, especially for older platforms? That's unfortunate. So long as we aren't violating the rules about bindings, the intention is that we don't have device trees that are either (a) massively out of sync with the kernel[2] or (b) kept intentionally mismatched from the kernel.
Signature · 6 lines
Tom [1]: There are both examples like binman that Simon is working on at least but this is more exception than intentional rule. [2]: Per our other conversions, I know the tegra ones are in this unfortunate state in general
Quoted 39 lines
Quoted 20 lines
Quoted 20 lines
Quoted 19 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
Since the proposed PMIC patches have been accepted, I see the need to convert boards which I maintain to use DM drivers instead of board hacks.
Svyatoslav Ryhel (5):
board: lg-x3: convert LG Optimus 4X and Vu to use DM PMIC
board: endeavoru: convert HTC One X to use DM PMICQuoted 8 lines
Quoted 3 lines
Is there a reason why the two above devices don't appear to have their .dts files in the upstream kernel?
Yes, there is a reason. Linux maintainers treat submitters as existential enemies or as dirt at least. I was trying to work with linux but I have no desire to spend any time to upstream endeavoru or
lg_x3.The usual policy for acceptance into U-Boot is to have upstream review in the kernel first.
Quoted 6 lines
Quoted 2 lines
May you point to a policy which clearly and explicitly states this as a mandatory condition?
There have been a number of devices rejected in the past until their DT are upstream but I'll leave Tom, who I've explicitly added on cc:, to clarify the exact policy.
Well, here is where it's tricky. I brought this up for one of the Broadcom MIPS platforms a week or two back, and Linus Walleij's point (and I'm paraphrasing) is there's not really an upstream for it to go.
What we cannot have is device tree bindings[1] that aren't upstream or worse yet conflict with the official bindings.
So the general way to resolve that is have device tree file be drop-in from the linux kernel, and what additions we must have be done via
-u-boot.dtsifiles. And in turn, some SoCs are better about keeping in sync with the kernel than other SoCs are.
Quoted 5 lines
Now, upstream being actively hostile to dts files, especially for older platforms? That's unfortunate. So long as we aren't violating the rules about bindings, the intention is that we don't have device trees that are either (a) massively out of sync with the kernel[2] or (b) kept intentionally mismatched from the kernel.
I don't believe I've seen upstream Tegra maintainers being actively hostile towards updates for older devices, I know they have certainly defocused them, but I'm not sure that's what I'd consider hostile.
Quoted 4 lines
[1]: There are both examples like binman that Simon is working on at least but this is more exception than intentional rule. [2]: Per our other conversions, I know the tegra ones are in this unfortunate state in general
Quoted 45 lines · Peter Robinson
Quoted 39 lines
Quoted 20 lines
Quoted 20 lines
Quoted 19 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
Since the proposed PMIC patches have been accepted, I see the need to convert boards which I maintain to use DM drivers instead of board hacks.
Svyatoslav Ryhel (5):
board: lg-x3: convert LG Optimus 4X and Vu to use DM PMIC
board: endeavoru: convert HTC One X to use DM PMICQuoted 8 lines
Quoted 3 lines
Is there a reason why the two above devices don't appear to have their .dts files in the upstream kernel?
Yes, there is a reason. Linux maintainers treat submitters as existential enemies or as dirt at least. I was trying to work with linux but I have no desire to spend any time to upstream endeavoru or
lg_x3.The usual policy for acceptance into U-Boot is to have upstream review in the kernel first.
Quoted 6 lines
Quoted 2 lines
May you point to a policy which clearly and explicitly states this as a mandatory condition?
There have been a number of devices rejected in the past until their DT are upstream but I'll leave Tom, who I've explicitly added on cc:, to clarify the exact policy.
Well, here is where it's tricky. I brought this up for one of the Broadcom MIPS platforms a week or two back, and Linus Walleij's point (and I'm paraphrasing) is there's not really an upstream for it to go.
What we cannot have is device tree bindings[1] that aren't upstream or worse yet conflict with the official bindings.
So the general way to resolve that is have device tree file be drop-in from the linux kernel, and what additions we must have be done via
-u-boot.dtsifiles. And in turn, some SoCs are better about keeping in sync with the kernel than other SoCs are.Quoted 5 lines
Now, upstream being actively hostile to dts files, especially for older platforms? That's unfortunate. So long as we aren't violating the rules about bindings, the intention is that we don't have device trees that are either (a) massively out of sync with the kernel[2] or (b) kept intentionally mismatched from the kernel.
Quoted 3 lines
I don't believe I've seen upstream Tegra maintainers being actively hostile towards updates for older devices, I know they have certainly defocused them, but I'm not sure that's what I'd consider hostile.
No objections from me on upstreaming older devices in Linux. I used to be able to test most of the older devices, but many of which I used to have direct access to are now defunct (for varying reasons). So I will have to rely on the community for testing etc. since I cannot scale to the point where I personally have all of these devices.
Now, I don't think that's hostile and if I ever came across as hostile I'm sorry. The intent was never to reject device support. Obviously the Linux kernel has high standards and sometimes that can be off-putting, but I don't think we've ever asked for anything out of the ordinary.
Thierry
Quoted 50 lines · Tom Rini
Quoted 30 lines · Peter Robinson
Quoted 29 lines · Svyatoslav Ryhel
пн, 6 лист. 2023 р. о 15:13 Peter Robinson <[email protected]> пише:
Quoted 26 lines · Svyatoslav Ryhel
Quoted 12 lines
пн, 6 лист. 2023 р. о 13:46 Peter Robinson <[email protected]> пише:
Quoted 10 lines
Hi Svyatoslav,
Quoted 6 lines
Since the proposed PMIC patches have been accepted, I see the need to convert boards which I maintain to use DM drivers instead of board hacks.
Svyatoslav Ryhel (5):
board: lg-x3: convert LG Optimus 4X and Vu to use DM PMIC
board: endeavoru: convert HTC One X to use DM PMICQuoted 8 lines
Quoted 3 lines
Is there a reason why the two above devices don't appear to have their .dts files in the upstream kernel?
Yes, there is a reason. Linux maintainers treat submitters as existential enemies or as dirt at least. I was trying to work with linux but I have no desire to spend any time to upstream endeavoru or
lg_x3.The usual policy for acceptance into U-Boot is to have upstream review in the kernel first.
Quoted 6 lines
Quoted 2 lines
May you point to a policy which clearly and explicitly states this as a mandatory condition?
There have been a number of devices rejected in the past until their DT are upstream but I'll leave Tom, who I've explicitly added on cc:, to clarify the exact policy.
Well, here is where it's tricky. I brought this up for one of the Broadcom MIPS platforms a week or two back, and Linus Walleij's point (and I'm paraphrasing) is there's not really an upstream for it to go.
What we cannot have is device tree bindings[1] that aren't upstream or worse yet conflict with the official bindings.
So the general way to resolve that is have device tree file be drop-in from the linux kernel, and what additions we must have be done via
-u-boot.dtsifiles. And in turn, some SoCs are better about keeping in sync with the kernel than other SoCs are.
Quoted 13 lines
Now, upstream being actively hostile to dts files, especially for older platforms? That's unfortunate. So long as we aren't violating the rules about bindings, the intention is that we don't have device trees that are either (a) massively out of sync with the kernel[2] or (b) kept intentionally mismatched from the kernel.
Signature · 6 lines
Tom [1]: There are both examples like binman that Simon is working on at least but this is more exception than intentional rule. [2]: Per our other conversions, I know the tegra ones are in this unfortunate state in general
On the Tegra side we've been fairly lax about the device trees in U-Boot, I suppose. The assumption had always been that U-Boot would load an external DTB and pass it to the kernel on boot, so keeping them both in sync was never a high priority.
U-Boot does only a very tiny amount of what Linux does, so dropping in the kernel DTB always seemed a bit overkill.
In either case, if this is problematic, it's something that I could take a look at. Again, it's expected that the device trees are different, for historical reasons, but I'd be surprised if they actually conflict with one another. U-Boot's DTB was always supposed to be a subset of the Linux DTB.
Thierry
Quoted 70 lines · Thierry Reding
Quoted 50 lines · Tom Rini
Quoted 30 lines · Peter Robinson
Quoted 29 lines · Svyatoslav Ryhel
пн, 6 лист. 2023 р. о 15:13 Peter Robinson <[email protected]> пише:
Quoted 26 lines · Svyatoslav Ryhel
Quoted 12 lines
пн, 6 лист. 2023 р. о 13:46 Peter Robinson <[email protected]> пише:
Quoted 10 lines
Hi Svyatoslav,
Quoted 6 lines
Since the proposed PMIC patches have been accepted, I see the need to convert boards which I maintain to use DM drivers instead of board hacks.
Svyatoslav Ryhel (5):
board: lg-x3: convert LG Optimus 4X and Vu to use DM PMIC
board: endeavoru: convert HTC One X to use DM PMICQuoted 8 lines
Quoted 3 lines
Is there a reason why the two above devices don't appear to have their .dts files in the upstream kernel?
Yes, there is a reason. Linux maintainers treat submitters as existential enemies or as dirt at least. I was trying to work with linux but I have no desire to spend any time to upstream endeavoru or
lg_x3.The usual policy for acceptance into U-Boot is to have upstream review in the kernel first.
Quoted 6 lines
Quoted 2 lines
May you point to a policy which clearly and explicitly states this as a mandatory condition?
There have been a number of devices rejected in the past until their DT are upstream but I'll leave Tom, who I've explicitly added on cc:, to clarify the exact policy.
Well, here is where it's tricky. I brought this up for one of the Broadcom MIPS platforms a week or two back, and Linus Walleij's point (and I'm paraphrasing) is there's not really an upstream for it to go.
What we cannot have is device tree bindings[1] that aren't upstream or worse yet conflict with the official bindings.
So the general way to resolve that is have device tree file be drop-in from the linux kernel, and what additions we must have be done via
-u-boot.dtsifiles. And in turn, some SoCs are better about keeping in sync with the kernel than other SoCs are.Quoted 13 lines
Now, upstream being actively hostile to dts files, especially for older platforms? That's unfortunate. So long as we aren't violating the rules about bindings, the intention is that we don't have device trees that are either (a) massively out of sync with the kernel[2] or (b) kept intentionally mismatched from the kernel.
Signature · 6 lines
Tom [1]: There are both examples like binman that Simon is working on at least but this is more exception than intentional rule. [2]: Per our other conversions, I know the tegra ones are in this unfortunate state in generalOn the Tegra side we've been fairly lax about the device trees in U-Boot, I suppose. The assumption had always been that U-Boot would load an external DTB and pass it to the kernel on boot, so keeping them both in sync was never a high priority.
Quoted 8 lines
U-Boot does only a very tiny amount of what Linux does, so dropping in the kernel DTB always seemed a bit overkill.
In either case, if this is problematic, it's something that I could take a look at. Again, it's expected that the device trees are different, for historical reasons, but I'd be surprised if they actually conflict with one another. U-Boot's DTB was always supposed to be a subset of the Linux DTB.
So, the issue with U-Boot and kernel device trees being out of sync is that we then can't support the model of "just pass the current DT to the OS". This in general is good to support because it means that even if a given platform isn't formally SystemReady IR certified it's still likely to be functional.
The most strict rule is that you can't have bindings in U-Boot that conflict with the kernel, or should be in the kernel but aren't, and so on.
Signature · 1 line
Tom
Quoted 80 lines · Tom Rini
Quoted 70 lines · Thierry Reding
Quoted 50 lines · Tom Rini
Quoted 30 lines · Peter Robinson
Quoted 29 lines · Svyatoslav Ryhel
пн, 6 лист. 2023 р. о 15:13 Peter Robinson <[email protected]> пише:
Quoted 26 lines · Svyatoslav Ryhel
Quoted 12 lines
пн, 6 лист. 2023 р. о 13:46 Peter Robinson <[email protected]> пише:
Quoted 10 lines
Hi Svyatoslav,
Quoted 6 lines
Since the proposed PMIC patches have been accepted, I see the need to convert boards which I maintain to use DM drivers instead of board hacks.
Svyatoslav Ryhel (5):
board: lg-x3: convert LG Optimus 4X and Vu to use DM PMIC
board: endeavoru: convert HTC One X to use DM PMICQuoted 8 lines
Quoted 3 lines
Is there a reason why the two above devices don't appear to have their .dts files in the upstream kernel?
Yes, there is a reason. Linux maintainers treat submitters as existential enemies or as dirt at least. I was trying to work with linux but I have no desire to spend any time to upstream endeavoru or
lg_x3.The usual policy for acceptance into U-Boot is to have upstream review in the kernel first.
Quoted 6 lines
Quoted 2 lines
May you point to a policy which clearly and explicitly states this as a mandatory condition?
There have been a number of devices rejected in the past until their DT are upstream but I'll leave Tom, who I've explicitly added on cc:, to clarify the exact policy.
Well, here is where it's tricky. I brought this up for one of the Broadcom MIPS platforms a week or two back, and Linus Walleij's point (and I'm paraphrasing) is there's not really an upstream for it to go.
What we cannot have is device tree bindings[1] that aren't upstream or worse yet conflict with the official bindings.
So the general way to resolve that is have device tree file be drop-in from the linux kernel, and what additions we must have be done via
-u-boot.dtsifiles. And in turn, some SoCs are better about keeping in sync with the kernel than other SoCs are.Quoted 13 lines
Now, upstream being actively hostile to dts files, especially for older platforms? That's unfortunate. So long as we aren't violating the rules about bindings, the intention is that we don't have device trees that are either (a) massively out of sync with the kernel[2] or (b) kept intentionally mismatched from the kernel.
Signature · 6 lines
Tom [1]: There are both examples like binman that Simon is working on at least but this is more exception than intentional rule. [2]: Per our other conversions, I know the tegra ones are in this unfortunate state in generalOn the Tegra side we've been fairly lax about the device trees in U-Boot, I suppose. The assumption had always been that U-Boot would load an external DTB and pass it to the kernel on boot, so keeping them both in sync was never a high priority.
Quoted 8 lines
U-Boot does only a very tiny amount of what Linux does, so dropping in the kernel DTB always seemed a bit overkill.
In either case, if this is problematic, it's something that I could take a look at. Again, it's expected that the device trees are different, for historical reasons, but I'd be surprised if they actually conflict with one another. U-Boot's DTB was always supposed to be a subset of the Linux DTB.
Quoted 5 lines
So, the issue with U-Boot and kernel device trees being out of sync is that we then can't support the model of "just pass the current DT to the OS". This in general is good to support because it means that even if a given platform isn't formally SystemReady IR certified it's still likely to be functional.
This is certainly not something that we ever strived for with Tegra. It was always very clear that we needed to get the DTB from the same source as the kernel. The vast majority of what's in the DTB is completely useless for U-Boot because it simply doesn't support (and doesn't have to support) a lot of the hardware that Linux supports.
One concern that I have with this policy is that for certain devices we may just not be able to do this. Especially with some early OEM devices I recall that they had limited storage for the bootloader. Since the DTB needs to be embedded, a full-blown DTB from Linux might inflate the size significantly. Comparing to what we have today, the Linux DTB can be anywhere from 2 to 3 times as big as the U-Boot DTB.
Quoted 3 lines
The most strict rule is that you can't have bindings in U-Boot that conflict with the kernel, or should be in the kernel but aren't, and so on.
I think this makes sense.
Thierry
Quoted 93 lines · Thierry Reding
Quoted 80 lines · Tom Rini
Quoted 70 lines · Thierry Reding
Quoted 50 lines · Tom Rini
Quoted 30 lines · Peter Robinson
Quoted 29 lines · Svyatoslav Ryhel
пн, 6 лист. 2023 р. о 15:13 Peter Robinson <[email protected]> пише:
Quoted 26 lines · Svyatoslav Ryhel
Quoted 12 lines
пн, 6 лист. 2023 р. о 13:46 Peter Robinson <[email protected]> пише:
Quoted 10 lines
Hi Svyatoslav,
Quoted 6 lines
Since the proposed PMIC patches have been accepted, I see the need to convert boards which I maintain to use DM drivers instead of board hacks.
Svyatoslav Ryhel (5):
board: lg-x3: convert LG Optimus 4X and Vu to use DM PMIC
board: endeavoru: convert HTC One X to use DM PMICQuoted 8 lines
Quoted 3 lines
Is there a reason why the two above devices don't appear to have their .dts files in the upstream kernel?
Yes, there is a reason. Linux maintainers treat submitters as existential enemies or as dirt at least. I was trying to work with linux but I have no desire to spend any time to upstream endeavoru or
lg_x3.The usual policy for acceptance into U-Boot is to have upstream review in the kernel first.
Quoted 6 lines
Quoted 2 lines
May you point to a policy which clearly and explicitly states this as a mandatory condition?
There have been a number of devices rejected in the past until their DT are upstream but I'll leave Tom, who I've explicitly added on cc:, to clarify the exact policy.
Well, here is where it's tricky. I brought this up for one of the Broadcom MIPS platforms a week or two back, and Linus Walleij's point (and I'm paraphrasing) is there's not really an upstream for it to go.
What we cannot have is device tree bindings[1] that aren't upstream or worse yet conflict with the official bindings.
So the general way to resolve that is have device tree file be drop-in from the linux kernel, and what additions we must have be done via
-u-boot.dtsifiles. And in turn, some SoCs are better about keeping in sync with the kernel than other SoCs are.Quoted 13 lines
Now, upstream being actively hostile to dts files, especially for older platforms? That's unfortunate. So long as we aren't violating the rules about bindings, the intention is that we don't have device trees that are either (a) massively out of sync with the kernel[2] or (b) kept intentionally mismatched from the kernel.
Signature · 6 lines
Tom [1]: There are both examples like binman that Simon is working on at least but this is more exception than intentional rule. [2]: Per our other conversions, I know the tegra ones are in this unfortunate state in generalOn the Tegra side we've been fairly lax about the device trees in U-Boot, I suppose. The assumption had always been that U-Boot would load an external DTB and pass it to the kernel on boot, so keeping them both in sync was never a high priority.
Quoted 8 lines
U-Boot does only a very tiny amount of what Linux does, so dropping in the kernel DTB always seemed a bit overkill.
In either case, if this is problematic, it's something that I could take a look at. Again, it's expected that the device trees are different, for historical reasons, but I'd be surprised if they actually conflict with one another. U-Boot's DTB was always supposed to be a subset of the Linux DTB.
Quoted 5 lines
So, the issue with U-Boot and kernel device trees being out of sync is that we then can't support the model of "just pass the current DT to the OS". This in general is good to support because it means that even if a given platform isn't formally SystemReady IR certified it's still likely to be functional.
This is certainly not something that we ever strived for with Tegra. It was always very clear that we needed to get the DTB from the same source as the kernel. The vast majority of what's in the DTB is completely useless for U-Boot because it simply doesn't support (and doesn't have to support) a lot of the hardware that Linux supports.
Quoted 6 lines
One concern that I have with this policy is that for certain devices we may just not be able to do this. Especially with some early OEM devices I recall that they had limited storage for the bootloader. Since the DTB needs to be embedded, a full-blown DTB from Linux might inflate the size significantly. Comparing to what we have today, the Linux DTB can be anywhere from 2 to 3 times as big as the U-Boot DTB.
As I noted in a different thread, I will be unhappy if U-Boot is unable to still be useful on a platform (tbs2910) that has just shy of 384kB of space for the binary, so still being somewhat small is a feature I want us to keep.
That said, most of the common community distributions want to be able to not ship device trees at least some day. At least one today requires being passed the right / valid device tree. And U-Boot will pass along the tree we're using if no override is presented. So yes, passing along the full real device tree to U-Boot and then being able to pass it further along is generally desired. If you can't you can't. If you want to take on the headache of keeping them separate, well, OK. But as this series shows we also make use of more of the tree than we used to as well, so just doing the drop-in and occasional resync is good.
Signature · 1 line
Tom
15 листопада 2023 р. 21:11:49 GMT+02:00, Tom Rini <[email protected]> написав(-ла):
Quoted 86 lines · Thierry Reding
Quoted 70 lines · Tom Rini
Quoted 50 lines · Peter Robinson
Quoted 30 lines · Svyatoslav Ryhel
Quoted 29 lines
пн, 6 лист. 2023 р. о 15:13 Peter Robinson <[email protected]> пише:
Quoted 26 lines · Svyatoslav Ryhel
Quoted 12 lines
пн, 6 лист. 2023 р. о 13:46 Peter Robinson <[email protected]> пише:
Quoted 10 lines
Hi Svyatoslav,
Quoted 6 lines
Since the proposed PMIC patches have been accepted, I see the need to convert boards which I maintain to use DM drivers instead of board hacks.
Svyatoslav Ryhel (5):
board: lg-x3: convert LG Optimus 4X and Vu to use DM PMIC
board: endeavoru: convert HTC One X to use DM PMICQuoted 8 lines
Quoted 3 lines
Is there a reason why the two above devices don't appear to have their .dts files in the upstream kernel?
Yes, there is a reason. Linux maintainers treat submitters as existential enemies or as dirt at least. I was trying to work with linux but I have no desire to spend any time to upstream endeavoru or
lg_x3.The usual policy for acceptance into U-Boot is to have upstream review in the kernel first.
Quoted 6 lines
Quoted 2 lines
May you point to a policy which clearly and explicitly states this as a mandatory condition?
There have been a number of devices rejected in the past until their DT are upstream but I'll leave Tom, who I've explicitly added on cc:, to clarify the exact policy.
Well, here is where it's tricky. I brought this up for one of the Broadcom MIPS platforms a week or two back, and Linus Walleij's point (and I'm paraphrasing) is there's not really an upstream for it to go.
What we cannot have is device tree bindings[1] that aren't upstream or worse yet conflict with the official bindings.
So the general way to resolve that is have device tree file be drop-in from the linux kernel, and what additions we must have be done via
-u-boot.dtsifiles. And in turn, some SoCs are better about keeping in sync with the kernel than other SoCs are.Quoted 13 lines
Now, upstream being actively hostile to dts files, especially for older platforms? That's unfortunate. So long as we aren't violating the rules about bindings, the intention is that we don't have device trees that are either (a) massively out of sync with the kernel[2] or (b) kept intentionally mismatched from the kernel.
Signature · 6 lines
Tom [1]: There are both examples like binman that Simon is working on at least but this is more exception than intentional rule. [2]: Per our other conversions, I know the tegra ones are in this unfortunate state in generalOn the Tegra side we've been fairly lax about the device trees in U-Boot, I suppose. The assumption had always been that U-Boot would load an external DTB and pass it to the kernel on boot, so keeping them both in sync was never a high priority.
Quoted 8 lines
U-Boot does only a very tiny amount of what Linux does, so dropping in the kernel DTB always seemed a bit overkill.
In either case, if this is problematic, it's something that I could take a look at. Again, it's expected that the device trees are different, for historical reasons, but I'd be surprised if they actually conflict with one another. U-Boot's DTB was always supposed to be a subset of the Linux DTB.
So, the issue with U-Boot and kernel device trees being out of sync is that we then can't support the model of "just pass the current DT to the OS". This in general is good to support because it means that even if a given platform isn't formally SystemReady IR certified it's still likely to be functional.
Quoted 4 lines
The most strict rule is that you can't have bindings in U-Boot that conflict with the kernel, or should be in the kernel but aren't, and so on.
So you say that U-Boot should support only components which have linux driver? May you clarify?
Quoted 89 lines · Svyatoslav Ryhel
15 листопада 2023 р. 21:11:49 GMT+02:00, Tom Rini <[email protected]> написав(-ла):
Quoted 86 lines · Thierry Reding
Quoted 70 lines · Tom Rini
Quoted 50 lines · Peter Robinson
Quoted 30 lines · Svyatoslav Ryhel
Quoted 29 lines
пн, 6 лист. 2023 р. о 15:13 Peter Robinson <[email protected]> пише:
Quoted 26 lines · Svyatoslav Ryhel
Quoted 12 lines
пн, 6 лист. 2023 р. о 13:46 Peter Robinson <[email protected]> пише:
Quoted 10 lines
Hi Svyatoslav,
Quoted 6 lines
Since the proposed PMIC patches have been accepted, I see the need to convert boards which I maintain to use DM drivers instead of board hacks.
Svyatoslav Ryhel (5):
board: lg-x3: convert LG Optimus 4X and Vu to use DM PMIC
board: endeavoru: convert HTC One X to use DM PMICQuoted 8 lines
Quoted 3 lines
Is there a reason why the two above devices don't appear to have their .dts files in the upstream kernel?
Yes, there is a reason. Linux maintainers treat submitters as existential enemies or as dirt at least. I was trying to work with linux but I have no desire to spend any time to upstream endeavoru or
lg_x3.The usual policy for acceptance into U-Boot is to have upstream review in the kernel first.
Quoted 6 lines
Quoted 2 lines
May you point to a policy which clearly and explicitly states this as a mandatory condition?
There have been a number of devices rejected in the past until their DT are upstream but I'll leave Tom, who I've explicitly added on cc:, to clarify the exact policy.
Well, here is where it's tricky. I brought this up for one of the Broadcom MIPS platforms a week or two back, and Linus Walleij's point (and I'm paraphrasing) is there's not really an upstream for it to go.
What we cannot have is device tree bindings[1] that aren't upstream or worse yet conflict with the official bindings.
So the general way to resolve that is have device tree file be drop-in from the linux kernel, and what additions we must have be done via
-u-boot.dtsifiles. And in turn, some SoCs are better about keeping in sync with the kernel than other SoCs are.Quoted 13 lines
Now, upstream being actively hostile to dts files, especially for older platforms? That's unfortunate. So long as we aren't violating the rules about bindings, the intention is that we don't have device trees that are either (a) massively out of sync with the kernel[2] or (b) kept intentionally mismatched from the kernel.
Signature · 6 lines
Tom [1]: There are both examples like binman that Simon is working on at least but this is more exception than intentional rule. [2]: Per our other conversions, I know the tegra ones are in this unfortunate state in generalOn the Tegra side we've been fairly lax about the device trees in U-Boot, I suppose. The assumption had always been that U-Boot would load an external DTB and pass it to the kernel on boot, so keeping them both in sync was never a high priority.
Quoted 8 lines
U-Boot does only a very tiny amount of what Linux does, so dropping in the kernel DTB always seemed a bit overkill.
In either case, if this is problematic, it's something that I could take a look at. Again, it's expected that the device trees are different, for historical reasons, but I'd be surprised if they actually conflict with one another. U-Boot's DTB was always supposed to be a subset of the Linux DTB.
So, the issue with U-Boot and kernel device trees being out of sync is that we then can't support the model of "just pass the current DT to the OS". This in general is good to support because it means that even if a given platform isn't formally SystemReady IR certified it's still likely to be functional.
Quoted 7 lines
Quoted 4 lines
The most strict rule is that you can't have bindings in U-Boot that conflict with the kernel, or should be in the kernel but aren't, and so on.
So you say that U-Boot should support only components which have linux driver? May you clarify?
I think Tom is referring specifically to the bindings only. While it's certainly preferable to have drivers in Linux for all bindings, that's never been a strict requirement.
Thierry
Quoted 95 lines · Thierry Reding
Quoted 94 lines · Svyatoslav Ryhel
15 листопада 2023 р. 21:11:49 GMT+02:00, Tom Rini <[email protected]> написав(-ла):
Quoted 90 lines · Thierry Reding
Quoted 70 lines · Tom Rini
Quoted 50 lines · Peter Robinson
Quoted 30 lines · Svyatoslav Ryhel
Quoted 29 lines
пн, 6 лист. 2023 р. о 15:13 Peter Robinson <[email protected]> пише:
Quoted 26 lines · Svyatoslav Ryhel
Quoted 12 lines
пн, 6 лист. 2023 р. о 13:46 Peter Robinson <[email protected]> пише:
Quoted 10 lines
Hi Svyatoslav,
Quoted 6 lines
Since the proposed PMIC patches have been accepted, I see the need to convert boards which I maintain to use DM drivers instead of board hacks.
Svyatoslav Ryhel (5):
board: lg-x3: convert LG Optimus 4X and Vu to use DM PMIC
board: endeavoru: convert HTC One X to use DM PMICQuoted 8 lines
Quoted 3 lines
Is there a reason why the two above devices don't appear to have their .dts files in the upstream kernel?
Yes, there is a reason. Linux maintainers treat submitters as existential enemies or as dirt at least. I was trying to work with linux but I have no desire to spend any time to upstream endeavoru or
lg_x3.The usual policy for acceptance into U-Boot is to have upstream review in the kernel first.
Quoted 6 lines
Quoted 2 lines
May you point to a policy which clearly and explicitly states this as a mandatory condition?
There have been a number of devices rejected in the past until their DT are upstream but I'll leave Tom, who I've explicitly added on cc:, to clarify the exact policy.
Well, here is where it's tricky. I brought this up for one of the Broadcom MIPS platforms a week or two back, and Linus Walleij's point (and I'm paraphrasing) is there's not really an upstream for it to go.
What we cannot have is device tree bindings[1] that aren't upstream or worse yet conflict with the official bindings.
So the general way to resolve that is have device tree file be drop-in from the linux kernel, and what additions we must have be done via
-u-boot.dtsifiles. And in turn, some SoCs are better about keeping in sync with the kernel than other SoCs are.Quoted 13 lines
Now, upstream being actively hostile to dts files, especially for older platforms? That's unfortunate. So long as we aren't violating the rules about bindings, the intention is that we don't have device trees that are either (a) massively out of sync with the kernel[2] or (b) kept intentionally mismatched from the kernel.
Signature · 6 lines
Tom [1]: There are both examples like binman that Simon is working on at least but this is more exception than intentional rule. [2]: Per our other conversions, I know the tegra ones are in this unfortunate state in generalOn the Tegra side we've been fairly lax about the device trees in U-Boot, I suppose. The assumption had always been that U-Boot would load an external DTB and pass it to the kernel on boot, so keeping them both in sync was never a high priority.
Quoted 8 lines
U-Boot does only a very tiny amount of what Linux does, so dropping in the kernel DTB always seemed a bit overkill.
In either case, if this is problematic, it's something that I could take a look at. Again, it's expected that the device trees are different, for historical reasons, but I'd be surprised if they actually conflict with one another. U-Boot's DTB was always supposed to be a subset of the Linux DTB.
So, the issue with U-Boot and kernel device trees being out of sync is that we then can't support the model of "just pass the current DT to the OS". This in general is good to support because it means that even if a given platform isn't formally SystemReady IR certified it's still likely to be functional.
The most strict rule is that you can't have bindings in U-Boot that conflict with the kernel, or should be in the kernel but aren't, and so on.
Quoted 6 lines
Quoted 2 lines
So you say that U-Boot should support only components which have linux driver? May you clarify?
I think Tom is referring specifically to the bindings only. While it's certainly preferable to have drivers in Linux for all bindings, that's never been a strict requirement.
All bindings must be upstreamed and we've been working with Rob (and he's been receptive) on this point. There's U-Boot specific bindings, even, now and those in turn pass validation in the kernel and can be synced in here. Can you give an example of what you're concerned about Svyatoslav?
Signature · 1 line
Tom