Skip to content

Commit

Permalink
Merge branch 'v4.8/dt64' into v4.8/dt64-2
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Hilman committed Sep 15, 2016
2 parents 39f0d98 + c763eb8 commit e1e4a1a
Show file tree
Hide file tree
Showing 8 changed files with 478 additions and 4 deletions.
15 changes: 15 additions & 0 deletions Documentation/devicetree/bindings/firmware/meson/meson_sm.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
* Amlogic Secure Monitor

In the Amlogic SoCs the Secure Monitor code is used to provide access to the
NVMEM, enable JTAG, set USB boot, etc...

Required properties for the secure monitor node:
- compatible: Should be "amlogic,meson-gxbb-sm"

Example:

firmware {
sm: secure-monitor {
compatible = "amlogic,meson-gxbb-sm";
};
};
5 changes: 4 additions & 1 deletion Documentation/devicetree/bindings/media/meson-ir.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
* Amlogic Meson IR remote control receiver

Required properties:
- compatible : should be "amlogic,meson6-ir"
- compatible : depending on the platform this should be one of:
- "amlogic,meson6-ir"
- "amlogic,meson8b-ir"
- "amlogic,meson-gxbb-ir"
- reg : physical base address and length of the device registers
- interrupts : a single specifier for the interrupt from the device

Expand Down
39 changes: 39 additions & 0 deletions Documentation/devicetree/bindings/nvmem/amlogic-efuse.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
= Amlogic eFuse device tree bindings =

Required properties:
- compatible: should be "amlogic,meson-gxbb-efuse"

= Data cells =
Are child nodes of eFuse, bindings of which as described in
bindings/nvmem/nvmem.txt

Example:

efuse: efuse {
compatible = "amlogic,meson-gxbb-efuse";
#address-cells = <1>;
#size-cells = <1>;

sn: sn@14 {
reg = <0x14 0x10>;
};

eth_mac: eth_mac@34 {
reg = <0x34 0x10>;
};

bid: bid@46 {
reg = <0x46 0x30>;
};
};

= Data consumers =
Are device nodes which consume nvmem data cells.

For example:

eth_mac {
...
nvmem-cells = <&eth_mac>;
nvmem-cell-names = "eth_mac";
};
11 changes: 11 additions & 0 deletions arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,14 @@
pinctrl-names = "default";
};

&ir {
status = "okay";
pinctrl-0 = <&remote_input_ao_pins>;
pinctrl-names = "default";
};

&i2c_A {
status = "okay";
pinctrl-0 = <&i2c_a_pins>;
pinctrl-names = "default";
};
6 changes: 6 additions & 0 deletions arch/arm64/boot/dts/amlogic/meson-gxbb-p200.dts
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,9 @@
compatible = "amlogic,p200", "amlogic,meson-gxbb";
model = "Amlogic Meson GXBB P200 Development Board";
};

&i2c_B {
status = "okay";
pinctrl-0 = <&i2c_b_pins>;
pinctrl-names = "default";
};
35 changes: 35 additions & 0 deletions arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,19 @@
device_type = "memory";
reg = <0x0 0x0 0x0 0x40000000>;
};

usb_pwr: regulator-usb-pwrs {
compatible = "regulator-fixed";

regulator-name = "USB_PWR";

regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;

/* signal name in schematic: USB_PWR_EN */
gpio = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
};

/* This UART is brought out to the DB9 connector */
Expand All @@ -72,3 +85,25 @@
pinctrl-names = "default";
};

&ir {
status = "okay";
pinctrl-0 = <&remote_input_ao_pins>;
pinctrl-names = "default";
};

&usb0_phy {
status = "okay";
phy-supply = <&usb_pwr>;
};

&usb1_phy {
status = "okay";
};

&usb0 {
status = "okay";
};

&usb1 {
status = "okay";
};
42 changes: 42 additions & 0 deletions arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,19 @@
chosen {
stdout-path = "serial0:115200n8";
};

usb_vbus: regulator-usb0-vbus {
compatible = "regulator-fixed";

regulator-name = "USB0_VBUS";

regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;

gpio = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>;
enable-active-high;
};

};

&uart_AO {
Expand All @@ -60,3 +73,32 @@
pinctrl-names = "default";

};

&ir {
status = "okay";
pinctrl-0 = <&remote_input_ao_pins>;
pinctrl-names = "default";
};

&ethmac {
status = "okay";
pinctrl-0 = <&eth_pins>;
pinctrl-names = "default";
};

&usb0_phy {
status = "okay";
phy-supply = <&usb_vbus>;
};

&usb1_phy {
status = "okay";
};

&usb0 {
status = "okay";
};

&usb1 {
status = "okay";
};
Loading

0 comments on commit e1e4a1a

Please sign in to comment.