aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2015-10-23 13:25:51 -0400
committerOlof Johansson <olof@lixom.net>2015-10-23 13:25:51 -0400
commitdd5cf711ff24fde1a9f76c78a4c6e85494f571ac (patch)
tree2b95ce21ae97b434ff399ca19e986e24a789809c
parent25cb62b76430a91cc6195f902e61c2cb84ade622 (diff)
parente34573c95a1416b4f26a5cc68b1de198e6b27ad7 (diff)
Merge tag 'v4.3-next-arm64' of https://github.com/mbgg/linux-mediatek into next/arm64
Correct i2c DTS node names in mt8173.dtsi. Add spi DTS node to the mt8173 and mt8173-evb. Add dts nodes for the subsystem clocks on mt8173. This includes mmsys, imgsys, vdecsys, vencsys, vencltsys. Add clock nodes to the scpsys binding, which are needed to access the registers of venc and venc_lt power domains. * tag 'v4.3-next-arm64' of https://github.com/mbgg/linux-mediatek: arm64: dts: mt8173: Add clocks for SCPSYS unit arm64: dts: mt8173: Add subsystem clock controller device nodes arm64: dts: Add spi bus dts arm64: mt8173.dtsi: correct i2c node names Signed-off-by: Olof Johansson <olof@lixom.net>
-rw-r--r--arch/arm64/boot/dts/mediatek/mt8173-evb.dts18
-rw-r--r--arch/arm64/boot/dts/mediatek/mt8173.dtsi62
2 files changed, 75 insertions, 5 deletions
diff --git a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts b/arch/arm64/boot/dts/mediatek/mt8173-evb.dts
index 4be66cadbc7c..811cb760ba49 100644
--- a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts
+++ b/arch/arm64/boot/dts/mediatek/mt8173-evb.dts
@@ -387,6 +387,24 @@
387 }; 387 };
388}; 388};
389 389
390&pio {
391 spi_pins_a: spi0 {
392 pins_spi {
393 pinmux = <MT8173_PIN_69_SPI_CK__FUNC_SPI_CK_0_>,
394 <MT8173_PIN_70_SPI_MI__FUNC_SPI_MI_0_>,
395 <MT8173_PIN_71_SPI_MO__FUNC_SPI_MO_0_>,
396 <MT8173_PIN_72_SPI_CS__FUNC_SPI_CS_0_>;
397 };
398 };
399};
400
401&spi {
402 pinctrl-names = "default";
403 pinctrl-0 = <&spi_pins_a>;
404 mediatek,pad-select = <0>;
405 status = "okay";
406};
407
390&uart0 { 408&uart0 {
391 status = "okay"; 409 status = "okay";
392}; 410};
diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi
index 06a15644be38..4dd5f93d0303 100644
--- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi
@@ -116,6 +116,13 @@
116 clock-output-names = "clk32k"; 116 clock-output-names = "clk32k";
117 }; 117 };
118 118
119 cpum_ck: oscillator@2 {
120 compatible = "fixed-clock";
121 #clock-cells = <0>;
122 clock-frequency = <0>;
123 clock-output-names = "cpum_ck";
124 };
125
119 timer { 126 timer {
120 compatible = "arm,armv8-timer"; 127 compatible = "arm,armv8-timer";
121 interrupt-parent = <&gic>; 128 interrupt-parent = <&gic>;
@@ -227,8 +234,10 @@
227 #power-domain-cells = <1>; 234 #power-domain-cells = <1>;
228 reg = <0 0x10006000 0 0x1000>; 235 reg = <0 0x10006000 0 0x1000>;
229 clocks = <&clk26m>, 236 clocks = <&clk26m>,
230 <&topckgen CLK_TOP_MM_SEL>; 237 <&topckgen CLK_TOP_MM_SEL>,
231 clock-names = "mfg", "mm"; 238 <&topckgen CLK_TOP_VENC_SEL>,
239 <&topckgen CLK_TOP_VENC_LT_SEL>;
240 clock-names = "mfg", "mm", "venc", "venc_lt";
232 infracfg = <&infracfg>; 241 infracfg = <&infracfg>;
233 }; 242 };
234 243
@@ -365,7 +374,20 @@
365 status = "disabled"; 374 status = "disabled";
366 }; 375 };
367 376
368 i2c3: i2c3@11010000 { 377 spi: spi@1100a000 {
378 compatible = "mediatek,mt8173-spi";
379 #address-cells = <1>;
380 #size-cells = <0>;
381 reg = <0 0x1100a000 0 0x1000>;
382 interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_LOW>;
383 clocks = <&topckgen CLK_TOP_SYSPLL3_D2>,
384 <&topckgen CLK_TOP_SPI_SEL>,
385 <&pericfg CLK_PERI_SPI0>;
386 clock-names = "parent-clk", "sel-clk", "spi-clk";
387 status = "disabled";
388 };
389
390 i2c3: i2c@11010000 {
369 compatible = "mediatek,mt8173-i2c"; 391 compatible = "mediatek,mt8173-i2c";
370 reg = <0 0x11010000 0 0x70>, 392 reg = <0 0x11010000 0 0x70>,
371 <0 0x11000280 0 0x80>; 393 <0 0x11000280 0 0x80>;
@@ -381,7 +403,7 @@
381 status = "disabled"; 403 status = "disabled";
382 }; 404 };
383 405
384 i2c4: i2c4@11011000 { 406 i2c4: i2c@11011000 {
385 compatible = "mediatek,mt8173-i2c"; 407 compatible = "mediatek,mt8173-i2c";
386 reg = <0 0x11011000 0 0x70>, 408 reg = <0 0x11011000 0 0x70>,
387 <0 0x11000300 0 0x80>; 409 <0 0x11000300 0 0x80>;
@@ -397,7 +419,7 @@
397 status = "disabled"; 419 status = "disabled";
398 }; 420 };
399 421
400 i2c6: i2c6@11013000 { 422 i2c6: i2c@11013000 {
401 compatible = "mediatek,mt8173-i2c"; 423 compatible = "mediatek,mt8173-i2c";
402 reg = <0 0x11013000 0 0x70>, 424 reg = <0 0x11013000 0 0x70>,
403 <0 0x11000080 0 0x80>; 425 <0 0x11000080 0 0x80>;
@@ -487,6 +509,36 @@
487 clock-names = "source", "hclk"; 509 clock-names = "source", "hclk";
488 status = "disabled"; 510 status = "disabled";
489 }; 511 };
512
513 mmsys: clock-controller@14000000 {
514 compatible = "mediatek,mt8173-mmsys", "syscon";
515 reg = <0 0x14000000 0 0x1000>;
516 #clock-cells = <1>;
517 };
518
519 imgsys: clock-controller@15000000 {
520 compatible = "mediatek,mt8173-imgsys", "syscon";
521 reg = <0 0x15000000 0 0x1000>;
522 #clock-cells = <1>;
523 };
524
525 vdecsys: clock-controller@16000000 {
526 compatible = "mediatek,mt8173-vdecsys", "syscon";
527 reg = <0 0x16000000 0 0x1000>;
528 #clock-cells = <1>;
529 };
530
531 vencsys: clock-controller@18000000 {
532 compatible = "mediatek,mt8173-vencsys", "syscon";
533 reg = <0 0x18000000 0 0x1000>;
534 #clock-cells = <1>;
535 };
536
537 vencltsys: clock-controller@19000000 {
538 compatible = "mediatek,mt8173-vencltsys", "syscon";
539 reg = <0 0x19000000 0 0x1000>;
540 #clock-cells = <1>;
541 };
490 }; 542 };
491}; 543};
492 544