|
| 1 | +From 79de58e232cf5880a8ff68f15091febfc6c8fb3b Mon Sep 17 00:00:00 2001 |
| 2 | +From: Natarajan Subbiramani < [email protected]> |
| 3 | +Date: Tue, 13 Jun 2023 17:04:23 +0000 |
| 4 | +Subject: [PATCH] arm64: dts: marvell: Add Nokia 7215-IXS-A1 board |
| 5 | + |
| 6 | +This dts is derived from Marvell RD-AC5X board to |
| 7 | +create platform specific dts for Nokia 7215-IXS-A1 |
| 8 | + |
| 9 | +Signed-off-by: Natarajan Subbiramani < [email protected]> |
| 10 | +Tested-by: Natarajan Subbiramani < [email protected]> |
| 11 | +Reviewed-by: Jon Goldberg < [email protected]> |
| 12 | +--- |
| 13 | + arch/arm64/boot/dts/marvell/7215-ixs-a1.dts | 108 ++++++++++++++++++++ |
| 14 | + arch/arm64/boot/dts/marvell/Makefile | 1 + |
| 15 | + 2 files changed, 109 insertions(+) |
| 16 | + create mode 100644 arch/arm64/boot/dts/marvell/7215-ixs-a1.dts |
| 17 | + |
| 18 | +diff --git a/arch/arm64/boot/dts/marvell/7215-ixs-a1.dts b/arch/arm64/boot/dts/marvell/7215-ixs-a1.dts |
| 19 | +new file mode 100644 |
| 20 | +index 000000000..8c10c5415 |
| 21 | +--- /dev/null |
| 22 | ++++ b/arch/arm64/boot/dts/marvell/7215-ixs-a1.dts |
| 23 | +@@ -0,0 +1,108 @@ |
| 24 | ++// SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 25 | ++/* |
| 26 | ++ * Copyright (C) 2023 Nokia |
| 27 | ++ * Copyright (C) 2021 Marvell |
| 28 | ++ * Copyright (C) 2022 Allied Telesis Labs |
| 29 | ++ */ |
| 30 | ++/* |
| 31 | ++ * Device Tree file for Nokia 7215-IXS-A1 |
| 32 | ++ */ |
| 33 | ++ |
| 34 | ++/dts-v1/; |
| 35 | ++ |
| 36 | ++#include "ac5-98dx35xx.dtsi" |
| 37 | ++ |
| 38 | ++/ { |
| 39 | ++ model = "7215-IXS-A1"; |
| 40 | ++ compatible = "marvell,rd-ac5x", "marvell,ac5x", "marvell,ac5"; |
| 41 | ++ |
| 42 | ++ aliases { |
| 43 | ++ serial0 = &uart0; |
| 44 | ++ spiflash0 = &spiflash0; |
| 45 | ++ gpio0 = &gpio0; |
| 46 | ++ gpio1 = &gpio1; |
| 47 | ++ ethernet0 = ð0; |
| 48 | ++ ethernet1 = ð1; |
| 49 | ++ }; |
| 50 | ++ |
| 51 | ++ memory@0 { |
| 52 | ++ device_type = "memory"; |
| 53 | ++ reg = <0x2 0x00000000 0x0 0x40000000>; |
| 54 | ++ }; |
| 55 | ++ |
| 56 | ++ usb1phy: usb-phy { |
| 57 | ++ compatible = "usb-nop-xceiv"; |
| 58 | ++ #phy-cells = <0>; |
| 59 | ++ }; |
| 60 | ++}; |
| 61 | ++ |
| 62 | ++&mdio { |
| 63 | ++ phy0: ethernet-phy@0 { |
| 64 | ++ marvell,reg-init = <0x03 0x10 0x0 0x1140>; |
| 65 | ++ reg = <0>; |
| 66 | ++ }; |
| 67 | ++}; |
| 68 | ++ |
| 69 | ++&i2c0 { |
| 70 | ++ status = "okay"; |
| 71 | ++}; |
| 72 | ++ |
| 73 | ++&i2c1 { |
| 74 | ++ status = "okay"; |
| 75 | ++}; |
| 76 | ++ |
| 77 | ++ð0 { |
| 78 | ++ status = "okay"; |
| 79 | ++ phy-handle = <&phy0>; |
| 80 | ++}; |
| 81 | ++ |
| 82 | ++/* USB0 is a host USB */ |
| 83 | ++&usb0 { |
| 84 | ++ status = "okay"; |
| 85 | ++}; |
| 86 | ++ |
| 87 | ++/* USB1 is a peripheral USB */ |
| 88 | ++&usb1 { |
| 89 | ++ status = "okay"; |
| 90 | ++ phys = <&usb1phy>; |
| 91 | ++ phy-names = "usb-phy"; |
| 92 | ++ dr_mode = "peripheral"; |
| 93 | ++}; |
| 94 | ++ |
| 95 | ++&spi0 { |
| 96 | ++ status = "okay"; |
| 97 | ++ |
| 98 | ++ spiflash0: flash@0 { |
| 99 | ++ compatible = "jedec,spi-nor"; |
| 100 | ++ spi-max-frequency = <50000000>; |
| 101 | ++ spi-tx-bus-width = <1>; /* 1-single, 2-dual, 4-quad */ |
| 102 | ++ spi-rx-bus-width = <1>; /* 1-single, 2-dual, 4-quad */ |
| 103 | ++ reg = <0>; |
| 104 | ++ |
| 105 | ++ #address-cells = <1>; |
| 106 | ++ #size-cells = <1>; |
| 107 | ++ |
| 108 | ++ partition@0 { |
| 109 | ++ label = "spi_flash_part0"; |
| 110 | ++ reg = <0x0 0x800000>; |
| 111 | ++ }; |
| 112 | ++ |
| 113 | ++ parition@1 { |
| 114 | ++ label = "spi_flash_part1"; |
| 115 | ++ reg = <0x800000 0x700000>; |
| 116 | ++ }; |
| 117 | ++ |
| 118 | ++ parition@2 { |
| 119 | ++ label = "spi_flash_part2"; |
| 120 | ++ reg = <0xF00000 0x100000>; |
| 121 | ++ }; |
| 122 | ++ }; |
| 123 | ++}; |
| 124 | ++ |
| 125 | ++/{ |
| 126 | ++ sdma_drv { |
| 127 | ++ compatible = "marvell,mvppnd"; |
| 128 | ++ interrupts = <GIC_SPI 0x23 IRQ_TYPE_LEVEL_HIGH>; |
| 129 | ++ status = "okay"; |
| 130 | ++ }; |
| 131 | ++}; |
| 132 | +diff --git a/arch/arm64/boot/dts/marvell/Makefile b/arch/arm64/boot/dts/marvell/Makefile |
| 133 | +index 6873ad448..b53edc9b7 100644 |
| 134 | +--- a/arch/arm64/boot/dts/marvell/Makefile |
| 135 | ++++ b/arch/arm64/boot/dts/marvell/Makefile |
| 136 | +@@ -18,3 +18,4 @@ dtb-$(CONFIG_ARCH_MVEBU) += cn9131-db.dtb |
| 137 | + dtb-$(CONFIG_ARCH_MVEBU) += cn9132-db.dtb |
| 138 | + dtb-$(CONFIG_ARCH_MVEBU) += ac5-98dx35xx-rd.dtb |
| 139 | + dtb-$(CONFIG_ARCH_MVEBU) += armada-7020-comexpress.dtb |
| 140 | ++dtb-$(CONFIG_ARCH_MVEBU) += 7215-ixs-a1.dtb |
| 141 | +-- |
| 142 | +2.25.1 |
| 143 | + |
0 commit comments