kirkwood-lsxl.dtsi 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /include/ "kirkwood.dtsi"
  2. / {
  3. chosen {
  4. bootargs = "console=ttyS0,115200n8 earlyprintk";
  5. };
  6. ocp@f1000000 {
  7. sata@80000 {
  8. status = "okay";
  9. nr-ports = <1>;
  10. };
  11. spi@10600 {
  12. status = "okay";
  13. m25p40@0 {
  14. #address-cells = <1>;
  15. #size-cells = <1>;
  16. compatible = "m25p40";
  17. reg = <0>;
  18. spi-max-frequency = <25000000>;
  19. mode = <0>;
  20. partition@0 {
  21. reg = <0x0 0x60000>;
  22. label = "uboot";
  23. read-only;
  24. };
  25. partition@60000 {
  26. reg = <0x60000 0x10000>;
  27. label = "dtb";
  28. read-only;
  29. };
  30. partition@70000 {
  31. reg = <0x70000 0x10000>;
  32. label = "uboot_env";
  33. };
  34. };
  35. };
  36. };
  37. gpio_keys {
  38. compatible = "gpio-keys";
  39. #address-cells = <1>;
  40. #size-cells = <0>;
  41. button@1 {
  42. label = "Function Button";
  43. linux,code = <132>;
  44. gpios = <&gpio1 9 1>;
  45. };
  46. button@2 {
  47. label = "Power-on Switch";
  48. linux,code = <116>;
  49. gpios = <&gpio1 10 1>;
  50. };
  51. button@3 {
  52. label = "Power-auto Switch";
  53. linux,code = <142>;
  54. gpios = <&gpio1 11 1>;
  55. };
  56. };
  57. gpio_leds {
  58. compatible = "gpio-leds";
  59. led@1 {
  60. label = "lschlv2:blue:func";
  61. gpios = <&gpio1 4 1>;
  62. };
  63. led@2 {
  64. label = "lschlv2:red:alarm";
  65. gpios = <&gpio1 5 1>;
  66. };
  67. led@3 {
  68. label = "lschlv2:amber:info";
  69. gpios = <&gpio1 6 1>;
  70. };
  71. led@4 {
  72. label = "lschlv2:blue:power";
  73. gpios = <&gpio1 7 1>;
  74. linux,default-trigger = "default-on";
  75. };
  76. led@5 {
  77. label = "lschlv2:red:func";
  78. gpios = <&gpio1 16 1>;
  79. };
  80. };
  81. };