1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-or-later 2724ba675SRob Herring/* 3724ba675SRob Herring * Ctera C200 V1 Board Description 4724ba675SRob Herring * Copyright 2021-2022 Pawel Dembicki <paweldembicki@gmail.com> 5724ba675SRob Herring */ 6724ba675SRob Herring 7724ba675SRob Herring/dts-v1/; 8724ba675SRob Herring 9724ba675SRob Herring#include "kirkwood.dtsi" 10724ba675SRob Herring#include "kirkwood-6281.dtsi" 11724ba675SRob Herring#include <dt-bindings/leds/common.h> 12724ba675SRob Herring 13724ba675SRob Herring/ { 14724ba675SRob Herring model = "Ctera C200 V1"; 15724ba675SRob Herring compatible = "ctera,c200-v1", "marvell,kirkwood-88f6281", "marvell,kirkwood"; 16724ba675SRob Herring 17724ba675SRob Herring chosen { 18724ba675SRob Herring bootargs = "console=ttyS0,115200"; 19724ba675SRob Herring stdout-path = &uart0; 20724ba675SRob Herring }; 21724ba675SRob Herring 22724ba675SRob Herring memory@0 { 23724ba675SRob Herring device_type = "memory"; 24724ba675SRob Herring reg = <0x00000000 0x20000000>; 25724ba675SRob Herring }; 26724ba675SRob Herring 27724ba675SRob Herring keys { 28724ba675SRob Herring compatible = "gpio-keys"; 29724ba675SRob Herring pinctrl-0 = <&pmx_buttons>; 30724ba675SRob Herring pinctrl-names = "default"; 31724ba675SRob Herring 32*b98a9191SKrzysztof Kozlowski button-power { 33724ba675SRob Herring label = "Power Button"; 34724ba675SRob Herring linux,code = <KEY_POWER>; 35724ba675SRob Herring gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>; 36724ba675SRob Herring }; 37724ba675SRob Herring 38*b98a9191SKrzysztof Kozlowski button-reset { 39724ba675SRob Herring label = "Reset Button"; 40724ba675SRob Herring linux,code = <KEY_RESTART>; 41724ba675SRob Herring gpios = <&gpio1 17 GPIO_ACTIVE_LOW>; 42724ba675SRob Herring }; 43724ba675SRob Herring 44*b98a9191SKrzysztof Kozlowski button-usb1 { 45724ba675SRob Herring label = "USB1 Button"; 46724ba675SRob Herring linux,code = <BTN_0>; 47724ba675SRob Herring gpios = <&gpio0 28 GPIO_ACTIVE_LOW>; 48724ba675SRob Herring }; 49724ba675SRob Herring 50*b98a9191SKrzysztof Kozlowski button-usb2 { 51724ba675SRob Herring label = "USB2 Button"; 52724ba675SRob Herring linux,code = <BTN_1>; 53724ba675SRob Herring gpios = <&gpio0 29 GPIO_ACTIVE_LOW>; 54724ba675SRob Herring }; 55724ba675SRob Herring }; 56724ba675SRob Herring 57724ba675SRob Herring gpio-poweroff { 58724ba675SRob Herring compatible = "gpio-poweroff"; 59724ba675SRob Herring pinctrl-0 = <&pmx_poweroff>; 60724ba675SRob Herring pinctrl-names = "default"; 61724ba675SRob Herring gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; 62724ba675SRob Herring }; 63724ba675SRob Herring 64724ba675SRob Herring leds { 65724ba675SRob Herring compatible = "gpio-leds"; 66724ba675SRob Herring pinctrl-0 = <&pmx_leds>; 67724ba675SRob Herring pinctrl-names = "default"; 68724ba675SRob Herring 69724ba675SRob Herring led-0 { 70724ba675SRob Herring function = LED_FUNCTION_DISK; 71724ba675SRob Herring function-enumerator = <2>; 72724ba675SRob Herring color = <LED_COLOR_ID_RED>; 73724ba675SRob Herring gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; 74724ba675SRob Herring }; 75724ba675SRob Herring 76724ba675SRob Herring led-1 { 77724ba675SRob Herring function = LED_FUNCTION_DISK; 78724ba675SRob Herring function-enumerator = <1>; 79724ba675SRob Herring color = <LED_COLOR_ID_GREEN>; 80724ba675SRob Herring gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; 81724ba675SRob Herring }; 82724ba675SRob Herring 83724ba675SRob Herring led-2 { 84724ba675SRob Herring function = LED_FUNCTION_DISK; 85724ba675SRob Herring function-enumerator = <2>; 86724ba675SRob Herring color = <LED_COLOR_ID_GREEN>; 87724ba675SRob Herring gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; 88724ba675SRob Herring }; 89724ba675SRob Herring 90724ba675SRob Herring led-3 { 91724ba675SRob Herring function = LED_FUNCTION_DISK; 92724ba675SRob Herring function-enumerator = <1>; 93724ba675SRob Herring color = <LED_COLOR_ID_RED>; 94724ba675SRob Herring gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; 95724ba675SRob Herring }; 96724ba675SRob Herring 97724ba675SRob Herring led-4 { 98724ba675SRob Herring function = LED_FUNCTION_STATUS; 99724ba675SRob Herring color = <LED_COLOR_ID_RED>; 100724ba675SRob Herring gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; 101724ba675SRob Herring }; 102724ba675SRob Herring 103724ba675SRob Herring led-5 { 104724ba675SRob Herring function = LED_FUNCTION_STATUS; 105724ba675SRob Herring color = <LED_COLOR_ID_GREEN>; 106724ba675SRob Herring gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; 107724ba675SRob Herring }; 108724ba675SRob Herring 109724ba675SRob Herring led-6 { 110724ba675SRob Herring function = LED_FUNCTION_INDICATOR; 111724ba675SRob Herring color = <LED_COLOR_ID_BLUE>; 112724ba675SRob Herring gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; 113724ba675SRob Herring }; 114724ba675SRob Herring 115724ba675SRob Herring led-7 { 116724ba675SRob Herring function = LED_FUNCTION_DISK_ERR; 117724ba675SRob Herring color = <LED_COLOR_ID_RED>; 118724ba675SRob Herring gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; 119724ba675SRob Herring }; 120724ba675SRob Herring 121724ba675SRob Herring led-8 { 122724ba675SRob Herring function = LED_FUNCTION_DISK_ERR; 123724ba675SRob Herring color = <LED_COLOR_ID_GREEN>; 124724ba675SRob Herring gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; 125724ba675SRob Herring }; 126724ba675SRob Herring 127724ba675SRob Herring led-9 { 128724ba675SRob Herring function = LED_FUNCTION_USB; 129724ba675SRob Herring function-enumerator = <1>; 130724ba675SRob Herring color = <LED_COLOR_ID_RED>; 131724ba675SRob Herring gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; 132724ba675SRob Herring }; 133724ba675SRob Herring 134724ba675SRob Herring led-10 { 135724ba675SRob Herring function = LED_FUNCTION_USB; 136724ba675SRob Herring function-enumerator = <1>; 137724ba675SRob Herring color = <LED_COLOR_ID_GREEN>; 138724ba675SRob Herring gpios = <&gpio1 13 GPIO_ACTIVE_LOW>; 139724ba675SRob Herring linux,default-trigger = "usbport"; 140724ba675SRob Herring trigger-sources = <&hub_port2>; 141724ba675SRob Herring }; 142724ba675SRob Herring 143724ba675SRob Herring led-11 { 144724ba675SRob Herring function = LED_FUNCTION_USB; 145724ba675SRob Herring function-enumerator = <2>; 146724ba675SRob Herring color = <LED_COLOR_ID_RED>; 147724ba675SRob Herring gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; 148724ba675SRob Herring }; 149724ba675SRob Herring 150724ba675SRob Herring led-12 { 151724ba675SRob Herring function = LED_FUNCTION_USB; 152724ba675SRob Herring function-enumerator = <2>; 153724ba675SRob Herring color = <LED_COLOR_ID_GREEN>; 154724ba675SRob Herring gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; 155724ba675SRob Herring linux,default-trigger = "usbport"; 156724ba675SRob Herring trigger-sources = <&hub_port1>; 157724ba675SRob Herring }; 158724ba675SRob Herring }; 159724ba675SRob Herring}; 160724ba675SRob Herring 161724ba675SRob Herringð0 { 162724ba675SRob Herring status = "okay"; 163724ba675SRob Herring}; 164724ba675SRob Herring 165724ba675SRob Herringð0port { 166724ba675SRob Herring phy-handle = <ðphy9>; 167724ba675SRob Herring}; 168724ba675SRob Herring 169724ba675SRob Herring&i2c0 { 170724ba675SRob Herring status = "okay"; 171724ba675SRob Herring 172724ba675SRob Herring rtc@30 { 173724ba675SRob Herring compatible = "s35390a"; 174724ba675SRob Herring reg = <0x30>; 175724ba675SRob Herring }; 176724ba675SRob Herring 177724ba675SRob Herring lm63@4c { 178724ba675SRob Herring compatible = "national,lm63"; 179724ba675SRob Herring reg = <0x4c>; 180724ba675SRob Herring }; 181724ba675SRob Herring}; 182724ba675SRob Herring 183724ba675SRob Herring&mdio { 184724ba675SRob Herring status = "okay"; 185724ba675SRob Herring 186724ba675SRob Herring ethphy9: ethernet-phy@9 { 187724ba675SRob Herring reg = <9>; 188724ba675SRob Herring }; 189724ba675SRob Herring}; 190724ba675SRob Herring 191724ba675SRob Herring&nand { 192724ba675SRob Herring status = "okay"; 193724ba675SRob Herring chip-delay = <40>; 194724ba675SRob Herring 195724ba675SRob Herring partition@0 { 196724ba675SRob Herring label = "uboot"; 197724ba675SRob Herring reg = <0x0000000 0x200000>; 198724ba675SRob Herring }; 199724ba675SRob Herring 200724ba675SRob Herring partition@200000 { 201724ba675SRob Herring label = "certificate"; 202724ba675SRob Herring reg = <0x0200000 0x100000>; 203724ba675SRob Herring }; 204724ba675SRob Herring 205724ba675SRob Herring partition@300000 { 206724ba675SRob Herring label = "preset_cfg"; 207724ba675SRob Herring reg = <0x0300000 0x100000>; 208724ba675SRob Herring }; 209724ba675SRob Herring 210724ba675SRob Herring partition@400000 { 211724ba675SRob Herring label = "dev_params"; 212724ba675SRob Herring reg = <0x0400000 0x100000>; 213724ba675SRob Herring }; 214724ba675SRob Herring 215724ba675SRob Herring partition@500000 { 216724ba675SRob Herring label = "active_bank"; 217724ba675SRob Herring reg = <0x0500000 0x0100000>; 218724ba675SRob Herring }; 219724ba675SRob Herring 220724ba675SRob Herring partition@600000 { 221724ba675SRob Herring label = "magic"; 222724ba675SRob Herring reg = <0x0600000 0x0100000>; 223724ba675SRob Herring }; 224724ba675SRob Herring 225724ba675SRob Herring partition@700000 { 226724ba675SRob Herring label = "bank1"; 227724ba675SRob Herring reg = <0x0700000 0x2800000>; 228724ba675SRob Herring }; 229724ba675SRob Herring 230724ba675SRob Herring partition@2f00000 { 231724ba675SRob Herring label = "bank2"; 232724ba675SRob Herring reg = <0x2f00000 0x2800000>; 233724ba675SRob Herring }; 234724ba675SRob Herring 235724ba675SRob Herring /* 0x5700000-0x5a00000 undefined in vendor firmware */ 236724ba675SRob Herring 237724ba675SRob Herring partition@5a00000 { 238724ba675SRob Herring label = "reserved"; 239724ba675SRob Herring reg = <0x5a00000 0x2000000>; 240724ba675SRob Herring }; 241724ba675SRob Herring 242724ba675SRob Herring partition@7a00000 { 243724ba675SRob Herring label = "rootfs"; 244724ba675SRob Herring reg = <0x7a00000 0x8600000>; 245724ba675SRob Herring }; 246724ba675SRob Herring}; 247724ba675SRob Herring 248724ba675SRob Herring&pinctrl { 249724ba675SRob Herring /* Buzzer gpios are connected to two pins of buzzer. 250724ba675SRob Herring * This buzzer require a modulated signal from gpio. 251724ba675SRob Herring * Leave it as is due lack of proper driver. 252724ba675SRob Herring */ 253724ba675SRob Herring pmx_buzzer: pmx-buzzer { 254724ba675SRob Herring marvell,pins = "mpp12", "mpp13"; 255724ba675SRob Herring marvell,function = "gpio"; 256724ba675SRob Herring }; 257724ba675SRob Herring 258724ba675SRob Herring pmx_leds: pmx-leds { 259724ba675SRob Herring marvell,pins = "mpp14", "mpp15", "mpp16", "mpp17", "mpp38", 260724ba675SRob Herring "mpp39", "mpp40", "mpp42", "mpp43", "mpp44", 261724ba675SRob Herring "mpp45", "mpp46", "mpp47"; 262724ba675SRob Herring marvell,function = "gpio"; 263724ba675SRob Herring }; 264724ba675SRob Herring 265724ba675SRob Herring pmx_buttons: pmx-buttons { 266724ba675SRob Herring marvell,pins = "mpp28", "mpp29", "mpp48", "mpp49"; 267724ba675SRob Herring marvell,function = "gpio"; 268724ba675SRob Herring }; 269724ba675SRob Herring 270724ba675SRob Herring pmx_poweroff: pmx-poweroff { 271724ba675SRob Herring marvell,pins = "mpp34"; 272724ba675SRob Herring marvell,function = "gpio"; 273724ba675SRob Herring }; 274724ba675SRob Herring}; 275724ba675SRob Herring 276724ba675SRob Herring&rtc { 277724ba675SRob Herring status = "disabled"; 278724ba675SRob Herring}; 279724ba675SRob Herring 280724ba675SRob Herring&sata { 281724ba675SRob Herring status = "okay"; 282724ba675SRob Herring nr-ports = <2>; 283724ba675SRob Herring}; 284724ba675SRob Herring 285724ba675SRob Herring&uart0 { 286724ba675SRob Herring status = "okay"; 287724ba675SRob Herring}; 288724ba675SRob Herring 289724ba675SRob Herring&usb0 { 290724ba675SRob Herring #address-cells = <1>; 291724ba675SRob Herring #size-cells = <0>; 292724ba675SRob Herring status = "okay"; 293724ba675SRob Herring 294724ba675SRob Herring port@1 { 295724ba675SRob Herring #address-cells = <1>; 296724ba675SRob Herring #size-cells = <0>; 297724ba675SRob Herring reg = <1>; 298724ba675SRob Herring #trigger-source-cells = <0>; 299724ba675SRob Herring 300724ba675SRob Herring hub_port1: port@1 { 301724ba675SRob Herring reg = <1>; 302724ba675SRob Herring #trigger-source-cells = <0>; 303724ba675SRob Herring }; 304724ba675SRob Herring 305724ba675SRob Herring hub_port2: port@2 { 306724ba675SRob Herring reg = <2>; 307724ba675SRob Herring #trigger-source-cells = <0>; 308724ba675SRob Herring }; 309724ba675SRob Herring }; 310724ba675SRob Herring}; 311