diff options
author | Vladimir Barinov <vladimir.barinov@cogentembedded.com> | 2016-09-02 12:25:08 -0400 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2016-09-08 03:35:18 -0400 |
commit | 57094363192098bd798aab07851b702f563fb0a2 (patch) | |
tree | ad1298efff492b9d5337f2bd3e960815b9e1fb97 | |
parent | 0e3886a981e062740fbb89670f79fd57caed8137 (diff) |
arm64: dts: h3ulcb: enable SDHI0
This supports SDHI0 on H3ULCB board SD card slot
Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
-rw-r--r-- | arch/arm64/boot/dts/renesas/r8a7795-h3ulcb.dts | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/renesas/r8a7795-h3ulcb.dts b/arch/arm64/boot/dts/renesas/r8a7795-h3ulcb.dts index adf2b0e44dac..44f1184e1a14 100644 --- a/arch/arm64/boot/dts/renesas/r8a7795-h3ulcb.dts +++ b/arch/arm64/boot/dts/renesas/r8a7795-h3ulcb.dts | |||
@@ -44,6 +44,30 @@ | |||
44 | gpios = <&gpio6 11 GPIO_ACTIVE_LOW>; | 44 | gpios = <&gpio6 11 GPIO_ACTIVE_LOW>; |
45 | }; | 45 | }; |
46 | }; | 46 | }; |
47 | |||
48 | vcc_sdhi0: regulator-vcc-sdhi0 { | ||
49 | compatible = "regulator-fixed"; | ||
50 | |||
51 | regulator-name = "SDHI0 Vcc"; | ||
52 | regulator-min-microvolt = <3300000>; | ||
53 | regulator-max-microvolt = <3300000>; | ||
54 | |||
55 | gpio = <&gpio5 2 GPIO_ACTIVE_HIGH>; | ||
56 | enable-active-high; | ||
57 | }; | ||
58 | |||
59 | vccq_sdhi0: regulator-vccq-sdhi0 { | ||
60 | compatible = "regulator-gpio"; | ||
61 | |||
62 | regulator-name = "SDHI0 VccQ"; | ||
63 | regulator-min-microvolt = <1800000>; | ||
64 | regulator-max-microvolt = <3300000>; | ||
65 | |||
66 | gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>; | ||
67 | gpios-states = <1>; | ||
68 | states = <3300000 1 | ||
69 | 1800000 0>; | ||
70 | }; | ||
47 | }; | 71 | }; |
48 | 72 | ||
49 | &extal_clk { | 73 | &extal_clk { |
@@ -78,6 +102,18 @@ | |||
78 | function = "avb"; | 102 | function = "avb"; |
79 | }; | 103 | }; |
80 | 104 | ||
105 | sdhi0_pins_3v3: sd0_3v3 { | ||
106 | groups = "sdhi0_data4", "sdhi0_ctrl"; | ||
107 | function = "sdhi0"; | ||
108 | power-source = <3300>; | ||
109 | }; | ||
110 | |||
111 | sdhi0_pins_1v8: sd0_1v8 { | ||
112 | groups = "sdhi0_data4", "sdhi0_ctrl"; | ||
113 | function = "sdhi0"; | ||
114 | power-source = <1800>; | ||
115 | }; | ||
116 | |||
81 | usb1_pins: usb1 { | 117 | usb1_pins: usb1 { |
82 | groups = "usb1"; | 118 | groups = "usb1"; |
83 | function = "usb1"; | 119 | function = "usb1"; |
@@ -103,6 +139,19 @@ | |||
103 | status = "okay"; | 139 | status = "okay"; |
104 | }; | 140 | }; |
105 | 141 | ||
142 | &sdhi0 { | ||
143 | pinctrl-0 = <&sdhi0_pins_3v3>; | ||
144 | pinctrl-1 = <&sdhi0_pins_1v8>; | ||
145 | pinctrl-names = "default", "state_uhs"; | ||
146 | |||
147 | vmmc-supply = <&vcc_sdhi0>; | ||
148 | vqmmc-supply = <&vccq_sdhi0>; | ||
149 | cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>; | ||
150 | bus-width = <4>; | ||
151 | sd-uhs-sdr50; | ||
152 | status = "okay"; | ||
153 | }; | ||
154 | |||
106 | &wdt0 { | 155 | &wdt0 { |
107 | timeout-sec = <60>; | 156 | timeout-sec = <60>; |
108 | status = "okay"; | 157 | status = "okay"; |