Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: BCM5301X: Add basic DT for Phicomm K3

This router has BCM4709C0 SoC, 128 MiB NAND flash (MX30LF1G18AC-TI),
512 MiB memory and 3 x LAN and 1 x WAN ports. WiFi chips are
BCM4366C0 x 2. The router has a small LCD and 3 capactive keys driven by
a PIC microcontroller, which is in turn wired to UART1 of main board.

Signed-off-by: Hao Dong <halbertdong@gmail.com>
[rmilecki: drop chosen { }, fix whitespaces, update commit message]
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>

authored by

Hao Dong and committed by
Florian Fainelli
40a17923 b7f264fa

+72
+1
arch/arm/boot/dts/Makefile
··· 115 115 bcm47094-luxul-xwr-3100.dtb \ 116 116 bcm47094-luxul-xwr-3150-v1.dtb \ 117 117 bcm47094-netgear-r8500.dtb \ 118 + bcm47094-phicomm-k3.dtb \ 118 119 bcm94708.dtb \ 119 120 bcm94709.dtb \ 120 121 bcm953012er.dtb \
+71
arch/arm/boot/dts/bcm47094-phicomm-k3.dts
··· 1 + // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2 + /* 3 + * Copyright (C) 2017 Hamster Tian <haotia@gmail.com> 4 + * Copyright (C) 2019 Hao Dong <halbertdong@gmail.com> 5 + */ 6 + 7 + /dts-v1/; 8 + 9 + #include "bcm47094.dtsi" 10 + #include "bcm5301x-nand-cs0-bch4.dtsi" 11 + 12 + / { 13 + compatible = "phicomm,k3", "brcm,bcm47094", "brcm,bcm4708"; 14 + model = "Phicomm K3"; 15 + 16 + memory { 17 + reg = <0x00000000 0x08000000 18 + 0x88000000 0x18000000>; 19 + }; 20 + 21 + gpio-keys { 22 + compatible = "gpio-keys"; 23 + #address-cells = <1>; 24 + #size-cells = <0>; 25 + 26 + restart { 27 + label = "Reset"; 28 + linux,code = <KEY_RESTART>; 29 + gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>; 30 + }; 31 + }; 32 + }; 33 + 34 + &uart1 { 35 + status = "okay"; 36 + }; 37 + 38 + &usb3_phy { 39 + status = "okay"; 40 + }; 41 + 42 + &nandcs { 43 + partitions { 44 + compatible = "fixed-partitions"; 45 + #address-cells = <1>; 46 + #size-cells = <1>; 47 + 48 + partition@0 { 49 + label = "boot"; 50 + reg = <0x0000000 0x0080000>; 51 + read-only; 52 + }; 53 + 54 + partition@80000 { 55 + label = "nvram"; 56 + reg = <0x0080000 0x0100000>; 57 + }; 58 + 59 + partition@180000{ 60 + label = "phicomm"; 61 + reg = <0x0180000 0x0280000>; 62 + read-only; 63 + }; 64 + 65 + partition@400000 { 66 + label = "firmware"; 67 + reg = <0x0400000 0x7C00000>; 68 + compatible = "brcm,trx"; 69 + }; 70 + }; 71 + };