Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,19 @@ description:
pipeline. It takes pixel data from a DECON and drives up to four data
lanes through a combined D-PHY/C-PHY, in video or command mode, with
DSC slice packing and TE-based command scheduling. Panels are described
as child nodes.
as child nodes. The Tensor G4 (zumapro) has the same DSIM, at the same
register layout.

allOf:
- $ref: /schemas/display/dsi-controller.yaml#

properties:
compatible:
const: google,gs201-dsim
oneOf:
- const: google,gs201-dsim
- items:
- const: google,zumapro-dsim
- const: google,gs201-dsim

reg:
minItems: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ properties:
- pci14e4,4433 # BCM4387
- pci14e4,4434 # BCM4388
- pci14e4,4441 # BCM4389
- pci14e4,4449 # BCM4383
- pci14e4,449d # BCM43752

reg:
Expand Down Expand Up @@ -125,6 +126,11 @@ properties:
NVRAM. This would normally be filled in by the bootloader from platform
configuration data.

memory-region:
maxItems: 1
description: A restricted-dma-pool region that all DMA of a PCIe device
bounces through, for platforms that limit the device's DMA to it.

clocks:
items:
- description: External Low Power Clock input (32.768KHz)
Expand Down
200 changes: 200 additions & 0 deletions Documentation/devicetree/bindings/pci/google,zumapro-pcie.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,200 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/pci/google,zumapro-pcie.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Google zumapro (Tensor G4) PCIe host controller

maintainers:
- W4HO <87742609+W4HO-ham@users.noreply.github.com>

description:
The second PCIe channel (channel 1) of the Google zumapro (Tensor G4) SoC,
one lane in the HSI2 block, is a Synopsys DesignWare core in a Samsung
wrapper. The wrapper adds an external local bus interface (ELBI) with link
training control and status, a sub-system control block, the PHY's debug
(UDBG), PMA and PCS register blocks, and an I/A sequencer. The PHY sits
behind an isolation switch in the PMU, which has to be opened before any
of these registers is accessed. MSIs are received by the
DesignWare core's own MSI controller and signalled on five interrupt
lines, one per group of 32 vectors.

allOf:
- $ref: /schemas/pci/pci-host-bridge.yaml#

properties:
compatible:
const: google,zumapro-pcie

reg:
items:
- description: External local bus interface (ELBI) registers
- description: Sub-system control registers
- description: PHY debug (UDBG) registers
- description: PHY PMA registers
- description: PHY PCS registers
- description: I/A sequencer registers
- description: Data Bus Interface (DBI) registers, with the unrolled
iATU at offset 0x300000
- description: PCIe configuration space region

reg-names:
items:
- const: elbi
- const: soc
- const: udbg
- const: phy
- const: pcs
- const: ia
- const: dbi
- const: config

interrupts:
items:
- description: Controller interrupt
- description: MSI vectors 0 to 31
- description: MSI vectors 32 to 63
- description: MSI vectors 64 to 95
- description: MSI vectors 96 to 127
- description: MSI vectors 128 to 159

interrupt-names:
items:
- const: ctrl
- const: msi0
- const: msi1
- const: msi2
- const: msi3
- const: msi4

clocks:
items:
- description: Controller APB clock
- description: DBI AXI clock
- description: AXI slave clock
- description: AXI master clock
- description: PHY UDBG APB clock
- description: PHY PAL APB clock
- description: PHY reference clock
- description: PHY bridge APB clock
- description: PHY test APB clock
- description: I/A sequencer clock
- description: I/A SSMT AXI clock
- description: I/A SSMT APB clock
- description: System MMU clock
- description: PMMU clock

clock-names:
items:
- const: ctl-apb
- const: dbi-aclk
- const: slv-aclk
- const: mstr-aclk
- const: phy-udbg-apb
- const: phy-pal-apb
- const: phy-ref
- const: phy-bridge-apb
- const: phy-test-apb
- const: ia-clk
- const: ssmt-ia-aclk
- const: ssmt-ia-pclk
- const: sysmmu-clk
- const: pmmu-clk

reset-gpios:
description: PERST# of the endpoint.
maxItems: 1

samsung,pmu-syscon:
$ref: /schemas/types.yaml#/definitions/phandle-array
items:
- items:
- description: phandle of the PMU system controller
- description: offset of the PCIe PHY control register
description:
The PMU register that isolates the PCIe PHY. Bit 0 opens the isolation,
bit 10 is set once the PHY is configured.

num-lanes:
const: 1

required:
- compatible
- reg
- reg-names
- interrupts
- interrupt-names
- clocks
- clock-names
- reset-gpios
- samsung,pmu-syscon

unevaluatedProperties: false

examples:
- |
#include <dt-bindings/clock/google,zumapro.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

soc {
#address-cells = <2>;
#size-cells = <1>;

pcie@13120000 {
compatible = "google,zumapro-pcie";
reg = <0x0 0x13120000 0x2000>, <0x0 0x13130000 0x5000>,
<0x0 0x13150000 0xd000>, <0x0 0x13160000 0x3000>,
<0x0 0x13140000 0x5000>, <0x0 0x13100000 0x1000>,
<0x0 0x13400000 0x381000>, <0x0 0x60ffe000 0x2000>;
reg-names = "elbi", "soc", "udbg", "phy", "pcs", "ia", "dbi",
"config";
#address-cells = <3>;
#size-cells = <2>;
device_type = "pci";
ranges = <0x82000000 0x0 0x60000000 0x0 0x60000000 0x0 0xff0000>;
bus-range = <0x00 0xff>;
interrupts = <GIC_SPI 439 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 441 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 442 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 443 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 444 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 445 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "ctrl", "msi0", "msi1", "msi2", "msi3", "msi4";
clocks = <&cmu_hsi2 CLK_GOUT_PCIE1_CTL_APB>,
<&cmu_hsi2 CLK_GOUT_PCIE1_DBI_ACLK>,
<&cmu_hsi2 CLK_GOUT_PCIE1_SLV_ACLK>,
<&cmu_hsi2 CLK_GOUT_PCIE1_MSTR_ACLK>,
<&cmu_hsi2 CLK_GOUT_PCIE1_PHY_UDBG_APB>,
<&cmu_hsi2 CLK_GOUT_PCIE1_PHY_PAL_APB>,
<&cmu_hsi2 CLK_GOUT_PCIE1_PHY_REF>,
<&cmu_hsi2 CLK_GOUT_PCIE1_PHY_BRIDGE_APB>,
<&cmu_hsi2 CLK_GOUT_PCIE1_PHY_TEST_APB>,
<&cmu_hsi2 CLK_GOUT_PCIE1_IA_CLK>,
<&cmu_hsi2 CLK_GOUT_PCIE1_SSMT_IA_ACLK>,
<&cmu_hsi2 CLK_GOUT_PCIE1_SSMT_IA_PCLK>,
<&cmu_hsi2 CLK_GOUT_PCIE1_SYSMMU_CLK>,
<&cmu_hsi2 CLK_GOUT_PCIE1_PMMU_CLK>;
clock-names = "ctl-apb", "dbi-aclk", "slv-aclk", "mstr-aclk",
"phy-udbg-apb", "phy-pal-apb", "phy-ref",
"phy-bridge-apb", "phy-test-apb", "ia-clk",
"ssmt-ia-aclk", "ssmt-ia-pclk", "sysmmu-clk",
"pmmu-clk";
reset-gpios = <&gph3 0 GPIO_ACTIVE_LOW>;
samsung,pmu-syscon = <&pmu_system_controller 0x3ec8>;
num-lanes = <1>;
max-link-speed = <2>;

pcie@0,0 {
compatible = "pciclass,0604";
reg = <0x0 0x0 0x0 0x0 0x0>;
#address-cells = <3>;
#size-cells = <2>;
device_type = "pci";
bus-range = <0x01 0xff>;
ranges;
vpcie3v3-supply = <&wlan_reg_on>;
};
};
};
2 changes: 2 additions & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -11167,6 +11167,7 @@ C: irc://irc.oftc.net/pixel6-kernel-dev
F: Documentation/devicetree/bindings/clock/google,gs101-clock.yaml
F: Documentation/devicetree/bindings/clock/google,gs201-clock.yaml
F: Documentation/devicetree/bindings/clock/google,zumapro*
F: Documentation/devicetree/bindings/pci/google,zumapro-pcie.yaml
F: Documentation/devicetree/bindings/phy/google,lga-usb-phy.yaml
F: Documentation/devicetree/bindings/soc/google/google,gs101-dtzpc.yaml
F: Documentation/devicetree/bindings/soc/google/google,gs101-pmu.yaml
Expand All @@ -11176,6 +11177,7 @@ F: arch/arm64/boot/dts/exynos/google/
F: drivers/clk/samsung/clk-gs101.c
F: drivers/clk/samsung/clk-gs201.c
F: drivers/clk/samsung/clk-zumapro.c
F: drivers/pci/controller/dwc/pcie-zumapro.c
F: drivers/phy/phy-google-usb.c
F: drivers/soc/samsung/gs101-pmu.c
F: drivers/phy/samsung/phy-gs101-ufs.c
Expand Down
Loading