[PATCH v2 3/9] test: Add tests for SOC uclass

2020-07-15 Thread Dave Gerlach
Add a sandbox SOC driver, and some tests for the SOC uclass. Reviewed-by: Simon Glass Signed-off-by: Dave Gerlach --- arch/sandbox/dts/test.dts | 4 + configs/sandbox64_defconfig| 1 + configs/sandbox_defconfig | 1 + configs/sandbox_flattree_defconfig | 1

[PATCH v2 9/9] arm: mach-k3: Use SOC driver for device identification

2020-07-15 Thread Dave Gerlach
Make use of UCLASS_SOC to find device family and revision for print_cpuinfo. Signed-off-by: Dave Gerlach --- arch/arm/mach-k3/common.c| 48 ++-- arch/arm/mach-k3/common.h| 6 --- arch/arm/mach-k3/include/mach/hardware.h | 1 - 3 files

[PATCH v2 6/9] arm: dts: k3-j721e-mcu-wakeup: Introduce chipid node

2020-07-15 Thread Dave Gerlach
Introduce a chipid node to provide a UCLASS_SOC driver to identify TI K3 SoCs. Signed-off-by: Dave Gerlach --- arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi | 4 arch/arm/dts/k3-j721e-mcu-wakeup.dtsi | 5 + 2 files changed, 9 insertions(+) diff --git a/arch/arm/dts

[PATCH v2 1/9] doc: Add new doc for soc ID driver model

2020-07-15 Thread Dave Gerlach
Add a new documentation file for UCLASS_SOC and its usage to describe the SoC Device ID framework that allows SoC identification and device data matching. Signed-off-by: Dave Gerlach --- doc/driver-model/index.rst | 1 + doc/driver-model/soc-framework.rst | 68

[PATCH v2 2/9] dm: soc: Introduce UCLASS_SOC for SOC ID and attribute matching

2020-07-15 Thread Dave Gerlach
drivers that may need different parameters or quirks enabled depending on the specific device variant in use. Reviewed-by: Simon Glass Signed-off-by: Dave Gerlach --- drivers/soc/Kconfig | 9 +++ drivers/soc/Makefile | 1 + drivers/soc/soc-uclass.c | 102

[PATCH v2 7/9] configs: am65x_evm: Enable CONFIG_SOC_DEVICE and CONFIG_SOC_DEVICE_TI_K3

2020-07-15 Thread Dave Gerlach
Enable CONFIG_SOC_DEVICE and CONFIG_SOC_DEVICE_TI_K3 so the TI K3 SoC driver can be used for SoC detection. Signed-off-by: Dave Gerlach --- configs/am65x_evm_a53_defconfig| 2 ++ configs/am65x_evm_r5_defconfig | 2 ++ configs/am65x_hs_evm_a53_defconfig | 2 ++ configs

[PATCH v2 0/9] Introduce UCLASS_SOC

2020-07-15 Thread Dave Gerlach
for soc_device_match. And a change to SOC Revision macro naming in the soc_ti_k3 driver to use SR consistently instead of PG. Regards, Dave [1] https://lists.denx.de/pipermail/u-boot/2020-June/418109.html Dave Gerlach (9): doc: Add new doc for soc ID driver model dm: soc: Introduce UCLASS_SOC for SOC

[PATCH v2 4/9] dm: soc: Introduce soc_ti_k3 driver for TI K3 SoCs

2020-07-15 Thread Dave Gerlach
/spruil1a.pdf Signed-off-by: Dave Gerlach --- drivers/soc/Kconfig | 7 +++ drivers/soc/Makefile| 1 + drivers/soc/soc_ti_k3.c | 124 3 files changed, 132 insertions(+) create mode 100644 drivers/soc/soc_ti_k3.c diff --git a/drivers/soc/Kconfig b/drivers

[PATCH v2 5/9] arm: dts: k3-am65-wakeup: Introduce chipid node

2020-07-15 Thread Dave Gerlach
Introduce a chipid node to provide a UCLASS_SOC driver to identify TI K3 SoCs. Signed-off-by: Dave Gerlach --- arch/arm/dts/k3-am65-wakeup.dtsi | 5 + arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 4 2 files changed, 9 insertions(+) diff --git a/arch/arm/dts/k3-am65

[PATCH v2 8/9] configs: j721e_evm: Enable CONFIG_SOC_DEVICE and CONFIG_SOC_DEVICE_TI_K3

2020-07-15 Thread Dave Gerlach
Enable CONFIG_SOC_DEVICE and CONFIG_SOC_DEVICE_TI_K3 so the TI K3 SoC driver can be used for SoC detection. Signed-off-by: Dave Gerlach --- configs/j721e_evm_a72_defconfig| 2 ++ configs/j721e_evm_r5_defconfig | 2 ++ configs/j721e_hs_evm_a72_defconfig | 2 ++ configs

Re: [PATCH 1/8] dm: soc: Introduce UCLASS_SOC for SOC ID and attribute matching

2020-07-08 Thread Dave Gerlach
Simon, On 7/2/20 10:50 PM, Simon Glass wrote: On Mon, 29 Jun 2020 at 22:38, Dave Gerlach wrote: Introduce UCLASS_SOC to be used for SOC identification and attribute matching based on the SoC ID info. This allows drivers to be provided for SoCs to retrieve SoC identifying information and also

Re: [PATCH 1/8] dm: soc: Introduce UCLASS_SOC for SOC ID and attribute matching

2020-07-08 Thread Dave Gerlach
Tom, On 6/30/20 7:43 AM, Tom Rini wrote: On Mon, Jun 29, 2020 at 11:38:46PM -0500, Dave Gerlach wrote: Introduce UCLASS_SOC to be used for SOC identification and attribute matching based on the SoC ID info. This allows drivers to be provided for SoCs to retrieve SoC identifying information

[PATCH 6/8] configs: am65x_evm: Enable CONFIG_SOC_DEVICE and CONFIG_SOC_DEVICE_TI_K3

2020-06-30 Thread Dave Gerlach
Enable CONFIG_SOC_DEVICE and CONFIG_SOC_DEVICE_TI_K3 so the TI K3 SoC driver can be used for SoC detection. Signed-off-by: Dave Gerlach --- configs/am65x_evm_a53_defconfig| 2 ++ configs/am65x_evm_r5_defconfig | 2 ++ configs/am65x_hs_evm_a53_defconfig | 2 ++ configs

[PATCH 0/8] Introduce UCLASS_SOC

2020-06-30 Thread Dave Gerlach
using soc_device_match. Regards, Dave Dave Gerlach (8): dm: soc: Introduce UCLASS_SOC for SOC ID and attribute matching test: Add tests for SOC uclass dm: soc: Introduce soc_ti_k3 driver for TI K3 SoCs arm: dts: k3-am65-wakeup: Introduce chipid node arm: dts: k3-j721e-mcu-wakeup: Introduce

[PATCH 1/8] dm: soc: Introduce UCLASS_SOC for SOC ID and attribute matching

2020-06-30 Thread Dave Gerlach
drivers that may need different parameters or quirks enabled depending on the specific device variant in use. Signed-off-by: Dave Gerlach --- drivers/soc/Kconfig | 9 +++ drivers/soc/Makefile | 1 + drivers/soc/soc-uclass.c | 102 ++ include/dm/uclass-id.h

[PATCH 5/8] arm: dts: k3-j721e-mcu-wakeup: Introduce chipid node

2020-06-30 Thread Dave Gerlach
Introduce a chipid node to provide a UCLASS_SOC driver to identify TI K3 SoCs. Signed-off-by: Dave Gerlach --- arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi | 4 arch/arm/dts/k3-j721e-mcu-wakeup.dtsi | 5 + 2 files changed, 9 insertions(+) diff --git a/arch/arm/dts

[PATCH 2/8] test: Add tests for SOC uclass

2020-06-30 Thread Dave Gerlach
Add a sandbox SOC driver, and some tests for the SOC uclass. Signed-off-by: Dave Gerlach --- arch/sandbox/dts/test.dts | 4 + configs/sandbox64_defconfig| 1 + configs/sandbox_defconfig | 1 + configs/sandbox_flattree_defconfig | 1 + configs

[PATCH 8/8] arm: mach-k3: Use SOC driver for device identification

2020-06-30 Thread Dave Gerlach
Make use of UCLASS_SOC to find device family and revision for print_cpuinfo. Signed-off-by: Dave Gerlach --- arch/arm/mach-k3/common.c| 48 ++-- arch/arm/mach-k3/include/mach/hardware.h | 1 - 2 files changed, 19 insertions(+), 30 deletions(-) diff --git

[PATCH 7/8] configs: j721e_evm: Enable CONFIG_SOC_DEVICE and CONFIG_SOC_DEVICE_TI_K3

2020-06-30 Thread Dave Gerlach
Enable CONFIG_SOC_DEVICE and CONFIG_SOC_DEVICE_TI_K3 so the TI K3 SoC driver can be used for SoC detection. Signed-off-by: Dave Gerlach --- configs/j721e_evm_a72_defconfig| 2 ++ configs/j721e_evm_r5_defconfig | 2 ++ configs/j721e_hs_evm_a72_defconfig | 2 ++ configs

[PATCH 4/8] arm: dts: k3-am65-wakeup: Introduce chipid node

2020-06-30 Thread Dave Gerlach
Introduce a chipid node to provide a UCLASS_SOC driver to identify TI K3 SoCs. Signed-off-by: Dave Gerlach --- arch/arm/dts/k3-am65-wakeup.dtsi | 5 + arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 4 2 files changed, 9 insertions(+) diff --git a/arch/arm/dts/k3-am65

[PATCH 3/8] dm: soc: Introduce soc_ti_k3 driver for TI K3 SoCs

2020-06-30 Thread Dave Gerlach
/spruil1a.pdf Signed-off-by: Dave Gerlach --- drivers/soc/Kconfig | 7 +++ drivers/soc/Makefile| 1 + drivers/soc/soc_ti_k3.c | 124 3 files changed, 132 insertions(+) create mode 100644 drivers/soc/soc_ti_k3.c diff --git a/drivers/soc/Kconfig b/drivers