Add GPIO hog support
Subsystems (3)
PATCH 2/6 gpio: add gpio-hog support
In reply to Eddie JamesFrom: Heiko Schocher <[email protected]>
add gpio-hog support. GPIO hogging is a mechanism providing automatic GPIO request and configuration as part of the gpio-controller's driver probe function.
for more infos see:doc/device-tree-bindings/gpio/gpio.txt
--- common/board_r.c | 6 + doc/device-tree-bindings/gpio/gpio.txt | 55 ++++++++ drivers/gpio/Kconfig | 10 ++ drivers/gpio/gpio-uclass.c | 181 ++++++++++++++++++++++--- include/asm-generic/gpio.h | 32 +++++ 5 files changed, 268 insertions(+), 16 deletions(-)
common/board_r.c +6 -0
@@ -48,6 +48,9 @@#include <linux/compiler.h> #include <linux/err.h> #include <efi_loader.h> +#if defined(CONFIG_DM_GPIO_HOG ) +#include <asm/gpio.h> +#endif DECLARE_GLOBAL_DATA_PTR ;
@@ -785,6 +788,9 @@ static init_fnc_t init_sequence_r[] = {#ifdef CONFIG_CMD_NET initr_ethaddr,#endif +#if defined(CONFIG_DM_GPIO_HOG ) + gpio_hog_probe_all, +#endif #ifdef CONFIG_BOARD_LATE_INIT board_late_init,#endif
doc/device-tree-bindings/gpio/gpio.txt +55 -0
58 lines not on this page · raw message
drivers/gpio/Kconfig +10 -0
@@ -14,6 +14,16 @@ config DM_GPIO particular GPIOs that they provide. The uclass interface is defined in include/asm-generic/gpio.h. +config DM_GPIO_HOG + bool "Enable GPIO hog support" + depends on DM_GPIO + default n + help + Enable gpio hog support + The GPIO chip may contain GPIO hog definitions. GPIO hogging + is a mechanism providing automatic GPIO request and config- + uration as part of the gpio-controller's driver probe function. + config ALTERA_PIO bool "Altera PIO driver" depends on DM_GPIO
drivers/gpio/gpio-uclass.c +165 -16
249 lines not on this page · raw message
include/asm-generic/gpio.h +32 -0
@@ -348,6 +348,22 @@ const char *gpio_get_bank_info(struct udevice *dev, int *offset_count);*/ int dm_gpio_lookup_name (const char *name,struct gpio_desc *desc); +/** +* gpio_hog_lookup_name() - Look up a named GPIO and return the gpio descr. +* +* @name: Name to look up +* @return: Returns gpio_desc for gpio +*/ +struct gpio_desc *gpio_hog_lookup_name (const char *name); + +/** +* gpio_hog_probe_all() - probe all gpio devices with +* gpio-hog subnodes. +* +* @return: Returns return value from device_probe() +*/ +int gpio_hog_probe_all (void ); +/** * gpio_lookup_name - Look up a GPIO name and return its details *
@@ -503,6 +519,22 @@ int gpio_request_list_by_name_nodev(ofnode node, const char *list_name, struct gpio_desc *desc_list, int max_count, int flags); +/** +* gpio_dev_request_index() - request single GPIO from gpio device +* +* @dev: GPIO device +* @nodename: Name of node +* @list_name: Name of GPIO list (e.g. "board-id-gpios") +* @index: Index number of the GPIO in that list use request (0=first) +* @flags: GPIOD_* flags +* @dtflags: GPIO flags read from DT +* @desc: GPIO descriotor filled from this function +* @return: return value from gpio_request_tail() +*/ +int gpio_dev_request_index (struct udevice *dev,const char *nodename, +char *list_name,int index,int flags, +int dtflags,struct gpio_desc *desc); +/** * dm_gpio_free() - Free a single GPIO *
Signature · 1 line
2.27.0
PATCH 3/6 gpio: fixes for gpio-hog support
In reply to Eddie JamesFrom: Heiko Schocher <[email protected]>
recently added gpio hog patch was "in discussion"
state with Simon Glass. This patch now adds most
of comments from Simon Glass.
--- common/board_r.c | 4 +- doc/device-tree-bindings/gpio/gpio.txt | 17 ++-- drivers/gpio/Kconfig | 2 +- drivers/gpio/gpio-uclass.c | 103 ++++++++++++++++++------- include/asm-generic/gpio.h | 12 +-- 5 files changed, 96 insertions(+), 42 deletions(-)
common/board_r.c +2 -2
@@ -48,7 +48,7 @@#include <linux/compiler.h> #include <linux/err.h> #include <efi_loader.h> -#if defined(CONFIG_DM_GPIO_HOG ) +#if defined(CONFIG_GPIO_HOG )#include <asm/gpio.h> #endif
@@ -788,7 +788,7 @@ static init_fnc_t init_sequence_r[] = {#ifdef CONFIG_CMD_NET initr_ethaddr,#endif -#if defined(CONFIG_DM_GPIO_HOG ) +#if defined(CONFIG_GPIO_HOG ) gpio_hog_probe_all,#endif #ifdef CONFIG_BOARD_LATE_INIT
doc/device-tree-bindings/gpio/gpio.txt +11 -6
@@ -252,6 +252,7 @@ Example: boot_rescue { gpio-hog; input; + line-name = "foo-bar-gpio"; gpios = <7 GPIO_ACTIVE_LOW>; }; };
@@ -259,9 +260,13 @@ Example: For the above Example you can than access the gpio in your boardcode with: - desc = gpio_hog_lookup_name("boot_rescue.gpio-hog"); - if (desc) { - if (dm_gpio_get_value(desc)) - printf("\nBooting into Rescue System\n"); - else - printf("\nBoot normal\n"); + struct gpio_desc *desc; + int ret; + + ret = gpio_hog_lookup_name("boot_rescue", &desc); + if (ret) + return; + if (dm_gpio_get_value(desc) == 1) + printf("\nBooting into Rescue System\n"); + else if (dm_gpio_get_value(desc) == 0) + printf("\nBoot normal\n");
drivers/gpio/Kconfig +1 -1
@@ -14,7 +14,7 @@ config DM_GPIO particular GPIOs that they provide. The uclass interface is defined in include/asm-generic/gpio.h. -config DM_GPIO_HOG +config GPIO_HOG bool "Enable GPIO hog support" depends on DM_GPIO default n
drivers/gpio/gpio-uclass.c +75 -28
187 lines not on this page · raw message
include/asm-generic/gpio.h +7 -5
@@ -352,9 +352,10 @@ int dm_gpio_lookup_name(const char *name, struct gpio_desc *desc);* gpio_hog_lookup_name() - Look up a named GPIO and return the gpio descr. * * @name: Name to look up -* @return: Returns gpio_desc for gpio +* @desc: Returns GPIO description, on success, else NULL +* @return: Returns 0 if OK, else -ENODEV */ -struct gpio_desc *gpio_hog_lookup_name (const char *name); +int gpio_hog_lookup_name (const char *name,struct gpio_desc **desc);/** * gpio_hog_probe_all() - probe all gpio devices with
@@ -523,12 +524,13 @@ int gpio_request_list_by_name_nodev(ofnode node, const char *list_name,* gpio_dev_request_index() - request single GPIO from gpio device * * @dev: GPIO device -* @nodename: Name of node +* @nodename: Name of node for which gpio gets requested, used +* for the gpio label name * @list_name: Name of GPIO list (e.g. "board-id-gpios") * @index: Index number of the GPIO in that list use request (0=first) * @flags: GPIOD_* flags -* @dtflags: GPIO flags read from DT -* @desc: GPIO descriotor filled from this function +* @dtflags: GPIO flags read from DT defined see GPIOD_* +* @desc: returns GPIO descriptor filled from this function * @return: return value from gpio_request_tail() */ int gpio_dev_request_index(struct udevice *dev, const char *nodename,
Signature · 1 line
2.27.0
PATCH 4/6 gpio: Enable hogging support in SPL
In reply to Eddie JamesUse the CONFIG macros to conditionally build the GPIO hogging support in either the SPL or U-Boot, or both, depending on the configuration. Also call the GPIO hog probe function in the common SPL board initialization as an equivalent to adding it to the U-Boot init sequence functions.
--- common/spl/spl.c | 7 +++++++ drivers/gpio/Kconfig | 10 ++++++++++ drivers/gpio/gpio-uclass.c | 12 +++++++----- 3 files changed, 24 insertions(+), 5 deletions(-)
common/spl/spl.c +7 -0
@@ -12,6 +12,9 @@#include <dm.h> #include <handoff.h> #include <spl.h> +#if defined(CONFIG_SPL_GPIO_HOG ) +#include <asm/gpio.h> +#endif #include <asm/sections.h> #include <asm/u-boot.h> #include <nand.h>
@@ -652,6 +655,10 @@ void board_init_r(gd_t *dummy1, ulong dummy2)timer_init ();#endif +#if defined(CONFIG_SPL_GPIO_HOG ) +gpio_hog_probe_all (); +#endif +#if CONFIG_IS_ENABLED (BOARD_INIT )spl_board_init ();#endif
drivers/gpio/Kconfig +10 -0
@@ -24,6 +24,16 @@ config GPIO_HOG is a mechanism providing automatic GPIO request and config- uration as part of the gpio-controller's driver probe function. +config SPL_GPIO_HOG + bool "Enable GPIO hog support in SPL" + depends on SPL_GPIO_SUPPORT + default n + help + Enable gpio hog support + The GPIO chip may contain GPIO hog definitions. GPIO hogging + is a mechanism providing automatic GPIO request and config- + uration as part of the gpio-controller's driver probe function. + config ALTERA_PIO bool "Altera PIO driver" depends on DM_GPIO
drivers/gpio/gpio-uclass.c +7 -5
@@ -144,7 +144,7 @@ static int gpio_find_and_xlate(struct gpio_desc *desc,return gpio_xlate_offs_flags (desc->dev, desc, args); } -#if defined(CONFIG_GPIO_HOG) +#if CONFIG_IS_ENABLED(GPIO_HOG) struct gpio_hog_priv { struct gpio_desc gpiod;
@@ -1033,9 +1033,6 @@ int gpio_dev_request_index(struct udevice *dev, const char *nodename,static int gpio_post_bind (struct udevice *dev) { -struct udevice *child; -ofnode node; -#if defined(CONFIG_NEEDS_MANUAL_RELOC )struct dm_gpio_ops *ops = (struct dm_gpio_ops *)device_get_ops (dev);static int reloc_done;
@@ -1066,7 +1063,11 @@ static int gpio_post_bind(struct udevice *dev) }#endif -if (IS_ENABLED (CONFIG_GPIO_HOG )) { +#if CONFIG_IS_ENABLED (GPIO_HOG ) + { +struct udevice *child; +ofnode node; +dev_for_each_subnode (node, dev) {if (ofnode_read_bool (node,"gpio-hog" )) {const char *name =ofnode_get_name (node);
@@ -1081,6 +1082,7 @@ static int gpio_post_bind(struct udevice *dev) } } } +#endif return 0 ; }
Signature · 1 line
2.27.0
PATCH 1/6 dm: Add a No-op uclass
In reply to Eddie JamesFrom: Jean-Jacques Hiblot <[email protected]>
This uclass is intended for devices that do not need any features from the uclass, including binding children.
This will typically be used by devices that are used to bind child devices but do not use dm_scan_fdt_dev() to do it. That is for example the case of several USB wrappers that have 2 child devices (1 for device and 1 for host) but bind only one at a any given time.
--- arch/sandbox/dts/test.dts | 12 +++++++ drivers/core/uclass.c | 5 +++ include/dm/uclass-id.h | 1 + test/dm/Makefile | 1 + test/dm/nop.c | 73 +++++++++++++++++++++++++++++++++++++++ 5 files changed, 92 insertions(+) create mode 100644 test/dm/nop.c
arch/sandbox/dts/test.dts +12 -0
@@ -400,6 +400,18 @@ sandbox,silent; /* Don't emit sounds while testing */ }; + nop-test_0 { + compatible = "sandbox,nop_sandbox1"; + nop-test_1 { + compatible = "sandbox,nop_sandbox2"; + bind = "True"; + }; + nop-test_2 { + compatible = "sandbox,nop_sandbox2"; + bind = "False"; + }; + }; + misc-test { compatible = "sandbox,misc_sandbox"; };
drivers/core/uclass.c +5 -0
@@ -757,3 +757,8 @@ int uclass_pre_remove_device(struct udevice *dev) return 0; }#endif + +UCLASS_DRIVER (nop) = { + .id =UCLASS_NOP , + .name ="nop" , +};
include/dm/uclass-id.h +1 -0
@@ -62,6 +62,7 @@ enum uclass_id {UCLASS_MMC ,/* SD / MMC card or chip */ UCLASS_MOD_EXP ,/* RSA Mod Exp device */ UCLASS_MTD ,/* Memory Technology Device (MTD) device */ +UCLASS_NOP ,/* No-op devices */ UCLASS_NORTHBRIDGE ,/* Intel Northbridge / SDRAM controller */ UCLASS_NVME ,/* NVM Express device */ UCLASS_PANEL, /* Display panel, such as an LCD */
test/dm/Makefile +1 -0
@@ -3,6 +3,7 @@ # Copyright (c) 2013 Google, Inc obj-$(CONFIG_UT_DM) += bus.o +obj-$(CONFIG_UT_DM) += nop.o obj-$(CONFIG_UT_DM) += test-driver.o obj-$(CONFIG_UT_DM) += test-fdt.o obj-$(CONFIG_UT_DM) += test-main.o
test/dm/nop.c new file +73 -0
73 lines not on this page · raw message
Signature · 1 line
2.27.0
cover Add GPIO hog support
This series adds support for GPIO hogging based on upstream patches. I added additional support for hogging in the SPL, and enabled this for the AST2600 "rainier" openbmc platform.
Eddie James (3):
gpio: Enable hogging support in SPL
Add GPIO hogging support for AST2600 openbmc config
ast2600: Add GPIO controller and hog TPM reset pin
Heiko Schocher (2):
gpio: add gpio-hog support
gpio: fixes for gpio-hog support
Jean-Jacques Hiblot (1):
dm: Add a No-op uclass
arch/arm/dts/ast2600-rainier.dts | 11 + arch/sandbox/dts/test.dts | 12 ++ common/board_r.c | 6 + common/spl/spl.c | 7 + configs/ast2600_openbmc_spl_emmc_defconfig | 4 +- doc/device-tree-bindings/gpio/gpio.txt | 60 ++++++ drivers/core/uclass.c | 5 + drivers/gpio/Kconfig | 20 ++ drivers/gpio/gpio-uclass.c | 230 +++++++++++++++++++-- include/asm-generic/gpio.h | 34 +++ include/dm/uclass-id.h | 1 + test/dm/Makefile | 1 + test/dm/nop.c | 73 +++++++ 13 files changed, 447 insertions(+), 17 deletions(-) create mode 100644 test/dm/nop.c
Signature · 1 line
2.27.0
PATCH 6/6 ast2600: Add GPIO controller and hog TPM reset pin
Hog the GPIO pin to reset the TPM.
--- arch/arm/dts/ast2600-rainier.dts | 11 +++++++++++ 1 file changed, 11 insertions(+)
arch/arm/dts/ast2600-rainier.dts +11 -0
@@ -108,3 +108,14 @@ u-boot,dm-pre-reloc; status = "okay"; }; + +&gpio0 { + u-boot,dm-pre-reloc; + + tpm_reset { + u-boot,dm-pre-reloc; + gpio-hog; + output-high; + gpios = <ASPEED_GPIO(R, 0) GPIO_ACTIVE_HIGH>; + }; +};
Signature · 1 line
2.27.0
PATCH 5/6 Add GPIO hogging support for AST2600 openbmc config
In reply to Eddie JamesEnable GPIO support in the SPL and hog the GPIOs in the SPL only. Also increase the size of the malloc size in the SPL to get the GPIO driver loaded.
--- configs/ast2600_openbmc_spl_emmc_defconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
configs/ast2600_openbmc_spl_emmc_defconfig +3 -1
@@ -11,6 +11,7 @@ CONFIG_SYS_TEXT_BASE=0x81000000 CONFIG_ASPEED_AST2600=y # CONFIG_ASPEED_LOADERS is not set CONFIG_TARGET_EVB_AST2600A1=y +CONFIG_SPL_GPIO_SUPPORT=y CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y CONFIG_SYS_MALLOC_F_LEN=0x2000
@@ -19,7 +20,7 @@ CONFIG_SPL_SERIAL_SUPPORT=y CONFIG_SPL_DRIVERS_MISC_SUPPORT=y CONFIG_ENV_SIZE=0x10000 CONFIG_ENV_OFFSET=0x5000 -CONFIG_SPL_SYS_MALLOC_F_LEN=0x800 +CONFIG_SPL_SYS_MALLOC_F_LEN=0x1000 CONFIG_SPL=y CONFIG_SPL_STACK_R_ADDR=0x90300000 CONFIG_ARMV7_BOOT_SEC_DEFAULT=y
@@ -94,6 +95,7 @@ CONFIG_CLK=y CONFIG_SPL_CLK=y CONFIG_ASPEED_HACE=y CONFIG_DM_GPIO=y +CONFIG_SPL_GPIO_HOG=y CONFIG_ASPEED_GPIO=y CONFIG_DM_I2C=y CONFIG_SYS_I2C_ASPEED=y
Signature · 1 line
2.27.0
Re: [PATCH U-Boot v2019.04-aspeed-openbmc 1/6] dm: Add a No-op uclass
In reply to Eddie JamesQuoted 8 lines · Eddie James
From: Jean-Jacques Hiblot <[email protected]>
This uclass is intended for devices that do not need any features from the uclass, including binding children.
This will typically be used by devices that are used to bind child devices but do not usedm_scan_fdt_dev()to do it. That is for example the case of several USB wrappers that have 2 child devices (1 for device and 1 for host) but bind only one at a any given time.
(cherry-picked from 07e33711fec4f1106f36805b5dc830da07c783c5) ?
Quoted 2 lines
Signed-off-by Jean-Jacques Hiblot <[email protected]>Reviewed-by Simon Glass <[email protected]>
Re: [PATCH U-Boot v2019.04-aspeed-openbmc 2/6] gpio: add gpio-hog support
In reply to Eddie JamesQuoted 9 lines · Eddie James
From: Heiko Schocher <[email protected]>
add gpio-hog support. GPIO hogging is a mechanism providing automatic GPIO request and configuration as part of the gpio-controller's driver probe function.
for more infos see:
doc/device-tree-bindings/gpio/gpio.txt
(cherry-picked from 5fc7cf8c8e268590f3b0037eecea7f6798209f78) ?
Quoted 3 lines
Signed-off-by Heiko Schocher <[email protected]>Tested-by Patrick Delaunay <[email protected]>
Re: [PATCH U-Boot v2019.04-aspeed-openbmc 3/6] gpio: fixes for gpio-hog support
In reply to Eddie JamesQuoted 7 lines · Eddie James
From: Heiko Schocher <[email protected]>
recently added gpio hog patch was "in discussion"
state with Simon Glass. This patch now adds most
of comments from Simon Glass.Signed-off-by Heiko Schocher <[email protected]>
Cherry-picked from 49b10cb4926285b856b207c1f5bb40c75487f08b ?
Re: [PATCH U-Boot v2019.04-aspeed-openbmc 4/6] gpio: Enable hogging support in SPL
In reply to Eddie JamesQuoted 83 lines · Eddie James
Use the CONFIG macros to conditionally build the GPIO hogging support in either the SPL or U-Boot, or both, depending on the configuration. Also call the GPIO hog probe function in the common SPL board initialization as an equivalent to adding it to the U-Boot init sequence functions.
Signed-off-by Eddie James <[email protected]>--- common/spl/spl.c | 7 +++++++ drivers/gpio/Kconfig | 10 ++++++++++ drivers/gpio/gpio-uclass.c | 12 +++++++----- 3 files changed, 24 insertions(+), 5 deletions(-)common/spl/spl.c +7
-0@@ -12,6 +12,9 @@#include <dm.h> #include <handoff.h> #include <spl.h> +#if defined(CONFIG_SPL_GPIO_HOG ) +#include <asm/gpio.h> +#endif #include <asm/sections.h> #include <asm/u-boot.h> #include <nand.h> @@ -652,6 +655,10 @@ void board_init_r(gd_t *dummy1, ulong dummy2)timer_init ();#endif +#if defined(CONFIG_SPL_GPIO_HOG ) +gpio_hog_probe_all (); +#endif +#if CONFIG_IS_ENABLED (BOARD_INIT )spl_board_init ();#endif drivers/gpio/Kconfig +10
-0@@ -24,6 +24,16 @@ config GPIO_HOG is a mechanism providing automatic GPIO request and config- uration as part of the gpio-controller's driver probe function. +config SPL_GPIO_HOG + bool "Enable GPIO hog support in SPL" + depends on SPL_GPIO_SUPPORT + default n + help + Enable gpio hog support + The GPIO chip may contain GPIO hog definitions. GPIO hogging + is a mechanism providing automatic GPIO request and config- + uration as part of the gpio-controller's driver probe function. + config ALTERA_PIO bool "Altera PIO driver" depends on DM_GPIOdrivers/gpio/gpio-uclass.c +1
-4@@ -144,7 +144,7 @@ static int gpio_find_and_xlate(struct gpio_desc *desc,return gpio_xlate_offs_flags (desc->dev, desc, args); } -#if defined(CONFIG_GPIO_HOG) +#if CONFIG_IS_ENABLED(GPIO_HOG) struct gpio_hog_priv { struct gpio_desc gpiod;@@ -1033,9 +1033,6 @@ int gpio_dev_request_index(struct udevice *dev,const char *nodename, static int gpio_post_bind(struct udevice *dev) { - struct udevice *child; -ofnode node; - #if defined(CONFIG_NEEDS_MANUAL_RELOC) struct dm_gpio_ops *ops = (struct dm_gpio_ops *)device_get_ops(dev);drivers/gpio/gpio-uclass.c +0
-0static int reloc_done;
drivers/gpio/gpio-uclass.c static int gpio_post_bind(struct udevice *dev) · line 1066
Quoted 5 lines
drivers/gpio/gpio-uclass.c +1
-1@@ -1066,7 +1063,11 @@ static int gpio_post_bind(struct udevice *dev) }#endif -if (IS_ENABLED (CONFIG_GPIO_HOG )) { +#if CONFIG_IS_ENABLED (GPIO_HOG )
Why switch to a CPP conditional here?
I mean, it's not clear why there was a choice for a C conditional originally, so I'm curious either way.
Otherwise:
Re: [PATCH U-Boot v2019.04-aspeed-openbmc 5/6] Add GPIO hogging support for AST2600 openbmc config
In reply to Eddie JamesQuoted 23 lines · Eddie James
Enable GPIO support in the SPL and hog the GPIOs in the SPL only. Also increase the size of the malloc size in the SPL to get the GPIO driver loaded.
Signed-off-by Eddie James <[email protected]>--- configs/ast2600_openbmc_spl_emmc_defconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)configs/ast2600_openbmc_spl_emmc_defconfig +1
-0@@ -11,6 +11,7 @@ CONFIG_SYS_TEXT_BASE=0x81000000 CONFIG_ASPEED_AST2600=y # CONFIG_ASPEED_LOADERS is not set CONFIG_TARGET_EVB_AST2600A1=y +CONFIG_SPL_GPIO_SUPPORT=y CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y CONFIG_SYS_MALLOC_F_LEN=0x2000
configs/ast2600_openbmc_spl_emmc_defconfig CONFIG_SPL_SERIAL_SUPPORT=y · line 23
Quoted 5 lines
configs/ast2600_openbmc_spl_emmc_defconfig +1
-1@@ -19,7 +20,7 @@ CONFIG_SPL_SERIAL_SUPPORT=y CONFIG_SPL_DRIVERS_MISC_SUPPORT=y CONFIG_ENV_SIZE=0x10000 CONFIG_ENV_OFFSET=0x5000 -CONFIG_SPL_SYS_MALLOC_F_LEN=0x800 +CONFIG_SPL_SYS_MALLOC_F_LEN=0x1000
How much capacity does this leave us with? Have you looked at the memory layout for the SPL (I haven't, so any legwork you do here is appreciated ;) )?
Quoted 13 lines
configs/ast2600_openbmc_spl_emmc_defconfig +1
-0CONFIG_SPL=y CONFIG_SPL_STACK_R_ADDR=0x90300000 CONFIG_ARMV7_BOOT_SEC_DEFAULT=y@@ -94,6 +95,7 @@ CONFIG_CLK=y CONFIG_SPL_CLK=y CONFIG_ASPEED_HACE=y CONFIG_DM_GPIO=y +CONFIG_SPL_GPIO_HOG=y CONFIG_ASPEED_GPIO=y CONFIG_DM_I2C=y CONFIG_SYS_I2C_ASPEED=ySignature · 1 line
2.27.0
Re: [PATCH U-Boot v2019.04-aspeed-openbmc 6/6] ast2600: Add GPIO controller and hog TPM reset pin
In reply to Eddie JamesQuoted 12 lines · Eddie James
Hog the GPIO pin to reset the TPM.
Signed-off-by Eddie James <[email protected]>--- arch/arm/dts/ast2600-rainier.dts | 11 +++++++++++ 1 file changed, 11 insertions(+)arch/arm/dts/ast2600-rainier.dts +0
-0
arch/arm/dts/ast2600-rainier.dts line 116
Quoted 9 lines
arch/arm/dts/ast2600-rainier.dts +6
-0@@ -108,3 +108,14 @@ u-boot,dm-pre-reloc; status = "okay"; }; + +&gpio0 { + u-boot,dm-pre-reloc; + + tpm_reset { + u-boot,dm-pre-reloc;
Do we need this in the hog node? Seems like it's only necessary in controller nodes.
Quoted 7 lines
arch/arm/dts/ast2600-rainier.dts +5
-0+ gpio-hog; + output-high; + gpios = <ASPEED_GPIO(R, 0) GPIO_ACTIVE_HIGH>; + }; +};Signature · 1 line
2.27.0
Re: [PATCH U-Boot v2019.04-aspeed-openbmc 4/6] gpio: Enable hogging support in SPL
In reply to Andrew JefferyQuoted 88 lines · Andrew Jeffery
Quoted 86 lines · Eddie James
Use the CONFIG macros to conditionally build the GPIO hogging support in either the SPL or U-Boot, or both, depending on the configuration. Also call the GPIO hog probe function in the common SPL board initialization as an equivalent to adding it to the U-Boot init sequence functions.
Signed-off-by Eddie James <[email protected]>--- common/spl/spl.c | 7 +++++++ drivers/gpio/Kconfig | 10 ++++++++++ drivers/gpio/gpio-uclass.c | 12 +++++++----- 3 files changed, 24 insertions(+), 5 deletions(-)common/spl/spl.c +7
-0@@ -12,6 +12,9 @@#include <dm.h> #include <handoff.h> #include <spl.h> +#if defined(CONFIG_SPL_GPIO_HOG ) +#include <asm/gpio.h> +#endif #include <asm/sections.h> #include <asm/u-boot.h> #include <nand.h> @@ -652,6 +655,10 @@ void board_init_r(gd_t *dummy1, ulong dummy2)timer_init ();#endif +#if defined(CONFIG_SPL_GPIO_HOG ) +gpio_hog_probe_all (); +#endif +#if CONFIG_IS_ENABLED (BOARD_INIT )spl_board_init ();#endif drivers/gpio/Kconfig +10
-0@@ -24,6 +24,16 @@ config GPIO_HOG is a mechanism providing automatic GPIO request and config- uration as part of the gpio-controller's driver probe function. +config SPL_GPIO_HOG + bool "Enable GPIO hog support in SPL" + depends on SPL_GPIO_SUPPORT + default n + help + Enable gpio hog support + The GPIO chip may contain GPIO hog definitions. GPIO hogging + is a mechanism providing automatic GPIO request and config- + uration as part of the gpio-controller's driver probe function. + config ALTERA_PIO bool "Altera PIO driver" depends on DM_GPIOdrivers/gpio/gpio-uclass.c +1
-4@@ -144,7 +144,7 @@ static int gpio_find_and_xlate(struct gpio_desc *desc,return gpio_xlate_offs_flags (desc->dev, desc, args); } -#if defined(CONFIG_GPIO_HOG) +#if CONFIG_IS_ENABLED(GPIO_HOG) struct gpio_hog_priv { struct gpio_desc gpiod;@@ -1033,9 +1033,6 @@ int gpio_dev_request_index(struct udevice *dev,const char *nodename, static int gpio_post_bind(struct udevice *dev) { - struct udevice *child; -ofnode node; - #if defined(CONFIG_NEEDS_MANUAL_RELOC) struct dm_gpio_ops *ops = (struct dm_gpio_ops *)device_get_ops(dev);static int
reloc_done;drivers/gpio/gpio-uclass.c +0
-0@@ -1066,7 +1063,11 @@ static int gpio_post_bind(struct udevice *dev) }#endif
Quoted 6 lines
drivers/gpio/gpio-uclass.c static int gpio_post_bind(struct udevice *dev) · line 1066
Quoted 2 lines
drivers/gpio/gpio-uclass.c +1
-1-if (IS_ENABLED (CONFIG_GPIO_HOG )) { +#if CONFIG_IS_ENABLED (GPIO_HOG )Why switch to a CPP conditional here?
I mean, it's not clear why there was a choice for a C conditional originally, so I'm curious either way.
Well I just thought it should match the other conditionals for GPIO_HOG, and it's obviously more efficient at runtime. Other than that, no reason really.
Thanks!
Eddie
Quoted 4 lines
Otherwise:
Reviewed-by Andrew Jeffery <[email protected]>
Re: [PATCH U-Boot v2019.04-aspeed-openbmc 5/6] Add GPIO hogging support for AST2600 openbmc config
In reply to Andrew JefferyQuoted 25 lines · Andrew Jeffery
Quoted 23 lines · Eddie James
Enable GPIO support in the SPL and hog the GPIOs in the SPL only. Also increase the size of the malloc size in the SPL to get the GPIO driver loaded.
Signed-off-by Eddie James <[email protected]>--- configs/ast2600_openbmc_spl_emmc_defconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)configs/ast2600_openbmc_spl_emmc_defconfig +1
-0@@ -11,6 +11,7 @@ CONFIG_SYS_TEXT_BASE=0x81000000 CONFIG_ASPEED_AST2600=y # CONFIG_ASPEED_LOADERS is not set CONFIG_TARGET_EVB_AST2600A1=y +CONFIG_SPL_GPIO_SUPPORT=y CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y CONFIG_SYS_MALLOC_F_LEN=0x2000@@ -19,7 +20,7 @@ CONFIG_SPL_SERIAL_SUPPORT=y
Quoted 8 lines
configs/ast2600_openbmc_spl_emmc_defconfig CONFIG_SPL_SERIAL_SUPPORT=y · line 23
Quoted 5 lines
configs/ast2600_openbmc_spl_emmc_defconfig +1
-1CONFIG_SPL_DRIVERS_MISC_SUPPORT=y CONFIG_ENV_SIZE=0x10000 CONFIG_ENV_OFFSET=0x5000 -CONFIG_SPL_SYS_MALLOC_F_LEN=0x800 +CONFIG_SPL_SYS_MALLOC_F_LEN=0x1000How much capacity does this leave us with? Have you looked at the memory layout for the SPL (I haven't, so any legwork you do here is appreciated ;) )?
I'm not sure, I haven't looked into it that much. When I was debugging, trying to figure out why my SPL wouldn't load, we were right at capacity without the GPIO stuff - allocating like 0x7c0 or so. We should have plenty more room now. I guess I'm not sure where that memory comes from anyway.
Thanks,
Eddie
Quoted 14 lines
Quoted 14 lines
configs/ast2600_openbmc_spl_emmc_defconfig +1
-0CONFIG_SPL=y CONFIG_SPL_STACK_R_ADDR=0x90300000 CONFIG_ARMV7_BOOT_SEC_DEFAULT=y@@ -94,6 +95,7 @@ CONFIG_CLK=y CONFIG_SPL_CLK=y CONFIG_ASPEED_HACE=y CONFIG_DM_GPIO=y +CONFIG_SPL_GPIO_HOG=y CONFIG_ASPEED_GPIO=y CONFIG_DM_I2C=y CONFIG_SYS_I2C_ASPEED=ySignature · 1 line
2.27.0
Re: [PATCH U-Boot v2019.04-aspeed-openbmc 6/6] ast2600: Add GPIO controller and hog TPM reset pin
In reply to Andrew JefferyQuoted 9 lines · Andrew Jeffery
Quoted 7 lines · Eddie James
Hog the GPIO pin to reset the TPM.
Signed-off-by Eddie James <[email protected]>--- arch/arm/dts/ast2600-rainier.dts | 11 +++++++++++ 1 file changed, 11 insertions(+)
Quoted 15 lines
Quoted 5 lines
arch/arm/dts/ast2600-rainier.dts +0
-0arch/arm/dts/ast2600-rainier.dts line 116
Quoted 9 lines
arch/arm/dts/ast2600-rainier.dts +6
-0@@ -108,3 +108,14 @@ u-boot,dm-pre-reloc; status = "okay"; }; + +&gpio0 { + u-boot,dm-pre-reloc; + + tpm_reset { + u-boot,dm-pre-reloc;Do we need this in the hog node? Seems like it's only necessary in controller nodes.
Yes it is necessary, the SPL dtc compiler will cull anything without that property.
Thanks,
Eddie
Quoted 8 lines
Quoted 8 lines
arch/arm/dts/ast2600-rainier.dts +5
-0+ gpio-hog; + output-high; + gpios = <ASPEED_GPIO(R, 0) GPIO_ACTIVE_HIGH>; + }; +};Signature · 1 line
2.27.0
Re: [PATCH U-Boot v2019.04-aspeed-openbmc 4/6] gpio: Enable hogging support in SPL
In reply to Eddie JamesQuoted 7 lines · Eddie James
Quoted 6 lines · Andrew Jeffery
drivers/gpio/gpio-uclass.c static int gpio_post_bind(struct udevice *dev) · line 1066
Quoted 2 lines · Eddie James
drivers/gpio/gpio-uclass.c +1
-1-if (IS_ENABLED (CONFIG_GPIO_HOG )) { +#if CONFIG_IS_ENABLED (GPIO_HOG )Why switch to a CPP conditional here?
Quoted 7 lines
Quoted 2 lines
I mean, it's not clear why there was a choice for a C conditional originally, so I'm curious either way.
Well I just thought it should match the other conditionals for
GPIO_HOG, and it's obviously more efficient at runtime. Other than that, no reason really.
Well, I expect it will be optimised out in the C case anyway.
Doesn't matter too much.
Andrew
Re: [PATCH U-Boot v2019.04-aspeed-openbmc 5/6] Add GPIO hogging support for AST2600 openbmc config
In reply to Eddie JamesQuoted 36 lines · Eddie James
Quoted 25 lines · Andrew Jeffery
Quoted 23 lines · Eddie James
Enable GPIO support in the SPL and hog the GPIOs in the SPL only. Also increase the size of the malloc size in the SPL to get the GPIO driver loaded.
Signed-off-by Eddie James <[email protected]>--- configs/ast2600_openbmc_spl_emmc_defconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)configs/ast2600_openbmc_spl_emmc_defconfig +1
-0@@ -11,6 +11,7 @@ CONFIG_SYS_TEXT_BASE=0x81000000 CONFIG_ASPEED_AST2600=y # CONFIG_ASPEED_LOADERS is not set CONFIG_TARGET_EVB_AST2600A1=y +CONFIG_SPL_GPIO_SUPPORT=y CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y CONFIG_SYS_MALLOC_F_LEN=0x2000@@ -19,7 +20,7 @@ CONFIG_SPL_SERIAL_SUPPORT=yQuoted 8 lines
configs/ast2600_openbmc_spl_emmc_defconfig CONFIG_SPL_SERIAL_SUPPORT=y · line 23
Quoted 5 lines
configs/ast2600_openbmc_spl_emmc_defconfig +1
-1CONFIG_SPL_DRIVERS_MISC_SUPPORT=y CONFIG_ENV_SIZE=0x10000 CONFIG_ENV_OFFSET=0x5000 -CONFIG_SPL_SYS_MALLOC_F_LEN=0x800 +CONFIG_SPL_SYS_MALLOC_F_LEN=0x1000How much capacity does this leave us with? Have you looked at the memory layout for the SPL (I haven't, so any legwork you do here is appreciated ;) )?
Quoted 5 lines
I'm not sure, I haven't looked into it that much. When I was debugging, trying to figure out why my SPL wouldn't load, we were right at capacity without the GPIO stuff - allocating like
0x7c0or so. We should have plenty more room now. I guess I'm not sure where that memory comes from anyway.
Okay. Might be something for another day.
Re: [PATCH U-Boot v2019.04-aspeed-openbmc 6/6] ast2600: Add GPIO controller and hog TPM reset pin
In reply to Eddie JamesQuoted 27 lines · Eddie James
Quoted 9 lines · Andrew Jeffery
Quoted 7 lines · Eddie James
Hog the GPIO pin to reset the TPM.
Signed-off-by Eddie James <[email protected]>--- arch/arm/dts/ast2600-rainier.dts | 11 +++++++++++ 1 file changed, 11 insertions(+)Quoted 15 lines
Quoted 5 lines
arch/arm/dts/ast2600-rainier.dts +0
-0arch/arm/dts/ast2600-rainier.dts line 116
Quoted 9 lines
arch/arm/dts/ast2600-rainier.dts +6
-0@@ -108,3 +108,14 @@ u-boot,dm-pre-reloc; status = "okay"; }; + +&gpio0 { + u-boot,dm-pre-reloc; + + tpm_reset { + u-boot,dm-pre-reloc;Do we need this in the hog node? Seems like it's only necessary in controller nodes.
Quoted 2 lines
Yes it is necessary, the SPL dtc compiler will cull anything without that property.
Are you sure it's done at dts translation time?
My understanding is the driver model core will only instantiate drivers for devices with the property. This suggests all nodes are retained.
I used uclass_get_device_by_driver() in the mach-aspeed patch which will forcibly probe the driver.
Andrew
Re: [PATCH U-Boot v2019.04-aspeed-openbmc 6/6] ast2600: Add GPIO controller and hog TPM reset pin
Quoted 29 lines · Andrew Jeffery
Quoted 25 lines · Eddie James
Quoted 8 lines · Andrew Jeffery
Quoted 7 lines · Eddie James
Hog the GPIO pin to reset the TPM.
Signed-off-by Eddie James <[email protected]>--- arch/arm/dts/ast2600-rainier.dts | 11 +++++++++++ 1 file changed, 11 insertions(+)Quoted 15 lines
Quoted 5 lines
arch/arm/dts/ast2600-rainier.dts +0
-0arch/arm/dts/ast2600-rainier.dts line 116
Quoted 9 lines
arch/arm/dts/ast2600-rainier.dts +6
-0@@ -108,3 +108,14 @@ u-boot,dm-pre-reloc; status = "okay"; }; + +&gpio0 { + u-boot,dm-pre-reloc; + + tpm_reset { + u-boot,dm-pre-reloc;Do we need this in the hog node? Seems like it's only necessary in controller nodes.
Quoted 2 lines
Yes it is necessary, the SPL dtc compiler will cull anything without that property.
Quoted 7 lines
Are you sure it's done at dts translation time?
My understanding is the driver model core will only instantiate drivers for devices with the property. This suggests all nodes are retained.
I used
uclass_get_device_by_driver()in the mach-aspeed patch which will forcibly probe the driver.
Well, I can use fdtdump and compare the outputs. It looks to me like the node wouldn't be in the SPL dts at all without that property, unless fdtdump simply isn't detecting it in that case for some reason.
With the property:
$ fdtdump spl/u-boot-spl.dtb
**** fdtdump is a low-level debugging tool, not meant for general use. **** If you want to decompile a dtb, you probably want
**** dtc -I dtb -O dts <filename>
/dts-v1/;
// magic: 0xd00dfeed
// totalsize: 0xa46 (2630)
// off_dt_struct: 0x38
// off_dt_strings: 0x8b0
// off_mem_rsvmap: 0x28
// version: 17
// last_comp_version: 2
// boot_cpuid_phys: 0x0
// size_dt_strings: 0x196
// size_dt_struct: 0x878
/ {
#address-cells = <0x00000001>;
#size-cells = <0x00000001>;
model = Rainier;
compatible = ibm,rainier-bmc, aspeed,ast2600;
chosen {
stdout-path = /ahb/apb/serial@1e784000;
};
aliases {
serial4 = /ahb/apb/serial@1e784000;
mmc0 = /ahb/apb/emmc@1e750000/emmc_slot0@100;
};
ahb {
compatible = simple-bus;
#address-cells = <0x00000001>;
#size-cells = <0x00000001>;
device_type = soc;
ranges;
u-boot,dm-pre-reloc;
apb {
compatible = simple-bus;
#address-cells = <0x00000001>;
#size-cells = <0x00000001>;
ranges;
u-boot,dm-pre-reloc;
hace@1e6d0000 {
compatible = aspeed,ast2600-hace;
reg = <0x1e6d0000 0x00000200>;
interrupts = <0x00000000 0x00000004 0x00000004>; clocks = <0x00000002 0x00000007>;
clock-names = yclk;
status = okay;
u-boot,dm-pre-reloc;
};
emmc@1e750000 {
#interrupt-cells = <0x00000001>;
compatible = aspeed,aspeed-emmc-irq, simple-mfd;
reg = <0x1e750000 0x00001000>;
interrupts = <0x00000000 0x0000000f 0x00000004>; interrupt-controller;
clocks = <0x00000002 0x0000001f 0x00000002 0x00000020>; clock-names = ctrlclk, extclk;
#address-cells = <0x00000001>;
#size-cells = <0x00000001>;
ranges = <0x00000000 0x1e750000 0x00001000>; u-boot,dm-pre-reloc;
timing-phase = <0x000700ff>;
phandle = <0x00000012>;
emmc_slot0@100 {
compatible = aspeed,emmc-ast2600;
reg = <0x00000100 0x00000100>;
interrupts = <0x00000000>;
clocks = <0x00000002 0x00000035>;
status = okay;
u-boot,dm-pre-reloc;
bus-width = <0x00000004>;
sdhci-drive-type = <0x00000001>;
};
};
gpio@1e780000 {
compatible = aspeed,ast2600-gpio;
reg = <0x1e780000 0x00000400>;
interrupts = <0x00000000 0x00000028 0x00000004>; #gpio-cells = <0x00000002>;
gpio-controller;
interrupt-controller;
gpio-ranges = <0x00000014 0x00000000 0x00000000 0x000000d0>; ngpios = <0x000000d0>;
u-boot,dm-pre-reloc;
tpm_reset {
u-boot,dm-pre-reloc;
gpio-hog;
output-high;
gpios = <0x00000088 0x00000000>;
};
};
serial@1e784000 {
compatible = ns16550a;
reg = <0x1e784000 0x00001000>;
reg-shift = <0x00000002>;
interrupts = <0x00000000 0x00000024 0x00000004>; clocks = <0x00000002 0x0000000f>;
clock-frequency = <0x001c2b8a>;
no-loopback-test;
status = okay;
u-boot,dm-pre-reloc;
};
watchdog@1e785040 {
compatible = aspeed,ast2600-wdt;
reg = <0x1e785040 0x00000040>;
u-boot,dm-pre-reloc;
status = okay;
};
};
};
clock-controller@1e6e2000 {
compatible = aspeed,ast2600-scu;
reg = <0x1e6e2000 0x00001000>;
u-boot,dm-pre-reloc;
#clock-cells = <0x00000001>;
#reset-cells = <0x00000001>;
uart-clk-source = <0x00000000>;
phandle = <0x00000002>;
};
reset-controller {
u-boot,dm-pre-reloc;
compatible = aspeed,ast2600-reset;
aspeed,wdt = <0x00000017>;
#reset-cells = <0x00000001>;
phandle = <0x00000004>;
};
sdrammc@1e6e0000 {
u-boot,dm-pre-reloc;
compatible = aspeed,ast2600-sdrammc;
reg = <0x1e6e0000 0x00000100 0x1e6e0100 0x00000300 0x1e6e0400 0x00000200>; #reset-cells = <0x00000001>;
clocks = <0x00000002 0x00000033>;
resets = <0x00000004 0x00000000>;
clock-frequency = <0x17d78400>;
};
};
Without the property:
$ fdtdump spl/u-boot-spl.dtb
**** fdtdump is a low-level debugging tool, not meant for general use. **** If you want to decompile a dtb, you probably want
**** dtc -I dtb -O dts <filename>
/dts-v1/;
// magic: 0xd00dfeed
// totalsize: 0x9e5 (2533)
// off_dt_struct: 0x38
// off_dt_strings: 0x864
// off_mem_rsvmap: 0x28
// version: 17
// last_comp_version: 2
// boot_cpuid_phys: 0x0
// size_dt_strings: 0x181
// size_dt_struct: 0x82c
/ {
#address-cells = <0x00000001>;
#size-cells = <0x00000001>;
model = Rainier;
compatible = ibm,rainier-bmc, aspeed,ast2600;
chosen {
stdout-path = /ahb/apb/serial@1e784000;
};
aliases {
serial4 = /ahb/apb/serial@1e784000;
mmc0 = /ahb/apb/emmc@1e750000/emmc_slot0@100;
};
ahb {
compatible = simple-bus;
#address-cells = <0x00000001>;
#size-cells = <0x00000001>;
device_type = soc;
ranges;
u-boot,dm-pre-reloc;
apb {
compatible = simple-bus;
#address-cells = <0x00000001>;
#size-cells = <0x00000001>;
ranges;
u-boot,dm-pre-reloc;
hace@1e6d0000 {
compatible = aspeed,ast2600-hace;
reg = <0x1e6d0000 0x00000200>;
interrupts = <0x00000000 0x00000004 0x00000004>; clocks = <0x00000002 0x00000007>;
clock-names = yclk;
status = okay;
u-boot,dm-pre-reloc;
};
emmc@1e750000 {
#interrupt-cells = <0x00000001>;
compatible = aspeed,aspeed-emmc-irq, simple-mfd;
reg = <0x1e750000 0x00001000>;
interrupts = <0x00000000 0x0000000f 0x00000004>; interrupt-controller;
clocks = <0x00000002 0x0000001f 0x00000002 0x00000020>; clock-names = ctrlclk, extclk;
#address-cells = <0x00000001>;
#size-cells = <0x00000001>;
ranges = <0x00000000 0x1e750000 0x00001000>; u-boot,dm-pre-reloc;
timing-phase = <0x000700ff>;
phandle = <0x00000012>;
emmc_slot0@100 {
compatible = aspeed,emmc-ast2600;
reg = <0x00000100 0x00000100>;
interrupts = <0x00000000>;
clocks = <0x00000002 0x00000035>;
status = okay;
u-boot,dm-pre-reloc;
bus-width = <0x00000004>;
sdhci-drive-type = <0x00000001>;
};
};
gpio@1e780000 {
compatible = aspeed,ast2600-gpio;
reg = <0x1e780000 0x00000400>;
interrupts = <0x00000000 0x00000028 0x00000004>; #gpio-cells = <0x00000002>;
gpio-controller;
interrupt-controller;
gpio-ranges = <0x00000014 0x00000000 0x00000000 0x000000d0>; ngpios = <0x000000d0>;
u-boot,dm-pre-reloc;
};
serial@1e784000 {
compatible = ns16550a;
reg = <0x1e784000 0x00001000>;
reg-shift = <0x00000002>;
interrupts = <0x00000000 0x00000024 0x00000004>; clocks = <0x00000002 0x0000000f>;
clock-frequency = <0x001c2b8a>;
no-loopback-test;
status = okay;
u-boot,dm-pre-reloc;
};
watchdog@1e785040 {
compatible = aspeed,ast2600-wdt;
reg = <0x1e785040 0x00000040>;
u-boot,dm-pre-reloc;
status = okay;
};
};
};
clock-controller@1e6e2000 {
compatible = aspeed,ast2600-scu;
reg = <0x1e6e2000 0x00001000>;
u-boot,dm-pre-reloc;
#clock-cells = <0x00000001>;
#reset-cells = <0x00000001>;
uart-clk-source = <0x00000000>;
phandle = <0x00000002>;
};
reset-controller {
u-boot,dm-pre-reloc;
compatible = aspeed,ast2600-reset;
aspeed,wdt = <0x00000017>;
#reset-cells = <0x00000001>;
phandle = <0x00000004>;
};
sdrammc@1e6e0000 {
u-boot,dm-pre-reloc;
compatible = aspeed,ast2600-sdrammc;
reg = <0x1e6e0000 0x00000100 0x1e6e0100 0x00000300 0x1e6e0400 0x00000200>; #reset-cells = <0x00000001>;
clocks = <0x00000002 0x00000033>;
resets = <0x00000004 0x00000000>;
clock-frequency = <0x17d78400>;
};
};
Quoted 2 lines
Andrew