Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 4.4 phycore #18

Closed
wants to merge 29 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
24006cd
Revert "FROMLIST: ARM: dts: rockchip: Add support for phyCORE-RK3288 …
wdmegrv May 19, 2017
8e36c7f
Revert "FROMLIST: ARM: dts: rockchip: Add support for PCM-947 carrier…
wdmegrv May 19, 2017
8f085bc
UPSTREAM: ARM: dts: rockchip: Add support for phyCORE-RK3288 SoM
wdmegrv Apr 3, 2017
2c3ae87
UPSTREAM: ARM: dts: rockchip: Add support for PCM-947 carrier board
wdmegrv Apr 6, 2017
9470730
UPSTREAM: leds: pca9532: Add device tree support
reid-p Jun 14, 2016
9906a70
UPSTREAM: net: stmmac: dwmac-rk: Add handling for RGMII_ID/RXID/TXID
wdmegrv Mar 29, 2017
514d1ca
UPSTREAM: PHY: DP83867: Remove looking in parent device for OF proper…
lunn Dec 7, 2015
780ee24
UPSTREAM: phy: phy_{read|write}_mmd_indirect: get addr from phydev
lunn Jan 6, 2016
920e10a
UPSTREAM: net: phy: dp83867: Fix initialization of PHYCR register
Jul 1, 2016
ddc8d66
UPSTREAM: net: phy: dp83867: add support for MAC impedance configuration
mugunthanvnm Oct 18, 2016
9f17760
UPSTREAM: net: phy: dp83867: fix irq generation
grygoriyS Jan 5, 2017
b9b4e77
UPSTREAM: net: phy: dp83867: Add lane swapping support in the DP83867…
Feb 7, 2017
66e9ced
UPSTREAM: net: phy: dp83867: Recover from "port mirroring" N/A MODE4
Feb 7, 2017
da86fab
net: phy: dp83867: Add binding for the CLK_OUT pin muxing option
wdmegrv Apr 4, 2017
d75d872
UPSTREAM: net: phy: dp83867: Add documentation for optional impedance…
mugunthanvnm Oct 18, 2016
bc579ae
BACKPORT: net: phy: dp83867: allow RGMII_TXID/RGMII_RXID interface types
Jan 13, 2017
5c389cf
net: phy: dp83867: Add documentation for CLK_OUT pin muxing
wdmegrv Apr 4, 2017
9d030b1
net: phy: dp83867: Disable FORCE_LINK_GOOD in PHYCTRL
wdmegrv Mar 20, 2017
d7e7788
ARM: dts: phycore-rk3288: Add clock-output-names to rk818 node
wdmegrv May 19, 2017
0c90398
UPSTREAM: stmmac: create of compatible mdio bus for stmmac driver
reid-p Dec 14, 2015
3517376
UPSTREAM: net: stmmac: Don't search for phys if mdio node is defined.
reid-p Mar 15, 2016
0ecb62f
UPSTREAM: stmmac: Fix 'eth0: No PHY found' regression
Feb 29, 2016
92eabd4
BACKPORT: stmmac: fix MDIO settings
Apr 1, 2016
91d8fba
net: phy: dp83867: Check if the phy is in an internal testing mode
wdmegrv Mar 23, 2017
0070e18
ARM: dts: phycore-rk3288: Adjust DT for rockchip kernel
wdmegrv May 22, 2017
698a70c
ARM: dts: phycore-rk3288: Add clk-output-sel for DP83867 PHY
wdmegrv May 22, 2017
bd814cc
CHROMIUM: HACK: rk3288: disable SPI DMA
computersforpeace Apr 20, 2016
c5bcc9d
drivers/rtc/rtc-m41t80.c: disable clkout by default
jremmet Feb 21, 2017
d48f01d
configs: Add rk3288_phytec_defconfig
wdmegrv May 19, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions Documentation/devicetree/bindings/leds/leds-pca9532.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
*NXP - pca9532 PWM LED Driver

The PCA9532 family is SMBus I/O expander optimized for dimming LEDs.
The PWM support 256 steps.

Required properties:
- compatible:
"nxp,pca9530"
"nxp,pca9531"
"nxp,pca9532"
"nxp,pca9533"
- reg - I2C slave address

Each led is represented as a sub-node of the nxp,pca9530.

Optional sub-node properties:
- label: see Documentation/devicetree/bindings/leds/common.txt
- type: Output configuration, see dt-bindings/leds/leds-pca9532.h (default NONE)
- linux,default-trigger: see Documentation/devicetree/bindings/leds/common.txt

Example:
#include <dt-bindings/leds/leds-pca9532.h>

leds: pca9530@60 {
compatible = "nxp,pca9530";
reg = <0x60>;

red-power {
label = "pca:red:power";
type = <PCA9532_TYPE_LED>;
};
green-power {
label = "pca:green:power";
type = <PCA9532_TYPE_LED>;
};
};

For more product information please see the link below:
http://nxp.com/documents/data_sheet/PCA9532.pdf
8 changes: 8 additions & 0 deletions Documentation/devicetree/bindings/net/stmmac.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ Optional properties:
- snps,burst_len: The AXI burst lenth value of the AXI BUS MODE register.
- tx-fifo-depth: See ethernet.txt file in the same directory
- rx-fifo-depth: See ethernet.txt file in the same directory
- mdio: with compatible = "snps,dwmac-mdio", create and register mdio bus.

Examples:

Expand All @@ -65,4 +66,11 @@ Examples:
tx-fifo-depth = <16384>;
clocks = <&clock>;
clock-names = "stmmaceth";
mdio0 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "snps,dwmac-mdio";
phy1: ethernet-phy@0 {
};
};
};
22 changes: 19 additions & 3 deletions Documentation/devicetree/bindings/net/ti,dp83867.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,29 @@

Required properties:
- reg - The ID number for the phy, usually a small integer
- ti,rx-internal-delay - RGMII Recieve Clock Delay - see dt-bindings/net/ti-dp83867.h
for applicable values
- ti,rx-internal-delay - RGMII Receive Clock Delay - see dt-bindings/net/ti-dp83867.h
for applicable values. Required only if interface type is
PHY_INTERFACE_MODE_RGMII_ID or PHY_INTERFACE_MODE_RGMII_RXID
- ti,tx-internal-delay - RGMII Transmit Clock Delay - see dt-bindings/net/ti-dp83867.h
for applicable values
for applicable values. Required only if interface type is
PHY_INTERFACE_MODE_RGMII_ID or PHY_INTERFACE_MODE_RGMII_TXID
- ti,fifo-depth - Transmitt FIFO depth- see dt-bindings/net/ti-dp83867.h
for applicable values

Optional property:
- ti,min-output-impedance - MAC Interface Impedance control to set
the programmable output impedance to
minimum value (35 ohms).
- ti,max-output-impedance - MAC Interface Impedance control to set
the programmable output impedance to
maximum value (70 ohms).
- ti,clk-output-sel - Muxing option for CLK_OUT pin - see dt-bindings/net/ti-dp83867.h
for applicable values.

Note: ti,min-output-impedance and ti,max-output-impedance are mutually
exclusive. When both properties are present ti,max-output-impedance
takes precedence.

Default child nodes are standard Ethernet PHY device
nodes as described in Documentation/devicetree/bindings/net/phy.txt

Expand Down
43 changes: 41 additions & 2 deletions arch/arm/boot/dts/rk3288-phycore-rdk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
/dts-v1/;

#include <dt-bindings/input/input.h>
#include <dt-bindings/leds/leds-pca9532.h>
#include "rk3288-phycore-som.dtsi"

/ {
Expand Down Expand Up @@ -119,7 +120,7 @@
&i2c1 {
status = "okay";

stmpe@44 {
touchscreen@44 {
compatible = "st,stmpe811";
reg = <0x44>;
};
Expand Down Expand Up @@ -149,6 +150,44 @@
};
};

&i2c4 {
status = "okay";

/* PCA9533 - 4-bit LED dimmer */
leddim: leddimmer@62 {
compatible = "nxp,pca9533";
reg = <0x62>;

led1 {
label = "red:user1";
linux,default-trigger = "none";
type = <PCA9532_TYPE_LED>;
};

led2 {
label = "green:user2";
linux,default-trigger = "none";
type = <PCA9532_TYPE_LED>;
};

led3 {
label = "blue:user3";
linux,default-trigger = "none";
type = <PCA9532_TYPE_LED>;
};

led4 {
label = "red:user4";
linux,default-trigger = "none";
type = <PCA9532_TYPE_LED>;
};
};
};

&i2c5 {
status = "okay";
};

&pinctrl {
pcfg_pull_up_drv_12ma: pcfg-pull-up-drv-12ma {
bias-pull-up;
Expand Down Expand Up @@ -224,10 +263,10 @@
cap-sd-highspeed;
card-detect-delay = <200>;
disable-wp;
supports-sd;
num-slots = <1>;
pinctrl-names = "default";
pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
supports-sd;
vmmc-supply = <&vdd_io_sd>;
vqmmc-supply = <&vdd_io_sd>;
status = "okay";
Expand Down
59 changes: 38 additions & 21 deletions arch/arm/boot/dts/rk3288-phycore-som.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -83,23 +83,6 @@
};
};

sound {
compatible = "simple-audio-card";
simple-audio-card,format = "i2s";
simple-audio-card,name = "rockchip,phytec-codec";
simple-audio-card,mclk-fs = <512>;

simple-audio-card,dai-link@0 {
format = "i2s";
cpu {
sound-dai = <&i2s>;
};
codec {
sound-dai = <&hdmi>;
};
};
};

vdd_emmc_io: vdd-emmc-io {
compatible = "regulator-fixed";
regulator-name = "vdd_emmc_io";
Expand Down Expand Up @@ -129,6 +112,22 @@

&cpu0 {
cpu0-supply = <&vdd_cpu>;
operating-points = <
/* KHz uV */
1800000 1400000
1608000 1350000
1512000 1300000
1416000 1200000
1200000 1100000
1008000 1050000
816000 1000000
696000 950000
600000 900000
408000 900000
312000 900000
216000 900000
126000 900000
>;
};

&emmc {
Expand All @@ -150,13 +149,32 @@
clock_in_out = "input";
pinctrl-names = "default";
pinctrl-0 = <&rgmii_pins &phy_rst &phy_int>;
phy-handle = <&phy0>;
phy-supply = <&vdd_eth_2v5>;
phy-mode = "rgmii";
phy-mode = "rgmii-id";
snps,reset-active-low;
snps,reset-delays-us = <0 10000 1000000>;
snps,reset-gpio = <&gpio4 8 GPIO_ACTIVE_HIGH>;
tx_delay = <0x30>;
rx_delay = <0x10>;
tx_delay = <0x0>;
rx_delay = <0x0>;

mdio0 {
compatible = "snps,dwmac-mdio";
#address-cells = <1>;
#size-cells = <0>;

phy0: ethernet-phy@0 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0>;
interrupt-parent = <&gpio4>;
interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
enet-phy-lane-no-swap;
ti,clk-output-sel = <DP83867_CLK_O_SEL_CHN_A_TCLK>;
};
};
};

&gpu {
Expand Down Expand Up @@ -195,7 +213,6 @@
rk818: pmic@1c {
compatible = "rockchip,rk818";
reg = <0x1c>;

clock-output-names = "xin32k";
interrupt-parent = <&gpio0>;
interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
Expand Down
15 changes: 9 additions & 6 deletions arch/arm/boot/dts/rk3288.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,9 @@
compatible = "rockchip,rk3288-spi", "rockchip,rk3066-spi";
clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
clock-names = "spiclk", "apb_pclk";
dmas = <&dmac_peri 11>, <&dmac_peri 12>;
dma-names = "tx", "rx";
// TODO: rockchip-spi is broken with DMA: http://crbug.com/605253
//dmas = <&dmac_peri 11>, <&dmac_peri 12>;
//dma-names = "tx", "rx";
interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0>;
Expand All @@ -361,8 +362,9 @@
compatible = "rockchip,rk3288-spi", "rockchip,rk3066-spi";
clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>;
clock-names = "spiclk", "apb_pclk";
dmas = <&dmac_peri 13>, <&dmac_peri 14>;
dma-names = "tx", "rx";
// TODO: rockchip-spi is broken with DMA: http://crbug.com/605253
//dmas = <&dmac_peri 13>, <&dmac_peri 14>;
//dma-names = "tx", "rx";
interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx &spi1_cs0>;
Expand All @@ -376,8 +378,9 @@
compatible = "rockchip,rk3288-spi", "rockchip,rk3066-spi";
clocks = <&cru SCLK_SPI2>, <&cru PCLK_SPI2>;
clock-names = "spiclk", "apb_pclk";
dmas = <&dmac_peri 15>, <&dmac_peri 16>;
dma-names = "tx", "rx";
// TODO: rockchip-spi is broken with DMA: http://crbug.com/605253
//dmas = <&dmac_peri 15>, <&dmac_peri 16>;
//dma-names = "tx", "rx";
interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&spi2_clk &spi2_tx &spi2_rx &spi2_cs0>;
Expand Down
Loading