Wolfram Sang | cdbfaf6 | 2018-06-11 23:49:36 +0900 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Fabrizio Castro | 2ee1884 | 2017-10-06 18:59:53 +0100 | [diff] [blame] | 2 | /* |
| 3 | * Device Tree Source for the iWave-RZ-G1M/N Daughter Board Camera Module |
| 4 | * |
| 5 | * Copyright (C) 2017 Renesas Electronics Corp. |
Fabrizio Castro | 2ee1884 | 2017-10-06 18:59:53 +0100 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | / { |
| 9 | aliases { |
| 10 | serial1 = &scif1; |
| 11 | serial4 = &hscif1; |
| 12 | }; |
Fabrizio Castro | 55cce0a | 2017-10-23 19:09:22 +0100 | [diff] [blame] | 13 | |
| 14 | cec_clock: cec-clock { |
| 15 | compatible = "fixed-clock"; |
| 16 | #clock-cells = <0>; |
| 17 | clock-frequency = <12000000>; |
| 18 | }; |
| 19 | |
| 20 | hdmi-out { |
| 21 | compatible = "hdmi-connector"; |
| 22 | type = "a"; |
| 23 | |
| 24 | port { |
| 25 | hdmi_con_out: endpoint { |
| 26 | remote-endpoint = <&adv7511_out>; |
| 27 | }; |
| 28 | }; |
| 29 | }; |
| 30 | }; |
| 31 | |
Fabrizio Castro | 04e31b1 | 2017-11-07 15:10:49 +0000 | [diff] [blame] | 32 | &can1 { |
| 33 | pinctrl-0 = <&can1_pins>; |
| 34 | pinctrl-names = "default"; |
| 35 | |
| 36 | status = "okay"; |
| 37 | }; |
| 38 | |
Fabrizio Castro | 55cce0a | 2017-10-23 19:09:22 +0100 | [diff] [blame] | 39 | &du { |
| 40 | pinctrl-0 = <&du_pins>; |
| 41 | pinctrl-names = "default"; |
| 42 | status = "okay"; |
| 43 | |
| 44 | ports { |
| 45 | port@0 { |
| 46 | endpoint { |
| 47 | remote-endpoint = <&adv7511_in>; |
| 48 | }; |
| 49 | }; |
| 50 | }; |
Fabrizio Castro | 2ee1884 | 2017-10-06 18:59:53 +0100 | [diff] [blame] | 51 | }; |
| 52 | |
| 53 | &hscif1 { |
| 54 | pinctrl-0 = <&hscif1_pins>; |
| 55 | pinctrl-names = "default"; |
| 56 | |
| 57 | uart-has-rtscts; |
| 58 | status = "okay"; |
| 59 | }; |
| 60 | |
Fabrizio Castro | 55cce0a | 2017-10-23 19:09:22 +0100 | [diff] [blame] | 61 | &i2c5 { |
| 62 | status = "okay"; |
| 63 | clock-frequency = <400000>; |
| 64 | |
| 65 | hdmi@39 { |
| 66 | compatible = "adi,adv7511w"; |
| 67 | reg = <0x39>; |
| 68 | interrupt-parent = <&gpio0>; |
| 69 | interrupts = <13 IRQ_TYPE_LEVEL_LOW>; |
| 70 | clocks = <&cec_clock>; |
| 71 | clock-names = "cec"; |
| 72 | |
| 73 | adi,input-depth = <8>; |
| 74 | adi,input-colorspace = "rgb"; |
| 75 | adi,input-clock = "1x"; |
| 76 | adi,input-style = <1>; |
| 77 | adi,input-justification = "evenly"; |
| 78 | |
| 79 | ports { |
| 80 | #address-cells = <1>; |
| 81 | #size-cells = <0>; |
| 82 | |
| 83 | port@0 { |
| 84 | reg = <0>; |
| 85 | adv7511_in: endpoint { |
| 86 | remote-endpoint = <&du_out_rgb>; |
| 87 | }; |
| 88 | }; |
| 89 | |
| 90 | port@1 { |
| 91 | reg = <1>; |
| 92 | adv7511_out: endpoint { |
| 93 | remote-endpoint = <&hdmi_con_out>; |
| 94 | }; |
| 95 | }; |
| 96 | }; |
| 97 | }; |
| 98 | }; |
| 99 | |
Fabrizio Castro | 2ee1884 | 2017-10-06 18:59:53 +0100 | [diff] [blame] | 100 | &pfc { |
Fabrizio Castro | 04e31b1 | 2017-11-07 15:10:49 +0000 | [diff] [blame] | 101 | can1_pins: can1 { |
| 102 | groups = "can1_data_d"; |
| 103 | function = "can1"; |
| 104 | }; |
| 105 | |
Fabrizio Castro | 55cce0a | 2017-10-23 19:09:22 +0100 | [diff] [blame] | 106 | du_pins: du { |
| 107 | groups = "du_rgb888", "du_sync", "du_oddf", "du_clk_out_0"; |
| 108 | function = "du"; |
| 109 | }; |
| 110 | |
Fabrizio Castro | 2ee1884 | 2017-10-06 18:59:53 +0100 | [diff] [blame] | 111 | hscif1_pins: hscif1 { |
| 112 | groups = "hscif1_data_c", "hscif1_ctrl_c"; |
| 113 | function = "hscif1"; |
| 114 | }; |
| 115 | |
| 116 | scif1_pins: scif1 { |
| 117 | groups = "scif1_data_d"; |
| 118 | function = "scif1"; |
| 119 | }; |
| 120 | }; |
| 121 | |
| 122 | &scif1 { |
| 123 | pinctrl-0 = <&scif1_pins>; |
| 124 | pinctrl-names = "default"; |
| 125 | |
| 126 | status = "okay"; |
| 127 | }; |