322-ARM-dts-BCM5301X-Add-basic-DT-for-Phicomm-K3.patch 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. From 8ab0ea8e9275c03f253f84dc83ee86cdbeb1fcf4 Mon Sep 17 00:00:00 2001
  2. From: Hao Dong <[email protected]>
  3. Date: Sat, 19 Jan 2019 17:25:29 +0000
  4. Subject: [PATCH] ARM: dts: BCM5301X: Add basic DT for Phicomm K3
  5. This router has BCM4709C0, 128MB NAND flash (MX30LF1G18AC-TI),
  6. and 512MB memory, with 3 x LAN and 1 x WAN. WL chips are
  7. BCM4366C0 x 2. The router has a small LCD and 3 capactive keys
  8. driven by a PIC microcontroller, which is in turn wired to
  9. UART1 of main board.
  10. Everything except the LCD works. Hamster has activated LCD through
  11. UART1, but further programming, i.e., a independent package, is
  12. required to make sure its working properly.
  13. Since the firmware of Broadcom 4366c0 has been provided by
  14. openwrt.org, now its wireless is functional but limited. The
  15. "official" firmware cannot work properly in some 5G Hz channel.
  16. Signed-off-by: Hao Dong <[email protected]>
  17. ---
  18. arch/arm/boot/dts/Makefile | 1 +
  19. arch/arm/boot/dts/bcm47094-phicomm-k3.dts | 75 +++++++++++++++++++++++
  20. 2 files changed, 76 insertions(+)
  21. create mode 100644 arch/arm/boot/dts/bcm47094-phicomm-k3.dts
  22. --- a/arch/arm/boot/dts/Makefile
  23. +++ b/arch/arm/boot/dts/Makefile
  24. @@ -109,6 +109,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
  25. bcm47094-luxul-xwr-3100.dtb \
  26. bcm47094-luxul-xwr-3150-v1.dtb \
  27. bcm47094-netgear-r8500.dtb \
  28. + bcm47094-phicomm-k3.dtb \
  29. bcm94708.dtb \
  30. bcm94709.dtb \
  31. bcm953012er.dtb \
  32. --- /dev/null
  33. +++ b/arch/arm/boot/dts/bcm47094-phicomm-k3.dts
  34. @@ -0,0 +1,75 @@
  35. +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  36. +/*
  37. +* Copyright (C) 2017 Hamster Tian <[email protected]>
  38. +* Copyright (C) 2019 Hao Dong <[email protected]>
  39. +*/
  40. +
  41. +/dts-v1/;
  42. +
  43. +#include "bcm47094.dtsi"
  44. +#include "bcm5301x-nand-cs0-bch4.dtsi"
  45. +
  46. +/ {
  47. + compatible = "phicomm,k3", "brcm,bcm47094", "brcm,bcm4708";
  48. + model = "Phicomm K3";
  49. +
  50. + chosen {
  51. + bootargs = "console=ttyS0,115200";
  52. + };
  53. +
  54. + memory {
  55. + reg = <0x00000000 0x08000000
  56. + 0x88000000 0x18000000>;
  57. + };
  58. +
  59. + gpio-keys {
  60. + compatible = "gpio-keys";
  61. + #address-cells = <1>;
  62. + #size-cells = <0>;
  63. +
  64. + restart {
  65. + label = "Reset";
  66. + linux,code = <KEY_RESTART>;
  67. + gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
  68. + };
  69. + };
  70. +};
  71. +
  72. +&uart1 {
  73. + status = "okay";
  74. +};
  75. +
  76. +&usb3_phy {
  77. + status = "okay";
  78. +};
  79. +
  80. +&nandcs {
  81. + partitions {
  82. + compatible = "fixed-partitions";
  83. + #address-cells = <1>;
  84. + #size-cells = <1>;
  85. +
  86. + partition@0 {
  87. + label = "boot";
  88. + reg = <0x0000000 0x0080000>;
  89. + read-only;
  90. + };
  91. +
  92. + partition@80000 {
  93. + label = "nvram";
  94. + reg = <0x0080000 0x0100000>;
  95. + };
  96. +
  97. + partition@180000{
  98. + label = "phicomm";
  99. + reg = <0x0180000 0x0280000>;
  100. + read-only;
  101. + };
  102. +
  103. + partition@400000 {
  104. + label = "firmware";
  105. + reg = <0x0400000 0x7C00000>;
  106. + compatible = "brcm,trx";
  107. + };
  108. + };
  109. +};