diff options
| -rw-r--r-- | arch/arm/boot/dts/r8a7791-koelsch-reference.dts | 54 | ||||
| -rw-r--r-- | arch/arm/boot/dts/sh73a0-kzm9g-reference.dts | 33 | ||||
| -rw-r--r-- | arch/arm/boot/dts/sh73a0.dtsi | 9 |
3 files changed, 96 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/r8a7791-koelsch-reference.dts b/arch/arm/boot/dts/r8a7791-koelsch-reference.dts index 19192731c24a..588ca17ea1f0 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch-reference.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch-reference.dts | |||
| @@ -31,6 +31,60 @@ | |||
| 31 | #size-cells = <1>; | 31 | #size-cells = <1>; |
| 32 | }; | 32 | }; |
| 33 | 33 | ||
| 34 | gpio-keys { | ||
| 35 | compatible = "gpio-keys"; | ||
| 36 | |||
| 37 | key-a { | ||
| 38 | gpios = <&gpio7 0 GPIO_ACTIVE_LOW>; | ||
| 39 | linux,code = <30>; | ||
| 40 | label = "SW30"; | ||
| 41 | gpio-key,wakeup; | ||
| 42 | debounce-interval = <20>; | ||
| 43 | }; | ||
| 44 | key-b { | ||
| 45 | gpios = <&gpio7 1 GPIO_ACTIVE_LOW>; | ||
| 46 | linux,code = <48>; | ||
| 47 | label = "SW31"; | ||
| 48 | gpio-key,wakeup; | ||
| 49 | debounce-interval = <20>; | ||
| 50 | }; | ||
| 51 | key-c { | ||
| 52 | gpios = <&gpio7 2 GPIO_ACTIVE_LOW>; | ||
| 53 | linux,code = <46>; | ||
| 54 | label = "SW32"; | ||
| 55 | gpio-key,wakeup; | ||
| 56 | debounce-interval = <20>; | ||
| 57 | }; | ||
| 58 | key-d { | ||
| 59 | gpios = <&gpio7 3 GPIO_ACTIVE_LOW>; | ||
| 60 | linux,code = <32>; | ||
| 61 | label = "SW33"; | ||
| 62 | gpio-key,wakeup; | ||
| 63 | debounce-interval = <20>; | ||
| 64 | }; | ||
| 65 | key-e { | ||
| 66 | gpios = <&gpio7 4 GPIO_ACTIVE_LOW>; | ||
| 67 | linux,code = <18>; | ||
| 68 | label = "SW34"; | ||
| 69 | gpio-key,wakeup; | ||
| 70 | debounce-interval = <20>; | ||
| 71 | }; | ||
| 72 | key-f { | ||
| 73 | gpios = <&gpio7 5 GPIO_ACTIVE_LOW>; | ||
| 74 | linux,code = <33>; | ||
| 75 | label = "SW35"; | ||
| 76 | gpio-key,wakeup; | ||
| 77 | debounce-interval = <20>; | ||
| 78 | }; | ||
| 79 | key-g { | ||
| 80 | gpios = <&gpio7 6 GPIO_ACTIVE_LOW>; | ||
| 81 | linux,code = <34>; | ||
| 82 | label = "SW36"; | ||
| 83 | gpio-key,wakeup; | ||
| 84 | debounce-interval = <20>; | ||
| 85 | }; | ||
| 86 | }; | ||
| 87 | |||
| 34 | leds { | 88 | leds { |
| 35 | compatible = "gpio-leds"; | 89 | compatible = "gpio-leds"; |
| 36 | led6 { | 90 | led6 { |
diff --git a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts index 5bb593daab52..eb8886b535e4 100644 --- a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts +++ b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts | |||
| @@ -152,6 +152,20 @@ | |||
| 152 | label = "SW1"; | 152 | label = "SW1"; |
| 153 | }; | 153 | }; |
| 154 | }; | 154 | }; |
| 155 | |||
| 156 | sound { | ||
| 157 | compatible = "simple-audio-card"; | ||
| 158 | simple-audio-card,format = "left_j"; | ||
| 159 | simple-audio-card,cpu { | ||
| 160 | sound-dai = <&sh_fsi2 0>; | ||
| 161 | }; | ||
| 162 | simple-audio-card,codec { | ||
| 163 | sound-dai = <&ak4648>; | ||
| 164 | bitclock-master; | ||
| 165 | frame-master; | ||
| 166 | system-clock-frequency = <11289600>; | ||
| 167 | }; | ||
| 168 | }; | ||
| 155 | }; | 169 | }; |
| 156 | 170 | ||
| 157 | &i2c0 { | 171 | &i2c0 { |
| @@ -226,6 +240,12 @@ | |||
| 226 | }; | 240 | }; |
| 227 | }; | 241 | }; |
| 228 | }; | 242 | }; |
| 243 | |||
| 244 | ak4648: ak4648@0x12 { | ||
| 245 | #sound-dai-cells = <0>; | ||
| 246 | compatible = "asahi-kasei,ak4648"; | ||
| 247 | reg = <0x12>; | ||
| 248 | }; | ||
| 229 | }; | 249 | }; |
| 230 | 250 | ||
| 231 | &i2c3 { | 251 | &i2c3 { |
| @@ -289,6 +309,12 @@ | |||
| 289 | renesas,groups = "sdhi2_data4", "sdhi2_ctrl"; | 309 | renesas,groups = "sdhi2_data4", "sdhi2_ctrl"; |
| 290 | renesas,function = "sdhi2"; | 310 | renesas,function = "sdhi2"; |
| 291 | }; | 311 | }; |
| 312 | |||
| 313 | fsia_pins: sounda { | ||
| 314 | renesas,groups = "fsia_mclk_in", "fsia_sclk_in", | ||
| 315 | "fsia_data_in", "fsia_data_out"; | ||
| 316 | renesas,function = "fsia"; | ||
| 317 | }; | ||
| 292 | }; | 318 | }; |
| 293 | 319 | ||
| 294 | &sdhi0 { | 320 | &sdhi0 { |
| @@ -309,3 +335,10 @@ | |||
| 309 | broken-cd; | 335 | broken-cd; |
| 310 | status = "okay"; | 336 | status = "okay"; |
| 311 | }; | 337 | }; |
| 338 | |||
| 339 | &sh_fsi2 { | ||
| 340 | pinctrl-0 = <&fsia_pins>; | ||
| 341 | pinctrl-names = "default"; | ||
| 342 | |||
| 343 | status = "okay"; | ||
| 344 | }; | ||
diff --git a/arch/arm/boot/dts/sh73a0.dtsi b/arch/arm/boot/dts/sh73a0.dtsi index 241c8cdaeaa1..c460dd229b13 100644 --- a/arch/arm/boot/dts/sh73a0.dtsi +++ b/arch/arm/boot/dts/sh73a0.dtsi | |||
| @@ -243,4 +243,13 @@ | |||
| 243 | gpio-controller; | 243 | gpio-controller; |
| 244 | #gpio-cells = <2>; | 244 | #gpio-cells = <2>; |
| 245 | }; | 245 | }; |
| 246 | |||
| 247 | sh_fsi2: sound@ec230000 { | ||
| 248 | #sound-dai-cells = <1>; | ||
| 249 | compatible = "renesas,sh_fsi2"; | ||
| 250 | reg = <0xec230000 0x400>; | ||
| 251 | interrupt-parent = <&gic>; | ||
| 252 | interrupts = <0 146 0x4>; | ||
| 253 | status = "disabled"; | ||
| 254 | }; | ||
| 246 | }; | 255 | }; |
