Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp616095pxk; Thu, 3 Sep 2020 08:19:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKtfSuXdfanZJ9h7ypkN8T/ac6MjI8oPllNXnVKHUqLrM0CPV71xPSNTKSmeBNoQ+/fZLM X-Received: by 2002:a50:ff06:: with SMTP id a6mr3483163edu.87.1599146346817; Thu, 03 Sep 2020 08:19:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599146346; cv=none; d=google.com; s=arc-20160816; b=ZIoZJ+iYsIAXfJfcc6vb+yizEC6dpPG9B4Hc4KnIbpRK1QaYqnxbk5TI3hR0v6MWKa xmi0aWpK2+yJYGljV5WgKhk37mwLiSKoXe6OMuRKwc1guKge1lraX0aXynR0oVA52g65 YRGRxm72cMGoBhfCcjfTUIDeUhvtQdCqBNL5JyxaR4aGLhtAmlJpmB3l6JJg5UnCxAKW iZFHIOCB71Wd7BZ6jDrUmlPLKO7ExI/AYxbq5D/lPD6zYBVuNKQnEXkfJvcN1wAYgPeb h1ykzO8uDzOAmjq+PcHoljxrZX/ktdwVz8Vqczo9PfIWJBYCWKZgSMrKRhPel7iiHMC5 Tjtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=roevJORXSjYnZMj87IGrGaz2TfseF1Zl8M5a5xqUAlw=; b=qU1Tlo/vokgeMxnVVDUEzej3Xp69KkwTyRG7BHn7V6lx6JwGhVmOLqWMfGpNNTzh0w m8F+u4N6JpJPVGIdGvks00LSERb6D3qq2S20UFsDiILZEnca2aBqt+zNFhfOyZWlf+7t EOp/6ZqJtPlsoabTYMqMrU9kJvvyjzS6TZPoRezqXtwV6/RKGbnpJtqr2xh1CvH6JEAA zVXDjqF6TBPwqp1uon18Wzyhuy8xf5s9EThAIup801VdZvww2YrwYldiWgKdx8dWQgMb Lbp0MdPzAWY1U3wZwqIUtaFMcSqabWtrZ4tPAVPFl/fQcyevCp9CyJLEnfGS7E6PNgKG ZL7w== 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 n5si2219516ejc.171.2020.09.03.08.18.43; Thu, 03 Sep 2020 08:19:06 -0700 (PDT) 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 S1727077AbgICLc7 convert rfc822-to-8bit (ORCPT + 99 others); Thu, 3 Sep 2020 07:32:59 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:35416 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728480AbgICL34 (ORCPT ); Thu, 3 Sep 2020 07:29:56 -0400 Received: by mail-ot1-f68.google.com with SMTP id i4so2384106ota.2; Thu, 03 Sep 2020 04:29:55 -0700 (PDT) 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=wtryLyCP/92BUYkFWZmJhsJCVcQxjl0iR9C8GWL/It8=; b=uAvLTw7YyFkrpWozAnFJu3DySggPIhtiTRYcLiPAxNYYmohgUimeDgTm2DSPqTQbUt o4XTArVbiKALxi295LCXR7nVSa/3LWg/tsgET+/2Vi7tBRtTss3RajVSaDnFEeYeYbzb pN3SedK9Q2u5/5mkJrfwdus8DYhNhwjFUw89I47uGtnHFNrB8DXftn3X4R5+Yn95nq8S yFMum5sk/PzMbRmpu3n90g1eke5qHFtcaiUZU1Qx484lqweUHzjAuATm1tq0HKITonDJ fMXGhUwg011jHouEMvh0wHjytpoXYsKNKWkKxZfdw7o6mrN8DqQQ2/BZD1gx6gBV6wUT cZrQ== X-Gm-Message-State: AOAM533xkP2pZdyqtNZvR7Jv1401vPiB2J6Kb+OZ8Qy9RH+hQ1kW9UJZ XeTECuGy7LfND8PSBghXy2xp52LQMFJvfPwWV3Q= X-Received: by 2002:a9d:1b62:: with SMTP id l89mr1203878otl.145.1599132594627; Thu, 03 Sep 2020 04:29:54 -0700 (PDT) MIME-Version: 1.0 References: <20200825162718.5838-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20200825162718.5838-2-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: From: Geert Uytterhoeven Date: Thu, 3 Sep 2020 13:29:43 +0200 Message-ID: Subject: Re: [PATCH 1/4] ARM: dts: r8a7742-iwg21d-q7: Enable PCIe Controller To: "Lad, Prabhakar" Cc: Lad Prabhakar , Magnus Damm , Rob Herring , Linux-Renesas , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Prabhakar, On Thu, Sep 3, 2020 at 1:18 PM Lad, Prabhakar wrote: > On Thu, Sep 3, 2020 at 11:18 AM Geert Uytterhoeven wrote: > > On Tue, Aug 25, 2020 at 6:28 PM Lad Prabhakar > > wrote: > > > Enable PCIe Controller and set PCIe bus clock frequency. > > > > > > Signed-off-by: Lad Prabhakar > > > Reviewed-by: Chris Paterson > > > > Reviewed-by: Geert Uytterhoeven > > i.e. will queue in renesas-devel for v5.10. > > > > One thing to double-check below. > > > > > --- a/arch/arm/boot/dts/r8a7742-iwg21d-q7.dts > > > +++ b/arch/arm/boot/dts/r8a7742-iwg21d-q7.dts > > > @@ -238,6 +238,18 @@ > > > /* status = "okay"; */ > > > }; > > > > > > +&pcie_bus_clk { > > > + clock-frequency = <100000000>; > > > +}; > > > + > > > +&pciec { > > > + /* SW2[6] determines which connector is activated > > > + * ON = PCIe X4 (connector-J7) > > > + * OFF = mini-PCIe (connector-J26) > > > > The table on page 14 says it's the other way around. > > > > According to the CBTL02042ABQ datasheet, PCIe_SEL = low > > selects the first channel (PCIe x4), while PCIe_SEL = high selects the > > second channel (mini-PCIe). > > Enabling the switch ties the signal low, so the table must be wrong. > > > Referring to [1] page 3: > > SEL = LOW: A↔B > SEL = HIGH: A↔C > > And as per the schematic iW-PREJD-CS-01-R2.0-REL1.5.pdf channel B is > J7 (PCIe X 4) and channel C is J26 (mini PCIe slot). > > Enabling the switch SW2[6] (ON) ties SEL to LOW -> channel B is J7 (PCIe X 4) > Disabling the switch SW2[6] (OFF) ties SEL to HIGH -> channel C is J26 > (mini PCIe) > > Also iW-PREJD-CS-01-R2.0-REL1.5.pdf page 14 (General purpose table DIP > Switch) mentions the above. Oh right, I looked at the old document, and they fixed it in the newer one. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds