mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 04:23:35 +02:00
IXP4xx DTS updates for v6.18:
Add the Actiontec router MI424WR A/C and D device trees. Prerequisite DT bindings have been merged in networking and GPIO git trees: https://lore.kernel.org/netdev/175106401649.2079310.16035106613106076029.git-patchwork-notify@kernel.org/ https://lore.kernel.org/linux-gpio/175614780274.8817.4717113656972710108.b4-ty@linaro.org/ -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEElDRnuGcz/wPCXQWMQRCzN7AZXXMFAmixcRoACgkQQRCzN7AZ XXOTQRAAv27FmZswsr9QADHOaTxtYwbYlUgZm1E3ufi7j/LiWh6WhS+nBKS7oOVw nY4E4OuiSJ9Du1ktC73+D9dc6ncS6JdXHuDuPetL78PgrE6ZcmYUX00tdReWU3J4 ahtBpx81H5lL2PezxCM73EQLzbWDe+5Tj9yJoOc8wsCQ1tt5npu5+LG8EeP5TXhJ qPJt3n8dKmsZUTiniMRDJUpHfhcZ3N2s+X/t1plI55bmp2FFMXkWLXaSPasuZRKI octgUf9ttE/ye6PZFa+5c789A5HZQGVKJUFa9e4O+O58hr8bA+hi+JGUQDQmDkwA ac/X4Hn27StsQJ1rgvxqP1OxgzcDwSiFfzFF9Bo7tZb0RFYSsIAhUUFGWJJKaxIU /x+hKRkalKJqeF3wVCAZZQ46pV0uYtenxiMTG1/B7Z4PfO4RoAFJfS66MPhs/LXH UJTMGTsNv36/Cmwl99LXg22KLh0Mk86IBgGKVBUFod5KqNLssg0sl0/p22tv7yeK UTjhn/cD2SC+EbVph7HPGGcpAeQljSrOhUJ7GxWugpYP5AD82t4GTuCj2thViFpU fJaEvWIugpfSrHIVlTQg7hbBJd/3dryYsuPCr20ZCVw8a5gub1Ew69ac049vyn7N 5Xf4okJ8GvlSKQI/S1W7+psy+fJq8dCqLwm14dix0MmwtmTMMc0= =LfS3 -----END PGP SIGNATURE----- gpgsig -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEo6/YBQwIrVS28WGKmmx57+YAGNkFAmi1bgcACgkQmmx57+YA GNnqHBAAlDa36iJlm4d5Qp1TIFjFoU7aiEW+Dtt5p+Lrpaig/RN+av+BBcczAl+6 /VtaAzsJgPbNUeNjIBWVGgKhT/IOrhvl13tGt6YL2VClIoXGoYcJd/CvMY+7zevA YjwMFT4YcE63IY3kK5DOHwj/3jxhqd1fpS8mRaNOLryHBN1LlDAUwNc1CfTuDHSD yak9CSne9w3DnOpATJXYgOI193Q8wSaqV6kTkEkz4oOSh48B620qaJc6wQcE3cXC PInZERrPLawM7z+7Qfkg4L0ufFsBwMoZ5SXukNDRhVjcbiwiPmntNUH3U2Ie2/M8 y+5MTTZTXsR8zmA/PneVEL8+cVpTN8nVZaKnQLSVMv83qjIOoELrmfqTXSrZpczj /dsKsdiL6hduOnakuy9kP6erxEVlsLqjZ+/jwNWMctjsSJO2Nxo0GzhIQKRqVZJ7 acLoF8d+qnqxVqRJ/I4i/y5Ypw/jABJpj6Z1xLPJ5grNhXUy0FyIupYyzNPSnDF2 gSDL3G53PSYo7x/cba7ftqnZLlOugrmomh1caAA9/i8CT1qE1HCzAjWDXcM6pbBa PjQoQ2RbJ0kLQnX0Nzmu3C8HnjTxQm17PIDgdQcQ5e/3fsTgN4Y05m8TySEjKGa5 6CZbAXFI+Iy33v1D9h6SX1g5Tv1SJRzuXL/wHvk3CBhgpCu5coA= =CnM/ -----END PGP SIGNATURE----- Merge tag 'ixp4xx-dts-v6.18' of https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator into soc/dt IXP4xx DTS updates for v6.18: Add the Actiontec router MI424WR A/C and D device trees. Prerequisite DT bindings have been merged in networking and GPIO git trees: https://lore.kernel.org/netdev/175106401649.2079310.16035106613106076029.git-patchwork-notify@kernel.org/ https://lore.kernel.org/linux-gpio/175614780274.8817.4717113656972710108.b4-ty@linaro.org/ * tag 'ixp4xx-dts-v6.18' of https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator: ARM: dts: Add ixp4xx Actiontec MI424WR device trees dt-bindings: arm: ixp4xx: List actiontec devices dt-bindings: Add Actiontec vendor prefix Link: https://lore.kernel.org/r/CACRpkdZoDCXgsTGzUUWABbp_r1Xjv7vp7_NjEnEWzMmDQG+UJQ@mail.gmail.com Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
commit
58770c8759
|
|
@ -16,6 +16,8 @@ properties:
|
|||
oneOf:
|
||||
- items:
|
||||
- enum:
|
||||
- actiontec,mi424wr-ac
|
||||
- actiontec,mi424wr-d
|
||||
- adieng,coyote
|
||||
- arcom,vulcan
|
||||
- dlink,dsm-g600-a
|
||||
|
|
|
|||
|
|
@ -48,6 +48,8 @@ patternProperties:
|
|||
description: Acme Systems srl
|
||||
"^actions,.*":
|
||||
description: Actions Semiconductor Co., Ltd.
|
||||
"^actiontec,.*":
|
||||
description: Actiontec Electronics, Inc
|
||||
"^active-semi,.*":
|
||||
description: Active-Semi International Inc
|
||||
"^ad,.*":
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
dtb-$(CONFIG_ARCH_IXP4XX) += \
|
||||
intel-ixp42x-actiontec-mi424wr-ac.dtb \
|
||||
intel-ixp42x-actiontec-mi424wr-d.dtb \
|
||||
intel-ixp42x-linksys-nslu2.dtb \
|
||||
intel-ixp42x-linksys-wrv54g.dtb \
|
||||
intel-ixp42x-freecom-fsg-3.dtb \
|
||||
|
|
|
|||
|
|
@ -0,0 +1,37 @@
|
|||
// SPDX-License-Identifier: ISC
|
||||
/*
|
||||
* Device Tree file for the IXP425-based Actiontec MI424WR revision A and C
|
||||
* Based on a board file from OpenWrt by Jose Vasconcellos.
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
|
||||
#include "intel-ixp42x-actiontec-mi424wr.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Actiontec MI424WR rev A/C";
|
||||
compatible = "actiontec,mi424wr-ac", "intel,ixp42x";
|
||||
|
||||
soc {
|
||||
/* EthB used for WAN */
|
||||
ethernet@c8009000 {
|
||||
phy-handle = <&phy17>; // 17 on revision A-C
|
||||
|
||||
mdio {
|
||||
phy17: ethernet-phy@17 {
|
||||
/* WAN */
|
||||
reg = <17>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
/* EthC used for LAN */
|
||||
ethernet@c800a000 {
|
||||
/* Fixed link to the CPU MII port on the KS8995 */
|
||||
fixed-link {
|
||||
speed = <100>;
|
||||
full-duplex;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
// SPDX-License-Identifier: ISC
|
||||
/*
|
||||
* Device Tree file for the IXP425-based Actiontec MI424WR revision D
|
||||
* Based on a board file from OpenWrt by Jose Vasconcellos.
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
|
||||
#include "intel-ixp42x-actiontec-mi424wr.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Actiontec MI424WR rev D";
|
||||
compatible = "actiontec,mi424wr-d", "intel,ixp42x";
|
||||
|
||||
soc {
|
||||
/* EthB used for LAN */
|
||||
ethernet@c8009000 {
|
||||
/* Fixed link to the CPU MII port on the KS8995 */
|
||||
fixed-link {
|
||||
speed = <100>;
|
||||
full-duplex;
|
||||
};
|
||||
|
||||
mdio {
|
||||
/* PHY ID 0x00221450 */
|
||||
phy5: ethernet-phy@5 {
|
||||
/* WAN */
|
||||
reg = <5>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
/* EthC used for WAN */
|
||||
ethernet@c800a000 {
|
||||
phy-handle = <&phy5>; // 5 on revision D
|
||||
};
|
||||
};
|
||||
};
|
||||
272
arch/arm/boot/dts/intel/ixp/intel-ixp42x-actiontec-mi424wr.dtsi
Normal file
272
arch/arm/boot/dts/intel/ixp/intel-ixp42x-actiontec-mi424wr.dtsi
Normal file
|
|
@ -0,0 +1,272 @@
|
|||
// SPDX-License-Identifier: ISC
|
||||
/*
|
||||
* Device Tree file for the IXP425-based Actiontec MI424WR
|
||||
* Based on a board file from OpenWrt by Jose Vasconcellos.
|
||||
*/
|
||||
|
||||
#include "intel-ixp42x.dtsi"
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include <dt-bindings/leds/common.h>
|
||||
|
||||
/ {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
memory@0 {
|
||||
device_type = "memory";
|
||||
reg = <0x00000000 0x02000000>;
|
||||
};
|
||||
|
||||
chosen {
|
||||
bootargs = "console=ttyS0,115200n8";
|
||||
stdout-path = "uart1:115200n8";
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led-wan-coax {
|
||||
color = <LED_COLOR_ID_GREEN>;
|
||||
function = "wan-coax";
|
||||
gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
|
||||
default-state = "off";
|
||||
};
|
||||
led-power-alarm {
|
||||
color = <LED_COLOR_ID_RED>;
|
||||
function = LED_FUNCTION_ALARM;
|
||||
gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
|
||||
default-state = "off";
|
||||
};
|
||||
led-power {
|
||||
color = <LED_COLOR_ID_GREEN>;
|
||||
function = LED_FUNCTION_POWER;
|
||||
gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
|
||||
default-state = "on";
|
||||
linux,default-trigger = "heartbeat";
|
||||
};
|
||||
led-wireless {
|
||||
color = <LED_COLOR_ID_GREEN>;
|
||||
function = LED_FUNCTION_WLAN;
|
||||
gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
|
||||
default-state = "off";
|
||||
};
|
||||
led-internet-down {
|
||||
color = <LED_COLOR_ID_RED>;
|
||||
function = "internet-down";
|
||||
gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
|
||||
default-state = "off";
|
||||
};
|
||||
led-internet-up {
|
||||
color = <LED_COLOR_ID_GREEN>;
|
||||
function = "internet-up";
|
||||
gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
|
||||
default-state = "off";
|
||||
};
|
||||
led-lan-coax {
|
||||
color = <LED_COLOR_ID_GREEN>;
|
||||
function = "lan-coax";
|
||||
gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
|
||||
default-state = "off";
|
||||
};
|
||||
led-wan-ethernet-alarm {
|
||||
color = <LED_COLOR_ID_RED>;
|
||||
function = "wan-ethernet-alarm";
|
||||
gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
|
||||
default-state = "off";
|
||||
};
|
||||
/* The last three LEDs are not mounted but traces exist on the PCB */
|
||||
led-phone-1 {
|
||||
color = <LED_COLOR_ID_GREEN>;
|
||||
function = "phone-1";
|
||||
gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
|
||||
default-state = "off";
|
||||
};
|
||||
led-phone-2 {
|
||||
color = <LED_COLOR_ID_GREEN>;
|
||||
function = "phone-2";
|
||||
gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
|
||||
default-state = "off";
|
||||
};
|
||||
led-voip {
|
||||
color = <LED_COLOR_ID_GREEN>;
|
||||
function = "voip";
|
||||
gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
|
||||
default-state = "off";
|
||||
};
|
||||
};
|
||||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
button-reset {
|
||||
wakeup-source;
|
||||
linux,code = <KEY_RESTART>;
|
||||
label = "reset";
|
||||
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
||||
spi {
|
||||
compatible = "spi-gpio";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
sck-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
|
||||
mosi-gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
|
||||
miso-gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
|
||||
cs-gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
|
||||
num-chipselects = <1>;
|
||||
|
||||
ethernet-switch@0 {
|
||||
compatible = "micrel,ks8995";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <50000000>;
|
||||
|
||||
ethernet-ports {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
ethernet-port@0 {
|
||||
reg = <0>;
|
||||
label = "lan1";
|
||||
phy-mode = "mii";
|
||||
phy-handle = <&phy1>;
|
||||
};
|
||||
ethernet-port@1 {
|
||||
reg = <1>;
|
||||
label = "lan2";
|
||||
phy-mode = "mii";
|
||||
phy-handle = <&phy2>;
|
||||
};
|
||||
ethernet-port@2 {
|
||||
reg = <2>;
|
||||
label = "lan3";
|
||||
phy-mode = "mii";
|
||||
phy-handle = <&phy3>;
|
||||
};
|
||||
ethernet-port@3 {
|
||||
reg = <3>;
|
||||
label = "lan4";
|
||||
phy-mode = "mii";
|
||||
phy-handle = <&phy4>;
|
||||
};
|
||||
ethernet-port@4 {
|
||||
reg = <4>;
|
||||
ethernet = <ðc>;
|
||||
phy-mode = "mii";
|
||||
fixed-link {
|
||||
speed = <100>;
|
||||
full-duplex;
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
soc {
|
||||
bus@c4000000 {
|
||||
flash@0,0 {
|
||||
compatible = "intel,ixp4xx-flash", "cfi-flash";
|
||||
bank-width = <2>;
|
||||
/*
|
||||
* 8 MB of Flash in 64 0x20000 sized blocks
|
||||
* mapped in at CS0.
|
||||
*/
|
||||
reg = <0 0x00000000 0x0800000>;
|
||||
|
||||
/* Configure expansion bus to allow writes */
|
||||
intel,ixp4xx-eb-write-enable = <1>;
|
||||
|
||||
partitions {
|
||||
compatible = "redboot-fis";
|
||||
fis-index-block = <0x3f>;
|
||||
};
|
||||
};
|
||||
gpio1: gpio@1,0 {
|
||||
/* MMIO GPIO at CS1 */
|
||||
compatible = "intel,ixp4xx-expansion-bus-mmio-gpio";
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
big-endian;
|
||||
reg = <1 0x00000000 0x2>;
|
||||
reg-names = "dat";
|
||||
/* Expansion bus settings */
|
||||
intel,ixp4xx-eb-write-enable = <1>;
|
||||
|
||||
pci-reset-hog {
|
||||
gpio-hog;
|
||||
gpios = <7 GPIO_ACTIVE_HIGH>;
|
||||
output-high;
|
||||
line-name = "PCI reset";
|
||||
};
|
||||
pstn-relay-hog-1 {
|
||||
gpio-hog;
|
||||
gpios = <11 GPIO_ACTIVE_HIGH>;
|
||||
output-low;
|
||||
line-name = "PSTN relay control 1";
|
||||
};
|
||||
pstn-relay-hog-2 {
|
||||
gpio-hog;
|
||||
gpios = <12 GPIO_ACTIVE_HIGH>;
|
||||
output-low;
|
||||
line-name = "PSTN relay control 2";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
pci@c0000000 {
|
||||
status = "okay";
|
||||
|
||||
#interrupt-cells = <1>;
|
||||
interrupt-map-mask = <0xf800 0 0 7>;
|
||||
interrupt-map =
|
||||
/* IDSEL 13 */
|
||||
<0x6800 0 0 1 &gpio0 8 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 13 is irq 8 */
|
||||
<0x6800 0 0 2 &gpio0 6 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 13 is irq 6 */
|
||||
/* IDSEL 14 */
|
||||
<0x7000 0 0 1 &gpio0 8 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 14 is irq 7 */
|
||||
<0x7000 0 0 2 &gpio0 6 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 14 is irq 8 */
|
||||
/* IDSEL 15 */
|
||||
<0x7800 0 0 1 &gpio0 8 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 15 is irq 6 */
|
||||
<0x7800 0 0 2 &gpio0 6 IRQ_TYPE_LEVEL_LOW>; /* INT B on slot 15 is irq 7 */
|
||||
};
|
||||
|
||||
ethb: ethernet@c8009000 {
|
||||
status = "okay";
|
||||
queue-rx = <&qmgr 3>;
|
||||
queue-txready = <&qmgr 20>;
|
||||
phy-mode = "mii";
|
||||
|
||||
mdio {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
/* 1, 2, 3 and 4 are ports on the KS8995 switch */
|
||||
phy1: ethernet-phy@1 {
|
||||
/* LAN1 */
|
||||
reg = <1>;
|
||||
};
|
||||
phy2: ethernet-phy@2 {
|
||||
/* LAN2 */
|
||||
reg = <2>;
|
||||
};
|
||||
phy3: ethernet-phy@3 {
|
||||
/* LAN3 */
|
||||
reg = <3>;
|
||||
};
|
||||
phy4: ethernet-phy@4 {
|
||||
/* LAN4 */
|
||||
reg = <4>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
ethc: ethernet@c800a000 {
|
||||
status = "okay";
|
||||
queue-rx = <&qmgr 4>;
|
||||
queue-txready = <&qmgr 21>;
|
||||
phy-mode = "mii";
|
||||
};
|
||||
};
|
||||
};
|
||||
Loading…
Reference in New Issue
Block a user