Peter Griffin | 2577451 | 2014-11-17 17:48:00 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2014 STMicroelectronics (R&D) Limited. |
| 3 | * Author: Giuseppe Cavallaro <peppe.cavallaro@st.com> |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License version 2 as |
| 7 | * published by the Free Software Foundation. |
| 8 | */ |
Peter Griffin | d90394b | 2015-09-03 14:59:50 -0300 | [diff] [blame] | 9 | #include <dt-bindings/clock/stih407-clks.h> |
Peter Griffin | 0014eb7 | 2015-09-03 14:59:52 -0300 | [diff] [blame] | 10 | #include <dt-bindings/gpio/gpio.h> |
Peter Griffin | d90394b | 2015-09-03 14:59:50 -0300 | [diff] [blame] | 11 | #include <dt-bindings/media/c8sectpfe.h> |
Peter Griffin | 2577451 | 2014-11-17 17:48:00 +0100 | [diff] [blame] | 12 | / { |
| 13 | soc { |
| 14 | sbc_serial0: serial@9530000 { |
| 15 | status = "okay"; |
| 16 | }; |
| 17 | |
| 18 | leds { |
| 19 | compatible = "gpio-leds"; |
| 20 | red { |
| 21 | #gpio-cells = <2>; |
| 22 | label = "Front Panel LED"; |
| 23 | gpios = <&pio4 1 0>; |
| 24 | linux,default-trigger = "heartbeat"; |
| 25 | }; |
| 26 | green { |
| 27 | #gpio-cells = <2>; |
| 28 | gpios = <&pio1 3 0>; |
| 29 | default-state = "off"; |
| 30 | }; |
| 31 | }; |
| 32 | |
Maxime Coquelin | 8aa5f09 | 2015-09-23 02:47:44 +0200 | [diff] [blame] | 33 | pwm0: pwm@9810000 { |
| 34 | status = "okay"; |
| 35 | }; |
| 36 | |
| 37 | pwm1: pwm@9510000 { |
| 38 | status = "okay"; |
| 39 | }; |
| 40 | |
Peter Griffin | 6d5e581 | 2015-09-03 14:59:49 -0300 | [diff] [blame] | 41 | ssc2: i2c@9842000 { |
Peter Griffin | 2577451 | 2014-11-17 17:48:00 +0100 | [diff] [blame] | 42 | status = "okay"; |
Peter Griffin | 6d5e581 | 2015-09-03 14:59:49 -0300 | [diff] [blame] | 43 | clock-frequency = <100000>; |
| 44 | st,i2c-min-scl-pulse-width-us = <0>; |
| 45 | st,i2c-min-sda-pulse-width-us = <5>; |
Peter Griffin | 2577451 | 2014-11-17 17:48:00 +0100 | [diff] [blame] | 46 | }; |
| 47 | |
Peter Griffin | 6d5e581 | 2015-09-03 14:59:49 -0300 | [diff] [blame] | 48 | ssc3: i2c@9843000 { |
Peter Griffin | 2577451 | 2014-11-17 17:48:00 +0100 | [diff] [blame] | 49 | status = "okay"; |
Peter Griffin | 6d5e581 | 2015-09-03 14:59:49 -0300 | [diff] [blame] | 50 | clock-frequency = <100000>; |
| 51 | st,i2c-min-scl-pulse-width-us = <0>; |
| 52 | st,i2c-min-sda-pulse-width-us = <5>; |
Peter Griffin | 2577451 | 2014-11-17 17:48:00 +0100 | [diff] [blame] | 53 | }; |
| 54 | |
| 55 | i2c@9844000 { |
| 56 | status = "okay"; |
| 57 | }; |
| 58 | |
| 59 | i2c@9845000 { |
| 60 | status = "okay"; |
| 61 | }; |
| 62 | |
| 63 | i2c@9540000 { |
| 64 | status = "okay"; |
| 65 | }; |
| 66 | |
Peter Griffin | 9286ac4 | 2015-04-10 11:40:00 +0200 | [diff] [blame] | 67 | mmc0: sdhci@09060000 { |
| 68 | status = "okay"; |
| 69 | }; |
| 70 | |
| 71 | mmc1: sdhci@09080000 { |
| 72 | status = "okay"; |
| 73 | }; |
| 74 | |
Peter Griffin | 2577451 | 2014-11-17 17:48:00 +0100 | [diff] [blame] | 75 | /* SSC11 to HDMI */ |
Gabriel FERNANDEZ | a01a35e | 2015-01-14 16:47:00 +0100 | [diff] [blame] | 76 | hdmiddc: i2c@9541000 { |
Peter Griffin | 2577451 | 2014-11-17 17:48:00 +0100 | [diff] [blame] | 77 | status = "okay"; |
| 78 | /* HDMI V1.3a supports Standard mode only */ |
| 79 | clock-frequency = <100000>; |
| 80 | st,i2c-min-scl-pulse-width-us = <0>; |
| 81 | st,i2c-min-sda-pulse-width-us = <5>; |
| 82 | }; |
Gabriel FERNANDEZ | b26373c | 2015-01-14 10:54:00 +0100 | [diff] [blame] | 83 | |
| 84 | miphy28lp_phy: miphy28lp@9b22000 { |
| 85 | |
| 86 | phy_port0: port@9b22000 { |
| 87 | st,osc-rdy; |
| 88 | }; |
| 89 | |
| 90 | phy_port1: port@9b2a000 { |
| 91 | st,osc-force-ext; |
| 92 | }; |
| 93 | }; |
Peter Griffin | 571ac3b | 2015-04-30 15:30:00 +0200 | [diff] [blame] | 94 | |
| 95 | st_dwc3: dwc3@8f94000 { |
| 96 | status = "okay"; |
| 97 | }; |
| 98 | |
Maxime Coquelin | 60dfa24 | 2015-10-01 17:45:46 +0200 | [diff] [blame] | 99 | ethernet0: dwmac@9630000 { |
| 100 | st,tx-retime-src = "clkgen"; |
| 101 | status = "okay"; |
| 102 | phy-mode = "rgmii"; |
| 103 | fixed-link = <0 1 1000 0 0>; |
| 104 | }; |
Peter Griffin | d90394b | 2015-09-03 14:59:50 -0300 | [diff] [blame] | 105 | |
| 106 | demux@08a20000 { |
| 107 | compatible = "st,stih407-c8sectpfe"; |
| 108 | status = "okay"; |
| 109 | reg = <0x08a20000 0x10000>, |
| 110 | <0x08a00000 0x4000>; |
| 111 | reg-names = "c8sectpfe", "c8sectpfe-ram"; |
| 112 | interrupts = <GIC_SPI 34 IRQ_TYPE_NONE>, |
| 113 | <GIC_SPI 35 IRQ_TYPE_NONE>; |
| 114 | interrupt-names = "c8sectpfe-error-irq", |
| 115 | "c8sectpfe-idle-irq"; |
| 116 | pinctrl-0 = <&pinctrl_tsin0_serial>; |
| 117 | pinctrl-1 = <&pinctrl_tsin0_parallel>; |
| 118 | pinctrl-2 = <&pinctrl_tsin3_serial>; |
| 119 | pinctrl-3 = <&pinctrl_tsin4_serial_alt3>; |
| 120 | pinctrl-4 = <&pinctrl_tsin5_serial_alt1>; |
| 121 | pinctrl-names = "tsin0-serial", |
| 122 | "tsin0-parallel", |
| 123 | "tsin3-serial", |
| 124 | "tsin4-serial", |
| 125 | "tsin5-serial"; |
| 126 | clocks = <&clk_s_c0_flexgen CLK_PROC_STFE>; |
| 127 | clock-names = "c8sectpfe"; |
| 128 | |
| 129 | /* tsin0 is TSA on NIMA */ |
| 130 | tsin0: port@0 { |
| 131 | tsin-num = <0>; |
| 132 | serial-not-parallel; |
| 133 | i2c-bus = <&ssc2>; |
Peter Griffin | 0014eb7 | 2015-09-03 14:59:52 -0300 | [diff] [blame] | 134 | reset-gpios = <&pio15 4 GPIO_ACTIVE_HIGH>; |
Peter Griffin | d90394b | 2015-09-03 14:59:50 -0300 | [diff] [blame] | 135 | dvb-card = <STV0367_TDA18212_NIMA_1>; |
| 136 | }; |
| 137 | }; |
Peter Griffin | 2577451 | 2014-11-17 17:48:00 +0100 | [diff] [blame] | 138 | }; |
| 139 | }; |