0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003 * Copyright (C) 2016 Paul Kocialkowski <contact@paulk.fr>
0004 */
0005 /dts-v1/;
0006
0007 #include "omap443x.dtsi"
0008
0009 / {
0010 model = "Amazon Kindle Fire (first generation)";
0011 compatible = "amazon,omap4-kc1", "ti,omap4430", "ti,omap4";
0012
0013 memory@80000000 {
0014 device_type = "memory";
0015 reg = <0x80000000 0x20000000>; /* 512 MB */
0016 };
0017
0018 led-controller {
0019 compatible = "pwm-leds";
0020
0021 led-1 {
0022 label = "green";
0023 pwms = <&twl_pwm 0 7812500>;
0024 max-brightness = <127>;
0025 };
0026
0027 led-2 {
0028 label = "orange";
0029 pwms = <&twl_pwm 1 7812500>;
0030 max-brightness = <127>;
0031 };
0032 };
0033 };
0034
0035 &omap4_pmx_core {
0036 pinctrl-names = "default";
0037
0038 uart3_pins: pinmux_uart3_pins {
0039 pinctrl-single,pins = <
0040 OMAP4_IOPAD(0x144, PIN_INPUT | MUX_MODE0) /* uart3_rx_irrx */
0041 OMAP4_IOPAD(0x146, PIN_OUTPUT | MUX_MODE0) /* uart3_tx_irtx */
0042 >;
0043 };
0044
0045 i2c1_pins: pinmux_i2c1_pins {
0046 pinctrl-single,pins = <
0047 OMAP4_IOPAD(0x122, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl */
0048 OMAP4_IOPAD(0x124, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda */
0049 >;
0050 };
0051
0052 i2c2_pins: pinmux_i2c2_pins {
0053 pinctrl-single,pins = <
0054 OMAP4_IOPAD(0x126, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_scl */
0055 OMAP4_IOPAD(0x128, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_sda */
0056 >;
0057 };
0058
0059 i2c3_pins: pinmux_i2c3_pins {
0060 pinctrl-single,pins = <
0061 OMAP4_IOPAD(0x12a, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_scl */
0062 OMAP4_IOPAD(0x12c, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda */
0063 >;
0064 };
0065
0066 i2c4_pins: pinmux_i2c4_pins {
0067 pinctrl-single,pins = <
0068 OMAP4_IOPAD(0x12e, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c4_scl */
0069 OMAP4_IOPAD(0x130, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c4_sda */
0070 >;
0071 };
0072
0073 mmc2_pins: pinmux_mmc2_pins {
0074 pinctrl-single,pins = <
0075 OMAP4_IOPAD(0x040, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat0 */
0076 OMAP4_IOPAD(0x042, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat1 */
0077 OMAP4_IOPAD(0x044, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat2 */
0078 OMAP4_IOPAD(0x046, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat3 */
0079 OMAP4_IOPAD(0x048, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat4 */
0080 OMAP4_IOPAD(0x04a, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat5 */
0081 OMAP4_IOPAD(0x04c, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat6 */
0082 OMAP4_IOPAD(0x04e, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat7 */
0083 OMAP4_IOPAD(0x082, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_clk */
0084 OMAP4_IOPAD(0x084, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_cmd */
0085 >;
0086 };
0087
0088 usb_otg_hs_pins: pinmux_usb_otg_hs_pins {
0089 pinctrl-single,pins = <
0090 OMAP4_IOPAD(0x194, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* usba0_otg_ce */
0091 OMAP4_IOPAD(0x196, PIN_INPUT | MUX_MODE0) /* usba0_otg_dp */
0092 OMAP4_IOPAD(0x198, PIN_INPUT | MUX_MODE0) /* usba0_otg_dm */
0093 >;
0094 };
0095 };
0096
0097 &uart3 {
0098 pinctrl-names = "default";
0099 pinctrl-0 = <&uart3_pins>;
0100
0101 interrupts-extended = <&wakeupgen GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH
0102 &omap4_pmx_core OMAP4_UART3_RX>;
0103 };
0104
0105 &i2c1 {
0106 pinctrl-names = "default";
0107 pinctrl-0 = <&i2c1_pins>;
0108
0109 clock-frequency = <400000>;
0110
0111 twl: twl@48 {
0112 reg = <0x48>;
0113 /* IRQ# = 7 */
0114 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; /* IRQ_SYS_1N cascaded to gic */
0115
0116 twl_power: power {
0117 compatible = "ti,twl6030-power";
0118 ti,system-power-controller;
0119 };
0120 };
0121 };
0122
0123 &i2c2 {
0124 pinctrl-names = "default";
0125 pinctrl-0 = <&i2c2_pins>;
0126
0127 clock-frequency = <400000>;
0128 };
0129
0130 &i2c3 {
0131 pinctrl-names = "default";
0132 pinctrl-0 = <&i2c3_pins>;
0133
0134 clock-frequency = <400000>;
0135 };
0136
0137 &i2c4 {
0138 pinctrl-names = "default";
0139 pinctrl-0 = <&i2c4_pins>;
0140
0141 clock-frequency = <400000>;
0142 };
0143
0144 &mmc1 {
0145 status = "disabled";
0146 };
0147
0148 &mmc2 {
0149 pinctrl-names = "default";
0150 pinctrl-0 = <&mmc2_pins>;
0151
0152 vmmc-supply = <&vaux1>;
0153 ti,non-removable;
0154 bus-width = <8>;
0155 };
0156
0157 &mmc3 {
0158 status = "disabled";
0159 };
0160
0161 &mmc4 {
0162 status = "disabled";
0163 };
0164
0165 &usb_otg_hs {
0166 pinctrl-names = "default";
0167 pinctrl-0 = <&usb_otg_hs_pins>;
0168
0169 interface-type = <1>;
0170 mode = <3>;
0171 power = <50>;
0172 };
0173
0174 #include "twl6030.dtsi"
0175 #include "twl6030_omap4.dtsi"
0176
0177 &twl_usb_comparator {
0178 usb-supply = <&vusb>;
0179 };