~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/arm/boot/dts/marvell/kirkwood-lsxl.dtsi

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 // SPDX-License-Identifier: GPL-2.0
  2 #include "kirkwood.dtsi"
  3 #include "kirkwood-6281.dtsi"
  4 
  5 / {
  6         chosen {
  7                 bootargs = "console=ttyS0,115200n8 earlyprintk";
  8                 stdout-path = &uart0;
  9         };
 10 
 11         ocp@f1000000 {
 12                 pinctrl: pin-controller@10000 {
 13                         /* Non-default UART pins */
 14                         pmx_uart0: pmx-uart0 {
 15                                 marvell,pins = "mpp4", "mpp5";
 16                         };
 17 
 18                         pmx_power_hdd: pmx-power-hdd {
 19                                 marvell,pins = "mpp10";
 20                                 marvell,function = "gpo";
 21                         };
 22                         pmx_usb_vbus: pmx-usb-vbus {
 23                                 marvell,pins = "mpp11";
 24                                 marvell,function = "gpio";
 25                         };
 26                         pmx_fan_high: pmx-fan-high {
 27                                 marvell,pins = "mpp18";
 28                                 marvell,function = "gpo";
 29                         };
 30                         pmx_fan_low: pmx-fan-low {
 31                                 marvell,pins = "mpp19";
 32                                 marvell,function = "gpo";
 33                         };
 34                         pmx_led_function_blue: pmx-led-function-blue {
 35                                 marvell,pins = "mpp36";
 36                                 marvell,function = "gpio";
 37                         };
 38                         pmx_led_alarm: pmx-led-alarm {
 39                                 marvell,pins = "mpp37";
 40                                 marvell,function = "gpio";
 41                         };
 42                         pmx_led_info: pmx-led-info {
 43                                 marvell,pins = "mpp38";
 44                                 marvell,function = "gpio";
 45                         };
 46                         pmx_led_power: pmx-led-power {
 47                                 marvell,pins = "mpp39";
 48                                 marvell,function = "gpio";
 49                         };
 50                         pmx_fan_lock: pmx-fan-lock {
 51                                 marvell,pins = "mpp40";
 52                                 marvell,function = "gpio";
 53                         };
 54                         pmx_button_function: pmx-button-function {
 55                                 marvell,pins = "mpp41";
 56                                 marvell,function = "gpio";
 57                         };
 58                         pmx_power_switch: pmx-power-switch {
 59                                 marvell,pins = "mpp42";
 60                                 marvell,function = "gpio";
 61                         };
 62                         pmx_power_auto_switch: pmx-power-auto-switch {
 63                                 marvell,pins = "mpp43";
 64                                 marvell,function = "gpio";
 65                         };
 66                         pmx_led_function_red: pmx-led-function_red {
 67                                 marvell,pins = "mpp48";
 68                                 marvell,function = "gpio";
 69                         };
 70 
 71                 };
 72                 sata@80000 {
 73                         status = "okay";
 74                         nr-ports = <1>;
 75                 };
 76 
 77                 spi@10600 {
 78                         status = "okay";
 79 
 80                         m25p40@0 {
 81                                 #address-cells = <1>;
 82                                 #size-cells = <1>;
 83                                 compatible = "m25p40", "jedec,spi-nor";
 84                                 reg = <0>;
 85                                 spi-max-frequency = <25000000>;
 86                                 mode = <0>;
 87 
 88                                 partition@0 {
 89                                         reg = <0x0 0x60000>;
 90                                         label = "uboot";
 91                                         read-only;
 92                                 };
 93 
 94                                 partition@60000 {
 95                                         reg = <0x60000 0x10000>;
 96                                         label = "dtb";
 97                                         read-only;
 98                                 };
 99 
100                                 partition@70000 {
101                                         reg = <0x70000 0x10000>;
102                                         label = "uboot_env";
103                                 };
104                         };
105                 };
106         };
107 
108         gpio_keys {
109                 compatible = "gpio-keys";
110                 pinctrl-0 = <&pmx_button_function &pmx_power_switch
111                              &pmx_power_auto_switch>;
112                 pinctrl-names = "default";
113 
114                 button-option {
115                         label = "Function Button";
116                         linux,code = <KEY_OPTION>;
117                         gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
118                 };
119                 button-reserved {
120                         label = "Power-on Switch";
121                         linux,code = <KEY_RESERVED>;
122                         linux,input-type = <5>;
123                         gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
124                 };
125                 button-power {
126                         label = "Power-auto Switch";
127                         linux,code = <KEY_ESC>;
128                         linux,input-type = <5>;
129                         gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
130                 };
131         };
132 
133         gpio_leds {
134                 compatible = "gpio-leds";
135                 pinctrl-0 = <&pmx_led_function_red &pmx_led_alarm
136                              &pmx_led_info &pmx_led_power
137                              &pmx_led_function_blue>;
138                 pinctrl-names = "default";
139 
140                 led-func-blue {
141                         label = "lsxl:blue:func";
142                         gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
143                 };
144 
145                 led-alarm {
146                         label = "lsxl:red:alarm";
147                         gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
148                 };
149 
150                 led-info {
151                         label = "lsxl:amber:info";
152                         gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
153                 };
154 
155                 led-power {
156                         label = "lsxl:blue:power";
157                         gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
158                         default-state = "keep";
159                 };
160 
161                 led-func-red {
162                         label = "lsxl:red:func";
163                         gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
164                 };
165         };
166 
167         gpio_fan {
168                 compatible = "gpio-fan";
169                 pinctrl-0 = <&pmx_fan_low &pmx_fan_high &pmx_fan_lock>;
170                 pinctrl-names = "default";
171                 gpios = <&gpio0 19 GPIO_ACTIVE_LOW
172                          &gpio0 18 GPIO_ACTIVE_LOW>;
173                 gpio-fan,speed-map =
174                                 <0    3>,
175                                 <1500 2>,
176                                 <3250 1>,
177                                 <5000 0>;
178                 alarm-gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
179         };
180 
181         restart_poweroff {
182                 compatible = "restart-poweroff";
183         };
184 
185         regulators {
186                 compatible = "simple-bus";
187                 #address-cells = <1>;
188                 #size-cells = <0>;
189                 pinctrl-0 = <&pmx_power_hdd &pmx_usb_vbus>;
190                 pinctrl-names = "default";
191 
192                 usb_power: regulator@1 {
193                         compatible = "regulator-fixed";
194                         reg = <1>;
195                         regulator-name = "USB Power";
196                         regulator-min-microvolt = <5000000>;
197                         regulator-max-microvolt = <5000000>;
198                         enable-active-high;
199                         regulator-always-on;
200                         regulator-boot-on;
201                         gpio = <&gpio0 11 0>;
202                 };
203                 hdd_power: regulator@2 {
204                         compatible = "regulator-fixed";
205                         reg = <2>;
206                         regulator-name = "HDD Power";
207                         regulator-min-microvolt = <5000000>;
208                         regulator-max-microvolt = <5000000>;
209                         enable-active-high;
210                         regulator-always-on;
211                         regulator-boot-on;
212                         gpio = <&gpio0 10 0>;
213                 };
214         };
215 };
216 
217 &mdio {
218         status = "okay";
219 
220         ethphy1: ethernet-phy@8 {
221                 reg = <8>;
222         };
223 };
224 
225 &eth1 {
226         status = "okay";
227         ethernet1-port@0 {
228                 phy-handle = <&ethphy1>;
229         };
230 };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php