kirkwood-lsxl.dtsi 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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 = <357>;
  44. gpios = <&gpio1 9 1>;
  45. };
  46. button@2 {
  47. label = "Power-on Switch";
  48. linux,code = <0>;
  49. linux,input-type = <5>;
  50. gpios = <&gpio1 10 1>;
  51. };
  52. button@3 {
  53. label = "Power-auto Switch";
  54. linux,code = <1>;
  55. linux,input-type = <5>;
  56. gpios = <&gpio1 11 1>;
  57. };
  58. };
  59. gpio_leds {
  60. compatible = "gpio-leds";
  61. led@1 {
  62. label = "lsxl:blue:func";
  63. gpios = <&gpio1 4 1>;
  64. };
  65. led@2 {
  66. label = "lsxl:red:alarm";
  67. gpios = <&gpio1 5 1>;
  68. };
  69. led@3 {
  70. label = "lsxl:amber:info";
  71. gpios = <&gpio1 6 1>;
  72. };
  73. led@4 {
  74. label = "lsxl:blue:power";
  75. gpios = <&gpio1 7 1>;
  76. linux,default-trigger = "default-on";
  77. };
  78. led@5 {
  79. label = "lsxl:red:func";
  80. gpios = <&gpio1 16 1>;
  81. };
  82. };
  83. };