ARM: dts: sun5i: a13: Add Olimex SOM board dts support
Subsystems (3)
PATCH 1/1 ARM: dts: sun5i: a13: Add Olimex SOM board dts support
From: Jagan Teki <[email protected]>
Add support for Olimex A13-512-SOM board, and this particular design is like A13-SOM-WIFI can mount on-top of A13-SOM.
https://www.olimex.com/Products/SOM/A13/A13-SOM-512/
https://www.olimex.com/Products/SOM/A13/A13-SOM-WIFI/open-source-hardware
Features:
- A13 Cortex A8 processor at 1GHz, 3D Mali400 GPU
- 512MB DDR3 memory
- MicroSD card connector
- UART console connector
- Status LEDs
- BL-8188-8M WiFi wireless module with Realtek RTL8188CUS chip
- USB-OTG with mini USB connector
--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/sun5i-a13-olinuxino-som.dts | 174 ++++++++++++++++++++++++++ 2 files changed, 175 insertions(+) create mode 100644 arch/arm/boot/dts/sun5i-a13-olinuxino-som.dts
arch/arm/boot/dts/Makefile +1 -0
@@ -830,6 +830,7 @@ dtb-$(CONFIG_MACH_SUN5I) += \ sun5i-a13-licheepi-one.dtb \ sun5i-a13-olinuxino.dtb \ sun5i-a13-olinuxino-micro.dtb \ + sun5i-a13-olinuxino-som.dtb \ sun5i-a13-q8-tablet.dtb \ sun5i-a13-utoo-p66.dtb \ sun5i-gr8-chip-pro.dtb \
arch/arm/boot/dts/sun5i-a13-olinuxino-som.dts new file +174 -0
174 lines not on this page · raw message
Signature · 1 line
1.9.1
Hi Jagan,
Quoted 7 lines · Jagan Teki
From: Jagan Teki <[email protected]>
Add support for Olimex A13-512-SOM board, and this particular design is like A13-SOM-WIFI can mount on-top of A13-SOM.
https://www.olimex.com/Products/SOM/A13/A13-SOM-512/
https://www.olimex.com/Products/SOM/A13/A13-SOM-WIFI/open-source-hardware
In general (and this is true in the A64 boards patches you sent too), I'm not a big fan of putting the URLs in the commit log. They tend to get outdated / broken very fast, and we can't fix them in the history.
Please remove them and/or put them in the "comment" part (after the ---).
Quoted 92 lines
Features:
- A13 Cortex A8 processor at 1GHz, 3D Mali400 GPU
- 512MB DDR3 memory
- MicroSD card connector
- UART console connector
- Status LEDs
- BL-8188-8M WiFi wireless module with Realtek RTL8188CUS chip
- USB-OTG with mini USB connectorCc Maxime Ripard <[email protected]>Signed-off-by Jagan Teki <[email protected]>--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/sun5i-a13-olinuxino-som.dts | 174 ++++++++++++++++++++++++++ 2 files changed, 175 insertions(+) create mode 100644 arch/arm/boot/dts/sun5i-a13-olinuxino-som.dtsarch/arm/boot/dts/Makefile +1
-0@@ -830,6 +830,7 @@ dtb-$(CONFIG_MACH_SUN5I) += \ sun5i-a13-licheepi-one.dtb \ sun5i-a13-olinuxino.dtb \ sun5i-a13-olinuxino-micro.dtb \ + sun5i-a13-olinuxino-som.dtb \ sun5i-a13-q8-tablet.dtb \ sun5i-a13-utoo-p66.dtb \ sun5i-gr8-chip-pro.dtb \arch/arm/boot/dts/sun5i-a13-olinuxino-som.dts new file +57
-0@@ -0,0 +1,174 @@ +/* + * Copyright 2012 Maxime Ripard <[email protected]> + * Copyright 2013 Hans de Goede <[email protected]> + * Copyright 2017 Jagan Teki <[email protected]> + * + * This file is dual-licensed: you can use it either under the terms + * of the GPL or the X11 license, at your option. Note that this dual + * licensing only applies to this file, and not this project as a + * whole. + * + * a) This file is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * Or, alternatively, + * + * b) Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +/dts-v1/; +#include "sun5i-a13.dtsi" +#include "sunxi-common-regulators.dtsi" + +#include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/pinctrl/sun4i-a10.h> + +/ { + model = "Olimex A13-Olinuxino SOM"; + compatible = "olimex,a13-olinuxino-som", "allwinner,sun5i-a13"; + + aliases { + serial0 = &uart1;
arch/arm/boot/dts/sun5i-a13-olinuxino-som.dts line 67
Quoted 10 lines
arch/arm/boot/dts/sun5i-a13-olinuxino-som.dts new file +10
-0+ }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&led_pins_olinuxinom>;
We do not put GPIO pinctrl nodes in the DT anymore. Our GPIO/pinctrl is currently broken, and fixing it properly would require removing all those nodes and would break the existing DT. Until we make that switch, we'd better not introduce more DT we'll break.
The rest looks good, thanks!
Maxime
Signature · 10 lines
Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170529/0f0dd2fc/attachment.sig>