123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291 |
- From 55e00e402d6143aeb153761f8144d9fee5f1f009 Mon Sep 17 00:00:00 2001
- From: Biwen Li <[email protected]>
- Date: Fri, 26 Oct 2018 16:00:37 +0800
- Subject: [PATCH] arm: dts: ls1021a: Add LS1021A-IOT board support
- Signed-off-by: Biwen Li <[email protected]>
- [rebase]
- Signed-off-by: Yangbo Lu <[email protected]>
- ---
- arch/arm/boot/dts/Makefile | 3 +-
- arch/arm/boot/dts/ls1021a-iot.dts | 262 ++++++++++++++++++++++++++++++++++++++
- 2 files changed, 264 insertions(+), 1 deletion(-)
- create mode 100644 arch/arm/boot/dts/ls1021a-iot.dts
- --- a/arch/arm/boot/dts/Makefile
- +++ b/arch/arm/boot/dts/Makefile
- @@ -713,7 +713,8 @@ dtb-$(CONFIG_SOC_LS1021A) += \
- ls1021a-moxa-uc-8410a.dtb \
- ls1021a-qds.dtb \
- ls1021a-tsn.dtb \
- - ls1021a-twr.dtb
- + ls1021a-twr.dtb \
- + ls1021a-iot.dtb
- dtb-$(CONFIG_SOC_VF610) += \
- vf500-colibri-eval-v3.dtb \
- vf610-bk4.dtb \
- --- /dev/null
- +++ b/arch/arm/boot/dts/ls1021a-iot.dts
- @@ -0,0 +1,262 @@
- +/*
- + * Copyright 2013-2016 Freescale Semiconductor, Inc.
- + *
- + * This program 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.
- + */
- +
- +/dts-v1/;
- +#include "ls1021a.dtsi"
- +
- +/ {
- + model = "LS1021A IOT Board";
- +
- + sys_mclk: clock-mclk {
- + compatible = "fixed-clock";
- + #clock-cells = <0>;
- + clock-frequency = <24576000>;
- + };
- +
- + regulators {
- + compatible = "simple-bus";
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + reg_3p3v: regulator@0 {
- + compatible = "regulator-fixed";
- + reg = <0>;
- + regulator-name = "3P3V";
- + regulator-min-microvolt = <3300000>;
- + regulator-max-microvolt = <3300000>;
- + regulator-always-on;
- + };
- +
- + reg_2p5v: regulator@1 {
- + compatible = "regulator-fixed";
- + reg = <1>;
- + regulator-name = "2P5V";
- + regulator-min-microvolt = <2500000>;
- + regulator-max-microvolt = <2500000>;
- + regulator-always-on;
- + };
- + };
- +
- + sound {
- + compatible = "simple-audio-card";
- + simple-audio-card,format = "i2s";
- + simple-audio-card,widgets =
- + "Microphone", "Microphone Jack",
- + "Headphone", "Headphone Jack",
- + "Speaker", "Speaker Ext",
- + "Line", "Line In Jack";
- + simple-audio-card,routing =
- + "MIC_IN", "Microphone Jack",
- + "Microphone Jack", "Mic Bias",
- + "LINE_IN", "Line In Jack",
- + "Headphone Jack", "HP_OUT",
- + "Speaker Ext", "LINE_OUT";
- +
- + simple-audio-card,cpu {
- + sound-dai = <&sai2>;
- + frame-master;
- + bitclock-master;
- + };
- +
- + simple-audio-card,codec {
- + sound-dai = <&codec>;
- + frame-master;
- + bitclock-master;
- + };
- + };
- +
- + firmware {
- + optee {
- + compatible = "linaro,optee-tz";
- + method = "smc";
- + };
- + };
- +};
- +
- +&enet0 {
- + tbi-handle = <&tbi1>;
- + phy-handle = <&phy1>;
- + phy-connection-type = "sgmii";
- + status = "okay";
- +};
- +
- +&enet1 {
- + tbi-handle = <&tbi1>;
- + phy-handle = <&phy3>;
- + phy-connection-type = "sgmii";
- + status = "okay";
- +};
- +
- +&enet2 {
- + fixed-link = <0 1 1000 0 0>;
- + phy-connection-type = "rgmii-id";
- + status = "okay";
- +};
- +
- +&can0{
- + status = "disabled";
- +};
- +
- +&can1{
- + status = "disabled";
- +};
- +
- +&can2{
- + status = "disabled";
- +};
- +
- +&can3{
- + status = "okay";
- +};
- +
- +&esdhc{
- + status = "okay";
- +};
- +
- +&i2c0 {
- + status = "okay";
- +
- + max1239@35 {
- + compatible = "maxim,max1239";
- + reg = <0x35>;
- + #io-channel-cells = <1>;
- + };
- +
- + codec: sgtl5000@2a {
- + #sound-dai-cells=<0x0>;
- + compatible = "fsl,sgtl5000";
- + reg = <0x2a>;
- + VDDA-supply = <®_3p3v>;
- + VDDIO-supply = <®_2p5v>;
- + clocks = <&sys_mclk 1>;
- + };
- +
- + pca9555: pca9555@23 {
- + compatible = "nxp,pca9555";
- + /*pinctrl-names = "default";*/
- + /*interrupt-parent = <&gpio2>;
- + interrupts = <19 0x2>;*/
- + gpio-controller;
- + #gpio-cells = <2>;
- + interrupt-controller;
- + #interrupt-cells = <2>;
- + reg = <0x23>;
- + };
- +
- + ina220@44 {
- + compatible = "ti,ina220";
- + reg = <0x44>;
- + shunt-resistor = <1000>;
- + };
- +
- + ina220@45 {
- + compatible = "ti,ina220";
- + reg = <0x45>;
- + shunt-resistor = <1000>;
- + };
- +
- + lm75b@48 {
- + compatible = "nxp,lm75a";
- + reg = <0x48>;
- + };
- +
- + adt7461a@4c {
- + compatible = "adt7461a";
- + reg = <0x4c>;
- + };
- +
- + hdmi: sii9022a@39 {
- + compatible = "fsl,sii902x";
- + reg = <0x39>;
- + interrupts = <GIC_SPI 163 IRQ_TYPE_EDGE_RISING>;
- + };
- +};
- +
- +&i2c1 {
- + status = "disabled";
- +};
- +
- +&ifc {
- + status = "disabled";
- +};
- +
- +&lpuart0 {
- + status = "okay";
- +};
- +
- +&mdio0 {
- + phy0: ethernet-phy@0 {
- + reg = <0x0>;
- + };
- + phy1: ethernet-phy@1 {
- + reg = <0x1>;
- + };
- + phy2: ethernet-phy@2 {
- + reg = <0x2>;
- + };
- + phy3: ethernet-phy@3 {
- + reg = <0x3>;
- + };
- + tbi1: tbi-phy@1f {
- + reg = <0x1f>;
- + device_type = "tbi-phy";
- + };
- +};
- +
- +&qspi {
- + num-cs = <2>;
- + status = "okay";
- +
- + qflash0: s25fl128s@0 {
- + compatible = "spansion,s25fl129p1";
- + #address-cells = <1>;
- + #size-cells = <1>;
- + spi-max-frequency = <20000000>;
- + reg = <0>;
- + };
- +};
- +
- +&sai2 {
- + status = "okay";
- +};
- +
- +&uart0 {
- + status = "okay";
- +};
- +
- +&uart1 {
- + status = "okay";
- +};
- +
- +&dcu {
- + display = <&display>;
- + status = "okay";
- +
- + display: display@0 {
- + bits-per-pixel = <24>;
- +
- + display-timings {
- + native-mode = <&timing0>;
- +
- + timing0: mode0 {
- + clock-frequency = <25000000>;
- + hactive = <640>;
- + vactive = <480>;
- + hback-porch = <80>;
- + hfront-porch = <80>;
- + vback-porch = <16>;
- + vfront-porch = <16>;
- + hsync-len = <12>;
- + vsync-len = <2>;
- + hsync-active = <1>;
- + vsync-active = <1>;
- + };
- + };
- + };
- +};
|