Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp531500iog; Wed, 15 Jun 2022 07:14:51 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sF/wY2GECESYAePZ1nx9zhYUEJlXbbrtkOCiQC7wj2WsbRqDmZoy2L9hjdT8wiI9hp5iBr X-Received: by 2002:a65:6bd3:0:b0:3fd:63c3:a84b with SMTP id e19-20020a656bd3000000b003fd63c3a84bmr30180pgw.572.1655302491467; Wed, 15 Jun 2022 07:14:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655302491; cv=none; d=google.com; s=arc-20160816; b=pCBICb3BzUEdAUsHOJykiMb8/928xEgVAivN0nW9pZSclUmBCUB/Xb+AnBNGLfJM/i nN84zLM9h10DaaJwaMQXx8oDsK8zR7ar6gbQ6d8Aw/RU9kzln0XJSzOo8XbutWXhOglf iY9yG1t+alPfbLjz+qFG7DbSc6QiSDRBOtbj/o369z96gHZqaJqjXxplSS6MBtVd9KbF XXuusiJhre1ErvFBk/a0UcIkTkk2OhKq2qeJlb/2gHkOTiVvUPQqw8pDouANrd+VuK0Y ANvZkCJ0hvyU6hS3oZggzZQmo+Kd+sbhHaGFLi+YqhRjpeNX14kL6UD83rKv/VE3fslz fQKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=OG1+gMbEgPqwcL66uU19wOR93KW6tmBRKlTXVRyLRwI=; b=hByH189QhiXD3IN8OW3d85zIdPajuxmB+AkFWT/jCo5AeSoCVXKAcqnUdebHkje2uE OiX7DYoig6t80brBi07veRFmnj4CJITdw/mYNuS/hd+nbdEiABzRmyqNG9etA1mBH/Xo x+nDstY1sqHNtjXrG/TbwqS1EQPW8RmeSKjs8N0Lj9e9/kGGioOXb4nxGHyCZeJnWaD2 1LGmOCS1BwmTECuNPT8fj4OqMYXczivFH5xvaYvb8dEJIyXbn6LQDV6ulmWihZGEwlQ1 0n6gFf2S0zyuanmXYCoAg2injmmULYW1hsNJysPgTReWVPsQyIYI5BgENZOUjjpkswmZ zdKg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b13-20020a170902e94d00b00153b2d16545si16968713pll.333.2022.06.15.07.14.37; Wed, 15 Jun 2022 07:14:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347576AbiFON3E (ORCPT + 99 others); Wed, 15 Jun 2022 09:29:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348446AbiFON2d (ORCPT ); Wed, 15 Jun 2022 09:28:33 -0400 Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 308952F02D; Wed, 15 Jun 2022 06:28:32 -0700 (PDT) Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id F25FC1C0BC8; Wed, 15 Jun 2022 15:28:30 +0200 (CEST) Date: Wed, 15 Jun 2022 15:28:27 +0200 From: Pavel Machek To: Tom Fitzhenry Cc: Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Samuel Holland , Ondrej Jirman , Martijn Braam , Ondrej Jirman Subject: Re: [PATCH 2/2] arm64: dts: rockchip: Add initial support for Pine64 PinePhone Pro Message-ID: <20220615132827.GB1429@bug> References: <20220529031705.278631-1-tom@tom-fitzhenry.me.uk> <20220529031705.278631-3-tom@tom-fitzhenry.me.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220529031705.278631-3-tom@tom-fitzhenry.me.uk> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! > + // Per "RK 3399 SARADC", page 8. > + adc-keys { > + compatible = "adc-keys"; > + io-channels = <&saradc 1>; > + io-channel-names = "buttons"; > + keyup-threshold-microvolt = <1600000>; > + poll-interval = <100>; > + > + button-up { > + label = "Volume Up"; > + linux,code = ; > + press-threshold-microvolt = <100000>; > + }; > + > + button-down { > + label = "Volume Down"; > + linux,code = ; > + press-threshold-microvolt = <300000>; > + }; > + }; Wow. Quite a hack... > + // Per "RK3399 GPIO", page 11. > + leds { > + compatible = "gpio-leds"; > + pinctrl-names = "default"; > + pinctrl-0 = <&red_led_pin &green_led_pin &blue_led_pin>; > + led-standby { + color = ; + default-state = "off"; + function = I wish LED was connected to PWM, not to simple GPIO... Plus, it is really one RGB LED, right? It should be handled as such. Best regards, Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html