Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * Device Tree Source for the KZM-A9-GT board
0004  *
0005  * Copyright (C) 2012 Horms Solutions Ltd.
0006  *
0007  * Based on sh73a0-kzm9g.dts
0008  * Copyright (C) 2012 Renesas Solutions Corp.
0009  */
0010 
0011 /dts-v1/;
0012 #include "sh73a0.dtsi"
0013 #include <dt-bindings/gpio/gpio.h>
0014 #include <dt-bindings/input/input.h>
0015 #include <dt-bindings/interrupt-controller/irq.h>
0016 
0017 / {
0018         model = "KZM-A9-GT";
0019         compatible = "renesas,kzm9g", "renesas,sh73a0";
0020 
0021         aliases {
0022                 serial0 = &scifa4;
0023         };
0024 
0025         cpus {
0026                 cpu@0 {
0027                         cpu0-supply = <&vdd_dvfs>;
0028                         operating-points = <1196000 1315000>,   /* kHz  uV */
0029                                            < 598000 1175000>,
0030                                            < 398667 1065000>;
0031                         voltage-tolerance = <1>; /* 1% */
0032                 };
0033         };
0034 
0035         chosen {
0036                 bootargs = "root=/dev/nfs ip=on ignore_loglevel rw";
0037                 stdout-path = "serial0:115200n8";
0038         };
0039 
0040         memory@40000000 {
0041                 device_type = "memory";
0042                 reg = <0x40000000 0x20000000>;
0043         };
0044 
0045         reg_1p8v: regulator-1p8v {
0046                 compatible = "regulator-fixed";
0047                 regulator-name = "fixed-1.8V";
0048                 regulator-min-microvolt = <1800000>;
0049                 regulator-max-microvolt = <1800000>;
0050                 regulator-always-on;
0051                 regulator-boot-on;
0052         };
0053 
0054         reg_3p3v: regulator-3p3v {
0055                 compatible = "regulator-fixed";
0056                 regulator-name = "fixed-3.3V";
0057                 regulator-min-microvolt = <3300000>;
0058                 regulator-max-microvolt = <3300000>;
0059                 regulator-always-on;
0060                 regulator-boot-on;
0061         };
0062 
0063         vmmc_sdhi0: regulator-vmmc-sdhi0 {
0064                 compatible = "regulator-fixed";
0065                 regulator-name = "SDHI0 Vcc";
0066                 regulator-min-microvolt = <3300000>;
0067                 regulator-max-microvolt = <3300000>;
0068                 gpio = <&pfc 15 GPIO_ACTIVE_HIGH>;
0069                 enable-active-high;
0070         };
0071 
0072         vmmc_sdhi2: regulator-vmmc-sdhi2 {
0073                 compatible = "regulator-fixed";
0074                 regulator-name = "SDHI2 Vcc";
0075                 regulator-min-microvolt = <3300000>;
0076                 regulator-max-microvolt = <3300000>;
0077                 gpio = <&pfc 14 GPIO_ACTIVE_HIGH>;
0078                 enable-active-high;
0079         };
0080 
0081         leds {
0082                 compatible = "gpio-leds";
0083                 led1 {
0084                         gpios = <&pfc 20 GPIO_ACTIVE_LOW>;
0085                         label = "LED1";
0086                 };
0087                 led2 {
0088                         gpios = <&pfc 21 GPIO_ACTIVE_LOW>;
0089                         label = "LED2";
0090                 };
0091                 led3 {
0092                         gpios = <&pfc 22 GPIO_ACTIVE_LOW>;
0093                         label = "LED3";
0094                 };
0095                 led4 {
0096                         gpios = <&pfc 23 GPIO_ACTIVE_LOW>;
0097                         label = "LED4";
0098                 };
0099         };
0100 
0101         keyboard {
0102                 compatible = "gpio-keys";
0103 
0104                 back-key {
0105                         gpios = <&pcf8575 8 GPIO_ACTIVE_LOW>;
0106                         linux,code = <KEY_BACK>;
0107                         label = "SW3";
0108                 };
0109 
0110                 right-key {
0111                         gpios = <&pcf8575 9 GPIO_ACTIVE_LOW>;
0112                         linux,code = <KEY_RIGHT>;
0113                         label = "SW2-R";
0114                 };
0115 
0116                 left-key {
0117                         gpios = <&pcf8575 10 GPIO_ACTIVE_LOW>;
0118                         linux,code = <KEY_LEFT>;
0119                         label = "SW2-L";
0120                 };
0121 
0122                 enter-key {
0123                         gpios = <&pcf8575 11 GPIO_ACTIVE_LOW>;
0124                         linux,code = <KEY_ENTER>;
0125                         label = "SW2-P";
0126                 };
0127 
0128                 up-key {
0129                         gpios = <&pcf8575 12 GPIO_ACTIVE_LOW>;
0130                         linux,code = <KEY_UP>;
0131                         label = "SW2-U";
0132                 };
0133 
0134                 down-key {
0135                         gpios = <&pcf8575 13 GPIO_ACTIVE_LOW>;
0136                         linux,code = <KEY_DOWN>;
0137                         label = "SW2-D";
0138                 };
0139 
0140                 home-key {
0141                         gpios = <&pcf8575 14 GPIO_ACTIVE_LOW>;
0142                         linux,code = <KEY_HOME>;
0143                         label = "SW1";
0144                         wakeup-source;
0145                 };
0146 
0147                 wakeup-key {
0148                         gpios = <&pfc 159 GPIO_ACTIVE_LOW>;
0149                         linux,code = <KEY_WAKEUP>;
0150                         label = "NMI";
0151                         wakeup-source;
0152                 };
0153         };
0154 
0155         sound {
0156                 compatible = "simple-audio-card";
0157                 simple-audio-card,format = "left_j";
0158                 simple-audio-card,cpu {
0159                         sound-dai = <&sh_fsi2 0>;
0160                 };
0161                 simple-audio-card,codec {
0162                         sound-dai = <&ak4648>;
0163                         bitclock-master;
0164                         frame-master;
0165                         system-clock-frequency = <11289600>;
0166                 };
0167         };
0168 };
0169 
0170 &bsc {
0171         ethernet@10000000 {
0172                 compatible = "smsc,lan9221", "smsc,lan9115";
0173                 reg = <0x10000000 0x100>;
0174                 phy-mode = "mii";
0175                 interrupt-parent = <&irqpin0>;
0176                 interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
0177                 reg-io-width = <4>;
0178                 smsc,irq-push-pull;
0179                 smsc,save-mac-address;
0180                 vddvario-supply = <&reg_1p8v>;
0181                 vdd33a-supply = <&reg_3p3v>;
0182         };
0183 };
0184 
0185 &cmt1 {
0186         status = "okay";
0187 };
0188 
0189 &extal2_clk {
0190         clock-frequency = <48000000>;
0191 };
0192 
0193 &i2c0 {
0194         status = "okay";
0195 
0196         compass@c {
0197                 compatible = "asahi-kasei,ak8975";
0198                 reg = <0x0c>;
0199                 interrupt-parent = <&irqpin3>;
0200                 interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
0201         };
0202 
0203         ak4648: codec@12 {
0204                 compatible = "asahi-kasei,ak4648";
0205                 reg = <0x12>;
0206                 #sound-dai-cells = <0>;
0207         };
0208 
0209         accelerometer@1d {
0210                 compatible = "adi,adxl345";
0211                 reg = <0x1d>;
0212                 interrupt-parent = <&irqpin3>;
0213                 interrupts = <2 IRQ_TYPE_LEVEL_HIGH>,
0214                              <3 IRQ_TYPE_LEVEL_HIGH>;
0215         };
0216 
0217         rtc@32 {
0218                 compatible = "ricoh,r2025sd";
0219                 reg = <0x32>;
0220         };
0221 
0222         as3711@40 {
0223                 compatible = "ams,as3711";
0224                 reg = <0x40>;
0225 
0226                 regulators {
0227                         vdd_dvfs: sd1 {
0228                                 regulator-name = "1.315V CPU";
0229                                 regulator-min-microvolt = <1050000>;
0230                                 regulator-max-microvolt = <1350000>;
0231                                 regulator-always-on;
0232                                 regulator-boot-on;
0233                         };
0234                         sd2 {
0235                                 regulator-name = "1.8V";
0236                                 regulator-min-microvolt = <1800000>;
0237                                 regulator-max-microvolt = <1800000>;
0238                                 regulator-always-on;
0239                                 regulator-boot-on;
0240                         };
0241                         sd4 {
0242                                 regulator-name = "1.215V";
0243                                 regulator-min-microvolt = <1215000>;
0244                                 regulator-max-microvolt = <1235000>;
0245                                 regulator-always-on;
0246                                 regulator-boot-on;
0247                         };
0248                         ldo2 {
0249                                 regulator-name = "2.8V CPU";
0250                                 regulator-min-microvolt = <2800000>;
0251                                 regulator-max-microvolt = <2800000>;
0252                                 regulator-always-on;
0253                                 regulator-boot-on;
0254                         };
0255                         ldo3 {
0256                                 regulator-name = "3.0V CPU";
0257                                 regulator-min-microvolt = <3000000>;
0258                                 regulator-max-microvolt = <3000000>;
0259                                 regulator-always-on;
0260                                 regulator-boot-on;
0261                         };
0262                         ldo4 {
0263                                 regulator-name = "2.8V";
0264                                 regulator-min-microvolt = <2800000>;
0265                                 regulator-max-microvolt = <2800000>;
0266                                 regulator-always-on;
0267                                 regulator-boot-on;
0268                         };
0269                         ldo5 {
0270                                 regulator-name = "2.8V #2";
0271                                 regulator-min-microvolt = <2800000>;
0272                                 regulator-max-microvolt = <2800000>;
0273                                 regulator-always-on;
0274                                 regulator-boot-on;
0275                         };
0276                         ldo7 {
0277                                 regulator-name = "1.15V CPU";
0278                                 regulator-min-microvolt = <1150000>;
0279                                 regulator-max-microvolt = <1150000>;
0280                                 regulator-always-on;
0281                                 regulator-boot-on;
0282                         };
0283                         ldo8 {
0284                                 regulator-name = "1.15V CPU #2";
0285                                 regulator-min-microvolt = <1150000>;
0286                                 regulator-max-microvolt = <1150000>;
0287                                 regulator-always-on;
0288                                 regulator-boot-on;
0289                         };
0290                 };
0291         };
0292 };
0293 
0294 &i2c1 {
0295         status = "okay";
0296 
0297         touchscreen@55 {
0298                 compatible = "sitronix,st1232";
0299                 reg = <0x55>;
0300                 interrupt-parent = <&irqpin1>;
0301                 interrupts = <0 IRQ_TYPE_EDGE_FALLING>;
0302         };
0303 };
0304 
0305 &i2c3 {
0306         pinctrl-0 = <&i2c3_pins>;
0307         pinctrl-names = "default";
0308         status = "okay";
0309 
0310         pcf8575: gpio@20 {
0311                 compatible = "nxp,pcf8575";
0312                 reg = <0x20>;
0313                 interrupt-parent = <&irqpin2>;
0314                 interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
0315                 gpio-controller;
0316                 #gpio-cells = <2>;
0317                 interrupt-controller;
0318                 #interrupt-cells = <2>;
0319         };
0320 };
0321 
0322 &mmcif {
0323         pinctrl-0 = <&mmcif_pins>;
0324         pinctrl-names = "default";
0325 
0326         bus-width = <8>;
0327         vmmc-supply = <&reg_1p8v>;
0328         status = "okay";
0329 };
0330 
0331 &pfc {
0332         i2c3_pins: i2c3 {
0333                 groups = "i2c3_1";
0334                 function = "i2c3";
0335         };
0336 
0337         mmcif_pins: mmc {
0338                 mux {
0339                         groups = "mmc0_data8_0", "mmc0_ctrl_0";
0340                         function = "mmc0";
0341                 };
0342                 cfg {
0343                         groups = "mmc0_data8_0";
0344                         pins = "PORT279";
0345                         bias-pull-up;
0346                 };
0347         };
0348 
0349         scifa4_pins: scifa4 {
0350                 groups = "scifa4_data", "scifa4_ctrl";
0351                 function = "scifa4";
0352         };
0353 
0354         sdhi0_pins: sd0 {
0355                 groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_cd", "sdhi0_wp";
0356                 function = "sdhi0";
0357         };
0358 
0359         sdhi2_pins: sd2 {
0360                 groups = "sdhi2_data4", "sdhi2_ctrl";
0361                 function = "sdhi2";
0362         };
0363 
0364         fsia_pins: sounda {
0365                 groups = "fsia_mclk_in", "fsia_sclk_in",
0366                          "fsia_data_in", "fsia_data_out";
0367                 function = "fsia";
0368         };
0369 };
0370 
0371 &scifa4 {
0372         pinctrl-0 = <&scifa4_pins>;
0373         pinctrl-names = "default";
0374 
0375         uart-has-rtscts;
0376         status = "okay";
0377 };
0378 
0379 &sdhi0 {
0380         pinctrl-0 = <&sdhi0_pins>;
0381         pinctrl-names = "default";
0382 
0383         vmmc-supply = <&vmmc_sdhi0>;
0384         bus-width = <4>;
0385         status = "okay";
0386 };
0387 
0388 &sdhi2 {
0389         pinctrl-0 = <&sdhi2_pins>;
0390         pinctrl-names = "default";
0391 
0392         vmmc-supply = <&vmmc_sdhi2>;
0393         bus-width = <4>;
0394         broken-cd;
0395         status = "okay";
0396 };
0397 
0398 &sh_fsi2 {
0399         pinctrl-0 = <&fsia_pins>;
0400         pinctrl-names = "default";
0401 
0402         status = "okay";
0403 };