Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * Copyright 2019 Andreas Kemnade
0004  * based on works
0005  * Copyright 2016 Freescale Semiconductor, Inc.
0006  * and
0007  * Copyright (C) 2014 Ricoh Electronic Devices Co., Ltd
0008  *
0009  * Netronix E60K02 board common.
0010  * This board is equipped with different SoCs and
0011  * found in ebook-readers like the Kobo Clara HD (with i.MX6SLL) and
0012  * the Tolino Shine 3 (with i.MX6SL)
0013  */
0014 #include <dt-bindings/input/input.h>
0015 
0016 / {
0017 
0018         chosen {
0019                 stdout-path = &uart1;
0020         };
0021 
0022         gpio_keys: gpio-keys {
0023                 compatible = "gpio-keys";
0024 
0025                 key-power {
0026                         label = "Power";
0027                         gpios = <&gpio5 8 GPIO_ACTIVE_LOW>;
0028                         linux,code = <KEY_POWER>;
0029                         wakeup-source;
0030                 };
0031 
0032                 key-cover {
0033                         label = "Cover";
0034                         gpios = <&gpio5 12 GPIO_ACTIVE_LOW>;
0035                         linux,code = <SW_LID>;
0036                         linux,input-type = <EV_SW>;
0037                         wakeup-source;
0038                 };
0039         };
0040 
0041         leds: leds {
0042                 compatible = "gpio-leds";
0043 
0044                 led {
0045                         label = "e60k02:white:on";
0046                         gpios = <&gpio5 7 GPIO_ACTIVE_LOW>;
0047                         linux,default-trigger = "timer";
0048                 };
0049         };
0050 
0051         memory@80000000 {
0052                 device_type = "memory";
0053                 reg = <0x80000000 0x20000000>;
0054         };
0055 
0056         reg_wifi: regulator-wifi {
0057                 compatible = "regulator-fixed";
0058                 regulator-name = "SD3_SPWR";
0059                 regulator-min-microvolt = <3000000>;
0060                 regulator-max-microvolt = <3000000>;
0061                 gpio = <&gpio4 29 GPIO_ACTIVE_HIGH>;
0062                 enable-active-high;
0063         };
0064 
0065         wifi_pwrseq: wifi_pwrseq {
0066                 compatible = "mmc-pwrseq-simple";
0067                 post-power-on-delay-ms = <20>;
0068                 reset-gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
0069         };
0070 };
0071 
0072 
0073 &i2c1 {
0074         clock-frequency = <100000>;
0075         status = "okay";
0076 
0077         lm3630a: backlight@36 {
0078                 reg = <0x36>;
0079                 compatible = "ti,lm3630a";
0080                 enable-gpios = <&gpio2 10 GPIO_ACTIVE_HIGH>;
0081 
0082                 #address-cells = <1>;
0083                 #size-cells = <0>;
0084 
0085                 led@0 {
0086                         reg = <0>;
0087                         led-sources = <0>;
0088                         label = "backlight_warm";
0089                         default-brightness = <0>;
0090                         max-brightness = <255>;
0091                 };
0092 
0093                 led@1 {
0094                         reg = <1>;
0095                         led-sources = <1>;
0096                         label = "backlight_cold";
0097                         default-brightness = <0>;
0098                         max-brightness = <255>;
0099                 };
0100         };
0101 };
0102 
0103 &i2c2 {
0104         clock-frequency = <100000>;
0105         status = "okay";
0106 
0107         /* TODO: CYTTSP5 touch controller at 0x24 */
0108 
0109         /* TODO: TPS65185 PMIC for E Ink at 0x68 */
0110 
0111 };
0112 
0113 &i2c3 {
0114         clock-frequency = <100000>;
0115         status = "okay";
0116 
0117         ricoh619: pmic@32 {
0118                 compatible = "ricoh,rc5t619";
0119                 reg = <0x32>;
0120                 interrupt-parent = <&gpio5>;
0121                 interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
0122                 system-power-controller;
0123 
0124                 regulators {
0125                         dcdc1_reg: DCDC1 {
0126                                 regulator-name = "DCDC1";
0127                                 regulator-min-microvolt = <300000>;
0128                                 regulator-max-microvolt = <1875000>;
0129                                 regulator-always-on;
0130                                 regulator-boot-on;
0131 
0132                                 regulator-state-mem {
0133                                         regulator-on-in-suspend;
0134                                         regulator-suspend-max-microvolt = <900000>;
0135                                         regulator-suspend-min-microvolt = <900000>;
0136                                 };
0137                         };
0138 
0139                         /* Core3_3V3 */
0140                         dcdc2_reg: DCDC2 {
0141                                 regulator-name = "DCDC2";
0142                                 regulator-always-on;
0143                                 regulator-boot-on;
0144 
0145                                 regulator-state-mem {
0146                                         regulator-on-in-suspend;
0147                                         regulator-suspend-max-microvolt = <3300000>;
0148                                         regulator-suspend-min-microvolt = <3300000>;
0149                                 };
0150                         };
0151 
0152                         dcdc3_reg: DCDC3 {
0153                                 regulator-name = "DCDC3";
0154                                 regulator-min-microvolt = <300000>;
0155                                 regulator-max-microvolt = <1875000>;
0156                                 regulator-always-on;
0157                                 regulator-boot-on;
0158 
0159                                 regulator-state-mem {
0160                                         regulator-on-in-suspend;
0161                                         regulator-suspend-max-microvolt = <1140000>;
0162                                         regulator-suspend-min-microvolt = <1140000>;
0163                                 };
0164                         };
0165 
0166                         /* Core4_1V2 */
0167                         dcdc4_reg: DCDC4 {
0168                                 regulator-name = "DCDC4";
0169                                 regulator-min-microvolt = <1200000>;
0170                                 regulator-max-microvolt = <1200000>;
0171                                 regulator-always-on;
0172                                 regulator-boot-on;
0173 
0174                                 regulator-state-mem {
0175                                         regulator-on-in-suspend;
0176                                         regulator-suspend-max-microvolt = <1140000>;
0177                                         regulator-suspend-min-microvolt = <1140000>;
0178                                 };
0179                         };
0180 
0181                         /* Core4_1V8 */
0182                         dcdc5_reg: DCDC5 {
0183                                 regulator-name = "DCDC5";
0184                                 regulator-min-microvolt = <1800000>;
0185                                 regulator-max-microvolt = <1800000>;
0186                                 regulator-always-on;
0187                                 regulator-boot-on;
0188 
0189                                 regulator-state-mem {
0190                                         regulator-on-in-suspend;
0191                                         regulator-suspend-max-microvolt = <1700000>;
0192                                         regulator-suspend-min-microvolt = <1700000>;
0193                                 };
0194                         };
0195 
0196                         /* IR_3V3 */
0197                         ldo1_reg: LDO1  {
0198                                 regulator-name = "LDO1";
0199                                 regulator-boot-on;
0200                         };
0201 
0202                         /* Core1_3V3 */
0203                         ldo2_reg: LDO2  {
0204                                 regulator-name = "LDO2";
0205                                 regulator-always-on;
0206                                 regulator-boot-on;
0207 
0208                                 regulator-state-mem {
0209                                         regulator-on-in-suspend;
0210                                         regulator-suspend-max-microvolt = <3000000>;
0211                                         regulator-suspend-min-microvolt = <3000000>;
0212                                 };
0213                         };
0214 
0215                         /* Core5_1V2 */
0216                         ldo3_reg: LDO3  {
0217                                 regulator-name = "LDO3";
0218                                 regulator-always-on;
0219                                 regulator-boot-on;
0220                         };
0221 
0222                         ldo4_reg: LDO4 {
0223                                 regulator-name = "LDO4";
0224                                 regulator-boot-on;
0225                         };
0226 
0227                         /* SPD_3V3 */
0228                         ldo5_reg: LDO5 {
0229                                 regulator-name = "LDO5";
0230                                 regulator-always-on;
0231                                 regulator-boot-on;
0232                         };
0233 
0234                         /* DDR_0V6 */
0235                         ldo6_reg: LDO6 {
0236                                 regulator-name = "LDO6";
0237                                 regulator-always-on;
0238                                 regulator-boot-on;
0239                         };
0240 
0241                         /* VDD_PWM */
0242                         ldo7_reg: LDO7 {
0243                                 regulator-name = "LDO7";
0244                                 regulator-always-on;
0245                                 regulator-boot-on;
0246                         };
0247 
0248                         /* ldo_1v8 */
0249                         ldo8_reg: LDO8 {
0250                                 regulator-name = "LDO8";
0251                                 regulator-min-microvolt = <1800000>;
0252                                 regulator-max-microvolt = <1800000>;
0253                                 regulator-always-on;
0254                                 regulator-boot-on;
0255                         };
0256 
0257                         ldo9_reg: LDO9 {
0258                                 regulator-name = "LDO9";
0259                                 regulator-boot-on;
0260                         };
0261 
0262                         ldo10_reg: LDO10 {
0263                                 regulator-name = "LDO10";
0264                                 regulator-boot-on;
0265                         };
0266 
0267                         ldortc1_reg: LDORTC1  {
0268                                 regulator-name = "LDORTC1";
0269                                 regulator-boot-on;
0270                         };
0271                 };
0272         };
0273 };
0274 
0275 &snvs_rtc {
0276         /* we are using the rtc in the pmic, not disabled in imx6sll.dtsi */
0277         status = "disabled";
0278 };
0279 
0280 &uart1 {
0281         /* J4, through-hole */
0282         status = "okay";
0283 };
0284 
0285 &uart4 {
0286         /* TP198, next to J4, SMD pads */
0287         status = "okay";
0288 };
0289 
0290 &usdhc2 {
0291         non-removable;
0292         status = "okay";
0293 };
0294 
0295 &usdhc3 {
0296         vmmc-supply = <&reg_wifi>;
0297         mmc-pwrseq = <&wifi_pwrseq>;
0298         cap-power-off-card;
0299         non-removable;
0300         status = "okay";
0301 };
0302 
0303 &usbotg1 {
0304         pinctrl-names = "default";
0305         disable-over-current;
0306         srp-disable;
0307         hnp-disable;
0308         adp-disable;
0309         status = "okay";
0310 };