Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp747875ybf; Fri, 28 Feb 2020 06:57:53 -0800 (PST) X-Google-Smtp-Source: APXvYqwr+gCrnE7XCdxMdVub205nVie5rHi5jeCjSQVgFG2MfDEQf7VFm0H37zLmaD/nJjDR1fp0 X-Received: by 2002:aca:b70a:: with SMTP id h10mr3691357oif.20.1582901873464; Fri, 28 Feb 2020 06:57:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582901873; cv=none; d=google.com; s=arc-20160816; b=ldPRS02ImkZv542ZUlQjIZUX9UJ3mqNKRtjzJMDayk9hEAHWt+ND+a/h+4/YtkRAaF oNDEQpI8o7wwVNxjjwke5KPrTe34vwAVp/i56IuqOL0HTl+q9FFBcZ0fBd7ncnToTp0w QUji5pRt1MdnoTBBWvk1BxhckonOopA/QNsskY3jWJ9i6YfOz1+p4PBWpPiad3/HEVom LSomkDnaZEUlNIN+BtueX2u4sdEE9poU9VfHfiQD3pbemgGPlyZxbES43Yxxm1mkhOMi Yo9i/DMSKGkgnGnrcrAEAfomI3uSYnQY7VmutClMzK/hRqjgCwKoj+dkWjp3E9LW/S6R 40hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:date:message-id :from:references:cc:to:subject; bh=KX+l3tv8JgBO95cy3I16IwAY4xK5sW6H34h+TLDmLzg=; b=XcgT0FcuoD02BE0q3vkid0kaHlL0OKHy8gDF/yxxpVPl4Q8ENOUm2Dqw6LtcsRarZC TA8nWDlz+tT1T5DNwxIMdK5NPBh+NMzg8NoAdVX4g3RI9X2SM6edhP7vSQqF5DHMfk1A UqfcZNWvLFKI0Gq7fULudabuVfkaxoFF+AJfz1VFZa0BOB6pAfKmHBq/hDGIZZSWTekP YF3/3Teu9kMZk0quMsZAwrcoHKyo5cHJCFO/NuQ0piFAWwV77i3i7o+617MZvv3lghHu 50zgaxVYzdsaJLwvY0+RC2+C24CPPggUvl4EcV2o7ve8cWBTQWdLqHnyByidm/zs0V1+ enCg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o20si1700036otl.60.2020.02.28.06.57.41; Fri, 28 Feb 2020 06:57:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726918AbgB1O4d (ORCPT + 99 others); Fri, 28 Feb 2020 09:56:33 -0500 Received: from mail.manjaro.org ([176.9.38.148]:47146 "EHLO mail.manjaro.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726562AbgB1O4d (ORCPT ); Fri, 28 Feb 2020 09:56:33 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.manjaro.org (Postfix) with ESMTP id D085F3941E12; Fri, 28 Feb 2020 15:56:31 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at manjaro.org Received: from mail.manjaro.org ([127.0.0.1]) by localhost (manjaro.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1dWdwfYRA7sh; Fri, 28 Feb 2020 15:56:29 +0100 (CET) Subject: Re: [PATCH 2/2] arm64: dts: rockchip: Add initial support for Pinebook Pro To: =?UTF-8?Q?Heiko_St=c3=bcbner?= Cc: Rob Herring , Mark Rutland , Andy Yan , Douglas Anderson , Jagan Teki , Markus Reichl , Alexis Ballier , Matthias Kaehlcke , Nick Xie , Kever Yang , Vivek Unune , Katsuhiro Suzuki , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, anarsoul@gmail.com, enric.balletbo@collabora.com References: <20200227180630.166982-1-t.schramm@manjaro.org> <20200227180630.166982-3-t.schramm@manjaro.org> <12370413.gKdrHkWbHd@diego> From: Tobias Schramm Message-ID: <37190f26-48aa-dcad-d4b1-8a534ba1360e@manjaro.org> Date: Fri, 28 Feb 2020 15:57:10 +0100 MIME-Version: 1.0 In-Reply-To: <12370413.gKdrHkWbHd@diego> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US-large Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Heiko, thanks for the review. I'll implement the changes and send a v2. >> + compatible = "gpio-leds"; >> + pinctrl-names = "default"; >> + pinctrl-0 = <&pwrled_gpio &slpled_gpio>; >> + >> + green-led { >> + color = ; >> + default-state = "off"; >> + function = LED_FUNCTION_POWER; >> + gpios = <&gpio0 RK_PB3 GPIO_ACTIVE_HIGH>; >> + label = "green:disk-activity"; >> + linux,default-trigger = "mmc2"; > hmm, LED_FUNCTION_POWER but trigger for mmc2 ? > So if there is no activity on the LED it looks to be off? I see why this is looking weird. It does not make a whole lot of sense at the moment and I'll change that for v2.  However I have a patch in the making that adds "-inverted" variants for all triggers so the power LED can be turned of briefly to indicate mmc activity. Not sure wether people will like it or not but I'll try it as a RFC. >> + * of wakeup sources without disabling the whole key > Also can you explain the problem a bit? If there is a deficit in the input > subsystem regarding wakeup events, dt is normally not the place to work > around things [we're supposed to be OS independent] The issue is that some users wanted to be able to control the wakeup functionality of the keys separately via sysfs. That does not seem to be possible when combining both keys into one gpio-keys node. A more detailed explanation of the issue can be found at [1]. >> +&i2c0 { >> + clock-frequency = <400000>; >> + i2c-scl-rising-time-ns = <168>; >> + i2c-scl-falling-time-ns = <4>; >> + status = "okay"; >> + >> + rk808: pmic@1b { >> + compatible = "rockchip,rk808"; >> + reg = <0x1b>; >> + #clock-cells = <1>; >> + clock-output-names = "xin32k", "rk808-clkout2"; >> + interrupt-parent = <&gpio3>; >> + interrupts = <10 IRQ_TYPE_LEVEL_LOW>; >> + pinctrl-names = "default"; >> + pinctrl-0 = <&pmic_int_l_gpio>; >> + rockchip,system-power-controller; >> + wakeup-source; >> + >> + vddio-supply = <&vcc_3v0>; > where does this come from? Aka it's not specified in the dt-binding > (though the example falsely uses it) and also not referenced in the driver. This does likely come from the BSP dts. Seems I missed it while checking bindings. Thanks again for the review, Tobias [1] https://gitlab.manjaro.org/tsys/linux-pinebook-pro/issues/5