aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/dts
diff options
context:
space:
mode:
authorDamien Le Moal <damien.lemoal@opensource.wdc.com>2022-03-01 10:35:41 +0000
committerLeo Yu-Chi Liang <ycliang@andestech.com>2022-03-15 17:43:11 +0800
commita6c86ec2d6acbb173414ced61fc9c75f80b622f6 (patch)
tree29091bff96a2d1da277bf961158ea1512664204f /arch/riscv/dts
parentdd241d04a6ea394f71e5c5c2cdc3f320acb3cdf5 (diff)
downloadu-boot-a6c86ec2d6acbb173414ced61fc9c75f80b622f6.zip
u-boot-a6c86ec2d6acbb173414ced61fc9c75f80b622f6.tar.gz
u-boot-a6c86ec2d6acbb173414ced61fc9c75f80b622f6.tar.bz2
k210: dts: align fpioa node with Linux
Linux kernel fpioa pinctrl driver expects the sysctl phandle and the power bit offset of the fpioa device to be specified as a single property "canaan,k210-sysctl-power". Replace the "canaan,k210-sysctl" and "canaan,k210-power-offset" properties with "canaan,k210-sysctl-power" to satisfy the Linux kernel requirements. This new property is parsed using the existing function dev_read_phandle_with_args(). Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com> Reviewed-by: Sean Anderson <seanga2@gmail.com>
Diffstat (limited to 'arch/riscv/dts')
-rw-r--r--arch/riscv/dts/k210.dtsi3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/riscv/dts/k210.dtsi b/arch/riscv/dts/k210.dtsi
index 5c88c8e..cf5c236 100644
--- a/arch/riscv/dts/k210.dtsi
+++ b/arch/riscv/dts/k210.dtsi
@@ -378,8 +378,7 @@
<&sysclk K210_CLK_APB0>;
clock-names = "ref", "pclk";
resets = <&sysrst K210_RST_FPIOA>;
- canaan,k210-sysctl = <&sysctl>;
- canaan,k210-power-offset = <K210_SYSCTL_POWER_SEL>;
+ canaan,k210-sysctl-power = <&sysctl K210_SYSCTL_POWER_SEL>;
pinctrl-0 = <&fpioa_jtag>;
pinctrl-names = "default";
status = "disabled";