omap3: dts: Resync OMAP3 and OMAP36xx DTS from Linux 4.13-RC5
PATCH 1/2 omap3: dts: Resync OMAP3 and OMAP36xx DTS from Linux 4.13-RC5
There were some spacing issues in the previous port and some evolution of the omap3 device tree. This simply ports the OMAP3 and OMAP36xx device trees to U-Boot without any U-Boot specific changes.
--- arch/arm/dts/omap3-cpu-thermal.dtsi | 20 + arch/arm/dts/omap3.dtsi | 1673 +++++----- arch/arm/dts/omap34xx-omap36xx-clocks.dtsi | 448 +-- .../omap36xx-am35xx-omap3430es2plus-clocks.dtsi | 452 +-- arch/arm/dts/omap36xx-clocks.dtsi | 148 +- arch/arm/dts/omap36xx-omap3430es2plus-clocks.dtsi | 368 +-- arch/arm/dts/omap36xx.dtsi | 171 +- arch/arm/dts/omap3xxx-clocks.dtsi | 3292 ++++++++++---------- 8 files changed, 3299 insertions(+), 3273 deletions(-)
arch/arm/dts/omap3-cpu-thermal.dtsi new file +20 -0
@@ -0,0 +1,20 @@ +/* + * Device Tree Source for OMAP3 SoC CPU thermal + * + * Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com/ + * + * This file is licensed under the terms of the GNU General Public License + * version 2. This program is licensed "as is" without any warranty of any + * kind, whether express or implied. + */ + +#include <dt-bindings/thermal/thermal.h> + +cpu_thermal: cpu_thermal { + polling-delay-passive = <250>; /* milliseconds */ + polling-delay = <1000>; /* milliseconds */ + coefficients = <0 20000>; + + /* sensor ID */ + thermal-sensors = <&bandgap 0>; +};
arch/arm/dts/omap3.dtsi +837 -836
1,679 lines not on this page · raw message
arch/arm/dts/omap34xx-omap36xx-clocks.dtsi +224 -224
485 lines not on this page · raw message
arch/arm/dts/omap36xx-am35xx-omap3430es2plus-clocks.dtsi +226 -226
461 lines not on this page · raw message
arch/arm/dts/omap36xx-clocks.dtsi +74 -74
177 lines not on this page · raw message
arch/arm/dts/omap36xx-omap3430es2plus-clocks.dtsi +184 -184
178 lines not on this page · raw message
arch/arm/dts/omap36xx.dtsi +88 -83
171 lines not on this page · raw message
arch/arm/dts/omap3xxx-clocks.dtsi +1646 -1646
3,292 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.7.4
Part of the diff is not shown here. View the raw message.
PATCH 2/2 OMAP3: DTS: Cleanup omap3_logic DTS files from OMAP3 resync
logicpd-torpedo-som.dtsi is a direct port, but the logicpd-torpedo-37xx-devkit is mostly copied from Linux, but there are a few changes:
Slow I2C1 to 400KHz from 26MHz, because U-Boot doesn't seem
to handle that speed.
Fixes required for U-Boot's NS16550 driver by adding
reg-shift = <2> for each UART.
Rename the model since this can booth both SOM-LV and Torpedo kits
U-Boot will still load the proper dtb file from SD card for Linux
Since there is only 1 support MMC socket on either dev kit,
disable others in U-Boot
Changes the license to SPDX
--- arch/arm/dts/logicpd-torpedo-37xx-devkit.dts | 49 +++++++++++++++++++++------- arch/arm/dts/logicpd-torpedo-som.dtsi | 35 ++++++++++++++++++-- 2 files changed, 70 insertions(+), 14 deletions(-)
arch/arm/dts/logicpd-torpedo-37xx-devkit.dts +37 -12
@@ -1,7 +1,10 @@ /* - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. + * Based on logicpd-torpedo-37xx-devkit.dts from Linux 4.13-RC5 + * + * Copyright (C) 2017 + * Logic PD - http://www.logicpd.com + * + * SPDX-License-Identifier: GPL-2.0+ */ /dts-v1/;
@@ -11,13 +14,9 @@ #include "omap-gpmc-smsc9221.dtsi" / { - model = "LogicPD Zoom DM3730 Torpedo + Wireless Development Kit"; + model = "LogicPD Zoom AM37xx / DM37xx Development Kit"; compatible = "logicpd,dm3730-torpedo-devkit", "ti,omap3630", "ti,omap3"; - chosen { - stdout-path = &uart1; - }; - gpio_keys { compatible = "gpio-keys"; pinctrl-names = "default";
@@ -86,6 +85,14 @@ }; +&i2c1 { + clock-frequency = <400000>; +}; + +&i2c2 { + clock-frequency = <400000>; +}; + &vaux1 { regulator-min-microvolt = <3000000>; regulator-max-microvolt = <3000000>;
@@ -196,13 +203,18 @@ interrupts-extended = <&intc 83 &omap3_pmx_core 0x11a>; pinctrl-names = "default"; pinctrl-0 = <&mmc1_pins &mmc1_cd>; + cd-gpios = <&gpio4 31 IRQ_TYPE_LEVEL_LOW>; /* gpio127 */ vmmc-supply = <&vmmc1>; bus-width = <4>; cap-power-off-card; }; &mmc2 { - status = "disabled"; + status = "disabled"; +}; + +&mmc3 { + status = "disabled"; }; &omap3_pmx_core {
@@ -256,9 +268,9 @@ OMAP3_CORE1_IOPAD(0x2110, PIN_INPUT | MUX_MODE0) /* cam_xclka.cam_xclka */ OMAP3_CORE1_IOPAD(0x2112, PIN_INPUT | MUX_MODE0) /* cam_pclk.cam_pclk */ - OMAP3_CORE1_IOPAD(0x2114, PIN_INPUT | MUX_MODE0) /* cam_d0.cam_d0 */ - OMAP3_CORE1_IOPAD(0x2116, PIN_INPUT | MUX_MODE0) /* cam_d1.cam_d1 */ - OMAP3_CORE1_IOPAD(0x2118, PIN_INPUT | MUX_MODE0) /* cam_d2.cam_d2 */ + OMAP3_CORE1_IOPAD(0x2116, PIN_INPUT | MUX_MODE0) /* cam_d0.cam_d0 */ + OMAP3_CORE1_IOPAD(0x2118, PIN_INPUT | MUX_MODE0) /* cam_d1.cam_d1 */ + OMAP3_CORE1_IOPAD(0x211a, PIN_INPUT | MUX_MODE0) /* cam_d2.cam_d2 */ OMAP3_CORE1_IOPAD(0x211c, PIN_INPUT | MUX_MODE0) /* cam_d3.cam_d3 */ OMAP3_CORE1_IOPAD(0x211e, PIN_INPUT | MUX_MODE0) /* cam_d4.cam_d4 */ OMAP3_CORE1_IOPAD(0x2120, PIN_INPUT | MUX_MODE0) /* cam_d5.cam_d5 */
@@ -396,6 +408,19 @@ &uart1 { interrupts-extended = <&intc 72 &omap3_pmx_core OMAP3_UART1_RX>; + reg-shift = <2>; +}; + +&uart2 { + reg-shift = <2>; +}; + +&uart3 { + reg-shift = <2>; +}; + +&uart4 { + reg-shift = <2>; }; /* Wired to the tps65950 on the SOM, only the USB connector is on the devkit */
arch/arm/dts/logicpd-torpedo-som.dtsi +33 -2
@@ -7,6 +7,10 @@ #include <dt-bindings/input/input.h> / { + chosen { + stdout-path = &uart1; + }; + cpus { cpu at 0 { cpu0-supply = <&vcc>;
@@ -69,11 +73,38 @@ gpmc,device-width = <2>; #address-cells = <1>; #size-cells = <1>; + + /* u-boot uses mtdparts=omap2-nand.0:512k(x-loader),1920k(u-boot),128k(u-boot-env),4m(kernel),-(fs) */ + + x-loader at 0 { + label = "x-loader"; + reg = <0 0x80000>; + }; + + bootloaders at 80000 { + label = "u-boot"; + reg = <0x80000 0x1e0000>; + }; + + bootloaders_env at 260000 { + label = "u-boot-env"; + reg = <0x260000 0x20000>; + }; + + kernel at 280000 { + label = "kernel"; + reg = <0x280000 0x400000>; + }; + + filesystem at 680000 { + label = "fs"; + reg = <0x680000 0>; /* 0 = MTDPART_SIZ_FULL */ + }; }; }; &i2c1 { - clock-frequency = <400000>; + clock-frequency = <2600000>; twl: twl at 48 { reg = <0x48>;
@@ -94,7 +125,7 @@ &i2c3 { clock-frequency = <400000>; at24 at 50 { - compatible = "at24,24c02"; + compatible = "atmel,24c64"; readonly; reg = <0x50>; };
Signature · 1 line
2.7.4