pinctrl: ast2400: add support for TXD3/RXD3 pins
Subsystems (3)
PATCH 1/1 pinctrl: ast2400: add support for TXD3/RXD3 pins
In order to support putting the u-boot console on UART3 of the ast2400, this commit adds support for setting bits 22 and 23 of SCU80 to enable TXD3 and RXD3 on pins C14 and B14, respectively.
--- drivers/pinctrl/aspeed/pinctrl_ast2400.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
drivers/pinctrl/aspeed/pinctrl_ast2400.c +10 -0
@@ -125,6 +125,14 @@ static struct aspeed_sig_desc spi1_link[] = { { 0x70, BIT(12), 0}, }; +static struct aspeed_sig_desc txd3_link[] = { + {0x80 ,BIT (22 ),0 }, +}; + +static struct aspeed_sig_desc rxd3_link[] = { + {0x80 ,BIT (23 ),0 }, +}; +static const struct aspeed_group_config ast2400_groups[] = { {"MAC1LINK" ,1 , mac1_link }, { "MAC2LINK", 1, mac2_link },
@@ -146,6 +154,8 @@ static const struct aspeed_group_config ast2400_groups[] = { { "SD1", 1, sdio1_link }, { "SPI1", 1, spi1_link}, { "SPI1CS1", 1, spi1cs1_link}, + { "TXD3", 1, txd3_link }, + { "RXD3", 1, rxd3_link }, };static int ast2400_pinctrl_get_groups_count (struct udevice *dev)
Signature · 1 line
2.34.1
Ryan Chen
reviewerHello,
You may need claim for function group for link, not for pin link.
Ex.
static struct aspeed_sig_desc uart3_link[] = {
{ 0x80, BIT(22), 0},
{ 0x80, BIT(23), 0},
}
ast2400_groups[] = {
{ "UART3", 2, uart3_link },Ryan
Quoted 50 lines
-----Original Message-----
From: Zev Weiss <[email protected]>
Sent: Tuesday, December 14, 2021 3:47 AM
To: [email protected]; Joel Stanley <[email protected]>
Cc: Zev Weiss <[email protected]>; Ryan Chen <[email protected]>
Subject: [PATCH u-boot v2019.04-aspeed-openbmc] pinctrl: ast2400: add support for TXD3/RXD3 pinsIn order to support putting the u-boot console on UART3 of the ast2400, this commit adds support for setting bits 22 and 23 of SCU80 to enable TXD3 and RXD3 on pins C14 and B14, respectively.
Signed-off-by Zev Weiss <[email protected]>--- drivers/pinctrl/aspeed/pinctrl_ast2400.c | 10 ++++++++++ 1 file changed, 10 insertions(+)drivers/pinctrl/aspeed/pinctrl_ast2400.c +10
-0@@ -125,6 +125,14 @@ static struct aspeed_sig_desc spi1_link[] = { { 0x70, BIT(12), 0}, }; +static struct aspeed_sig_desc txd3_link[] = { + {0x80 ,BIT (22 ),0 }, +}; + +static struct aspeed_sig_desc rxd3_link[] = { + {0x80 ,BIT (23 ),0 }, +}; +static const struct aspeed_group_config ast2400_groups[] = { {"MAC1LINK" ,1 , mac1_link }, { "MAC2LINK", 1, mac2_link },@@ -146,6 +154,8 @@ static const struct aspeed_group_config ast2400_groups[] = { {"SD1" ,1 , sdio1_link }, {"SPI1" ,1 , spi1_link}, {"SPI1CS1" ,1 , spi1cs1_link}, + {"TXD3" ,1 , txd3_link }, + {"RXD3" ,1 , rxd3_link }, };static int
ast2400_pinctrl_get_groups_count(struct udevice *dev)
--
2.34.1
Quoted 11 lines · Ryan Chen
Hello,
You may need claim for function group for link, not for pin link. Ex. static struct aspeed_sig_desc uart3_link[] = { { 0x80, BIT(22), 0}, { 0x80, BIT(23), 0}, } ast2400_groups[] = { { "UART3", 2, uart3_link },Ryan
Hi Ryan,
That possibility occurred to me, but the existing function/group names in arch/arm/dts/ast2400.dtsi (lines 1130-1133 and 1375-1378) made me think they should be separate. I'm certainly not an expert on pinctrl stuff though...is there some other existing logic or mechanism to link a "UART3" to the separate "TXD3" and "RXD3" in the device tree?
Zev
Ryan Chen
reviewerHello,
Quoted 22 lines
-----Original Message-----
From: Zev Weiss <[email protected]>
Sent: Tuesday, December 14, 2021 9:33 AM
To: Ryan Chen <[email protected]>
Cc: [email protected]; Joel Stanley <[email protected]>; ChiaWei Wang <[email protected]>
Subject: Re: [PATCH u-boot v2019.04-aspeed-openbmc] pinctrl: ast2400: add support for TXD3/RXD3 pinsQuoted 11 lines · Ryan Chen
Hello,
You may need claim for function group for link, not for pin link. Ex. static struct aspeed_sig_desc uart3_link[] = { { 0x80, BIT(22), 0}, { 0x80, BIT(23), 0}, } ast2400_groups[] = { { "UART3", 2, uart3_link },Ryan
Quoted 5 lines
Hi Ryan,
That possibility occurred to me, but the existing function/group names in
arch/arm/dts/ast2400.dtsi(lines 1130-1133 and 1375-1378) made me think they should be separate.
This device tree is copied from Linux kernel.
Quoted 3 lines
I'm certainly not an expert on pinctrl stuff
though...is there some other existing logic or mechanism to link a "UART3" to the separate "TXD3" and "RXD3" in the device tree?
There is no separate in u-boot device tree.
May I know why you need separate?
Quoted 3 lines
Zev
Quoted 29 lines · Ryan Chen
Hello,
Quoted 22 lines
-----Original Message-----
From: Zev Weiss <[email protected]>
Sent: Tuesday, December 14, 2021 9:33 AM
To: Ryan Chen <[email protected]>
Cc: [email protected]; Joel Stanley <[email protected]>; ChiaWei Wang <[email protected]>
Subject: Re: [PATCH u-boot v2019.04-aspeed-openbmc] pinctrl: ast2400: add support for TXD3/RXD3 pinsQuoted 11 lines · Ryan Chen
Hello,
You may need claim for function group for link, not for pin link. Ex. static struct aspeed_sig_desc uart3_link[] = { { 0x80, BIT(22), 0}, { 0x80, BIT(23), 0}, } ast2400_groups[] = { { "UART3", 2, uart3_link },Ryan
Quoted 5 lines
Hi Ryan,
That possibility occurred to me, but the existing function/group names in
arch/arm/dts/ast2400.dtsi(lines 1130-1133 and 1375-1378) made me think they should be separate.
Quoted 6 lines
This device tree is copied from Linux kernel.
Quoted 3 lines
I'm certainly not an expert on pinctrl stuff
though...is there some other existing logic or mechanism to link a "UART3" to the separate "TXD3" and "RXD3" in the device tree?There is no separate in u-boot device tree.
Perhaps we're misunderstanding each other...
and
look fairly separate to me?
Quoted 1 line
May I know why you need separate?
In my particular case I don't need these two to be separate, but it seems conceivable that there might be other cases that would require a different set of signals to be enabled for a generic "UART3" group -- possibly more (sideband signals like CTS and such), or perhaps even fewer (e.g. if you had an output-only UART3 just for logging or something, and only needed TXD3 for that, but still wanted to use pin B14 as GPIOE7 instead of RXD3). Keeping them separate seems like it leaves things as flexible as possible, avoiding imposing any artificial constraints.
Zev
Ryan Chen
reviewerHello,
Quoted 48 lines
-----Original Message-----
From: Zev Weiss <[email protected]>
Sent: Tuesday, December 14, 2021 11:21 AM
To: Ryan Chen <[email protected]>
Cc: [email protected]; Joel Stanley <[email protected]>; ChiaWei Wang <[email protected]>
Subject: Re: [PATCH u-boot v2019.04-aspeed-openbmc] pinctrl: ast2400: add support for TXD3/RXD3 pinsQuoted 29 lines · Ryan Chen
Hello,
Quoted 22 lines
-----Original Message-----
From: Zev Weiss <[email protected]>
Sent: Tuesday, December 14, 2021 9:33 AM
To: Ryan Chen <[email protected]>
Cc: [email protected]; Joel Stanley <[email protected]>; ChiaWei Wang <[email protected]>
Subject: Re: [PATCH u-boot v2019.04-aspeed-openbmc] pinctrl: ast2400:
add support for TXD3/RXD3 pinsQuoted 11 lines · Ryan Chen
Hello,
You may need claim for function group for link, not for pin link. Ex. static struct aspeed_sig_desc uart3_link[] = { { 0x80, BIT(22), 0}, { 0x80, BIT(23), 0}, } ast2400_groups[] = { { "UART3", 2, uart3_link },Ryan
Quoted 5 lines
Hi Ryan,
That possibility occurred to me, but the existing function/group names in
arch/arm/dts/ast2400.dtsi(lines 1130-1133 and 1375-1378) made me think they should be separate.Quoted 6 lines
This device tree is copied from Linux kernel.
Quoted 3 lines
I'm certainly not an expert on pinctrl stuff though...is there some other existing logic or mechanism to link a "UART3" to the separate "TXD3" and "RXD3" in the device tree?
There is no separate in u-boot device tree.
Perhaps we're misunderstanding each other...
Quoted 8 lines
https://github.com/openbmc/u-boot/blob/a570745a1a836e351bd4b1131f23a4
fa5013d6dd/arch/arm/dts/ast2400.dtsi#L1130-L1133and
https://github.com/openbmc/u-boot/blob/a570745a1a836e351bd4b1131f23a4
fa5013d6dd/arch/arm/dts/ast2400.dtsi#L1375-L1378
The following is my point.
https://github.com/openbmc/u-boot/blob/a570745a1a836e351bd4b1131f23a4fa5013d6dd/arch/arm/dts/ast2400.dtsi#L3
Quoted 15 lines
look fairly separate to me?
Quoted 1 line
May I know why you need separate?
In my particular case I don't need these two to be separate, but it seems conceivable that there might be other cases that would require a different set of signals to be enabled for a generic "UART3" group -- possibly more (sideband signals like CTS and such), or perhaps even fewer (e.g. if you had an output-only UART3 just for logging or something, and only needed TXD3 for that, but still wanted to use pin
B14 as GPIOE7 instead of RXD3). Keeping them separate seems like it leaves things as flexible as possible, avoiding imposing any artificial constraints.Zev
Quoted 52 lines · Ryan Chen
Hello,
Quoted 51 lines
-----Original Message-----
From: Zev Weiss <[email protected]>
Sent: Tuesday, December 14, 2021 11:21 AM
To: Ryan Chen <[email protected]>
Cc: [email protected]; Joel Stanley <[email protected]>; ChiaWei Wang <[email protected]>
Subject: Re: [PATCH u-boot v2019.04-aspeed-openbmc] pinctrl: ast2400: add support for TXD3/RXD3 pinsQuoted 29 lines · Ryan Chen
Hello,
Quoted 22 lines
-----Original Message-----
From: Zev Weiss <[email protected]>
Sent: Tuesday, December 14, 2021 9:33 AM
To: Ryan Chen <[email protected]>
Cc: [email protected]; Joel Stanley <[email protected]>; ChiaWei Wang <[email protected]>
Subject: Re: [PATCH u-boot v2019.04-aspeed-openbmc] pinctrl: ast2400:
add support for TXD3/RXD3 pinsQuoted 11 lines · Ryan Chen
Hello,
You may need claim for function group for link, not for pin link. Ex. static struct aspeed_sig_desc uart3_link[] = { { 0x80, BIT(22), 0}, { 0x80, BIT(23), 0}, } ast2400_groups[] = { { "UART3", 2, uart3_link },Ryan
Quoted 5 lines
Hi Ryan,
That possibility occurred to me, but the existing function/group names in
arch/arm/dts/ast2400.dtsi(lines 1130-1133 and 1375-1378) made me think they should be separate.Quoted 6 lines
This device tree is copied from Linux kernel.
Quoted 3 lines
I'm certainly not an expert on pinctrl stuff though...is there some other existing logic or mechanism to link a "UART3" to the separate "TXD3" and "RXD3" in the device tree?
There is no separate in u-boot device tree.
Perhaps we're misunderstanding each other...
https://github.com/openbmc/u-boot/blob/a570745a1a836e351bd4b1131f23a4
fa5013d6dd/arch/arm/dts/ast2400.dtsi#L1130-L1133
Quoted 8 lines
Quoted 5 lines
and
https://github.com/openbmc/u-boot/blob/a570745a1a836e351bd4b1131f23a4
fa5013d6dd/arch/arm/dts/ast2400.dtsi#L1375-L1378The following is my point.
https://github.com/openbmc/u-boot/blob/a570745a1a836e351bd4b1131f23a4fa5013d6dd/arch/arm/dts/ast2400.dtsi#L3
I'm afraid I don't follow...how does it being copied from the Linux kernel device tree affect whether or not we should group these two or keep them separate?
Quoted 16 lines
Quoted 15 lines
look fairly separate to me?
Quoted 1 line
May I know why you need separate?
In my particular case I don't need these two to be separate, but it seems conceivable that there might be other cases that would require a different set of signals to be enabled for a generic "UART3" group -- possibly more (sideband signals like CTS and such), or perhaps even fewer (e.g. if you had an output-only UART3 just for logging or something, and only needed TXD3 for that, but still wanted to use pin
B14 as GPIOE7 instead of RXD3). Keeping them separate seems like it leaves things as flexible as possible, avoiding imposing any artificial constraints.Zev
Ryan Chen
reviewerHello,
Quoted 69 lines
-----Original Message-----
From: Zev Weiss <[email protected]>
Sent: Tuesday, December 14, 2021 11:43 AM
To: Ryan Chen <[email protected]>
Cc: [email protected]; Joel Stanley <[email protected]>; ChiaWei Wang <[email protected]>
Subject: Re: [PATCH u-boot v2019.04-aspeed-openbmc] pinctrl: ast2400: add support for TXD3/RXD3 pinsQuoted 50 lines · Ryan Chen
Hello,
Quoted 49 lines
-----Original Message-----
From: Zev Weiss <[email protected]>
Sent: Tuesday, December 14, 2021 11:21 AM
To: Ryan Chen <[email protected]>
Cc: [email protected]; Joel Stanley <[email protected]>; ChiaWei Wang <[email protected]>
Subject: Re: [PATCH u-boot v2019.04-aspeed-openbmc] pinctrl: ast2400:
add support for TXD3/RXD3 pinsQuoted 29 lines · Ryan Chen
Hello,
Quoted 22 lines
-----Original Message-----
From: Zev Weiss <[email protected]>
Sent: Tuesday, December 14, 2021 9:33 AM
To: Ryan Chen <[email protected]>
Cc: [email protected]; Joel Stanley <[email protected]>; ChiaWei Wang <[email protected]>
Subject: Re: [PATCH u-boot v2019.04-aspeed-openbmc] pinctrl: ast2400:
add support for TXD3/RXD3 pinsQuoted 11 lines · Ryan Chen
Hello,
You may need claim for function group for link, not for pin link. Ex. static struct aspeed_sig_desc uart3_link[] = { { 0x80, BIT(22), 0}, { 0x80, BIT(23), 0}, } ast2400_groups[] = { { "UART3", 2, uart3_link },Ryan
Quoted 5 lines
Hi Ryan,
That possibility occurred to me, but the existing function/group names in
arch/arm/dts/ast2400.dtsi(lines 1130-1133 and 1375-1378) made me think they should be separate.Quoted 6 lines
This device tree is copied from Linux kernel.
Quoted 3 lines
I'm certainly not an expert on pinctrl stuff though...is there some other existing logic or mechanism to link a "UART3" to the separate "TXD3" and "RXD3" in the device tree?
There is no separate in u-boot device tree.
Perhaps we're misunderstanding each other...
https://github.com/openbmc/u-boot/blob/a570745a1a836e351bd4b1131f23a4
Quoted 5 lines
Quoted 5 lines
fa5013d6dd/arch/arm/dts/ast2400.dtsi#L1130-L1133
and
https://github.com/openbmc/u-boot/blob/a570745a1a836e351bd4b1131f23a4
Quoted 2 lines
Quoted 2 lines
fa5013d6dd/arch/arm/dts/ast2400.dtsi#L1375-L1378
Quoted 8 lines
Quoted 2 lines
The following is my point.
https://github.com/openbmc/u-boot/blob/a570745a1a836e351bd4b1131f23a4fa
Quoted 2 lines
5013d6dd/arch/arm/dts/ast2400.dtsi#L3
I'm afraid I don't follow...how does it being copied from the Linux kernel device tree affect whether or not we should group these two or keep them separate?
My point is the original dtsi file is copy from kernel. So that dtsi define is inherit. So that you see in currently u-boot.
Quoted 19 lines
Quoted 6 lines
Quoted 6 lines
look fairly separate to me?
Quoted 1 line
May I know why you need separate?
Quoted 8 lines
Quoted 8 lines
In my particular case I don't need these two to be separate, but it seems conceivable that there might be other cases that would require a different set of signals to be enabled for a generic "UART3" group -- possibly more (sideband signals like CTS and such), or perhaps even fewer (e.g. if you had an output-only UART3 just for logging or something, and only needed TXD3 for that, but still wanted to use pin B14 as GPIOE7 instead of RXD3). Keeping them separate seems like it leaves things as flexible as possible, avoiding imposing any artificial
constraints.
Quoted 4 lines
Quoted 3 lines
Zev
Quoted 72 lines · Ryan Chen
Hello,
Quoted 71 lines
-----Original Message-----
From: Zev Weiss <[email protected]>
Sent: Tuesday, December 14, 2021 11:43 AM
To: Ryan Chen <[email protected]>
Cc: [email protected]; Joel Stanley <[email protected]>; ChiaWei Wang <[email protected]>
Subject: Re: [PATCH u-boot v2019.04-aspeed-openbmc] pinctrl: ast2400: add support for TXD3/RXD3 pinsQuoted 50 lines · Ryan Chen
Hello,
Quoted 49 lines
-----Original Message-----
From: Zev Weiss <[email protected]>
Sent: Tuesday, December 14, 2021 11:21 AM
To: Ryan Chen <[email protected]>
Cc: [email protected]; Joel Stanley <[email protected]>; ChiaWei Wang <[email protected]>
Subject: Re: [PATCH u-boot v2019.04-aspeed-openbmc] pinctrl: ast2400:
add support for TXD3/RXD3 pinsQuoted 29 lines · Ryan Chen
Hello,
Quoted 22 lines
-----Original Message-----
From: Zev Weiss <[email protected]>
Sent: Tuesday, December 14, 2021 9:33 AM
To: Ryan Chen <[email protected]>
Cc: [email protected]; Joel Stanley <[email protected]>; ChiaWei Wang <[email protected]>
Subject: Re: [PATCH u-boot v2019.04-aspeed-openbmc] pinctrl: ast2400:
add support for TXD3/RXD3 pinsQuoted 11 lines · Ryan Chen
Hello,
You may need claim for function group for link, not for pin link. Ex. static struct aspeed_sig_desc uart3_link[] = { { 0x80, BIT(22), 0}, { 0x80, BIT(23), 0}, } ast2400_groups[] = { { "UART3", 2, uart3_link },Ryan
Quoted 5 lines
Hi Ryan,
That possibility occurred to me, but the existing function/group names in
arch/arm/dts/ast2400.dtsi(lines 1130-1133 and 1375-1378) made me think they should be separate.Quoted 6 lines
This device tree is copied from Linux kernel.
Quoted 3 lines
I'm certainly not an expert on pinctrl stuff though...is there some other existing logic or mechanism to link a "UART3" to the separate "TXD3" and "RXD3" in the device tree?
There is no separate in u-boot device tree.
Perhaps we're misunderstanding each other...
https://github.com/openbmc/u-boot/blob/a570745a1a836e351bd4b1131f23a4
Quoted 5 lines
Quoted 5 lines
fa5013d6dd/arch/arm/dts/ast2400.dtsi#L1130-L1133
and
https://github.com/openbmc/u-boot/blob/a570745a1a836e351bd4b1131f23a4
Quoted 4 lines
Quoted 2 lines
fa5013d6dd/arch/arm/dts/ast2400.dtsi#L1375-L1378
The following is my point.
https://github.com/openbmc/u-boot/blob/a570745a1a836e351bd4b1131f23a
Quoted 9 lines
Quoted 6 lines
4fa
Quoted 2 lines
5013d6dd/arch/arm/dts/ast2400.dtsi#L3
I'm afraid I don't follow...how does it being copied from the Linux kernel device tree affect whether or not we should group these two or keep them separate?
My point is the original dtsi file is copy from kernel. So that dtsi define is inherit. So that you see in currently u-boot.
I mean, I saw that comment and I'm aware of the derivation of the file, but I'm still not sure what bearing it has on the question at hand.
Is your view that because the dts was initially just copied from the kernel, it's not necessarily the right fit for u-boot, and that we should change it to unify these two functions in a single group? If so, I guess I'm still wondering what tangible benefit that would have, and about the flexibility issue I raised a few messages back.
If that's not what you're aiming to suggest, pardon me if I'm being dense here, but I'm going to need a more detailed explanation, because as it stands I'm still pretty mystified.
Quoted 19 lines
Quoted 19 lines
Quoted 6 lines
Quoted 6 lines
look fairly separate to me?
Quoted 1 line
May I know why you need separate?
Quoted 8 lines
Quoted 8 lines
In my particular case I don't need these two to be separate, but it seems conceivable that there might be other cases that would require a different set of signals to be enabled for a generic "UART3" group -- possibly more (sideband signals like CTS and such), or perhaps even fewer (e.g. if you had an output-only UART3 just for logging or something, and only needed TXD3 for that, but still wanted to use pin B14 as GPIOE7 instead of RXD3). Keeping them separate seems like it leaves things as flexible as possible, avoiding imposing any artificial
constraints.
Quoted 4 lines
Quoted 3 lines
Zev
Ryan Chen
reviewerHello,
Quoted 97 lines
-----Original Message-----
From: Zev Weiss <[email protected]>
Sent: Wednesday, December 15, 2021 10:50 AM
To: Ryan Chen <[email protected]>
Cc: [email protected]; Joel Stanley <[email protected]>; ChiaWei Wang <[email protected]>
Subject: Re: [PATCH u-boot v2019.04-aspeed-openbmc] pinctrl: ast2400: add support for TXD3/RXD3 pinsQuoted 31 lines · Ryan Chen
Hello,
Quoted 30 lines
-----Original Message-----
From: Zev Weiss <[email protected]>
Sent: Tuesday, December 14, 2021 11:43 AM
To: Ryan Chen <[email protected]>
Cc: [email protected]; Joel Stanley <[email protected]>; ChiaWei Wang <[email protected]>
Subject: Re: [PATCH u-boot v2019.04-aspeed-openbmc] pinctrl: ast2400:
add support for TXD3/RXD3 pinsQuoted 20 lines · Ryan Chen
Hello,
Quoted 19 lines
-----Original Message-----
From: Zev Weiss <[email protected]>
Sent: Tuesday, December 14, 2021 11:21 AM
To: Ryan Chen <[email protected]>
Cc: [email protected]; Joel Stanley <[email protected]>; ChiaWei Wang <[email protected]>
Subject: Re: [PATCH u-boot v2019.04-aspeed-openbmc] pinctrl: ast2400:
add support for TXD3/RXD3 pinsQuoted 9 lines · Ryan Chen
Hello,
Quoted 7 lines
-----Original Message-----
From: Zev Weiss <[email protected]>
Sent: Tuesday, December 14, 2021 9:33 AM
To: Ryan Chen <[email protected]>
Cc: [email protected]; Joel Stanley <[email protected]>; ChiaWei Wang <[email protected]>
Subject: Re: [PATCH u-boot v2019.04-aspeed-openbmc] pinctrl:ast2400:
Quoted 25 lines
Quoted 25 lines
Quoted 25 lines
Quoted 25 lines
Quoted 25 lines
Quoted 15 lines
add support for TXD3/RXD3 pins
Quoted 11 lines · Ryan Chen
Hello,
You may need claim for function group for link, not for pin link. Ex. static struct aspeed_sig_desc uart3_link[] = { { 0x80, BIT(22), 0}, { 0x80, BIT(23), 0}, } ast2400_groups[] = { { "UART3", 2, uart3_link },Ryan
Quoted 5 lines
Hi Ryan,
That possibility occurred to me, but the existing function/group names in
arch/arm/dts/ast2400.dtsi(lines 1130-1133 and 1375-1378) made me think they should be separate.This device tree is copied from Linux kernel.
Quoted 3 lines
I'm certainly not an expert on pinctrl stuff though...is there some other existing logic or mechanism to link a "UART3" to the separate "TXD3" and "RXD3" in the device tree?
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
There is no separate in u-boot device tree.
Perhaps we're misunderstanding each other...
https://github.com/openbmc/u-boot/blob/a570745a1a836e351bd4b1131f23a4
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
Quoted 5 lines
fa5013d6dd/arch/arm/dts/ast2400.dtsi#L1130-L1133
and
https://github.com/openbmc/u-boot/blob/a570745a1a836e351bd4b1131f23a4
Quoted 11 lines
Quoted 4 lines
Quoted 3 lines
Quoted 2 lines
fa5013d6dd/arch/arm/dts/ast2400.dtsi#L1375-L1378
The following is my point.
https://github.com/openbmc/u-boot/blob/a570745a1a836e351bd4b1131f23a
Quoted 6 lines
4fa
Quoted 2 lines
5013d6dd/arch/arm/dts/ast2400.dtsi#L3
I'm afraid I don't follow...how does it being copied from the Linux kernel device tree affect whether or not we should group these two or keep
them separate?
Quoted 3 lines
My point is the original dtsi file is copy from kernel. So that dtsi define is inherit. So that you see in currently u-boot.
Quoted 9 lines
I mean, I saw that comment and I'm aware of the derivation of the file, but I'm still not sure what bearing it has on the question at hand.
Is your view that because the dts was initially just copied from the kernel, it's not necessarily the right fit for u-boot, and that we should change it to unify these two functions in a single group? If so, I guess I'm still wondering what tangible benefit that would have, and about the flexibility issue I raised a few messages back.
Yes, it is my original through for dtsi file.
It is ok for this add for TXD3/RTX3 function for pinctrl.
Quoted 27 lines
If that's not what you're aiming to suggest, pardon me if I'm being dense here, but I'm going to need a more detailed explanation, because as it stands I'm still pretty mystified.
Quoted 22 lines
Quoted 22 lines
Quoted 6 lines
Quoted 6 lines
look fairly separate to me?
Quoted 1 line
May I know why you need separate?
Quoted 11 lines
Quoted 11 lines
In my particular case I don't need these two to be separate, but it seems conceivable that there might be other cases that would require a different set of signals to be enabled for a generic "UART3" group
-- possibly more (sideband signals like CTS and such), or perhaps even fewer (e.g. if you had an output-only UART3 just for logging or something, and only needed TXD3 for that, but still wanted to use pin
B14 as GPIOE7 instead of RXD3). Keeping them separate seems like it leaves things as flexible as possible, avoiding imposing any artificialconstraints.
Quoted 4 lines
Quoted 3 lines
Zev
Quoted 9 lines · Zev Weiss
In order to support putting the u-boot console on UART3 of the ast2400, this commit adds support for setting bits 22 and 23 of SCU80 to enable TXD3 and RXD3 on pins C14 and B14, respectively.
Signed-off-by Zev Weiss <[email protected]>---
drivers/pinctrl/aspeed/pinctrl_ast2400.c| 10 ++++++++++1 file changed, 10 insertions(+)
Ping...Joel?
Joel Stanley
maintainerQuoted 6 lines · Zev Weiss
Quoted 4 lines · Zev Weiss
In order to support putting the u-boot console on UART3 of the ast2400, this commit adds support for setting bits 22 and 23 of SCU80 to enable TXD3 and RXD3 on pins C14 and B14, respectively.
Quoted 7 lines
Quoted 5 lines
Signed-off-by Zev Weiss <[email protected]>---
drivers/pinctrl/aspeed/pinctrl_ast2400.c| 10 ++++++++++1 file changed, 10 insertions(+)Ping...Joel?
Pinctrl is not my jam. Did you resolve Ryan's concerns?
Andrew, does this change make sense?
Cheers,
Joel
Quoted 13 lines · Joel Stanley
Quoted 12 lines · Zev Weiss
Quoted 9 lines · Zev Weiss
In order to support putting the u-boot console on UART3 of the ast2400, this commit adds support for setting bits 22 and 23 of SCU80 to enable TXD3 and RXD3 on pins C14 and B14, respectively.
Signed-off-by Zev Weiss <[email protected]>---
drivers/pinctrl/aspeed/pinctrl_ast2400.c| 10 ++++++++++1 file changed, 10 insertions(+)
Quoted 5 lines
Quoted 1 line
Ping...Joel?
Pinctrl is not my jam. Did you resolve Ryan's concerns?
I had interpreted his last message as indicating that he thought it was OK as is, though perhaps I misunderstood -- Ryan, can you confirm?
Zev
Joel Stanley
maintainerQuoted 14 lines · Joel Stanley
Quoted 12 lines · Zev Weiss
Quoted 9 lines · Zev Weiss
In order to support putting the u-boot console on UART3 of the ast2400, this commit adds support for setting bits 22 and 23 of SCU80 to enable TXD3 and RXD3 on pins C14 and B14, respectively.
Signed-off-by Zev Weiss <[email protected]>---
drivers/pinctrl/aspeed/pinctrl_ast2400.c| 10 ++++++++++1 file changed, 10 insertions(+)
Quoted 6 lines
Quoted 1 line
Ping...Joel?
Pinctrl is not my jam. Did you resolve Ryan's concerns?
Andrew, does this change make sense?
Given the lack of objection, I have merged this into the tree.
Cheers,
Joel