Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Andy Shevchenko | d31315d | 2017-07-06 14:41:53 +0300 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (c) 2017 Intel Corporation |
Andy Shevchenko | d31315d | 2017-07-06 14:41:53 +0300 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | |
| 8 | #include <dt-bindings/gpio/x86-gpio.h> |
| 9 | #include <dt-bindings/interrupt-router/intel-irq.h> |
| 10 | |
| 11 | /include/ "skeleton.dtsi" |
| 12 | /include/ "rtc.dtsi" |
| 13 | /include/ "tsc_timer.dtsi" |
| 14 | |
| 15 | / { |
| 16 | model = "Intel Edison"; |
| 17 | compatible = "intel,edison"; |
| 18 | |
| 19 | aliases { |
Andy Shevchenko | 9b9ca5b | 2019-02-28 10:10:07 +0200 | [diff] [blame] | 20 | serial0 = &serial0; |
| 21 | serial1 = &serial1; |
Andy Shevchenko | 8e9ce29 | 2019-02-28 10:10:06 +0200 | [diff] [blame] | 22 | serial2 = &serial2; |
Andy Shevchenko | d31315d | 2017-07-06 14:41:53 +0300 | [diff] [blame] | 23 | }; |
| 24 | |
| 25 | chosen { |
Andy Shevchenko | 8e9ce29 | 2019-02-28 10:10:06 +0200 | [diff] [blame] | 26 | stdout-path = &serial2; |
Andy Shevchenko | d31315d | 2017-07-06 14:41:53 +0300 | [diff] [blame] | 27 | }; |
| 28 | |
| 29 | cpus { |
| 30 | #address-cells = <1>; |
| 31 | #size-cells = <0>; |
| 32 | |
| 33 | cpu@0 { |
| 34 | device_type = "cpu"; |
| 35 | compatible = "cpu-x86"; |
| 36 | reg = <0>; |
| 37 | intel,apic-id = <0>; |
| 38 | }; |
| 39 | |
| 40 | cpu@1 { |
| 41 | device_type = "cpu"; |
| 42 | compatible = "cpu-x86"; |
| 43 | reg = <1>; |
| 44 | intel,apic-id = <2>; |
| 45 | }; |
| 46 | }; |
| 47 | |
| 48 | pci { |
| 49 | compatible = "pci-x86"; |
| 50 | #address-cells = <3>; |
| 51 | #size-cells = <2>; |
| 52 | u-boot,dm-pre-reloc; |
| 53 | ranges = <0x02000000 0x0 0x80000000 0x80000000 0 0x40000000 |
| 54 | 0x42000000 0x0 0xc0000000 0xc0000000 0 0x20000000 |
| 55 | 0x01000000 0x0 0x2000 0x2000 0 0xe000>; |
| 56 | }; |
| 57 | |
Andy Shevchenko | 9b9ca5b | 2019-02-28 10:10:07 +0200 | [diff] [blame] | 58 | serial0: serial@ff010080 { |
| 59 | compatible = "intel,mid-uart"; |
| 60 | reg = <0xff010080 0x100>; |
| 61 | reg-shift = <0>; |
| 62 | clock-frequency = <29491200>; |
| 63 | current-speed = <115200>; |
| 64 | }; |
| 65 | |
| 66 | serial1: serial@ff010100 { |
| 67 | compatible = "intel,mid-uart"; |
| 68 | reg = <0xff010100 0x100>; |
| 69 | reg-shift = <0>; |
| 70 | clock-frequency = <29491200>; |
| 71 | current-speed = <115200>; |
| 72 | }; |
| 73 | |
Andy Shevchenko | 8e9ce29 | 2019-02-28 10:10:06 +0200 | [diff] [blame] | 74 | serial2: serial@ff010180 { |
Andy Shevchenko | d31315d | 2017-07-06 14:41:53 +0300 | [diff] [blame] | 75 | compatible = "intel,mid-uart"; |
| 76 | reg = <0xff010180 0x100>; |
| 77 | reg-shift = <0>; |
| 78 | clock-frequency = <29491200>; |
| 79 | current-speed = <115200>; |
| 80 | }; |
| 81 | |
| 82 | emmc: mmc@ff3fc000 { |
| 83 | compatible = "intel,sdhci-tangier"; |
| 84 | reg = <0xff3fc000 0x1000>; |
| 85 | }; |
| 86 | |
Andy Shevchenko | d31315d | 2017-07-06 14:41:53 +0300 | [diff] [blame] | 87 | sdcard: mmc@ff3fa000 { |
| 88 | compatible = "intel,sdhci-tangier"; |
| 89 | reg = <0xff3fa000 0x1000>; |
| 90 | }; |
Andy Shevchenko | d31315d | 2017-07-06 14:41:53 +0300 | [diff] [blame] | 91 | |
| 92 | pmu: power@ff00b000 { |
| 93 | compatible = "intel,pmu-mid"; |
| 94 | reg = <0xff00b000 0x1000>; |
| 95 | }; |
| 96 | |
| 97 | scu: ipc@ff009000 { |
| 98 | compatible = "intel,scu-ipc"; |
| 99 | reg = <0xff009000 0x1000>; |
| 100 | }; |
Bin Meng | af5b8d2 | 2018-07-19 03:07:33 -0700 | [diff] [blame] | 101 | |
Andy Shevchenko | d13a8a3 | 2019-06-21 13:28:08 +0300 | [diff] [blame] | 102 | watchdog: wdt@0 { |
| 103 | compatible = "intel,tangier-wdt"; |
| 104 | }; |
| 105 | |
Bin Meng | af5b8d2 | 2018-07-19 03:07:33 -0700 | [diff] [blame] | 106 | reset { |
| 107 | compatible = "intel,reset-tangier"; |
| 108 | u-boot,dm-pre-reloc; |
| 109 | }; |
Georgii Staroselskii | d9c7277 | 2018-09-11 13:31:08 +0300 | [diff] [blame] | 110 | |
| 111 | pinctrl { |
| 112 | compatible = "intel,pinctrl-tangier"; |
| 113 | reg = <0xff0c0000 0x8000>; |
| 114 | |
| 115 | /* |
| 116 | * Initial configuration came from the firmware. |
| 117 | * Which quite likely has been used in the phones, where I2C #8, |
| 118 | * that is not part of Atom peripheral, is in use. |
| 119 | * Thus we need to override the leftover. |
| 120 | */ |
| 121 | i2c6_scl@0 { |
| 122 | pad-offset = <111>; |
| 123 | mode-func = <1>; |
| 124 | protected; |
| 125 | }; |
| 126 | i2c6_sda@0 { |
| 127 | pad-offset = <112>; |
| 128 | mode-func = <1>; |
| 129 | protected; |
| 130 | }; |
| 131 | }; |
Andy Shevchenko | d31315d | 2017-07-06 14:41:53 +0300 | [diff] [blame] | 132 | }; |