Thread (6 messages) flat view 6 messages, 2 authors, 2018-08-29
STALE2942d

[PATCH] arm64: dts: add support for SolidRun Clearfog GT 8K

From: andrew@lunn.ch (Andrew Lunn)
Date: 2018-08-29 14:11:59

On Wed, Aug 29, 2018 at 03:13:09PM +0300, Baruch Siach wrote:

Hi Baruch
+	leds {
+		compatible = "gpio-leds";
+		pinctrl-0 = <&cp0_led0_pins
+			     &cp0_led1_pins>;
+		pinctrl-names = "default";
+		led0 {
+			label = "led0";
There is a naming convention of LEDs. Documentation/leds/leds-class.txt:

    LED Device Naming
    =================

    Is currently of the form:

    "devicename:colour:function"
+		button_0 {
+			/* The rear button */
+			label = "Rear Button";
+			gpios = <&cp0_gpio2 7 GPIO_ACTIVE_LOW>;
+			linux,can-disable;
+			linux,code = <BTN_0>;
+		};
Is there any label on the PCB or case about what this button is used
for? It would be nice to have something less generic than BTN_0.
+
+		button_1 {
+			/* The wps button */
+			label = "WPS Button";
+			gpios = <&cp1_gpio1 30 GPIO_ACTIVE_LOW>;
+			linux,can-disable;
+			linux,code = <BTN_1>;
linux,code = <KEY_WPS_BUTTON>;
+	cp0_tpm_irq_pins: tpm-irq-pins {
+		marvell,pins = "mpp50";
+		marvell,function = "gpio";
+	};
I didn't realise the board had a TPM. I don't see any mention on
SolidRun's website. What TPM is it?
+&cp1_mdio {
+	pinctrl-names = "default";
+	pinctrl-0 = <&cp1_ge_mdio_pins>;
+	status = "okay";
+
+	ge_phy: ethernet-phy at 0 {
+		marvell,reg-init = <3 16 0 0x1017>;
This marvell,reg-init is rather black magic. It would be good to
document what this does.
+			port at 5 {
+				reg = <5>;
+				label = "cpu";
+				ethernet = <&cp1_eth2>;
+			};
No fixed-link? It correctly defaults to 2.5G? I've never tested that.

   Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help