Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp10248084pxu; Tue, 29 Dec 2020 19:31:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJyl1KIb7bU9xjzFcVGEfeQZEtqmPsjtiH/cUFGwxxWzAx4CDhKN641XDEzoMaWekAkhn9xt X-Received: by 2002:a50:c209:: with SMTP id n9mr48582497edf.123.1609299109626; Tue, 29 Dec 2020 19:31:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609299109; cv=none; d=google.com; s=arc-20160816; b=QPMA0WtIikmEYcOKBVawBky2VQKM5Rn21ytXC2yHI1qCe4GBS6WWxlOzmrsg5mI+iy nxfTXlqyqx+yU4seayzfPak7OWXCjZDysUFAQmgjF2xNxooIOsOsY7XtHCqRQ9aYftRJ sJLzadmGCI/G5ZeUwCYMXNt6pk9jzT0FsXE6s52F9l1tKo6621Y0vbjDuvNl9YmGqE/2 MH+rDpwjXXMR+WDnQy4uEQWazCSZ/jwCqRfSmdam1/ggXb804ov6MtVnYmJQV0ZY1k++ i1B5s49n1tS8H5SrdPLgkU6yTgoztCF17OYhlEVcE6Hw/u5DZhrhu0aKij95PLriFrWZ eqzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=stMhHTtjkwcPIyt3RJQgecVI3l1/8F2YXjdBJgXyQXU=; b=F0dLYJ7qeP7VSeJy0qPSihJoR5dR67HGoFarlF2KamfRvRqs0WBr0cFanBvpHKbMIj ZPr0T+eSxtsLTa9q1t9c59LMOV7hbfgZHBp3QQTyARv0ZqJ1oaK1dBWOqOmIflpr+p9i pjEjCqeYiEPOmFJdKpXRDtY8Y79Aw0s15TW3ZpKaH2geq5DIsV6svpeLDHc6oUF6OCKQ 46ojmK0oeJ+ct1shepBlIwOnLB+gfiULC2UR5b8kYOOIPQClKQM4urPogV710XXG9ptt zUxTJb3WmEDcATo8kSexA/tYBFwHjFWj0MJq/haW3A3VBJZj8jLodIQ5x+Gzh/urQVo/ UzRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g23si20579640ejf.416.2020.12.29.19.31.26; Tue, 29 Dec 2020 19:31:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726256AbgL3Dad convert rfc822-to-8bit (ORCPT + 99 others); Tue, 29 Dec 2020 22:30:33 -0500 Received: from mail-lf1-f43.google.com ([209.85.167.43]:34035 "EHLO mail-lf1-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726190AbgL3Dad (ORCPT ); Tue, 29 Dec 2020 22:30:33 -0500 Received: by mail-lf1-f43.google.com with SMTP id o19so35062009lfo.1; Tue, 29 Dec 2020 19:30:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=sX2LDQEGW3G5clQ2nn9TM9i6s3O9DrPEgTBFsaiQlJA=; b=q34noouhR0KtAl0CHQIqxJYlGM1ydk2y+MFGi9pumjpb612p8I2G2Synw107KJfNxH kbYqMEWbXvAaW72WK5ZFbbRI+Vyv+hHDBoE/a+zkksVeolFQypQSQnmZo3MfkBgxeJJj 9Qqj669HfrvYXQ0cQ3hYIUF31sZMfERYyFzJ8xWKcnAumOiAWEW3HptYtnTVCKD/Lh/M csSW/uW3D7D3FBgiQOmC6QWh5wl8LB7MPig6oFTSVsglQ6T1n11uvKdTc8IUewvwpLJQ AtgcgmH//5vCdthH3dHiFUewX2Ox5hFeY+eYsxyUOb6Io2pTpwYIN8MWg23GKl9Ld6Cv VXHQ== X-Gm-Message-State: AOAM530/JRBtsrGNJF7lBrxNYQ8wNQkLZaLd41MPac3So2enBZZW0h8X f5VCi8SE5J4ByLHHepNayg1DoyrXHUjw7g== X-Received: by 2002:a05:651c:2121:: with SMTP id a33mr25408307ljq.381.1609298990924; Tue, 29 Dec 2020 19:29:50 -0800 (PST) Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com. [209.85.167.54]) by smtp.gmail.com with ESMTPSA id v21sm7093276ljk.73.2020.12.29.19.29.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 29 Dec 2020 19:29:50 -0800 (PST) Received: by mail-lf1-f54.google.com with SMTP id o13so35011903lfr.3; Tue, 29 Dec 2020 19:29:50 -0800 (PST) X-Received: by 2002:a2e:8852:: with SMTP id z18mr27532558ljj.94.1609298990194; Tue, 29 Dec 2020 19:29:50 -0800 (PST) MIME-Version: 1.0 References: <20201218195033.2301127-1-contact@paulk.fr> <3035881.9zrMQt1rZd@jernej-laptop> In-Reply-To: <3035881.9zrMQt1rZd@jernej-laptop> From: Chen-Yu Tsai Date: Wed, 30 Dec 2020 11:29:39 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] ARM: dts: sun8i-v3s: Add CSI0 MCLK pin definition To: Jernej Skrabec Cc: devicetree , linux-arm-kernel , linux-kernel , Paul Kocialkowski , Maxime Ripard Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 22, 2020 at 4:17 PM Jernej Škrabec wrote: > > Hi! > > Dne petek, 18. december 2020 ob 20:50:33 CET je Paul Kocialkowski napisal(a): > > This adds a device-tree definition for the CSI0 MCLK pin, > > which can be used for feeding MIPI CSI-2 sensors. > > > > Signed-off-by: Paul Kocialkowski > > Is this used anywhere? Current policy is to add pin definitions only if any > user exists. IIRC we sort of loosened that requirement with the use of /omit-if-no-ref/. The A20 dtsi file has a whole bunch of pins defined that are not directly used but are available for users to reference, especially in overlays. The "-@" parameter for the device tree compiler, used to build overlay compatible DTBs, makes the compiler ignore /omit-if-no-ref/ and include all the nodes. ChenYu > Best regards, > Jernej > > > --- > > arch/arm/boot/dts/sun8i-v3s.dtsi | 6 ++++++ > > 1 file changed, 6 insertions(+) > > > > diff --git a/arch/arm/boot/dts/sun8i-v3s.dtsi > > b/arch/arm/boot/dts/sun8i-v3s.dtsi index a9f5795d4e57..bff822b9fa01 100644 > > --- a/arch/arm/boot/dts/sun8i-v3s.dtsi > > +++ b/arch/arm/boot/dts/sun8i-v3s.dtsi > > @@ -337,6 +337,12 @@ pio: pinctrl@1c20800 { > > interrupt-controller; > > #interrupt-cells = <3>; > > > > + /omit-if-no-ref/ > > + csi0_mclk_pin: csi0-mclk-pin { > > + pins = "PE20"; > > + function = "csi_mipi"; > > + }; > > + > > /omit-if-no-ref/ > > csi1_8bit_pins: csi1-8bit-pins { > > pins = "PE0", "PE2", "PE3", > "PE8", "PE9", > > > >