diff options
| -rw-r--r-- | arch/arm64/boot/dts/actions/s700-cubieboard7.dts | 53 | ||||
| -rw-r--r-- | arch/arm64/boot/dts/actions/s700.dtsi | 58 | ||||
| -rw-r--r-- | arch/arm64/boot/dts/actions/s900.dtsi | 10 |
3 files changed, 121 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/actions/s700-cubieboard7.dts b/arch/arm64/boot/dts/actions/s700-cubieboard7.dts index 28f3f4a0f7f0..63e375cd9eb4 100644 --- a/arch/arm64/boot/dts/actions/s700-cubieboard7.dts +++ b/arch/arm64/boot/dts/actions/s700-cubieboard7.dts | |||
| @@ -30,6 +30,59 @@ | |||
| 30 | }; | 30 | }; |
| 31 | }; | 31 | }; |
| 32 | 32 | ||
| 33 | &i2c0 { | ||
| 34 | status = "okay"; | ||
| 35 | pinctrl-names = "default"; | ||
| 36 | pinctrl-0 = <&i2c0_default>; | ||
| 37 | }; | ||
| 38 | |||
| 39 | &i2c1 { | ||
| 40 | status = "okay"; | ||
| 41 | pinctrl-names = "default"; | ||
| 42 | pinctrl-0 = <&i2c1_default>; | ||
| 43 | }; | ||
| 44 | |||
| 45 | &i2c2 { | ||
| 46 | status = "disabled"; | ||
| 47 | pinctrl-names = "default"; | ||
| 48 | pinctrl-0 = <&i2c2_default>; | ||
| 49 | }; | ||
| 50 | |||
| 51 | &pinctrl { | ||
| 52 | i2c0_default: i2c0_default { | ||
| 53 | pinmux { | ||
| 54 | groups = "i2c0_mfp"; | ||
| 55 | function = "i2c0"; | ||
| 56 | }; | ||
| 57 | pinconf { | ||
| 58 | pins = "i2c0_sclk", "i2c0_sdata"; | ||
| 59 | bias-pull-up; | ||
| 60 | }; | ||
| 61 | }; | ||
| 62 | |||
| 63 | i2c1_default: i2c1_default { | ||
| 64 | pinmux { | ||
| 65 | groups = "i2c1_dummy"; | ||
| 66 | function = "i2c1"; | ||
| 67 | }; | ||
| 68 | pinconf { | ||
| 69 | pins = "i2c1_sclk", "i2c1_sdata"; | ||
| 70 | bias-pull-up; | ||
| 71 | }; | ||
| 72 | }; | ||
| 73 | |||
| 74 | i2c2_default: i2c2_default { | ||
| 75 | pinmux { | ||
| 76 | groups = "i2c2_dummy"; | ||
| 77 | function = "i2c2"; | ||
| 78 | }; | ||
| 79 | pinconf { | ||
| 80 | pins = "i2c2_sclk", "i2c2_sdata"; | ||
| 81 | bias-pull-up; | ||
| 82 | }; | ||
| 83 | }; | ||
| 84 | }; | ||
| 85 | |||
| 33 | &timer { | 86 | &timer { |
| 34 | clocks = <&hosc>; | 87 | clocks = <&hosc>; |
| 35 | }; | 88 | }; |
diff --git a/arch/arm64/boot/dts/actions/s700.dtsi b/arch/arm64/boot/dts/actions/s700.dtsi index 273a1b169efc..2006ad5424fa 100644 --- a/arch/arm64/boot/dts/actions/s700.dtsi +++ b/arch/arm64/boot/dts/actions/s700.dtsi | |||
| @@ -5,6 +5,7 @@ | |||
| 5 | 5 | ||
| 6 | #include <dt-bindings/clock/actions,s700-cmu.h> | 6 | #include <dt-bindings/clock/actions,s700-cmu.h> |
| 7 | #include <dt-bindings/interrupt-controller/arm-gic.h> | 7 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 8 | #include <dt-bindings/reset/actions,s700-reset.h> | ||
| 8 | 9 | ||
| 9 | / { | 10 | / { |
| 10 | compatible = "actions,s700"; | 11 | compatible = "actions,s700"; |
| @@ -172,6 +173,47 @@ | |||
| 172 | reg = <0x0 0xe0168000 0x0 0x1000>; | 173 | reg = <0x0 0xe0168000 0x0 0x1000>; |
| 173 | clocks = <&hosc>, <&losc>; | 174 | clocks = <&hosc>, <&losc>; |
| 174 | #clock-cells = <1>; | 175 | #clock-cells = <1>; |
| 176 | #reset-cells = <1>; | ||
| 177 | }; | ||
| 178 | |||
| 179 | i2c0: i2c@e0170000 { | ||
| 180 | compatible = "actions,s700-i2c"; | ||
| 181 | reg = <0 0xe0170000 0 0x1000>; | ||
| 182 | clocks = <&cmu CLK_I2C0>; | ||
| 183 | interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>; | ||
| 184 | #address-cells = <1>; | ||
| 185 | #size-cells = <0>; | ||
| 186 | status = "disabled"; | ||
| 187 | }; | ||
| 188 | |||
| 189 | i2c1: i2c@e0174000 { | ||
| 190 | compatible = "actions,s700-i2c"; | ||
| 191 | reg = <0 0xe0174000 0 0x1000>; | ||
| 192 | clocks = <&cmu CLK_I2C1>; | ||
| 193 | interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>; | ||
| 194 | #address-cells = <1>; | ||
| 195 | #size-cells = <0>; | ||
| 196 | status = "disabled"; | ||
| 197 | }; | ||
| 198 | |||
| 199 | i2c2: i2c@e0178000 { | ||
| 200 | compatible = "actions,s700-i2c"; | ||
| 201 | reg = <0 0xe0178000 0 0x1000>; | ||
| 202 | clocks = <&cmu CLK_I2C2>; | ||
| 203 | interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>; | ||
| 204 | #address-cells = <1>; | ||
| 205 | #size-cells = <0>; | ||
| 206 | status = "disabled"; | ||
| 207 | }; | ||
| 208 | |||
| 209 | i2c3: i2c@e017c000 { | ||
| 210 | compatible = "actions,s700-i2c"; | ||
| 211 | reg = <0 0xe017c000 0 0x1000>; | ||
| 212 | clocks = <&cmu CLK_I2C3>; | ||
| 213 | interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>; | ||
| 214 | #address-cells = <1>; | ||
| 215 | #size-cells = <0>; | ||
| 216 | status = "disabled"; | ||
| 175 | }; | 217 | }; |
| 176 | 218 | ||
| 177 | sps: power-controller@e01b0100 { | 219 | sps: power-controller@e01b0100 { |
| @@ -186,5 +228,21 @@ | |||
| 186 | interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>; | 228 | interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>; |
| 187 | interrupt-names = "timer1"; | 229 | interrupt-names = "timer1"; |
| 188 | }; | 230 | }; |
| 231 | |||
| 232 | pinctrl: pinctrl@e01b0000 { | ||
| 233 | compatible = "actions,s700-pinctrl"; | ||
| 234 | reg = <0x0 0xe01b0000 0x0 0x1000>; | ||
| 235 | clocks = <&cmu CLK_GPIO>; | ||
| 236 | gpio-controller; | ||
| 237 | gpio-ranges = <&pinctrl 0 0 136>; | ||
| 238 | #gpio-cells = <2>; | ||
| 239 | interrupt-controller; | ||
| 240 | #interrupt-cells = <2>; | ||
| 241 | interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>, | ||
| 242 | <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>, | ||
| 243 | <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>, | ||
| 244 | <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>, | ||
| 245 | <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>; | ||
| 246 | }; | ||
| 189 | }; | 247 | }; |
| 190 | }; | 248 | }; |
diff --git a/arch/arm64/boot/dts/actions/s900.dtsi b/arch/arm64/boot/dts/actions/s900.dtsi index 9e75782b438f..df3a68a3ac97 100644 --- a/arch/arm64/boot/dts/actions/s900.dtsi +++ b/arch/arm64/boot/dts/actions/s900.dtsi | |||
| @@ -5,6 +5,7 @@ | |||
| 5 | 5 | ||
| 6 | #include <dt-bindings/clock/actions,s900-cmu.h> | 6 | #include <dt-bindings/clock/actions,s900-cmu.h> |
| 7 | #include <dt-bindings/interrupt-controller/arm-gic.h> | 7 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 8 | #include <dt-bindings/reset/actions,s900-reset.h> | ||
| 8 | 9 | ||
| 9 | / { | 10 | / { |
| 10 | compatible = "actions,s900"; | 11 | compatible = "actions,s900"; |
| @@ -184,6 +185,7 @@ | |||
| 184 | reg = <0x0 0xe0160000 0x0 0x1000>; | 185 | reg = <0x0 0xe0160000 0x0 0x1000>; |
| 185 | clocks = <&hosc>, <&losc>; | 186 | clocks = <&hosc>, <&losc>; |
| 186 | #clock-cells = <1>; | 187 | #clock-cells = <1>; |
| 188 | #reset-cells = <1>; | ||
| 187 | }; | 189 | }; |
| 188 | 190 | ||
| 189 | i2c0: i2c@e0170000 { | 191 | i2c0: i2c@e0170000 { |
| @@ -253,6 +255,14 @@ | |||
| 253 | gpio-controller; | 255 | gpio-controller; |
| 254 | gpio-ranges = <&pinctrl 0 0 146>; | 256 | gpio-ranges = <&pinctrl 0 0 146>; |
| 255 | #gpio-cells = <2>; | 257 | #gpio-cells = <2>; |
| 258 | interrupt-controller; | ||
| 259 | #interrupt-cells = <2>; | ||
| 260 | interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>, | ||
| 261 | <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>, | ||
| 262 | <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>, | ||
| 263 | <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>, | ||
| 264 | <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>, | ||
| 265 | <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>; | ||
| 256 | }; | 266 | }; |
| 257 | 267 | ||
| 258 | timer: timer@e0228000 { | 268 | timer: timer@e0228000 { |
