1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Device Tree file for the Gemini-based Raidsonic NAS IB-4220-B 4 */ 5 6/dts-v1/; 7 8#include "gemini.dtsi" 9#include <dt-bindings/input/input.h> 10 11/ { 12 model = "Raidsonic NAS IB-4220-B"; 13 compatible = "raidsonic,ib-4220-b", "cortina,gemini"; 14 #address-cells = <1>; 15 #size-cells = <1>; 16 17 memory { /* 128 MB */ 18 device_type = "memory"; 19 reg = <0x00000000 0x8000000>; 20 }; 21 22 chosen { 23 bootargs = "console=ttyS0,19200n8"; 24 stdout-path = &uart0; 25 }; 26 27 gpio_keys { 28 compatible = "gpio-keys"; 29 #address-cells = <1>; 30 #size-cells = <0>; 31 32 button@29 { 33 debounce_interval = <50>; 34 wakeup-source; 35 linux,code = <KEY_SETUP>; 36 label = "Backup button"; 37 /* Conflict with TVC */ 38 gpios = <&gpio1 29 GPIO_ACTIVE_LOW>; 39 }; 40 button@31 { 41 debounce_interval = <50>; 42 wakeup-source; 43 linux,code = <KEY_RESTART>; 44 label = "Softreset button"; 45 /* Conflict with TVC */ 46 gpios = <&gpio1 31 GPIO_ACTIVE_LOW>; 47 }; 48 }; 49 50 leds { 51 compatible = "gpio-leds"; 52 led@28 { 53 label = "nas4220b:orange:hdd"; 54 /* Conflict with TVC */ 55 gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>; 56 default-state = "on"; 57 }; 58 led@30 { 59 label = "nas4220b:green:os"; 60 /* Conflict with TVC */ 61 gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>; 62 default-state = "on"; 63 linux,default-trigger = "heartbeat"; 64 }; 65 }; 66 67 soc { 68 flash@30000000 { 69 status = "okay"; 70 /* 16MB of flash */ 71 reg = <0x30000000 0x01000000>; 72 73 partition@0 { 74 label = "RedBoot"; 75 reg = <0x00000000 0x00020000>; 76 read-only; 77 }; 78 partition@20000 { 79 label = "Kernel"; 80 reg = <0x00020000 0x00300000>; 81 }; 82 partition@320000 { 83 label = "Ramdisk"; 84 reg = <0x00320000 0x00600000>; 85 }; 86 partition@920000 { 87 label = "Application"; 88 reg = <0x00920000 0x00600000>; 89 }; 90 partition@f20000 { 91 label = "VCTL"; 92 reg = <0x00f20000 0x00020000>; 93 read-only; 94 }; 95 partition@f40000 { 96 label = "CurConf"; 97 reg = <0x00f40000 0x000a0000>; 98 read-only; 99 }; 100 partition@fe0000 { 101 label = "FIS directory"; 102 reg = <0x00fe0000 0x00020000>; 103 read-only; 104 }; 105 }; 106 107 syscon: syscon@40000000 { 108 pinctrl { 109 /* 110 * gpio1dgrp cover line 28-31 otherwise used 111 * by TVC. 112 */ 113 gpio1_default_pins: pinctrl-gpio1 { 114 mux { 115 function = "gpio1"; 116 groups = "gpio1dgrp"; 117 }; 118 }; 119 }; 120 }; 121 122 sata: sata@46000000 { 123 cortina,gemini-ata-muxmode = <0>; 124 cortina,gemini-enable-sata-bridge; 125 status = "okay"; 126 }; 127 128 gpio1: gpio@4e000000 { 129 pinctrl-names = "default"; 130 pinctrl-0 = <&gpio1_default_pins>; 131 }; 132 133 ata@63000000 { 134 status = "okay"; 135 }; 136 }; 137}; 138