ARM: dts: Add support for phyCORE-AM335x PCM-953 carrier board
Subsystems (4)
PATCH 1/3 ARM: dts: Add support for phyCORE-AM335x PCM-953 carrier board
The phyCORE-AM335x development kit is a combination of the phyCORE-AM335x SoM and a PCM-953 carrier board. The features of the PCM-953 are:
* ETH phy on carrier board: 1x RGMII
* 1x CAN
* Up to 4x UART
* USB0 (otg)
* USB1 (host)
* SD slot
* User gpio-keys
* User LEDs
--- .../devicetree/bindings/arm/omap/omap.txt | 3 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/am335x-pcm-953.dtsi | 303 +++++++++++++++++++++ arch/arm/boot/dts/am335x-phycore-rdk.dts | 27 ++ 4 files changed, 334 insertions(+) create mode 100644 arch/arm/boot/dts/am335x-pcm-953.dtsi create mode 100644 arch/arm/boot/dts/am335x-phycore-rdk.dts
Documentation/devicetree/bindings/arm/omap/omap.txt +3 -0
@@ -151,6 +151,9 @@ Boards: - AM335X SBC-T335 : single board computer, built around the Sitara AM3352/4 compatible = "compulab,sbc-t335", "compulab,cm-t335", "ti,am33xx" +- AM335X phyCORE-AM335x: Development kit + compatible = "phytec,am335x-pcm-953", "phytec,am335x-phycore-som", "ti,am33xx" + - OMAP5 EVM : Evaluation Module compatible = "ti,omap5-evm", "ti,omap5"
arch/arm/boot/dts/Makefile +1 -0
@@ -573,6 +573,7 @@ dtb-$(CONFIG_SOC_AM33XX) += \ am335x-lxm.dtb \ am335x-nano.dtb \ am335x-pepper.dtb \ + am335x-phycore-rdk.dtb \ am335x-shc.dtb \ am335x-sbc-t335.dtb \ am335x-sl50.dtb \
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +303 -0
303 lines not on this page · raw message
arch/arm/boot/dts/am335x-phycore-rdk.dts new file +27 -0
@@ -0,0 +1,27 @@ +/* + * Copyright (C) 2014 PHYTEC Messtechnik GmbH + * Author: Wadim Egorov <[email protected]> + * + * 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. + */ + +/dts-v1/; + +#include "am335x-phycore-som.dtsi" +#include "am335x-pcm-953.dtsi" + +/* SoM */ +&i2c_eeprom { + status = "okay"; +}; + +&i2c_rtc { + status = "okay"; +}; + +&serial_flash { + status = "okay"; + +};
Signature · 1 line
1.9.1
PATCH 2/3 ARM: configs: omap2plus_defconfig: Enable support for micrell phys
The phyCORE-AM335x SoM with PCM-953 carrierboard has a KSZ9021 phy mounted. To add support for this we need to enable the micrell phy driver in the config.
--- arch/arm/configs/omap2plus_defconfig | 1 + 1 file changed, 1 insertion(+)
arch/arm/configs/omap2plus_defconfig +1 -0
@@ -168,6 +168,7 @@ CONFIG_TI_CPTS=y # CONFIG_NET_VENDOR_VIA is not set # CONFIG_NET_VENDOR_WIZNET is not set CONFIG_AT803X_PHY=y +CONFIG_MICREL_PHY=y CONFIG_SMSC_PHY=y CONFIG_USB_USBNET=m CONFIG_USB_NET_SMSC75XX=m
Signature · 1 line
1.9.1
PATCH 3/3 ARM: configs: omap2plus_defconfig: Enable support for RTC M41T80
In reply to Teresa RemmetThe phyCORE-AM335x SoM has a RV4162 RTC populated which is supported by the M41T80 driver. Enabled it so make the RTC support on the SoM available.
--- arch/arm/configs/omap2plus_defconfig | 1 + 1 file changed, 1 insertion(+)
arch/arm/configs/omap2plus_defconfig +1 -0
@@ -414,6 +414,7 @@ CONFIG_LEDS_TRIGGER_GPIO=m CONFIG_LEDS_TRIGGER_DEFAULT_ON=m CONFIG_RTC_CLASS=y CONFIG_RTC_DRV_DS1307=m +CONFIG_RTC_DRV_M41T80=m CONFIG_RTC_DRV_TWL92330=y CONFIG_RTC_DRV_TWL4030=m CONFIG_RTC_DRV_PALMAS=m
Signature · 1 line
1.9.1
PATCH 1/3 ARM: dts: Add support for phyCORE-AM335x PCM-953 carrier board
In reply to Teresa RemmetQuoted 71 lines · Teresa Remmet
The phyCORE-AM335x development kit is a combination of the phyCORE-AM335x SoM and a PCM-953 carrier board. The features of the PCM-953 are:
* ETH phy on carrier board: 1x RGMII
* 1x CAN
* Up to 4x UART
* USB0 (otg)
* USB1 (host)
* SD slot
* User gpio-keys
* User LEDsSigned-off-by Teresa Remmet <[email protected]>Reviewed-by Wadim Egorov <[email protected]>--- .../devicetree/bindings/arm/omap/omap.txt | 3 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/am335x-pcm-953.dtsi | 303 +++++++++++++++++++++ arch/arm/boot/dts/am335x-phycore-rdk.dts | 27 ++ 4 files changed, 334 insertions(+) create mode 100644 arch/arm/boot/dts/am335x-pcm-953.dtsi create mode 100644 arch/arm/boot/dts/am335x-phycore-rdk.dtsDocumentation/devicetree/bindings/arm/omap/omap.txt +3
-0@@ -151,6 +151,9 @@ Boards: - AM335X SBC-T335 : single board computer, built around the Sitara AM3352/4 compatible = "compulab,sbc-t335", "compulab,cm-t335", "ti,am33xx" +- AM335X phyCORE-AM335x: Development kit + compatible = "phytec,am335x-pcm-953", "phytec,am335x-phycore-som", "ti,am33xx" + - OMAP5 EVM : Evaluation Module compatible = "ti,omap5-evm", "ti,omap5"arch/arm/boot/dts/Makefile +1
-0@@ -573,6 +573,7 @@ dtb-$(CONFIG_SOC_AM33XX) += \ am335x-lxm.dtb \ am335x-nano.dtb \ am335x-pepper.dtb \ + am335x-phycore-rdk.dtb \ am335x-shc.dtb \ am335x-sbc-t335.dtb \ am335x-sl50.dtb \arch/arm/boot/dts/am335x-pcm-953.dtsi new file +16
-0@@ -0,0 +1,303 @@ +/* + * Copyright (C) 2014-2017 Phytec Messtechnik GmbH + * Author: Wadim Egorov <[email protected]> + * Teresa Remmet <[email protected]> + * + * 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. + */ + +#include <dt-bindings/input/input.h> + +/ { + model = "Phytec AM335x PCM-953"; + compatible = "phytec,am335x-pcm-953", "phytec,am335x-phycore-som", "ti,am33xx"; +
arch/arm/boot/dts/am335x-pcm-953.dtsi line 26
Quoted 10 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +10
-0+ user_leds: user_leds { + compatible = "gpio-leds"; + }; + + user_buttons: user_buttons { + compatible = "gpio-keys"; + }; + + regulators { + compatible = "simple-bus";
Please drop "simple-bus" compatible, see http://www.spinics.net/lists/linux-usb/msg101497.html
arch/arm/boot/dts/am335x-pcm-953.dtsi line 39
Quoted 13 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +13
-0+ + vcc3v3: fixedregulator at 1 { + compatible = "regulator-fixed"; + }; + + vcc1v8: fixedregulator at 2 { + compatible = "regulator-fixed"; + }; + }; +}; + +/* CAN */ +&am33xx_pinmux {
Which .dtsi file contains the referenced am33xx_pinmux device node?
You should include that file firstly, this is relevant to all other references to device nodes used in this file.
Quoted 34 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +34
-0+ dcan1_pins: pinmux_dcan1 { + pinctrl-single,pins = < + AM33XX_IOPAD(0x980, PIN_OUTPUT_PULLUP | MUX_MODE2) /* uart1_rxd.dcan1_tx_mux2 */ + AM33XX_IOPAD(0x984, PIN_INPUT_PULLUP | MUX_MODE2) /* uart1_txd.dcan1_rx_mux2 */ + >; + }; +}; + +&dcan1 { + pinctrl-names = "default"; + pinctrl-0 = <&dcan1_pins>; + status = "okay"; +}; + +/* Ethernet */ +&am33xx_pinmux { + ethernet1_pins: pinmux_ethernet1 { + pinctrl-single,pins = < + AM33XX_IOPAD(0x840, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a0.rgmii2_tctl */ + AM33XX_IOPAD(0x844, PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a1.rgmii2_rctl */ + AM33XX_IOPAD(0x848, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a2.rgmii2_td3 */ + AM33XX_IOPAD(0x84c, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a3.rgmii2_td2 */ + AM33XX_IOPAD(0x850, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a4.rgmii2_td1 */ + AM33XX_IOPAD(0x854, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a5.rgmii2_td0 */ + AM33XX_IOPAD(0x858, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a6.rgmii2_tclk */ + AM33XX_IOPAD(0x85c, PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a7.rgmii2_rclk */ + AM33XX_IOPAD(0x860, PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a8.rgmii2_rd3 */ + AM33XX_IOPAD(0x864, PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a9.rgmii2_rd2 */ + AM33XX_IOPAD(0x868, PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a10.rgmii2_rd1 */ + AM33XX_IOPAD(0x86c, PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a11.rgmii2_rd0 */ + >; + }; +}; +
arch/arm/boot/dts/am335x-pcm-953.dtsi line 83
Quoted 10 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +10
-0+&cpsw_emac1 { + phy-handle = <&phy1>; + phy-mode = "rgmii-id"; + dual_emac_res_vlan = <2>; + status = "okay"; +}; + +&davinci_mdio { + phy1: ethernet-phy at 1 { + reg = <2>;
There is a mismatch between unit address and 'reg' property values.
Quoted 14 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +14
-0+ + /* Register 260 (104h) ? RGMII Clock and Control Pad Skew */ + rxc-skew-ps = <1400>; + rxdv-skew-ps = <0>; + txc-skew-ps = <1400>; + txen-skew-ps = <0>; + /* Register 261 (105h) ? RGMII RX Data Pad Skew */ + rxd3-skew-ps = <0>; + rxd2-skew-ps = <0>; + rxd1-skew-ps = <0>; + rxd0-skew-ps = <0>; + /* Register 262 (106h) ? RGMII TX Data Pad Skew */ + txd3-skew-ps = <0>; + txd2-skew-ps = <0>;
arch/arm/boot/dts/am335x-pcm-953.dtsi line 107
Quoted 10 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +10
-0+ txd1-skew-ps = <0>; + txd0-skew-ps = <0>; + }; +}; + +&mac { + slaves = <2>; + pinctrl-names = "default"; + pinctrl-0 = <ðernet0_pins ðernet1_pins>; + dual_emac;
It seems that TI has properties with underscores in the names, acked.
Quoted 36 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +36
-0+}; + +/* Misc */ +&am33xx_pinmux { + pinctrl-names = "default"; + pinctrl-0 = <&cb_gpio_pins>; + + cb_gpio_pins: pinmux_cb_gpio { + pinctrl-single,pins = < + AM33XX_IOPAD(0x968, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* uart0_ctsn.gpio1_8 */ + AM33XX_IOPAD(0x96c, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* uart0_rtsn.gpio1_9 */ + >; + }; +}; + +/* MMC */ +&am33xx_pinmux { + mmc1_pins: pinmux_mmc1_pins { + pinctrl-single,pins = < + AM33XX_IOPAD(0x8f0, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat3.mmc0_dat3 */ + AM33XX_IOPAD(0x8f4, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat2.mmc0_dat2 */ + AM33XX_IOPAD(0x8f8, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat1.mmc0_dat1 */ + AM33XX_IOPAD(0x8fc, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat0.mmc0_dat0 */ + AM33XX_IOPAD(0x900, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_clk.mmc0_clk */ + AM33XX_IOPAD(0x904, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_cmd.mmc0_cmd */ + AM33XX_IOPAD(0x960, PIN_INPUT_PULLUP | MUX_MODE7) /* spi0_cs1.mmc0_sdcd */ + >; + }; +}; + +&mmc1 { + vmmc-supply = <&vcc3v3>; + bus-width = <4>; + pinctrl-names = "default"; + pinctrl-0 = <&mmc1_pins>; + cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
arch/arm/boot/dts/am335x-pcm-953.dtsi line 153
Quoted 10 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +10
-0+ status = "okay"; +}; + +/* Power */ +&vcc3v3 { + regulator-name = "vcc3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; +};
Please add properties directly into vcc3v3 device node.
arch/arm/boot/dts/am335x-pcm-953.dtsi line 161
Quoted 8 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +8
-0+ +&vcc1v8 { + regulator-name = "vcc1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; +}; +
Please add properties directly into vcc1v8 device node.
Quoted 94 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +94
-0+/* UARTs */ +&am33xx_pinmux { + uart0_pins: pinmux_uart0 { + pinctrl-single,pins = < + AM33XX_IOPAD(0x970, PIN_INPUT_PULLUP | MUX_MODE0) /* uart0_rxd.uart0_rxd */ + AM33XX_IOPAD(0x974, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */ + >; + }; + + uart1_pins: pinmux_uart1 { + pinctrl-single,pins = < + AM33XX_IOPAD(0x980, PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_rxd.uart1_rxd */ + AM33XX_IOPAD(0x984, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart1_txd.uart1_txd */ + AM33XX_IOPAD(0x978, PIN_INPUT | MUX_MODE0) /* uart1_ctsn.uart1_ctsn */ + AM33XX_IOPAD(0x97c, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart1_rtsn.uart1_rtsn */ + >; + }; + + uart2_pins: pinmux_uart2 { + pinctrl-single,pins = < + AM33XX_IOPAD(0x92c, PIN_INPUT_PULLUP | MUX_MODE1) /* mii1_tx_clk.uart2_rxd */ + AM33XX_IOPAD(0x930, PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* mii1_rx_clk.uart2_txd */ + >; + }; + + uart3_pins: pinmux_uart3 { + pinctrl-single,pins = < + AM33XX_IOPAD(0x934, PIN_INPUT_PULLUP | MUX_MODE1) /* mii1_rxd3.uart3_rxd */ + AM33XX_IOPAD(0x938, PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* mii1_rxd2.uart3_txd */ + >; + }; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_pins>; + status = "okay"; +}; + +&uart1 { + pinctrl-names = "default"; + pinctrl-0 = <&uart1_pins>; +}; + +&uart2 { + pinctrl-names = "default"; + pinctrl-0 = <&uart2_pins>; + status = "okay"; +}; + +&uart3 { + pinctrl-names = "default"; + pinctrl-0 = <&uart3_pins>; + status = "okay"; +}; + +/* USB */ +&cppi41dma { + status = "okay"; +}; + +&usb_ctrl_mod { + status = "okay"; +}; + +&usb { + status = "okay"; +}; + +&usb0 { + status = "okay"; +}; + +&usb0_phy { + status = "okay"; +}; + +&usb1 { + status = "okay"; + dr_mode = "host"; +}; + +&usb1_phy { + status = "okay"; +}; + +/* User IO */ +&am33xx_pinmux { + user_buttons_pins: pinmux_user_buttons { + pinctrl-single,pins = < + AM33XX_IOPAD(0x9e4, PIN_INPUT_PULLDOWN | MUX_MODE7) /* emu0.gpio3_7 */ + AM33XX_IOPAD(0x9e8, PIN_INPUT_PULLDOWN | MUX_MODE7) /* emu1.gpio3_8 */ + >; + };
arch/arm/boot/dts/am335x-pcm-953.dtsi line 265
Quoted 10 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +10
-0+ + user_leds_pins: pinmux_user_leds { + pinctrl-single,pins = < + AM33XX_IOPAD(0x880, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_csn1.gpio1_30 */ + AM33XX_IOPAD(0x884, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_csn2.gpio1_31 */ + >; + }; +}; + +&user_buttons {
Please add properties directly into user_buttons device node.
arch/arm/boot/dts/am335x-pcm-953.dtsi line 268
Quoted 3 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +3
-0+ pinctrl-names = "default"; + pinctrl-0 = <&user_buttons_pins>; + status = "okay";
Please remove the redundant property above.
Quoted 7 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +7
-0+ + button at 0 { + label = "home"; + linux,code = <KEY_HOME>; + gpios = <&gpio3 7 GPIO_ACTIVE_HIGH>; + gpio-key,wakeup; + };
arch/arm/boot/dts/am335x-pcm-953.dtsi line 285
Quoted 10 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +10
-0+ + button at 1 { + label = "menu"; + linux,code = <KEY_MENU>; + gpios = <&gpio3 8 GPIO_ACTIVE_HIGH>; + gpio-key,wakeup; + }; +}; + +&user_leds {
Please add properties directly into user_leds device node.
arch/arm/boot/dts/am335x-pcm-953.dtsi line 288
Quoted 3 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +3
-0+ pinctrl-names = "default"; + pinctrl-0 = <&user_leds_pins>; + status = "okay";
Please remove the redundant property above.
Quoted 49 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +15
-0+ + green { + label = "green:user"; + gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "gpio"; + default-state = "on"; + }; + + yellow { + label = "yellow:user"; + gpios = <&gpio1 31 GPIO_ACTIVE_LOW>; + linux,default-trigger = "gpio"; + default-state = "on"; + }; +};arch/arm/boot/dts/am335x-phycore-rdk.dts new file +27
-0@@ -0,0 +1,27 @@ +/* + * Copyright (C) 2014 PHYTEC Messtechnik GmbH + * Author: Wadim Egorov <[email protected]> + * + * 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. + */ + +/dts-v1/; + +#include "am335x-phycore-som.dtsi" +#include "am335x-pcm-953.dtsi" + +/* SoM */ +&i2c_eeprom { + status = "okay"; +}; + +&i2c_rtc { + status = "okay"; +}; + +&serial_flash { + status = "okay"; + +};
PATCH 1/3 ARM: dts: Add support for phyCORE-AM335x PCM-953 carrier board
Hello Vladimir,
thank you for your review.
Am Donnerstag, den 19.01.2017, 16:24 +0200 schrieb Vladimir Zapolskiy:
Quoted 87 lines · Teresa Remmet
Quoted 86 lines
The phyCORE-AM335x development kit is a combination of the phyCORE-AM335x SoM and a PCM-953 carrier board. The features of the PCM-953 are:
* ETH phy on carrier board: 1x RGMII
* 1x CAN
* Up to 4x UART
* USB0 (otg)
* USB1 (host)
* SD slot
* User gpio-keys
* User LEDsSigned-off-by Teresa Remmet <[email protected]>Reviewed-by Wadim Egorov <[email protected]>---
?.../devicetree/bindings/arm/omap/omap.txt??????????|???3 + ?arch/arm/boot/dts/Makefile?????????????????????????|???1 + ?arch/arm/boot/dts/am335x-pcm-953.dtsi??????????????| 303+++++++++++++++++++++
?arch/arm/boot/dts/am335x-phycore-rdk.dts???????????|??27 ++ ?4 files changed, 334 insertions(+)
?create mode 100644arch/arm/boot/dts/am335x-pcm-953.dtsi?create mode 100644arch/arm/boot/dts/am335x-phycore-rdk.dtsDocumentation/devicetree/bindings/arm/omap/omap.txt +0
-0@@ -151,6 +151,9 @@ Boards:?- AM335X SBC-T335 : single board computer, built around the Sitara AM3352/4
???compatible = "compulab,sbc-t335", "compulab,cm-t335", "ti,am33xx"
?
+- AM335X phyCORE-AM335x: Development kit
+??compatible = "phytec,am335x-pcm-953", "phytec,am335x-phycore- som", "ti,am33xx"
+
?- OMAP5 EVM : Evaluation Module
???compatible = "ti,omap5-evm", "ti,omap5"
?arch/arm/boot/dts/Makefile +1
-0@@ -573,6 +573,7 @@ dtb-$(CONFIG_SOC_AM33XX) += \ ? am335x-lxm.dtb \ ? am335x-nano.dtb \ ? am335x-pepper.dtb \ + am335x-phycore-rdk.dtb \ ? am335x-shc.dtb \ ? am335x-sbc-t335.dtb \ ? am335x-sl50.dtb \arch/arm/boot/dts/am335x-pcm-953.dtsi new file +6
-0@@ -0,0 +1,303 @@ +/* + * Copyright (C) 2014-2017 Phytec Messtechnik GmbH + * Author: Wadim Egorov <[email protected]> + * ???Teresa Remmet <[email protected]> + * + * This program is free software; you can redistribute it and/ormodify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +6
-0+ +#include <dt-bindings/input/input.h> + +/ { + model = "Phytec AM335x PCM-953"; + compatible = "phytec,am335x-pcm-953", "phytec,am335x-phycore-som", "ti,am33xx";
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +5
-0+ + user_leds: user_leds { + compatible = "gpio-leds"; + }; +
Quoted 9 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi line 26
Quoted 6 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +6
-0+ user_buttons: user_buttons { + compatible = "gpio-keys"; + }; + + regulators { + compatible = "simple-bus";Please drop "simple-bus" compatible, see http://www.spinics.net/lists
/linux-usb/msg101497.html
Ok, I will.
Quoted 16 lines
Quoted 4 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +3
-0+ + vcc3v3: fixedregulator at 1 { + compatible = "regulator-fixed";arch/arm/boot/dts/am335x-pcm-953.dtsi line 39
Quoted 10 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +10
-0+ }; + + vcc1v8: fixedregulator at 2 { + compatible = "regulator-fixed"; + }; + }; +}; + +/* CAN */ +&am33xx_pinmux {Which .dtsi file contains the referenced
am33xx_pinmuxdevice node?
Quoted 2 lines
You should include that file firstly, this is relevant to all other references to device nodes used in this file.
The device tree for the Phytec AM335x boards is spitted apart, as they consist of an SoM and a carrier board. The?am33xx_pinmux is defined in the?am33xx.dtsi which is included in the am335x-phycore-som.dtsi.
Quoted 53 lines
Quoted 53 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +3
-0+ dcan1_pins: pinmux_dcan1 { + pinctrl-single,pins = < + AM33XX_IOPAD(0x980, PIN_OUTPUT_PULLUP |
MUX_MODE2) /* uart1_rxd.dcan1_tx_mux2 */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +1
-0+ AM33XX_IOPAD(0x984, PIN_INPUT_PULLUP |
MUX_MODE2) /* uart1_txd.dcan1_rx_mux2 */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +15
-0+ >; + }; +}; + +&dcan1 { + pinctrl-names = "default"; + pinctrl-0 = <&dcan1_pins>; + status = "okay"; +}; + +/* Ethernet */ +&am33xx_pinmux { + ethernet1_pins: pinmux_ethernet1 { + pinctrl-single,pins = < + AM33XX_IOPAD(0x840, PIN_OUTPUT_PULLDOWN |
MUX_MODE2) /* gpmc_a0.rgmii2_tctl */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +1
-0+ AM33XX_IOPAD(0x844, PIN_INPUT_PULLDOWN |
MUX_MODE2) /* gpmc_a1.rgmii2_rctl */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +1
-0+ AM33XX_IOPAD(0x848, PIN_OUTPUT_PULLDOWN |
MUX_MODE2) /* gpmc_a2.rgmii2_td3 */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +1
-0+ AM33XX_IOPAD(0x84c, PIN_OUTPUT_PULLDOWN |
MUX_MODE2) /* gpmc_a3.rgmii2_td2 */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +1
-0+ AM33XX_IOPAD(0x850, PIN_OUTPUT_PULLDOWN |
MUX_MODE2) /* gpmc_a4.rgmii2_td1 */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +1
-0+ AM33XX_IOPAD(0x854, PIN_OUTPUT_PULLDOWN |
MUX_MODE2) /* gpmc_a5.rgmii2_td0 */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +1
-0+ AM33XX_IOPAD(0x858, PIN_OUTPUT_PULLDOWN |
MUX_MODE2) /* gpmc_a6.rgmii2_tclk */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +1
-0+ AM33XX_IOPAD(0x85c, PIN_INPUT_PULLDOWN |
MUX_MODE2) /* gpmc_a7.rgmii2_rclk */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +1
-0+ AM33XX_IOPAD(0x860, PIN_INPUT_PULLDOWN |
MUX_MODE2) /* gpmc_a8.rgmii2_rd3 */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +1
-0+ AM33XX_IOPAD(0x864, PIN_INPUT_PULLDOWN |
MUX_MODE2) /* gpmc_a9.rgmii2_rd2 */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +1
-0+ AM33XX_IOPAD(0x868, PIN_INPUT_PULLDOWN |
MUX_MODE2) /* gpmc_a10.rgmii2_rd1 */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +1
-0+ AM33XX_IOPAD(0x86c, PIN_INPUT_PULLDOWN |
MUX_MODE2) /* gpmc_a11.rgmii2_rd0 */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +7
-0+ >; + }; +}; + +&cpsw_emac1 { + phy-handle = <&phy1>; + phy-mode = "rgmii-id";
Quoted 8 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi line 83
Quoted 7 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +7
-0+ dual_emac_res_vlan = <2>; + status = "okay"; +}; + +&davinci_mdio { + phy1: ethernet-phy at 1 { + reg = <2>;There is a mismatch between unit address and 'reg' property values.
I will fix that.
Quoted 78 lines
Quoted 17 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +2
-0+ + /* Register 260 (104h) ? RGMII Clock and ControlPad Skew */
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +12
-0+ rxc-skew-ps = <1400>; + rxdv-skew-ps = <0>; + txc-skew-ps = <1400>; + txen-skew-ps = <0>; + /* Register 261 (105h) ? RGMII RX Data Pad Skew */ + rxd3-skew-ps = <0>; + rxd2-skew-ps = <0>; + rxd1-skew-ps = <0>; + rxd0-skew-ps = <0>; + /* Register 262 (106h) ? RGMII TX Data Pad Skew */ + txd3-skew-ps = <0>; + txd2-skew-ps = <0>;arch/arm/boot/dts/am335x-pcm-953.dtsi line 107
Quoted 10 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +10
-0+ txd1-skew-ps = <0>; + txd0-skew-ps = <0>; + }; +}; + +&mac { + slaves = <2>; + pinctrl-names = "default"; + pinctrl-0 = <ðernet0_pins ðernet1_pins>; + dual_emac;It seems that TI has properties with underscores in the names, acked.
Quoted 49 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +10
-0+}; + +/* Misc */ +&am33xx_pinmux { + pinctrl-names = "default"; + pinctrl-0 = <&cb_gpio_pins>; + + cb_gpio_pins: pinmux_cb_gpio { + pinctrl-single,pins = < + AM33XX_IOPAD(0x968, PIN_OUTPUT_PULLDOWN |
MUX_MODE7) /* uart0_ctsn.gpio1_8 */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +1
-0+ AM33XX_IOPAD(0x96c, PIN_OUTPUT_PULLDOWN |
MUX_MODE7) /* uart0_rtsn.gpio1_9 */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +9
-0+ >; + }; +}; + +/* MMC */ +&am33xx_pinmux { + mmc1_pins: pinmux_mmc1_pins { + pinctrl-single,pins = < + AM33XX_IOPAD(0x8f0, PIN_INPUT_PULLUP |
MUX_MODE0) /* mmc0_dat3.mmc0_dat3 */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +1
-0+ AM33XX_IOPAD(0x8f4, PIN_INPUT_PULLUP |
MUX_MODE0) /* mmc0_dat2.mmc0_dat2 */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +1
-0+ AM33XX_IOPAD(0x8f8, PIN_INPUT_PULLUP |
MUX_MODE0) /* mmc0_dat1.mmc0_dat1 */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +1
-0+ AM33XX_IOPAD(0x8fc, PIN_INPUT_PULLUP |
MUX_MODE0) /* mmc0_dat0.mmc0_dat0 */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +1
-0+ AM33XX_IOPAD(0x900, PIN_INPUT_PULLUP |
MUX_MODE0) /* mmc0_clk.mmc0_clk */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +1
-0+ AM33XX_IOPAD(0x904, PIN_INPUT_PULLUP |
MUX_MODE0) /* mmc0_cmd.mmc0_cmd */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +1
-0+ AM33XX_IOPAD(0x960, PIN_INPUT_PULLUP |
MUX_MODE7) /* spi0_cs1.mmc0_sdcd */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +13
-0+ >; + }; +}; + +&mmc1 { + vmmc-supply = <&vcc3v3>; + bus-width = <4>; + pinctrl-names = "default"; + pinctrl-0 = <&mmc1_pins>; + cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>; + status = "okay"; +}; +
Quoted 8 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi line 153
Quoted 7 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +7
-0+/* Power */ +&vcc3v3 { + regulator-name = "vcc3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; +};Please add properties directly into vcc3v3 device node.
I spitted the node apart as we structured the device tree in different section. If I move this to the node directly the device tree is not so readable in general any more. My opinion.
The same fits to the user leds and user buttons.
Quoted 134 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi line 161
Quoted 10 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +8
-0+ +&vcc1v8 { + regulator-name = "vcc1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; +}; +Please add properties directly into vcc1v8 device node.
Quoted 114 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +5
-0+/* UARTs */ +&am33xx_pinmux { + uart0_pins: pinmux_uart0 { + pinctrl-single,pins = < + AM33XX_IOPAD(0x970, PIN_INPUT_PULLUP |
MUX_MODE0) /* uart0_rxd.uart0_rxd */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +1
-0+ AM33XX_IOPAD(0x974, PIN_OUTPUT_PULLDOWN |
MUX_MODE0) /* uart0_txd.uart0_txd */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +6
-0+ >; + }; + + uart1_pins: pinmux_uart1 { + pinctrl-single,pins = < + AM33XX_IOPAD(0x980, PIN_INPUT_PULLUP |
MUX_MODE0) /* uart1_rxd.uart1_rxd */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +1
-0+ AM33XX_IOPAD(0x984, PIN_OUTPUT_PULLDOWN |
MUX_MODE0) /* uart1_txd.uart1_txd */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +1
-0+ AM33XX_IOPAD(0x978, PIN_INPUT | MUX_MODE0)/* uart1_ctsn.uart1_ctsn */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +1
-0+ AM33XX_IOPAD(0x97c, PIN_OUTPUT_PULLDOWN |
MUX_MODE0) /* uart1_rtsn.uart1_rtsn */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +6
-0+ >; + }; + + uart2_pins: pinmux_uart2 { + pinctrl-single,pins = < + AM33XX_IOPAD(0x92c, PIN_INPUT_PULLUP |
MUX_MODE1) /* mii1_tx_clk.uart2_rxd */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +1
-0+ AM33XX_IOPAD(0x930, PIN_OUTPUT_PULLDOWN |
MUX_MODE1) /* mii1_rx_clk.uart2_txd */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +6
-0+ >; + }; + + uart3_pins: pinmux_uart3 { + pinctrl-single,pins = < + AM33XX_IOPAD(0x934, PIN_INPUT_PULLUP |
MUX_MODE1) /* mii1_rxd3.uart3_rxd */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +1
-0+ AM33XX_IOPAD(0x938, PIN_OUTPUT_PULLDOWN |
MUX_MODE1) /* mii1_rxd2.uart3_txd */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +62
-0+ >; + }; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_pins>; + status = "okay"; +}; + +&uart1 { + pinctrl-names = "default"; + pinctrl-0 = <&uart1_pins>; +}; + +&uart2 { + pinctrl-names = "default"; + pinctrl-0 = <&uart2_pins>; + status = "okay"; +}; + +&uart3 { + pinctrl-names = "default"; + pinctrl-0 = <&uart3_pins>; + status = "okay"; +}; + +/* USB */ +&cppi41dma { + status = "okay"; +}; + +&usb_ctrl_mod { + status = "okay"; +}; + +&usb { + status = "okay"; +}; + +&usb0 { + status = "okay"; +}; + +&usb0_phy { + status = "okay"; +}; + +&usb1 { + status = "okay"; + dr_mode = "host"; +}; + +&usb1_phy { + status = "okay"; +}; + +/* User IO */ +&am33xx_pinmux { + user_buttons_pins: pinmux_user_buttons { + pinctrl-single,pins = < + AM33XX_IOPAD(0x9e4, PIN_INPUT_PULLDOWN |
MUX_MODE7) /* emu0.gpio3_7 */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +1
-0+ AM33XX_IOPAD(0x9e8, PIN_INPUT_PULLDOWN |
MUX_MODE7) /* emu1.gpio3_8 */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +6
-0+ >; + }; + + user_leds_pins: pinmux_user_leds { + pinctrl-single,pins = < + AM33XX_IOPAD(0x880, PIN_OUTPUT_PULLDOWN |
MUX_MODE7) /* gpmc_csn1.gpio1_30 */arch/arm/boot/dts/am335x-pcm-953.dtsi new file +1
-0+ AM33XX_IOPAD(0x884, PIN_OUTPUT_PULLDOWN |
MUX_MODE7) /* gpmc_csn2.gpio1_31 */arch/arm/boot/dts/am335x-pcm-953.dtsi line 265
Quoted 5 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +5
-0+ >; + }; +}; + +&user_buttons {Please add properties directly into
user_buttonsdevice node.Quoted 1 line
Quoted 4 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi line 268
Quoted 3 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +3
-0+ pinctrl-names = "default"; + pinctrl-0 = <&user_buttons_pins>; + status = "okay";Please remove the redundant property above.
I will remove it.
Quoted 22 lines
Quoted 9 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +7
-0+ + button at 0 { + label = "home"; + linux,code = ; + gpios = <&gpio3 7 GPIO_ACTIVE_HIGH>; + gpio-key,wakeup; + };arch/arm/boot/dts/am335x-pcm-953.dtsi line 285
Quoted 10 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +10
-0+ + button at 1 { + label = "menu"; + linux,code = ; + gpios = <&gpio3 8 GPIO_ACTIVE_HIGH>; + gpio-key,wakeup; + }; +}; + +&user_leds {Please add properties directly into
user_ledsdevice node.Quoted 1 line
Quoted 4 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi line 288
Quoted 3 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +3
-0+ pinctrl-names = "default"; + pinctrl-0 = <&user_leds_pins>; + status = "okay";Please remove the redundant property above.
I will remove it.
Thank you,
Teresa
Quoted 54 lines
Quoted 54 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +15
-0+ + green { + label = "green:user"; + gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "gpio"; + default-state = "on"; + }; + + yellow { + label = "yellow:user"; + gpios = <&gpio1 31 GPIO_ACTIVE_LOW>; + linux,default-trigger = "gpio"; + default-state = "on"; + }; +};arch/arm/boot/dts/am335x-phycore-rdk.dts new file +5
-0@@ -0,0 +1,27 @@ +/* + * Copyright (C) 2014 PHYTEC Messtechnik GmbH + * Author: Wadim Egorov <[email protected]> + * + * This program is free software; you can redistribute it and/ormodify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */arch/arm/boot/dts/am335x-phycore-rdk.dts new file +19
-0+ +/dts-v1/; + +#include "am335x-phycore-som.dtsi" +#include "am335x-pcm-953.dtsi" + +/* SoM */ +&i2c_eeprom { + status = "okay"; +}; + +&i2c_rtc { + status = "okay"; +}; + +&serial_flash { + status = "okay"; + +};
Rob Herring
maintainerPATCH 1/3 ARM: dts: Add support for phyCORE-AM335x PCM-953 carrier board
In reply to Teresa RemmetQuoted 22 lines · Teresa Remmet
The phyCORE-AM335x development kit is a combination of the phyCORE-AM335x SoM and a PCM-953 carrier board. The features of the PCM-953 are:
* ETH phy on carrier board: 1x RGMII
* 1x CAN
* Up to 4x UART
* USB0 (otg)
* USB1 (host)
* SD slot
* User gpio-keys
* User LEDsSigned-off-by Teresa Remmet <[email protected]>Reviewed-by Wadim Egorov <[email protected]>--- .../devicetree/bindings/arm/omap/omap.txt | 3 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/am335x-pcm-953.dtsi | 303 +++++++++++++++++++++ arch/arm/boot/dts/am335x-phycore-rdk.dts | 27 ++ 4 files changed, 334 insertions(+) create mode 100644 arch/arm/boot/dts/am335x-pcm-953.dtsi create mode 100644 arch/arm/boot/dts/am335x-phycore-rdk.dts
[...]
arch/arm/boot/dts/am335x-pcm-953.dtsi line 23
Quoted 7 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +7
-0+ user_leds: user_leds { + compatible = "gpio-leds"; + }; + + user_buttons: user_buttons { + compatible = "gpio-keys"; + };
With only a compatible, I don't think there's much gain to split these 2 nodes. Otherwse,
Quoted 39 lines
+&user_buttons {
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +38
-0+ pinctrl-names = "default"; + pinctrl-0 = <&user_buttons_pins>; + status = "okay"; + + button at 0 { + label = "home"; + linux,code = <KEY_HOME>; + gpios = <&gpio3 7 GPIO_ACTIVE_HIGH>; + gpio-key,wakeup; + }; + + button at 1 { + label = "menu"; + linux,code = <KEY_MENU>; + gpios = <&gpio3 8 GPIO_ACTIVE_HIGH>; + gpio-key,wakeup; + }; +}; + +&user_leds { + pinctrl-names = "default"; + pinctrl-0 = <&user_leds_pins>; + status = "okay"; + + green { + label = "green:user"; + gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "gpio"; + default-state = "on"; + }; + + yellow { + label = "yellow:user"; + gpios = <&gpio1 31 GPIO_ACTIVE_LOW>; + linux,default-trigger = "gpio"; + default-state = "on"; + }; +};
PATCH 1/3 ARM: dts: Add support for phyCORE-AM335x PCM-953 carrier board
Hello Rob,
Am Samstag, den 21.01.2017, 14:53 -0600 schrieb Rob Herring:
Quoted 28 lines · Teresa Remmet
Quoted 24 lines
The phyCORE-AM335x development kit is a combination of the phyCORE-AM335x SoM and a PCM-953 carrier board. The features of the PCM-953 are:
* ETH phy on carrier board: 1x RGMII
* 1x CAN
* Up to 4x UART
* USB0 (otg)
* USB1 (host)
* SD slot
* User gpio-keys
* User LEDsSigned-off-by Teresa Remmet <[email protected]>Reviewed-by Wadim Egorov <[email protected]>---
?.../devicetree/bindings/arm/omap/omap.txt??????????|???3 + ?arch/arm/boot/dts/Makefile?????????????????????????|???1 + ?arch/arm/boot/dts/am335x-pcm-953.dtsi??????????????| 303+++++++++++++++++++++
?arch/arm/boot/dts/am335x-phycore-rdk.dts???????????|??27 ++ ?4 files changed, 334 insertions(+)
?create mode 100644arch/arm/boot/dts/am335x-pcm-953.dtsi?create mode 100644arch/arm/boot/dts/am335x-phycore-rdk.dts[...]
Quoted 1 line
Quoted 10 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi line 23
Quoted 7 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +7
-0+ user_leds: user_leds { + compatible = "gpio-leds"; + }; + + user_buttons: user_buttons { + compatible = "gpio-keys"; + };With only a compatible, I don't think there's much gain to split these 2?
nodes. Otherwse,
whould it be ok to open up the root node again below? Or should I better move the nodes up? Which does mess up the order then. We orinented here on the am335x-pepper.dts. They also only keep the compatibles in the root node.
Thanks,
Teresa
Quoted 43 lines
Acked-by Rob Herring <[email protected]>Quoted 40 lines
+&user_buttons {
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +38
-0+ pinctrl-names = "default"; + pinctrl-0 = <&user_buttons_pins>; + status = "okay"; + + button at 0 { + label = "home"; + linux,code = <KEY_HOME>; + gpios = <&gpio3 7 GPIO_ACTIVE_HIGH>; + gpio-key,wakeup; + }; + + button at 1 { + label = "menu"; + linux,code = <KEY_MENU>; + gpios = <&gpio3 8 GPIO_ACTIVE_HIGH>; + gpio-key,wakeup; + }; +}; + +&user_leds { + pinctrl-names = "default"; + pinctrl-0 = <&user_leds_pins>; + status = "okay"; + + green { + label = "green:user"; + gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "gpio"; + default-state = "on"; + }; + + yellow { + label = "yellow:user"; + gpios = <&gpio1 31 GPIO_ACTIVE_LOW>; + linux,default-trigger = "gpio"; + default-state = "on"; + }; +};
Rob Herring
maintainerPATCH 1/3 ARM: dts: Add support for phyCORE-AM335x PCM-953 carrier board
Quoted 38 lines · Teresa Remmet
Hello Rob,
Am Samstag, den 21.01.2017, 14:53 -0600 schrieb Rob Herring:
Quoted 35 lines · Teresa Remmet
Quoted 24 lines
The phyCORE-AM335x development kit is a combination of the phyCORE-AM335x SoM and a PCM-953 carrier board. The features of the PCM-953 are:
* ETH phy on carrier board: 1x RGMII
* 1x CAN
* Up to 4x UART
* USB0 (otg)
* USB1 (host)
* SD slot
* User gpio-keys
* User LEDsSigned-off-by Teresa Remmet <[email protected]>Reviewed-by Wadim Egorov <[email protected]>--- .../devicetree/bindings/arm/omap/omap.txt | 3 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/am335x-pcm-953.dtsi | 303 +++++++++++++++++++++ arch/arm/boot/dts/am335x-phycore-rdk.dts | 27 ++ 4 files changed, 334 insertions(+) create mode 100644 arch/arm/boot/dts/am335x-pcm-953.dtsi create mode 100644 arch/arm/boot/dts/am335x-phycore-rdk.dts[...]
Quoted 8 lines
arch/arm/boot/dts/am335x-pcm-953.dtsi new file +7
-0+ user_leds: user_leds { + compatible = "gpio-leds"; + }; + + user_buttons: user_buttons { + compatible = "gpio-keys"; + };
Quoted 8 lines
Quoted 3 lines
With only a compatible, I don't think there's much gain to split these 2
nodes. Otherwse,whould it be ok to open up the root node again below? Or should I better move the nodes up? Which does mess up the order then. We orinented here on the
am335x-pepper.dts. They also only keep the compatibles in the root node.
The order is not important. It is silly to have the same node twice in the same file. Someone should fix am335x-pepper.dts, too.
The split is generally what is chip specific and board specific, but this is all board specific.
Rob