Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp1828780rwl; Mon, 26 Dec 2022 05:26:27 -0800 (PST) X-Google-Smtp-Source: AMrXdXveRU9T9Np6dDQqKXo0jBKJo7Vib3edXa2aZa6vJOWmHhVayAIsiU/oMMFsyTpAIb2u4+cu X-Received: by 2002:a05:6402:501f:b0:460:5706:d1fa with SMTP id p31-20020a056402501f00b004605706d1famr16218945eda.18.1672061186919; Mon, 26 Dec 2022 05:26:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672061186; cv=none; d=google.com; s=arc-20160816; b=gz9vMcPanUvhrVNvdIbXfBKqwsc5ZyiwcvjH8fkSB8rg+DhvfwrJLhcCqQZQXklXMB 4CccxuG4h8AasQ7Bv3xK4C4QJA99SVqxudiFoJa+Nf4ouk+hdQLfuvStGmCcRfVLCn6c 2MyFpFrpQ4aGeIyXEKKLNYE+C2zrdDlOZHt8dxbeOdHwAxejO1D0Yu0yS0mAkhG8JTl7 w55McuejV5gx8EQINCEO6K8Lx6nQVEWgXbW5jZImsdZeLOnLsLXpqeh0Ua72D/y/fYEQ oAk5kSmAhM7sxtTHSdW1PPb91coRQbeE1TVxLlc40WP+BGm99VHaVTTEMAddGdrfJyLd nBpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=5HwcZaA2sM/B/lkvzfdRvvoZ71F34zcgGLsOqes2MUk=; b=LdjGYArRH2ONf0BIHIt+MxiM/1zVxiyP51zI0LVcWNImt9wQy73sJIQTgXJFToGjnq rNE8gSu8MWt+TZJZOAj14iE1ftOJD647yBN9PkE7g3xKcMZeHmMMvg2HKFTLroH35SnF zduPrXLuFDjZ4Cy9rLO1+JZd2/3XTLVMr6FxqTiEz/oljtbTMhfCrpEGHKQvES82qH8s 9LGEn1Y0uPT+5BlDpNiSEBiiTMEfxEldp2UV16xmKoBpiN8lr0dXHxKuw6Roo8q1nmlx HFct3imVmbyDeiYyR6/Hscn9ZyhV5g8+wW6g0rHPfaQFydd1xohPSIYgwv7OgjV7JGmW 32kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JLRsAifT; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h11-20020a0564020e0b00b0046acab646ecsi8199501edh.81.2022.12.26.05.26.11; Mon, 26 Dec 2022 05:26:26 -0800 (PST) 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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JLRsAifT; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232034AbiLZNGe (ORCPT + 67 others); Mon, 26 Dec 2022 08:06:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229715AbiLZNGc (ORCPT ); Mon, 26 Dec 2022 08:06:32 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BA91243 for ; Mon, 26 Dec 2022 05:05:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1672059947; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5HwcZaA2sM/B/lkvzfdRvvoZ71F34zcgGLsOqes2MUk=; b=JLRsAifTEc5NSa5xfoN3q+vW8DS4RgZMCmWsZ2SKi0OAngK+x4nAhVYauLkQVNTDbKKmNK f/sSg+TfiRpVZCu+ta1KV/rvbXMMvF2h0cXnYvFKQy5UBuyw6pJi0XZetbuM4fiBuuOT6l lPSS/0DaEmu/J3Tz3i4fzknuASmlLAs= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-606-z7k38wfPP969VL0yPp2W_w-1; Mon, 26 Dec 2022 08:05:46 -0500 X-MC-Unique: z7k38wfPP969VL0yPp2W_w-1 Received: by mail-wr1-f72.google.com with SMTP id r10-20020adfa14a000000b0025ba73dff40so1505616wrr.12 for ; Mon, 26 Dec 2022 05:05:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5HwcZaA2sM/B/lkvzfdRvvoZ71F34zcgGLsOqes2MUk=; b=hUfLShiX09SXDOZNcxIUTn2ZIzbHKTWCShbMyCfMecZVXPz6uHt7K0DysrWpuiyPjR ayzNXi9wMu/BvchuIjFZfSyAITqQ+mUtfKXBObvM+6aBZh9/TbBhR5cccgFlyBe25nzR IbRjkl9ShqIYk5leEsBPPbxL1u5PsCAsFSlG0niC44Fy5k9QVhiRyjJ7FiOCeintRcw/ uiavRV1e3dpSVDkp542kFVpRHAeW2PTIEJqI6LLwO8bO2MFSOFT2CRd94W/nW2eAOzkt Y6tt5XfNK7eED53f5eioWp0+xll9awTg5CqJziNCqz8gFr1M+s95pKs50JQOO35NRZiT cTrw== X-Gm-Message-State: AFqh2kply5Gki6chM7o+5BDSMH4M5TMGczhERAkLGRlzdTt0iLrlVMZ6 joKlDOs4YiNFL58n2wFG7gyFnGgBnIiwFCj8TWRjpa4UF5QzqwiUOuzwfv+2dpB3dMT1MOkCc7z 7crj4bcxLG/nyO1WmVz4zps/k X-Received: by 2002:a05:600c:34d0:b0:3d6:b691:b80d with SMTP id d16-20020a05600c34d000b003d6b691b80dmr12927822wmq.21.1672059945399; Mon, 26 Dec 2022 05:05:45 -0800 (PST) X-Received: by 2002:a05:600c:34d0:b0:3d6:b691:b80d with SMTP id d16-20020a05600c34d000b003d6b691b80dmr12927789wmq.21.1672059945137; Mon, 26 Dec 2022 05:05:45 -0800 (PST) Received: from [192.168.1.130] (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id o27-20020a05600c511b00b003c6f8d30e40sm20234587wms.31.2022.12.26.05.05.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Dec 2022 05:05:44 -0800 (PST) Message-ID: Date: Mon, 26 Dec 2022 14:05:42 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH 4/4] arm64: dts: rk3399-pinephone-pro: Add internal display support Content-Language: en-US To: Maya Matuszczyk Cc: linux-kernel@vger.kernel.org, Ondrej Jirman , Robert Mader , Peter Robinson , =?UTF-8?Q?Kamil_Trzci=c5=84ski?= , Martijn Braam , Caleb Connolly , Heiko Stuebner , Krzysztof Kozlowski , Rob Herring , Tom Fitzhenry , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org References: <20221222223830.2494900-1-javierm@redhat.com> <20221222223830.2494900-5-javierm@redhat.com> From: Javier Martinez Canillas In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 Hello Maya, I'm going through this now and addressing your comments. On 12/22/22 23:57, Maya Matuszczyk wrote: [...] >> + /* MIPI DSI panel 1.8v supply */ >> + vcc1v8_lcd: vcc1v8-lcd { > Node names should be generic, for example "vcc1v8-lcd-regulator". > Fixed. >> + compatible = "regulator-fixed"; >> + enable-active-high; > Is this really needed? > You can set the polarity in "gpios" property. > I understand that it is needed. The regulator-fixing binding says: enable-active-high: description: Polarity of GPIO is Active high. If this property is missing, the default assumed is Active low. type: boolean and indeed by looking at the source in drivers/gpio/gpiolib-of.c, there is a check for this property in the of_gpio_flags_quirks() function: static void of_gpio_flags_quirks(const struct device_node *np, const char *propname, enum of_gpio_flags *flags, int index) { /* * Some GPIO fixed regulator quirks. * Note that active low is the default. */ if (IS_ENABLED(CONFIG_REGULATOR) && (of_device_is_compatible(np, "regulator-fixed") || of_device_is_compatible(np, "reg-fixed-voltage") || (!(strcmp(propname, "enable-gpio") && strcmp(propname, "enable-gpios")) && of_device_is_compatible(np, "regulator-gpio")))) { bool active_low = !of_property_read_bool(np, "enable-active-high"); /* * The regulator GPIO handles are specified such that the * presence or absence of "enable-active-high" solely controls * the polarity of the GPIO line. Any phandle flags must * be actively ignored. */ if ((*flags & OF_GPIO_ACTIVE_LOW) && !active_low) { pr_warn("%s GPIO handle specifies active low - ignored\n", of_node_full_name(np)); *flags &= ~OF_GPIO_ACTIVE_LOW; } if (active_low) *flags |= OF_GPIO_ACTIVE_LOW; } ... } So I'll keep those. >> + regulator-name = "vcc1v8_lcd"; >> + regulator-min-microvolt = <1800000>; >> + regulator-max-microvolt = <1800000>; >> + vin-supply = <&vcc3v3_sys>; >> + gpio = <&gpio3 RK_PA5 GPIO_ACTIVE_HIGH>; > Is this a typo? Documentation says "gpios" > Documentation/devicetree/bindings/gpio/gpio.txt indeed says "gpios" but "gpio" is also supported for older DT that are using bindings that got it wrong. See commits e7ae65ced7dd ("gpio: mention in DT binding doc that -gpio is deprecated") and dd34c37aa3e8 ("gpio: of: Allow -gpio suffix for property names"). The regulator-fixed bindings is such an example. See that its bindings schema Documentation/devicetree/bindings/regulator/regulator.yaml mentions "gpio" and not "gpios", also in the example. So until that is fixed, I would prefer to stick with that's documented in the regulator-fixed bindings doc. [...] >> + touchscreen@14 { >> + compatible = "goodix,gt917s"; >> + reg = <0x14>; >> + interrupt-parent = <&gpio3>; >> + interrupts = ; >> + irq-gpios = <&gpio3 RK_PB5 GPIO_ACTIVE_HIGH>; >> + reset-gpios = <&gpio3 RK_PB4 GPIO_ACTIVE_HIGH>; >> + AVDD28-supply = <&vcc3v0_touch>; >> + VDDIO-supply = <&vcc3v0_touch>; >> + touchscreen-size-x = <720>; >> + touchscreen-size-y = <1440>; >> + poweroff-in-suspend; > Are you really sure this property exists in touchscreen driver's dt bindings? > It's not indeed. I've dropped that now. [...] >> + vcc-supply = <&vcc2v8_lcd>; // 2v8 > What is the purpose of that comment? > >> + iovcc-supply = <&vcc1v8_lcd>; // 1v8 Yeah, not that useful. I've removed those two now. -- Best regards, Javier Martinez Canillas Core Platforms Red Hat